Smart device and network connection method thereof, routing device, and storage medium
By obtaining the device information of the smart device and generating authentication information, the automated network connection of the smart device is realized, and the problem of low efficiency of manual operation of users and single-device distribution network in the existing technology is solved, and the efficiency of multi-device distribution network is improved. .
Patent Information
- Application Number
- CN202210533059.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-16
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2042-05-16
AI Technical Summary
The network connection method of existing smart devices requires manual operation by users, and can only perform one device at a time, which is inefficient, especially when multiple devices are needed.
The device information of the smart device to be distributed through the routing device is obtained, and an authentication notification is sent to the control device to generate authentication information. Based on this information, the smart device to be distributed to the smart device to be distributed to realize automated network connections.
It reduces the dependence on user operations, improves the distribution network efficiency of multiple smart devices, supports multiple users to access simultaneously, and has a wider coverage.
Smart Images

Figure CN115226085B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a smart device and a network connection method thereof, a routing device, and a storage medium. Background Art
[0002] The network connection of the smart device to be configured refers to the process in which the smart device to be configured obtains router information (such as SSID, password, etc.), connects to the router, and then binds the account with the user's smart device. 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 transmit network information. After that, the smart device to be configured connects to the router and the server. Finally, the user's smart device actively initiates the binding of the smart device to be configured. This means that the existing networking method for smart devices to be configured requires the full participation of the user's smart device and manual operation by the user. In addition, each configuration process can only configure one smart device to be configured. For a space with a large number of smart devices to be configured, the efficiency is low. Summary of the invention
[0003] The main technical problem solved by the present application is to provide an intelligent device and its network connection method, routing device, and storage medium, which can improve the network distribution efficiency of the intelligent devices to be distributed.
[0004] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a network connection method, applied to a routing device, the method comprising: the routing device obtains a network configuration request sent by the intelligent device to be configured based on short-range wireless communication, and based on the network configuration request, obtains device information sent by the intelligent device to be configured based on short-range wireless communication; the routing device sends an authentication notification to the control device based on short-range wireless communication, so that the control device performs an authentication operation based on the authentication notification and generates corresponding authentication information; the routing device receives the authentication information based on short-range wireless communication, and configures the intelligent device to be configured based on the authentication information, so as to realize the network connection of the intelligent device to be configured.
[0005] The method further includes: the routing device searches for a short-range wireless communication signal, and when a communication request sent by the intelligent device to be configured based on short-range wireless communication is obtained, the routing device establishes a short-range wireless communication channel with the intelligent device to be configured based on the communication request.
[0006] Among them, the routing device obtains the device information sent by the smart device to be configured based on the short-range wireless communication based on the network configuration request, including: the routing device sends verification information to the smart device to be configured based on the network configuration request and the short-range wireless communication, so that the smart device to be configured performs verification based on the verification information and obtains a verification result.
[0007] Among them, the verification information is to confirm whether the network status of the smart device to be configured is the network to be configured; if the verification result shows yes, the smart device to be configured encrypts the verification result and the device information of the smart device to be configured to obtain encrypted information; the routing device receives the encrypted information sent by the smart device to be configured, and decrypts the encrypted information to obtain the device information of the smart device to be configured.
[0008] Among them, after the routing device obtains the device information sent by the smart device to be configured based on the near-field wireless communication based on the network configuration request, it includes: the routing device binds the device information and the account information logged in to the routing device, and after the binding is successful, executes the authentication information sent by the routing device based on the near-field wireless communication to the control device.
[0009] The routing device binds the device information with the account information logged in by the routing device, including: the routing device sends the device information and the account information logged in by the routing device to the server, so that the server binds the device information with the account information and feeds back the corresponding binding result.
[0010] Among them, the routing device configures the intelligent device to be configured based on the authentication information, including: the routing device verifies the authentication information to obtain an authentication result, and configures the intelligent device to be configured when the authentication result indicates that the verification is passed, and the routing device sends the authentication result to the control device based on short-range wireless communication.
[0011] The authentication information is generated based on the combined operation of at least two physical buttons of the control device.
[0012] Wherein, the short-range wireless communication is AP communication.
[0013] To solve the above technical problems, another technical solution adopted in the present application is: to provide a network connection method, applied to smart devices, the method comprising: the smart device sends a short-range wireless communication signal; the smart device sends a network configuration request to the routing device based on the short-range wireless communication, and establishes a short-range wireless communication channel with the routing device based on the communication request; the smart device sends a network configuration request to the routing device based on the short-range wireless communication, and, based on the network configuration request, sends device information to the routing device based on the short-range wireless communication.
[0014] To solve the above technical problems, another technical solution adopted by the present application is: providing a computer-readable storage medium, which stores program data. When the program data is executed by a processor, it is used to implement the network connection method of the smart device as described above.
[0015] The beneficial effect of the present application is that, different from the prior art, the network connection method provided by the present application can be applied to routing devices and intelligent devices respectively. When applied to routing devices, first, the routing device searches for short-range communication signals, and when obtaining a communication request sent by the intelligent device to be configured based on short-range wireless communication, establishes a wireless communication channel with the intelligent device to be configured based on the communication request; then, the routing device obtains the network configuration request sent by the intelligent device to be configured based on short-range wireless communication, and based on the network configuration request, obtains the device information sent by the intelligent device to be configured based on short-range wireless communication, and then the routing device sends an authentication notification to the control device based on short-range wireless communication, so that the control device performs an authentication operation based on the authentication notification and generates corresponding authentication information; finally, the routing device receives the authentication information based on short-range wireless communication, and configures the intelligent device to be configured based on the authentication information, so as to realize the network connection of the intelligent device to be configured. In one embodiment, the short-range wireless communication is AP communication, AP communication supports multiple users to access simultaneously, and the AP communication range covers tens of meters to hundreds of meters. Then, the efficiency of configuring the network for the intelligent device to be configured can be improved by the above method. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0017] Figure 1 It is a network diagram of an embodiment of a smart device network connection system provided by the present application;
[0018] Figure 2 It is a flowchart of the first embodiment of the network connection method for a smart device provided by the present application;
[0019] Figure 3 It is a flowchart of a second embodiment of the network connection method for a smart device provided by the present application;
[0020] Figure 4 It is a flowchart of a third embodiment of the network connection method for a smart device provided by the present application;
[0021] Figure 5 It is a flowchart of a fourth embodiment of the network connection method for a smart device provided by the present application;
[0022] Figure 6 This is a four-party interaction schematic diagram of a fourth embodiment of a network connection method for smart devices provided by the present application;
[0023] Figure 7 It is a structural diagram of an embodiment of a smart device provided by the present application;
[0024] Figure 8 It is a structural diagram of an embodiment of a routing device provided by the present application;
[0025] Fig. 9 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0026] 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 only 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.
[0027] See also Figure 1 , Figure 1 1 is a network diagram of an embodiment of a smart device network connection system provided in the present application. The smart device network connection system 100 includes a control device 10, a smart device to be networked 20, a routing device 30 and a server 40.
[0028] Among them, the intelligent device 20 to be networked and the routing device 30 interact based on short-range wireless communication, the control device 10 and the routing device 30 interact based on short-range wireless communication, and the routing device 30 and the server 40 interact based on short-range wireless communication.
[0029] The interactive content is to perform network configuration operations, which include account binding and networking. Specifically, with the routing device 30 as an intermediary, the server 40 completes the account binding between the smart device 20 to be configured and the routing device 30; with the server as an intermediary, an authentication message is sent to the control device 10, which is used to perform custom permission operations on the control device 10.
[0030] Optionally, the short-range wireless communication may be AP (Wireless Access Point) communication. AP is also called wireless AP, i.e. wireless access point. AP is the core of the wireless network and the access point for mobile computer users to enter the wired network. AP communication is mainly used for broadband homes, inside buildings and inside parks. It can achieve communication with a coverage range of tens to hundreds of meters, and AP communication supports multi-user access. In a small-scale wireless LAN, AP communication can achieve wireless access for all computers. Of course, in other embodiments, it may also be other communication methods that support short-range communication, such as WIFI (IEEE802.11 protocol), Mesh, Bluetooth, ZigBee (802.15.4 protocol), Thread (802.15.4 protocol), Z-Wave, NFC, UWB, LiFi, etc.
[0031] Optionally, the control device 10 may be a mobile phone, a tablet computer or a wearable device, and the smart device 20 to be networked may be a household appliance, a smart electronic device, etc., such as a sweeping robot, a smart air conditioner, etc.
[0032] Optionally, the routing device 30 can be a static route, a dynamic route, or a direct route. Routing refers to the network-wide process of determining the end-to-end path when a packet is sent from a source to a destination. The routing device 30 operates at the third layer of the OSI network model, the network layer, and is used to forward data packets at the network layer to devices (such as mobile phones and smart air conditioners). The routing device 30 achieves network interconnection by forwarding data packets. Although the routing device 30 can support multiple protocols, the vast majority of routing devices in my country run the TCP / IP protocol, and there is no restriction on the routing device 30 here, so there is no restriction on the communication protocol embedded in the routing device 30.
[0033] Optionally, the server 40 is divided into three types according to the processor architecture (that is, the instruction system used by the server CPU): a CISC architecture server, a RISC architecture server, and a VLIW architecture server, which is not limited in this application.
[0034] In this embodiment, the smart device 20 to be networked is connected to the network, and the user only needs to perform authentication operation, and no other operations are required, which reduces the dependence on users in the network configuration process. In one embodiment, the devices interact through AP communication, wherein AP communication supports simultaneous access of multiple users, which solves the problem that only one smart device to be networked can be configured in one network configuration process, thereby improving the network configuration efficiency.
[0035] The above-mentioned smart device network connection method is introduced below through several embodiments.
[0036] See also Figure 2 , Figure 2 1 is a flow chart of a first embodiment of a network connection method for a smart device provided by the present application. The method is applied to a routing device. The method includes:
[0037] Step 21: Obtain a network configuration request sent by the smart device to be configured based on short-range wireless communication.
[0038] Specifically, in this embodiment, the short-range wireless communication is AP communication. In other embodiments, it can be other short-range wireless communication, such as local area network, Bluetooth, etc.
[0039] It can be understood that AP communication supports simultaneous access by multiple users. The routing device can simultaneously receive network configuration requests from multiple intelligent devices to be configured within a unit of time, and process the received network configuration requests in parallel.
[0040] Optionally, the conditions for the intelligent device to be networked to send a network configuration request include power-on, power-off and restart, network disconnection and reconnection, etc., and are applied to application scenarios that require account binding and networking operations.
[0041] Optionally, the way in which the intelligent device to be configured sends the network configuration request includes periodic sending, non-periodic sending, etc. Taking periodic sending as an example, it can be set to send once per second, send multiple times in succession and then pause for a period of time before continuing to send multiple times, such as sending ten requests in one second, or sending ten requests in succession and then pausing for one second, and then sending ten requests in succession after one second.
[0042] Step 22: Based on the network configuration request, obtain device information sent by the to-be-configured smart device based on short-range wireless communication.
[0043] It can be understood that the equipment information includes equipment model, equipment specifications, performance parameters, technical parameters and the like.
[0044] The device information in the above example is not unique. For example, there are many types of device models for each smart device, but each device of each type has a unique device ID. For example, for a desktop computer, you can query the device information through the run menu, including computer name, operating system, system manufacturer, system model, processor core, memory, etc. Among them, the device ID is unique and can be used to distinguish different devices.
[0045] Specifically, the routing device sorts the network configuration requests in the order of the time when the network configuration requests are received. In one embodiment, the routing device performs subsequent network configuration operations with one unit time as a processing cycle. For example, with one second as a processing cycle, the routing device receives ten network configuration requests in the first second, and in the second second, based on the network configuration requests received in the previous second, simultaneously obtains the device information of the to-be-configured smart device that has sent the network configuration request, which means that the transactions processed by the routing device in one processing cycle are parallel. In other embodiments, the device information of the to-be-configured smart devices can be obtained in sequence in the order of the time when the network configuration requests are sent.
[0046] Step 23: Send an authentication notification to the control device based on short-range wireless communication, so that the control device performs an authentication operation based on the authentication notification and generates corresponding authentication information.
[0047] It can be understood that the authentication notification is a request for obtaining and using the permission of the smart device to be configured.
[0048] Optionally, the control device may be a mobile phone, a laptop computer, or a wearable smart device.
[0049] Specifically, the routing device needs to obtain the permissions of the smart device to be configured, which include access permissions, operation permissions, calling permissions, etc. For example, the routing device requires operation permissions for a smart air conditioner to control the power on / off of the smart air conditioner, and the temperature increase / decrease.
[0050] The authentication information is generated based on the combined operation of at least two physical buttons of the control device.
[0051] Step 24: Receive the authentication information based on short-range wireless communication, and perform network configuration on the intelligent device to be configured based on the authentication information to achieve network connection of the intelligent device to be configured.
[0052] For example, assuming that the smart device to be networked is a smart air conditioner, the routing device is a router, and the control device is a mobile phone, when the smart air conditioner is powered on for the first time, it needs to connect to the network. Then, it communicates and interacts with the routing device so that the router obtains the device information of the smart air conditioner (including the device name, device ID number, etc.). Then, the router sends the acquired device information and the account information of the router itself to the server, and the server completes the account binding work (account binding) between the two. After that, the server sends an authentication notification requesting permission to the mobile phone. As a result, the user completes the authentication operation (networking) on the mobile phone and finally completes the network configuration of the smart air conditioner.
[0053] Different from the prior art, the present application obtains the device information of the intelligent device to be configured through a routing device, and sends an authentication notification to the control device, so that the control device performs an authentication operation, generates corresponding authentication information, and realizes the network connection of the intelligent device to be configured. This method realizes automatic network connection of the intelligent device to be configured, and because the short-range wireless communication used in the present application is AP communication, it realizes simultaneous configuration of multiple devices.
[0054] See also Figure 3 , Figure 3 1 is a flow chart of a second embodiment of a network connection method for a smart device provided by the present application, which is applied to a routing device. The method includes:
[0055] Step 31: Search for short-range wireless communication signals.
[0056] Optionally, the short-range wireless communication signal may be an AP signal, a Bluetooth signal, a local area network signal, etc. In one embodiment, the short-range wireless communication signal is an AP signal.
[0057] Step 32: when a communication request sent by the to-be-connected smart device based on short-range wireless communication is obtained, a short-range wireless communication channel is established with the to-be-connected smart device based on the communication request.
[0058] Optionally, the short-range wireless communication technology includes WIFI (IEEE802.11 protocol), Mesh, Bluetooth, ZigBee (802.15.4 protocol), Thread (802.15.4 protocol), NFC, UWB, LiFi, etc. In one embodiment, the short-range wireless communication is AP communication.
[0059] Specifically, the routing device establishes a communication connection with the network device to be configured that is searched within the communication range. In one embodiment, an AP channel is established based on the searched AP signal. Before establishing the AP channel, the AP signal needs to be verified to verify whether the AP signal name complies with the naming rules, such as the type of smart device, product series and extended attributes, such as "refrigerator-XX-XXXX".
[0060] Optionally, in one embodiment, the communication requests sent by the device to be networked are arranged in chronological order on the display interface, and a "Select" button is provided. The user can select the target device to be networked by pulling down the display interface content, and press the "Select" button in the target device to be networked column to complete the establishment of a communication channel with the target device to be networked.
[0061] In addition, the display interface may also be provided with a search bar, and the user may select the target device to be networked by searching for key contents such as the type of smart device in the search bar, and press the "Select" button to complete the establishment of the communication channel between the target smart device to be networked.
[0062] Step 33: Obtain a network configuration request sent by the smart device to be configured based on short-range wireless communication.
[0063] Optionally, the conditions for sending the network configuration request include when the machine is powered on, when the machine is powered off and restarted, when the machine is disconnected and reconnected, etc.
[0064] Optionally, the conditions for sending the network configuration request include power-on, power-off restart, network disconnection and reconnection, etc., which require account binding and networking.
[0065] Optionally, the manner of sending the network configuration request includes periodic sending, non-periodic sending, etc.
[0066] Step 34: Based on the network configuration request, obtain device information sent by the to-be-configured smart device based on short-range wireless communication.
[0067] Specifically, device information includes device model, device specifications, performance parameters, etc. The device information exemplified here is not unique, but each device has a unique device ID number. The device ID number can be used as a unique label for the router to configure the network for smart devices, avoiding configuration of non-target smart devices.
[0068] Specifically, the device information acquired by the routing device is arranged in chronological order according to the time of sending the network configuration request. In one embodiment, since AP communication supports simultaneous access of multiple users, the routing device can fix the processing cycle (such as five seconds) and process the received device information in parallel within one processing cycle.
[0069] Step 35: Send an authentication notification to the control device based on the short-range wireless communication, so that the control device performs an authentication operation based on the authentication notification and generates corresponding authentication information.
[0070] The permission operation is to confirm that the routing device / server needs to obtain the permission to control the device, and the permission includes access permission, operation permission, calling permission, etc.
[0071] The authentication information is generated based on the combined operation of at least two physical buttons of the control device.
[0072] Step 36: Receive the authentication information based on short-range wireless communication, and perform network configuration on the intelligent device to be configured based on the authentication information to achieve network connection of the intelligent device to be configured.
[0073] It is understandable that only when the routing device obtains the authentication information of the control device, can the network configuration operation including account binding and networking be performed on the smart device to be configured.
[0074] For example, assuming that the device to be networked is a smart air conditioner, the control device is a mobile phone, and the routing device is a router, the router searches for the AP signal emitted by the smart air conditioner within the communication range, and upon obtaining the communication request sent by the smart air conditioner based on AP communication, establishes an AP communication channel with the smart air conditioner. Afterwards, the smart air conditioner sends a network configuration request to the router based on the AP channel, the router obtains the network configuration request and sends an authentication notification to the user's mobile phone based on AP communication, so that the user can perform authentication operations, and generates corresponding authentication information, and sends the authentication information to the router at the same time. The router configures the smart air conditioner according to the authentication information to achieve network connection of the smart air conditioner.
[0075] Different from the prior art, the present application realizes automatic network connection of the intelligent devices to be configured through routing devices, thereby reducing the dependence on the user's control devices. Moreover, when the user has multiple intelligent devices to be configured in space, it can realize simultaneous configuration of multiple intelligent devices to be configured, thereby improving the efficiency of network configuration.
[0076] See also Figure 4 , Figure 4 1 is a flow chart of a third embodiment of a network connection method for a smart device provided by the present application, which is applied to a routing device. The method includes:
[0077] Step 41: Obtain a network configuration request sent by the smart device to be configured based on short-range wireless communication.
[0078] Step 42: Based on the network configuration request, verification information is sent to the smart device to be configured based on short-range wireless communication, so that the smart device to be configured performs verification based on the verification information to verify whether the network status of the smart device to be configured is unconfigured.
[0079] Specifically, the verification information may be a character string or verification information, which is triggered when the routing device receives a network configuration request sent by the device to be configured.
[0080] If the verification result shows yes, go to step 43.
[0081] Step 43: Receive the encrypted information sent by the smart device to be configured, and decrypt the encrypted information to obtain the device information of the smart device to be configured; wherein the encrypted information is the information obtained by encrypting the verification result and the device information of the smart device to be configured.
[0082] For example, the smart air conditioner sends a network configuration request to the router, and the router returns verification information to the device based on the received network configuration request, so that the smart air conditioner performs verification based on the verification information to verify whether it is the smart air conditioner that needs to be configured for the network. When it is confirmed that it is this device, the verification result and the device information of the smart device (including device name, device type, etc.) are combined and encrypted to obtain combined encrypted information, and the combined encrypted information is sent to the router. The router decrypts the received combined encrypted information to obtain the device information therein, and then continues with the subsequent network configuration steps.
[0083] Through the above method, the target intelligent device to be configured can be accurately configured.
[0084] See also Figure 5 , Figure 5 : is a flowchart of a fourth embodiment of a network connection method for a smart device provided by the present application, the method comprising:
[0085] Step 51: The routing device searches for a short-range wireless communication signal.
[0086] Optionally, in one embodiment, the short-range wireless communication signal may be an AP signal. In other embodiments, it may be a Mesh signal, a Bluetooth signal, a ZigBee signal, a Thread signal, etc., which is not limited here.
[0087] Step 52: When obtaining the communication request sent by the smart device to be configured, the routing device establishes a short-range wireless communication channel with the smart device to be configured based on the communication request.
[0088] Specifically, the routing device establishes a communication connection with the network device to be configured that is searched within the communication range, and establishes a wireless communication channel based on the searched wireless communication signal. Before establishing the wireless communication channel, the wireless communication signal needs to be verified to verify whether the wireless communication signal name complies with the naming rules, such as the type of smart device, product series and extended attributes, such as "refrigerator-XX-XXXX". If it complies, a communication channel is established.
[0089] Optionally, in one embodiment, the communication requests sent by the devices to be networked are arranged in chronological order on the display interface. The user can search by pulling down the display interface or entering key information such as the type of smart device through the search bar, select the target device to be networked, and press the "Select" button to complete the establishment of the communication channel between the target smart devices to be networked.
[0090] Step 53: The routing device obtains the network configuration request sent by the intelligent device to be configured.
[0091] Among them, equipment information includes equipment model, equipment specifications, technical parameters, technical indicators, etc.
[0092] Specifically, in one embodiment, a unique device ID number of each smart device is used as an identification mark.
[0093] Step 54: Based on the network configuration request, the routing device obtains device information sent by the to-be-configured smart device based on short-range wireless communication.
[0094] Optionally, the conditions for sending the network configuration request include power-on, power-off and restart, network disconnection and reconnection, etc., and the methods for sending the network configuration request include periodic sending, non-periodic sending, etc.
[0095] Among them, the process of the routing device obtaining the device information of the intelligent device to be configured needs to be encrypted.
[0096] Step 55: The server binds the device information and the account information logged into the routing device.
[0097] Specifically, the routing device sends the device information and the account information that the routing device has logged in to the server, so that the server binds the device information and the account information and feeds back the corresponding binding result.
[0098] Step 56: After the binding is successful, the routing device sends an authentication notification to the control device based on the short-range wireless communication, so that the control device performs an authentication operation based on the authentication notification and generates corresponding authentication information.
[0099] Step 57: The routing device receives the authentication information based on short-range wireless communication, and verifies the authentication information to obtain an authentication result.
[0100] Step 58: Determine whether the authentication result is verified.
[0101] If the verification is successful, proceed to step 59 , otherwise proceed to step 510 .
[0102] Step 59: The routing device configures the network for the intelligent device to be configured, and sends the authentication result to the control device based on short-range wireless communication to complete the network connection of the intelligent device to be configured.
[0103] Step 510: The network connection to the intelligent device to be configured is not completed, and the network configuration is ended.
[0104] It can be understood that step 59 and step 510 do not exist at the same time.
[0105] For example, assuming that the smart device to be networked is a smart air conditioner and the routing device is a router, first, a communication channel is established between the smart air conditioner and the router, and the two interact based on the communication channel so that the router can obtain the device information of the smart air conditioner. After that, the obtained device information and the local account information of the router are sent to the server, and the server completes the account binding between the smart air conditioner and the router. After the account binding is completed, networking operation needs to be performed, that is, networking is achieved after the authentication operation is completed.
[0106] Different from the prior art, the present application can realize the simultaneous network configuration of multiple intelligent devices to be configured, and reduces the dependence on the user's control device, thereby improving the network configuration efficiency.
[0107] Combine the following Figure 6 , Figure 6 This is a schematic diagram of four-party interaction in the fourth embodiment of the network connection method for smart devices provided by the present application. The interaction process includes:
[0108] S1: The routing device searches for short-range wireless communication signals.
[0109] Specifically, in one embodiment, the short-range wireless communication signal is an AP signal.
[0110] S2: The intelligent device to be configured sends a communication request to the routing device.
[0111] It can be understood that the communication request can only be sent after the routing device searches for the short-range wireless communication signal of the smart device to be networked, and the sent communication request can be sent periodically. In other embodiments, the communication request can also be sent non-periodically, which is not limited here.
[0112] S3: The routing device establishes a short-range wireless communication channel with the intelligent device to be networked based on the communication request.
[0113] S4: The intelligent device to be networked sends a network configuration request to the routing device.
[0114] S5: Based on the network configuration request, the routing device obtains the device information sent by the smart device to be configured.
[0115] Among them, the routing device needs to perform encryption and decryption operations with the intelligent device to be configured in order to obtain device information.
[0116] S6: The routing device sends the device information and the account information in which the routing device has logged in to the server.
[0117] S7: The server binds the device information and the account information of the routing device that has logged in.
[0118] S8: The server returns a binding success message to the routing device.
[0119] S9: The routing device sends an authentication notification to the control device.
[0120] S10: The control device performs an authentication operation based on the authentication notification and generates corresponding authentication information.
[0121] S11: The control device sends the authentication information to the routing device.
[0122] S12: The routing device receives the authentication information, verifies the authentication information to obtain an authentication result, and determines whether the authentication result is verified.
[0123] If the verification is successful, proceed to S13.
[0124] S13: The routing device sends the authentication result to the control device to complete the network connection to the intelligent device to be configured.
[0125] See also Figure 7 , Figure 7 2 is a schematic diagram of the structure of an embodiment of a smart device provided in the present application. The smart device 20 includes a memory 201 and a processor 202. The memory 201 is used to store program data, and the processor 202 is used to execute program data to implement the method described above, which will not be repeated here.
[0126] See also Figure 8 , Figure 8 3 is a schematic diagram of the structure of an embodiment of a routing device provided in the present application. The routing device 30 includes a memory 301 and a processor 302. The memory 301 is used to store program data, and the processor 302 is used to execute program data to implement the above method, which will not be repeated here.
[0127] See also Fig. 9 , Fig. 9 It is a structural diagram of an embodiment of a computer-readable storage medium provided in the present application. The computer-readable storage medium 90 stores program data 901. When the program data 901 is processed and executed, it is used to implement the above method, which will not be repeated here.
[0128] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory) or an optical disk.
[0129] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A network connection method, applied to a routing device, characterized in that: The method comprises: Obtaining a network configuration request sent by the intelligent device to be configured based on short-range wireless communication; Based on the network configuration request, verification information is sent to the smart device to be configured based on short-range wireless communication, so that the smart device to be configured performs verification based on the verification information to obtain a verification result; wherein the verification information is to confirm whether the network status of the smart device to be configured is to be configured; If the verification result shows yes, the smart device to be configured encrypts the verification result and the device information of the smart device to be configured to obtain encrypted information; Receive the encrypted information sent by the smart device to be configured, and decrypt the encrypted information to obtain the device information of the smart device to be configured; Binding the device information with the account information logged into the routing device; Sending an authentication notification to a control device based on short-range wireless communication, so that the control device performs an authentication operation based on the authentication notification and generates corresponding authentication information; The authentication information is received based on short-range wireless communication, and the intelligent device to be networked is configured based on the authentication information to achieve network connection of the intelligent device to be networked.
2. The method according to claim 1, characterized in that The method further comprises: Searching for short-range wireless communication signals; When a communication request sent by the to-be-connected smart device based on short-distance wireless communication is obtained, a short-distance wireless communication channel is established with the to-be-connected smart device based on the communication request.
3. The method according to claim 1, characterized in that The method further comprises: After the binding is successful, the step of sending the authentication information to the control device based on the short-range wireless communication is performed.
4. The method according to claim 1, characterized in that: The binding of the device information and the account information logged in by the routing device includes: The device information and the account information of the routing device logged in are sent to the server, so that the server binds the device information and the account information and feeds back the corresponding binding result.
5. The method according to claim 1, characterized in that The configuring the intelligent device to be configured based on the authentication information includes: Verifying the authentication information to obtain an authentication result, and when the authentication result indicates that the authentication is passed, configuring the intelligent device to be configured; and The authentication result is sent to the control device based on short-range wireless communication.
6. The method according to claim 1, characterized in that The authentication information is generated based on at least two physical buttons of the control device being operated in combination.
7. The method according to any one of claims 1 to 6, characterized in that: The short distance wireless communication is AP communication.
8. A routing device, characterized in that: The routing device comprises a memory and a processor, the memory stores program data, and the processor is configured to execute the program data to implement the method according to any one of claims 1 to 7.
9. A network connection method, applied to a smart device, characterized in that: The method comprises: Sending short-range wireless communication signals; Sending a communication request to a routing device based on short-range wireless communication, and establishing a short-range wireless communication channel with the routing device based on the communication request; Sending a network configuration request to the routing device based on short-range wireless communication; and Based on the network configuration request, receiving the verification information sent by the routing device based on the short-range wireless communication, and performing verification based on the verification information to obtain a verification result; wherein the verification information verifies whether the network status of the smart device is to be configured; If the verification result shows yes, the verification result and the device information of the smart device to be configured are encrypted to obtain encrypted information, and the encrypted information is sent to the routing device so that the routing device decrypts the encrypted information to obtain the device information of the smart device to be configured, so that the routing device binds the device information and the account information logged in by the routing device, and the routing device configures the smart device to be configured based on the authentication information sent by the control device.
10. A smart device, characterized in that: The smart device includes a memory and a processor, wherein the memory stores program data, and the processor is configured to execute the program data to implement the method according to claim 9.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program data, and when the program data is executed by a processor, it is used to execute the method according to any one of claims 1-7 or 9.
Citation Information
Patent Citations
Automatic network distribution method and system for intelligent equipment and storage medium
CN111867007A
Distribution network binding method and device of equipment, storage medium and electronic device
CN113596089A