Device network configuration method and device

CN115987705BActive Publication Date: 2025-08-01HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211557901.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2025-08-01
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

目前,在通过现有的配网方式对设备进行配网时,需要用户操作复杂繁琐的流程才能实现对设备的配网

Benefits of technology

[0055] In a fifth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method according to any one of the first, second, and third aspects when executed by a processor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987705B_ABST
    Figure CN115987705B_ABST
Patent Text Reader

Abstract

The present application discloses a device network configuration method and apparatus, relating to the field of Internet of Things. The method includes: a first electronic device sending a network probe frame including a target SSID to a routing device; the routing device using the target SSID as the SSID of a virtual access point and using a first password as the connection password of the virtual access point. After establishing the virtual access point, the routing device sends a probe response including the SSID of the virtual access point to the first electronic device. The first electronic device uses the SSID of the virtual access point and the first password to establish a first communication connection with the routing device, and through this first communication connection, receives the connection parameters of an actual access point of the routing device; and uses the connection parameters of the actual access point to establish a second communication connection with the routing device. The present application improves the efficiency and success rate of device network configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things, and in particular, to a device network configuration method and apparatus. Background Art

[0002] With the development of Internet of Things technology, the application of Internet of Things devices (such as smart home appliances, etc.) in people's daily lives is also increasing. Generally, it is necessary to configure the Internet of Things devices to access the network for device management and flexible use. Currently, when configuring the network for a device through the existing network configuration methods, users need to operate complex and cumbersome processes to achieve device network configuration. If users are not familiar with the network configuration process, it will result in low network configuration efficiency and low success rate. Summary of the Invention

[0003] The present application provides a device network configuration method and apparatus to improve the network configuration efficiency and success rate.

[0004] In a first aspect, the present application provides a device network configuration method, which is applied to a first electronic device, and the method includes:

[0005] Sending a network probe frame to a routing device, where the network probe frame includes: a target service set identifier SSID, and the target SSID includes: an identifier of the first electronic device;

[0006] Receiving a probe response from the routing device; the probe response is sent after the routing device uses the target SSID as the SSID of a virtual access point and uses a first password as the connection password of the virtual access point to establish the virtual access point; the first password is obtained by the routing device according to the identifier of the first electronic device; the probe response includes: the SSID of the virtual access point;

[0007] Using the SSID of the virtual access point and the first password to establish a first communication connection with the routing device;

[0008] Receiving, through the first communication connection, connection parameters of an actual access point of the routing device from the routing device;

[0009] Using the connection parameters of the actual access point to establish a second communication connection with the routing device.

[0010] Optionally, before using the SSID of the virtual access point and the first password to establish a first communication connection with the routing device, the method further includes:

[0011] Obtaining the first password according to the identifier of the first electronic device.

[0012] Optionally, after establishing the first communication connection with the routing device and before receiving, via the first communication connection, the connection parameters of the actual access point of the routing device from the routing device, the method further includes:

[0013] Sending a device verification request to the cloud platform via the first communication connection, so that the cloud platform verifies the legality of the first electronic device according to the identifier of the first electronic device included in the device verification request, and when the legality verification passes, sending a first instruction to the routing device; the first instruction is used to instruct the routing device to send the connection parameters of the actual access point to the first electronic device.

[0014] Optionally, before sending the network probe frame to the routing device, the method further includes:

[0015] Generating the target SSID according to a preset SSID naming rule and the identifier of the first electronic device.

[0016] In a second aspect, the present application provides a device network configuration method, which is applied to a routing device, and the method includes:

[0017] Receiving a network probe frame from a first electronic device, the network probe frame includes: a target service set identifier SSID, and the target SSID includes: the identifier of the first electronic device;

[0018] Obtaining a first password according to the identifier of the first electronic device;

[0019] Using the target SSID as the SSID of the virtual access point, and using the first password as the connection password of the virtual access point, and establishing the virtual access point;

[0020] Sending a probe response including the SSID of the virtual access point to the first electronic device, so that the first electronic device uses the SSID of the virtual access point and the first password to establish a first communication connection with the routing device;

[0021] Sending, via the first communication connection, the connection parameters of the actual access point of the routing device to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to establish a second communication connection with the routing device.

[0022] Optionally, the obtaining a first password according to the identifier of the first electronic device includes:

[0023] Send the identifier of the first electronic device to the cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device;

[0024] Receive the first password sent by the cloud platform.

[0025] Optionally, before obtaining the first password according to the identifier of the first electronic device, the method further includes:

[0026] Determine whether the target SSID conforms to a preset SSID naming rule;

[0027] If it is determined that the target SSID conforms to the preset SSID naming rule, obtain the first password according to the identifier of the first electronic device.

[0028] Optionally, before sending the connection parameters of the actual access point of the routing device to the first electronic device through the first communication connection, the method further includes:

[0029] Receive a first instruction from the cloud platform; the first instruction is used to instruct the routing device to send the connection parameters of the actual access point to the first electronic device; the first instruction is sent after the cloud platform passes the legitimacy verification of the first electronic device.

[0030] Optionally, after sending the connection parameters of the actual access point of the routing device to the first electronic device, the method further includes:

[0031] Delete the virtual access point.

[0032] In a third aspect, the present application provides a device network configuration method, which is applied to a user terminal, and the method includes:

[0033] In response to an operation of adding a new device triggered by the user, send a device network configuration instruction to the cloud platform; the device network configuration instruction includes: a user identifier;

[0034] Display a first prompt message from the cloud platform, the first prompt message includes: the service set identifier SSID of the actual access point of the routing device, and the identifier of the first electronic device, the first prompt message is used to prompt the user to confirm whether to configure the first electronic device through the routing device; the SSID of the actual access point of the routing device, and the identifier of the first electronic device are determined by the cloud platform according to the user identifier;

[0035] In response to an operation of starting to configure the network for the first electronic device triggered by a user, send a command for configuring the network for the first electronic device to the cloud platform, so that the cloud platform sends a first command to the routing device; the first command is used to instruct the routing device to send connection parameters of the actual access point to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to connect to the routing device.

[0036] Fourthly, the present application provides a device network configuration device, which is applied to a first electronic device, and the device includes:

[0037] A sending module, configured to send a network probe frame to a routing device, where the network probe frame includes: a target service set identifier SSID, and the target SSID includes: an identifier of the first electronic device;

[0038] A first receiving module, configured to receive a probe response from the routing device; the probe response is sent after the routing device uses the target SSID as the service set identifier SSID of the virtual access point and uses a first password as the connection password of the virtual access point to establish the virtual access point; the first password is obtained by the routing device according to the identifier of the first electronic device; the probe response includes: the SSID of the virtual access point;

[0039] A first processing module, configured to establish a first communication connection with the routing device by using the SSID of the virtual access point and the first password;

[0040] A second receiving module, configured to receive, through the first communication connection, connection parameters of the actual access point of the routing device from the routing device;

[0041] A second processing module, configured to establish a second communication connection with the routing device by using the connection parameters of the actual access point.

[0042] Fifthly, the present application provides a device network configuration device, which is applied to a routing device, and the device includes:

[0043] A receiving module, configured to receive a network probe frame from a first electronic device, where the network probe frame includes: a target service set identifier SSID, and the target SSID includes: an identifier of the first electronic device;

