Network distribution method and device of intelligent equipment, electronic equipment and readable storage medium
By automatically obtaining network information and distributing networks when smart home devices are reconnected to the network, the problem of distribution networks relying on user manual operations in the existing technology is solved, and the automatic distribution network and account binding of equipment is realized, and the stability and automation of distribution network processes are improved.
Patent Information
- Application Number
- CN202411869195.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-18
AI Technical Summary
The existing smart home device distribution method relies on user manual operations, which is prone to failure due to improper user operations or network interruption, and cannot achieve automated configuration.
When the smart home device is re-connected, it will automatically obtain the network account, network password and user account information that the terminal device has logged in, connect the network according to the stored current distribution progress, and automatically complete the binding of the device and the user account after the connection is successful.
The automated distribution network and account binding of smart home devices has been realized, reducing the steps of manual operation by users, ensuring the stability and automation of the distribution network process. Even if the device is disconnected from the network or restarted in the middle, the distribution network process can still be completed smoothly.
Smart Images

Figure CN119892413A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of smart home technology, and in particular relates to a network distribution method, device, electronic device and readable storage medium for smart devices. Background Art
[0002] With the widespread popularity of the Internet of Things and smart home devices, users have put forward higher requirements for the convenience and automation of device network configuration.
[0003] Currently, many smart devices require users to manually input wireless network communication technology (Wireless Fidelity, Wi-Fi) information and complete network configuration operations through mobile applications (applications, APPs), and then manually bind the device to the user account.
[0004] However, existing network configuration methods often rely on the continuous participation of users. Once the user operates improperly or the network is interrupted, the device may not be able to successfully access the network or bind to the account. Summary of the invention
[0005] The embodiments of the present invention provide a network configuration method and device for a smart device, an electronic device, and a readable storage medium, which can solve the problem that smart home devices cannot automatically configure the network.
[0006] In a first aspect, the present application provides a network configuration method for a smart device, which is applied to a smart home device, and the method comprises:
[0007] When the smart home device is reconnected to the network, the network account, network password and user account information of the terminal device that has logged in are obtained;
[0008] According to the stored current network configuration progress, use the network account and network password to connect to the network;
[0009] When the network connection is successful, the smart home device is bound to the user account information of the terminal device that has logged in.
[0010] Optionally, the using the network account and the network password to connect to the network according to the stored current network configuration progress includes:
[0011] According to the network account, searching for a router corresponding to the network account;
[0012] When the router is found, a network connection is established with the router using the network password according to the current network configuration progress.
[0013] Optionally, the method further comprises:
[0014] When the smart home device network is interrupted or restarted, storing the current network configuration progress;
[0015] The current network configuration progress is sent to the terminal device so that the terminal device displays the current network configuration progress.
[0016] Optionally, binding the smart home device with the user account information of the terminal device that has logged in includes:
[0017] The device information of the smart home device and the user account information of the terminal device that has logged in are uploaded to the server, so that the server binds the smart home device with the user account information of the terminal device that has logged in, and stores the association relationship between the smart home device and the user account information.
[0018] Optionally, after binding the smart home device with the user account information of the terminal device that has logged in, the method further includes:
[0019] Receive the binding status of the user account information returned by the server;
[0020] The binding status of the user account information and the network configuration status of the smart home device are encrypted and sent to the terminal device.
[0021] Optionally, the obtaining of the network account, network password and the user account information of the terminal device that has logged in includes:
[0022] Reading the pre-stored network account, network password and user account information of the terminal device that has logged in; or,
[0023] Receive the network account, the network password and the user account information of the terminal device that has logged in sent by the terminal device.
[0024] In a second aspect, the present application provides a network configuration method for a smart device, which is applied to a terminal device, and the method includes:
[0025] Establish network connection with smart home devices;
[0026] When a network connection is established with the smart home device, the network account, network password and logged-in user account information are sent to the smart home device, so that the smart home device uses the network account and network password to connect to the network according to the current network configuration progress. When the network connection is successful, the smart home device is bound to the logged-in user account information of the terminal device.
[0027] Optionally, establishing a network connection with a smart home device includes:
[0028] Searching for smart home devices in pairing mode within a preset range of the terminal device;
[0029] In the case that there is a smart home device in pairing mode, a network connection is established with the smart home device in pairing mode.
[0030] Optionally, the method further comprises:
[0031] Receive the binding status of the user account information and the network configuration status of the smart home device returned by the smart home device;
[0032] The binding status and the network configuration status are displayed in a display interface of the application.
[0033] In a third aspect, the present application provides a network distribution device for a smart device, which is applied to a smart home device, and the device includes:
[0034] An acquisition module, used to acquire the network account, network password and user account information of the terminal device logged in when the smart home device is reconnected to the network;
[0035] A first connection module, used to connect to the network using the network account and network password according to the stored current network configuration progress;
[0036] The binding module is used to bind the smart home device to the user account information of the terminal device that has logged in when the network connection is successful.
[0037] In a fourth aspect, the present application provides a network distribution device for a smart device, which is applied to a terminal device, and the device includes:
[0038] A second connection module, used to establish a network connection with a smart home device;
[0039] The sending module is used to send the network account, network password and logged-in user account information to the smart home device when a network connection is established with the smart home device, so that the smart home device uses the network account and network password to connect to the network according to the current network configuration progress. When the network connection is successful, the smart home device is bound to the logged-in user account information of the terminal device.
[0040] In a fifth aspect, the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network configuration method of the above-mentioned smart device when executing the program.
[0041] In a sixth aspect, the present application provides a readable storage medium, when the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned network configuration method of the smart device.
[0042] In the embodiment of the present application, first, when the smart home device is reconnected to the network, the network account, network password and user account information logged in by the terminal device are obtained; secondly, according to the stored current network configuration progress, the network account and network password are used to connect to the network; finally, when the network connection is successful, the smart home device is bound to the user account information logged in by the terminal device. Through the above technical solution, if the smart home device is disconnected from the network, after reconnecting to the network, the network account, network password and user account information logged in by the terminal device are automatically obtained, and the network configuration state is automatically entered, and the binding of the device and the user account is automatically completed after the network configuration is successful, thereby realizing an automated device configuration process without the need for manual operation by the user, and realizing the automation of network configuration. Even if the device is disconnected from the network or restarted in the middle, the network configuration process can still be successfully completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0045] Figure 2 It is a flowchart of the steps of a network configuration method for a smart device provided in an embodiment of the present application;
[0046] Figure 3 This is a flowchart of the specific steps of a network configuration method for a smart device provided in an embodiment of the present application;
[0047] Figure 4 is a flowchart of another method for configuring a network for a smart device provided in an embodiment of the present application;
[0048] Figure 5 is a flowchart of another method for configuring a network for a smart device provided in an embodiment of the present application;
[0049] Figure 6 It is a structural diagram of a network distribution device for a smart device provided in an embodiment of the present application;
[0050] Figure 7It is a structural diagram of another network distribution device for smart devices provided in an embodiment of the present application;
[0051] Figure 8 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0052] Fig. 9 It is a structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0055] In the description of the present disclosure, unless otherwise specified, "multiple" means two or more than two, and other quantifiers are similar thereto; "at least one item", "one item or multiple items" or similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one item a can represent any number of a; for another example, one item or multiple items among a, b and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple; "and / or" is a kind of description of the association relationship of associated objects, indicating that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " indicates that the associated objects before and after are in an "or" relationship.
[0056] Although operations or steps are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood that it is required to perform these operations or steps in the specific order shown or in a serial order, or to perform all the operations or steps shown to obtain the desired results. In the embodiments of the present disclosure, these operations or steps can be performed in series; these operations or steps can also be performed in parallel; or some of these operations or steps can be performed.
[0057] With the development of technology, smart devices in people's lives are becoming more and more popular. In order to control multiple smart devices, it is necessary to connect various smart home devices to the router and then bind the accounts with the user's smart devices.
[0058] The existing network connection method for smart devices is mainly to connect the user's smart device to the smart device to be configured, and the user manually enters the Wi-Fi information through the APP and completes the network configuration operation. The smart device to be configured then connects to the router and the server, and finally the user manually binds the device to the user account.
[0059] It can be seen that the existing network configuration methods often rely on the continuous participation of users and require manual operation by users. Once the user operates improperly or the network is interrupted, the device may not be able to successfully access the network or bind to the account.
[0060] In order to solve the above technical problems, the present application provides a network configuration method, device, electronic device and readable storage medium for smart devices. On the one hand, if the smart home device encounters a network interruption, it will automatically obtain the network account, network password and user account information of the terminal device that has logged in after reconnecting to the network, automatically enter the network configuration state, and automatically complete the binding of the device and the user account after the network configuration is successful, thereby realizing an automated device configuration process without the need for manual operation by the user, and realizing the automation of network configuration. Even if the device is disconnected from the network or restarted in the middle, the network configuration process can still be completed smoothly; on the other hand, exiting the App of the terminal device will not cause the loss of network configuration information or the interruption of the binding process, thereby realizing the automation of network configuration and improving the user experience.
[0061] First, an application scenario involved in an embodiment of the present application is described.
[0062] See also Figure 1 The network configuration method of the smart device provided in the embodiment of the present application can be applied to Figure 1 In the system architecture shown, there is at least one smart home device 10 and a terminal device 20.
[0063] In this embodiment, the smart home devices 10 may include: smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projection equipment, smart TVs, smart clothes drying racks, smart curtains, smart audio and video, smart sockets, smart speakers, smart speakers, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robots, smart window cleaning robots, smart mopping robots, smart air purification equipment, smart steamers, smart microwave ovens, smart kitchen treasures, smart purifiers, smart water dispensers, smart cameras, etc.
[0064] In this embodiment, the terminal device 20 may be an electronic device such as a mobile phone, a smart phone, or an electronic computer.
[0065] In some embodiments, the smart home device 10 and the terminal device 20 are connected via a network. The network may include: a wired network, a wireless network, a wired network may include: a wide area network, a metropolitan area network, a local area network, and a wireless network may include: Wi-Fi, Bluetooth.
[0066] Optionally, a client program that can work in conjunction with the smart home cloud platform is installed in the terminal device 20 . The client program can be used to provide a user operation interface to facilitate the user to manage and remotely control at least one smart home device 10 .
[0067] Optionally, the terminal device 20 includes an App module, which is used to encrypt the network account, network password, user account information, etc. and send them to the Wi-Fi module of the smart home device 10, and allow the user to exit the App module.
[0068] Optionally, the smart home device 10 includes a Wi-Fi module, which is used to receive the network account, network password and user account information sent by the user through the App module on the terminal device 20, and automatically connect the device to the specified Wi-Fi network. In this process, the Wi-Fi module has the function of breakpoint resumption. Even if the network configuration process is interrupted, the Wi-Fi module can still continue the network configuration when the network is reconnected.
[0069] Optionally, the smart home device 10 also includes a server module and a status feedback module. The server module is used for uploading the device information and user account information of the device to the server through the server module after the Wi-Fi module is successfully connected to the network, so that the server can perform the device binding operation according to the user account information and establish the association relationship between the device and the user account. The status feedback module is used to feedback the network configuration and binding status information to the server and App to ensure that the user can view the device status in real time.
[0070] In some embodiments, the smart home device 10 may also be connected to a server 30 .
[0071] In this embodiment, the server 30 can be a computing device such as a computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server. The server 30 can also be an independent computing device. The server 30 can also be a computing device cluster composed of multiple electronic devices.
[0072] Optionally, the server 30 can bind the smart home device 10 to the user account. The server 30 can also manage the network configuration status to ensure that the network configuration process can be successfully completed even if the device is disconnected or restarted midway.
[0073] Optionally, the server 30 is a smart home cloud platform, which can provide the user with at least one smart home family account, and the user can manage at least one smart home device installed in the home through the family account.
[0074] The network configuration method for a smart device provided in an embodiment of the present application is described in detail below.
[0075] Figure 2 is a flowchart of a method for configuring a network for an intelligent device provided in an embodiment of the present application. The method for configuring a network for an intelligent device is applied to Figure 1 Smart home devices such as Figure 2 As shown, the method may include:
[0076] Step 101: When the smart home device is reconnected to the network, obtain the network account, network password, and user account information of the terminal device that has logged in.
[0077] In the embodiment of the present application, the network account and the network password may be the account and password of the wireless network in the user's home. For example, the network account may be the wireless network name (Service Set Identifier, SSID) of the wireless router in the user's home network, and the network password may be the wireless network password of the wireless router in the user's home network.
[0078] It is understandable that when there are special circumstances such as network outage, power outage, smart home devices needing to be restarted in batches, network passwords being changed or reset, etc., smart home devices can obtain the preset network account and network password and reconnect to the network.
[0079] In some embodiments, the network configuration method of the smart device may further include: during the network configuration process, the smart home device stores the current network configuration progress in real time; step 101 may include: in the case of reconnection after network configuration interruption, the smart home device obtains the network account, network password and user account information logged in by the terminal device, and resends the network configuration request to the server. Reconnection after network configuration interruption includes reconnection of the smart home device to the network after network configuration interruption due to network interruption, power interruption, batch restart of smart home devices, change or reset of network connection password.
[0080] Step 102: Connect to the network using the network account and network password according to the stored current network configuration progress.
[0081] In the embodiment of the present application, the current network configuration progress is stored in real time by the smart home device during the network configuration process. The network configuration process refers to the process in which the smart device to be configured obtains router information (such as SSID and network password), connects to the router, and then binds the account with the terminal device.
[0082] It should be noted that the current network configuration progress may be any one of the multiple network configuration nodes in the network configuration process, and the current network configuration process may also be the percentage of the completed network configuration process in the entire network configuration process. Exemplarily, the multiple network configuration nodes may include: device firmware version, start connecting to a router, current network signal strength, connection speed, frequency band, encryption type, Internet Protocol (IP) address, successful connection to a router, and / or start connecting to a server, etc.
[0083] In some embodiments, the above-mentioned network configuration method for smart devices may also include: when the smart home device network is interrupted or restarted, storing the current network configuration progress, and sending the current network configuration progress to the terminal device so that the terminal device displays the current network configuration progress.
[0084] Optionally, the smart home device uses a wireless network interface (such as a Wi-Fi module) and a received network account and password to establish a network connection.
[0085] Step 103: When the network connection is successful, the smart home device is bound to the user account information of the terminal device that has logged in.
[0086] In the embodiment of the present application, it can be determined whether the network connection is successful based on the connection duration and the preset time period of the network connection using the network account and the network password.
[0087] In some embodiments, the network configuration method of the above-mentioned smart device may also include: determining the connection time of the smart home device in connecting to the network using the network account and network password; when the connection time is less than or equal to the preset time period, determining that the network connection is successful; when the connection time is greater than the preset time period, determining that the network connection fails.
[0088] For example, the preset time period may be 10 seconds. When the smart home device obtains the network account and network password, if the network connection is not completed within 10 seconds, it can be determined that the network connection of the smart home device has timed out and the network connection has failed. In this way, by setting a preset time to determine whether the network connection of the smart home device has timed out, it is possible to avoid waiting too long for the network connection.
[0089] In the embodiment of the present application, binding the smart home device with the user account information of the terminal device that has logged in may be to establish an association relationship between the smart home device and the user account information.
[0090] To sum up, the network configuration method of the smart device in the embodiment of the present application is that if the network is interrupted, the smart home device will automatically obtain the network account, network password and user account information of the terminal device that has logged in after reconnecting to the network, automatically enter the network configuration state, and automatically complete the binding of the device and the user account after the network configuration is successful, thereby realizing an automated device configuration process without the need for manual operation by the user, and realizing the automation of network configuration. Even if the device is disconnected from the network or restarted in the middle, the network configuration process can still be successfully completed.
[0091] Figure 3 is a flowchart of the specific steps of a network configuration method for a smart device provided in an embodiment of the present application. The network configuration method for the smart device is applied to smart home devices, such as Figure 3 As shown, the method may include:
[0092] Step 201: Obtain the network account, network password and user account information of the terminal device that has logged in.
[0093] The method of this step has been described in the aforementioned step 101 and will not be repeated here.
[0094] Optionally, step 201 includes:
[0095] Sub-step 2011, reading the pre-stored network account, network password and user account information of the terminal device logged in;
[0096] Sub-step 2012: receiving the network account number, network password and user account information of the terminal device that has logged in sent by the terminal device.
[0097] It should be noted that there is an “or” relationship between sub-step 2011 and sub-step 2012.
[0098] In the embodiment of the present application, the network account, network password and user account information of the terminal device that has logged in sent by the terminal device are input by the user through the APP on the terminal device.
[0099] In a possible implementation, before sub-step 2011, the network configuration method of the above-mentioned smart device may also include: storing the network account, network password and logged-in user account information when receiving the network account, network password and logged-in user account information sent by the terminal device.
[0100] In one possible implementation, after sub-step 2012, the network configuration method of the above-mentioned smart device may further include: when the App of the terminal device exits during the network configuration process, the smart home device continues to complete the network configuration operation according to the network account, network password and the user account information of the terminal device that has logged in.
[0101] In some embodiments, the network configuration method of the smart device further includes:
[0102] Sub-step A1: When the smart home device network is interrupted or restarted, store the current network configuration progress;
[0103] Sub-step A2: sending the current network configuration progress to the terminal device so that the terminal device displays the current network configuration progress.
[0104] In an embodiment of the present application, the smart home device can store the current network configuration and wait to continue the network configuration operation after reconnecting to the network.
[0105] Exemplarily, a pop-up box is displayed on the display interface of the terminal device, and the current network configuration progress is displayed in a pop-up box.
[0106] Step 202: Search for a router corresponding to the network account according to the network account.
[0107] Exemplarily, step 202 may include: determining the wireless network name according to the network account, and searching for a wireless router corresponding to the wireless network name.
[0108] Step 203: When a router is found, a network connection is established with the router using the network password according to the current network configuration progress.
[0109] It can be understood that when a router is searched, the current network configuration node is determined according to the current network configuration progress, and the router is connected through the network password, and then the subsequent network configuration operations are completed through the network services provided by the router. For example, when the current network configuration node corresponding to the current network configuration progress is the start of connecting to the server, the smart home device establishes a network communication connection with the server.
[0110] Optionally, the current network configuration progress may include any one of the network configuration nodes of starting to connect to a router, successfully connecting to a router, and successfully connecting to a server.
[0111] In some embodiments, when the current network configuration progress is to start connecting to a router, before step 203, the network configuration method of the smart device may further include: sending a network configuration request to the router according to short-range wireless communication, and establishing a short-range wireless communication channel with the router according to the communication request. Correspondingly, after step 203, the network configuration method of the smart device may further include: sending device information such as device identification, device model, device specifications, and performance parameters to the router.
[0112] Step 204: Upload the device information of the smart home device and the user account information of the terminal device that has logged in to the server.
[0113] In an embodiment of the present application, the server binds the smart home device to the user account information of the terminal device that has logged in, and stores the association relationship between the smart home device and the user account information.
[0114] The method of this step has been described in the aforementioned step 103 and will not be repeated here.
[0115] Step 205: Receive the binding status of the user account information returned by the server.
[0116] In an embodiment of the present application, after binding the smart home device with the user account information of the terminal device that has logged in and storing the association between the smart home device and the user account information, the server sends the binding status of the user account information to the smart home device.
[0117] Step 206: Encrypt the binding status of the user account information and the network configuration status of the smart home device and send them to the terminal device.
[0118] In an embodiment of the present application, the Transport Layer Security (TLS) protocol may be used to encrypt the binding status of the user account information and the network configuration status of the smart home device.
[0119] Exemplarily, the binding status may be whether the smart home device is successfully bound, and the network configuration status may be whether the network connection of the smart home device is successful, the network speed, etc.
[0120] In some embodiments, the binding status of the user account information and the network configuration status of the smart home device may also be sent from the server to the terminal device.
[0121] To sum up, in the network configuration method of the smart device in the embodiment of the present application, the user only needs to send the network and account information through the App, and the device can automatically complete the network configuration and binding operations, which simplifies the user operation steps; even if the App is exited or the device is restarted, the network configuration information can still be retained, ensuring that the network configuration process is not interrupted, thereby improving the stability of the network configuration process.
[0122] Figure 4 is a flowchart of another method for configuring a network for an intelligent device provided in an embodiment of the present application, and the application Figure 1 Terminal devices in Figure 4 As shown, the method may include:
[0123] Step 301: Establish a network connection with a smart home device.
[0124] Optionally, step 301 includes:
[0125] Sub-step 3011, searching for smart home devices in pairing mode within a preset range of the terminal device;
[0126] Sub-step 3012: If there is a smart home device in pairing mode, establish a network connection with the smart home device in pairing mode.
[0127] Exemplarily, the preset range may be around 10 meters.
[0128] Step 302: When a network connection is established with the smart home device, the network account, network password and logged-in user account information are sent to the smart home device.
[0129] In an embodiment of the present application, the smart home device uses the network account and network password to connect to the network according to the current network configuration progress. When the network connection is successful, the smart home device is bound to the user account information of the terminal device that has logged in.
[0130] Optionally, step 302 may include: the terminal device receives the Wi-Fi SSID, password and user account information input by the user through the App; in response to the user clicking the "Start Network Configuration" button, the Wi-Fi SSID, password and user account information are encrypted and sent to the Wi-Fi module in the smart home device. For example, the encryption method of the Wi-Fi SSID, password and user account information can adopt the Counter mode with the encryption algorithm of the Galois message authentication code (GMAC) message authentication code.
[0131] It should be noted that the terminal device can exit the APP after step 302. That is, when the terminal device's App exits during the network configuration process, the Wi-Fi module of the smart home device will continue to complete the network configuration operation.
[0132] In some embodiments, the network configuration method of the smart device further includes:
[0133] Sub-step 303: receiving the binding status of the user account information and the network configuration status of the smart home device returned by the smart home device;
[0134] Sub-step 304: displaying the binding status and network configuration status in the display interface of the application.
[0135] In some embodiments, the network configuration method of the smart device further includes: receiving the current network configuration progress sent by the smart home device or the server, and displaying the current network configuration progress in the display interface of the application. Optionally, when the current network configuration progress continues to grow, the display interface of the application is periodically updated so that the network configuration progress in the display interface of the application changes dynamically.
[0136] To sum up, in the network configuration method of the smart device in the embodiment of the present application, exiting the App of the terminal device will not cause the loss of network configuration information or interruption of the binding process, thereby realizing the automation of network configuration and improving user experience.
[0137] Figure 5 is a flowchart of another method for configuring a network for an intelligent device provided in an embodiment of the present application, and the application Figure 1 The system architecture in Figure 5 As shown, the method may include:
[0138] Step 401: The terminal device sends the SSID, network password and user account information to the smart home device.
[0139] Step 402: The smart home device connects to a designated network.
[0140] In the embodiment of the present application, the designated network may be the network corresponding to the SSID and the network password in step 401 .
[0141] Step 403: The smart home device uploads device information and user account information to the server.
[0142] Step 404: The server binds the smart home device to the user account and stores the association relationship between the smart home device and the user account.
[0143] Step 405: The server feeds back the network configuration status and binding status to the terminal device.
[0144] Step 406: The terminal device checks the device status and manages and controls the device.
[0145] To sum up, the network configuration method of smart devices in the embodiments of the present application automates the network configuration and user account binding process of the device, thereby avoiding network configuration failure caused by App exit or operation interruption, and can manage the network configuration status through the server to ensure that even if the smart home device is disconnected from the network or restarted in the middle, the network configuration process can still be completed smoothly.
[0146] Figure 6 : is a structural diagram of a network distribution device for a smart device provided in an embodiment of the present application. The network distribution device 500 for a smart device is applied to a smart home device. The network distribution device 500 for a smart device may include:
[0147] The acquisition module 501 is used to acquire the network account, network password and user account information of the terminal device that has logged in when the smart home device is reconnected to the network;
[0148] The first connection module 502 is used to connect to the network using the network account and network password according to the stored current network configuration progress;
[0149] The binding module 503 is used to bind the smart home device to the user account information of the terminal device that has logged in when the network connection is successful.
[0150] Optionally, the first connection module 502 includes:
[0151] The first search submodule is used to search for a router corresponding to a network account according to the network account;
[0152] The first connection submodule is used to establish a network connection with the router using a network password according to the current network configuration progress when a router is searched.
[0153] Optionally, the network distribution device 500 of the smart device further includes:
[0154] A storage module is used to store the current network configuration progress when the smart home device network is interrupted or restarted;
[0155] The network configuration progress sending module is used to send the current network configuration progress to the terminal device so that the terminal device can display the current network configuration progress.
[0156] Optionally, the binding module 503 includes:
[0157] The upload submodule is used to upload the device information of the smart home device and the user account information of the terminal device that has logged in to the server, so that the server binds the smart home device with the user account information of the terminal device that has logged in, and stores the association relationship between the smart home device and the user account information.
[0158] Optionally, the network distribution device 500 of the smart device further includes:
[0159] A first receiving module, used to receive the binding status of the user account information returned by the server;
[0160] The second sending module is used to encrypt the binding status of the user account information and the network configuration status of the smart home device and send them to the terminal device.
[0161] Optionally, the acquisition module 501 includes:
[0162] A reading submodule is used to read the pre-stored network account, network password and user account information of the terminal device that has logged in; or,
[0163] The receiving submodule is used to receive the network account number, network password and user account information of the terminal device that has logged in sent by the terminal device.
[0164] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0165] Figure 7 600 is a structural diagram of a network configuration device for a smart device provided in an embodiment of the present application. The network configuration device 600 for a smart device is applied to a terminal device. The network configuration device 600 for a smart device may include:
[0166] The second connection module 601 is used to establish a network connection with a smart home device;
[0167] The sending module 602 is used to send the network account, network password and logged-in user account information to the smart home device when establishing a network connection with the smart home device, so that the smart home device can use the network account and network password to connect to the network according to the current network configuration progress. When the network connection is successful, the smart home device is bound to the logged-in user account information of the terminal device.
[0168] Optionally, the second connection module 601 includes:
[0169] The second search submodule is used to search for smart home devices in pairing mode within a preset range of the terminal device;
[0170] The second connection submodule is used to establish a network connection with the smart home device in the pairing mode when there is a smart home device in the pairing mode.
[0171] Optionally, the network distribution device 600 of the smart device further includes:
[0172] The second receiving module is used to receive the binding status of the user account information and the network configuration status of the smart home device returned by the smart home device;
[0173] The display module is used to display the binding status and network configuration status in the display interface of the application.
[0174] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0175] The present application also provides an electronic device, see Figure 8 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0176] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0177] The memory 704 is used to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, multimedia, etc. The memory 704 can 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, magnetic disk or optical disk.
[0178] The power supply component 706 provides power to the various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.
[0179] The multimedia component 708 includes an interface that provides an output interface between the electronic device 700 and the user. In some embodiments, the interface may include a liquid crystal display (LCD) and a touch panel (TP). If the interface includes a touch panel, the interface may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0180] The audio component 710 is used to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0181] The input / output I / O interface 712 provides an interface between the processing component 702 and the peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0182] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0183] The communication component 716 is used to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 7G or 7G), or a combination thereof. In an exemplary embodiment, the communication component 716 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 716 also 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.
[0184] In an exemplary embodiment, the electronic device 700 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 to implement a network configuration method for a smart device provided in an embodiment of the present application.
[0185] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0186] Fig. 98 is a block diagram of an electronic device 800 according to another embodiment of the present invention. For example, the electronic device 800 may be provided as a server. Fig. 9 The electronic device 800 includes a processing component 822, which further includes one or more processors, and a memory resource represented by a memory 832 for storing instructions executable by the processing component 822, such as an application. The application stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 822 is configured to execute instructions to execute a network configuration method for a smart device provided in an embodiment of the present application.
[0187] The electronic device 800 may also include a power supply component 826 configured to perform power management of the electronic device 800, a wired or wireless network interface 850 configured to connect the electronic device 800 to a network, and an input / output (I / O) interface 858. The electronic device 800 may operate based on an operating system stored in the memory 832, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
[0188] In an embodiment of the present application, the memory 832 may be used to store software programs and various data. The memory 832 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 832 may include a volatile memory or a non-volatile memory, or the memory 832 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 832 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0189] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.
[0190] The present application also provides a readable storage medium. When the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device can execute the network configuration method of the smart device of the aforementioned embodiment.
[0191] An embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the network configuration method embodiment of the smart device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] It should be noted that the various information and data obtained in the embodiments of the present application are obtained with the authorization of the information / data holder. All actions of obtaining signals, information or data in the present application are carried out in compliance with the relevant data protection laws and policies of the country of residence and with the authorization of the corresponding device owner.
[0193] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the application is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the description of the specific language above is for the purpose of disclosing the best mode of implementation of the application.
[0194] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0195] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0196] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0197] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the sorting device according to the present application. The present application can also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0198] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0199] The user information (including but not limited to the user's device information, user personal information, etc.) and related data involved in this application are all information authorized by the user or by all parties.
[0200] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0201] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application. The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A network configuration method for smart devices, characterized in that: Applied to smart home devices, the method includes: When the smart home device is reconnected to the network, the network account, network password and user account information of the terminal device that has logged in are obtained; According to the stored current network configuration progress, use the network account and network password to connect to the network; When the network connection is successful, the smart home device is bound to the user account information of the terminal device that has logged in.
2. The method according to claim 1, characterized in that The method of performing network connection by using the network account and network password according to the stored current network configuration progress includes: According to the network account, searching for a router corresponding to the network account; When the router is found, a network connection is established with the router using the network password according to the current network configuration progress.
3. The method according to claim 1, characterized in that The method further comprises: When the smart home device network is interrupted or restarted, storing the current network configuration progress; The current network configuration progress is sent to the terminal device so that the terminal device displays the current network configuration progress.
4. The method according to claim 1, characterized in that: The step of binding the smart home device to the user account information of the terminal device that has logged in includes: The device information of the smart home device and the user account information of the terminal device that has logged in are uploaded to the server, so that the server binds the smart home device with the user account information of the terminal device that has logged in, and stores the association relationship between the smart home device and the user account information.
5. The method according to claim 1, characterized in that After binding the smart home device to the user account information of the terminal device that has logged in, the method further includes: Receive the binding status of the user account information returned by the server; The binding status of the user account information and the network configuration status of the smart home device are encrypted and sent to the terminal device.
6. The method according to claim 1, characterized in that The obtaining of network account number, network password and user account information of the terminal device that has logged in includes: Reading the pre-stored network account, network password and user account information of the terminal device that has logged in; or, Receive the network account, the network password and the user account information of the terminal device that has logged in sent by the terminal device.
7. A network configuration method for smart devices, characterized in that: Applied to a terminal device, the method comprises: Establish network connection with smart home devices; When a network connection is established with the smart home device, the network account, network password and logged-in user account information are sent to the smart home device, so that the smart home device uses the network account and network password to connect to the network according to the current network configuration progress. When the network connection is successful, the smart home device is bound to the logged-in user account information of the terminal device.
8. The method according to claim 1, characterized in that: The establishing of a network connection with the smart home device includes: Searching for smart home devices in pairing mode within a preset range of the terminal device; In the case that there is a smart home device in pairing mode, a network connection is established with the smart home device in pairing mode.
9. The method according to claim 1, characterized in that: The method further comprises: Receive the binding status of the user account information and the network configuration status of the smart home device returned by the smart home device; The binding status and the network configuration status are displayed in a display interface of the application.
10. A network distribution device for smart devices, characterized in that: Applied to smart home equipment, the device comprises: An acquisition module, used to acquire the network account, network password and user account information of the terminal device logged in when the smart home device is reconnected to the network; A first connection module, used to connect to the network using the network account and network password according to the stored current network configuration progress; The binding module is used to bind the smart home device to the user account information of the terminal device that has logged in when the network connection is successful.
11. A network distribution device for smart devices, characterized in that: Applied to a terminal device, the device comprises: A second connection module, used to establish a network connection with a smart home device; The sending module is used to send the network account, network password and logged-in user account information to the smart home device when a network connection is established with the smart home device, so that the smart home device uses the network account and network password to connect to the network according to the current network configuration progress. When the network connection is successful, the smart home device is bound to the logged-in user account information of the terminal device.
12. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the network configuration method for an intelligent device as described in any one of claims 1 to 6 or 7 to 9 is implemented.
13. A readable storage medium, characterized in that: When the instructions or transactions in the storage medium are executed by a processor of the electronic device, the electronic device is enabled to execute the network configuration method for smart devices according to any one of claims 1 to 6 or 7 to 9.
Citation Information
Patent Citations
Intelligent equipment binding method, intelligent equipment, and server
CN104936304A
Intelligent home appliance configuration method and apparatus
CN107181651A
Internet of Things equipment communication method and device based on Wi-Fi Aware, and storage medium
CN111182504A
Automatic network distribution method, electronic device and computer readable storage medium
CN112601202A
Intelligent equipment network distribution method and system, computer equipment and readable storage medium
CN118631638A