Network distribution method and device, and storage medium
Through direct binding of base stations and intelligent devices, the binding key is used to complete the binding of user identification information and base station device information on the cloud server, solving the problem of intelligent device distribution network that requires routers in the prior art, and achieving a more efficient and reliable distribution process.
Patent Information
- Application Number
- CN202311843486.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, the distribution process of smart devices requires a router to complete, resulting in incomplete signal coverage, incorrect password input, and other problems such as network distribution failure, and the cost is high.
Turn on WiFi mode through the base station and bind directly to the smart device without the need for router intervention. The binding key is used to complete the binding of user identification information and base station device information on the cloud server.
The distribution network process is simplified, costs are reduced, the reliability and availability of the distribution network process are improved, and the distribution network delay is reduced.
Smart Images

Figure CN120238999A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet of Things, and in particular, to a network configuration method, an apparatus, and a storage medium. Background Art
[0002] Currently, intelligent devices such as intelligent table lamps, intelligent sockets, intelligent cameras, intelligent lighting fixtures, etc. can be connected to a cloud server via Wireless Fidelity (WiFi), and then the intelligent device can be controlled through a terminal.
[0003] However, before the terminal controls the intelligent device, a network configuration operation of the intelligent device needs to be completed. That is, it is necessary to bind the intelligent device with the user identification information used by the terminal. However, the network configuration process requires a router to complete, and the network configuration process needs to be optimized. Summary of the Invention
[0004] In view of this, the present application discloses a network configuration method, an apparatus, a storage medium, and an electronic device.
[0005] According to a first aspect of an embodiment of the present disclosure, a network configuration method is provided, including:
[0006] Sending first information to a base station, where the first information at least includes a binding key; wherein, the first information is used to bind the user identification information corresponding to the binding key with the first device information of the base station on a cloud server;
[0007] Upon scanning an intelligent device, obtaining the base station Wireless Fidelity (WiFi) information;
[0008] Sending the base station WiFi information to the intelligent device; wherein, the base station WiFi information is used for the intelligent device to access the base station in a WiFi manner to complete the binding of the intelligent device and the user identification information.
[0009] According to a second aspect of an embodiment of the present disclosure, a network configuration method is provided, including:
[0010] Upon being in an access point (AP) mode, receiving first information sent by a terminal, where the first information at least includes a binding key;
[0011] Sending a first binding request message to a cloud server, where the first binding request message includes the binding key and the first device information of the base station, and the first binding request message is used to request the cloud server to bind the user identification information corresponding to the binding key with the first device information;
[0012] Sending the base station Wireless Fidelity (WiFi) information to the terminal, so that the terminal sends the base station WiFi information to the intelligent device;
[0013] Receive a second binding request message sent by the intelligent device after accessing the base station based on the base station WiFi information, where the second binding request message includes second device information of the intelligent device;
[0014] Based on the second binding request message, send a third binding request message to the cloud server, where the third binding request message includes the second device information and the first device information, and the third binding request message is used to request the cloud server to bind the intelligent device with the user identification information.
[0015] According to a third aspect of the embodiments of the present disclosure, there is provided a network configuration method, including:
[0016] Receive base station wireless fidelity (WiFi) information sent by a terminal;
[0017] After accessing the base station based on the base station WiFi information, send a second binding request message to the base station, where the second binding request message includes second device information of the intelligent device; the second binding request message is further used to bind the intelligent device with user identification information on the cloud server.
[0018] According to a fourth aspect of the embodiments of the present disclosure, there is provided a network configuration method, including:
[0019] Receive a first binding request message sent by a base station, where the first binding request message includes a binding key and first device information of the base station;
[0020] Bind the user identification information corresponding to the binding key with the first device information;
[0021] Receive a third binding request message sent by the base station, where the third binding request message includes the first device information and second device information of the intelligent device;
[0022] Bind the second device information with the user identification information.
[0023] According to a fifth aspect of the embodiments of the present disclosure, there is provided a network configuration device, including:
[0024] A first sending module, configured to send first information to a base station, where the first information at least includes a binding key; wherein, the first information is used to bind the user identification information corresponding to the binding key with the first device information of the base station on the cloud server;
[0025] An obtaining module, configured to obtain base station wireless fidelity (WiFi) information in response to scanning an intelligent device;
[0026] A second sending module, configured to send the base station WiFi information to the intelligent device; wherein, the base station WiFi information is used for the intelligent device to access the base station in a WiFi manner to complete the binding of the intelligent device and the user identification information.
[0027] According to a sixth aspect of the embodiments of the present disclosure, there is provided a network configuration device, including:
[0028] A first receiving module, configured to receive a first piece of information sent by a terminal in response to being in an access point (AP) mode, where the first piece of information at least includes a binding key;
[0029] A third sending module, configured to send a first binding request message to a cloud server, where the first binding request message includes the binding key and first device information of a base station, and the first binding request message is used to request the cloud server to bind the user identification information corresponding to the binding key to the first device information;
[0030] A fourth sending module, configured to send base station wireless fidelity (WiFi) information to the terminal, so that the terminal sends the base station WiFi information to an intelligent device;
[0031] A second receiving module, configured to receive a second binding request message sent by the intelligent device after accessing the base station based on the base station WiFi information, where the second binding request message includes second device information of the intelligent device;
[0032] A fifth sending module, configured to send a third binding request message to the cloud server based on the second binding request message, where the third binding request message includes the second device information and the first device information, and the third binding request message is used to request the cloud server to bind the intelligent device to the user identification information.
[0033] According to a seventh aspect of the embodiments of the present disclosure, there is provided a network configuration device, including:
[0034] A third receiving module, configured to receive base station wireless fidelity (WiFi) information sent by a terminal;
[0035] A sixth sending module, configured to send a second binding request message to the base station after accessing the base station based on the base station WiFi information, where the second binding request message includes second device information of an intelligent device; the second binding request message is further used to bind the intelligent device to user identification information on the cloud server.
[0036] According to an eighth aspect of the embodiments of the present disclosure, there is provided a network configuration device, including:
[0037] A fourth receiving module, configured to receive a first binding request message sent by a base station, where the first binding request message includes a binding key and first device information of the base station;
[0038] A first binding module, configured to bind user identification information corresponding to the binding key to the first device information;
[0039] A fifth receiving module, configured to receive a third binding request message sent by the base station, where the third binding request message includes the first device information and second device information of the intelligent device;
[0040] A second binding module, configured to bind the second device information to the user identification information.
[0041] According to a ninth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
[0042] A processor;
[0043] A memory for storing executable instructions of the processor;
[0044] Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to any one of the first aspect.
[0045] According to a tenth aspect of the embodiments of the present disclosure, there is provided a base station, including:
[0046] A processor;
[0047] A memory for storing executable instructions of the processor;
[0048] Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to any one of the second aspect.
[0049] According to an eleventh aspect of the embodiments of the present disclosure, there is provided an intelligent device, including:
[0050] A processor;
[0051] A memory for storing executable instructions of the processor;
[0052] Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to the third aspect.
[0053] According to a twelfth aspect of the embodiments of the present disclosure, there is provided an intelligent device, including:
[0054] A processor;
[0055] A memory for storing executable instructions of the processor;
[0056] Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method described in any item of the fourth aspect.
[0057] According to a thirteenth aspect of the present disclosure, there is provided a network configuration system, including:
[0058] A terminal, the terminal is used to execute the steps of the network configuration method described in any item of the first aspect;
[0059] A base station, the base station is used to execute the steps of the network configuration method described in any item of the second aspect;
[0060] An intelligent device, the intelligent device is used to execute the steps of the network configuration method described in the third aspect;
[0061] A cloud server, the cloud server is used to execute the steps of the network configuration method described in any item of the fourth aspect.
[0062] According to a fourteenth aspect of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the network configuration method described in any of the above are implemented.
[0063] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0064] In the present disclosure, the base station can turn on the wifi mode, and the network configuration process of the intelligent device can be completed without the intervention of a router, saving the cost of the network configuration process, improving the reliability of the network configuration process, reducing the network configuration delay, and having high availability.
[0065] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.
[0067] Figure 1 is a schematic diagram of a network configuration process based on a router shown according to an exemplary embodiment of the present disclosure;
[0068] Figure 2 is a schematic diagram of a network configuration scenario shown according to an exemplary embodiment of the present disclosure;
[0069] Figure 3 is a schematic diagram of a network configuration method shown according to an exemplary embodiment of the present disclosure;
[0070] Figure 4It is a schematic diagram of another power distribution method shown according to an exemplary embodiment of the present disclosure;
[0071] Figure 5 It is a schematic diagram of another power distribution method shown according to an exemplary embodiment of the present disclosure;
[0072] Figure 6 It is a schematic diagram of another power distribution method shown according to an exemplary embodiment of the present disclosure;
[0073] Figure 7 It is a schematic diagram of another power distribution method shown according to an exemplary embodiment of the present disclosure;
[0074] Figure 8A It is a schematic diagram of another power distribution method shown according to an exemplary embodiment of the present disclosure;
[0075] Figure 8B It is a schematic diagram of another power distribution method shown according to an exemplary embodiment of the present disclosure;
[0076] Figure 9 It is a block diagram of a power distribution device shown according to an exemplary embodiment of the present disclosure;
[0077] Figure 10 It is a block diagram of another power distribution device shown according to an exemplary embodiment of the present disclosure;
[0078] Figure 11 It is a block diagram of a power distribution device shown according to an exemplary embodiment of the present disclosure;
[0079] Figure 12 It is a block diagram of another power distribution device shown according to an exemplary embodiment of the present disclosure;
[0080] Figure 13 It is a block diagram of a terminal shown according to an exemplary embodiment of the present disclosure;
[0081] Figure 14 It is a block diagram of a base station shown according to an exemplary embodiment of the present disclosure;
[0082] Figure 15 It is a block diagram of a smart device shown according to an exemplary embodiment of the present disclosure;
[0083] Figure 16 It is a block diagram of a cloud server shown according to an exemplary embodiment of the present disclosure;
[0084] Figure 17 It is a schematic diagram of an architecture of a power distribution system shown according to an exemplary embodiment of the present disclosure. Detailed implementation manners
[0085] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0086] In the embodiments of the present disclosure, any of the following methods can be adopted to complete the network configuration process of the intelligent device through the router:
[0087] The first method is the access point (AP) configuration method.
[0088] The AP network configuration method is as follows Figure 1 As shown, the WiFi of the intelligent device is switched to the AP mode. The terminal first scans the AP hotspot. After scanning, it connects to the AP and transmits information such as the service set identifier (SSID) and password of the target router to the intelligent device. After receiving the information, the WiFi of the intelligent device is switched to the station (STA) mode. Then, based on the SSID and password of the target router and other information, it connects to the target router. After the connection is successful, it reports the binding key (bindkey) and the device information of the intelligent device to the cloud server, and the cloud server binds the user identification information and the intelligent device.
[0089] Among them, the binding key refers to the information that can map to the user identifier (uid) information. Using the binding key is to avoid the security risks brought by directly using the user identification information. On the cloud server, the binding key and the uid information are in one-to-one correspondence. After an intelligent device reports a binding key to the cloud server, the cloud server can map to a unique uid information based on the binding password, so as to bind the intelligent device and the uid information and complete the network configuration process.
[0090] The second method is the dual-mode network configuration method (also known as the Bluetooth-assisted network configuration method).
[0091] The Bluetooth-assisted network configuration method means that the intelligent device discovers itself by sending a Bluetooth broadcast. After the terminal connects to the Bluetooth, it transmits the SSID and password of the target router to the intelligent device through the Bluetooth channel to help the intelligent device complete the network configuration process.
[0092] Both of the above two power distribution methods require a router to complete the power distribution process of smart devices. For smart devices with a small total number and simple functions, an ordinary router can meet the requirements. However, as users' demand for smart devices is increasing and the product forms are becoming more and more complex, home routers are gradually unable to meet some applicable scenarios in life. For example, if the smart device is an outdoor camera, the router signal will become very weak after passing through the wall, and it is difficult for a single router signal to cover the entire perimeter of the home. Moreover, when configuring the network through a router, if the password is entered incorrectly, the network configuration will fail.
[0093] To solve the above technical problems, the present disclosure provides the following network configuration methods, devices, and storage media. The base station can turn on the wifi mode, avoiding the problem of network configuration failure caused by incorrect router password entry, and the network configuration process of smart devices can be completed without the intervention of a router, saving the cost of the network configuration process, improving the reliability of the network configuration process, reducing the network configuration delay, and having high usability.
[0094] First, the application scenarios of the network configuration scheme provided by the present disclosure will be introduced below.
[0095] Refer to Figure 2 As shown, smart devices can include but are not limited to cameras, smart sockets, smart bulbs, etc. The base station can act as a network relay, and smart devices directly connect to the base station. The terminal sends control instructions to the base station through the cloud server or local area network, and the base station forwards the control instructions to the smart devices to achieve control of the smart devices.
[0096] It should be noted that the solution of the present disclosure is not limited to the smart home scenario. Other scenarios, such as large-sized houses, indoor and outdoor areas, merchants, etc., where multiple smart devices need to be configured, controlled, and managed, should all fall within the protection scope of the present disclosure.
[0097] Next, the network configuration method provided by the present disclosure will be introduced from the terminal side.
[0098] Refer to Figure 3 As shown, Figure 3 is a schematic diagram of a network configuration method shown in an exemplary embodiment of the present disclosure. This network configuration method can be executed by a terminal, and the terminal can include but are not limited to mobile phones, laptop computers, desktop computers, tablet computers, etc. As Figure 3 shown, this network configuration method can include:
[0099] In step 301, send the first information to the base station.
[0100] In some embodiments, the base station is in AP mode and has turned on the hotspot. After the terminal scans the base station through the corresponding application (Application, APP), the network configuration starts.
[0101] In some embodiments, if the terminal hopes that the smart device can establish a connection with the base station via WiFi, the terminal sends a first message to the base station. The first message includes at least one of the following:
[0102] Binding key;
[0103] SSID of the router;
[0104] Password of the router.
[0105] In some embodiments, if the terminal hopes that the smart device can establish a connection with the base station via a wired manner, at this time the terminal sends a first message to the base station. The first message may only include the binding key and does not need to include information such as the SSID and password of the router.
[0106] In some embodiments, the terminal may send the above first message to the base station via the User Datagram Protocol (UDP).
[0107] In some embodiments, the first message is used to bind the user identification information corresponding to the binding key to the first device information of the base station on the cloud server. This binding process will be introduced in subsequent embodiments and will not be introduced here for the time being.
[0108] In step 302, in response to scanning the smart device, obtain the base station Wi-Fi information.
[0109] In some embodiments, the smart device may be in AP mode. The smart device includes, but is not limited to, devices in smart homes, such as smart bulbs, smart air conditioners, smart cameras, smart rice cookers, etc.
[0110] In some embodiments, when the terminal scans the smart device through the corresponding APP, it can select to configure the network for the smart device.
[0111] In some embodiments, the base station Wi-Fi information includes, but is not limited to, the SSID and password when the base station is a hotspot device.
[0112] The terminal and the base station can interact with the base station through Remote Procedure Call (RPC) to obtain the base station Wi-Fi information.
[0113] Considering that the base station Wi-Fi information such as the SSID and password of the base station belongs to the privacy data of the base station, therefore, the base station can encrypt the base station Wi-Fi information and then the terminal decrypts it to obtain the base station Wi-Fi information.
[0114] In one example, the terminal may first obtain the pincode of the base station, which can be used to authenticate the identity of the device using the pincode and authorize the device using the pincode to obtain the base station privacy information.
[0115] Exemplarily, the terminal may obtain the pincode of the base station by scanning the QR code on the body of the base station, thereby improving the reliability of obtaining the base station WiFi information.
[0116] Of course, the terminal may also obtain the pincode through other secure means, and the present disclosure does not limit this.
[0117] Further, the terminal may adopt an encryption and decryption algorithm, such as the ecc256 algorithm, to generate a public-private key pair of the terminal, that is, the first private key app_pri_key and the first public key app_pub_key.
[0118] Still further, the terminal sends a first RPC message to the base station, which may include the public key of the terminal, that is, the first public key.
[0119] Exemplarily, the first RPC message is as follows:
[0120] {"id":123456,"method":"get_gwinfo","params":{"app_pub_key":"xxxxxxxxxx"}}
[0121] Among them, id refers to the identifier of the first RPC message, method can be used to inform the base station that the terminal hopes to obtain the base station WiFi information, and params refers to parameters, including but not limited to the first public key app_pub_key.
[0122] Still further, the terminal receives a second RPC message returned by the base station, and the second RPC message includes the second information encrypt_data and the second public key gw_pub_key of the base station.
[0123] Exemplarily, the second RPC message is as follows:
[0124] {"id":123456,"code":0,"result":{"encrypt_data":"xxxxxxxxxxx","gw_pub_key":"xxxxxxxx"}}.
[0125] Among them, id refers to the identifier of the first RPC message, code being 0 indicates that the data is normal, encrypt_data is the second information, and gw_pub_key is the second public key.
[0126] The method of how the base station generates the second RPC message is introduced on the base station side and will not be introduced here for the time being.
[0127] Furthermore, the terminal can decrypt the second information based on the first private key app_pri_key and the second public key gw_pub_key to obtain the base station WiFi information. The specific process is as follows:
[0128] The terminal can determine the first key sharekey#1 based on app_pri_key and the second public key gw_pub_key through a key exchange algorithm, such as the Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) algorithm.
[0129] Among them, sharekey#1 = ECDHE(app_pri_key, gw_pub_key).
[0130] The terminal then generates the second key encryptkey#1 based on the above first key sharekey#1 and the previously scanned pincode of the base station through a key generation algorithm, such as the HMAC-based Extract-and-Expand Key Derivation Function (HKDF). Among them, encryptkey#1 = HKDF(sharekey#1, gw_pincode).
[0131] The terminal then decrypts the second information encrypt_data based on the second key encryptkey#1 through an encryption and decryption algorithm, such as the Advanced Encryption Standard (AES) 128 algorithm, that is, AES128(encrypt_data, encryptkey#1), so as to obtain the base station WiFi information.
[0132] In step 303, the base station WiFi information is sent to the smart device.
[0133] In some embodiments, the terminal can establish a connection with the smart device and send the base station WiFi information to the smart device through UDP.
[0134] In some embodiments, the base station WiFi information is used for the smart device to access the base station in WiFi mode to complete the binding of the smart device and the user identification information. The binding of the smart device and the user identification information will be introduced in subsequent embodiments and will not be introduced here for the time being.
[0135] In the above embodiments, the terminal can obtain the base station WiFi information and provide it to the smart device, so as to help the smart device complete the network configuration. Without the intervention of a router, the network configuration process of the smart device can be completed, saving the cost of the network configuration process, improving the reliability of the network configuration process, reducing the network configuration delay, and having high availability.
[0136] Next, the configuration method provided by the present disclosure will be introduced from the base station side.
[0137] Referring to Figure 4 as shown, Figure 4 is a schematic diagram of a network configuration method shown in an exemplary embodiment of the present disclosure. This network configuration method can be executed by a base station. As Figure 4 shown, this network configuration method may include:
[0138] In step 401, in response to being in the access point AP mode, the base station receives the first information sent by the terminal.
[0139] In some embodiments, if the base station is not in the AP mode, it can enter the AP mode by resetting.
[0140] In some embodiments, after the base station enters the AP mode, it sends hotspot information so that the terminal can scan the base station.
[0141] In some embodiments, the base station receives the first information sent by the terminal.
[0142] In some embodiments, if the terminal hopes that the smart device can establish a connection with the base station in the WiFi manner, the base station receives the first information sent by the terminal. The first information includes at least one of the following:
[0143] Binding key;
[0144] SSID of the router to which the terminal is connected;
[0145] Password of the router to which the terminal is connected.
[0146] After receiving the first information, the base station can connect to the router based on the SSID and password of the router, so as to establish a WiFi connection with the smart device through the router subsequently.
[0147] In some embodiments, if the terminal hopes that the smart device can establish a connection with the base station in the wired manner, and at this time the smart device has accessed the local area network, the base station receives the first information sent by the terminal. The first information may only include the binding key.
[0148] In some embodiments, the base station can receive the above first information sent by the terminal through UDP.
[0149] In step 402, send a first binding request message to the cloud server.
[0150] In some embodiments, the first binding request message includes the binding key in the first information and the first device information of the base station.
[0151] The first device information may include, but is not limited to, the device identification information of the base station, and / or, the Media Access Control (MAC) address of the base station.
[0152] In some embodiments, the first binding request message is used to request the cloud server to bind the user identification information corresponding to the binding key to the first device information.
[0153] After receiving the first binding request message, the cloud server may map the binding key to obtain a uid information, and bind the first device information of the base station to the uid information and store it in the database. Further, the cloud server sends a first response message to the base station after the binding is successful.
[0154] In some embodiments, the base station may receive the first response message returned by the cloud server, and the first response message is used to indicate that the cloud server has completed the binding of the user identification information to the first device information. Further, the base station may turn on the WiFi hotspot based on the first response message so that the smart device can access the base station.
[0155] In step 403, send the base station WiFi information to the terminal.
[0156] In some embodiments, the base station WiFi information includes, but is not limited to, the SSID and password when the base station is a hotspot device.
[0157] In some embodiments, the base station receives the first RPC message sent by the terminal, which may include the public key of the terminal, that is, the first public key.
[0158] Exemplarily, the first RPC message is as follows:
[0159] {"id":123456,"method":"get_gwinfo","params":{"app_pub_key":"xxxxxxxxxx"}}
[0160] Among them, id refers to the identifier of the first RPC message, method can be used to inform the base station that the terminal hopes to obtain the base station WiFi information, and params refers to the parameters, including but not limited to the first public key app_pub_key.
[0161] Further, the base station may adopt an encryption and decryption algorithm, such as the ecc256 algorithm, to generate a public-private key pair of the base station, that is, the second private key gw_pri_key and the second public key gw_pub_key.
[0162] Further, the base station can determine the third key sharekey#2 based on the first public key app_pub_key and the second private key gw_pri_key through an exchange key algorithm, such as the ECDHE algorithm.
[0163] Among them, sharekey#3 = ECDHE(gw_pri_key, app_pub_key).
[0164] Further, the base station then generates the fourth key encryptkey#2 based on the above third key sharekey#2 and the access code pincode of the base station through a key generation algorithm, such as HKDF. Among them, encryptkey#2 = HKDF(sharekey#2, gw_pincode).
[0165] Further, the base station then encrypts the base station WiFi information based on the fourth key encryptkey#2 through an encryption and decryption algorithm, such as the AES128 algorithm, that is, AES128(data, encryptkey#2), so as to obtain the second information encrypt_data.
[0166] Among them, the base station WiFi information Data is {"ssid":"xxxxxx","passwd":"xxxx",……}.
[0167] The base station sends a second RPC message to the terminal, which includes the second information encrypt_data and the second public key gw_pub_key.
[0168] Exemplarily, the second RPC message is as follows:
[0169] {"id":123456,"code":0,result":{"encrypt_data":"xxxxxxxxxxx","gw_pub_key","xxxxxxxx"}.
[0170] After receiving the second RPC message, the terminal decrypts the second information to obtain the base station WiFi information. The specific process has been introduced on the terminal side and will not be elaborated here.
[0171] In step 404, receive the second binding request message sent by the intelligent device after accessing the base station based on the base station WiFi information.
[0172] In some embodiments, after the terminal obtains the base station WiFi information, it provides it to the intelligent device, and the intelligent device accesses the base station based on the base station WiFi information.
[0173] In some embodiments, after the smart device accesses the base station, it sends a second binding request message, which at least includes the second device information of the smart device.
[0174] Among them, the second device information of the smart device may include, but is not limited to, the device identification information of the smart device and / or the MAC address of the smart device.
[0175] In step 405, based on the second binding request message, a third binding request message is sent to the cloud server.
[0176] In some embodiments, the base station sends a third binding request message to the cloud server. The third binding request message may include the second device information and the first device information. The cloud server binds the smart device to the user identification information based on the third binding request message.
[0177] After receiving the third binding request message, since the cloud server has previously bound the first device information of the base station to the uid information, at this time, based on the first device information provided by the base station, the bound uid information can be determined, and then based on the second device information of the smart device, the smart device is bound to the uid information and stored in the database. Further, after the binding is successful, the cloud server sends a third response message to the base station.
[0178] In some embodiments, the base station receives the third response message returned by the cloud server, and this third response message is used to inform the base station that the cloud server has completed the binding of the user identification information and the smart device.
[0179] In some embodiments, in response to receiving the third response message returned by the cloud server, the base station sends a second response message to the smart device, informing the smart device that the cloud server has completed the network configuration process.
[0180] In the above embodiments, the base station can act as a relay device and play the role of a router. Without the intervention of a router, the network configuration process of the smart device can be completed, saving the cost of the network configuration process, improving the reliability of the network configuration process, reducing the network configuration delay, and having high availability.
[0181] Next, the configuration method provided by the present disclosure will be introduced from the perspective of the smart device side.
[0182] Refer to Figure 5 as shown, Figure 5 is a schematic diagram of a network configuration method shown in an exemplary embodiment of the present disclosure. This network configuration method can be executed by a smart device, and the smart device includes, but is not limited to, smart home devices, such as smart bulbs, smart cameras, smart sockets, smart rice cookers, smart air conditioners, smart TVs, etc. As Figure 5As shown, the power distribution network method may include:
[0183] In step 501, receive the base station WiFi information sent by the terminal.
[0184] In some embodiments, if the intelligent device base station is not in the AP mode, it can enter the AP mode by resetting.
[0185] In some embodiments, the intelligent device enters the AP mode so that the terminal can scan the intelligent device.
[0186] In some embodiments, after the terminal obtains the base station WiFi information, it can send the base station WiFi information to the intelligent device via UDP. The base station WiFi information includes but is not limited to the SSID and password of the base station.
[0187] In step 502, after accessing the base station based on the base station WiFi information, send a second binding request message to the base station.
[0188] In some embodiments, the intelligent device accesses the base station wirelessly, such as via WiFi, based on the base station WiFi, or accesses the base station when it has already accessed the local area network via a wired method.
[0189] In some embodiments, the intelligent device can send a second binding request message to the base station via UDP. The second binding request message includes the second device information of the intelligent device.
[0190] Among them, the second device information of the intelligent device may include but is not limited to the device identification information of the intelligent device and / or the MAC address of the intelligent device.
[0191] In some embodiments, the intelligent device can receive a second response message returned by the base station. The second response message is used to inform the intelligent device that the cloud server has completed the binding of the intelligent device and the user identification information, and the intelligent device can determine that the power distribution network process has been completed.
[0192] In the above embodiments, the power distribution network process of the intelligent device can be completed without the intervention of a router, saving the cost of the power distribution network process, improving the reliability of the power distribution network process, reducing the power distribution network delay, and having high availability.
[0193] Next, the configuration method provided by the present disclosure will be introduced from the intelligent device side.
[0194] Refer to Figure 6 As shown, Figure 6 is a schematic diagram of a power distribution network method shown in an exemplary embodiment of the present disclosure. The power distribution network method can be executed by a cloud server. As Figure 6 shown, the power distribution network method may include:
[0195] In step 601, receive a first binding request message sent by a base station.
[0196] In some embodiments, the first binding request message includes a binding key and first device information of the base station. Among them, the first device information includes but is not limited to the did information of the base station and the MAC address of the base station.
[0197] In step 602, bind the user identification information corresponding to the binding key to the first device information.
[0198] In some embodiments, the cloud server can map the binding key to determine a uid information. Further, store the uid information and the first device information in a database to complete the binding of the user identification information to the first device information.
[0199] In some embodiments, the cloud server can send a first response message to the base station to inform the base station that the cloud server has completed the binding of the user identification information to the first device information.
[0200] In step 603, receive a third binding request message sent by the base station.
[0201] In some embodiments, the third binding request message includes the first device information and second device information of the smart device. The second device information includes but is not limited to the did information of the smart device and the MAC address of the smart device.
[0202] In step 604, bind the second device information to the user identification information.
[0203] In some embodiments, the cloud server determines the bound uid information based on the first device information and stores the corresponding relationship between the uid information and the second device information in the database to complete the binding of the uid information and the second device information.
[0204] In some embodiments, the cloud server can send a third response message to the base station to inform the base station that the cloud server has completed the binding of the user identification information to the smart information. The base station can send a second response message to the smart device to inform the smart device that the cloud server has completed the binding of the user identification information to the smart device.
[0205] In the above embodiments, the cloud server can complete the binding of the user identification information and the smart device, and can complete the network configuration process of the smart device without the intervention of a router, saving the cost of the network configuration process, improving the reliability of the network configuration process, reducing the network configuration delay, and having high availability.
[0206] In some embodiments, it is necessary to first complete the binding of the first device information of the base station and the user identification information on the cloud server. The specific process is as follows Figure 7 shown, including:
[0207] In step 701, reset the base station so that the base station is in AP mode, and the base station sends a hotspot for other devices around to scan.
[0208] In step 702, after the terminal scans the base station through the App, select to start network configuration.
[0209] In step 703, the terminal selects the base station network configuration method. If the WiFi network configuration method is used, select the router and enter the router information; if the wired network configuration method is used, there is no need to enter the router information, and directly execute step 704.
[0210] In step 704, the terminal connects to the base station AP through the App.
[0211] In step 705, the terminal sends the SSID, password (password, pwd) and binding key (bindkey) of the router to the base station through UDP.
[0212] In step 706, after the base station receives the SSID, pwd and bindkey of the router, connect to the corresponding router. If it is the wired network configuration method, the information (the first information) transmitted does not include the SSID and pwd of the router, and the base station does not need to execute step 606.
[0213] In step 707, the base station sends the first device information of the base station and the bindkey to the cloud server, and requests the cloud server to bind the first device information and the uid. Among them, the first device information includes the device identifier (deviceidentifier, did) information of the base station and the MAC address of the base station.
[0214] In step 708, the cloud server receives the first binding request message, maps the bindkey to the uid, saves the uid information and the first device information to the database to complete the binding, and returns the binding result to the base station.
[0215] In step 709, after the base station determines that the server has completed the binding of the uid information and the first device information, turn on the WiFi hotspot for smart devices to access.
[0216] In some embodiments, after completing the above Figure 7 binding process, it is also necessary to bind the smart device with the uid. The specific process is as follows Figure 8A shown, including:
[0217] In step 801, reset the smart device so that the smart device is in Ap mode.
[0218] In step 802, the terminal scans the smart device through the App and selects to perform network configuration.
[0219] In step 803, the terminal sends the public key of the terminal (i.e., the first public key) to the base station through RPC, and obtains the second information and the public key of the base station (i.e., the second public key). The second information is the information obtained by encrypting the SSID and PWD of the base station WiFi.
[0220] In step 804, the terminal scans the QR code of the base station through the App to obtain the pincode.
[0221] In step 805, the terminal decrypts the second information through the ECDH algorithm to obtain the SSID and PWD of the base station WiFi.
[0222] In step 806, the terminal connects to the smart device Ap through the App.
[0223] In step 807, the terminal sends the SSID and PWD of the base station WiFi to the smart device through UDP.
[0224] In step 808, after receiving the SSID and PWD of the base station WiFi, the smart device connects to the base station WiFi.
[0225] In step 809, the smart device sends a second binding request to the base station through UDP.
[0226] In step 810, the base station, acting as an agent, sends the second device information of the smart device and the first device information of the base station to the cloud server.
[0227] In step 811, after receiving the third binding request message, the cloud server determines the uid information bound to the first device information, saves the uid information and the second device information to the database to complete the binding, and returns the binding result to the base station.
[0228] In step 812, after receiving the third response message, the base station sends a second response message to the smart device to inform the smart device of the binding result and complete the network configuration.
[0229] In some embodiments, for steps 803 to 805 above, the terminal needs to obtain the SSID and password of the base station through rpc. Since these are privacy data, they need to be encrypted and then sent to the terminal through rpc, and then the terminal decrypts them. The specific process is as follows Figure 8B shown:
[0230] Step 803 may include the following steps:
[0231] In step 803-1, the terminal scans the QR code on the base station body to obtain the access code gw_pincode of the base station.
[0232] In step 803-2, the terminal generates the public key app_pub_key (the first public key) and the private key app_pri_key (the first private key) of the terminal through ecc256.
[0233] In step 803-3, the terminal sends a first rpc message to the base station, as follows by way of example:
[0234] {"id":123456,"method":"get_gwinfo","params":{"app_pub_key":"xxxxxxxxxx"}}.
[0235] Step 804 may include the following steps:
[0236] In step 804-1, the base station receives the first rpc message, obtains the first public key app_pub_key, and the base station generates the public key gw_pub_key (the second public key) and the private key gw_pri_key (the second private key) of the base station based on ecc256.
[0237] In step 804-2, the base station generates the third key sharekey#2 = ECDHE(gw_pri_key, app_pub_key) based on the second private key and the first public key.
[0238] In step 804-3, the base station generates the fourth key encryptkey#2 = HKDF(sharekey, gw_pincode) based on the third key and pincode.
[0239] In step 804-4, the base station encrypts the base station WiFi information data with the fourth key, AES128(data, encryptkey) —— {"ssid":"xxxxxx","passwd":"xxxx",……}.
[0240] In step 804-5, the base station replies to the terminal with a second RPC message.
[0241] By way of example, the second RPC message is as follows:
[0242] {"id":123456,"code":0,"result":{"encrypt_data":"xxxxxxxxxxx","gw_pub_key","xxxxxxxx"}}.
[0243] Step 805 may include the following steps:
[0244] In step 805-1, the terminal receives a second RPC message, which includes encrypted data encrypt_data and the public key (second public key) gw_pub_key of the base station.
[0245] In step 805-2, a first key sharekey#1 = ECDHE(app_pri_key, gw_pub_key) is determined based on the second public key and the first private key.
[0246] In step 805-3, a second key encryptkey#1 = HKDF(sharekey#1, gw_pincode) is determined based on the first key and the pincode of the base station.
[0247] In step 805-4, the second information is decrypted based on the second key, that is, AES128(encrypt_data, encryptkey#1), to obtain the base station WiFi information.
[0248] In the above embodiments, there is no need to input the SSID and password of the router, which can effectively prevent the problem of network configuration failure caused by incorrect password input. And it simplifies the process of network configuration operation, reduces the network configuration cost, improves the reliability of the network configuration process, reduces the network configuration delay, and has high availability.
[0249] Corresponding to the foregoing embodiment of the application function implementation method, the present disclosure also provides an embodiment of an application function implementation device.
[0250] Referring to Figure 9 as shown in Figure 9 is a schematic structural diagram of a network configuration device shown in an exemplary embodiment of the present disclosure. The device can be deployed on a terminal, and the terminal can include but is not limited to a mobile phone, a laptop computer, a desktop computer, a tablet computer, etc. As Figure 9 shown, the device may include:
[0251] A first sending module 901, configured to send a first message to the base station, where the first message at least includes a binding key; wherein, the first message is used to bind the user identification information corresponding to the binding key to the first device information of the base station on the cloud server;
[0252] An obtaining module 902, configured to obtain the base station Wi-Fi information in response to scanning a smart device;
[0253] A second sending module 903, configured to send the base station WiFi information to the intelligent device; wherein, the base station WiFi information is used for the intelligent device to access the base station in a WiFi manner to complete the binding of the intelligent device and the user identification information.
[0254] Refer to Figure 10 as shown in Figure 10 is a schematic structural diagram of a network configuration device provided by the present disclosure. The device can be deployed on a base station and includes:
[0255] A first receiving module 1001, configured to receive a first piece of information sent by a terminal in response to being in an access point AP mode, where the first piece of information at least includes a binding key;
[0256] A third sending module 1002, configured to send a first binding request message to a cloud server, where the first binding request message includes the binding key and first device information of the base station, and the first binding request message is used to request the cloud server to bind the user identification information corresponding to the binding key to the first device information;
[0257] A fourth sending module 1003, configured to send base station wireless fidelity WiFi information to the terminal, so that the terminal sends the base station WiFi information to the intelligent device;
[0258] A second receiving module 1004, configured to receive a second binding request message sent by the intelligent device after accessing the base station based on the base station WiFi information, where the second binding request message includes second device information of the intelligent device;
[0259] A fifth sending module 1005, configured to send a third binding request message to the cloud server based on the second binding request message, where the third binding request message includes the second device information and the first device information, and the third binding request message is used to request the cloud server to bind the intelligent device to the user identification information.
[0260] Refer to Figure 11 as shown in Figure 11 is a schematic structural diagram of a network configuration device provided by the present disclosure. The device can be deployed on an intelligent device and includes:
[0261] A third receiving module 1101, configured to receive base station wireless fidelity WiFi information sent by a terminal;
[0262] The sixth sending module 1102 is configured to send a second binding request message to the base station after accessing the base station based on the base station WiFi information, where the second binding request message includes second device information of the intelligent device; the second binding request message is further configured to bind the intelligent device with the user identification information on the cloud server.
[0263] Referring to Figure 12 as shown, Figure 12 is a schematic structural diagram of a network configuration device provided by the present disclosure. The device can be deployed on a cloud server and includes:
[0264] The fourth receiving module 1201 is configured to receive a first binding request message sent by the base station, where the first binding request message includes a binding key and first device information of the base station;
[0265] The first binding module 1202 is configured to bind the user identification information corresponding to the binding key with the first device information;
[0266] The fifth receiving module 1203 is configured to receive a third binding request message sent by the base station, where the third binding request message includes the first device information and second device information of the intelligent device;
[0267] The second binding module 1204 is configured to bind the second device information with the user identification information.
[0268] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial descriptions of the method embodiments. The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present disclosure. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0269] Correspondingly, the present disclosure further provides a computer-readable storage medium for storing a computer program, where the computer program is used to implement the steps of the network configuration method described in any one of the above when being executed by a processor.
[0270] Correspondingly, the present disclosure further provides a terminal, including:
[0271] A processor;
[0272] A memory for storing processor-executable instructions;
[0273] Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method described in any one of the above terminal sides.
[0274] Figure 13 FIG. 13 is a block diagram of a network configuration device according to an exemplary embodiment. For example, device 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or other terminals. The terminal may correspond to the above-mentioned electronic device.
[0275] Referring to Figure 13 , device 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power supply component 1306, a multimedia component 1308, an audio component 1310, an input / output (I / O) interface 1312, a sensor component 1316, and a communication component 1318.
[0276] The processing component 1302 generally controls the overall operation of device 1300, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1302 may include one or more modules to facilitate the interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate the interaction between the multimedia component 1308 and the processing component 1302.
[0277] One of the processors 1320 in the processing component 1302 may be configured to execute the network configuration method described in any one of the above.
[0278] The memory 1304 is configured to store various types of data to support the operation of device 1300. Examples of these data include instructions for any application or method operating on device 1300, contact data, phone book data, messages, pictures, videos, etc. The memory 1304 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0279] The power supply component 1306 provides power to various components of device 1300. The power supply component 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1300.
[0280] The multimedia component 1308 includes a screen that provides an output interface between the device 1300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of a touch or swipe action but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1308 includes a front camera and / or a rear camera. When the device 1300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0281] The audio component 1310 is configured to output and / or input audio signals. For example, the audio component 1310 includes a microphone (MIC) that is configured to receive external audio signals when the device 1300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1304 or transmitted via the communication component 1318. In some embodiments, the audio component 1310 further includes a speaker for outputting audio signals.
[0282] The I / O interface 1312 provides an interface between the processing component 1302 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0283] The sensor component 1316 includes one or more sensors for providing an assessment of the various aspects of the state of the device 1300. For example, the sensor component 1316 can detect the on / off state of the device 1300, the relative positioning of components, such as the display and keypad of the device 1300. The sensor component 1316 can also detect a change in the position of the device 1300 or a component of the device 1300, the presence or absence of user contact with the device 1300, the orientation or acceleration / deceleration of the device 1300, and the temperature change of the device 1300. The sensor component 1316 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1316 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1316 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0284] The communication component 1318 is configured to facilitate communication between the device 1300 and other devices in a wired or wireless manner. The device 1300 can access a communication standard-based wireless network, such as WiFi, 3G, 4G, 5G, 6G, or a combination thereof. In an exemplary embodiment, the communication component 1318 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1318 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0285] In an exemplary embodiment, the device 1300 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0286] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1304 including instructions, and the above instructions can be executed by a processor 1320 of the device 1300 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0287] Correspondingly, the present disclosure also provides a base station, including:
[0288] A processor;
[0289] A memory for storing processor-executable instructions;
[0290] Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method described in any one of the above base station sides.
[0291] As Figure 14 shown, Figure 14 is a schematic structural diagram of a network configuration device 1400 shown according to an exemplary embodiment. The device 1400 can be provided as a base station. Referring to Figure 14 , the device 1400 includes a processing component 1422, a wireless transmit / receive component 1424, an antenna component 1426, and a signal processing part specific to the wireless interface. The processing component 1422 can further include one or more processors.
[0292] One of the processors in the processing component 1422 can be configured to execute any of the above-described network configuration methods on the base station side.
[0293] Correspondingly, the present disclosure also provides an intelligent device, including:
[0294] A processor;
[0295] A memory for storing processor-executable instructions;
[0296] Wherein, the processor is configured to execute the executable instructions to implement the steps of any of the above-described network configuration methods on the intelligent device side.
[0297] As Figure 15 shown, Figure 15 is a schematic structural diagram of a network configuration device 1500 shown according to an exemplary embodiment. The device 1500 can be provided as an intelligent device. Referring to Figure 15 , the device 1500 includes a processing component 1522, a wireless transmit / receive component 1524, an antenna component 1526, and a signal processing part specific to the wireless interface. The processing component 1522 can further include one or more processors.
[0298] One of the processors in the processing component 1522 can be configured to execute any of the above-described network configuration methods on the intelligent device side.
[0299] Correspondingly, the present disclosure also provides a cloud server, including:
[0300] A processor;
[0301] A memory for storing processor-executable instructions;
[0302] Wherein, the processor is configured to execute the executable instructions to implement the steps of any of the above-described network configuration methods on the cloud server side.
[0303] As Figure 16 shown, Figure 16 is a schematic structural diagram of a network configuration device 1600 shown according to an exemplary embodiment. The device 1600 can be provided as a cloud server. Referring to Figure 16 , the device 1600 includes a processing component 1622, a wireless transmit / receive component 1624, an antenna component 1626, and a signal processing part specific to the wireless interface. The processing component 1622 can further include one or more processors.
[0304] One of the processors in the processing component 1622 can be configured to execute any of the above-described network configuration methods on the cloud server side.
[0305] Correspondingly, the present disclosure also provides a power distribution system, as Figure 17 shown, Figure 17 FIG. 1700 is a schematic structural diagram of a power distribution system 1700 shown according to an exemplary embodiment, including:
[0306] A terminal 1701, where the terminal is used to execute the steps of any of the power distribution methods on the terminal side;
[0307] A base station 1702, where the base station is used to execute the steps of any of the power distribution methods on the base station side;
[0308] An intelligent device 1703, where the intelligent device is used to execute the steps of any of the power distribution methods on the intelligent device side;
[0309] A cloud server 1704, where the cloud server is used to execute the steps of any of the power distribution methods on the cloud server side.
[0310] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including an..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0311] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0312] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A distribution network method, characterized in that, Including: Sending first information to a base station, where the first information at least includes a binding key; wherein, the first information is used to bind user identification information corresponding to the binding key with first device information of the base station on a cloud server; In response to scanning an intelligent device, obtaining base station Wi-Fi information; Sending the base station Wi-Fi information to the intelligent device; wherein, the base station Wi-Fi information is used for the intelligent device to access the base station in a Wi-Fi manner to complete the binding of the intelligent device and the user identification information.
2. The method according to claim 1, wherein After establishing a connection with the base station in a Wi-Fi manner, the first information further includes at least one of the following: Service Set Identifier (SSID) of a router; Password of the router.
3. The method according to claim 1, wherein After scanning the intelligent device, the method further includes: Obtaining a passcode of the base station; Generating a first private key and a first public key; Sending a first Remote Procedure Call (RPC) message to the base station, where the first RPC message includes the first public key; Receiving a second RPC message returned by the base station, where the second RPC message includes second information and a second public key of the base station; The obtaining of the base station Wi-Fi information includes: Based on the first private key and the second public key, decrypting the second information to obtain the base station Wi-Fi information.
4. The method according to claim 3, wherein The..., including: Based on the first private key and the second public key, determining a first key through a key exchange algorithm; Based on the first key and the passcode, determining a second key; Based on the second key, decrypting the second information to obtain the base station Wi-Fi information.
5. A distribution network method, characterized in that, Including: In response to being in Access Point (AP) mode, receiving first information sent by a terminal, where the first information at least includes a binding key; Sending a first binding request message to a cloud server, where the first binding request message includes the binding key and first device information of the base station, and the first binding request message is used to request the cloud server to bind user identification information corresponding to the binding key with the first device information; Sending the base station Wi-Fi information to the terminal so that the terminal sends the base station Wi-Fi information to the intelligent device; Receiving a second binding request message sent by the intelligent device after accessing the base station based on the base station Wi-Fi information, where the second binding request message includes second device information of the intelligent device; Based on the second binding request message, sending a third binding request message to the cloud server, where the third binding request message includes the second device information and the first device information, and the third binding request message is used to request the cloud server to bind the intelligent device with the user identification information.
6. The method according to claim 5, wherein After establishing a connection with the terminal in a Wi-Fi manner, the first information further includes at least one of the following: Service Set Identifier (SSID) of the connected router; Password of the connected router.
7. The method according to claim 6, wherein After receiving the first information, the method further includes: Based on the SSID of the router and the password of the router, establishing a connection with the router.
8. The method according to claim 6 or 7, characterized in that, The method further includes: In response to receiving the first response message returned by the cloud server, turning on the WiFi hotspot; wherein, the first response message is used to indicate that the cloud server has completed the binding of the user identification information and the first device information.
9. The method according to claim 5, wherein The method further includes: Receiving a first Remote Procedure Call (RPC) message sent by the terminal, where the first RPC message includes a first public key of the terminal; Generating a second public key and a second private key; Based on the first public key and the second private key, determining a third key through a key exchange algorithm; based on the third key and the access code of the base station, determining a fourth key; Encrypting the base station WiFi information based on the fourth key to obtain a second piece of information; The step of sending the base station Wi-Fi information to the terminal includes: Sending a second RPC message to the terminal, where the second RPC message includes the second piece of information and the second public key.
10. The method according to claim 5, wherein The method further includes: In response to receiving a third response message returned by the cloud server, sending a second response message to the smart device; wherein, the third response message is used to inform the base station that the cloud server has completed the binding of the user identification information and the smart information, and the second response message is used to inform the smart device that the cloud server has completed the binding of the user identification information and the smart information.
11. A power distribution network method, characterized in that, It includes: Receiving the base station Wi-Fi information sent by the terminal; After accessing the base station based on the base station WiFi information, sending a second binding request message to the base station, where the second binding request message includes second device information of the smart device; The second binding request message is further used to bind the smart device and the user identification information on the cloud server.
12. The method according to claim 11, wherein The method further includes: Receiving a second response message sent by the base station, where the second response message is used to inform the smart device that the cloud server has completed the binding of the smart device and the user identification information.
13. A power distribution method, characterized in that, It includes: Receiving a first binding request message sent by the base station, where the first binding request message includes a binding key and first device information of the base station; Binding the user identification information corresponding to the binding key with the first device information; Receiving a third binding request message sent by the base station, where the third binding request message includes the first device information and second device information of the smart device; Binding the second device information with the user identification information.
14. The method according to claim 13, wherein After binding the user identification information with the first device information, the method further includes: Sending a first response message to the base station, where the first response message is used to indicate that the cloud server has completed the binding of the user identification information and the first device information.
15. The method according to claim 13, wherein After binding the second device information with the user identification information, the method further includes: Sending a third response message to the base station, where the third response message is used to inform the base station that the cloud server has completed the binding of the user identification information and the smart device.
16. A distribution network device, characterized in that, It includes: The first sending module is configured to send first information to the base station, where the first information at least includes a binding key; wherein, the first information is used to bind the user identification information corresponding to the binding key to the first device information of the base station on the cloud server; The obtaining module is configured to obtain the base station Wi-Fi information in response to scanning the smart device; The second sending module is configured to send the base station Wi-Fi information to the smart device; wherein, the base station Wi-Fi information is used for the smart device to access the base station in a Wi-Fi manner to complete the binding of the smart device and the user identification information.
17. A distribution network device, characterized in that, It includes: The first receiving module is configured to receive the first information sent by the terminal in response to being in the access point (AP) mode, where the first information at least includes a binding key; The third sending module is configured to send a first binding request message to the cloud server, where the first binding request message includes the binding key and the first device information of the base station, and the first binding request message is used to request the cloud server to bind the user identification information corresponding to the binding key to the first device information; The fourth sending module is configured to send the base station Wi-Fi information to the terminal, so that the terminal sends the base station Wi-Fi information to the smart device; The second receiving module is configured to receive a second binding request message sent by the smart device after accessing the base station based on the base station Wi-Fi information, where the second binding request message includes the second device information of the smart device; The fifth sending module is configured to send a third binding request message to the cloud server based on the second binding request message, where the third binding request message includes the second device information and the first device information, and the third binding request message is used to request the cloud server to bind the smart device to the user identification information.
18. A distribution network device, characterized in that, It includes: The third receiving module is configured to receive the base station Wi-Fi information sent by the terminal; The sixth sending module is configured to send a second binding request message to the base station after accessing the base station based on the base station Wi-Fi information, where the second binding request message includes the second device information of the smart device; The second binding request message is further used to bind the smart device to the user identification information on the cloud server.
19. A distribution network device, characterized in that, It includes: The fourth receiving module is configured to receive a first binding request message sent by the base station, where the first binding request message includes a binding key and the first device information of the base station; The first binding module is configured to bind the user identification information corresponding to the binding key to the first device information; The fifth receiving module is configured to receive a third binding request message sent by the base station, where the third binding request message includes the first device information and the second device information of the smart device; The second binding module is configured to bind the second device information to the user identification information.
20. A terminal, characterized in that, It includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to any one of claims 1-4.
21. A base station, characterized in that, Comprising: A processor; A memory for storing executable instructions executable by the processor; Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to any one of claims 5-10.
22. An intelligent device, characterized in that, Comprising: A processor; A memory for storing executable instructions executable by the processor; Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to claim 11 or 12.
23. An intelligent device, characterized in that, Comprising: A processor; A memory for storing executable instructions executable by the processor; Wherein, the processor is configured to execute the executable instructions to implement the steps of the network configuration method according to any one of claims 13-15.
24. A distribution network system, characterized in that, Comprising: A terminal, the terminal is configured to execute the steps of the network configuration method according to any one of claims 1-4; A base station, the base station is configured to execute the steps of the network configuration method according to any one of claims 5-10; An intelligent device, the intelligent device is configured to execute the steps of the network configuration method according to claim 11 or 12; A cloud server, the cloud server is configured to execute the steps of the network configuration method according to any one of claims 13-15.
25. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the network configuration method according to any one of claims 1-15.