[0044] A processing module, configured to obtain a first password according to the identifier of the first electronic device; use the target SSID as the service set identifier SSID of the virtual access point, and use the first password as the connection password of the virtual access point to establish the virtual access point;

[0045] A sending module, configured to send a probe response including the SSID of the virtual access point to the first electronic device, so that the first electronic device uses the SSID of the virtual access point, and the first password, to establish a first communication connection with the routing device; and through the first communication connection, send connection parameters of the actual access point of the routing device to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to establish a second communication connection with the routing device.

[0046] In a sixth aspect, the present application provides a device network configuration device, which is applied to a user terminal and includes:

[0047] A first sending module, configured to respond to an operation of adding a new device triggered by a user, and send a device network configuration instruction to a cloud platform; the device network configuration instruction includes: a user identifier;

[0048] A receiving module, configured to receive a first prompt message from the cloud platform. Wherein, the first prompt message includes: a service set identifier SSID of the actual access point of the routing device, and an identifier of a first electronic device, and the first prompt message is used to prompt the user to confirm whether to configure the first electronic device through the routing device; the SSID of the actual access point of the routing device, and the identifier of the first electronic device are determined by the cloud platform according to the user identifier.

[0049] A display module, configured to display the first prompt message.

[0050] A second sending module, configured to respond to an operation of starting to configure the first electronic device triggered by a user, and send an instruction to configure the first electronic device to the cloud platform, so that the cloud platform sends a first instruction to the routing device; the first instruction is used to instruct the routing device to send connection parameters of the actual access point to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to connect to the routing device.

[0051] In a seventh aspect, the present application provides an electronic device, including: a processor, a memory, as well as a transmitter and a receiver; the processor is communicatively connected to the memory;

[0052] Both the transmitter and the receiver are coupled to the processor, and the processor controls the sending action of the transmitter; the processor controls the receiving action of the receiver;

[0053] The memory stores computer-executable instructions;

[0054] The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of the first aspect, the second aspect, and the third aspect.

[0055] In a fifth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method according to any one of the first, second, and third aspects when executed by a processor.

[0056] In a sixth aspect, the present application provides a computer program product including a computer program, which implements the method according to any one of the first, second, and third aspects when executed by a processor.

[0057] For the device network configuration method and device provided by the present application, the first electronic device to be network-configured sends a network detection frame to a routing device, so that the routing device can obtain a first password based on the identifier of the first electronic device included in the network detection frame. Then, the routing device can use the first password as the connection password of the virtual access point and use the target SSID as the SSID of the virtual access point. Through the above method, the first password required for the routing device to establish a virtual access point is obtained by the routing device according to the identifier of the first electronic device. Compared with the prior art in which a fixed password is configured in the routing device, the present application improves the security of the password used to establish a virtual access point. And through the above method, a virtual access point can be established after receiving the network detection frame of the first electronic device, avoiding waste of network resources and reducing the power consumption of the routing device. After establishing a first communication connection between the first electronic device and the virtual access point of the routing device, connection parameters for connecting to the actual access point of the routing device can be obtained through the first communication connection, so as to establish a second communication connection with the routing device, thereby realizing network configuration of the first electronic device. Through the above method, during the network configuration process of the first electronic device, it is not necessary to rely on user operation of the network configuration process, improving the efficiency and success rate of network configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.

[0059] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0060] Figure 1 It is a schematic diagram of an application scenario of the device network configuration method provided by the present application;

[0061] Figure 2aA schematic flowchart of a device network configuration method provided by this application;

[0062] Figure 2b A schematic diagram of the interface of a user terminal provided by this application;

[0063] Figure 3 A schematic flowchart of a method for an intelligent home appliance device to establish a first communication connection with a router provided by this application;

[0064] Figure 4 A schematic flowchart of a method for performing a legality check on an intelligent home appliance device provided by this application;

[0065] Figure 5 A schematic flowchart of a method for sending a first instruction to a router provided by this application;

[0066] Figure 6 A schematic flowchart of a method for connecting to the actual access point of a router provided by this application;

[0067] Figure 7 A schematic diagram of the structure of a device network configuration device provided by this application;

[0068] Figure 8 A schematic diagram of the structure of another device network configuration device provided by this application;

[0069] Figure 9 A schematic diagram of the structure of yet another device network configuration device provided by this application;

[0070] Figure 10 A schematic diagram of the structure of an electronic device provided by this application. Detailed implementation manners

[0071] In order to enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of this application.

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

[0073] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0074] With the development of Internet of Things (IoT) technology, IoT devices are increasingly being used in people's daily lives. Usually, IoT devices need to be configured and connected to the network to facilitate device management and flexible use.

[0075] Exemplarily, the IoT device can be any electronic device that can be configured to access the network. Exemplarily, the application scenario of the IoT device can be, for example, a whole-house intelligent digital control application scenario such as a smart home, a smart home, an intelligent home appliance ecosystem, and an intelligent residential (Intelligence House) ecosystem. Optionally, the IoT device may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing machine, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0076] Taking smart home appliances as an example, the existing network distribution methods are mainly the following:

[0077] 1. The user configures the network for the smart home appliance device to be networked through a mobile phone. For example, first, the user needs to turn on the Bluetooth function of the mobile phone and open the mobile application (App) corresponding to the brand of the smart home appliance device to be networked. Then, the mobile phone can discover the smart home appliance device to be networked through Bluetooth and prompt the user to operate to add a new device through the above App. Then, the mobile phone can send the service set identifier (SSID) and password of the router to the smart home appliance device to be networked to complete the distribution of network configuration information, so that the smart home appliance device to be networked can use the above SSID and password to connect to the router.

[0078] 2. When the Bluetooth function of the mobile phone cannot be used, the user also needs to open the above App and click the operation to add a new device. Then, the mobile phone can prompt the user to switch the WiFi connection of the mobile phone to the temporary WiFi hotspot SSID opened by the smart home appliance device to be networked through the above App. After the mobile phone connects to the smart home appliance device to be networked through this hotspot, it then prompts the user to select the SSID of the home main WiFi hotspot and enter the corresponding password. Then, the mobile phone can send the SSID and password of this WiFi main hotspot to the smart home appliance device to be networked through the APP to complete the distribution of network configuration information. Finally, the user needs to operate the mobile phone to switch back to the original home WiFi hotspot used.

[0079] 3. When the smart home appliance device to be networked is powered on for the first time, it automatically connects to a hidden hotspot with a fixed SSID. This hidden hotspot with a fixed SSID can be a hotspot opened in a hidden manner by a router of the same manufacturer as the smart home appliance device to be networked after power-on. After the smart home appliance device to be networked connects to the hidden hotspot, the router can send the SSID and password of the main WiFi hotspot to the smart home appliance device to be networked through this connection channel to complete the distribution of device network configuration information.

[0080] However, both of the above methods 1 and 2 need to rely on the user to operate complex and cumbersome processes on the mobile phone to achieve network configuration for the device. For users who are not familiar with the network configuration process, the efficiency and success rate of network configuration are both relatively low.

