A smart device WiFi network configuration method, system, electronic device and medium
Through the client automatically searching and sending distribution network information, the problem of frequent switching operations during the WiFi distribution of smart devices is solved, and automatic distribution network is realized, improving user experience.
Patent Information
- Application Number
- CN202110890167.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-04
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-08-04
AI Technical Summary
During the WiFi distribution process of existing smart devices, users need to switch multiple times according to the distribution method of different devices, resulting in cumbersome processes and easy failure, reducing user experience.
Through the client, the query request is sent to the cloud, the smart device information is obtained and the target device is automatically searched, and the distribution network information is sent. Regardless of the distribution method the device adopts, the connection is automatically established and the user's operation steps are reduced.
The automatic distribution process without manually switching the distribution method is realized, which simplifies user operations and improves the distribution interactive experience of smart devices.
Smart Images

Figure CN113518407B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart devices, and in particular to a smart device WiFi network configuration method, system, electronic equipment and medium. Background Art
[0002] At present, many target smart devices (such as clothes drying machines, smart door locks, smart smoke detectors, smart lamps and other smart home devices) are connected to the cloud via WiFi, and then interact with users through mobile phone apps. WiFi connection requires the device to obtain the SSID, password and other information of the target router in advance, and user binding is required after the WiFi connection is completed. How to transmit routing information such as SSID and password to the target smart device is a relatively cumbersome task. In order to facilitate users to perform network configuration operations through mobile phone apps, the existing network configuration operation process usually uses three methods for network configuration, namely AP network configuration, Smart Config network configuration, and Bluetooth-assisted network configuration. AP network configuration means that the WiFi of the target smart device is switched to AP mode, the APP connects to the AP and transmits the SSID, password and other information of the target router to the target smart device. After receiving the information, the target smart device switches its WiFi to Station mode, and then starts to connect to the target router. After the connection is successful, it is bound; Smart Config network configuration means that the target smart device is in promiscuous mode and monitors all messages in the WiFi network. The mobile phone APP encodes the SSID and password into the UDP message sent by the broadcast. After the smart hardware receives the relevant message and parses it to obtain the correct SSID and password, it connects to the corresponding router to complete network configuration and binding; Bluetooth-assisted network configuration means that the target smart device sends Bluetooth broadcasts to let the mobile phone APP discover itself. After the mobile phone APP connects to the corresponding Bluetooth, it transmits the SSID and password to the target smart device through the Bluetooth channel to help the target smart device complete network configuration and binding.
[0003] However, the above-mentioned network configuration method usually requires different human-computer interaction operation processes on the mobile phone APP side for different network configuration methods, that is, when the network configuration method of the target smart device is different or the network configuration method changes, the user is usually required to manually switch the network configuration process in the APP. For example, there are many kinds of WiFi smart products using different network configuration technologies, and all these WiFi smart products generally use the same APP for network configuration. When the target smart device uses Bluetooth-assisted network configuration, the user can automatically discover the target smart device to be configured through the mobile phone APP and connect to it via Bluetooth. When the target smart device uses Smart Config network configuration, the user is required to manually select the type of device to be added in the mobile phone APP, and then send a UDP broadcast packet. When the Smart Config network configuration method fails, the user is usually required to manually set the target smart device to AP network configuration mode, and switch to the manual network configuration process on the mobile phone APP, select the target AP (wireless access point) to connect and send network configuration information.
[0004] Therefore, when faced with many different types of target smart devices and different target smart devices using different network configuration methods, the existing network configuration operation process requires users to perform more switching operations, and the WiFi network configuration process is cumbersome, and there may be network configuration failures, which will greatly reduce the user experience of using the target smart device. Summary of the invention
[0005] In view of the above technical problems, the purpose of the present invention is to provide a smart device WiFi network configuration method, system, electronic device and medium to solve the problem that the existing network configuration operation process requires users to perform more switching operations when facing many different types of target smart devices and different target smart devices use different network configuration methods.
[0006] The present invention adopts the following technical solutions:
[0007] A smart device WiFi network configuration method, applied to a client, comprises the following steps:
[0008] Sending a query request for obtaining smart device product information to the cloud; the device product information at least includes the name of each smart device and the identifier information of each smart device;
[0009] If the smart device product information returned by the cloud is received, a first input instruction is obtained, and a target smart device and identifier information of the target smart device are determined in the smart device product information according to the first input instruction;
[0010] Obtaining a second input instruction, and determining an identifier and password information of a target router according to the second input instruction;
[0011] Searching for the target smart device by sending a UDP broadcast packet, monitoring a Bluetooth broadcast, and searching for an identifier of the target smart device;
[0012] When the target smart device is searched, network configuration information is sent to the target smart device, so that the target smart device establishes a connection with the target router according to the network configuration information; the network configuration information includes an identifier and password information for logging into the target router.
[0013] Optionally, the sending the network configuration information to the target smart device includes:
[0014] When the network configuration method of the target smart device is through a wireless connection point, the wireless connection point of the target smart device is obtained, and a third input instruction is obtained. The client establishes a connection with the wireless connection point of the target smart device according to the third input instruction, and sends network configuration information to the target smart device.
[0015] Optionally, sending the network configuration information to the target smart device includes:
[0016] When sending a UDP broadcast packet, the network configuration information is sent to the target smart device; the UDP broadcast packet contains the network configuration information, so that when the network configuration mode of the target smart device is smart network configuration, the target smart device obtains a data frame according to the UDP broadcast packet, and parses the data frame to obtain an identifier and password information for logging into the target router.
[0017] Optionally, sending the network configuration information to the target smart device includes:
[0018] When Bluetooth broadcast is monitored, a Bluetooth connection is established with the target smart device, and network configuration information is sent to the target smart device via Bluetooth transmission, so that the target smart device obtains the network configuration information via Bluetooth transmission when the network configuration mode of the target smart device is Bluetooth-assisted network configuration.
[0019] Optionally, the following steps are also included:
[0020] Binding step: obtaining device verification information, wherein the device verification information includes one or more of the product model, product key, product function and protocol token information of the target smart device; after the target smart device establishes a connection with the cloud through the target router, sending a binding request to the cloud so that the cloud binds the target smart device to the client according to the binding request, wherein the binding request includes the device verification information.
[0021] Optionally, the obtaining device verification information includes:
[0022] When the network configuration mode of the target smart device is Bluetooth-assisted network configuration, Bluetooth broadcast information sent by the target smart device is received, and the Bluetooth broadcast information includes device verification information; the Bluetooth broadcast information is parsed to obtain the device verification information.
[0023] Optionally, the obtaining device verification information includes:
[0024] When the network configuration mode of the target smart device is smart network configuration, wireless broadcast information sent by the target smart device is received, where the wireless broadcast information includes device verification information; and the wireless broadcast information is parsed to obtain the device verification information.
[0025] A smart device WiFi network distribution system, comprising: a client, a target smart device, a cloud and a target router; the target router is connected to the cloud; the target smart device is provided with a WiFi signal transceiver unit;
[0026] The client is used to send a query request for obtaining smart device product information to the cloud; if the smart device product information returned by the cloud is received, obtain a first input instruction, and determine the target smart device and the identifier information of the target smart device in the smart device product information according to the first input instruction; obtain a second input instruction, and determine the identifier and password information of the target router according to the first input instruction; send network configuration information to the target smart device, so that the target smart device establishes a connection with the target router according to the network configuration information, and establishes a connection with the cloud through the target router; the network configuration information includes the identifier and password information for logging in to the target router;
[0027] The target smart device is used to receive the network configuration information sent by the client, establish a connection with the target router according to the network configuration information, and establish a connection with the cloud through the target router.
[0028] An electronic device comprises: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart device WiFi network configuration method.
[0029] A computer storage medium stores a computer program, which, when executed by a processor, implements the smart device WiFi network configuration method.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] The present invention automatically searches for the target smart device through the client, and when the target smart device is searched, the network configuration information is sent to the target smart device. No matter which network configuration method the target smart device adopts for network configuration, there is no need to switch the network configuration method on the client or the smart device for the target smart device, and the network configuration of the smart device can be achieved; since there is no need to switch operations for different network configuration technologies, the steps of user operations are reduced, the network configuration interaction process of the smart device is optimized, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a process for configuring a WiFi network for a smart device according to an embodiment of the present invention;
[0033] Figure 2 A result schematic diagram of a smart device WiFi network configuration system provided by an embodiment of the present invention;
[0034] Figure 3 A flowchart of a method for WiFi network configuration of a smart device provided by a specific embodiment of the present invention when the network configuration mode of the smart device is Bluetooth-assisted network configuration;
[0035] Figure 4 A flowchart of a method for WiFi network configuration of a smart device provided by a specific embodiment of the present invention when the network configuration mode of the smart device is smart network configuration;
[0036] Figure 5 A flowchart of a method for WiFi network configuration of a smart device provided by a specific embodiment of the present invention when the network configuration mode of the smart device is AP network configuration;
[0037] Figure 6 A schematic diagram of a network configuration interaction process of a smart device WiFi network configuration method provided by a specific embodiment of the present invention;
[0038] Figure 7 A schematic diagram of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, under the premise of no conflict, the embodiments or technical features described below can be arbitrarily combined to form a new embodiment:
[0040] Embodiment 1:
[0041] Please refer to Figure 1-7 As shown, Figure 1 A method for WiFi network configuration of a smart device of the present invention is shown, comprising:
[0042] Step S1: Sending a query request for obtaining smart device product information to the cloud 1;
[0043] Specifically, the query request is used to obtain information about smart device products that can be supported by the cloud 1, such as supported product categories of target smart devices 3, product identifiers of target smart devices 3, and other information.
[0044] Step S2: if the smart device product information returned by the cloud 1 is received, a first input instruction is obtained, and the target smart device 3 and the identifier information of the target smart device 3 are determined in the smart device product information according to the first input instruction;
[0045] In a specific embodiment of the present invention, a user inputs a first input instruction on a client, and a target smart device 3 that the user needs to configure a network with is determined according to the first input instruction.
[0046] Step S3: Obtain a second input instruction, and determine the identifier and password information of the target router 2 according to the second input instruction;
[0047] It should be noted that the identifier SSID is the abbreviation of Service Set Identifier. SSID technology can divide a local area network into several sub-networks that require different authentications. Each sub-network requires independent authentication. Only users who pass the authentication can enter the corresponding sub-network, preventing unauthorized users from entering the network. Through the identifier information of target router 2, target router 2 can be searched and connected to the wireless connection point of target router 2.
[0048] In a specific embodiment of the present invention, the user inputs a second input instruction on the client, and the identifier and password information of the target router 2 are determined according to the second input instruction; specifically, the SSID information and password information of the target router 2 may be input.
[0049] Step S4: Search for the target smart device 3 by sending a UDP broadcast packet, monitoring Bluetooth broadcast information, and searching for the identifier information of the target smart device 3. When the target smart device 3 is found, send network configuration information to the target smart device 3 so that the target smart device 3 establishes a connection with the target router 2 according to the network configuration information; the network configuration information includes an identifier and password information for logging in to the target router 2.
[0050] In a specific embodiment of the present invention, the client 4 searches for the target smart device 3 by sending UDP broadcast packets, listening to Bluetooth broadcast information, and searching for the identifier information of the target smart device 3. In this way, no matter which network configuration method the target smart device 3 is, the target smart device 3 can be searched accordingly. After the smart device is found, the user is prompted to select the target smart device 3 for network configuration in the same way, which unifies and simplifies the interactive steps of smart device network configuration.
[0051] In the above implementation process, the present invention automatically searches for the target smart device 3 through the client, and no matter what network configuration method the target smart device 3 uses for network configuration, it is not necessary to switch the network configuration method on the client or smart device for different network configuration methods of the target smart device 3, and the network configuration of the smart device can be realized. Since there is no need to switch operations for different network configuration technologies, the steps of user operations are reduced, the network configuration interaction process of the smart device is optimized, and the user experience is improved.
[0052] In the embodiment of the present invention, in step S4, sending the network configuration information to the target smart device 3 includes:
[0053] When the network configuration method of the target smart device 3 is through a wireless connection point configuration (wireless connection point configuration is also called AP configuration), the wireless connection point of the target smart device 3 is obtained, and the third input instruction is obtained. The client 4 establishes a connection with the wireless connection point of the target smart device 3 according to the third input instruction, and sends network configuration information to the target smart device 3.
[0054] In the above implementation process, the user only needs to input the first instruction and the second instruction (except when the network configuration method of the target smart device 3 is through a wireless connection point, the third instruction needs to be input), which reduces the user operation steps and improves the user experience.
[0055] In this step, when the network configuration method of the target smart device 3 is through a wireless connection point, the user is required to input a third instruction through the client. The third instruction is used for the user to select to establish a connection with the wireless connection point of the target smart device 3. After establishing a connection with the wireless connection point of the target smart device 3, the network configuration information is sent to the target smart device 3.
[0056] In the embodiment of the present invention, in step S4, sending the network configuration information to the target smart device 3 specifically includes:
[0057] When sending a UDP broadcast packet, the network configuration information is sent to the target smart device 3; the UDP broadcast packet contains the network configuration information, so that when the network configuration mode of the target smart device 3 is smart network configuration (smart network configuration is also called SmartConfig network configuration), the target smart device 3 obtains a data frame according to the UDP broadcast packet, and parses the data frame to obtain an identifier and password information for logging in to the target router 2.
[0058] When Bluetooth broadcast is monitored, a Bluetooth connection is established with the target smart device 3, and network configuration information is sent to the target smart device 3 via Bluetooth transmission, so that the target smart device 3 obtains the network configuration information via Bluetooth transmission when the network configuration mode of the target smart device 3 is Bluetooth-assisted network configuration.
[0059] As another embodiment of the present invention, the method of the present invention may further include the following steps:
[0060] Binding step: obtaining device verification information, the device verification information including the product model, product key, product function and protocol token information of the target smart device 3; after the target smart device 3 establishes a connection with the cloud 1 through the target router 2, sending a binding request to the cloud 1, the binding request including the device verification information; so that the cloud binds the target smart device 3 with the client 4 according to the binding request;
[0061] Receive the successful binding notification information returned by the cloud.
[0062] In the above implementation process, the client 4 searches for the target smart device 3 by sending UDP broadcast packets, listening to Bluetooth broadcast information, and searching for the identifier information of the target smart device 3. After discovering the smart device, the user is prompted to select the target smart device 3 for network configuration and binding, thereby unifying and simplifying the interactive steps of smart device network configuration.
[0063] Specifically, the obtaining of device verification information includes:
[0064] When the network configuration mode of the target smart device 3 is Bluetooth-assisted network configuration, Bluetooth broadcast information sent by the target smart device 3 is received, and the Bluetooth broadcast information includes device verification information; the Bluetooth broadcast information is parsed to obtain the device verification information.
[0065] When the network configuration mode of the target smart device 3 is smart network configuration, wireless broadcast information sent by the target smart device 3 is received, wherein the wireless broadcast information includes device verification information; and the wireless broadcast information is parsed to obtain the device verification information.
[0066] When the network configuration method of the target smart device 3 is wireless connection point configuration, the binding step includes: the client 4 establishes a connection with the wireless connection point of the target smart device 3; after the client 4 establishes a connection with the wireless connection point, obtains the protocol token information, and sends the protocol token information to the target smart device 3, so that the target smart device 3 is bound to the user terminal according to the protocol token information after connecting to the cloud 1.
[0067] As another embodiment, a smart device WiFi network configuration method of the present invention is applied to a target smart device 3, and includes the following steps:
[0068] Step S11: Receive the network configuration information sent by the client 4, establish a connection with the target router 2 according to the network configuration information, and establish a connection with the cloud 1 through the target router 2; the network configuration information includes an identifier and password information for logging in to the target router 2.
[0069] Embodiment 2:
[0070] The present invention is a smart device WiFi network distribution system, please refer to Figure 2 As shown, it includes: a client 4, a target smart device 3, a cloud 1 and a target router 2; the target router 2 is connected to the cloud 1; and a WiFi signal transceiver unit is provided on the target smart device 3.
[0071] It should be noted that when the network configuration mode of the target smart device 3 is Bluetooth-assisted network configuration, the target smart device 3 is provided with a Bluetooth connection unit.
[0072] The client 4 is used to send a query request for obtaining smart device product information to the cloud 1; if the smart device product information returned by the cloud 1 is received, obtain a first input instruction, and determine the target smart device 3 and the identifier information of the target smart device 3 in the smart device product information according to the first input instruction; obtain a second input instruction, and determine the identifier and password information of the target router 2 according to the first input instruction; send network configuration information to the target smart device 3, so that the target smart device 3 establishes a connection with the target router 2 according to the network configuration information, and establishes a connection with the cloud 1 through the target router 2; the network configuration information includes the identifier and password information for logging in to the target router 2;
[0073] The target smart device 3 is used to receive the network configuration information sent by the client 4, establish a connection with the target router 2 according to the network configuration information, and establish a connection with the cloud 1 through the target router 2.
[0074] As a specific embodiment, the specific application of the system of the present invention is as follows: the client 4 is installed with an APP of a smart device. In the following introduction of this application, the client 4 with the APP of a smart device installed is referred to as the APP end.
[0075] 1. If Figure 3 As shown, when the network configuration mode of the target smart device 3 is Bluetooth-assisted network configuration;
[0076] 1) The target smart device 3 starts Bluetooth broadcasting, and the content of the broadcast is the device verification information, which includes the optional product model, product key, functions supported by the product, etc.;
[0077] 2) The APP queries the cloud 1 for the currently supported product categories and SSID list and saves them;
[0078] 3) The APP prompts the user to enter the SSID and password information of the target router 2;
[0079] 4) The APP sends a WiFi UDP broadcast packet, which contains the encrypted target router 2 SSID information and password and other information; at the same time, it searches for the specified SSID information according to the SSID list obtained from the cloud 1; and monitors the Bluetooth broadcast at the same time;
[0080] 5) The APP receives the Bluetooth broadcast information of the target smart device 3, parses the device verification information in the broadcast package, and then queries the cloud 1 for the device verification information. The cloud 1 returns the verification result, which may include the product model, the functions supported by the product, etc.;
[0081] 6) The APP establishes a Bluetooth connection with the target smart device 3, and sends network configuration information to the target smart device 3. The network configuration information may include the SSID, password, token information, etc. of the target router 2;
[0082] It should be noted that the Token information is a string of characters generated by the server, which is used as a token for client 4 to make requests. After the first login, the server generates a Token and returns the Token to client 4. In the future, client 4 only needs to bring this Token to request data without having to bring the username and password again.
[0083] 7) The target smart device 3 uses the SSID information and password of the target router 2 to configure the network and connect to the target router 2;
[0084] 8) The target smart device 3 connects to the cloud 1 and uses information such as token to perform user binding operations;
[0085] 9) Cloud 1 sends a notification of successful device binding to the APP.
[0086] 2. Figure 4 As shown, when the network configuration mode of the target smart device 3 is Smart Config network configuration;
[0087] 1) Target smart device 3 starts to monitor WiFi UDP broadcast packets;
[0088] It should be noted that
[0089] 2) The APP queries the cloud 1 for the currently supported product categories and SSID list and saves them;
[0090] 3) The APP prompts the user to enter the SSID and password of the target router;
[0091] 4) The APP sends a WiFi UDP broadcast packet, which contains the encrypted target router SSID and password and other information; at the same time, it searches for the specified SSID according to the SSID list obtained from the cloud 1 query; and monitors the Bluetooth broadcast at the same time;
[0092] 5) The target smart device 3 captures valid data frames from the WiFi UDP broadcast packet, parses the SSID and password of the target router, and uses the SSID and password to connect to the target router 2; the target smart device 3 connects to the cloud 1;
[0093] 6) The target smart device 3 broadcasts device verification information via WiFi. The device verification information may include product model, product key, product supported functions, token, etc.;
[0094] 7) The APP receives the WiFi broadcast packet from the target smart device 3, parses the device verification information in the data packet, and uses the verification information to send a binding request to the cloud 1;
[0095] 8) The cloud 1 sends a notification of successful device binding to the APP and the target smart device 3.
[0096] 3. Figure 5 As shown, when the network configuration mode of the target smart device 3 is AP network configuration;
[0097] 1) Target smart device 3 starts to monitor WiFi UDP broadcast packets;
[0098] 2) The APP queries the cloud 1 for the currently supported product categories and SSID list and saves them;
[0099] 3) The APP prompts the user to enter the SSID and password of the target router;
[0100] 4) The APP sends a WiFi UDP broadcast packet, which contains the encrypted target router SSID and password and other information; at the same time, it searches for the specified SSID according to the SSID list obtained from the cloud 1 query; and monitors the Bluetooth broadcast at the same time;
[0101] 5) The target smart device 3 fails to capture valid data frames from the WiFi UDP broadcast packet, or the network configuration fails and exceeds the number of retries / network configuration timeout; the target smart device 3 automatically switches to AP network configuration mode;
[0102] 6) The APP searches for the SSID in the queried SSID list and prompts the user to connect to the AP to which the SSID belongs;
[0103] 7) After the APP is connected to the AP of the target smart device 3, it sends the network configuration information to the target smart device 3. The network configuration information may include the SSID, password, token, etc. of the target router;
[0104] 8) The target smart device 3 connects to the target router 2 according to the network configuration information;
[0105] 9) The target smart device 3 is connected to the cloud 1 and the device binding is completed;
[0106] 10) Cloud 1 sends a notification of successful device binding to the APP.
[0107] In another specific embodiment of the present invention, the present invention provides a complete interactive process of WiFi network configuration and binding of smart devices. The network configuration system includes a client 4, a target smart device 3, a cloud 1, and a target router 2. The client 4 is installed with an APP of the smart device (referred to as the APP end). The interactive process of each module is as follows Figure 6 As shown, the interaction process includes:
[0108] Step S100: Enter the network distribution process;
[0109] Step S200: Prompt the user to fill in the SSID information and password of the target router 2 through the APP;
[0110] Step S300: the APP starts to automatically search for the target smart device 3;
[0111] Step S400: The APP discovers the target smart device 3;
[0112] Step S500: The client selects the target smart device 3 that needs to be networked and bound;
[0113] Step S600: When the target smart device 3 is in AP network configuration mode, the APP is connected to the specified AP, that is, connected to the target smart device 3;
[0114] Step S700: device network configuration and binding;
[0115] Step S800: End.
[0116] Embodiment three:
[0117] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, which can be used in the present application Figure 7 The schematic diagram shown is used to describe an electronic device 100 for implementing a smart device WiFi network configuration method of the present invention according to an embodiment of the present application.
[0118] like Figure 7 The electronic device 100 includes one or more processors 102 and one or more storage devices 104. These components are interconnected via a bus system and / or other forms of connection mechanisms (not shown). It should be noted that Figure 7 The components and structures of the electronic device 100 shown are only exemplary and not restrictive. The electronic device may have Figure 7 Some of the components shown may also have Figure 7 Other components and structures are not shown.
[0119] The processor 102 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.
[0120] The storage device 104 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may run the program instructions to implement the functions (implemented by the processor) in the embodiments of the present application described below and / or other desired functions. Various applications and various data may also be stored in the computer-readable storage medium, such as various data used and / or generated by the application, etc.
[0121] The present invention also provides a computer storage medium on which a computer program is stored. If the method of the present invention is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the computer storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by a processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer storage media does not include electrical carrier signals and telecommunication signals.
[0122] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.
Claims
1. A method for WiFi network configuration of smart devices, characterized in that: Applied to the client, it includes the following steps: Sending a query request for obtaining smart device product information to the cloud; the device product information at least includes the name of each smart device and the identifier information of each smart device; If the smart device product information returned by the cloud is received, a first input instruction is obtained, and a target smart device and identifier information of the target smart device are determined in the smart device product information according to the first input instruction; Obtaining a second input instruction, and determining an identifier and password information of a target router according to the second input instruction; Searching for the target smart device by sending a UDP broadcast packet, monitoring a Bluetooth broadcast, and searching for an identifier of the target smart device; When the target smart device is searched, the target smart device is selected for network configuration, and network configuration information is sent to the target smart device so that the target smart device establishes a connection with the target router according to the network configuration information; the network configuration information includes an identifier and password information for logging in to the target router.
2. The smart device WiFi network configuration method according to claim 1, characterized in that: The sending of network configuration information to the target smart device includes: When the network configuration method of the target smart device is through a wireless connection point, the wireless connection point of the target smart device is obtained, and a third input instruction is obtained. The client establishes a connection with the wireless connection point of the target smart device according to the third input instruction, and sends network configuration information to the target smart device.
3. The smart device WiFi network configuration method according to claim 1, characterized in that: The sending of network configuration information to the target smart device includes: When sending a UDP broadcast packet, the network configuration information is sent to the target smart device; the UDP broadcast packet contains the network configuration information, so that when the network configuration mode of the target smart device is smart network configuration, the target smart device obtains a data frame according to the UDP broadcast packet, and parses the data frame to obtain an identifier and password information for logging into the target router.
4. The smart device WiFi network configuration method according to claim 1, characterized in that: The sending of network configuration information to the target smart device includes: When Bluetooth broadcast is monitored, a Bluetooth connection is established with the target smart device, and network configuration information is sent to the target smart device via Bluetooth transmission, so that the target smart device obtains the network configuration information via Bluetooth transmission when the network configuration mode of the target smart device is Bluetooth-assisted network configuration.
5. The smart device WiFi network configuration method according to claim 1, characterized in that: The following steps are also included: Binding step: obtaining device verification information, wherein the device verification information includes one or more of a product model, a product key, a product function, and a protocol token information of the target smart device; After the target smart device establishes a connection with the cloud through the target router, a binding request is sent to the cloud, so that the cloud binds the target smart device with the client according to the binding request, and the binding request includes the device verification information.
6. The smart device WiFi network configuration method according to claim 1, characterized in that: The obtaining of device verification information includes: When the network configuration mode of the target smart device is Bluetooth-assisted network configuration, Bluetooth broadcast information sent by the target smart device is received, and the Bluetooth broadcast information includes device verification information; the Bluetooth broadcast information is parsed to obtain the device verification information.
7. The smart device WiFi network configuration method according to claim 1, characterized in that: The obtaining of device verification information includes: When the network configuration mode of the target smart device is smart network configuration, wireless broadcast information sent by the target smart device is received, where the wireless broadcast information includes device verification information; and the wireless broadcast information is parsed to obtain the device verification information.
8. A smart device WiFi network distribution system, characterized in that: include: A client, a target smart device, a cloud, and a target router; the target router is connected to the cloud; The target smart device is provided with a WiFi signal transceiver unit; The client is used to send a query request for obtaining smart device product information to the cloud; if the smart device product information returned by the cloud is received, obtain a first input instruction, and determine the target smart device and the identifier information of the target smart device in the smart device product information according to the first input instruction; Obtain a second input instruction, and determine the identifier and password information of the target router according to the first input instruction; search for the target smart device by sending a UDP broadcast packet, monitoring Bluetooth broadcast, and searching for the identifier of the target smart device; When a target smart device is searched, the target smart device is selected for network configuration, and network configuration information is sent to the target smart device, so that the target smart device establishes a connection with the target router according to the network configuration information, and establishes a connection with the cloud through the target router; the network configuration information includes an identifier and password information for logging into the target router; The target smart device is used to receive the network configuration information sent by the client, establish a connection with the target router according to the network configuration information, and establish a connection with the cloud through the target router.
9. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart device WiFi network configuration method according to any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for WiFi network configuration of a smart device according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Network distribution method and device, Internet of Things equipment, terminal equipment and storage medium
CN110650516A
Intelligent equipment network distribution method and device, controller and medium
CN110708688A
Network distribution method and device for bluetooth-based intelligent device and storage medium
CN111918256A
Network configuration system and method for intelligent equipment
CN112291801A
Equipment distribution network binding method and system, mobile terminal and storage medium
CN113132185A
