A network distribution method and device
By generating unique authorization codes and using a key negotiation mechanism on the server, the security vulnerabilities and operational inconveniences in the network configuration process of smart home devices are resolved, enabling secure and convenient network configuration for wireless access devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-19
- Publication Date
- 2026-03-27
AI Technical Summary
Existing smart home device configuration methods have security vulnerabilities, requiring users to manually input information about wireless access devices, which is inconvenient and lacks security.
By generating a unique authorization code on the server, electronic devices and wireless access devices negotiate a key to achieve encrypted network configuration information transmission, reducing manual intervention and improving security.
Users are not required to manually input wireless access device information, ensuring the security and ease of operation of the network configuration process, avoiding impact on other devices' services, and improving network configuration efficiency and security.
Smart Images

Figure CN115643565B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a network configuration method and device. BACKGROUND
[0002] With the development and popularization of the Internet of Things and smart home, various smart home devices have been launched by various manufacturers. The smart home devices can be, for example, smart cameras, smart speakers, smart plugs, etc. Usually, these devices need to be connected to the home Wi-Fi to work normally.
[0003] The above-mentioned smart home devices are not convenient for users to directly input network configuration information (such as the name and password of the router). In order to solve this problem, users can use mobile phones, tablet computers and other electronic devices to configure the network for the above-mentioned electronic devices which are not convenient for users to directly input network configuration information. At present, various manufacturers have implemented various simple network configuration methods, but these network configuration methods have some security vulnerabilities, which brings great challenges to the information security of users. Therefore, how to realize safe and convenient network configuration is a problem to be solved. SUMMARY
[0004] The embodiments of the present application provide a network configuration method and device, which improve the security of the wireless access device when configuring the network for the electronic device, reduce the manual intervention in the network configuration process (for example, the user does not need to manually input the name and password of the wireless local area network where the wireless access device is located), and improve the user experience.
[0005] In a first aspect, the embodiments of the present application provide a network configuration method, which can be applied to a network configuration system including a first electronic device, a wireless access device and a server. The method includes: the first electronic device accesses the unauthenticated network of the wireless access device. The wireless access device sends a first request message to the server. After receiving the first request message, the server generates a first authorization code, wherein the first authorization code is different from the authorization code generated by the server after receiving the request message of other electronic devices sent by the wireless access device. The wireless access device and the first electronic device obtain the first authorization code, and negotiate a first key based on the first authorization code. The wireless access device encrypts the network configuration information of the wireless local area network where the wireless access device is located based on the first key, obtains encrypted network configuration information, and sends the encrypted network configuration information to the first electronic device. The first electronic device receives the encrypted network configuration information, decrypts the encrypted network configuration information based on the first key, obtains the network configuration information, and connects to the wireless local area network where the wireless access device is located based on the network configuration information.
[0006] In some implementations, the first authorization code is randomly generated by the server in response to a request message from the different electronic device, and the authorization code can be randomly generated by the server according to a preset random number generation algorithm; in some implementations, the server can also generate the same authorization code for different electronic devices.
[0007] In some other implementations, the server can also generate the first authorization code and the second authorization code, and the server sends the first authorization code and the second authorization code to the wireless access device, the wireless access device saves the first authorization code locally, and the wireless access device sends the second authorization code to the first electronic device. Then, the wireless access device and the first electronic device negotiate to obtain the first key based on the first authorization code and the second authorization code. When the first authorization code and the second authorization code are the same, the wireless access device and the first electronic device negotiate to obtain the first key based on the same authorization code. When the first authorization code and the second authorization code are different, the wireless access device and the first electronic device negotiate to obtain the first key based on different authorization codes.
[0008] The first electronic device can be any one of the following: a smart lamp, a smart oven, a smart fan, a smart air conditioner, a smart television, a smart large screen, a smart bracelet, a smart watch, a smart sound box, a smart refrigerator, a smart door and window, a smart car, a smart monitor, a smart robot, a smart camera, etc.
[0009] Through the method of the first aspect, first, the manual intervention in the network configuration process can be reduced. Specifically, the network configuration method does not require the user to input the name and password of the wireless local area network in which the wireless access device is located, and the operation is simple. Second, in the network configuration process, the wireless access device is always in the AP mode. In this way, the ongoing business of other devices connected to the wireless access device will not be affected. Third, the authorization codes generated by the server for different electronic devices are different, which ensures that the high-intensity channels used by each electronic device are different. This scheme improves the security of the transmission of sensitive information (such as the name and password of the wireless local area network in which the wireless access device is located) and ensures the security of the network configuration process.
[0010] In combination with the first aspect, in a possible implementation, before the wireless access device and the first electronic device obtain the first authorization code, the method further includes: the first electronic device sends first authentication information stored locally by the first electronic device to the server through the wireless access device; the server receives the first authentication information and determines that the first electronic device is a legal device according to the first authentication information.
[0011] The server determines that the first electronic device is a legal device when the first authentication information satisfies the first condition.
[0012] In some implementations, the first authentication information includes first registration information.
[0013] After the server receives the first request information, before the server receives the first authentication information sent by the wireless access device, the server generates the first registration information (for example, a registration code) and saves the first registration information locally to obtain the second registration information. The server sends the first registration information to the first electronic device through the wireless access device. After receiving the first registration information, the first electronic device saves the first registration information locally.
[0014] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the first electronic device saved locally by the server. That is, when the server confirms that the first registration information of the first electronic device sent through the wireless access device is the registration information of the first electronic device sent by the server through the wireless access device before, the server can preliminarily determine that the electronic device is a legal device.
[0015] In some other implementations, the first authentication information includes the first registration information and first verification information. The first verification information can be any one of a digital certificate or a KPI certificate.
[0016] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the first electronic device saved locally by the server. And the first verification information is legal verification information.
[0017] Specifically, before determining that the first verification information is legal verification information, the server generates a first random number and sends the first random number to the first electronic device through the wireless access device. After receiving the first random number, the first electronic device encrypts the first random number according to the first private key to obtain an encrypted first random number. The first electronic device sends the encrypted first random number to the server through the wireless access device. After receiving the encrypted first random number, the server decrypts the encrypted first random number according to the first public key preset in the first verification information to obtain the first random number, and then determines that the first verification information is legal verification information.
[0018] After determining that the first electronic device is a legal device through the first registration information, the server further verifies the legality of the first electronic device according to the verification information. In this way, the security of subsequent transmission of network configuration information can be improved.
[0019] In this way, only after the server determines that the first electronic device is a legal device through the first authentication information, the server generates the first authorization code for the first electronic device and the wireless access device to negotiate the first key to pass the network configuration information. When the server determines that the first electronic device is not a legal device through the first authentication information, the server does not generate the first authorization code, and the first electronic device cannot obtain the network configuration information, and the first electronic device cannot join the wireless local area network in which the wireless access device is located. In this way, the security in the network configuration process is ensured.
[0020] In combination with the first aspect, in a possible implementation manner, before the first electronic device sends the first authentication information locally stored by the first electronic device to the server through the wireless access device, the method further includes: the first electronic device negotiates a second key based on the preset parameter locally saved by the first electronic device and the wireless access device based on the preset parameter locally saved by the wireless access device; and the first electronic device sends the first authentication information locally stored by the first electronic device to the server through the wireless access device, specifically including: the first electronic device encrypts the first authentication information based on the second key to obtain encrypted first authentication information; the first electronic device sends the encrypted first authentication information to the wireless access device; the wireless access device decrypts the encrypted first authentication information based on the second key to obtain the first authentication information after receiving the encrypted first authentication information; and the wireless access device sends the first authentication information to the server.
[0021] In some implementation manners, before the wireless access device sends the first registration information to the first electronic device, the wireless access device encrypts the first registration information based on the second key to obtain encrypted first registration information. The wireless access device sends the encrypted first registration information to the first electronic device. In this way, the security of information transmission between the first electronic device and the wireless access device can be ensured.
[0022] In this way, before the first electronic device initiates the registration request to the server (or before the first electronic device sends the first authentication information to the server through the wireless access device), if the first electronic device and the wireless access device can negotiate the second key based on the preset parameter locally stored by the first electronic device, it can be considered that the first electronic device is a preliminary legal device, and the first electronic device can initiate the registration request to the server through the wireless access device. On the one hand, it can be ensured that the first electronic device initiating the registration request to the server is a preliminary legal electronic device, that is, the first electronic device saves the preset parameter. On the other hand, the information transmitted between the first electronic device and the wireless access device is encrypted based on the second key before transmission, and the security of information transmission between the first electronic device and the wireless access device can be ensured.
[0023] With reference to the first aspect, in a possible implementation manner, the first authorization code comprises m authorization codes, m is a positive integer greater than or equal to 1; the wireless access device and the first electronic device obtain the first key based on the first authorization code, specifically comprising: the wireless access device and the first electronic device obtain the first key based on x authorization codes in the first authorization code and y authorization codes in the first authorization code respectively; x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
[0024] That is, the server sends the first authorization code to the wireless access device, the wireless access device saves the first authorization code locally, and the wireless access device also needs to send the first authorization code to the first electronic device. The wireless access device and the first electronic device can select part or all of the authorization codes in the first authorization code to obtain the first key.
[0025] In some implementation manners, the x authorization codes in the first authorization code and the y authorization codes in the first authorization code are the same, and then the wireless access device and the first electronic device obtain the first key based on the same authorization code.
[0026] In other implementation manners, the x authorization codes in the first authorization code and the y authorization codes in the first authorization code are different, and then the wireless access device and the first electronic device obtain the first key based on different authorization codes.
[0027] With reference to the first aspect, in a possible implementation manner, before the first electronic device accesses the authentication-free network of the wireless access device, the method further comprises: the wireless access device sends access information of the authentication-free network in response to a first user operation; and the first electronic device accesses the authentication-free network of the wireless access device, specifically comprising: the first electronic device receives the access information and accesses the authentication-free network of the wireless access device based on the access information. The first user operation can be a press operation of a network configuration key of the wireless access device, and the access information of the authentication-free network can comprise an identifier of the authentication-free network and a physical address of the wireless access device, etc. Only after receiving the first user operation (i.e. obtaining the authorization of the user), the wireless access device will send the access information of the authentication-free network of the wireless access device.
[0028] In some implementation manners, the wireless access device persistently sends the access information of the authentication-free network in response to the first user operation.
[0029] After the first electronic device accesses the wireless local area network in which the wireless access device is located, the third electronic device accesses the unauthenticated network of the wireless access device. The wireless access device sends a second request message to the server. After the server receives the second request message, the server generates a second authorization code, where the second authorization code is different from the authorization code generated by the server after receiving the request message of the other electronic device sent by the wireless access device. The wireless access device and the third electronic device obtain the second authorization code, and negotiate a second key based on the second authorization code. The wireless access device encrypts the network configuration information of the wireless local area network in which the wireless access device is located based on the second key, obtains encrypted network configuration information, and sends the encrypted network configuration information to the third electronic device. The third electronic device receives the encrypted network configuration information, decrypts the encrypted network configuration information based on the second key, obtains the network configuration information, and connects to the wireless local area network in which the wireless access device is located based on the network configuration information. In this way, the wireless access device only needs to receive a user operation once and continuously sends the access information of the unauthenticated network. Before the wireless access device stops sending the access information of the unauthenticated network, one or more electronic devices can access the unauthenticated network of the wireless access device. Then, the wireless access device can complete the network configuration process with the other one or more electronic devices (for example, the third electronic device) in the same way as the first electronic device. That is, the wireless access device only needs to receive a user operation once and can complete the network configuration process with multiple electronic devices. Compared with the current wireless access device that can only complete the network configuration process with one electronic device after receiving a user operation once, the network configuration efficiency of the electronic device is improved.
[0030] In some implementations, after the wireless access device completes the network configuration process with the third electronic device, the wireless access device determines that the number of electronic devices connected to the unauthenticated network of the wireless access device is 0, and then the wireless access device stops sending the access information of the unauthenticated network.
[0031] In some implementations, after the wireless access device completes the network configuration process with the third electronic device, the wireless access device determines that the number of electronic devices connected to the unauthenticated network of the wireless access device is 0, and then the wireless access device stops sending the access information of the unauthenticated network.
[0032] In combination with the first aspect, in a possible implementation, the network configuration system further includes a second electronic device. Before the server generates the first authorization code, the method further includes: the second electronic device receives a second user operation, where the second user operation is used to instruct the wireless access device to send the access information of the unauthenticated network.
[0033] In some implementations, the second user operation is used to control the wireless access device to send the access information of the unauthenticated network. Specifically, after the wireless access device discovers the electronic device in the ready-to-configure-network state, the wireless access device displays prompt information on an application on the mobile phone of the network-connected second electronic device through the server, so that the user can see the prompt information, and the prompt information is used to prompt the user to input the second user operation on a configuration interface of the application, so that the wireless access device sends the access information of the unauthenticated network. That is, the user can not press the configuration key (i.e., the first user operation) on the wireless access device, and the wireless access device can also send the access information of the unauthenticated network. It can be ensured that the user can control the wireless access device to send the access information of the unauthenticated network on the application when the user is not convenient to press the configuration key of the wireless access device.
[0034] And this scheme can also be applied to the "remote configuration network" application scenario. That is, the user operating the first electronic device is not familiar with the process of connecting the first electronic device to the wireless access device, and even if the user operating the second electronic device is not near the user operating the first electronic device, the user operating the second electronic device can remotely control the first electronic device to connect to the wireless access device through the second operation on the second electronic device.
[0035] In some implementations, the second user operation is used to control the wireless access device to send the access information of the unauthenticated network. Specifically, after the wireless access device discovers the electronic device in the ready-to-configure-network state, the wireless access device displays prompt information on an application on the mobile phone of the network-connected second electronic device through the server, so that the user can see the prompt information, and the prompt information is used to prompt the user to input the second user operation on a configuration interface of the application, so that the wireless access device sends the access information of the unauthenticated network. That is, the user can not press the configuration key (i.e., the first user operation) on the wireless access device, and the wireless access device can also send the access information of the unauthenticated network. It can be ensured that the user can control the wireless access device to send the access information of the unauthenticated network on the application when the user is not convenient to press the configuration key of the wireless access device.
[0036] In combination with the first aspect, in a possible implementation, the number of the first electronic devices is one or more, and before the second electronic device receives the second user operation of the user, the method further includes: the second electronic device displays a first user interface, and the first user interface includes one or more device identifiers corresponding to the one or more first electronic devices; and after the second electronic device receives the second user operation of the user, the method further includes: the second electronic device displays a second user interface, and the second user interface includes one or more state identifiers corresponding to the one or more first electronic devices, and the one or more state identifiers are used to indicate that the one or more first electronic devices have completed the configuration network or the one or more first electronic devices have connected to the network.
[0037] The second user interface can further include one or more device identifiers corresponding to the one or more first electronic devices and the like.
[0038] In this way, after the server verifies that the first electronic device is a legal device, the server associates the first electronic device with the wireless access device with the same account. In this way, the user can view the networking status of the second electronic device on the application in the second electronic device, and the networking status includes but is not limited to online, offline, in-network configuration, network configuration failure, and the like.
[0039] In combination with the first aspect, in a possible implementation, before the first electronic device accesses the authentication-free network of the wireless access device, the method further includes: the first electronic device broadcasts a network configuration information element of the first electronic device, where the network configuration information element is used to enable other electronic devices to discover the first electronic device in the network configuration state. The network configuration information element of the first electronic device includes one or more of the following: an identifier of the first electronic device, a capability of the first electronic device supporting interconnection, a physical address of the first electronic device, and the like.
[0040] In combination with the first aspect, in a possible implementation, the network configuration information includes a name and a password of a wireless local area network in which the wireless access device is located.
[0041] In the second aspect, the embodiments of the present application provide a network configuration method applied to a first electronic device, and the method includes: accessing an authentication-free network of a wireless access device; obtaining a first authorization code, where the first authorization code is generated by a server, and the first authorization code is different from an authorization code received by other electronic devices accessing the authentication-free network of the wireless access device; negotiating a first key with the wireless access device based on the first authorization code; receiving encrypted network configuration information sent by the wireless access device, and decrypting the encrypted network configuration information based on the first key to obtain the network configuration information; and connecting to a wireless local area network in which the wireless access device is located based on the network configuration information.
[0042] In some implementations, the first authorization code is randomly generated by the server in response to a request message of a different electronic device, where the authorization code can be randomly generated by the server according to a preset random number generation algorithm; in some implementations, the server can also generate the same authorization code for different electronic devices.
[0043] In other implementations, the server can also generate the first authorization code and the second authorization code, the server sends the first authorization code and the second authorization code to the wireless access device, the wireless access device saves the first authorization code locally, and the wireless access device sends the second authorization code to the first electronic device. Subsequently, the wireless access device and the first electronic device negotiate the first key based on the first authorization code and the second authorization code. When the first authorization code and the second authorization code are the same, the wireless access device and the first electronic device negotiate the first key based on the same authorization code. When the first authorization code and the second authorization code are different, the wireless access device and the first electronic device negotiate the first key based on different authorization codes.
[0044] The first electronic device can be any one of the following: a smart lamp, a smart oven, a smart fan, a smart air conditioner, a smart television, a smart large screen, a smart bracelet, a smart watch, a smart speaker, a smart refrigerator, a smart door and window, a smart car, a smart monitor, a smart robot, a smart camera, and the like.
[0045] By the method of the second aspect, first, the manual intervention in the network configuration process can be reduced. Specifically, the network configuration method does not require the user to input the name and password of the wireless local area network in which the wireless access device is located, and the operation is simple. Second, in the network configuration process, the wireless access device is always in the AP mode. In this way, the ongoing services of other devices connected to the wireless access device are not affected. Third, the authorization code generated by the server for different electronic devices is different, which ensures that the high-density channel used by each electronic device is different. This scheme improves the security of the transmission of sensitive information (such as the name and password of the wireless local area network in which the wireless access device is located) and ensures the security of the network configuration process.
[0046] In combination with the second aspect, in a possible implementation manner, before the first authorization code is acquired, the method further includes: sending, by the wireless access device, first authentication information stored locally by the first electronic device to the server; wherein the first authentication information is used by the server to determine that the first electronic device is a legal device.
[0047] When the server determines that the first authentication information satisfies the first condition, it is determined that the first electronic device is a legal device.
[0048] In some implementation manners, the first authentication information includes first registration information.
[0049] After the server receives the first request information, before the server receives the first authentication information sent by the wireless access device, the server generates first registration information (for example, a registration code) and saves the first registration information locally to obtain second registration information. The server sends the first registration information to the first electronic device through the wireless access device. After receiving the first registration information, the first electronic device saves the first registration information locally.
[0050] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the first electronic device saved locally by the server. That is, when the server confirms that the first registration information sent by the first electronic device through the wireless access device is the registration information of the first electronic device sent by the server through the wireless access device before, the server can preliminarily determine that the electronic device is a legal device.
[0051] In other implementation manners, the first authentication information includes first registration information and first verification information. The first verification information can be any one of a digital certificate or a KPI certificate.
[0052] The first condition comprises: the first registration information in the first authentication information is the same as the second registration information of the first electronic device saved locally by the server. The first verification information is legal verification information.
[0053] Specifically, before determining that the first verification information is legal verification information, the server generates a first random number and sends the first random number to the first electronic device through the wireless access device. After receiving the first random number, the first electronic device encrypts the first random number according to the first private key to obtain an encrypted first random number. The first electronic device sends the encrypted first random number to the server through the wireless access device. After receiving the encrypted first random number, the server decrypts the encrypted first random number according to the first public key preset in the first verification information to obtain the first random number, and then determines that the first verification information is legal verification information.
[0054] After determining that the first electronic device is a legal device through the first registration information, the server further verifies the legality of the first electronic device according to the verification information. In this way, the security of subsequent transmission of network configuration information can be improved.
[0055] In this way, only after the server determines that the first electronic device is a legal device through the first authentication information, the server generates the first authorization code for the first electronic device and the wireless access device to negotiate the first key to pass the network configuration information. When the server determines that the first electronic device is not a legal device through the first authentication information, the server will not generate the first authorization code, and the first electronic device cannot obtain the network configuration information, and the first electronic device cannot join the wireless local area network in which the wireless access device is located. In this way, the security in the network configuration process is ensured.
[0056] In combination with the second aspect, in a possible implementation manner, before sending the first authentication information stored locally by the first electronic device to the server through the wireless access device, the method further comprises: negotiating a second key based on the preset parameters saved locally and the second key negotiated by the wireless access device based on the preset parameters saved locally; and sending the first authentication information stored locally by the first electronic device to the server through the wireless access device, specifically comprising: encrypting the locally stored first authentication information based on the second key to obtain encrypted first authentication information; and sending the encrypted first authentication information to the wireless access device; wherein the encrypted first authentication information is used for the wireless access device to obtain the first authentication information by decrypting the encrypted first authentication information based on the second key, and send the first authentication information to the server.
[0057] In some implementations, before the wireless access device sends the first registration information to the first electronic device, the wireless access device encrypts the first registration information with the second key to obtain encrypted first registration information. The wireless access device sends the encrypted first registration information to the first electronic device. In this way, the security of information transmission between the first electronic device and the wireless access device can be ensured.
[0058] In this way, before the first electronic device initiates a registration request to the server (or before the first electronic device sends the first authentication information to the server through the wireless access device), if the first electronic device and the wireless access device can obtain the second key through negotiation based on the pre-stored parameters, the first electronic device can be considered as a preliminary legitimate device, and the first electronic device can initiate a registration request to the server through the wireless access device. On the one hand, the first electronic device that initiates a registration request to the server can be ensured to be a preliminary legitimate electronic device, i.e., the first electronic device stores the pre-stored parameters. On the other hand, the information transmitted between the first electronic device and the wireless access device is encrypted by the second key before transmission, and the security of information transmission between the first electronic device and the wireless access device can be ensured.
[0059] In combination with the second aspect, in a possible implementation, the first authorization code includes m authorization codes, m is a positive integer greater than or equal to 1; and the first key is determined based on the first authorization code and the wireless access device, specifically including: the first key is obtained based on x authorization codes in the first authorization code and y authorization codes in the first authorization code negotiated by the wireless access device; wherein x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
[0060] That is, the server sends the first authorization code to the wireless access device, the wireless access device stores the first authorization code locally, and the wireless access device also needs to send the first authorization code to the first electronic device. The wireless access device and the first electronic device can select part or all of the authorization codes in the first authorization code to negotiate the first key.
[0061] In some implementations, the x authorization codes in the first authorization code and the y authorization codes in the first authorization code are the same, and the wireless access device and the first electronic device negotiate the first key based on the same authorization codes.
[0062] In some other implementations, the x authorization codes in the first authorization code and the y authorization codes in the first authorization code are different, and the wireless access device and the first electronic device negotiate the first key based on different authorization codes.
[0063] With reference to the second aspect, in a possible implementation manner, before accessing the unauthenticated network of the wireless access device, the method further includes: receiving access information sent by the wireless access device; and accessing the unauthenticated network of the wireless access device, specifically including: accessing the unauthenticated network of the wireless access device based on the access information. The access information of the unauthenticated network can include an identifier of the unauthenticated network, a physical address of the wireless access device, and the like.
[0064] With reference to the second aspect, in a possible implementation manner, before accessing the unauthenticated network of the wireless access device, the method further includes: broadcasting a network configuration element of the first electronic device, where the network configuration element is used to enable other electronic devices to discover the first electronic device in the network configuration state.
[0065] With reference to the second aspect, in a possible implementation manner, the network configuration information includes a name and a password of a wireless local area network in which the wireless access device is located.
[0066] With reference to the third aspect, the embodiments of the present application provide a network configuration method, applied to a wireless access device, and the method includes: after a first electronic device accesses an unauthenticated network of the wireless access device, sending a first request message to a server; where the first request message is used to enable the server to generate a first authorization code, and the first authorization code is different from an authorization code sent by the wireless access device to other electronic devices accessing the unauthenticated network of the wireless access device; obtaining the first authorization code, and negotiating and determining a first key with the first electronic device based on the first authorization code; encrypting network configuration information of a wireless local area network in which the wireless access device is located based on the first key, to obtain encrypted network configuration information, and sending the encrypted network configuration information to the first electronic device; where the encrypted network configuration information is used to enable the first electronic device to decrypt the encrypted network configuration information based on the first key, to obtain the network configuration information, and to connect to the wireless local area network in which the wireless access device is located based on the network configuration information.
[0067] In some implementation manners, the first authorization code is randomly generated by the server in response to request messages of different electronic devices, where the authorization code can be randomly generated by the server according to a preset random number generation algorithm; in some implementation manners, the server can also generate the same authorization code for different electronic devices.
[0068] In some implementations, the server can also generate the first authorization code and the second authorization code, and the server sends the first authorization code and the second authorization code to the wireless access device, the wireless access device saves the first authorization code locally, and the wireless access device sends the second authorization code to the first electronic device. Then, the wireless access device and the first electronic device negotiate the first key based on the first authorization code and the second authorization code. When the first authorization code and the second authorization code are the same, the wireless access device and the first electronic device negotiate the first key based on the same authorization code. When the first authorization code and the second authorization code are different, the wireless access device and the first electronic device negotiate the first key based on the different authorization codes.
[0069] By the method of the third aspect, first, the manual intervention in the network configuration process can be reduced. Specifically, the network configuration method does not require the user to input the name and password of the wireless local area network in which the wireless access device is located, and the operation is simple. Second, during the network configuration process, the wireless access device is always in the AP mode. In this way, the ongoing service of other devices connected to the wireless access device will not be affected. Third, the authorization codes generated by the server for different electronic devices are different, which ensures that the high-intensity channels used by each electronic device are different. This scheme improves the security of the transmission of sensitive information (such as the name and password of the wireless local area network in which the wireless access device is located) and ensures the security of the network configuration process.
[0070] In combination with the third aspect, in a possible implementation, before obtaining the first authorization code, the method further includes: receiving the first authentication information stored locally by the first electronic device and sent by the first electronic device; and sending the first authentication information to the server; wherein the first authentication information is used by the server to determine that the first electronic device is a legal device.
[0071] When the server determines that the first authentication information satisfies the first condition, the server determines that the first electronic device is a legal device.
[0072] In some implementations, the first authentication information includes first registration information.
[0073] After the server receives the first request information, before the server receives the first authentication information sent by the wireless access device, the server generates first registration information (for example, a registration code) and saves the first registration information locally to obtain second registration information. The server sends the first registration information to the first electronic device through the wireless access device. After receiving the first registration information, the first electronic device saves the first registration information locally.
[0074] The first condition comprises: the first registration information in the first authentication information is identical to second registration information of the first electronic device saved locally by the server. That is, when the server confirms that the first registration information sent by the first electronic device through the wireless access device is the registration information of the first electronic device sent by the server through the wireless access device previously, the server can preliminarily determine that the electronic device is a legal device.
[0075] In some other implementations, the first authentication information comprises the first registration information and first verification information. The first verification information can be any one of a digital certificate or a KPI certificate.
[0076] The first condition comprises: the first registration information in the first authentication information is identical to second registration information of the first electronic device saved locally by the server. And the first verification information is legal verification information.
[0077] Specifically, before determining that the first verification information is legal verification information, the server generates a first random number and sends the first random number to the first electronic device through the wireless access device. After receiving the first random number, the first electronic device encrypts the first random number according to the first private key to obtain an encrypted first random number. The first electronic device sends the encrypted first random number to the server through the wireless access device. After receiving the encrypted first random number, the server decrypts the encrypted first random number according to the first public key preset in the first verification information to obtain the first random number, and then determines that the first verification information is legal verification information.
[0078] After determining that the first electronic device is a legal device through the first registration information, the server further verifies the legality of the first electronic device according to the verification information. In this way, the security of subsequent transmission of the network configuration information can be improved.
[0079] In this way, only after the server determines that the first electronic device is a legal device through the first authentication information, the server will generate the first authorization code for the first electronic device and the wireless access device to negotiate the first key to pass the network configuration information. When the server determines that the first electronic device is not a legal device through the first authentication information, the server will not generate the first authorization code, and the first electronic device cannot obtain the network configuration information, and the first electronic device cannot join the wireless local area network in which the wireless access device is located. In this way, the security in the network configuration process is ensured.
[0080] In combination with the third aspect, in a possible implementation manner, before receiving the first authentication information locally stored by the first electronic device and sent by the first electronic device, the method further includes: obtaining the second key based on the preset parameter locally stored and the second key negotiated by the first electronic device based on the preset parameter; and receiving the first authentication information locally stored by the first electronic device and sent by the first electronic device, specifically including: receiving the first authentication information encrypted based on the second key and sent by the first electronic device; and before sending the first authentication information to the server, the method further includes: decrypting the encrypted first authentication information based on the second key to obtain the first authentication information.
[0081] In some implementation manners, before the wireless access device sends the first registration information to the first electronic device, the wireless access device encrypts the first registration information based on the second key to obtain encrypted first registration information. The wireless access device sends the encrypted first registration information to the first electronic device. In this way, the security of information transmission between the first electronic device and the wireless access device can be ensured.
[0082] In this way, before the first electronic device initiates the registration request to the server (or before the first electronic device sends the first authentication information to the server through the wireless access device), if the first electronic device and the wireless access device can negotiate the second key based on the preset parameter locally stored, it can be considered that the first electronic device is a preliminary legitimate device, and the first electronic device can initiate the registration request to the server through the wireless access device. On the one hand, it can be ensured that the first electronic device initiating the registration request to the server is a preliminary legitimate electronic device, that is, the preset parameter is stored in the first electronic device. On the other hand, the information transmitted between the first electronic device and the wireless access device is encrypted based on the second key and then transmitted, so that the security of information transmission between the first electronic device and the wireless access device can be ensured.
[0083] In combination with the third aspect, in a possible implementation manner, the first authorization code includes m authorization codes, and m is a positive integer greater than or equal to 1; and the first key is negotiated and determined with the first electronic device, specifically including: the first key is negotiated based on x authorization codes in the first authorization code and y authorization codes in the first authorization code based on the first electronic device; and x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
[0084] That is, the server sends the first authorization code to the wireless access device, the wireless access device stores the first authorization code locally, and the wireless access device also needs to send the first authorization code to the first electronic device. The wireless access device and the first electronic device can select part or all of the authorization codes in the first authorization code to negotiate the first key.
[0085] In some implementations, the x authorization codes in the first authorization code and the y authorization codes in the first authorization code are the same, and the wireless access device and the first electronic device negotiate the first key based on the same authorization code.
[0086] In some other implementations, the x authorization codes in the first authorization code and the y authorization codes in the first authorization code are different, and the wireless access device and the first electronic device negotiate the first key based on different authorization codes.
[0087] In combination with the third aspect, in a possible implementation, before the first electronic device accesses the unauthenticated network of the wireless access device, the method further includes: in response to a first user operation, sending access information of the unauthenticated network; wherein the access information is used for the first electronic device to access the unauthenticated network of the wireless access device. The first user operation can be a press operation on a network configuration key of the wireless access device, and the access information of the unauthenticated network can include an identifier of the unauthenticated network and a physical address of the wireless access device, etc. The wireless access device only sends the access information of the unauthenticated network of the wireless access device after receiving the first user operation (i.e., obtaining authorization of the user).
[0088] In some implementations, the wireless access device persistently sends the access information of the unauthenticated network in response to the first user operation.
[0089] After the first electronic device accesses the wireless local area network where the wireless access device is located, the third electronic device accesses the unauthenticated network of the wireless access device. The wireless access device sends a second request message to the server. After the server receives the second request message, the server generates a second authorization code, where the second authorization code is different from the authorization code generated by the server after receiving the request message of the other electronic device sent by the wireless access device. The wireless access device and the third electronic device obtain the second authorization code, and negotiate a second key based on the second authorization code. The wireless access device encrypts the network configuration information of the wireless local area network where the wireless access device is located based on the second key, obtains encrypted network configuration information, and sends the encrypted network configuration information to the third electronic device. The third electronic device receives the encrypted network configuration information, decrypts the encrypted network configuration information based on the second key, obtains the network configuration information, and connects to the wireless local area network where the wireless access device is located based on the network configuration information. In this way, the wireless access device only needs to receive a user operation once and continuously sends the access information of the unauthenticated network. Before the wireless access device stops sending the access information of the unauthenticated network, one or more electronic devices can access the unauthenticated network of the wireless access device. Then, the wireless access device can complete the network configuration process with the other one or more electronic devices (for example, the third electronic device) in the same network configuration process as the first electronic device. That is, the wireless access device only needs to receive a user operation once and can complete the network configuration process with multiple electronic devices. Compared with the current wireless access device that receives a user operation once and can only complete the network configuration process with one electronic device, the network configuration efficiency of the electronic device is improved.
[0090] In some implementations, after the wireless access device completes the network configuration process with the third electronic device, the wireless access device determines that the number of electronic devices connected to the unauthenticated network of the wireless access device is 0, and then the wireless access device stops sending the access information of the unauthenticated network.
[0091] In some implementations, after the wireless access device completes the network configuration process with the third electronic device, the wireless access device determines that the number of electronic devices connected to the unauthenticated network of the wireless access device is 0, and then the wireless access device stops sending the access information of the unauthenticated network.
[0092] In combination with the third aspect, in a possible implementation, before the first electronic device accesses the unauthenticated network of the wireless access device, the method further includes: receiving the network configuration element of the first electronic device broadcast by the first electronic device, where the network configuration element is used to enable other electronic devices to discover the first electronic device in the network configuration state.
[0093] With reference to the third aspect, in a possible implementation manner, the network configuration information comprises a name and a password of a wireless local area network in which the wireless access device is located.
[0094] In a fourth aspect, an embodiment of the present application provides a network configuration method, applied to a server, and the method comprises the following steps: receiving a first request message, and generating a first authorization code, wherein the first authorization code is different from an authorization code generated by the server after receiving a request message of other electronic device sent by a wireless access device; sending the first authorization code to the wireless access device and a first electronic device, wherein the first authorization code is used for the wireless access device and the first electronic device to negotiate a first key; the first key is used for the wireless access device to encrypt network configuration information of a wireless local area network in which the wireless access device is located based on the first key, to obtain encrypted network configuration information, and to send the encrypted network configuration information to the first electronic device; and the encrypted network configuration information is used for the first electronic device to decrypt the encrypted network configuration information based on the first key, to obtain the network configuration information, and to connect to the wireless local area network based on the network configuration information.
[0095] In some implementation manners, the first authorization code is randomly generated by the server in response to the request message of the different electronic device, wherein the authorization code can be randomly generated by the server according to a preset random number generation algorithm; in some implementation manners, the server can also generate the same authorization code for different electronic devices.
[0096] In other implementation manners, the server can also generate the first authorization code and the second authorization code, the server sends the first authorization code and the second authorization code to the wireless access device, the wireless access device saves the first authorization code to the local, and the wireless access device sends the second authorization code to the first electronic device. Then, the wireless access device and the first electronic device negotiate the first key based on the first authorization code and the second authorization code. When the first authorization code and the second authorization code are the same, the wireless access device and the first electronic device negotiate the first key based on the same authorization code. When the first authorization code and the second authorization code are different, the wireless access device and the first electronic device negotiate the first key based on different authorization codes.
[0097] The first electronic device can be any one of the following: a smart lamp, a smart oven, a smart fan, a smart air conditioner, a smart television, a smart large screen, a smart bracelet, a smart watch, a smart sound box, a smart refrigerator, a smart door and window, a smart car, a smart monitor, a smart robot, a smart camera, etc.
[0098] By the method of the fourth aspect, first, the manual intervention in the network configuration process can be reduced. Specifically, the network configuration method does not require the user to input the name and password of the wireless local area network in which the wireless access device is located, and the operation is simple. Second, in the network configuration process, the wireless access device is always in the AP mode. In this way, the ongoing service of other devices connected to the wireless access device will not be affected. Third, the authorization code generated by the server for different electronic devices is different, which ensures that the high-density channel used by each electronic device is different. The scheme improves the security of the transmission of sensitive information (such as the name and password of the wireless local area network in which the wireless access device is located) and ensures the security of the network configuration process.
[0099] In combination with the fourth aspect, in a possible implementation manner, before the first authorization code is generated, the method further includes: receiving the first authentication information stored locally by the first electronic device and sent by the wireless access device, and determining that the first electronic device is a legal device according to the first authentication information.
[0100] When the server determines that the first authentication information satisfies the first condition, it is determined that the first electronic device is a legal device.
[0101] In some implementation manners, the first authentication information includes first registration information.
[0102] After the server receives the first request information, before the server receives the first authentication information sent by the wireless access device, the server generates the first registration information (for example, a registration code) and saves the first registration information locally to obtain second registration information. The server sends the first registration information to the first electronic device through the wireless access device. After receiving the first registration information, the first electronic device saves the first registration information locally.
[0103] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the first electronic device saved locally by the server. That is, when the server confirms that the first registration information sent by the first electronic device through the wireless access device is the registration information of the first electronic device sent by the server through the wireless access device before, the server can preliminarily determine that the electronic device is a legal device.
[0104] In other implementation manners, the first authentication information includes first registration information and first verification information. The first verification information can be any one of a digital certificate or a KPI certificate.
[0105] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the first electronic device saved locally by the server. And the first verification information is legal verification information.
[0106] Specifically, before determining that the first check information is the legal check information, the server generates a first random number and sends the first random number to the first electronic device through the wireless access device. After receiving the first random number, the first electronic device encrypts the first random number according to the first private key to obtain an encrypted first random number. The first electronic device sends the encrypted first random number to the server through the wireless access device. After receiving the encrypted first random number, the server decrypts the encrypted first random number according to the first public key preset in the first check information to obtain the first random number, and then determines that the first check information is the legal check information.
[0107] After determining that the first electronic device is a legal device through the first registration information, the server further verifies the legality of the first electronic device according to the check information. In this way, the security of subsequent transmission of the network configuration information can be improved.
[0108] In this way, only after the server determines that the first electronic device is a legal device through the first authentication information, the server generates the first authorization code for the first electronic device and the wireless access device to negotiate the first key to pass the network configuration information. When the server determines that the first electronic device is not a legal device through the first authentication information, the server does not generate the first authorization code, and the first electronic device cannot obtain the network configuration information, and the first electronic device cannot join the wireless local area network in which the wireless access device is located. In this way, the security in the network configuration process is ensured.
[0109] In combination with the fourth aspect, in a possible implementation manner, the network configuration information includes a name and a password of the wireless local area network in which the wireless access device is located.
[0110] In the fifth aspect, an embodiment of the present application provides an electronic device, which is a first electronic device, and the first electronic device includes one or more processors, one or more memories, the one or more memories are coupled with the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the one or more processors invoke the computer instructions to enable the first electronic device to perform the method steps performed by the first electronic device in any possible implementation manner of any aspect.
[0111] In the sixth aspect, an embodiment of the present application provides a wireless access device, and the wireless access device includes one or more processors, one or more memories, the one or more memories are coupled with the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the one or more processors invoke the computer instructions to enable the wireless access device to perform the method steps performed by the wireless access device in any possible implementation manner of any aspect.
[0112] In a seventh aspect, an embodiment of the present application provides a chip device, the chip device comprising at least one processor and a memory, the memory being configured to store computer program codes, the computer program codes comprising computer instructions, and the at least one processor being configured to invoke the computer instructions to enable a first electronic device, to which the chip device is installed, to perform the method steps performed by the first electronic device in any possible implementation manner of any of the aspects above.
[0113] In an eighth aspect, an embodiment of the present application provides a chip device, the chip device comprising at least one processor and a memory, the memory being configured to store computer program codes, the computer program codes comprising computer instructions, and the at least one processor being configured to invoke the computer instructions to enable a wireless access device, to which the chip device is installed, to perform the method steps performed by the wireless access device in any possible implementation manner of any of the aspects above.
[0114] In a ninth aspect, an embodiment of the present application provides a readable storage medium, configured to store computer instructions, when the computer instructions are run on a first electronic device, enabling the first electronic device to perform the method steps performed by the first electronic device in any possible implementation manner of any of the aspects above.
[0115] In a tenth aspect, an embodiment of the present application provides a readable storage medium, configured to store computer instructions, when the computer instructions are run on a wireless access device, enabling the wireless access device to perform the method steps performed by the wireless access device in any possible implementation manner of any of the aspects above.
[0116] In an eleventh aspect, an embodiment of the present application provides a computer program product, when the computer program product is run on a first electronic device, enabling the first electronic device to perform the method steps performed by the first electronic device in any possible implementation manner of any of the aspects above.
[0117] In a twelfth aspect, an embodiment of the present application provides a computer program product, when the computer program product is run on a wireless access device, enabling the wireless access device to perform the method steps performed by the wireless access device in any possible implementation manner of any of the aspects above. BRIEF DESCRIPTION OF DRAWINGS
[0118] Figure 1 A method flowchart of a soft access point network configuration method provided by an embodiment of the present application;
[0119] Figure 1A A network configuration interface diagram provided by an embodiment of the present application;
[0120] Figure 2 A method flowchart of a multicast network configuration method provided by an embodiment of the present application;
[0121] Figure 3A method flowchart of an artificial intelligence Internet of Things antenna network configuration scheme provided for an embodiment of the present application is provided.
[0122] Figures 3A-3B A set of network configuration interface diagrams provided for an embodiment of the present application is provided.
[0123] Figure 4 A system architecture schematic diagram provided for an embodiment of the present application is provided.
[0124] Figure 5 A structural schematic diagram of an electronic device 200 provided for an embodiment of the present application is provided.
[0125] Figure 6 A structural schematic diagram of a router 300 provided for an embodiment of the present application is provided.
[0126] Figure 7 A method flowchart of the electronic device 200 connecting to the open SSID of the router 300 provided for an embodiment of the present application is provided.
[0127] Figure 8 A method flowchart of the server 400 generating the registration information of the electronic device 200 and completing the task of the electronic device 200 verification provided for an embodiment of the present application is provided.
[0128] Figure 9 A method flowchart of the electronic device 200 and the router 300 transmitting network configuration information provided for an embodiment of the present application is provided.
[0129] Figures 9A-9F A set of "remote network configuration" UI diagrams provided for an embodiment of the present application is provided.
[0130] Figures 10A-10C A set of "one-key network configuration" UI diagrams provided for an embodiment of the present application is provided.
[0131] Figures 11-13 Several "one-key network configuration" flowcharts provided for an embodiment of the present application are provided.
[0132] Figure 14 A flowchart of a network configuration method provided for an embodiment of the present application is provided. DETAILED DESCRIPTION
[0133] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; the "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0134] Hereinafter, the terms "first" and "second" are only used for description purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more than two.
[0135] The term "user interface (UI)" in the specification and claims of the present application and the drawings is a medium interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form that the user can accept. The user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), etc. The interface source code is parsed, rendered on the terminal device, and finally presented as content that the user can recognize, such as images, texts, button controls, etc. The control (widget) is the basic element of the user interface, and typical controls include toolbar, menu bar, input box, button, scrollbar, image and text. The properties and content of the controls in the interface are defined by tags or nodes, such as XML <textview> 、 <imgview> 、 <videoview>The interface is defined by nodes that specify the controls contained in the interface. One node corresponds to one control or property in the interface, and the nodes are parsed and rendered to present the content visible to the user. In addition, many applications, such as hybrid applications, also contain web pages in the interface. A web page, also referred to as a page, can be understood as a special control embedded in the interface of an application. The web page is a source code written in a specific computer language, such as hyper text markup language (HTML), cascading stylesheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed by a browser or a web page display component similar to the function of a browser to present content recognizable to the user. The specific content contained in the web page is also defined by tags or nodes in the web page source code, such as HTML defines the content of the web page by tags such as 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.
[0136] A common form of user interface is a graphic user interface (GUI), which refers to a user interface that displays in a graphical manner. It can be a window, a control, or other interface element displayed in the display screen of an electronic device.
[0137] First, introduce several commonly used network configuration methods.
[0138] Method one: soft access point (softAP) network configuration method
[0139] Figure 1 An example is shown in the method flow chart of the softAP network configuration method used by the electronic device 100 to configure the network for the electronic device 200.
[0140] As Figure 1 shown, the softAP network configuration method can include steps S101-S108. Among them:
[0141] S101, the electronic device 200 is turned on and is in a network configuration waiting state.
[0142] The electronic device 200 is in a network configuration waiting state, which can also be referred to as the electronic device 200 being in an AP mode.
[0143] When receiving a user operation for triggering the electronic device 200 (such as a smart speaker) to enter the network configuration waiting state, the electronic device 100 can start a hotspot. The above-mentioned user operation for triggering the electronic device 200 to start and be in a network configuration waiting state can be a long press operation (for example, long press for 3 seconds) on a related key (such as a network configuration key) of the electronic device 200.
[0144] Optionally, the network configuration key can be a "Hi key" or a "WPS key", and the like. The present application does not limit the name of the network configuration key.
[0145] The type of network configuration key is a press type, which can also be a rotary type, and can also be a dial type. The present application does not limit the type of network configuration key.
[0146] In some embodiments, the above-mentioned user operation for triggering the electronic device 200 to start and be in a network configuration waiting state can be an operation of powering on the electronic device 200 that has not connected to a wireless network of other devices, or can also be an operation of powering on the electronic device 200 that has connected to a wireless network of other devices but has been restored to factory settings.
[0147] This application embodiment does not limit the user operation described above for triggering the electronic device 200 to be turned on and in a network-ready state. In practical applications, the electronic device 200 can enter the network-ready state in various ways, such as by smart remote control or by turning it on through a mobile application APP.
[0148] S102, Electronic device 200 can transmit distribution network information elements (IEs) in the form of broadcast.
[0149] In response to the electronic device 200 being in a network configuration standby state, the electronic device 200 broadcasts its network configuration information.
[0150] The network configuration interface (IE) of electronic device 200 may include, but is not limited to: the identifier of electronic device 200, whether electronic device 200 supports interconnection, and the physical address of electronic device 200. The network configuration interface of electronic device 200 may also include other information, such as the manufacturer of electronic device 200. This application does not limit the network configuration interface of electronic device 200.
[0151] It should be noted that before the electronic device 200 receives the distribution network information, the electronic device 200 can continuously broadcast its distribution network information.
[0152] S103, Electronic device 100 can receive the network distribution IE from electronic device 200 and receive user operations for selecting a hotspot to connect to electronic device 200.
[0153] S104. Electronic device 100 can connect to the hotspot of electronic device 200.
[0154] In some embodiments, electronic device 100 may receive a network configuration interface (IE) from at least one electronic device. This at least one electronic device includes electronic device 200. Electronic device 100 may display a hotspot name containing the names of the at least one electronic device. In response to a user operation to select a hotspot for electronic device 200, electronic device 100 may connect to the hotspot of electronic device 200 based on the physical address of electronic device 200 in the network configuration interface.
[0155] When connected to the hotspot of electronic device 200, electronic devices 100 and 200 can establish a local area network (LAN). This LAN can be used for data transmission between electronic devices 100 and 200.
[0156] S105, Electronic device 100 can receive network configuration information input by the user, which may include the router's name and password.
[0157] For example, electronic device 100 can display as follows Figure 1A The user interface 10 shown in FIG. 1. The user interface 10 can include a network configuration information input box 1001 displayed in suspension on the main interface of the smart life application. The network configuration information input box 1001 can also be displayed in suspension on other user interfaces (for example, the main interface of the electronic device 100), which is not limited in the present application. The network configuration information input box 1001 can include a name input field 1002, a password input field 1003, and a confirmation control 1004. Among them, the name input field 1002 can be used to input or select the name of the router (i.e. the name of the access Wi-Fi) from the list. The password input field 1003 can be used to input the password of the router (i.e. the password of the access Wi-Fi). The confirmation control 1004 can be used to trigger the electronic device 100 to send the received name of the router and the password to the electronic device 200.
[0158] Figure 1A Only the exemplary description of the user interface of the electronic device 100 receiving the user input network configuration information in the present application does not limit the present application.
[0159] In some embodiments, the network configuration information is stored in the electronic device 100. The electronic device 100 can not need the user to input the network configuration information, i.e. Figure 1A The name of the router in the name input field 1002 of the network configuration information input box 1001 shown in FIG. 1 and the password of the router in the password input field 1003 have been automatically filled in the corresponding position, and the user does not need to input the name of the router and the password of the router again. The user only needs to click the confirmation control 1004, and the electronic device 100 can send the name of the router and the password to the electronic device 200.
[0160] S106, the electronic device 100 can send the network configuration information to the electronic device 200 through the local area network.
[0161] Using the local area network between the electronic device 100 and the electronic device 200, the electronic device 100 can send the above network configuration information to the electronic device 200.
[0162] S107, the electronic device 200 can send a network configuration information receiving response to the electronic device 100. This step is an optional step.
[0163] When receiving the above network configuration information, the electronic device 200 can send a network configuration information receiving response to the electronic device 100 to indicate that the electronic device 100 has received the network configuration information.
[0164] It needs to be explained that the electronic device 100 can encrypt the network configuration information when sending the network configuration information. When receiving the encrypted network configuration information, the electronic device 200 can decrypt to obtain the network configuration information. The method of encryption and decryption is not limited in the present application.
[0165] S108, the electronic device 200 can stop broadcasting the network configuration IE and connect to the router using the received network configuration information.
[0166] When the hotspot is closed, the electronic device 200 can stop broadcasting the network configuration IE. Using the received network configuration information, the electronic device 200 can establish a connection with the router 300.
[0167] Figure 1 In the softAP network configuration mode shown in the embodiments, before the electronic device 200 receives the network configuration information sent by the electronic device 100, the electronic device 200 works in an access point (AP) mode, and the electronic device 100 sends the network configuration information of the router 300 to the electronic device 200 by connecting the hotspot of the electronic device 200; after the electronic device 200 receives the network configuration information, the electronic device 200 switches from the AP mode to a station (STA) mode, and connects to the router 300 based on the network configuration information.
[0168] The embodiments of the present application do not limit the method of softAP network configuration between the electronic device 100 and the electronic device 200. During the softAP network configuration process, the electronic device 100 and the electronic device 200 can also interact more or less information.
[0169] From the above analysis, when the electronic device 200 connects to the router 300 through the soft access point network configuration mode, the user needs to open the first application program (such as the smart life application program) for operation, such as inputting the name and password of the router and clicking OK, so that the electronic device 200 can obtain the name and password of the router 300 and connect to the router 300. It can be seen that the whole process needs user intervention to complete the network configuration process of the electronic device 200; and if there are multiple devices to be network configured, the user needs to repeat the same operation multiple times to make multiple devices to be network configured complete the connection with the router 300 in turn, which is relatively complex.
[0170] Method two: multicast network configuration scheme
[0171] Figure 2 An example is shown in the method flowchart of the electronic device 100 using the multicast network configuration scheme to network configure the electronic device 200.
[0172] S201, the electronic device 200 (such as a smart speaker) is turned on, and the electronic device 200 is in a network configuration standby state.
[0173] S202, the electronic device 200 sends a network configuration IE of the electronic device 200 in the form of broadcast.
[0174] In S201, the user operation for making the electronic device 200 in the waiting-for-network-configuration state is the same as the user operation for making the electronic device 200 in the waiting-for-network-configuration state in S101, and details can be referred to the related description in S101. Embodiments of the present application will not be repeated here.
[0175] In some embodiments, the electronic device 200 is in the waiting-for-network-configuration state, which can also be referred to as the AP mode.
[0176] In response to the electronic device 200 being in the waiting-for-network-configuration state, the electronic device 200 sends the network-configuration IE of the electronic device 200 in the form of a broadcast.
[0177] In S203, the router 300 receives the network-configuration IE of the electronic device 200, and the indicator light of the router 300 blinks.
[0178] The router 300 receives the network-configuration IE of the electronic device 200 and identifies that the electronic device 200 is in the waiting-for-network-configuration state. The indicator light of the router 300 blinks to prompt the user that the router 300 has discovered the device (for example, the electronic device 200) in the waiting-for-network-configuration state.
[0179] The router 300 can prompt the user that the router 300 has discovered the device in the waiting-for-network-configuration state through other ways, which are not limited by the present application.
[0180] In S204, the router 300 receives the user operation of triggering (for example, pressing) the network-configuration key.
[0181] In S205, in response to the user operation of triggering (for example, pressing) the network-configuration key, the router 300 sends a multicast message, which carries the name and password of the router 300.
[0182] The indicator light of the router 300 blinks to prompt the user that the router 300 has discovered the device in the waiting-for-network-configuration state. The router 300 receives the user operation of triggering (for example, pressing) the network-configuration key, and the router 300 sends the multicast message, which carries the name and password of the router 300.
[0183] The multicast message can also carry other information, which is not limited by the present application.
[0184] Optionally, the router 300 can encrypt the multicast message according to a preset encryption and decryption mode and send the encrypted multicast message to the electronic device 200.
[0185] In S206, the electronic device 200 receives the multicast message and obtains the name and password of the router 300 carried in the multicast message.
[0186] The electronic device 200 receives the multicast message, and obtains the name and password of the router 300 carried in the multicast message.
[0187] Optionally, the electronic device 200 receives the multicast message encrypted in the preset encryption and decryption mode, decrypts the multicast message encrypted in the preset encryption and decryption mode according to the preset decryption mode, and parses the name and password of the router 300 carried in the multicast message.
[0188] Here, the preset encryption mode and the preset decryption mode are preset by the router 300 and the electronic device 200 before leaving the factory. The router 300 encrypts the multicast message according to the encryption mode specified in the preset protocol, and then the electronic device 200 can decrypt the encrypted multicast message according to the decryption mode specified in the preset protocol.
[0189] S207, the electronic device 200 connects to the router 300 based on the name and password of the router 300.
[0190] From the above analysis, before the electronic device 200 connects to the router 300 based on the name and password of the router 300, the electronic device 200 is always in the AP mode, and the electronic device 100 also does not establish a connection with the router 300. The electronic device 200 and the router 300 need to deliver the network configuration information through the multicast message reserved field, which does not conform to the wireless local area network standard specified in the current 802.11 protocol. Moreover, the electronic device 200 and the router 300 need to follow the same encryption and decryption mode when delivering the network configuration information of the router 300 through the multicast message, that is, the encryption and decryption mode is preset before the electronic device 200 and the router 300 leave the factory. If the electronic device 200 and the router 300 are not devices produced by the same manufacturer, the electronic device 200 cannot complete the network configuration process with the router 300, and there is a compatibility problem between devices of different manufacturers.
[0191] Method three: network configuration scheme based on artificial intelligence of things (AIoT) antenna
[0192] AIoT is a technology that combines artificial intelligence technology with Internet of Things infrastructure to achieve more efficient Internet of Things operations, improve human-computer interaction, and enhance data management and analysis capabilities. When the router 300 contains an AIoT antenna, the network configuration of the electronic device 200 can be completed in mode three, where the AIoT antenna can refer to an antenna used to discover and connect to devices in a network configuration state. Mode three allows the router 300 to work in a similar manner to the electronic device 100 in mode one, so that the router 300 can send the name and password of the router 300 to the device with network configuration (such as the electronic device 200) through the AIoT antenna.
[0193] Specifically, if there is no AIoT antenna on the router 300, after the router 300 discovers the device in the network configuration state, the router 300 needs to switch the working mode from the AP mode to the STA mode and connect to the hotspot of the device in the network configuration state, so that the router 300 can send the network configuration information to the device in the network configuration state. However, when the router 300 needs to switch the working mode from the AP mode to the STA mode, at this time, other electronic devices (such as the electronic device 100) are connected to the wireless network where the router 300 is located, and video calls are performed with other electronic devices (such as tablets) through the wireless network where the router 300 is located. However, if the router 300 switches the working mode from the AP mode to the STA mode, the router 300 will not be able to provide network services for the electronic device 100 connected to the wireless network where the router 300 is located. At this time, the ongoing business of the electronic device 100 will be affected, such as the problem of video call lag or even interruption between the electronic device 100 and the tablet.
[0194] The AIoT antenna on the router 300 can well solve this problem. That is, the router 300 can receive the broadcast frame sent by the electronic device 200 through the AIoT antenna and discover the electronic device 200 in the network configuration state. Then the router 300 can connect to the hotspot of the electronic device 200 through the AIoT antenna, and the router 300 can send the network configuration information to the electronic device 200 through the AIoT antenna. In this way, the router 300 can always work in the AP mode and will not affect the ongoing business of the electronic device connected to the wireless network where the router 300 is located. In some embodiments, the AIoT antenna can also be referred to as a smart antenna.
[0195] Figure 3 An example of a method flowchart for the electronic device 100 to configure the network for the electronic device 200 using the AIoT antenna is shown.
[0196] Mode three can include the following steps:
[0197] S301, the electronic device 200 (for example, a smart speaker) is turned on, and the electronic device 200 is in a waiting-to-be-configured state. The waiting-to-be-configured state is a state of waiting to receive configuration information.
[0198] In S301, the user operation of making the electronic device 200 in the waiting-to-be-configured state is the same as the user operation of making the electronic device 200 in the waiting-to-be-configured state in S101. For details, please refer to the related description in S101. The embodiments of the present application will not be repeated here.
[0199] S302, in response to the electronic device 200 being in the waiting-to-be-configured state, the electronic device 200 sends the configuration information IE of the electronic device 200 in the form of broadcast.
[0200] S303, the router 300 discovers the configuration information IE of the electronic device 200, and connects to the hotspot of the electronic device 200.
[0201] S304, the router 300 sends information one to the server.
[0202] After the router 300 discovers the configuration information IE of the electronic device 200, the smart antenna of the router 300 switches to the STA mode, and the smart antenna of the router 300 connects to the hotspot of the electronic device 200. Then, the router 300 sends information one to the server, and the information one is used to instruct the server that the router 300 discovers the electronic device 200 in the waiting-to-be-configured state.
[0203] After the server receives the information one sent by the router 300, the server 400 displays prompt information of the electronic device 200 discovered by the router 300 in the waiting-to-be-configured state on the user interface of the first application program (for example, a smart life application program), so that the user can see the prompt information, and then the electronic device 100 receives the confirmation operation of the user for agreeing to configure the electronic device 200. Only when the electronic device 100 receives the confirmation operation of the user, the router 300 can send the configuration information to the electronic device 200.
[0204] As shown in the example, Figure 3A As shown in the example, Figure 3A The example shows the user interface 20 on the electronic device 100.
[0205] The user interface 20 can include a prompt bar 2001 displayed in a suspended manner on a main interface of a first application (e.g., a smart life application). The prompt bar 2001 can also be displayed in a suspended manner on other user interfaces (e.g., a main interface of the electronic device 100), which is not limited herein. The prompt bar 2001 can include a question prompt information "Smart antenna discovers smart speaker", a control 2002, and a control 2003. The prompt bar 2001 is used to prompt the user to complete the verification process. The electronic device 100 can receive an operation of the user triggering (e.g., clicking) the control 2002, which indicates that the user does not agree that the router sends the commissioning information to the electronic device 200. The electronic device 100 can also receive an operation of the user triggering (e.g., clicking) the control 2003, which indicates that the user agrees that the router 300 sends the commissioning information to the electronic device 200.
[0206] As shown in FIG. 2B, for example, Figure 3A The electronic device 100 receives an operation of the user triggering (e.g., clicking) the control 2003. In response to the operation of the user triggering (e.g., clicking) the control 2003, the electronic device 100 sends confirmation information to the server, and the server sends the confirmation information to the router 300. The confirmation information is used to inform the router 300 that the user agrees that the router 300 sends the commissioning information to the electronic device 200.
[0207] After the electronic device 100 receives the operation of the user triggering (e.g., clicking) the control 2003, the electronic device 100 displays a user interface 30 as shown in FIG. 2C. Figure 3B
[0208] The user interface 30 is used to prompt the user to associate the electronic device 200 with the electronic device 100 in the same account, i.e., to bind the electronic device 100 and the electronic device 200.
[0209] The user interface 30 includes a control 3001, a control 3002, and a control 3003.
[0210] As shown in FIG. 2D, for example, Figure 3B The electronic device 100 receives an operation of the user triggering (e.g., clicking) the control 3003. In response to the operation of the user triggering (e.g., clicking) the control 3003, the electronic device 100 associates the electronic device 200 with the electronic device 100 in the same account, i.e., the electronic device 100 and the electronic device 200 have a binding relationship.
[0211] For example, the electronic device 100 and the electronic device 200 have a binding relationship. The server 400 can record that the electronic device 100 and the electronic device 200 are associated with the same account. The server 400 can receive an instruction (such as an instruction indicating that the electronic device 200 is turned on) from the electronic device 100 for controlling the electronic device 200. When it is determined that the electronic device 100 and the electronic device 200 are electronic devices associated with the same account, the server 400 can send the control instruction to the electronic device 200, so that the electronic device 200 performs the operation corresponding to the control instruction. The server 400 can also receive a message (for example, a message indicating the power of the electronic device 200) from the electronic device 200 for reporting the state information of the electronic device 200 to the electronic device 100. When it is determined that the electronic device 100 and the electronic device 200 are electronic devices associated with the same account, the server 400 can send the above message indicating the state information of the electronic device 200 to the electronic device 100, so that the electronic device 100 updates the state information of the electronic device 200.
[0212] S306, the electronic device 100 sends information two to the router 300.
[0213] S307, after receiving the information two, the router 300 sends the name and password of the router 300 to the electronic device 200 through the smart antenna.
[0214] After the electronic device 100 receives the user operation of confirming the connection, the electronic device 100 sends information two to the server, and the server sends the information two to the router 300. After the router 300 receives the information two sent by the server, the router 300 switches the smart antenna from the STA mode to the AP mode. Then, the router 300 sends the name and password of the router 300 to the electronic device 200 through the smart antenna, and waits for the electronic device 200 to connect to the router 300.
[0215] Optionally, the electronic device 100 can directly send information two to the router 300. After the router 300 receives the information one sent by the electronic device 100, the router 300 sends the name and password of the router 300 to the electronic device 200 through the smart antenna.
[0216] S308, the electronic device 200 receives the name and password of the router 300, and connects to the router 300 through the name and password of the router.
[0217] From the above analysis, the essence of the scheme is to add a smart antenna on the router 300, the router 300 discovers and connects the hotspot of the device in the waiting network distribution state, and the router 300 sends the network distribution information to the device in the waiting network distribution state through the smart antenna. However, the coverage range of the smart antenna is about 9 meters outwardly radiated from the router 300. Moreover, the wall-penetrating property of the signal transmitted by the smart antenna is very poor, that is, after the signal transmitted by the smart antenna passes through an obstacle, it is almost attenuated and unusable, resulting in that the electronic device 200 cannot receive the network distribution information transmitted by the smart antenna of the router 300, and causing the network distribution to fail.
[0218] In summary, in order to solve the defects existing in the above network distribution method, the embodiment of the present application provides a network distribution method, which comprises the following steps:
[0219] First, the electronic device 200 connects to the unauthenticated network (open ssid) of the router 300. In an implementation manner, the electronic device 200 is in the waiting network distribution state, and the electronic device 200 broadcasts the network distribution IE of the electronic device 200. After the router 300 receives the network distribution IE of the electronic device 200, the router 300 sends the open ssid of the router 300, and the electronic device 200 receives the open ssid of the router 300, and then the electronic device 200 connects to the open ssid of the router 300.
[0220] Then, the server 400 randomly generates an auth code (authorization code), and the electronic device 200 and the router 300 obtain the auth code. In an implementation manner, the router 300 negotiates a key one with the electronic device 200, the electronic device 200 encrypts the registration information and the verification information of the electronic device 200 through the key one, and then sends the encrypted registration information and verification information to the server 400 through the router 300. After the server 400 receives the registration information and the verification information of the electronic device 200, the server 400 determines that the electronic device 200 is a device allowed to be network distributed, and associates the electronic device 200 and the router 300 with the same account. Then, the server 400 randomly generates an auth code (authorization code), and sends the auth code to the router 300. The router 300 receives the auth code sent by the server 400, and sends the auth code to the electronic device 200. Thus, the router 300 and the electronic device 200 both obtain the auth code randomly generated by the server 400.
[0221] Finally, the router 300 sends the network configuration information encrypted by the key based on the auth code to the electronic device 200, the electronic device 200 receives and decrypts the network configuration information, and the electronic device 200 accesses the router 300 using the network configuration information. In an implementation, the router 300 and the electronic device 200 obtain the key two through the auth code negotiation, and the router 300 sends the name and password of the router 300 to the electronic device 200 after encrypting the name and password of the router 300 by the key two; the electronic device 200 receives the name and password of the router 300 encrypted by the key two and decrypts the name and password of the router 300 using the key two. The electronic device 200 obtains the name and password of the router 300. Thus, the electronic device 200 connects to the router 300 using the name and password of the router 300. The name and password of the router 300 can also be replaced by the name and password of the wireless local area network in which the router 300 is located.
[0222] It should be understood that "sending" described in the embodiments of the present application can mean that device A directly sends to device B, or can mean that device A sends to device B through forwarding of one or more other devices.
[0223] It should be noted that the auth code sent by the server 400 to the electronic device 200 and the router 300 can be the same or different, which is not limited in the embodiments of the present application. The following embodiments of the present application take the case that the auth code sent by the server 400 to the electronic device 200 and the router 300 is the same as an example for description.
[0224] When the auth code sent by the server 400 to the electronic device 200 and the router 300 is the same, there are two implementation modes as follows:
[0225] Mode one: the server 400 generates an auth code set one, the auth code set one includes m auth codes, and m is greater than or equal to 1. The server 400 sends the auth code set one to the router 300, and the router 300 saves the auth code set one to the local after receiving the auth code set one. Then, the router 300 sends the auth code set one to the electronic device 200, and the electronic device 200 obtains the auth code set one. Then, the electronic device 200 and the router 300 obtain the key two based on the m auth codes in the auth code set one through the preset algorithm.
[0226] The second way is that the server 400 generates an auth code set one and an auth code set two. The auth code set one includes m auth codes, and the auth code set two includes m auth codes, where m is greater than or equal to 1. The m auth codes in the auth code set one are the same as the m auth codes in the auth code set two, or in other words, the auth code set one is the same as the auth code set two. The server 400 sends the auth code set one and the auth code set two to the router 300. After the router 300 receives the auth code set one and the auth code set two, the router 300 saves the auth code set one locally. Then, the router 300 sends the auth code set two to the electronic device 200, and the electronic device 200 obtains the auth code set two. After that, the electronic device 200 and the router 300 negotiate the second key based on the m auth codes in the auth code set one and the m auth codes in the auth code set two through a preset algorithm.
[0227] When the server 400 sends different auth codes to the electronic device 200 and the router 300, there are two implementation ways as follows.
[0228] The first way is that the server 400 needs to generate an auth code set one, which includes m auth codes, where m is greater than or equal to 2. The server 400 sends the auth code set one to the router 300. After the router 300 receives the auth code set one, the router 300 saves the auth code set one locally. Then, the router 300 sends the auth code set one to the electronic device 200, and the electronic device 200 obtains the auth code set one. After that, the electronic device 200 negotiates the second key based on x auth codes in the auth code set one, and the router 300 negotiates the second key based on y auth codes in the auth code set one. The x auth codes in the auth code set one are different from the y auth codes in the auth code set one, where x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
[0229] The second mode: the server 400 needs to generate different auth code sets (for example, an auth code set one and an auth code set two), the auth code set one and the auth code set two are different, and it can also be said that the auth code included in the auth code set one and the auth code included in the auth code set two are different. The server 400 sends the auth code set one and the auth code set two to the router 300. After the router 300 receives the auth code set one and the auth code set two, the router 300 can save the auth code set two locally, and then the router 300 sends the auth code set one to the electronic device 200, and the electronic device 200 obtains the auth code set one. Alternatively, the router 300 can also save the auth code set one locally, and the router 300 sends the auth code set two to the electronic device 200, and the electronic device 200 obtains the auth code set two. The electronic device 200 and the router 300 negotiate the key two based on the auth code set one and the auth code set two through a preset algorithm. The auth code set two can include one or more auth codes.
[0230] The preset algorithm here can be the Diffie Hellman (DH) algorithm introduced in the following embodiments, and the preset algorithm can also be other algorithms, which are not limited in the embodiments of the present application. It should be noted that the auth code set one can include one or more auth code sets, and the auth code set two can also include one or more auth codes.
[0231] The network configuration method provided by the embodiments of the present application can have beneficial effects in at least the following aspects:
[0232] The first aspect, compared with the softAP network configuration scheme in the first mode, the network configuration method provided by the embodiments of the present application can reduce the intervention of manual in the network configuration process. Specifically, the network configuration method provided by the embodiments of the present application does not need the user to input the name and password of the router 300, and the operation is simple.
[0233] The second aspect, compared with the multicast network configuration scheme provided by the second mode, the network configuration method provided by the embodiments of the present application does not modify the wireless local area network standard specified by the 802.11 protocol. Specifically, the electronic device 200 and the router 300 do not need to deliver network configuration information through the multicast message reservation field.
[0234] Compared with the network configuration scheme of the AIoT antenna provided in mode three, the network configuration method provided in the embodiments of the present application does not have new hardware requirements. Specifically, the router 300 does not need to additionally install an AIoT antenna, and the router 300 can also be kept in the AP mode during the network configuration process. In this way, the ongoing services of other devices connected to the router 300 are not affected.
[0235] In the fourth aspect, the network configuration method provided in the embodiments of the present application can improve the security of the network configuration process. After the server 400 verifies the electronic device 200 as a device allowed to be configured by the network through the verification information, the server 400 randomly generates an authcode. It can be understood that the authcode generated by the server 400 for different devices is different. The authcode is used for the router 300 and the electronic device 200 to negotiate a high-intensity channel to complete the transmission of sensitive information (the name and password of the router 300). The authcode of different devices is different, so the high-intensity channel used by each device to be configured by the network is different. This scheme improves the security of the transmission of sensitive information (such as the name and password of the router 300), and ensures the security of the network configuration process.
[0236] The network configuration method provided in the embodiments of the present application can be applied to the application scenario of "one-key network configuration", that is, one-time network configuration for one or more devices to be configured by the network. Specifically, when the router 300 discovers one or more devices to be configured by the network, the router 300 receives a user operation of agreeing to the network configuration. Then, the router 300 continuously broadcasts the open ssid of the router 300. After the one or more devices to be configured by the network are connected to the open ssid of the router 300, the router 300 completes the network configuration process of the one or more devices to be configured by the network connected to the open ssid of the router 300 in sequence. The router 300 only needs to receive a user operation once, and can complete the network configuration process with one or more devices to be configured by the network. Compared with the current router 300 which receives a user operation once and can only complete the network configuration process with one device to be configured by the network, the network configuration scheme provided in the embodiments of the present application improves the network configuration efficiency of the router, saves the number of user operations, and improves the user experience.
[0237] The network configuration method provided by the embodiments of the present application can also be applied to the application scenario of "remote network configuration", and user A operating the electronic device 100 can also remotely guide user B operating the electronic device 200 to power on the electronic device 200, and user A remotely completes the network configuration of the electronic device 200 by operating the electronic device 100. Specifically, the router 300 discovers the electronic device 200 in the network configuration standby state, and the electronic device 100 displays prompt information that the electronic device 200 in the network configuration standby state is discovered on the remote network configuration interface of the first application. Then, the electronic device 100 can receive the input operation of user A on the remote network configuration interface of the first application, trigger the router 300 to send the network configuration information to the electronic device 200 in the network configuration standby state, so that the electronic device 200 receives the network configuration information sent by the router 300, and the electronic device 200 is connected to the router 300 through the network configuration information of the router 300. User A and user B can not be the same user, and user A does not need to be near the router 300 and the electronic device 200, so that user A remotely connects the electronic device 200 to the router 300 is achieved.
[0238] As shown in Figure 4 , a system architecture diagram is provided for the embodiments of the present application. Figure 4
[0239] As shown in Figure 4 , the communication system 40 can include an electronic device 100, an electronic device 200, a router 300, and a server 400. The electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a personal digital assistant (PDA) and the like.
[0240] The electronic device 200 can be a smart lamp, a smart oven, a smart fan, a smart air conditioner, a smart television, a smart large screen, a smart bracelet, a smart watch, a smart sound box, a smart refrigerator, a smart door and window, a smart car, a smart monitor, a smart robot, a smart camera and the like.
[0241] The embodiments of the present application do not limit the types of the electronic device 100 and the electronic device 200. The following embodiments of the present application take the electronic device 100 as a mobile phone and the electronic device 200 as a smart sound box as an example for description.
[0242] The electronic device 100 can be connected to a wireless local area network in which the router 300 is located, or the electronic device 100 can not be connected to the wireless local area network in which the router 300 is located. The embodiments of the present application do not limit here. The electronic device 100 can be associated with the same account as the router 300, and the server 400 can record information that the electronic device 100 and the router 300 are associated with the same account. The electronic device 100 can communicate with the server 400, and the electronic device 100 can also verify that the electronic device 100 and the router 300 are associated with the same account through the server 400. Specifically, the server 400 can receive an instruction (such as an instruction indicating that the router 300 is turned on) from the electronic device 100 for controlling the router 300. When the server 400 determines that the electronic device 100 and the router 300 are associated with the same account, the server 400 can send the control instruction to the router 300, so that the router 300 performs the operation corresponding to the control instruction. The server 400 can also receive a message from the router 300 for reporting its own state information (such as the number of devices connected to the router 300) to the electronic device 100. When the server 400 determines that the electronic device 100 and the router 300 are associated with the same account, the server 400 can send the message indicating the state information of the router 300 to the electronic device 100, so that the electronic device 100 can receive the state information of the router 300.
[0243] When the electronic device 200 needs to be connected to the router 300, the electronic device 200 receives a user operation so that the electronic device 200 is turned on and in a waiting-to-be-configured state. The electronic device 200 in the waiting-to-be-configured state can send the configuration IE of the electronic device 200 in the form of broadcast.
[0244] After the router 300 receives and identifies the configuration IE of the electronic device 200, the router 300 sends a request for generating the registration information of the electronic device 200 to the server 400. The server 400 receives and responds to the request, and the server 400 generates the registration information of the electronic device 200. Then, the server 400 sends the registration information to the router 300.
[0245] After the router 300 receives the registration information of the electronic device 200 sent by the server 400, the router 300 encrypts the registration information of the electronic device 200 by the preset parameter negotiation key one and sends the encrypted registration information to the electronic device 200. How the router 300 negotiates the key one with the electronic device 200 by the preset parameter will be described in detail in subsequent embodiments, and the embodiments of the present application will not be repeated here. After the electronic device 200 receives the registration information of the electronic device 200 encrypted by the router 300, the electronic device 200 decrypts the registration information of the electronic device 200 encrypted by the key one according to the key one, and obtains the registration information of the electronic device 200.
[0246] It should be noted that the above steps of the electronic device 200 broadcasting the network configuration IE, the server 400 generating the registration information of the electronic device 200, the server 400 sending the registration information of the electronic device 200 to the router 300 and the electronic device 200, etc. are not embodied in the above-mentioned embodiments. Figure 4
[0247] After that, the electronic device 200 sends the registration information and the verification information of the electronic device 200 to the router 300 after encrypting them by the key one (which can correspond to step one in the above-mentioned embodiments). The router 300 decrypts the registration information and the verification information of the electronic device 200 encrypted by the key one by the key one, and sends the registration information and the verification information of the electronic device 200 to the server 400 (which can correspond to step two in the above-mentioned embodiments). Figure 4 Figure 4 After the server 400 receives the registration information and the verification information of the electronic device 200, the server 400 generates a random auth code (for example, an auth code set one) after verifying that the electronic device 200 is a legal device according to the registration information and the verification information of the electronic device 200. The server 400 sends the auth code set one to the router 300 and the electronic device 200 (which can correspond to step three in the above-mentioned embodiments).
[0248] Figure 4 Step three) in the method 1000. In one implementation, the router 300 receives the auth code set one sent by the server 400, and the router 300 sends the auth code set one encrypted by the key one to the electronic device 200. After the electronic device 200 receives the auth code set one encrypted by the key one, the electronic device 200 decrypts the auth code set one encrypted by the key one by the key one, and the electronic device 200 obtains the auth code set one. Here, how the server 400 verifies the electronic device 200 as a legal device according to the registration information and the verification information of the electronic device 200 will be described in detail in subsequent embodiments, and the embodiments of the present application will not be described here. After the electronic device 200 obtains the auth code set one, the electronic device 200 and the router 300 negotiate the key two through the auth code set one, and the router 300 sends the network configuration information (for example, the name and password of the router 300) of the router 300 to the electronic device 200 through the key two (which can correspond to Figure 4 Step four) in the method 1000, and after the electronic device 200 receives the name and password of the router 300, the electronic device 200 connects to the router 300 through the name and password of the router 300.
[0249] In some embodiments, after the electronic device 200 connects to the router 300 through the name and password of the router 300, the electronic device 200 can establish a binding relationship (for example, associate with the same account) with the electronic device 100. Specifically, after the electronic device 200 connects to the router 300 through the name and password of the router 300, the router 300 sends information to the server 400, and after the server 400 receives the information, the server 400 can associate the electronic device 200 and the router 300 with the same account. The foregoing embodiments introduce that the electronic device 100 and the router 300 have been associated with the same account, and at this time, the electronic device 100, the router 300 and the electronic device 200 are also associated with the same account, so that the electronic device 200 can establish a binding relationship with the electronic device 100.
[0250] For example, the electronic device 100 is associated with the same account as the electronic device 200, and the server 400 records information that the electronic device 100 and the electronic device 200 are associated with the same account. The electronic device 100 can communicate with the server 400, and the electronic device 100 can also verify that the electronic device 100 and the electronic device 200 are associated with the same account through the server 400. Specifically, the server 400 can receive an instruction (such as an instruction indicating that the electronic device 200 is turned on) from the electronic device 100 for controlling the electronic device 200. When the server 400 determines that the electronic device 100 and the electronic device 200 are associated with the same account, the server 400 can send the control instruction to the electronic device 200, so that the electronic device 200 performs the operation corresponding to the control instruction. The server 400 can also receive a message from the electronic device 200 for reporting the state information (such as a message indicating the power of the electronic device 200) of the electronic device 200 to the electronic device 100. When the server 400 determines that the electronic device 100 and the electronic device 200 are associated with the same account, the server 400 can send the above-mentioned message indicating the power of the electronic device 200 to the electronic device 100, so that the electronic device 100 can receive the message indicating the power of the electronic device 200.
[0251] It should be clear that the network configuration method provided by the embodiments of the present application does not limit the specific way in which the electronic device 200 communicates with the server 400. The electronic device 100 can communicate with the server 400 through any one of a cellular communication network, a wireless local area network (WLAN), a wired network, etc. For example, when the electronic device 100 is located near the router 300 (such as 50 meters), the electronic device 100 can preferably communicate with the server 400 through the wireless local area network provided by the router 300; when the electronic device 100 is not located near the router 300, the electronic device 100 can communicate with the server 400 through any one of a wireless local area network provided by other devices, a cellular communication network, or a wired network, etc. That is, the network configuration method provided by the embodiments of the present application does not require the electronic device 100 to access the wireless local area network of the router 300, nor does it require the electronic device 100 to access the hotspot of the electronic device 200.
[0252] As shown in FIG. 1, Figure 5 As shown in FIG. 1, Figure 5 An exemplary structure diagram of the electronic device 200 is shown.
[0253] As shown in FIG. 1, Figure 5 As shown, the electronic device 200 can include a processor 501, a memory 502, a wireless communication processing module 503, a wired LAN communication processing module 504, an HDMI communication processing module 505, a USB communication processing module 506, a display screen 507, and a power switch 508. Among them:
[0254] The processor 501 can be used to read and execute computer readable instructions. In a specific implementation, the processor 501 can mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for instruction decoding and sending control signals for the operation corresponding to the instruction. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, and logic operations, etc., and can also perform address operations and conversion. The register is mainly responsible for saving the register operands and intermediate operation results temporarily stored in the instruction execution process, etc. In a specific implementation, the hardware architecture of the processor 501 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.
[0255] In some embodiments, the processor 501 can be used to parse the signals received by the wireless communication processing module 503 and / or the wired LAN communication processing module 504, such as the commissioning information sent by the router 300, etc. The processor 501 can be used to perform corresponding processing operations according to the parsing result, such as generating a probe response, or driving the display screen 507 to perform display according to the display request or display instruction, etc.
[0256] In some embodiments, the processor 501 can also be used to generate signals sent outward by the wireless communication processing module 503 and / or the wired LAN communication processing module 504, such as a Bluetooth broadcast signal, a beacon signal, or a signal containing the commissioning IE of the electronic device 200 sent to the router 300.
[0257] The memory 502 is coupled with the processor 501, and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash devices, or other non-volatile solid-state storage devices. The memory 502 can store an operating system, such as an embedded operating system, e.g., uCOS, VxWorks, RTLinux, HarmonyOS, etc. The memory 502 can also store a communication program, which can be used to communicate with one or more servers, or additional devices.
[0258] The wireless communication processing module 503 can include one or more of a WLAN communication processing module 5031, a Bluetooth (BT) communication processing module 5032, and an NFC processing module 5033.
[0259] In some embodiments, the wireless communication processing module 503 can further include a cellular mobile communication processing module (not shown). The cellular mobile communication processing module can communicate with other devices (such as servers) through cellular mobile communication technology.
[0260] The wired LAN communication processing module 504 can be used for communication with other devices in the same LAN through the wired LAN, and can also be used for connecting to the WAN through the wired LAN and communicating with devices in the WAN.
[0261] The HDMI communication processing module 505 can be used for communication with other devices through the HDMI interface (not shown).
[0262] The USB communication processing module 506 can be used for communication with other devices through the USB interface (not shown).
[0263] The display screen 507 can be used for displaying images, videos, etc. The display screen 507 can be a liquid crystal display (LCD), an organic light-emitting diode (OLED) display screen, an active-matrix organic light emitting diode (AMOLED) display screen, a flexible light-emitting diode (FLED) display screen, a quantum dot light emitting diodes (QLED) display screen, etc.
[0264] In some embodiments, the electronic device 200 can also not include the display screen 507, which is not limited in the present application.
[0265] The power switch 508 can be used to control the power supply of the electronic device 200.
[0266] It can be understood that Figure 5 The schematic structure does not constitute a specific limitation on the electronic device 200. In some other embodiments of the present application, the electronic device 200 can include more or fewer components than the schematic diagram, or combine some components, or split some components, or different component arrangements. The components shown in the schematic diagram can be implemented in hardware, software, or a combination of software and hardware.
[0267] As Figure 6 shown, Figure 6 The structure of the router 300 is schematically shown.
[0268] Referring to Figure 6 , Figure 6 A router provided by some embodiments of the present application is shown. As shown, the router can include a processor 601, a memory 602, a WLAN communication module 603, an antenna 604, a wired LAN communication processing module 605, and a bus 606. Among them, the processor 601, the memory 602, the WLAN communication module 603, and the wired LAN communication processing module 605 can be connected through the bus 606. Among them: Figure 6
[0269] It should be noted that, Figure 6 The router shown is only an example, and the router can have more or fewer components than those shown in FIG. 1, can combine two or more components, or can have a different component configuration. Figure 6 The various components shown in FIG. 1 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits. Figure 6 As shown in FIG. 2, the processor 601 can be used to read and execute computer readable instructions. In a specific implementation, the processor 601 can mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for instruction decoding and sending control signals for the corresponding operations of the instructions. The arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during instruction execution, etc. In a specific implementation, the hardware architecture of the processor 601 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.
[0270] Figure 7 A memory can also be provided in the processor 601 for storing instructions and data. In some embodiments, the memory in the processor 601 is a cache memory. The memory can save instructions or data that the processor 601 has just used or repeatedly uses. If the processor 601 needs to use the instructions or data again, it can directly call from the memory. This avoids repeated access and reduces the waiting time of the processor 601, thereby improving the efficiency of the system.
[0271]
[0272] The memory 602 is coupled to the processor 601 for storing various software programs and / or sets of instructions. In a particular implementation, the memory 602 can include a high-speed random access memory and can also include a nonvolatile memory such as one or more disk storage devices, flash memory devices, or other nonvolatile solid-state storage devices. The memory 602 can store an operating system such as an embedded operating system such as uCOS, VxWorks, RTLinux, etc. The memory 602 can also store a communication program that can be used to communicate with electronic devices, or other devices. The memory 602 can also store a current configuration, a routing table, a forwarding table. The routing table can be used to hold routing information, and is typically maintained by a routing protocol and a routing table management module, including more information (network address, next hop, time to live, etc.); the forwarding table can be generated based on the routing table, and is used by the router to actually forward data packets to the next hop device.
[0273] The WLAN communication module 603 can be used to modulate and demodulate electromagnetic wave signals, and can convert into electromagnetic wave signals according to information and instructions issued by the processor 601. The received electromagnetic wave signals are converted into digital signals and are processed by the processor 601.
[0274] The antenna 604 can be used to transmit and receive electromagnetic wave signals, and the router can have one or more antennas.
[0275] The wired LAN communication processing module can include one or more LAN physical interfaces that can be used to allow other electronic devices to connect to the router through a network cable.
[0276] The router can also include a wired wide area network (WAN) communication processing module that can include a WAN physical interface that can be used to connect the router to the Internet.
[0277] The router can also include a network configuration key, which can be a "Hi key" or a "WPS key", etc. The name of the network configuration key is not limited in the present application.
[0278] The type of the network configuration key can be a press type, a rotary type, or a dial type, and the type of the network configuration key is not limited in the present application.
[0279] The router can also include a network configuration indicator light. The network configuration indicator light can flash to prompt the user that the router has found a device to be configured.
[0280] The router can also include a cellular communication module for communicating with a cellular communication base station. At this time, the router can not include the wired LAN communication processing module 605.
[0281] Figure 7 The router shown is only an implementation of the embodiments of the present application, and in actual applications, the router can further include more or fewer components, which are not limited herein.
[0282] The network configuration method provided by the embodiments of the present application mainly includes the following three steps:
[0283] Step one: the electronic device 200 is connected to the open ssid (unauthenticated network) of the router 300.
[0284] Step two: the server 400 generates the registration information of the electronic device 200, and completes the task items of the electronic device 200 verification. Specifically, the router 300 sends a request for generating the registration information of the electronic device 200 to the server 400, the server 400 receives and responds to the request, and the server 400 generates the registration information of the electronic device 200. Then, the server 400 sends the registration information of the electronic device 200 to the router 300, the router 300 receives the registration information of the electronic device 200 sent by the server 400, and sends the registration information of the electronic device 200 to the electronic device 200. Then, the electronic device 200 sends the registration information and the verification information to the server 400 through the router 300, and the server 400 receives the registration information and the verification information of the electronic device 200 and determines that the electronic device 200 is a legal device. After that, the server 400 binds the electronic device 200 with the router 300.
[0285] Step three: after the server 400 determines that the electronic device 200 is a legal device, the server 400 sends the auth code set one to the router 300, the router 300 receives the auth code set one, and sends the auth code set one to the electronic device 200. Then, the electronic device 200 and the router 300 negotiate a high-security channel through the auth code set one, and complete the transmission of the network configuration information (such as the name and password of the router 300) through the high-security channel.
[0286] Step four: the electronic device 200 is connected to the wireless local area network where the router 300 is located.
[0287] As can be seen, the electronic device 200 and the router 300 negotiate a high-security channel through the auth code set one randomly issued by the server 400, and the high-security channels negotiated by different devices and the router 300 are all different. Moreover, the devices that have not passed the verification cannot establish a high-security channel with the router 300, so that the data eavesdropping and acquisition of the devices that have not passed the verification can be avoided. In this way, the security of the network configuration information transmission between the electronic device 200 and the router 300 in the network configuration process is ensured.
[0288] First, we will introduce the process of connecting electronic device 200 to router 300 using Open SSID.
[0289] Electronic device 200 connects to router 300's Open SSID. This establishes a connection; electronic device 200 can exchange data with router 300, but it cannot use router 300's wireless network. Connecting electronic device 200 to router 300's Open SSID is for subsequent transmission of registration and verification information between electronic device 200 and server 400, as well as for router 300 to transmit network configuration information to electronic device 200.
[0290] like Figures 9B-9E As shown, Figure 8 An exemplary flowchart illustrates a method for connecting an electronic device 200 to an open SSID of a router 300.
[0291] S701-S705 exemplarily illustrate the method steps for an electronic device 200 to connect to a router 300 using an Open SSID. It should be noted that in some embodiments, the method for an electronic device 200 to connect to a router 300 using an Open SSID may include more or fewer steps than S701-S705, and this application does not impose any limitations on this. Furthermore, this application does not impose any limitations on the execution order of each step in S701-S705.
[0292] S701, Electronic device 200 is turned on, and electronic device 200 is in standby network configuration state.
[0293] In S701, the user operation that puts the electronic device 200 into the network-ready state is the same as the user operation that puts the electronic device 200 into the network-ready state in S101. For details, please refer to the relevant description in S101. This application embodiment will not repeat it here.
[0294] In some embodiments, the electronic device 200 is in a network-ready state, which may also be referred to as the electronic device 200 being in AP mode.
[0295] S702, Electronic device 200 broadcasts the network distribution information of electronic device 200.
[0296] In response to the electronic device 200 being in the distribution network state, the electronic device 200 broadcasts its distribution network information.
[0297] S703 and router 300 receive the network configuration IE from electronic device 200 and accept the first user's operation to agree to network configuration.
[0298] S704, in response to the first user operation, the router 300 sends a multicast message carrying the open ssid of the router 300.
[0299] The router 300 receives the commissioning IE of the electronic device 200, and in response to the commissioning IE, the indicator light of the router 300 flashes to prompt the user that the router 300 has discovered the electronic device 200 in the commissioning state.
[0300] The router 300 can also prompt the user that the router 300 has discovered the electronic device 200 in the commissioning state through other ways, which are not limited to the flashing of the indicator light of the router 300.
[0301] When the indicator light of the router 300 flashes, the router 300 receives a user operation of agreeing to the commissioning, which indicates that the user agrees to the router 300 sending the open ssid to the electronic device 200.
[0302] In a possible implementation, the above-mentioned user operation can be the router 300 receiving the user triggering (e.g., pressing) the commissioning key on the router 300.
[0303] In another possible implementation, when the router 300 discovers the electronic device 200 in the commissioning state, the indicator light of the router 300 flashes, and at the same time, the router 300 sends information I to the server 400, which is used to display the prompt information of the router 300 discovering the electronic device 200 in the commissioning state on the user interface of the first application program (e.g., the smart life application program).
[0304] The electronic device 100 can receive and respond to the user input operation on the first application program, which indicates that the user agrees to the router 300 sending the open ssid to the electronic device 200 in the commissioning state. Specifically, the electronic device 100 sends information II to the server 400 through the first application program, and the server 400 forwards the information II to the router 300.
[0305] Here, how the electronic device 100 receives and responds to the user input operation on the first application program can be referred to the subsequent Figure 7 embodiments, which are not repeated here.
[0306] After the router 300 receives the information II, the router 300 sends a multicast message carrying the open ssid of the router 300.
[0307] Before the router 300 sends the commissioning information to the electronic device 200, the router 300 continuously sends the open ssid of the router 300.
[0308] S705, the electronic device 200 acquires the openssid of the router 300 carried in the multicast message sent by the router 300, and connects to the open ssid of the router 300.
[0309] After the electronic device 200 receives the multicast message of the router 300 sent by the router 300, the electronic device 200 switches from the AP mode to the STA mode, the electronic device 200 analyzes the open ssid of the router 300 carried in the multicast message, and connects to the open ssid of the router 300.
[0310] The electronic device 200 is connected to the open ssid of the router 300, and only a connection relationship is established, so that the electronic device 200 can transmit data with the router 300. The electronic device 200 is connected to the open ssid of the router 300, in order to transmit the registration information and the verification information of the electronic device 200 to the server 400 through the router 300, and transmit the configuration information of the router 300 to the electronic device 200, etc.
[0311] Next, the electronic device 200 sends a request for generating registration information of the electronic device 200 to the server 400 through the router 300, the server 400 receives the request, generates the registration information of the electronic device 200, and completes the task of verifying the electronic device 200.
[0312] After the electronic device 200 is connected to the open ssid of the router 300, the router 300 sends a request for generating registration information of the electronic device 200 to the server 400, the server 400 receives and responds to the request, and the server 400 generates the registration information of the electronic device 200. Then, the server 400 sends the registration information of the electronic device 200 to the router 300, the router 300 receives the registration information of the electronic device 200 sent by the server 400, and the router 300 sends the registration information of the electronic device 200 to the electronic device 200. Then, the electronic device 200 sends the registration information and the verification information to the server 400, the server 400 verifies that the electronic device 200 is a legal device, and then the server 400 binds the electronic device 200 and the router 300.
[0313] In this way, the server 400 first generates the registration information of the electronic device 200, and the server 400 sends the registration information of the electronic device 200 to the electronic device 200 through the router 300. The electronic device 200 sends the registration information and the verification information of the electronic device 200 to the server 400 through the router 300. The server 400 receives the registration information and the verification information of the electronic device 200 sent by the electronic device 200 through the router 300. The server 400 confirms that the registration information of the electronic device 200 sent by the electronic device 200 through the router 300 is the registration information previously sent by the server to the electronic device 200 through the router 300, and then the server 400 preliminarily confirms that the electronic device 200 is a legal device. Then, the server 400 further confirms that the verification information sent by the electronic device 200 through the router 300 is legal verification information, and then the server 400 further determines that the electronic device 200 is a legal device. Then, the server 400 sends a message to the router 300, which is used to inform the router 300 and the electronic device 200 that the network configuration information can be transmitted. In this way, the server 400 improves the security mechanism of verifying the legality of the device by the double verification mechanism. The security of the subsequent transmission of the network configuration information between the router 300 and the electronic device 200 is ensured.
[0314] Optionally, the server 400 can also not perform Figure 9 each step in the task of generating the registration information of the electronic device 200 and completing the verification of the electronic device 200. That is, in the embodiment shown in Figure 8 , after the electronic device 200 is connected to the open ssid of the router 300, the server 400 directly performs Figure 8 the embodiment, that is, the server 400 directly generates the auth code (for example, the auth code set one) at random, and sends the auth code set one to the router 300. The router 300 receives the auth code set one sent by the server 400. The router 300 sends the auth code set one to the electronic device 200, and the electronic device 200 acquires the auth code set one.
[0315] The embodiments of the present application do not limit whether the electronic device 200, the router 300 and the server 400 perform Figure 8 each step in the task of generating the registration information of the electronic device 200 and completing the verification of the electronic device 200.
[0316] As Figure 9 shown, Figure 9 an exemplary method flow chart for the server 400 to generate the registration information of the electronic device 200 and complete the verification of the electronic device 200 is shown.
[0317] S801-S808 exemplarily show method steps of the server 400 completing the registration and verification of the electronic device 200. It should be noted that in some embodiments, the method steps of the server 400 completing the registration and verification of the electronic device 200 can include more or less steps than S801-S808, which are not limited herein. The execution order of each step in S801-S808 is not limited herein.
[0318] S801, the router 300 sends a request for generating the registration information of the electronic device 200 to the server 400.
[0319] After the electronic device 200 is connected to the open ssid of the router 300, the router 300 sends a request for generating the registration information of the electronic device 200 to the server 400. The request is used for the server 400 to generate the registration information of the electronic device 200.
[0320] S802, the server 400 receives and responds to the request for generating the registration information of the electronic device 200, and the server 400 generates the registration information of the electronic device 200.
[0321] S803, the server 400 sends the registration information of the electronic device 200 to the router 300. Correspondingly, the router 300 acquires the registration information of the electronic device 200.
[0322] After the server 400 receives the request for generating the registration information of the electronic device 200 sent by the router 300, the server 400 agrees to the request sent by the router 300, and the server 400 generates the registration information of the electronic device 200. The server 400 sends the registration information of the electronic device 200 to the router 300.
[0323] The registration information can include but is not limited to the registration code of the electronic device 200 and the like, and the type of the included information is not limited herein.
[0324] S804, the router 300 sends the registration information to the electronic device 200. Correspondingly, the electronic device 200 acquires the registration information of the electronic device 200.
[0325] In some embodiments, in order to ensure the security of the data transmission between the electronic device 200 and the router 300, before the router 300 sends the registration information to the electronic device 200, the router 300 and the electronic device 200 will negotiate a key one through preset parameters and transmit the registration information based on the key one.
[0326] Here, when the electronic device 200 can obtain the key one through the preset parameter and the router 300 negotiating, it can be considered that the electronic device 200 is a preliminary trusted device. In some embodiments, the preliminary trusted device can be referred to as "first-level white list device". Only when the electronic device belongs to the "first-level white list device", the electronic device can initiate a registration request to the server, that is, the electronic device can access the server. In this way, it can be ensured that the device accessing the server is a trusted device.
[0327] Firstly, the router 300 and the electronic device 200 negotiate the key one through the preset parameter.
[0328] After the router 300 receives the registration information of the electronic device 200 sent by the server 400, the router 300 and the electronic device 200 negotiate the key one through the preset parameter.
[0329] It should be noted that the router 300 and the electronic device 200 negotiating the key one through the preset parameter can be completed before the router 300 sends a request to the server 400 to generate the registration information of the electronic device 200, or can be completed after the router 300 sends a request to the server 400 to generate the registration information of the electronic device 200, which is not limited in the present application.
[0330] That is, the router 300 and the electronic device 200 negotiating the key one through the preset parameter can be completed before step S801, or can be completed after step S801, which is not limited in the present application. As long as the router 300 and the electronic device 200 have negotiated the key one through the preset parameter before step S804.
[0331] In some embodiments, the router 300 and the electronic device 200 have been configured with the same preset parameter before leaving the factory. Alternatively, the router 300 and the electronic device 200 are not configured with the preset parameter before factory setting, then the router 300 and the electronic device 200 can download the preset parameter from the server and save it in the router 300 and the electronic device 200. It should be noted that the preset parameter obtained by the router 300 and the electronic device 200 from the server is the same.
[0332] In an optional implementation, the preset parameter can be integrated in a software development kit (SDK). The SDK is a collection of related documents, examples and tools for assisting the development of mobile application software (APP). In order to improve the development efficiency, the developer can entrust a third party to develop a certain function, and the third party encapsulates the certain function as an SDK for the developer to use. Therefore, only the preset parameter needs to be integrated in the SDK, and the router 300 and the electronic device 200 can obtain the preset parameter integrated in the SDK by downloading the SDK from the server.
[0333] The router 300 and the electronic device 200 obtain the first key through the preset parameter negotiation, and the principle of how the router 300 and the electronic device 200 obtain the second key through the first set of auth codes in the subsequent embodiments is consistent. The difference is only that the first key is obtained based on the preset parameter negotiation, and the second key is obtained based on the first set of auth codes. Therefore, the process of how the router 300 and the electronic device 200 obtain the first key through the preset parameter negotiation can refer to the process of how the router 300 and the electronic device 200 obtain the second key through the first set of auth codes in the subsequent embodiments, and the present application does not repeat it here.
[0334] Then, the router 300 sends the registration information encrypted by the first key to the electronic device 200.
[0335] In order to ensure the security of the data transmission between the router 300 and the electronic device 200, the router 300 encrypts the registration information of the electronic device 200 by the first key, and sends the registration information of the electronic device 200 encrypted by the first key to the electronic device 200.
[0336] S805, the electronic device 200 obtains the registration information.
[0337] In some embodiments, the electronic device 200 receives the registration information encrypted by the first key sent by the router 300, and then the electronic device 200 decrypts the registration information encrypted by the first key by the first key to obtain the registration information.
[0338] S806, the electronic device 200 sends the registration information and the verification information to the router 300. Correspondingly, the router 300 obtains the registration information and the verification information.
[0339] The verification information can include one or more of the following: a public key infrastructure (KPI) certificate, a software license.
[0340] After the electronic device 200 acquires the registration information, the electronic device 200 initiates a registration request to the server 400, i.e., the electronic device 200 sends the registration information and the verification information to the router 300.
[0341] Optionally, the electronic device 200 can also send only the registration information to the router 300.
[0342] Optionally, the electronic device 200 can also send only the verification information to the router 300.
[0343] In some embodiments, the electronic device 200 sends the registration information encrypted by the key one and the verification information encrypted by the key one to the router 300.
[0344] Optionally, the electronic device 200 can also send only the registration information encrypted by the key one to the router 300.
[0345] Optionally, the electronic device 200 can also send only the verification information encrypted by the key one to the router 300.
[0346] S807, the router 300 sends the registration information and the verification information to the server 400. Correspondingly, the server 400 acquires the registration information and the verification information.
[0347] After the router 300 acquires the registration information and the verification information, the router 300 sends the registration information and the verification information to the server 400.
[0348] Optionally, when the electronic device 200 sends only the registration information to the router 300, the router 300 receives the registration information sent by the electronic device 200, and the router 300 sends the registration information to the server 400.
[0349] Optionally, when the electronic device 200 sends only the verification information to the router 300, the router 300 receives the verification information sent by the electronic device 200, and the router 300 sends the verification information to the server 400.
[0350] In some embodiments, the router 300 receives the registration information encrypted by the key one and the verification information encrypted by the key one sent by the electronic device 200, the router 300 decrypts the registration information encrypted by the key one and the verification information encrypted by the key one based on the key one to obtain the unencrypted registration information and the unencrypted verification information, and the router 300 sends the unencrypted registration information and the unencrypted verification information to the server 400.
[0351] Optionally, when the electronic device 200 only sends the registration information encrypted by the key one to the router 300, the router 300 receives the registration information encrypted by the key one sent by the electronic device 200, the router 300 decrypts the registration information encrypted by the key one based on the key one to obtain the unencrypted registration information, and the router 300 sends the unencrypted registration information to the server 400. Optionally, when the electronic device 200 only sends the verification information encrypted by the key one to the router 300, the router 300 receives the verification information encrypted by the key one sent by the electronic device 200, the router 300 decrypts the verification information encrypted by the key one based on the key one to obtain the unencrypted verification information, and the router 300 sends the unencrypted verification information to the server 400.
[0352] It should be noted that when the electronic device 200 needs to send the verification information to the server 400 through the router 300, the electronic device 200 obtains the verification information in advance and saves the verification information locally before the server 400 verifies that the electronic device 200 is a legal device. That is, the electronic device 200 obtains and saves the verification information needs to be completed before S807.
[0353] Next, how the electronic device 200 obtains the verification information is introduced.
[0354] Specifically, the electronic device 200 generates a pair of public and private keys (the public key one and the private key one), device A encrypts data using the private key one, and device B can decrypt the data encrypted by the private key one according to the public key one corresponding to the private key one to obtain the unencrypted data. Device A can also encrypt data using the private key one, and device B can decrypt the data encrypted by the private key one according to the private key one corresponding to the public key one to obtain the unencrypted data. After the electronic device 200 generates a pair of public and private keys, the electronic device 200 sends the public key one and a request for obtaining the verification information to the server 400. After the server 400 receives the public key one and the request for obtaining the verification information, the server 400 preposes the public key one in the verification information in response to the request for obtaining the verification information, and then the server 400 sends the verification information preposed with the public key one to the electronic device 200, and the electronic device 200 obtains the verification information preposed with the public key one. It should be noted that the verification information is locally saved in the server 400.
[0355] S808, the server 400 determines that the electronic device 200 is a legal device based on the registration information and the verification information, and binds the electronic device 200 with the router 300.
[0356] Here, when the server 400 determines that the electronic device 200 is a legal device based on the registration information and the verification information, the server 400 can consider that the electronic device 200 is a secure device. In some embodiments, the secure device can be referred to as a "second-level white list device". Only when the electronic device belongs to the "second-level white list device", the electronic device can obtain the network configuration information and connect to the wireless local area network where the router is located through the network configuration information. In this way, it can be ensured that the electronic device accessing the wireless local area network where the router is located is a secure device.
[0357] After the server 400 receives the registration information and the verification information of the electronic device 200 forwarded by the router 300, the server 400 will verify whether the electronic device 200 is a legal device according to the registration information and the verification information of the electronic device 200.
[0358] Optionally, after the server 400 receives the registration information of the electronic device 200 forwarded by the router 300, the server 400 will verify whether the electronic device 200 is a legal device according to the registration information of the electronic device 200.
[0359] Optionally, after the server 400 receives the verification information of the electronic device 200 forwarded by the router 300, the server 400 will verify whether the electronic device 200 is a legal device according to the verification information of the electronic device 200.
[0360] Specifically, the server 400 can verify whether the electronic device 200 is a legal device according to any of the following methods.
[0361] Method one: the server 400 verifies that the electronic device 200 is a legal device through the registration information and the verification information.
[0362] Specifically, first, when the server 400 confirms that the registration information of the electronic device 200 sent by the electronic device 200 through the router 300 is the registration information previously sent by the server to the electronic device 200 through the router 300, the server 400 can preliminarily determine that the electronic device 200 is a legal device.
[0363] Then, the server 400 further verifies that the electronic device 200 is a legal device through the verification information.
[0364] Next, how the server 400 further verifies that the electronic device 200 is a legal device according to the verification information will be introduced.
[0365] After the server 400 obtains the verification information sent by the electronic device 200 through the router 300, the server 400 can obtain the preset public key one in the verification information, and the server 400 will generate a random number randomly, and verify the legality of the electronic device 200 through the random number and the preset public key one in the verification information.
[0366] Because, if the attacker takes special means to obtain the preset public key one check information. The attacker's electronic device through the preset public key one check information is sent to the server 400 through the router 300. The server 400 receives the preset public key one check information sent by the attacker's electronic device, and the server 400 may confirm the attacker's electronic device as a legal device. Therefore, in order to prevent this situation from happening, the server 200 will further verify the legality of the electronic device 200 according to the random number after receiving the preset public key one check information sent by the electronic device 200. In this way, the security of the subsequent transmission of the router 300 can be improved. The network information.
[0367] Specifically, the server 400 will randomly generate a random number, and send the random number to the electronic device 200 through the router 300.
[0368] After the electronic device 200 receives the random number through the router 300, the electronic device 200 encrypts the random number with the private key one, and then the electronic device 200 sends the random number encrypted with the private key one to the server 400 through the router 300.
[0369] The server 400 receives the random number encrypted with the private key one sent by the electronic device 200 through the router 300, and the server 400 decrypts the random number encrypted with the private key one with the public key one corresponding to the private key one.
[0370] In this way, if the server 400 can receive the random number encrypted with the private key one sent by the electronic device 200, and decrypt the random number encrypted with the private key one with the public key one corresponding to the private key one, the server 400 determines that the electronic device 200 is a legal device, and the router 300 and the electronic device 200 can transmit the network information.
[0371] In some embodiments, if the server 400 can receive the check information and the registration information sent by the electronic device 200, but the server 400 cannot receive the random number encrypted with the private key one sent by the electronic device 200. Because the private key one is generated by the legal device before applying for the check information from the server 400, the illegal device cannot obtain the private key one in the electronic device 200. In this way, the server 400 further improves the security mechanism of the server 400 checking the legality of the device through the double verification mechanism. It guarantees the security of the subsequent transmission of the router 300 and the electronic device 200.
[0372] Optionally, in the step of S808, after the server 400 receives the registration information and the check information of the electronic device 200 sent by the electronic device 200 through the router 300, the server 400 does not need to generate a random number to verify the legality of the electronic device 200. The server 400 only needs to confirm that the registration information of the electronic device 200 sent by the electronic device 200 through the router 300 is the registration information sent by the server to the electronic device 200 through the router 300 before, and the server 400 obtains the public key preset in the check information from the check information. Then the server 400 can confirm that the electronic device 200 is a legal device.
[0373] Mode two: the server 400 only verifies the electronic device 200 as a legal device through the registration information.
[0374] Specifically, in the steps of S806-S808, the electronic device 200 only needs to send the registration information to the server 400, and the server 400 only needs to verify the electronic device 200 as a legal device through the registration information of the electronic device 200. Specifically, the electronic device 200 sends the registration information of the electronic device 200 to the server 400 through the router 300, and after the server 400 receives the registration information of the electronic device 200 sent by the electronic device 200 through the router 300, the server 400 confirms that the registration information of the electronic device 200 sent by the electronic device 200 through the router 300 is the same as the registration information sent by the server to the electronic device 200 through the router 300 before. Then the server 400 can confirm that the electronic device 200 is a legal device.
[0375] Mode three: the server 400 only verifies the electronic device 200 as a legal device through the check information.
[0376] Specifically, in the steps of S806-S808, the electronic device 200 only needs to send the check information to the server 400, and the server 400 only needs to verify the electronic device 200 as a legal device through the check information of the electronic device 200. Specifically, the electronic device 200 only needs to send the check information of the electronic device 200 to the server 400 through the router 300, and after the server 400 receives the check information of the electronic device 200 sent by the electronic device 200 through the router 300, the server 400 verifies the electronic device 200 as a legal device through the check information.
[0377] How the server 400 verifies the electronic device 200 as a legal device through the check information has been described in detail in the above mode one, and specifically, reference can be made to the specific introduction in mode one, which will not be repeated here.
[0378] After the server 400 verifies that the electronic device 200 is a legitimate device, the server 400 stores a binding relationship between the electronic device 200 and the router 300. The electronic device 200 and the router 300 are associated with the same account. After the electronic device 200 and the router 300 are associated with the same account, the server 400 records information that the electronic device 200 and the router 300 are associated with the same account. The electronic device 200 can communicate with the server 400, and the electronic device 200 can also verify, through the server 400, that the electronic device 200 and the router 300 are associated with the same account. Specifically, the server 400 can receive an instruction (such as an instruction to turn on the router 300) from the electronic device 200 for controlling the router 300. When the server 400 determines that the electronic device 200 and the router 300 are associated with the same account, the server 400 can send the control instruction to the router 300, so that the router 300 performs an operation corresponding to the control instruction.
[0379] After the server 400 verifies that the electronic device 200 is a legitimate device, the server 400 sends the auth code set one to the router 300. The router 300 receives the auth code set one sent by the server 400, and the router 300 sends the auth code set one to the electronic device 200. Then, the electronic device 200 and the router 300 negotiate a key two through the auth code set one, and complete the transmission of the network configuration information (such as the name and password of the router 300) through the key two.
[0380] Here, the auth code set one is randomly generated by the server 400, and the auth code set one can include one or more auth codes.
[0381] As shown in Figure 9A , the method of transmitting the network configuration information by the electronic device 200 and the router 300 is exemplarily shown. Figure 9A The method flowchart of transmitting the network configuration information by the electronic device 200 and the router 300 is exemplarily shown.
[0382] S901-S906 exemplarily show the method steps of transmitting the network configuration information by the electronic device 200 and the router 300. It should be noted that, in some embodiments, the method steps of transmitting the network configuration information by the electronic device 200 and the router 300 can include more or fewer steps than S901-S906, which are not limited in the present application. The present application does not limit the execution order of each step in S901-S906.
[0383] S901, the server 400 sends the auth code set one to the router 300.
[0384] S902, the router 300 sends the auth code set one to the electronic device 200.
[0385] After verifying that the electronic device 100 is a legitimate device, the server 400 randomly generates an auth code (auth code set one) and sends the auth code set one to the router 300. The router 300 receives the auth code set one sent by the server 400, and then sends the auth code set one to the electronic device 200, so that the router 300 and the electronic device 200 subsequently negotiate a key two based on the auth code set one to transmit the network configuration information.
[0386] It should be noted that the auth code set one randomly generated by the server 400 is different for different devices to be configured. Therefore, the key two negotiated by the different devices to be configured and the router 300 based on the auth code set one is also different. In this way, the security of the transmission of the network configuration information between the electronic device 200 and the router 300 is further improved.
[0387] S903, the electronic device 200 and the router 300 negotiate a key two based on the auth code set one.
[0388] In some embodiments, the electronic device 200 and the router 300 can negotiate the key two based on the auth code set one according to the Diffie-Hellman (DH) algorithm. In other embodiments, the electronic device 100 and the router 300 can also negotiate the key two based on the auth code set one through other algorithms, which are not limited in the embodiments of the present application. The following embodiments of the present application illustrate the negotiation of the key two by the electronic device 200 and the router 300 through the DH algorithm based on the auth code set one.
[0389] In the DH algorithm, the electronic device 200 and the router 300 only transmit the parameters in the formula for calculating the key two, but do not directly transmit the key two. In this way, if an attacker is listening to the communication process between the electronic device 200 and the router 300, even if the attacker obtains the parameters in the formula for calculating the key two, the attacker does not know which formula is used to obtain the key two, so it is difficult for the attacker to obtain the key two. The electronic device 200 and the router 300 negotiate the key two in this way, which ensures that the key two cannot be stolen by the attacker and ensures the security of the transmission of the network configuration information between the electronic device 200 and the router 300.
[0390] The basic principle of the DH algorithm is introduced as follows. The DH algorithm can include, but is not limited to, the following steps:
[0391] Step one: The router 300 sends a prime number P and a prime number G to the electronic device 200.
[0392] It should be noted that the prime number P is a very large number, and the prime number G can be a smaller number, which is not limited in the present application.
[0393] In some embodiments, the prime number P and the prime number G can also be generated by the electronic device 200 and sent to the router 300, which is not limited in the present application.
[0394] Step two: the electronic device 200 calculates the value of (G A ) mod P, and sends the value of (G A ) mod P to the router 300.
[0395] Step three: the router 300 calculates the value of (G B ) mod P, and sends the value of (G B ) mod P to the electronic device 200.
[0396] In step two and step three, the first auth code set includes m auth codes, and m is greater than or equal to 1. When m = 1, that is, the first auth code set includes only one auth code, A represents the one auth code in the first auth code set. When m is greater than or equal to 2, that is, the first auth code set includes at least two auth codes, A represents the product of the m auth codes in the first auth code set. The calculation principle of B is similar to that of A.
[0397] Step four: the electronic device 200 can calculate the second key according to the value of (G B ) mod P sent by the router 300 according to formula one.
[0398] K = ((G B )) A mod P formula (1)
[0399] From formula (1), it can be seen that K = G A*B mod P. Wherein A is the first auth code set sent by the server 400 to the electronic device 200, and K is the second key negotiated by the electronic device 200 and the router 300.
[0400] Step five: the router 300 can calculate the second key according to the value of (G A ) mod P sent by the electronic device 200 according to formula two.
[0401] K = ((G A )) B mod P formula (2)
[0402] From formula (2), K=G A*B mod P. Wherein, B is the auth code set one sent by the server 400 to the router 300, K is the key two obtained by the electronic device 200 and the router 300.
[0403] From step four and step five, the key two obtained by the electronic device 200 and the router 300 is the same. Then, the electronic device 200 and the router 300 can transmit the network configuration information through the key two.
[0404] It should be noted that the formula shown in the above embodiment is only for explaining the process of the electronic device 200 and the router 300 negotiating the key two, and in other embodiments, the formula for calculating the key in the DH algorithm can be the same as or different from the formula for calculating the key two in the above steps, which is not limited herein.
[0405] From the above analysis, the way that the electronic device 200 and the router 300 negotiate the key two through the DH algorithm can improve the security of subsequent transmission of network configuration information. On the one hand, the electronic device 200 and the router 300 only pass the parameter value in the formula between the electronic device 200 and the router 300 through the DH algorithm negotiation, even if an attacker is listening to the communication process between the electronic device 200 and the router 300 and intercepts the parameter value in the formula passed between the electronic device 200 and the router 300, it is also difficult to calculate the real key according to the parameter value in the formula; on the other hand, after the server 400 verifies that the electronic device 200 is a legal device, the server 400 will send the auth code set one to the router 400 and the electronic device 200, that is, the auth code set one randomly sent by the server 400 to different electronic devices is different after different devices initiate verification to the server 400 at different times, that is, the key obtained by different devices and the router 300 through the DH algorithm is also different, and it is difficult for an attacker to obtain the key. In this way, the security of the transmission of network configuration information between different devices and the router 300 is further improved.
[0406] S904, the router 300 sends the network configuration information encrypted with the key two to the electronic device 200. Correspondingly, the electronic device 200 obtains the network configuration information encrypted with the key two.
[0407] S905, the electronic device 200 decrypts the network configuration information encrypted with the key two through the key two to obtain the network configuration information.
[0408] The router 300 encrypts the configuration information with the key two and sends the configuration information encrypted with the key two to the electronic device 200. After the electronic device 200 receives the configuration information encrypted with the key two, the electronic device 200 decrypts the configuration information encrypted with the key two according to the key two, and obtains the configuration information of the router 300.
[0409] After the router 300 sends the configuration information encrypted with the key two to the electronic device 200, the router 300 stops sending the open ssid of the router 300.
[0410] S906, the electronic device 200 connects to the router 300 based on the configuration information of the router 300.
[0411] The configuration information can include, but is not limited to, the name and password of the router 300, and the like. The configuration information can also include more information, which is not limited herein.
[0412] After the electronic device 200 obtains the configuration information of the router 300, the electronic device 200 connects to the router 300 based on the configuration information of the router. In this way, the electronic device 200 can access the Internet through the router 300.
[0413] Based on the configuration method provided in the embodiments of the present application, two application scenarios related to the embodiments of the present application are introduced below.
[0414] Scenario one: remote configuration
[0415] The remote configuration application scenario refers to that the user A operating the electronic device 100 can also remotely guide the user B operating the electronic device 200 to power on the electronic device 200, and the user A remotely completes the configuration of the electronic device 200 by operating the electronic device 100. Specifically, the router 300 discovers the electronic device 200 in the standby configuration state, and the electronic device 100 displays prompt information that the electronic device 200 in the standby configuration state is discovered on the remote configuration interface of the first application program (for example, a smart life application program). Then, the electronic device 100 can receive the input operation of the user A on the remote configuration interface of the first application program, trigger the router 300 to send the configuration information to the electronic device 200 in the standby configuration state, so that the electronic device 200 receives the configuration information sent by the router 300, and the electronic device 200 connects to the router 300 through the configuration information of the router 300. The user A and the user B can not be the same user, and the user A does not need to be near the router 300 and the electronic device 200. In this way, even if the user A does not operate the router 300 and the electronic device 200, the electronic device 200 can also be remotely connected to the router 300 on the electronic device 100.
[0416] For example, a child buys a smart single product (e.g., a smart speaker) for a parent at home, and the parent does not know how to operate to connect the smart speaker to the router at home. Then, the parent is guided by the child through the phone to power on the smart speaker and place it in the waiting network configuration state, the smart speaker broadcasts the network configuration information element, and the router at home receives the network configuration information element and discovers the smart speaker in the waiting network configuration state. At this time, the indicator light of the router flashes. If the parent does not know how to press the network configuration key of the router, or the router is in a weak electric box or cabinet top, etc. It is not convenient to get. At this time, the child can enter the remote network configuration interface of the first application program (e.g., a smart life application program) through the mobile phone. The mobile phone of the child can display a prompt information that the device in the waiting network configuration state is discovered on the remote network configuration interface of the smart life application program. The child determines that the waiting network configuration device displayed on the remote network configuration interface is the smart speaker bought for the parent. Then, the mobile phone can receive the input operation of the child on the remote network configuration interface. In response to the input operation, the router 300 sends the network configuration information to the smart speaker. The smart speaker connects to the router at home after obtaining the network configuration information.
[0417] As shown in Figure 9A , the home application scenario includes a first room area 901, a second room area 902, and a living room area 903. The first room area 901 includes a smart TV 9012, the second room area 902 includes a smart speaker 9013, and the living room area 903 includes a router 300 and a smart projector 9014, etc.
[0418] It should be understood that in the remote network configuration application scenario described herein, the user who turns on the electronic device 200 and makes the electronic device 200 in the waiting network configuration state, and the user who inputs the operation on the electronic device 100, can not be the same user, or can be the same user.
[0419] In the case of not being the same user, if the user who turns on the electronic device 200 and makes the electronic device 200 in the waiting network configuration state is called "user B", and the user who inputs the operation on the electronic device 100 is called "user A". Then, user B needs to be in Figure 9A the home shown in Figures 9B-9F to turn on the electronic device 200 and make the electronic device 200 in the waiting network configuration state, and user A can not be in Figure 9B the home shown in Figure 9B the router 300 in the home shown in Figure 9B . User A can remotely guide user B to power on the electronic device 200, and remotely complete the network configuration of the electronic device 200 by operating the electronic device 100. Thus, the application of the present solution can realize remote network configuration.
[0420] Exemplarily, when the user B is a user unfamiliar with the network configuration operation, the user B only needs to power on the electronic device 200, and the other network configuration operations can be remotely completed by the user A. Therefore, the network configuration method provided by the embodiments of the present application is applied to the remote network configuration scene, on the one hand, the learning cost of the user B can be reduced, and the operation of the user B can be simplified, and the network configuration operation of the user B can be completed by the remote user A. On the other hand, before the router 300 sends the network configuration information to the electronic device 200, the server 400 will verify whether the electronic device 200 is a legal device. After the server 400 verifies that the electronic device 200 is a legal device, the server 400 randomly generates an auth code set one and sends it to the router 300 and the electronic device 200, and the router 300 and the electronic device 200 negotiate a key through the auth code set one to encrypt the transmission of the network configuration information. As can be known from the foregoing embodiment analysis, after different devices initiate verification to the server 400 at different times, the auth code set one randomly sent by the server 400 to different devices is also different. The security of the transmission of the network configuration information between the router 300 and the electronic device 200 is further improved.
[0421] Figure 9B Exemplarily, a UI diagram in which a user controls the electronic device 200 to connect to the router 300 on the remote network configuration interface of the first application program is shown.
[0422] Figure 9C Exemplarily, a user interface 910 of the electronic device 100 is shown. The user interface 910 can include icons of some application programs. For example, an icon 9001 of file management, an icon 9002 of email, an icon 9003 of music, an icon 9004 of smart life, an icon 9005 of sports health, an icon 9006 of weather, an icon 9007 of camera, an icon 9008 of address book, an icon 9009 of phone, and an icon 9010 of information. In some embodiments, the user interface 910 can include more or fewer icons of application programs. In some embodiments, the user interface 910 can include some icons of application programs different from the application programs shown in the figure, which are not limited herein. Figure 9A The icons of the application programs different from the application programs shown in the figure are not limited herein.
[0423] The electronic device 100 can start the smart life in response to a user operation on the icon 9004 of the smart life in the user interface 910.
[0424] Figure 9A Exemplarily, a user interface 920 displayed after the electronic device 100 starts the smart life is shown. The user interface 920 is a main page provided by the smart life application.
[0425] The user interface 920 includes one or more electronic devices associated to the same account, and the one or more electronic devices associated to the same account have a binding relationship. The user interface 920 exemplarily shows the router 300, the router 300 is in an online state, and the router 300 is placed in the living room area 903 as shown. Figure 9A The smart television 9012 is in an online state, and the smart television 9012 is placed in the first room area 901 as shown. Figure 9C The smart projector 9014 is in an offline state, and the smart projector 9014 is placed in the living room area 903 as shown. Figure 9D Among them, the "online state" can refer to a state in which the electronic device 200 can communicate with the server 400 or with the electronic device 100, and the user A can control the electronic device 200 in the online state through the electronic device 100 or obtain the state information of the electronic device 200; the "offline state" can refer to a state in which the electronic device 200 cannot communicate with the server 400 or with the electronic device 100, and the user A cannot control the electronic device 200 in the offline state through the electronic device 100.
[0426] When the user B operating the electronic device 200 needs to establish a connection between the electronic device 200 and the router 300, at this time, the electronic device 200 is already in the waiting-to-configure-network state and is in the vicinity of the router 300. However, the user B is not familiar with the operation of establishing a connection between the electronic device 200 and the router 300. Then the user A operating the electronic device 100 can see in the remote configuration network interface of the first application whether there is prompt information about the router 300 discovering the electronic device 200 in the waiting-to-configure-network state. If the user A confirms that the prompt information displayed in the remote configuration network interface is the information of the electronic device 200 that needs to be configured, the electronic device 100 can receive the confirmation operation of the user A, and the router 300 sends the configuration network information of the router 300 to the electronic device 200.
[0427] Specifically, as shown in Figure 9E The icon 9201 can receive a trigger (for example, a click) operation of the user, and in response to the trigger operation of the user, the electronic device 200 displays a user interface 930 as shown in Figure 8
[0428] The user interface 930 includes an information bar 9301, and the information bar 9301 includes an icon 9302. The icon 9302 can receive a trigger (for example, a click) operation of the user, and in response to the trigger operation of the user, the electronic device 100 displays a user interface 940 as shown in Figure 9F The user interface 940 of the remote network configuration is shown. The icon 9302 of the user interface 930 includes the text "remote network configuration", but it should be understood that the text information can also be "network configuration", that is, the network configuration method provided by the embodiments of the present application is applicable to remote network configuration or non-remote network configuration, and the content shown in the drawings does not limit the embodiments of the present application.
[0429] The user interface 940 can include a prompt bar 9401, which includes an icon, a name (for example, a smart speaker) and a control 9402 of the router 300 discovering the device to be configured.
[0430] The electronic device 100 can receive and respond to the user's triggering operation (for example, single click) on the control 9402, which indicates that the user agrees that the router 300 sends the open ssid to the device to be configured. Specifically, the electronic device 100 sends information two to the server 400 through the first application (for example, the smart life application described herein), and the server 400 forwards the information two to the router 300.
[0431] In other implementations, the electronic device 100 can also automatically display the prompt bar 9401 in its user interface in response to the prompt information sent by the server 400 that the electronic device 200 is in the network configuration state. Instead of needing the user to click the icon 9302 to display the prompt bar 9401. Before the electronic device 100 automatically displays the prompt bar 9401, the electronic device 100 can be in any user interface, such as the home screen, the negative one screen, the interface of other applications, the interface of the smart life application, the lock screen interface, the screen-off interface, etc. In this way, the user A can obtain the network configuration prompt information of the electronic device 200 at any time, so as to respond in time and make user operation in time.
[0432] After the router 300 receives the information two, the router 300 sends the open ssid to the device to be configured (for example, the electronic device 200).
[0433] The electronic device 200 receives the open ssid of the router 300 and connects to the open ssid of the router 300. After that, the electronic device 200 sends information three to the server 400 through the first application (for example, the smart life application described herein). Figure 9 After the electronic device 200 establishes a binding relationship with the router 300 in the embodiment shown, the electronic device 200 and the router 300 are associated with the same account. Then the icon, the name and the connection state of the electronic device 200 can be displayed in the user interface 950.
[0434] As Figures 10A-10B As shown, the user interface 950 includes one or more electronic devices associated to the same account, and the one or more electronic devices associated to the same account have a binding relationship. The router 300, the smart TV 9012, the smart projector 9014 and the electronic device 200 are all associated to the same account. The user interface 950 exemplarily shows that the router 300 is in an online state. The smart TV 9012 is in an online state. The smart projector 9014 is in an offline state. The electronic device 200 is in an online state.
[0435] In some implementations, when the electronic device 200 completes the step of connecting the open ssid of the router 300 but has not completed the entire network configuration process, the status of the electronic device 200 (herein exemplarily taken as a smart speaker) in the user interface 950 can be displayed as "connecting", "configuring", "configuring", etc. When the electronic device 200 completes the entire network configuration process, the status of the electronic device 200 in the user interface 950 can be displayed as "online", "connected", "network configuration completed", etc. Thus, user A can accurately perceive the network configuration progress of the electronic device 200 through the electronic device 100.
[0436] In some implementations, if the electronic device 200 encounters a failure in the network configuration process and cannot successfully complete the entire network configuration process, the user interface of the electronic device 100 can also display a failure prompt information to inform user A of the network configuration failure, so that user A can take timely action to troubleshoot the failure cause, for example, user A can call user B to ask whether the power supply of the electronic device 200 is firm, whether the router is working normally, etc.
[0437] After the electronic device 200 is connected to the open ssid of the router 300, the electronic device 200 can perform a network configuration process with the router 300 through the network configuration information of the router 300. Figures 9B-9C The embodiment shown obtains the network configuration information of the router 300, and the electronic device 200 is connected to the wireless local area network in which the router 300 is located through the network configuration information of the router 300. Thus, the entire remote network configuration process for the electronic device 200 is completed.
[0438] Scenario two: one-key network configuration
[0439] One-key network configuration refers to network configuration for one or more devices to be configured at one time. That is, the user only needs to operate once, the router 300 continuously sends the open ssid, and sequentially completes the network configuration process of the multiple devices to be configured which are connected to the open ssid of the router 300. After the router 300 determines that the number of devices connected to the open ssid of the router 300 is 0, the router 300 stops sending the open ssid.
[0440] For example, there are multiple smart products (e.g., a smart speaker and a smart projector) in the home, the router 300 discovers the smart speaker and the smart projector in the waiting-for-network-configuration state, the router 300 receives a user operation of agreeing to network configuration, the router 300 continuously sends the open ssid, and after the smart speaker and the smart projector connect to the open ssid of the router 300, the router 300 can complete the network configuration process with the smart speaker and the smart projector in turn. As can be seen, the router 300 only needs to receive a user operation of agreeing to network configuration once to complete the network configuration process with multiple smart products. Compared with the current router 300 that receives a user operation of agreeing to network configuration once to complete the network configuration process with only one device, the embodiment of the present application can realize simultaneous network configuration of multiple devices and improve the efficiency of network configuration of multiple devices.
[0441] Specifically, after the router 300 receives the message carrying the network configuration IE sent by one or more electronic devices in the vicinity in the waiting-for-network-configuration state, the router 300 can prompt the user that the router 300 has discovered one or more electronic devices in the waiting-for-network-configuration state through other ways, which are not limited by the flashing of the indicator light of the router 300.
[0442] After the indicator light of the router 300 flashes, the router 300 receives a first user operation of agreeing to network configuration, which is used to indicate that the user agrees to the router 300 sending the open ssid to one or more electronic devices in the waiting-for-network-configuration state.
[0443] The first user operation can also be an input operation on the one-key network configuration interface of the first application program, and the first user operation can also be an operation of the router 300 receiving a user trigger (e.g., pressing) of the network configuration key on the router 300; the embodiment of the present application does not limit the specific implementation of the first user operation of agreeing to network configuration.
[0444] Figure 9C The schematic diagram of the electronic device 100 receiving the first user operation on the one-key network configuration interface of the first application program is introduced.
[0445] First, the electronic device 100 receives a user operation of opening the first application program (e.g., a smart life application program).
[0446] Specifically, the embodiment of the present application can be referred to. Figure 10A
[0447] Then, the electronic device 100 receives a user operation of opening the one-key network configuration interface in the first application program.
[0448] Specifically, as Figure 10B As shown, icon 9201 can receive a user's triggering (e.g., clicking) operation, and in response to the user's triggering operation, the electronic device 100 displays a user interface 960 as shown. Figures 7-9
[0449] The user interface 960 includes an information bar 1001, which includes an icon 1002, which can receive a user's triggering (e.g., clicking) operation, and in response to the user's triggering operation, the electronic device 100 displays a one-key network configuration user interface 970 as shown. Figures 7-9
[0450] The user interface 970 can include one or more electronic device icons in a to-be-network-configured state discovered by the router 300 and a control 1003. For example, the electronic device icons in a to-be-network-configured state discovered by the router 300 are an icon of the electronic device 200 (a smart speaker) and an icon of the electronic device 500 (a smart camera).
[0451] In which, the electronic device 100 can receive and respond to a user's triggering operation (e.g., clicking) on the control 1003, which indicates that the user agrees that the router 300 sends out the open ssid, and the electronic device 100 sends information two to the server 400 through the first application (the smart life application described herein), and the server 400 forwards the information two to the router 300.
[0452] After the router 300 receives the information two, the router 300 sends out the open ssid. It can be understood that in the one-key network configuration application scenario, the router 300 is continuously sending out the open ssid. The user can click the icon 1003 only once to make multiple to-be-network-configured devices complete the network configuration process with the router 300 at one time.
[0453] After the router 300 continuously sends out the open ssid in the form of broadcast, one or more electronic devices in a to-be-network-configured state receive the open ssid sent by the router 300. Then, the one or more electronic devices can obtain the network configuration information of the router 300 through the above-mentioned Figure 8 As shown in the embodiment, the router 300 establishes a connection with the one or more electronic devices in turn, so that the one or more electronic devices can obtain the network configuration information of the router 300 through the above-mentioned Figure 10C As shown in the embodiment, the router 300 establishes a connection with the one or more electronic devices in turn, so that the one or more electronic devices can obtain the network configuration information of the router 300 through the above-mentioned
[0454] For example, the electronic device 200 (a smart speaker) and the electronic device 500 (a smart camera) receive and connect to the open ssid of the router 300. Then, the server 400 sends information two to the router 300 through the first application (the smart life application described herein), and the router 300 sends information three to the electronic device 200 and the electronic device 500 through the open ssid. Figure 9 In this embodiment, the smart speaker, smart camera, and router 300 are sequentially associated with the same account. After the smart speaker, smart camera, and router 300 are associated with the same account, the icon, name, and connection status of the smart speaker and the smart camera can be displayed in the user interface 920.
[0455] like Figures 7-9 As shown, user interface 980 includes one or more electronic devices associated with the same account, and these electronic devices are bound together. Router 300, smart TV 9012, smart projector 9014, smart speaker, and smart camera are all associated with the same account. User interface 980 exemplarily shows router 300 online. Smart TV 9012 is online. Smart projector 9014 is offline. Smart speaker 200 is online. Smart camera 500 is online.
[0456] After the smart speaker and smart camera are connected to the router 300's Open SSID, the smart speaker and smart camera can communicate with the router 300 sequentially via... Figures 11-13 The illustrated embodiment obtains the network configuration information of router 300, and the smart speaker and smart camera are connected to the wireless local area network where router 300 is located through the network configuration information of router 300 in sequence.
[0457] It should be noted that since router 300 continuously sends its open SSID, in some embodiments, while router 300 is establishing a connection with one or more electronic devices in a network configuration state, other electronic devices in a network configuration state may connect to router 300's open SSID. To sequentially complete the network configuration process for the electronic devices connected to router 300's open SSID, after completing the network configuration process with one electronic device, router 300 will determine the number of electronic devices connected to router 300's open SSID. If the number of electronic devices connected to router 300's open SSID is greater than or equal to 1, the router will arbitrarily select one device from the connected electronic devices to complete the network configuration process, until router 300 determines that the number of electronic devices connected to router 300's open SSID is 0.
[0458] After the router 300 determines that the number of electronic devices connected to the open ssid of the router 300 is 0, the router will continue to persistently send the open ssid of the router 300 for a certain period of time. If other devices to be configured within a certain period of time are connected to the open ssid of the router 300, the other devices to be configured will be connected to the router 300 through the configuration information of the router 300 as described above. Figure 11 The embodiment shown in the figure obtains the configuration information of the router 300 and is connected to the router 300 through the configuration information of the router 300. If no other device to be configured is connected to the open ssid of the router 300 within a certain period of time, the router 300 will close the function of sending the open ssid, and the configuration connection is ended this time.
[0459] From the above analysis, it can be seen that the router 300 only needs to receive a user operation once to complete the configuration task of one or more devices to be configured, realizes "one-key configuration", and improves the efficiency of the configuration of multiple devices to be configured and the router 300.
[0460] Figure 11 Exemplary shows several "one-key configuration" flowcharts provided by the embodiments of the present application.
[0461] As Figure 11 shown, the "one-key configuration" flowchart can include S1101-S1106.
[0462] In Figure 11 the flowchart, first, the router discovers the device to be configured, and in response to the first user operation, persistently sends the open ssid of the router (that is, S1101 and S1102 are executed), and takes the time when the router starts to send the open ssid as the starting point of the timing, and investigates whether one or more electronic devices are connected to the open ssid of the router within the first preset time after the time (that is, the judgment step of S1103 is executed).
[0463] If one or more electronic devices access the open SSID of the router within the first preset time (i.e., S1103 is "Yes"), the router completes the network configuration process with the one or more electronic devices accessing the open SSID of the router in turn until the number of electronic devices accessing the open SSID of the router is 0 (i.e., S1104 is executed). In the process of executing S1104, the router can continue to send the open SSID persistently, so that in this process, one or more electronic devices in the network configuration state can continue to access the open SSID of the router, and the router can complete the network configuration process with the one or more newly accessed electronic devices in turn until the number of electronic devices accessing the open SSID of the router is 0. After S1104 is executed, the router can start the timer again to determine whether one or more electronic devices access the open SSID of the router within a second preset time after S1104 is executed (i.e., the judgment step of S1105 is executed), and if so, S1104 is executed again, otherwise S1106 is executed.
[0464] If no electronic device accesses the open SSID of the router within the first preset time (i.e., S1103 is "No"), the router can start the timer again to determine whether one or more electronic devices access the open SSID of the router within a second preset time after the time when S1103 is "No" (or the time when the first preset time ends) (i.e., the judgment step of S1105 is executed), and if so (i.e., S1105 is "Yes"), S1104 is executed, otherwise S1106 is executed to end the network configuration, and the router stops sending the open SSID. The second preset time can be the same as or different from the first preset time.
[0465] Thus, Figure 12 In the process shown in the embodiment,
[0466] In the first aspect, after the router starts sending the open SSID, the router waits for a period of time to determine whether one or more electronic devices access the open SSID within the period of time, and if so, the router completes the network configuration with the one or more electronic devices in turn.
[0467] In the second aspect, in the process of executing S1104, the router can continue to send the open SSID persistently, so that one or more electronic devices in the network configuration state can continue to access the open SSID of the router, and the router can complete the network configuration process with the one or more newly accessed electronic devices in turn.
[0468] In a third aspect, after the judgment of S1103 is "No" or S1104 is executed, the router further performs the judgment step of S1105, that is, in the case where the router judges that the number of electronic devices accessing the open ssid of the router is 0, the router does not directly end the network configuration and stop sending the open ssid, but waits for a period of time, and investigates whether there are new electronic devices in the network configuration state accessing the open ssid of the router in the period of time, and if yes, the router also completes the network configuration process of the new devices.
[0469] The above aspects or some of the aspects can achieve the effect of "one-key network configuration", that is, only one user operation is needed to complete the network configuration of multiple electronic devices. Figure 12 The method shown in the embodiments can achieve the effect of "one-key network configuration", that is, only one user operation is needed to complete the network configuration of multiple electronic devices.
[0470] The embodiments of the present application also provide a "one-key network configuration" process as shown in the following. Figure 11 The embodiments of the present application also provide a "one-key network configuration" process as shown in the following. Figure 12 Similarly, S1201 is similar to S1101, and S1202 is similar to S1102. The difference is that Figure 11 The process shown in the embodiments can not include S1105, that is, after the judgment of S1203 is "No" or S1204 is executed, the router can directly end the network configuration without waiting for the second preset time. Since Figure 12 The process shown in the embodiments still includes S1203 (equivalent to S1103 in the embodiments), S1204 (equivalent to S1104 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 11 The process shown in the embodiments still includes S1203 (equivalent to S1103 in the embodiments), S1204 (equivalent to S1104 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 11 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 12 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 13 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 13 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration".
[0471] The embodiments of the present application also provide a "one-key network configuration" process as shown in the following. Figure 11 The embodiments of the present application also provide a "one-key network configuration" process as shown in the following. Figure 13 Similarly, S1301 is similar to S1101, and S1302 is similar to S1102. The difference is that Figure 13 In the process shown in the embodiments, after the judgment of S1303 is "No", the router can directly perform S1306 to end the network configuration without waiting for the second preset time. Since Figure 11 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 11 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 11 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 13 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 14 The process shown in the embodiments still includes S1303 (equivalent to S1103 in the embodiments), S1304 (equivalent to S1104 in the embodiments), S1305 (equivalent to S1105 in the embodiments), and according to the foregoing analysis, the process shown in the embodiments can achieve the effect of "one-key network configuration". Figure 14 The flowchart shown can also achieve the effect of "one-key network configuration".
[0472] As Figure 7 shown, Figure 9 a flowchart of a network configuration method provided by an embodiment of the present application.
[0473] S1401, the electronic device 200 accesses the unauthenticated network of the router 300.
[0474] The electronic device 200 can also be referred to as a first electronic device. The router 300 can be referred to as a wireless access device.
[0475] Optionally, before the electronic device 200 accesses the unauthenticated network of the router 300, the electronic device 200 broadcasts a network configuration information element of the electronic device 200, wherein the network configuration information element is used to enable other electronic devices to discover the electronic device 200 in the network configuration state. The network configuration information element of the electronic device 200 includes one or more of the following: an identifier of the electronic device 200, a capability of the electronic device 200 supporting interconnection, a physical address of the electronic device 200, and the like.
[0476] After the router 300 receives the network configuration IE of the electronic device 200, the router 300 sends access information of the router 300, which can include an identifier of the unauthenticated network, a physical address of the unauthenticated network, and the like. After the electronic device 200 receives the access information of the router 300, the electronic device 200 connects to the unauthenticated network of the router 300 based on the access information of the router 300.
[0477] S1402, the router 300 sends a first request message to the server 400.
[0478] After the electronic device 200 accesses the unauthenticated network of the router 300, the router 300 sends a first request message to the server 400, which is used for the server 400 to generate a first authorization code. That is, in the embodiment of Figure 8 , after S705 is executed, in the embodiment of Figures 9A-9F , before the server 400 executes 901, the router 300 sends a first request message to the server 400, and only after the server 400 receives the first request message, the server 400 will generate a first authorization code (i.e., S901 is executed).
[0479] Alternatively, the first request message can also be used for the server 400 to generate registration information of the electronic device 200. The first request message can be Figure 9 the request for generating registration data in S801 in the embodiment.
[0480] S1403, the server 400 receives the first request message and generates the first authorization code.
[0481] The first authorization code can also be referred to as authcode set one.
[0482] When the first request message is used for the server 400 to generate the first authorization code, i.e., before the server 400 performs S901, the router 300 sends the first request message to the server 400, and the server 400 generates the first authorization code (i.e., performs S901) only after receiving the first request message.
[0483] When the first request message can also be used for the server 400 to generate the registration information of the electronic device 200, the server 400 generates the registration information of the electronic device 200 after receiving the first request message. Then, the electronic device 200, the router 300, and the server 400 go through the steps of S803-S808, the server 400 verifies that the electronic device 200 is a legal device and binds the electronic device 200 and the router 300 to the same account. Then, the server 400 performs S901 to generate the first authorization code.
[0484] In some implementations, the first authorization code is randomly generated by the server 400 in response to the request message of different electronic devices, where the authorization code can be randomly generated by the server 400 according to a preset random number generation algorithm; in some implementations, the server 100 can also generate the same authorization code for different electronic devices.
[0485] In other implementations, the server 400 can also generate the first authorization code and the second authorization code (which can also be referred to as authcode set two), the server 400 sends the first authorization code and the second authorization code to the router 300, the router 300 saves the first authorization code locally, and the router 300 sends the second authorization code to the electronic device 200. Then, the router 300 and the electronic device 200 negotiate the first key based on the first authorization code and the second authorization code. When the first authorization code and the second authorization code are the same, the router 300 and the electronic device 200 negotiate the first key based on the same authorization code. When the first authorization code and the second authorization code are different, the router 300 and the electronic device 200 negotiate the first key based on different authorization codes.
[0486] Optionally, before the server 400 generates the first authorization code, a second electronic device (such as the electronic device 100) receives a second user operation, the second user operation being used to instruct the router 300 to send the access information of the unauthenticated network.
[0487] In some implementations, the second user operation is used to control the router 300 to send the access information of the unauthenticated network. Specifically, after the router 300 discovers the electronic device 200 in the ready-to-configure-network state, the router 300 displays prompt information on the application program on the mobile phone of the network-connected electronic device 100 through the server 400, so that the user can see the prompt information, and the prompt information is used to prompt the user to input the second user operation on the configuration network interface of the application program, so that the router 300 sends the access information of the unauthenticated network. That is, the user can not press the configuration network key (i.e., the first user operation) on the router 300, and the router 300 can also send the access information of the unauthenticated network. It can be ensured that the user can control the router 300 to send the access information of the unauthenticated network on the application program when the user is inconvenient to press the configuration network key of the router 300.
[0488] And this scheme can also be applied to the "remote configuration network" application scenario. That is, the user operating the electronic device 200 is not familiar with the process of connecting the electronic device 200 to the router 300, and even if the user operating the electronic device 100 is not near the user operating the electronic device 200, the user operating the electronic device 100 can remotely control the electronic device 200 to connect to the router 300 through the second user operation on the electronic device 200.
[0489] Specifically, for a specific introduction to the "remote configuration network" application scenario, please refer to the embodiments shown in Figure 8 The embodiments of the present application will not be repeated here.
[0490] In other implementations, the second user operation can also be to control the server 400 to send the first authorization code to the router 300 and the electronic device 200. Specifically, before the server 400 sends the first authorization code to the router 300 and the electronic device 200, the server 400 displays prompt information on the application program on the mobile phone of the electronic device 100, so that the user can see the prompt information, and the prompt information is used to prompt the user to input the second user operation on the configuration network interface of the application program, so that the server 400 sends the first authorization code to the router 300 and the electronic device 200.
[0491] S1404, the router 300 and the electronic device 200 obtain the first authorization code, and obtain the first key based on the first authorization code.
[0492] The first key can also be referred to as key two.
[0493] The first authorization code includes m authorization codes, and m is a positive integer greater than or equal to 1.
[0494] The router 300 negotiates the first key based on x authorization codes in the first authorization code, and the electronic device 200 negotiates the first key based on y authorization codes in the first authorization code; x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
[0495] That is, the server 400 sends the first authorization code to the router 300, the router 300 saves the first authorization code locally, and the router 300 also needs to send the first authorization code to the electronic device 200. The router 300 and the electronic device 200 can select some or all authorization codes from the first authorization code to negotiate the first key.
[0496] In some implementations, x authorization codes in the first authorization code are the same as y authorization codes in the first authorization code, and then the router 300 and the electronic device 200 negotiate the first key based on the same authorization code.
[0497] In other implementations, x authorization codes in the first authorization code are different from y authorization codes in the first authorization code, and then the router 300 and the electronic device 200 negotiate the first key based on different authorization codes.
[0498] Here, how the router 300 and the electronic device 200 negotiate the first key based on the first authorization code can refer to the related description in the embodiments of the present application, which will not be described here again. Figure 8
[0499] Optionally, before the router 300 and the electronic device 200 obtain the first authorization code and negotiate the first key based on the first authorization code, the electronic device 200 sends the first authentication information stored locally to the server 400 through the router 300; the server 400 receives the first authentication information and determines that the electronic device 200 is a legal device according to the first authentication information. In this way, only after the server 400 determines that the electronic device 200 is a legal device through the first authentication information, the server 400 will generate the first authorization code for the electronic device 200 and the router 300 to negotiate the first key to pass the network configuration information. When the server 400 determines that the router 300 is not a legal device through the first authentication information, the server 400 will not generate the first authorization code, and then the router 300 cannot obtain the network configuration information, and the router 300 cannot join the wireless local area network in which the router 300 is located. In this way, the security in the network configuration process is ensured.
[0500] Specifically, when the server 400 determines that the first authentication information satisfies the first condition, it is determined that the electronic device 200 is a legal device.
[0501] In some implementations, the first authentication information includes first registration information (the first registration information can be a MAC address of the electronic device 200, a serial number of the electronic device 200, or a combination of the MAC address and the serial number). Figure 8 registration information described in the embodiments).
[0502] After the server 400 receives the first request information, before the server 400 receives the first authentication information sent by the router 300, the server 400 generates the first registration information (for example, a registration code) and saves the first registration information locally to obtain the second registration information. The server 400 sends the first registration information to the electronic device 200 through the router 300. After receiving the first registration information, the electronic device 200 saves the first registration information locally.
[0503] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the electronic device 200 saved by the server 400 locally. That is, when the server 400 confirms that the first registration information sent by the electronic device 200 through the router 300 is the registration information of the electronic device 200 sent by the server 400 through the router 300 before, the server 400 can preliminarily determine that the electronic device 200 is a legal device.
[0504] In other implementations, the first authentication information includes the first registration information and the first verification information (the first verification information can be Figures 10A-10C The verification information described in the embodiments). The first verification information can be any one of a digital certificate or a KPI certificate.
[0505] The first condition includes that the first registration information in the first authentication information is the same as the second registration information of the electronic device 200 saved by the server 400 locally. And the first verification information is a legal verification information.
[0506] Specifically, before determining that the first verification information is a legal verification information, the server 400 generates a first random number and sends the first random number to the electronic device 200 through the router 300. After receiving the first random number, the electronic device 200 encrypts the first random number according to the first private key to obtain an encrypted first random number. The electronic device 200 sends the encrypted first random number to the server 400 through the router 300. After receiving the encrypted first random number, the server 400 decrypts the encrypted first random number according to the first public key preset in the first verification information to obtain the first random number, and then determines that the first verification information is a legal verification information.
[0507] After determining that the electronic device 200 is a legal device through the first registration information, the server 400 further verifies the legality of the electronic device 200 according to the verification information. In this way, the security of subsequent transmission of network configuration information can be improved.
[0508] Specifically, how the server 400 verifies the legality of the electronic device 200 according to the first registration information and the first verification information can be referred to Figures 11-13 The related description in the embodiments is not repeated here.
[0509] Optionally, before the electronic device 200 sends the first authentication information stored locally by the electronic device 200 to the server 400 through the router 300, the electronic device 200 and the router 300 negotiate a second key (which can also be referred to as key one) based on the preset parameters stored locally by the electronic device 200 and the preset parameters stored locally by the router 300; the electronic device 200 sends the first authentication information stored locally by the electronic device 200 to the server 400 through the router 300, specifically including: the electronic device 200 encrypts the first authentication information based on the second key to obtain encrypted first authentication information; the electronic device 200 sends the encrypted first authentication information to the router 300; the router 300 decrypts the encrypted first authentication information based on the second key to obtain the first authentication information after receiving the encrypted first authentication information; and the router 300 sends the first authentication information to the server 400.
[0510] In some implementations, before the router 300 sends the first registration information to the electronic device 200, the router 300 encrypts the first registration information with the second key to obtain encrypted first registration information. The router 300 sends the encrypted first registration information to the electronic device 200. In this way, the security of information transmission between the electronic device 200 and the router 300 can be ensured.
[0511] In this way, before the electronic device 200 initiates a registration request to the server 400 (which can also be said that before the electronic device 200 sends the first authentication information to the server 400 through the router 300), if the electronic device 200 and the router 300 can negotiate the second key based on the preset parameters stored locally, it can be considered that the electronic device 200 is a preliminary legal device, and the electronic device 200 can initiate a registration request to the server 400 through the router 300. On the one hand, it can be ensured that the electronic device 200 that initiates a registration request to the server 400 is a preliminary legal electronic device, that is, the electronic device 200 stores the preset parameters. On the other hand, the information transmitted between the electronic device 200 and the router 300 is encrypted by the second key before transmission, which can ensure the security of information transmission between the electronic device 200 and the router 300.
[0512] S1405, the router 300 encrypts the network configuration information of the wireless local area network where the router 300 is located based on the first key to obtain encrypted network configuration information, and sends the encrypted network configuration information to the electronic device 200.
[0513] The network configuration information can include, but is not limited to, the name and password of the router 300, and the like. The network configuration information can also include other information, which is not limited herein.
[0514] The router 300 and the electronic device 200 obtain the first authorization code, and negotiate the first key based on the first authorization code. Then, the router 300 encrypts the network configuration information of the wireless local area network in which the router 300 is located based on the first key, obtains encrypted network configuration information, and sends the encrypted network configuration information to the electronic device 200. In this way, the electronic device 200 can obtain the network configuration information of the wireless local area network in which the router 300 is located.
[0515] In S1406, the electronic device 200 receives the encrypted network configuration information, decrypts the encrypted network configuration information based on the first key, obtains the network configuration information, and connects to the wireless local area network in which the router 300 is located based on the network configuration information.
[0516] After the electronic device 200 receives the encrypted network configuration information, the electronic device 200 decrypts the encrypted network configuration information based on the first key, obtains the network configuration information, and connects to the wireless local area network in which the router 300 is located based on the network configuration information. In this way, the electronic device 200 can access the Internet through the router 300.
[0517] Optionally, before the electronic device 200 accesses the unauthenticated network of the router 300, the router 300 sends access information of the unauthenticated network in response to a first user operation. The electronic device 200 receives the access information and accesses the unauthenticated network of the router 300 based on the access information. The first user operation can be a pressing operation on the network configuration key of the router 300. The access information of the unauthenticated network can include the identifier of the unauthenticated network and the physical address of the router 300, and the like. The router 300 sends the access information of the unauthenticated network of the router 300 only after receiving the first user operation (i.e., obtaining the authorization of the user).
[0518] In some implementations, the router 300 continuously sends the access information of the unauthenticated network in response to the first user operation.
[0519] After the electronic device 200 accesses the wireless local network where the router 300 is located, a third electronic device (the electronic device 500) accesses the unauthenticated network of the router 300. The router 300 sends a second request message to the server 400. After the server 400 receives the second request message, the server 400 generates a second authorization code, where the second authorization code is different from the authorization code generated by the server 400 after receiving the request message sent by the router 300. The router 300 and the electronic device 500 obtain the second authorization code, and negotiate a second key based on the second authorization code. The router 300 encrypts the network configuration information of the wireless local network where the router 300 is located based on the second key, obtains encrypted network configuration information, and sends the encrypted network configuration information to the electronic device 500. The electronic device 500 receives the encrypted network configuration information, decrypts the encrypted network configuration information based on the second key, obtains the network configuration information, and connects to the wireless local network where the router 300 is located based on the network configuration information. In this way, the router 300 only needs to receive a user operation once, and continuously sends the access information of the unauthenticated network. Before the router 300 stops sending the access information of the unauthenticated network, one or more electronic devices can access the unauthenticated network of the router 300. Then, the router 300 can complete the network configuration process with the other one or more electronic devices (for example, the electronic device 500) in the same way as the electronic device 200. That is, the router 300 only needs to receive a user operation once, and can complete the network configuration process with multiple electronic devices. Compared with the current router 300 that only receives a user operation once and can only complete the network configuration process with one electronic device, the network configuration efficiency of the electronic device is improved.
[0520] In some implementations, after the router 300 completes the network configuration process with the electronic device 500, the router 300 determines that the number of electronic devices connected to the unauthenticated network of the router 300 is 0, and then the router 300 stops sending the access information of the unauthenticated network.
[0521] In some implementations, after the router 300 completes the network configuration process with the electronic device 500, the router 300 determines that the number of electronic devices connected to the unauthenticated network of the router 300 is 0, and then waits for a period of time. During the period of time, the router 300 still continuously sends the access information of the unauthenticated network. If no other electronic device accesses the unauthenticated network of the router 300, the router 300 stops sending the access information of the unauthenticated network.
[0522] Specifically, how the router 300 implements the one-key network configuration can refer to the embodiments shown in Figure 9E 、 Figure 10B , and details are not described herein again.
[0523] Optionally, the number of electronic devices 200 is one or more, before the electronic device 100 receives the second user operation of the user, the electronic device 100 displays a first user interface (as shown in the user interface 940 or as shown in the user interface 970), the first user interface includes one or more device identifiers corresponding to the one or more electronic devices 200; after the electronic device 100 receives the second user operation of the user, the electronic device 100 displays a second user interface (as shown in the user interface 950 or as shown in the user interface 980), the second user interface includes one or more status identifiers corresponding to the one or more electronic devices 200, the one or more status identifiers are used to indicate that the one or more electronic devices 200 have completed the network configuration, or the one or more electronic devices 200 have connected to the network. Figure 9F Figure 10C
[0524] The second user interface can further include one or more device identifiers corresponding to the one or more electronic devices 200, and the like.
[0525] In this way, after the server 400 confirms that the electronic device 200 is a legitimate device, the server 400 associates the electronic device 200 with the same account as the router 300. In this way, the user can view the network connection status of the electronic device 200 on the application in the electronic device 100, and the network connection status includes but is not limited to online, offline, in network configuration, network configuration failure, and the like.
[0526] The above-described embodiments are merely intended for describing and illustrating the technical solutions of the present application, but not for limiting the same; even though the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or equivalently replace some of the technical features; and such modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0527] In the above-described embodiments, the term "when" can be interpreted as meaning "if" or "after" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "on determining" or "if detecting (the stated condition or event)" can be interpreted as meaning "if determining" or "in response to determining" or "on detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)" depending on the context.
[0528] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be implemented by a computer program instructing relevant hardware to complete, the program can be stored in a computer readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The aforementioned storage medium includes ROM or random storage memory RAM, magnetic disc or optical disc and various storage code medium.< / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A network distribution method, applied to a network distribution system including a first electronic device, a wireless access device, and a server, characterized in that, The method includes: The first electronic device accesses the unauthenticated network of the wireless access device; The wireless access device sends a first request message to the server; The server receives the first request message and generates a first authorization code, wherein the first authorization code is different from the authorization code generated by the server after receiving request messages from other electronic devices sent by the wireless access device; The wireless access device and the first electronic device obtain the first authorization code and negotiate a first key based on the first authorization code; The wireless access device encrypts the network configuration information of the wireless local area network where the wireless access device is located based on the first key, obtains the encrypted network configuration information, and sends the encrypted network configuration information to the first electronic device. The first electronic device receives the encrypted network configuration information, decrypts the encrypted network configuration information based on the first key to obtain the network configuration information, and connects to the wireless local area network where the wireless access device is located based on the network configuration information.
2. The method according to claim 1, characterized in that, Before the wireless access device and the first electronic device obtain the first authorization code, the method further includes: The first electronic device sends the first authentication information stored locally on the first electronic device to the server through the wireless access device; The server receives the first authentication information and determines the first electronic device as a legitimate device based on the first authentication information.
3. The method according to claim 2, characterized in that, Before the first electronic device sends the first authentication information stored locally by the first electronic device to the server via the wireless access device, the method further includes: The first electronic device negotiates a second key based on locally stored preset parameters and the wireless access device negotiates a second key based on locally stored preset parameters; The first electronic device sends the first authentication information stored locally in the first electronic device to the server through the wireless access device, specifically including: The first electronic device encrypts the first authentication information based on the second key to obtain encrypted first authentication information; The first electronic device sends the encrypted first authentication information to the wireless access device; After receiving the encrypted first authentication information, the wireless access device decrypts the encrypted first authentication information based on the second key to obtain the first authentication information. The wireless access device sends the first authentication information to the server.
4. The method according to any one of claims 1-3, characterized in that, The first authorization code includes m authorization codes, where m is a positive integer greater than or equal to 1; The wireless access device and the first electronic device negotiate a first key based on the first authorization code, specifically including: The wireless access device negotiates the first key based on x authorization codes in the first authorization code and the first electronic device negotiates the first key based on y authorization codes in the first authorization code; wherein x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
5. The method according to any one of claims 1-3, characterized in that, Before the first electronic device accesses the unauthenticated network of the wireless access device, the method further includes: The wireless access device responds to the first user's operation by sending access information for the unauthenticated network; The first electronic device accesses the unauthenticated network of the wireless access device, specifically including: The first electronic device receives the access information and accesses the unauthenticated network of the wireless access device based on the access information.
6. The method according to any one of claims 1-3, characterized in that, The power distribution system further includes a second electronic device, and before the server generates the first authorization code, the method further includes: The second electronic device receives a second user operation, which instructs the wireless access device to send access information for the unauthenticated network.
7. The method according to claim 6, characterized in that, The number of the first electronic devices is one or more, and the method further includes: before the second electronic device receives the second user operation from the user. The second electronic device displays a first user interface, which includes one or more device identifiers corresponding to the one or more first electronic devices; After the second electronic device receives the user's second user operation, the method further includes: The second electronic device displays a second user interface, which includes one or more status indicators corresponding to the one or more first electronic devices. The one or more status indicators are used to indicate that the one or more first electronic devices have completed network configuration or that the one or more first electronic devices have connected to the network.
8. The method according to any one of claims 1-3 or claim 7, characterized in that, Before the first electronic device accesses the unauthenticated network of the wireless access device, the method further includes: The first electronic device broadcasts a network distribution information element, wherein the network distribution information element is used to enable other electronic devices to discover the first electronic device in a network distribution state.
9. The method according to any one of claims 1-3 or claim 7, characterized in that, The network configuration information includes the name and password of the wireless local area network where the wireless access device is located.
10. A power distribution method applied to a first electronic device, characterized in that, The method includes: Unauthenticated networks accessed by wireless access devices; Obtain a first authorization code, which is generated by the server, wherein the first authorization code is different from the authorization code received by other electronic devices accessing the unauthenticated network of the wireless access device; Based on the first authorization code, negotiate and determine the first key with the wireless access device; The encrypted network configuration information sent by the wireless access device is received, and the encrypted network configuration information is decrypted based on the first key to obtain the network configuration information. Based on the network configuration information, the wireless access device connects to the wireless local area network where it is located.
11. The distribution network method according to claim 10, characterized in that, Before obtaining the first authorization code, the method further includes: The wireless access device sends the first authentication information stored locally by the first electronic device to the server; wherein the first authentication information is used by the server to determine that the first electronic device is a legitimate device.
12. The distribution network method according to claim 11, characterized in that, Before sending the first authentication information locally stored by the first electronic device to the server via the wireless access device, the method further includes: The second key is obtained through negotiation between the locally stored preset parameters and the wireless access device based on the locally stored preset parameters; Sending the first authentication information locally stored in the first electronic device to the server via the wireless access device specifically includes: The first authentication information stored locally is encrypted based on the second key to obtain encrypted first authentication information; The encrypted first authentication information is sent to the wireless access device; wherein the encrypted first authentication information is used by the wireless access device to decrypt the encrypted first authentication information based on the second key to obtain the first authentication information, and then send the first authentication information to the server.
13. The method according to any one of claims 10-12, characterized in that, The first authorization code includes m authorization codes, where m is a positive integer greater than or equal to 1; Based on the first authorization code, a first key is negotiated and determined with the wireless access device, specifically including: The first key is obtained by negotiating the x authorization codes in the first authorization code and the y authorization codes in the first authorization code; wherein x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
14. The method according to any one of claims 10-12, characterized in that, Before accessing an unauthenticated network of a wireless access device, the method further includes: Receive access information sent by the wireless access device; Unauthenticated networks accessing wireless access devices, specifically including: Access to the unauthenticated network of the wireless access device is based on the access information.
15. The method according to any one of claims 10-12, characterized in that, Before accessing an unauthenticated network of a wireless access device, the method further includes: The network distribution information element of the first electronic device is broadcast, wherein the network distribution information element is used to enable other electronic devices to discover the first electronic device in the network distribution state.
16. The method according to any one of claims 10-12, characterized in that, The network configuration information includes the name and password of the wireless local area network where the wireless access device is located.
17. A network distribution method applied to wireless access equipment, characterized in that, The method includes: After the first electronic device accesses the unauthenticated network of the wireless access device, it sends a first request message to the server; wherein, the first request message is used by the server to generate a first authorization code, wherein the first authorization code is different from the authorization code sent by the wireless access device to other electronic devices accessing the unauthenticated network of the wireless access device; Obtain the first authorization code, and based on the first authorization code, negotiate with the first electronic device to determine the first key; The network configuration information of the wireless local area network where the wireless access device is located is encrypted based on the first key to obtain encrypted network configuration information, and the encrypted network configuration information is sent to the first electronic device; wherein, the encrypted network configuration information is used by the first electronic device to decrypt the encrypted network configuration information based on the first key to obtain the network configuration information, and to connect to the wireless local area network where the wireless access device is located based on the network configuration information.
18. The method according to claim 17, characterized in that, Before obtaining the first authorization code, the method further includes: Receive the first authentication information stored locally in the first electronic device, sent by the first electronic device; The first authentication information is sent to the server; wherein the first authentication information is used by the server to determine that the first electronic device is a legitimate device.
19. The method according to claim 18, characterized in that, Before receiving the first authentication information locally stored in the first electronic device sent by the first electronic device, the method further includes: A second key is obtained through negotiation between the locally stored preset parameters and the first electronic device based on the locally stored preset parameters; Receiving the first authentication information stored locally by the first electronic device, specifically including: Receive first authentication information encrypted with the second key sent by the first electronic device; Before sending the first authentication information to the server, the method further includes: The encrypted first authentication information is decrypted based on the second key to obtain the first authentication information.
20. The method according to any one of claims 17-19, characterized in that, The first authorization code includes m authorization codes, where m is a positive integer greater than or equal to 1; The negotiation with the first electronic device to determine the first key specifically includes: The first key is obtained by negotiating based on x authorization codes in the first authorization code and y authorization codes in the first authorization code; wherein x is greater than or equal to 1 and less than or equal to m, and y is greater than or equal to 1 and less than or equal to m.
21. The method according to any one of claims 17-19, characterized in that, Before the first electronic device accesses the unauthenticated network of the wireless access device, the method further includes: In response to a first user operation, access information for the unauthenticated network is sent; wherein the access information is used for the first electronic device to access the unauthenticated network of the wireless access device.
22. The method according to any one of claims 17-19, characterized in that, Before the first electronic device accesses the unauthenticated network of the wireless access device, the method further includes: The first electronic device receives a network distribution information element broadcast by the first electronic device, wherein the network distribution information element is used to enable other electronic devices to discover the first electronic device in a network distribution state.
23. The method according to any one of claims 17-19, characterized in that, The network configuration information includes the name and password of the wireless local area network where the wireless access device is located.
24. A network configuration method applied to a server, characterized in that, The method includes: Receive a first request message and generate a first authorization code, wherein the first authorization code is different from the authorization code generated by the server after receiving a request message from another electronic device sent by the wireless access device; The first authorization code is sent to the wireless access device and the first electronic device, wherein the first authorization code is used by the wireless access device and the first electronic device to negotiate and obtain a first key; The first key is used by the wireless access device to encrypt the network configuration information of the wireless local area network where the wireless access device is located based on the first key, to obtain encrypted network configuration information, and to send the encrypted network configuration information to the first electronic device; The encrypted network configuration information is used by the first electronic device to decrypt the encrypted network configuration information based on the first key, obtain the network configuration information, and connect to the wireless local area network where the wireless access device is located based on the network configuration information.
25. The method according to claim 24, characterized in that, Before generating the first authorization code, the method further includes: The device receives first authentication information stored locally in the first electronic device from the wireless access device, and determines that the first electronic device is a legitimate device based on the first authentication information.
26. The method according to any one of claims 24-25, characterized in that, The network configuration information includes the name and password of the wireless local area network where the wireless access device is located.
27. An electronic device, characterized in that, The electronic device includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the method of any one of claims 10-16, 17-23 or 24-26.
28. A chip device, characterized in that, The chip device includes at least one processor and a memory for storing computer program code, the computer program code including computer instructions, wherein the at least one processor invokes the computer instructions to cause an electronic device on which the chip device is mounted to perform the method described in any one of claims 10-16, 17-23 or 24-26.
29. A computer-readable storage medium for storing computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in any one of claims 10-16, 17-23, or 24-26.
30. A computer program product, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method described in any one of claims 10-16, 17-23, or 24-26.
Citation Information
Patent Citations
Equipment control method and equipment
CN110336720A
Network distribution method and device, electronic equipment and storage medium
CN110891299A