[0081] For the above method 3, all smart home appliance devices need to be built-in with a fixed hidden hotspot SSID for detection. The router also needs to be configured with a fixed hotspot SSID and kept open in a hidden manner for receiving detection and connection from smart home appliance devices. However, a fixed SSID usually has relatively low security and may be cracked or attacked by malicious connections. In addition, the router keeps this hidden hotspot on so that the smart home appliance device to be networked can perform network configuration connections. However, most of the time, no device uses this hidden hotspot, resulting in waste of router power consumption and network resources.

[0082] In view of the above problems existing in the existing power distribution methods, the present application proposes a device power distribution method that has a low dependence on users and does not require a fixed hidden hotspot SSID to be configured on a routing device. By reducing the dependence of the device power distribution process on user operations, the efficiency and success rate of power distribution are improved. By not configuring a fixed hidden hotspot on the routing device, the security of the routing device is improved, and network resources and the power consumption of the routing device are saved.

[0083] The technical solution of the present application will be described in detail below in conjunction with specific embodiments. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0084] Exemplarily, Figure 1 is a schematic diagram of an application scenario of the device power distribution method provided by the present application. As Figure 1 shown, the first electronic device is the device to be powered on as described above. It should be understood that Figure 1 only an intelligent washing machine is taken as an example of the first electronic device for an exemplary description of the application scenario of the device power distribution method. Optionally, the first electronic device may be any of the foregoing Internet of Things devices, and the present application does not limit this.

[0085] The first electronic device can access the Internet through a routing device. The routing device can be any device such as a router that can connect the first electronic device to the Internet.

[0086] Figure 2a is a schematic flowchart of a device power distribution method provided by the present application. As Figure 2a shown, the method includes the following steps:

[0087] S101. The first electronic device sends a network probe frame to the routing device.

[0088] Among them, the network probe frame may include: a target SSID. The target SSID may include: an identifier of the first electronic device. Exemplarily, the above target SSID may be, for example, a combination result of the identifier of the first electronic device and other characters. For example, the SSID of the virtual access point may be <deviceid>_hrwifi. Wherein, DeviceID is the identifier of the first electronic device, and <, >, and "_hrwifi" are all other characters except the identifier of the first electronic device. Alternatively, in some embodiments, the target SSID may also be the identifier of the first electronic device.

[0089] The network detection frame can be used to detect a routing device that can communicate with the first electronic device. If the first electronic device receives a detection response from a routing device after sending the network detection frame, it indicates that the routing device can establish a communication connection with the first electronic device. If the first electronic device does not receive a detection response from any routing device after sending the network detection frame, it indicates that no routing device can establish a communication connection with the first electronic device.

[0090] Exemplarily, the identifier of the first electronic device can be, for example, the unique code (Identity document, ID) of the first electronic device. Optionally, whether the above network detection frame further includes other content is not limited in this application. For example, any existing network detection frame can be referred to.

[0091] Optionally, the first electronic device can send a network detection frame to the routing device through, for example, a WIFI communication module. It should be understood that this application does not limit the timing of the first electronic device sending the network detection frame to the routing device. For example, the first electronic device can send a network detection frame when initially configured for networking. Or, the first electronic device can also send a network detection frame after restoring the factory settings (i.e., resetting).

[0092] Correspondingly, the routing device can receive the network detection frame from the first electronic device.

[0093] S102. The routing device obtains a first password according to the identifier of the first electronic device.

[0094] Optionally, the mapping relationship between the identifier of the electronic device and the password may be pre-stored in the routing device. In this implementation, the routing device can obtain the first password according to the identifier of the first electronic device and the above mapping relationship between the identifier of the electronic device and the password.

[0095] Alternatively, the mapping relationship between the identifier of the electronic device and the password may also be stored in a cloud platform. In this implementation, after the routing device obtains the identifier of the first electronic device, it can send the identifier of the first electronic device to the cloud platform. Then, the cloud platform can obtain the first password according to the identifier of the first electronic device and the above mapping relationship between the identifier of the electronic device and the password, and send the first password to the routing device.

[0096] S103. The routing device uses the target SSID as the SSID of a virtual access point (AP), and uses the first password as the connection password of the virtual access point to establish the virtual access point.

[0097] Exemplarily, the above virtual access point may be a hidden virtual access point, for example.

[0098] Optionally, for the specific implementation of the routing device to establish a virtual access point through the above target SSID and the first password, any existing method for constructing a virtual access point may be referred to, which will not be elaborated herein.

[0099] S104. The routing device sends a probe response including the SSID of the virtual access point to the first electronic device.

[0100] Among them, the above probe response can be used to indicate that the routing device can establish a communication connection with the first electronic device. Optionally, whether the above probe response includes other content is not limited in this application. For example, any existing probe response may be referred to.

[0101] Correspondingly, the first electronic device can receive the probe response from the routing device.

[0102] S105. The first electronic device uses the SSID of the virtual access point and the first password to establish a first communication connection with the routing device.

[0103] Optionally, the above first password can be obtained by the first electronic device according to the identifier of the first electronic device. For example, the same password generation algorithm may be deployed in the first electronic device and the router (or cloud platform). In this implementation, the first electronic device inputs the identifier of the first electronic device into the password generation algorithm, and the router also inputs the identifier of the first electronic device into the same password generation algorithm, so the same output can be obtained as the first password. Or, the same mapping relationship between the identifier of the electronic device and the password may be deployed in the first electronic device and the router, so that the first electronic device and the router can obtain the same first password through the identifier of the first electronic device and the mapping relationship between the identifier of the electronic device and the password.

[0104] Or, as a possible implementation, the above first password may also be included in the probe response, for example. That is to say, the first electronic device can obtain the above first password from the probe response sent by the routing device, for example.

[0105] Optionally, the first electronic device uses the SSID of the virtual access point and the first password above to establish a first communication connection with the routing device. For example, it can refer to any existing method for an electronic device to connect to a routing device, which will not be elaborated here.

[0106] S106. The routing device sends the connection parameters of the actual access point of the routing device to the first electronic device through the first communication connection.

[0107] Among them, the connection parameters of the actual access point above can include, for example: the actual SSID of this routing device (which can also be called the main SSID, or the real SSID) and the connection password.

[0108] Correspondingly, the first electronic device can receive the "connection parameters of the actual access point of the routing device" from the routing device through this first communication connection.

[0109] S107. The first electronic device uses the connection parameters of the actual access point to establish a second communication connection with the routing device.

[0110] The above second communication connection is established by the first electronic device using the connection parameters of the actual access point of this routing device. Therefore, when establishing the second communication connection, the first electronic device can access the Internet through this routing device, realizing the network configuration of this first electronic device.

[0111] In this embodiment, the first electronic device to be network-configured sends a network detection frame to the routing device, so that the routing device can obtain the first password based on the identifier of the first electronic device included in the network detection frame. Then, the routing device can use this first password as the connection password of the virtual access point and use the target SSID as the SSID of this virtual access point. Through the above method, the first password required for the routing device to establish the virtual access point is obtained by the routing device according to the identifier of the first electronic device. Compared with the prior art in which a fixed password is configured in the routing device, the present application improves the security of the password used to establish the virtual access point. And through the above method, the virtual access point can be established after receiving the network detection frame of the first electronic device, avoiding the waste of network resources and reducing the power consumption of the routing device. After the first electronic device and the virtual access point of the routing device establish the first communication connection, the connection parameters for connecting to the actual access point of the routing device can be obtained through this first communication connection to establish a second communication connection with this routing device, thereby realizing the network configuration of this first electronic device. Through the above method, during the network configuration process of this first electronic device, it does not need to rely on the user to operate the network configuration process, improving the efficiency and success rate of network configuration.

[0112] The following details how the first electronic device obtains the above first password:

[0113] As a possible implementation, before the first electronic device establishes a first communication connection with the routing device using the SSID of the virtual access point and the first password, the first password may be obtained according to the identifier of the first electronic device.

[0114] Taking the case where the mapping relationship between the identifier and password of the electronic device is stored in the first electronic device as an example, the first electronic device may obtain the first password according to the identifier of the first electronic device and the mapping relationship between the identifier and password of the electronic device. Exemplarily, the mapping relationship between the identifier and password of the above-mentioned electronic device may be as shown in Table 1 below:

[0115] Table 1

[0116] Identification of electronic device Password Identification 1 Password 1 Identification 2 Password 2 Identification 3 Password 3

[0117] Assuming that the identifier of the first electronic device is Identifier 1, according to the mapping relationship shown in Table 1, the first electronic device may determine that the first password is Password 1.

[0118] Taking the case where a password generation algorithm is preset in the first electronic device as an example, the first electronic device may input the identifier of the first electronic device into the password generation algorithm to obtain the first password. Wherein, the password generation algorithm may be any existing password generation algorithm, and the present application does not limit this.

[0119] In this embodiment, by the first electronic device obtaining the first password according to the identifier of the first electronic device, the transmission of the first password to the first electronic device through the network is avoided, further improving the security of the first password.

[0120] As another possible implementation, the first password may also be, for example, pre-stored in the first electronic device. That is to say, the first electronic device may obtain the above-mentioned first password from the data stored in itself. In this implementation, the first password may be pre-stored in the first electronic device by the user. Or, the first electronic device may also input the identifier of the first electronic device into the password generation algorithm in advance to obtain the first password and store it.

[0121] As yet another possible implementation, the probe response sent by the routing device to the first electronic device may, for example, also include the first password. In this implementation, the first electronic device may obtain the first password from the probe response.

[0122] The following details how the routing device obtains the above-mentioned first password according to the identifier of the first electronic device:

[0123] As a possible implementation, the routing device may obtain the first password from the cloud platform according to the identifier of the foregoing first electronic device. Optionally, the routing device may send the identifier of the first electronic device to the cloud platform. Correspondingly, the cloud platform may receive the identifier of the first electronic device sent by the routing device.

[0124] Then, the cloud platform may obtain the first password according to the identifier of the first electronic device.

[0125] Optionally, the specific implementation of the cloud platform obtaining the first password according to the identifier of the first electronic device may, for example, refer to the specific implementation of "the first electronic device obtaining the first password according to the identifier of the first electronic device" described in any of the foregoing embodiments, which will not be elaborated herein. Optionally, the specific implementation of the cloud platform "obtaining the first password according to the identifier of the first electronic device" may be the same as the specific implementation of the first electronic device "obtaining the first password according to the identifier of the first electronic device", so as to ensure that the first password obtained by the cloud platform is the same as the first password obtained by the first electronic device, and further ensure that the first electronic device can use the first password to establish a first communication connection with the virtual access point of the routing device.

[0126] In some embodiments, after obtaining the identifier of the foregoing first electronic device, the cloud platform may directly obtain the first password according to the identifier of the first electronic device.

[0127] Alternatively, in some embodiments, after obtaining the identifier of the foregoing first electronic device, the cloud platform may also verify whether the first electronic device is a device in the blacklist according to the identifier of the first electronic device, and when it is determined that the first electronic device is not a device in the blacklist, then obtain the first password according to the identifier of the first electronic device. If it is determined that the first electronic device is a device in the blacklist, optionally, the cloud platform may, for example, not obtain the foregoing first password and feedback a prompt message for indicating that "the first electronic device is a device in the blacklist" to the routing device.

[0128] After obtaining the first password, the cloud platform may send the first password to the routing device. Correspondingly, the routing device may receive the first password sent by the cloud platform, and the first password is obtained according to the identifier of the first electronic device.

[0129] In this embodiment, the routing device obtains the first password through the cloud platform according to the identifier of the first electronic device, reducing the computational workload of the routing device, and thus reducing the requirements for the computing power of the routing device.

[0130] As a possible implementation, before sending a network probe frame to the routing device, the first electronic device may also generate a target SSID according to a preset SSID naming rule and the identifier of the foregoing first electronic device.

[0131] Optionally, the above preset SSID naming rule can be stored in the first electronic device by the user in advance, for example.

[0132] Exemplarily, the above preset SSID naming rule can be, for example <deviceid>_hrwifi. Among them, DeviceID represents the identifier of the first electronic device. <deviceid>_hrwifi can be used as the target SSID.

[0133] Optionally, before obtaining the first password according to the identifier of the first electronic device, the routing device may further determine whether the target SSID conforms to a preset SSID naming rule. If it is determined that the target SSID conforms to the preset SSID naming rule, it indicates that the routing device can be connected to the first electronic device to configure the network for the first electronic device. Therefore, the routing device may execute obtaining the first password according to the identifier of the first electronic device.

[0134] Still taking the preset SSID naming rule as <deviceid>Taking _hrwifi as an example, the routing device can, for example, satisfy the above-mentioned target SSID when it meets the <deviceid>When the format is _hrwifi, it is determined that the target SSID conforms to the preset SSID naming rule.

[0135] If the routing device determines that the target SSID does not conform to the preset SSID naming rule, it indicates that the first electronic device may not belong to the same manufacturer as the routing device, or the network probe frame sent by the first electronic device may be insecure. Therefore, the routing device can, for example, discard the network probe frame and not feedback the probe response of the network probe frame.

[0136] In this embodiment, when it is determined that the target SSID conforms to the preset SSID naming rule, a first password is obtained according to the identifier of the first electronic device. Through the above method, the security of the network probe frame sent by the first electronic device is verified, thereby improving the security of the network configuration for the first electronic device.

[0137] The timing of the routing device sending the connection parameters of the actual access point to the first electronic device will be described in detail below:

[0138] As a possible implementation manner, the routing device can directly send the connection parameters of the actual access point to the first electronic device through the first communication connection after establishing the above first communication connection with the first electronic device.

[0139] As another possible implementation manner, before sending the connection parameters of the actual access point to the first electronic device, the routing device can also perform a legality check on the first electronic device through the cloud platform to further improve the security of the network configuration process.

[0140] In this implementation manner, for example, after establishing the first communication connection with the routing device and before receiving the connection parameters of the actual access point of the routing device from the routing device through the first communication connection, the first electronic device can send a device check request to the cloud platform through the first communication connection. The device check request may include: the identifier of the first electronic device.

[0141] Correspondingly, the cloud platform can receive the device check request. Then, the cloud platform can perform a legality check on the first electronic device according to the identifier of the first electronic device included in the device check request.

[0142] Exemplarily, all the identification information of the electronic devices produced by a manufacturer can be pre-stored in the cloud platform. If the cloud platform finds the identification information of the first electronic device among all the identification information of the electronic devices, it indicates that the first electronic device is produced by this manufacturer, and then the cloud platform can determine that the legality verification of the first electronic device passes. If the cloud platform does not find the identification information of the first electronic device among all the identification information of the electronic devices, it indicates that the first electronic device is not produced by this manufacturer, and then the cloud platform can determine that the legality verification of the first electronic device fails.

[0143] Alternatively, a blacklist device identification list can also be pre-stored in the cloud platform, for example. If the cloud platform finds the identification information of the first electronic device in this blacklist device identification list, it indicates that the first electronic device is a device prohibited from network configuration, and then the cloud platform can determine that the legality verification of the first electronic device fails. If the cloud platform does not find the identification information of the first electronic device in this blacklist device identification list, it indicates that the first electronic device is a device that can be network-configured, and then the cloud platform can determine that the legality verification of the first electronic device passes.

[0144] If the cloud platform passes the legality verification of the first electronic device, the cloud platform can send a first instruction to the routing device, which is "used to instruct the routing device to send the connection parameters of the above actual access point to the first electronic device". Correspondingly, the routing device can receive this first instruction from the cloud platform. After receiving this first instruction, the routing device can send the connection parameters of the actual access point to the first electronic device.

[0145] If the cloud platform fails the legality verification of the first electronic device, exemplarily, the cloud platform can send a second instruction to the routing device, which is "used to instruct the routing device not to send the connection parameters of the above actual access point to the first electronic device". If the routing device receives this second instruction, exemplarily, the routing device can not send the connection parameters of the above actual access point to the first electronic device to prevent the first electronic device from connecting to the actual access point of the routing device, thus improving the security of the routing device. In this implementation manner, further, the routing device can also delete the previously established virtual access point, for example.

[0146] In some embodiments, after establishing a virtual access point, the routing device may also determine whether it receives a first instruction sent by the cloud platform within a preset time period. If the routing device receives the first instruction sent by the cloud platform within the preset time period, it may perform an operation of sending the connection parameters of the actual access point to the first electronic device. If the routing device does not receive the first instruction sent by the cloud platform within the preset time period, it may delete the virtual access point. Through the above method, the routing device is prevented from keeping the virtual access point open for a long time, improving the security of the routing device, and saving network resources and the power consumption of the routing device.

[0147] Taking the example that the cloud platform passes the legitimacy verification of the first electronic device, the timing of the cloud platform sending the above first instruction to the routing device will be described in detail below:

[0148] Optionally, after passing the legitimacy verification of the first electronic device, the cloud platform may directly send the above first instruction to the routing device.

[0149] Alternatively, after passing the legitimacy verification of the first electronic device, the cloud platform may also determine whether to send the first instruction to the routing device according to whether it receives a device networking instruction sent by the user terminal for the first electronic device.

[0150] For example, the user terminal may respond to an operation triggered by the user to add a new device and send a device networking instruction to the cloud platform. The device networking instruction may include: a user identifier. Exemplarily, the identifier of the user may be a unique identity identifier such as the user's username. Exemplarily, the above user terminal may be a user terminal such as a mobile phone or a tablet computer.

[0151] Exemplarily, taking the user terminal as a mobile phone or a tablet computer as an example, Figure 2b is a schematic diagram of the interface of a user terminal provided by the present application. As Figure 2b shown, the user terminal may install an APP of the manufacturer to which the first electronic device belongs. The user may trigger an operation to open the APP, and on the APP interface, click the control of "Add New Device" to trigger the operation of adding a new device.

[0152] It should be understood that the present application does not limit the communication method between the user terminal and the cloud platform. Exemplarily, the user terminal may communicate with the cloud platform through the routing device. Alternatively, the user terminal may also communicate with the cloud platform through a mobile communication method such as the 5th Generation Mobile Communication Technology (5G).

[0153] Correspondingly, the cloud platform may receive the device networking instruction sent by the user terminal.

[0154] Then, based on the above user identifier, and the mapping relationship between the user identifier, the SSID of the actual access point of the routing device, and the identifier of the first electronic device, the cloud platform can determine the SSID of the actual access point of the routing device and the identifier of the first electronic device.

[0155] Among them, the mapping relationship between the above user identifier and the SSID of the actual access point of the routing device can be pre-stored in the cloud platform. The mapping relationship between the SSID of the actual access point of the routing device and the identifier of the first electronic device can be stored by the cloud platform after the legitimacy verification of the first electronic device passes. That is to say, the cloud platform can store the mapping relationship between the SSID of the actual access point of the routing device and the identifier of the first electronic device after the legitimacy verification of the first electronic device passes. Through the mapping relationship between the user identifier and the SSID of the actual access point of the routing device, and the mapping relationship between the SSID of the actual access point of the routing device and the identifier of the first electronic device, the mapping relationship between the user identifier, the SSID of the actual access point of the routing device, and the identifier of the first electronic device can be determined.

[0156] Exemplarily, the identifier of the routing device can be carried in the device verification request when the first electronic device sends a device verification request to the cloud platform through the above first communication connection.

[0157] Then, the cloud platform can send a first prompt message to the user terminal. Among them, the first prompt message can include: the SSID of the actual access point of the routing device, and the identifier of the first electronic device. The first prompt message can be used to prompt the user to confirm whether to configure the network for the first electronic device through the routing device.

[0158] Correspondingly, the user terminal can receive the above first prompt message.

[0159] Then, the user terminal can display the first prompt message. Still taking Figure 2b as an example, as Figure 2b shown, the user terminal can display the SSID of the actual access point of the routing device included in the first prompt message, and the identifier of the first electronic device.

[0160] Then, the user terminal can respond to the operation triggered by the user to start configuring the network for the first electronic device, and send an instruction to configure the network for the first electronic device to the cloud platform. Still taking Figure 2b as an example, as Figure 2b shown, for example, if the user can trigger the operation to start configuring the network for the first electronic device by clicking the control "Yes".

[0161] In some embodiments, if the user triggers an operation of not configuring the network for the first electronic device through the user terminal (for example, the user clicks the "No" control as shown in Figure 2b ), optionally, the user terminal can, for example, send an instruction to the cloud platform to indicate not to configure the network for the first electronic device, so that the cloud platform can send an instruction to the routing device not to configure the network for the first electronic device. Further, the routing device can, for example, delete the above virtual access point.

[0162] After receiving the above instruction to configure the network for the first electronic device, the cloud platform can send the first instruction of "instructing the routing device to send the connection parameters of the actual access point to the first electronic device" to the routing device.

[0163] In this embodiment, the cloud platform can send the first instruction to the routing device after receiving the instruction triggered by the user through the user terminal to add a device to be network-configured. Through the above method, the cloud platform can send the first instruction to the routing device according to the user's instruction, so that the routing device sends the connection parameters of the actual access point to the first electronic device only after receiving the user's instruction, thereby realizing that the first electronic device is network-configured only after the user instructs to network-configure the device to be network-configured. Through the above method, the user's need to network-configure the first electronic device is met, the user experience is improved, and network resources are saved.

[0164] Further, as a possible implementation, after the routing device sends the connection parameters of the actual access point of the routing device to the first electronic device, it can also delete the virtual access point. Through the above method, the routing device is prevented from continuously opening the virtual access point, reducing the consumption of network resources and the power consumption of the routing device, and improving the security of the routing device. Exemplarily, the routing device can, for example, delete the virtual access point by deleting the configuration information used to create the virtual access point.

[0165] Taking the Figure 1 shown application scenario as an example, assuming that the routing device is a router, the above first electronic device is a smart home appliance device, and the above user terminal is a mobile phone, Figures 3 - 6 is a schematic flowchart of another device network configuration method provided by this application.

[0166] First, Figure 3 is a schematic flowchart of a method for a smart home appliance device to establish a first communication connection with a router provided by this application. As shown in Figure 3 , the method may include the following steps:

[0167] 1. The user operates the router to power on. The Internet connection of the router can also be configured through a network configuration device such as an optical modem.

[0168] 2. After the user operates the smart home appliance to reset and power on.

[0169] 3. The smart home appliance reads out its own DeviceID (i.e., the identifier of the smart home appliance).

[0170] 4. The smart home appliance sends an 802.11 Probe Req (a WIFI network probe frame in the WIFI communication protocol) according to the preset SSID naming rule.

[0171] Among them, the above SSID naming rule can be, for example: <deviceid>_hrwifi。

[0172] 5. The router receives the WIFI network detection frame sent by the smart home appliance device and determines whether the target SSID conforms to the preset SSID naming rule (for example, detecting whether it includes the DeviceID and the fixed string _hrwifi).

[0173] 6. If it conforms to the preset SSID naming rule, the router sends the device identifier of the smart home appliance device to the cloud platform to obtain the first password from the cloud platform.

[0174] 7. The cloud platform obtains the first password according to the identifier of the smart home appliance device and returns the first password to the router.

[0175] 8. The router uses the target SSID and the first password to dynamically create a virtual AP hotspot (that is, the aforementioned virtual access point).

[0176] 9. The router sends a probe response including the SSID of the virtual access point to the smart home appliance device.

[0177] 10. The smart home appliance device uses the SSID of the virtual access point and the first password to send a request to connect to the virtual access point.

[0178] 11. The router verifies the SSID and the first password in the connection request sent by the smart home appliance device. If it matches the configuration saved by the router, a first communication connection is established.

[0179] 12. The router can also send a connection response to the smart home appliance device.

[0180] Figure 4 It is a schematic flow diagram of a method for performing legality verification on a smart home appliance device provided by this application. As Figure 4 shown, the method may include the following steps:

[0181] 13. The smart home appliance device sends a device verification request to the router.

[0182] 14. The router sends the device verification request to the cloud platform.

[0183] 15. If the cloud platform fails to verify the legality of the smart home appliance device, it means that the smart home appliance device is not supported to perform fast connection mode network configuration through the router. Then the cloud platform can execute step 16 to control the router to destroy the created virtual access point and enable the router to recycle the memory occupied by the virtual access point.

[0184] 16. The cloud platform sends a verification failure response to the router.

[0185] 17. If the cloud platform successfully verifies the legality of the smart home appliance device, record the relevant information of the smart home appliance device.

[0186] Among them, the above relevant information may include, for example: the identifier of the smart home appliance device, the SSID of the virtual access point, the status of the smart home appliance device being in the network configuration process, the user information bound to the router, etc.

[0187] 18. The cloud platform sends a verification success response to the router.

[0188] Figure 5 Schematic diagram of the method flow for sending a first instruction to a router provided by this application. As Figure 5 shown, the method may include the following steps:

[0189] 19. The user operates the APP installed on the mobile phone and clicks the "Add New Smart Home Appliance Device" control.

[0190] 20. The mobile phone sends an instruction to add a new device to the cloud platform.

[0191] 21. The cloud platform retrieves the smart home appliance device to be network-configured according to the router information and the associated user information.

[0192] 22. The cloud platform pushes a prompt message for discovering a new smart home appliance device to the mobile phone.

[0193] Among them, the prompt message may carry the SSID of the router's main WiFi (i.e., the actual access point) hotspot for prompting the user to confirm.

[0194] 23. The user clicks the control to confirm adding the new smart home appliance device.

[0195] 24. The mobile phone displays a prompt to the user whether to connect to the smart home appliance device with the main WIFI hotspot SSID.

[0196] 25. After the user selects "Start Connection", the mobile phone sends an instruction for the device to be network-configured to the cloud platform.

[0197] 26. The cloud platform sends a first instruction to the router to instruct the routing device to send the connection parameters of the actual access point to the smart home appliance device.

[0198] Figure 6 Schematic diagram of the method flow for connecting to the actual access point of a router provided by this application. As Figure 6 shown, the method may include the following steps:

[0199] 27. The router sends the connection parameters of the actual access point of the routing device to the smart home appliance device.

[0200] 28. The smart home appliance device sends a reception response to the router device.

[0201] 29. The smart home appliance device disconnects the first communication connection.

[0202] 30. The router sends a disconnection response to the smart home appliance device.

[0203] 31. The router destroys the temporarily created hidden virtual AP and reclaims the memory space.

[0204] 32. The smart home appliance device sends an 802.11 Probe Req to detect the main WiFi hotspot of the router.

[0205] 33. The router sends encrypted information (i.e., in response to the main WiFi hotspot detection) including the SSID and password of the main WiFi to the smart home appliance device again.

[0206] 34. The smart home appliance device connects to the main WiFi hotspot of the router.

[0207] 35. The router sends a connection response to the smart home appliance device.

[0208] 36. The router sends a prompt message that the smart home appliance device is online to the cloud platform.

[0209] 37. The cloud platform sends an online response to the router.

[0210] In this embodiment, the smart home appliance device connects to the hidden virtual WiFi hotspot AP of the router, and thus the first communication connection can obtain the SSID and password of the actual access point pushed by the router for device network configuration. Through the above method, the fast network configuration of the smart home appliance device is realized. When the smart home appliance device supporting this fast connection function and the router work together, the network configuration process is more simple and easy to use, eliminating the process of requiring the user to operate the mobile phone to turn on Bluetooth or manually select the WiFi hotspot and enter the password, improving the efficiency and success rate of network configuration.

[0211] In addition, through the above method, it is not necessary to build a fixed hotspot AP in the router, but to perform network configuration through this dynamically created virtual AP. This virtual AP can be destroyed after the device completes network configuration or the network configuration times out, reclaiming the memory, improving the security of network configuration, and saving the network resources and power consumption of the router.

[0212] Furthermore, since the existing hotspot SSID is fixedly written in all types of devices and routers of this manufacturer, and the ID of the smart home appliance device is not passed in during the connection process, when the device erroneously connects to a router of another manufacturer that supports this function and completes the binding to an account of another manufacturer, data cannot be traced, and problems cannot be fixed for this user, resulting in a poor user experience. Through the network configuration method provided in this application, the smart home appliance device connects to the cloud platform through the hidden virtual AP of this router, and the cloud platform will verify and record the relevant information of the smart home appliance device, enabling the data of the smart home appliance device to be used for tracing problems, facilitating the solution of user problems, and improving the user experience.

[0213] Figure 7 FIG. is a schematic structural diagram of a device network configuration device provided in this application. The device 40 is applied to a first electronic device. As Figure 7 shown, the device 40 includes: a sending module 41, a first receiving module 42, a first processing module 43, a second receiving module 44, and a second processing module 45. Among them,

[0214] The sending module 41 is used to send a network probe frame to the routing device. Among them, the network probe frame includes: a target service set identifier SSID, and the target SSID includes: the identifier of the first electronic device.

[0215] The first receiving module 42 is used to receive a probe response from the routing device. Among them, the probe response is sent after the routing device uses the target SSID as the service set identifier SSID of the virtual access point and uses the first password as the connection password of the virtual access point to establish the virtual access point; the first password is obtained by the routing device according to the identifier of the first electronic device; the probe response includes: the SSID of the virtual access point.

[0216] The first processing module 43 is used to establish a first communication connection with the routing device using the SSID of the virtual access point and the first password.

[0217] The second receiving module 44 is used to receive, through the first communication connection, the connection parameters of the actual access point of the routing device from the routing device.

[0218] The second processing module 45 is used to establish a second communication connection with the routing device using the connection parameters of the actual access point.

[0219] Optionally, the first processing module 43 is further used to obtain the first password according to the identifier of the first electronic device before establishing the first communication connection with the routing device using the SSID of the virtual access point and the first password.

[0220] Optionally, the sending module 41 is further configured to, after establishing the first communication connection with the routing device and before receiving, through the first communication connection, the connection parameters of the actual access point of the routing device from the routing device, send a device verification request to the cloud platform through the first communication connection, so that the cloud platform performs a legality verification on the first electronic device according to the identifier of the first electronic device included in the device verification request, and when the legality verification passes, send a first instruction to the routing device; the first instruction is used to instruct the routing device to send the connection parameters of the actual access point to the first electronic device.

[0221] Optionally, the first processing module 43 is further configured to generate the target SSID according to a preset SSID naming rule and the identifier of the first electronic device before sending the network detection frame to the routing device.

[0222] The device network configuration device 40 provided in this application is used to execute the device network configuration method embodiment executed by the foregoing first electronic device, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0223] Figure 8 This is a structural schematic diagram of another device network configuration device provided in this application. This device 50 is applied to a routing device. As Figure 8 shown, this device 50 includes: a receiving module 51, a processing module 52, and a sending module 53. Among them,

[0224] The receiving module 51 is configured to receive a network detection frame from a first electronic device. Among them, the network detection frame includes: a target service set identifier SSID, and the target SSID includes: the identifier of the first electronic device.

[0225] The processing module 52 is configured to obtain a first password according to the identifier of the first electronic device; use the target SSID as the service set identifier SSID of the virtual access point, and use the first password as the connection password of the virtual access point to establish the virtual access point.

[0226] The sending module 53 is configured to send a probe response including the SSID of the virtual access point, so that the first electronic device uses the SSID of the virtual access point and the first password to establish a first communication connection with the routing device; through the first communication connection, send the connection parameters of the actual access point of the routing device to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to establish a second communication connection with the routing device.

[0227] Optionally, the processing module 52 is specifically configured to determine whether the format of the network detection frame conforms to a preset format. Optionally, the sending module 53 is specifically configured to, when the format of the network detection frame conforms to the preset format, send the identifier of the first electronic device to the cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device; optionally, the receiving module 51 is further configured to receive the first password sent by the cloud platform.

[0228] Optionally, the receiving module 51 is further configured to receive a first instruction from the cloud platform before sending the connection parameters of the actual access point of the routing device to the first electronic device through the first communication connection. The first instruction is used to instruct the routing device to send the connection parameters of the actual access point to the first electronic device; the first instruction is sent by the cloud platform after passing the legitimacy verification of the first electronic device.

[0229] Optionally, the processing module 52 is further configured to delete the virtual access point after sending the connection parameters of the actual access point of the routing device to the first electronic device.

[0230] The device network configuration device 50 provided in this application is used to execute the device network configuration method embodiment executed by the foregoing routing device, and its implementation principle and technical effect are similar, and will not be described in detail here.

[0231] Figure 9 FIG. is a schematic structural diagram of another device network configuration device provided in this application. The device 60 is applied to a user terminal. As Figure 9 shown, the device 60 includes: a first sending module 61, a receiving module 62, a display module 63, and a second sending module 64. Among them,

[0232] The first sending module 61 is configured to send a device network configuration instruction to the cloud platform in response to an operation of adding a new device triggered by a user; the device network configuration instruction includes: a user identifier;

[0233] The receiving module 62 is configured to receive a first prompt message from the cloud platform. The first prompt message includes: the service set identifier SSID of the actual access point of the routing device and the identifier of the first electronic device. The first prompt message is used to prompt the user to confirm whether to configure the first electronic device through the routing device; the SSID of the actual access point of the routing device and the identifier of the first electronic device are determined by the cloud platform according to the user identifier.

[0234] The display module 63 is configured to display the first prompt message.

[0235] A second sending module 64, configured to respond to an operation of the user triggering the start of network configuration for the first electronic device, and send an instruction for network configuration for the first electronic device to the cloud platform, so that the cloud platform sends a first instruction to the routing device; the first instruction is used to instruct the routing device to send connection parameters of the actual access point to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to connect to the routing device.

[0236] The device network configuration device 60 provided in this application is used to execute the device network configuration method embodiments executed by the foregoing user terminal, and its implementation principle and technical effects are similar, and will not be elaborated herein.

[0237] Figure 10 It is a schematic structural diagram of an electronic device provided in this application. Optionally, the electronic device may be the foregoing first electronic device, routing device, or user terminal. As Figure 10 shown, the electronic device 700 may include: at least one processor 701, a memory 702, a receiver 705, and a transmitter 704.

[0238] Among them,

[0239] Both the receiver 705 and the transmitter 704 are coupled to the processor 701. The processor 701 controls the receiving operation of the receiver 705, and the processor 701 controls the sending operation of the transmitter 704.

[0240] The memory 702 is used to store programs. Specifically, the program may include program codes, and the program codes include computer operation instructions.

[0241] The memory 702 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0242] The processor 701 is configured to execute the computer execution instructions stored in the memory 702 to implement the device network configuration method described in the foregoing method embodiments. Among them, the processor 701 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or a specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0243] Optionally, the electronic device 700 may further include a communication interface 703. In a specific implementation, if the communication interface 703, the memory 702, and the processor 701 are implemented independently, the communication interface 703, the memory 702, and the processor 701 may be connected to each other through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0244] Optionally, in a specific implementation, if the communication interface 703, the memory 702, and the processor 701 are integrated on a single chip, the communication interface 703, the memory 702, and the processor 701 may communicate through an internal interface.

[0245] The present application also provides a computer-readable storage medium, which may include: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the methods in the above embodiments.

[0246] The present application also provides a program product, which includes execution instructions stored in a readable storage medium. At least one processor of the electronic device may read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions to enable the electronic device to implement the device networking methods provided by the above various embodiments.

[0247] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.< / deviceid> < / deviceid> < / deviceid> < / deviceid> < / deviceid> < / deviceid>

Claims

1. A device network configuration method, characterized in that, The method is applied to a first electronic device, and the method includes: Sending a network detection frame to a routing device, where the network detection frame includes: a target service set identifier (SSID), and the target SSID includes: an identifier of the first electronic device; Receiving a probe response from the routing device; the probe response is sent after the routing device uses the target SSID as the SSID of a virtual access point and uses a first password as the connection password of the virtual access point to establish the virtual access point; the first password is obtained by the routing device according to the identifier of the first electronic device; the probe response includes: the SSID of the virtual access point; wherein, the first password is obtained by the routing device sending the identifier of the first electronic device to a cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device; Using the SSID of the virtual access point and the first password to establish a first communication connection with the routing device; Sending a device verification request to the cloud platform through the first communication connection, so that the cloud platform verifies the legitimacy of the first electronic device according to the identifier of the first electronic device included in the device verification request, and when the legitimacy verification passes, sends a first instruction to the routing device, and the first instruction is used to instruct the routing device to send connection parameters of an actual access point to the first electronic device; Receiving, through the first communication connection, the connection parameters of the actual access point of the routing device from the routing device; Using the connection parameters of the actual access point to establish a second communication connection with the routing device.

2. The method according to claim 1, wherein Before using the SSID of the virtual access point and the first password to establish a first communication connection with the routing device, the method further includes: Obtaining the first password according to the identifier of the first electronic device.

3. The method according to claim 1 or 2, characterized in that, Before sending the network detection frame to the routing device, the method further includes: Generating the target SSID according to a preset SSID naming rule and the identifier of the first electronic device.

4. A device network configuration method, characterized in that, The method is applied to a routing device, and the method includes: Receiving a network detection frame from a first electronic device, where the network detection frame includes: a target service set identifier (SSID), and the target SSID includes: an identifier of the first electronic device; Obtaining a first password according to the identifier of the first electronic device; Using the target SSID as the SSID of a virtual access point and using the first password as the connection password of the virtual access point to establish the virtual access point; Sending a probe response including the SSID of the virtual access point, so that the first electronic device uses the SSID of the virtual access point and the first password to establish a first communication connection with the routing device; Receive a first instruction from the cloud platform; the first instruction is used to instruct the routing device to send connection parameters of the actual access point to the first electronic device; the first instruction is sent after the cloud platform passes the legality verification of the first electronic device; Send, through the first communication connection, the connection parameters of the actual access point of the routing device to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to establish a second communication connection with the routing device; The obtaining the first password according to the identifier of the first electronic device includes: Send the identifier of the first electronic device to the cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device; Receive the first password sent by the cloud platform.

5. The method according to claim 4, wherein Before obtaining the first password according to the identifier of the first electronic device, the method further includes: Judge whether the target SSID conforms to a preset SSID naming rule; If it is determined that the target SSID conforms to the preset SSID naming rule, obtain the first password according to the identifier of the first electronic device.

6. The method according to claim 4, characterized in that, After sending the connection parameters of the actual access point of the routing device to the first electronic device, the method further includes: Delete the virtual access point.

7. A device network configuration method, characterized in that, The method is applied to a user terminal, and the method includes: Respond to an operation of adding a new device triggered by the user, and send a device network configuration instruction to the cloud platform; the device network configuration instruction includes: a user identifier; Display a first prompt message from the cloud platform, the first prompt message includes: the service set identifier SSID of the actual access point of the routing device, and the identifier of the first electronic device, the first prompt message is used to prompt the user to confirm whether to configure the network of the first electronic device through the routing device; the SSID of the actual access point of the routing device, and the identifier of the first electronic device are determined by the cloud platform according to the user identifier; In response to an operation triggered by a user to start network configuration for the first electronic device, send a network configuration instruction for the first electronic device to the cloud platform, so that the cloud platform sends a first instruction to the routing device; the first instruction is used to instruct the routing device to send connection parameters of the actual access point to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to connect to the routing device; wherein, the routing device sends the connection parameters of the actual access point to the first electronic device through a first communication connection, and the first communication connection is established by the first electronic device according to the SSID of the virtual access point and a first password with the routing device; the virtual access point is established by the routing device using the target service set identifier SSID as the SSID of the virtual access point and using the first password as the connection password of the virtual access point, and the first password is obtained by the routing device according to the identifier of the first electronic device, and the identifier of the first electronic device is included in the target SSID, and the target SSID is included in the network probe frame received by the routing device from the first electronic device; wherein, the first password is obtained by the routing device by sending the identifier of the first electronic device to the cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device.

8. A device network configuration device, characterized in that, The device is applied to a first electronic device, and the device includes: A sending module, configured to send a network probe frame to a routing device, where the network probe frame includes: a target service set identifier SSID, and the target SSID includes: an identifier of the first electronic device; A first receiving module, configured to receive a probe response from the routing device; the probe response is sent after the routing device uses the target SSID as the service set identifier SSID of the virtual access point and uses a first password as the connection password of the virtual access point to establish the virtual access point; the first password is obtained by the routing device according to the identifier of the first electronic device; the probe response includes: the SSID of the virtual access point; wherein, the first password is obtained by the routing device by sending the identifier of the first electronic device to the cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device; A first processing module, configured to establish a first communication connection with the routing device using the SSID of the virtual access point and the first password; A second receiving module, configured to receive, through the first communication connection, connection parameters of the actual access point of the routing device from the routing device; A second processing module, configured to establish a second communication connection with the routing device using the connection parameters of the actual access point; The sending module is further configured to, after establishing a first communication connection with the routing device and before receiving, through the first communication connection, connection parameters of the actual access point of the routing device from the routing device, send a device verification request to the cloud platform through the first communication connection, so that the cloud platform verifies the legality of the first electronic device according to the identifier of the first electronic device included in the device verification request, and when the legality verification passes, send a first instruction to the routing device; the first instruction is used to instruct the routing device to send the connection parameters of the actual access point to the first electronic device.

9. A device network configuration device, characterized in that, The apparatus is applied to a routing device, and the apparatus includes: a receiving module, configured to receive a network probe frame from a first electronic device, where the network probe frame includes: a target service set identifier SSID, and the target SSID includes: an identifier of the first electronic device; a processing module, configured to obtain a first password according to the identifier of the first electronic device; use the target SSID as the service set identifier SSID of a virtual access point, and use the first password as the connection password of the virtual access point, and establish the virtual access point; a sending module, configured to send a probe response including the SSID of the virtual access point, so that the first electronic device uses the SSID of the virtual access point and the first password to establish a first communication connection with the routing device; through the first communication connection, send the connection parameters of the actual access point of the routing device to the first electronic device, so that the first electronic device uses the connection parameters of the actual access point to establish a second communication connection with the routing device; The receiving module is further configured to, before sending, through the first communication connection, the connection parameters of the actual access point of the routing device to the first electronic device, receive a first instruction from the cloud platform; where the first instruction is used to instruct the routing device to send the connection parameters of the actual access point to the first electronic device; the first instruction is sent after the cloud platform passes the legality verification of the first electronic device; The sending module is specifically configured to send the identifier of the first electronic device to the cloud platform, so that the cloud platform obtains the first password according to the identifier of the first electronic device and sends the first password to the routing device; The receiving module is further configured to receive the first password sent by the cloud platform.

Citation Information

Patent Citations

  • Methods, devices and systems for dynamic network access administration

    CN106134143A

  • Network distribution method and system

    CN114095918A