Smart device and network connection method thereof, routing device, and storage medium

The routing device obtains information of the smart device to be connected and determines the connection status. The intelligent device is connected efficiently by using short-range wireless communication (such as AP communication), which solves the problem of low network efficiency of smart devices in the existing technology and realizes no Multi-device networking with third-party devices.

CN115150796BActive Publication Date: 2024-12-17WUHU MIDEA KITCHEN & BATH APPLIANCES MFG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210530131.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-16
Publication Date
2024-12-17
Estimated Expiration
2042-05-16

AI Technical Summary

Technical Problem

In multiple scenarios of smart devices to be connected, the prior art requires users to manually enter wireless network accounts and passwords, resulting in low network connection efficiency and high dependence, and it is impossible to achieve efficient networking of smart devices without third-party devices.

Method used

The routing device obtains the networking request sent by the intelligent device to be connected based on short-range wireless communication, obtains device information, and determines whether the routing device is connected. If it is connected, it will reconnect the network, and use AP communication to achieve simultaneous access of multiple users, improves the Network efficiency.

Benefits of technology

Without the participation of third-party devices, short-range wireless communication (such as AP communication) is used to achieve efficient network connection of smart devices, and supports simultaneous access by multiple users, with a coverage range of tens of meters to hundreds of meters, improving networking efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115150796B_ABST
    Figure CN115150796B_ABST
Patent Text Reader

Abstract

The present application discloses a smart device and its network connection method, a routing device, and a storage medium. The network connection method includes: the routing device obtains a network connection request sent by the smart device to be connected to the network based on short-distance wireless communication, and based on the network connection request, obtains device information sent by the smart device to be connected to the network based on short-distance wireless communication. After that, the routing device determines whether the smart device to be connected to the network has been connected to the routing device based on the device information. If so, the smart device to be connected to the network is connected to the network, so that the smart device to be connected to the network can achieve network connection based on the routing device. In the above manner, the present application does not require the participation of third-party devices and can improve networking efficiency.
Need to check novelty before this filing date? Find Prior Art

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] Smart devices to be connected to the network are connected to the router and the wide area network based on network information such as the wireless network account and password. When the network information changes (such as the wireless network account and password), the smart devices to be connected to the network need to re-configure the network to achieve the network connection of the smart devices, where the network configuration operation includes account binding and networking. In the scenario with multiple smart devices to be connected to the network, the network connection efficiency of multiple smart devices to be connected to the network is extremely low, and users are required to manually enter information such as the wireless network account and password, which is highly dependent on users. Summary of the invention

[0003] The main technical problem solved by the present application is to provide a smart device and its network connection method, routing device, and storage medium, which do not require the participation of third-party devices and can improve the networking efficiency of the smart devices to be connected.

[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 network information of the routing device changes, after which the routing device obtains a networking request sent by the smart device to be connected to the network based on short-range wireless communication, and based on the networking request, obtains device information sent by the smart device to be connected to the network based on short-range wireless communication, after which the routing device determines whether the smart device to be connected to the network has been connected to the routing device based on the device information, and if so, the smart device to be connected to the network is connected to the network, so that the smart device to be connected to the network can achieve network connection based on the routing device.

[0005] Among them, the smart devices to be connected to the network are devices that have completed network configuration and disconnected from the routing device.

[0006] The method further includes: the routing device searches for a short-range wireless communication signal, and upon obtaining a communication request sent by the smart device to be connected based on the short-range wireless communication, establishes a short-range wireless communication channel with the smart device to be connected based on the communication request.

[0007] Among them, based on the networking request, the device information sent by the smart device to be connected to the network through short-range wireless communication is obtained, including: the routing device sends verification information to the smart device to be connected to the network based on the networking request and based on short-range wireless communication, so that the smart device to be connected to the network performs verification based on the verification information and obtains a verification result.

[0008] Among them, the verification information is to verify whether the networking request issued by the smart device to be connected to the network is due to the change of the network information of the routing device; if the verification result shows that the networking request is due to the change of the network information of the routing device, the smart device to be connected to the network encrypts the verification result and the device information of the smart device to be connected to the network to obtain encrypted information; the routing device receives the encrypted information sent by the smart device to be connected to the network, and decrypts the encrypted information to obtain the device information of the smart device to be connected to the network.

[0009] The encrypted information is a combination of the verification result and the device information of the smart device to be connected to the network.

[0010] Among them, judging whether the smart device to be connected to the network has been connected to the routing device based on the device information includes: the routing device obtains the historical networking record information of the routing device, and judging whether the smart device to be connected to the network has been connected to the routing device based on the historical networking record information.

[0011] Wherein, the short-range wireless communication is AP communication.

[0012] 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 to be connected to the network detects that the network connection with the routing device is disconnected, and then sends a short-range wireless communication signal, and sends a communication request to the routing device based on the short-range wireless communication to establish a short-range wireless communication channel with the routing device, and then sends a networking request to the routing device based on the short-range wireless communication, and based on the networking request, sends the device information of the smart device to be connected to the network to the routing device based on the short-range wireless communication.

[0013] 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.

[0014] 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 smart devices respectively. When applied to a routing device, the routing device obtains a networking request sent by the smart device to be connected to the network based on short-range wireless communication, and based on the networking request, obtains device information sent by the smart device to be connected to the network based on short-range wireless communication. After that, the routing device determines whether the smart device to be connected to the network has been connected to the routing device based on the device information. If so, the smart device to be connected to the network is connected to the network, so that the smart device to be connected to the network can achieve network connection based on the routing device. In one embodiment, the short-range wireless communication is AP communication, which supports simultaneous access by multiple users, and its communication range covers tens to hundreds of meters, which can achieve simultaneous network connection for multiple users and improve networking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] 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:

[0016] Figure 1 It is a network diagram of an embodiment of a smart device network connection system provided by the present application;

[0017] Figure 2 It is a flowchart of the first embodiment of the smart device network connection method provided by the present application;

[0018] Figure 3 It is a flowchart of the second embodiment of the smart device network connection method provided by the present application;

[0019] Figure 4 It is a flowchart of the third embodiment of the smart device network connection method provided by the present application;

[0020] Figure 5 It is a flowchart of a fourth embodiment of the smart device network connection method provided by the present application;

[0021] Figure 6 This is an interactive schematic diagram of the fourth embodiment of the smart device network connection method provided by the present application;

[0022] Figure 7 It is a structural diagram of an embodiment of a smart device provided by the present application;

[0023] Figure 8 It is a structural diagram of an embodiment of a routing device provided by the present application;

[0024] Fig. 9 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION

[0025] 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.

[0026] 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 smart device 10 to be connected to the network and a routing device 20.

[0027] Among them, the smart device 10 to be connected to the network and the routing device 20 interact based on short-range wireless communication, and before the interaction, the network configuration operation has been completed between the smart device 10 to be connected to the network and the routing device 20. The content of the interaction is to realize the network connection between the smart device 10 to be connected to the network and the routing device 20, that is, the networking operation.

[0028] The network configuration operation includes the networking operation between the smart device and the target routing device, and completing the account binding with the target routing device. For example, when the mobile phone is connected to the router for the first time, the user selects the target router on the mobile phone display interface and needs to enter the corresponding password to achieve account binding. After that, the router and the mobile phone are connected to the network.

[0029] Among them, networking operation refers to the network connection between smart devices and routing devices. For example, when a mobile phone is connected to a router, the user selects the target router on the mobile phone. Since the mobile phone has completed the account binding with the target router before this connection, the network connection between the mobile phone and the router can be completed by pressing the "Connect" button, and the user does not need to bind the account again.

[0030] Optionally, short-range wireless communications mainly include WIFI (IEEE802.11 protocol), Mesh, Bluetooth, ZigBee (802.15.4 protocol), Thread (802.15.4 protocol), Z-Wave, NFC, UWB, LiFi, etc.

[0031] Specifically, in one embodiment, the short-range wireless communication is AP (Wireless Access Point) communication. AP is also called wireless AP, that is, wireless access point. AP communication is mainly used for broadband homes, inside buildings and inside campuses. It can achieve communication with a coverage range of tens to hundreds of meters, and AP communication supports multi-user access.

[0032] Optionally, the smart device 10 to be connected to the network may be a household appliance, a smart electronic device, or the like, such as a smart air conditioner, a sweeping robot, or the like.

[0033] Optionally, the routing device 20 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 20 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 20 achieves network interconnection by forwarding data packets. Although the routing device 20 can support multiple protocols, the vast majority of routing devices in my country run the TCP / IP protocol. There is no restriction on the routing device 20 here, so there is no restriction on the communication protocol embedded in the routing device 20.

[0034] In this embodiment, the smart device 10 to be connected to the network sends a network request to the routing device 20 based on AP communication, and then the routing device 20 obtains the device information of the smart device 10 to be connected to the network, and determines whether the smart device 10 to be connected to the network has been connected to the routing device 20 based on the device information. If so, the smart device 10 to be connected to the network is connected to the network, so that the smart device 10 to be connected to the network is connected to the network based on the routing device 20. In this embodiment, the network connection of the smart device 10 to be connected to the network is realized through the routing device 20, and no third-party device (user's mobile phone, etc.) is required to participate, and the short-range wireless communication used is AP communication, which supports multiple users to access at the same time, and the communication range covers tens of meters to hundreds of meters. This method can improve the networking 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 method for connecting a smart device to a network provided by the present application. The method is applied to a routing device. The method includes:

[0037] Step 21: The network information changes, and the network connection with the smart device is disconnected.

[0038] Among them, the network information change refers to the change of the device information of the routing device, including SSID change, password change, etc.

[0039] Step 22: Obtain a networking request sent by the smart device to be connected to the network based on short-range wireless communication; wherein the smart device to be connected to the network is a device that has completed network configuration and is disconnected from the routing device.

[0040] It can be understood that the network configuration operation between the smart device and the routing device is to perform account binding between the smart device and the routing device.

[0041] Optionally, in this embodiment, the short-range wireless communication is AP communication. In other embodiments, the short-range wireless communication may be Bluetooth, local area network, etc., which is not limited here.

[0042] Among them, the smart devices to be connected to the Internet can be mobile phones, tablet computers, and smart wearable devices (such as smart watches).

[0043] Optionally, the smart device to be connected to the network sends a network request in application scenarios such as power-on, power-off and restart, and network disconnection and reconnection, but the premise is that the reason why the smart device to be connected to the network sends a network request to the routing device is that the network information of the routing device has changed.

[0044] Optionally, the way in which the connected smart device sends a network 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 a row 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 a row and then pausing for one second, and then sending ten requests in a row after one second.

[0045] Specifically, in one embodiment, AP communication supports simultaneous access by multiple users, which means that within a unit of time, the routing device can simultaneously receive networking requests from multiple smart devices to be connected to the network, and the routing device can process the received communication requests in parallel.

[0046] Step 23: Based on the networking request, obtain device information sent by the smart device to be networked based on short-range wireless communication.

[0047] It can be understood that the device information of the smart device to be connected to the network includes the device model, device specifications, performance parameters, etc. The device information exemplified here is not unique. For example, there are many types of device models for each type of smart device, but each device of each type of device has a unique device ID number. For example, for a desktop computer, the device information can be queried through the run menu, including the computer name, operating system, system manufacturer, system model, processor core, memory, etc. Among them, each computer name is the device ID number, which is unique.

[0048] It can be understood that the device ID number can be used as a distinguishing mark in subsequent networking operations.

[0049] Specifically, the routing device arranges the received device information in the order of the time when the networking request is sent. In one embodiment, the routing device performs subsequent networking processing according to a unit time as a processing cycle. For example, if one second is a processing cycle, and the routing device receives ten networking requests in the first second, then in the second second, based on the networking requests received in the first second, the device information of the smart device to be networked that sends the networking request is obtained at the same time, that is, all tasks are parallel in one processing cycle. In other embodiments, the device information of the smart devices to be networked can be obtained in sequence according to the order in which the networking requests are sent.

[0050] Step 24: Based on the device information, determine whether the smart device to be connected to the network has been connected to the routing device.

[0051] If so, the smart device to be connected to the network is connected to the network, so that the smart device to be connected to the network can achieve network connection based on the routing device.

[0052] It is understandable that only when the smart device to be connected to the network completes account binding with the routing device before connecting to the network this time, can the smart device to be connected to the network be connected to the network in this network configuration. In other words, this embodiment is applicable but not limited to situations where network information changes (such as changes in wireless network account and password).

[0053] Specifically, the routing device locally stores device information that has been previously connected to the routing device. The routing device compares the stored device information with the device information of the current connection to verify whether the information is existing.

[0054] For example, assuming that the smart device to be connected to the network is a smart air conditioner, the routing device is a router, and the short-range wireless communication is AP communication, the network information of the router changes, and the network connection with the smart air conditioner is disconnected. After that, the smart air conditioner sends a network connection request to the router based on the AP channel. The router obtains the device information of the smart air conditioner (including the name of the smart air conditioner, device type, manufacturer, etc.) based on the network connection request. Then, the router verifies whether the received device information is consistent with the device information stored locally on the router. If they are consistent, the networking of the smart air conditioner is completed. Otherwise, the smart air conditioner cannot be connected to the network.

[0055] Different from the prior art, the present application realizes the network connection of the networked smart devices through routing devices, does not require the participation of third-party devices, and can improve the networking efficiency of the networked smart devices through short-range wireless communication.

[0056] See also Figure 3 , Figure 3 1 is a flow chart of a second embodiment of a method for connecting a smart device to a network provided by the present application, which is applied to a routing device. The method includes:

[0057] Step 31: The network information changes, and the network connection with the smart device is disconnected.

[0058] Step 32: Search for short-range wireless communication signals.

[0059] It can be understood that the short-range wireless communication signal can be an AP signal, a Bluetooth signal, a local area network signal, etc.

[0060] Step 33: When a communication request is obtained from the smart device to be connected to the network based on short-range wireless communication, a short-range wireless communication channel is established with the smart device to be connected to the network based on the communication request; wherein the smart device to be connected to the network is a device that has completed network configuration and is disconnected from the routing device.

[0061] It can be understood that, in one embodiment, the short-range wireless communication channel is an AP channel.

[0062] Specifically, the routing device establishes a communication connection with the device to be connected 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, product series and extended attributes of the smart device, such as "refrigerator-XX-XXXX". If it complies, a communication channel is established.

[0063] Specifically, the routing device can simultaneously obtain communication requests sent by multiple smart devices to be connected to the network, perform parallel processing, and can also establish multiple communication channels in parallel when establishing communication channels.

[0064] Step 34: Obtain a network connection request sent by the smart device to be connected based on short-range wireless communication.

[0065] It can be understood that the networking request is a signal from the smart device to be networked requesting to connect to the network.

[0066] Optionally, the conditions for sending a network request include power-on, power-off and restart, network disconnection and reconnection, etc., but the prerequisite is that the network configuration between the routing device and the smart device to be connected has been completed, and the smart device to be connected only sends a network request because the network information of the routing device has changed.

[0067] Optionally, the method of sending the networking request includes periodic sending, non-periodic sending, etc.

[0068] Step 35: Based on the networking request, obtain device information sent by the smart device to be networked based on short-range wireless communication.

[0069] It can be understood that the device information includes the device type, device performance, manufacturer, etc. of the smart device to be connected to the network. 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 connect the smart device to the network, avoiding networking operations on non-target smart devices.

[0070] Specifically, the device information of the smart devices to be connected to the network acquired by the routing device is arranged in the order of the time when the connection request is sent. In one embodiment, the routing device can perform subsequent operations based on the device information in parallel.

[0071] Step 36: Based on the device information, determine whether the smart device to be connected to the network has been connected to the routing device.

[0072] Specifically, when the routing device determines whether the smart device to be connected to the network has established a distribution network connection with it, the routing device can perform the determination process at the same time.

[0073] If yes, go to step 37, otherwise go to step 38.

[0074] Step 37: Connect the smart device to the network.

[0075] Step 38: End the networking process of the smart device to be connected.

[0076] It can be understood that the routing device locally stores the device information of the connected smart devices. During verification, the routing device automatically compares the received device information with the local information to see if they are consistent.

[0077] For example, assuming that the smart device to be connected to the network is a smart air conditioner and the routing device is a router, the network information of the router (such as account and password) changes. After that, the router searches for the wireless communication signal sent by the smart air conditioner within the communication range, and when the communication request based on wireless communication is obtained, a wireless communication channel is established between the smart air conditioner and the smart air conditioner. Then, the smart air conditioner sends a network request, the router receives the request and obtains the device information of the smart air conditioner based on the request, and verifies whether the received device information is consistent with the device information locally stored in the router. If they are consistent, the network connection of the smart air conditioner is completed, otherwise, the smart air conditioner cannot be connected to the network.

[0078] Different from the prior art, the present application realizes the network connection of the smart device to be connected to the network and the routing device through interaction based on short-range wireless communication, without the need for a third-party device, thereby improving the networking efficiency of the device to be connected to the network.

[0079] See also Figure 4 , Figure 4: is a flow chart of a third embodiment of a method for connecting a smart device to a network provided by the present application, which is applied to a routing device. The method includes:

[0080] Step 41: Network information changes.

[0081] Specifically, network information changes include SSID changes and password changes.

[0082] Step 42: Obtain a network connection request sent by the smart device to be connected to the network based on short-range wireless communication; wherein the smart device to be connected to the network is a device that has completed network configuration and is disconnected from the routing device.

[0083] Among them, the smart device to be connected to the network and the routing device have completed the network configuration (account binding, etc.), but the network connection has been disconnected.

[0084] Step 43: Based on the networking request, verification information is sent to the smart device to be networked based on short-range wireless communication, so that the smart device to be networked performs verification based on the verification information to verify whether the networking request is sent because the network information of the routing device has changed.

[0085] If the verification result shows that the reason why the smart device to be connected sends the connection request is because the network information of the routing device changes, the process goes to step 44 .

[0086] Step 44: receiving the encrypted information sent by the smart device to be connected to the network, and decrypting the encrypted information to obtain the device information of the smart device to be connected to the network.

[0087] The encrypted information is encrypted information obtained by encrypting a combination of the verification result and the device information of the smart device to be connected to the network.

[0088] Through the above method, it is possible to connect only the smart devices that need to be connected to the Internet due to changes in the network information of the routing device. The encryption and decryption process is to verify that the device to be connected to the network and the routing device have completed the account binding operation before this network connection.

[0089] See also Figure 5 , Figure 5 : is a flowchart of a fourth embodiment of a method for connecting a smart device to a network provided by the present application, the method comprising:

[0090] Step 51: The network information of the routing device changes.

[0091] Step 52: The routing device searches for a short-range wireless communication signal.

[0092] 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.

[0093] Step 53: When the communication request sent by the smart device to be connected to the network is obtained, the routing device establishes a short-range wireless communication channel with the smart device to be connected to the network based on the communication request.

[0094] Among them, the smart devices to be connected to the network are devices that have completed network configuration and disconnected from the routing device.

[0095] Specifically, the routing device establishes a communication connection with the device to be connected 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.

[0096] Specifically, in one embodiment, the short-range wireless communication channel is an AP channel.

[0097] Step 54: The routing device obtains the network connection request sent by the smart device to be connected to the network.

[0098] Optionally, the scenarios in which the network connection request is sent include power-on, power-off and restart, network disconnection and reconnection, etc.

[0099] Optionally, the manner of sending the networking request includes periodic sending, non-periodic sending, etc. In one embodiment, it may be periodic sending, such as sending ten requests per second.

[0100] Step 55: The routing device sends verification information to the smart device to be connected to the network based on short-range wireless communication.

[0101] Step 56: The smart device to be connected to the network performs verification based on the verification information to verify whether the connection request is sent because the network information of the routing device is changed, and obtains a verification result.

[0102] If the verification result shows yes, go to step 57.

[0103] Step 57: The smart device to be connected to the network encrypts the verification result and the device information of the smart device to be connected to the network to obtain encrypted information, and sends the encrypted information to the routing device.

[0104] Step 58: The routing device receives the encrypted information sent by the smart device to be connected to the network, and decrypts the encrypted information to obtain the device information of the smart device to be connected to the network.

[0105] Optionally, the device information includes device model, performance parameters, device type, etc. Because each type of device includes multiple devices, when the routing device obtains the device information of the device to be connected to the network, it will obtain the unique device ID number of the device to be connected to the network as a distinguishing mark.

[0106] Step 59: The routing device obtains local historical networking record information.

[0107] It can be understood that the routing device locally stores the device information of all smart devices that have been connected to it, that is, the historical networking record information.

[0108] Step 510: Based on the historical networking record information, determine whether the smart device to be connected to the network has been connected to the routing device.

[0109] If the connection has been made, the process proceeds to step 511 to enable the smart device to be connected to the network to achieve network connection; otherwise, the process proceeds to step 512.

[0110] Step 511: Connect the smart device to be connected to the network.

[0111] Step 512: End the networking operation for the smart device to be networked.

[0112] It can be understood that the routing device compares and verifies the received device information of the device to be connected with the information stored locally in the routing device. Only if the smart device to be connected has a connection record with the routing device before this connection, the routing device allows the smart device to be connected to the network.

[0113] For example, assuming that the networked smart device is a smart air conditioner and the routing device is a router, the smart air conditioner disconnects from the network and then sends out a short-range wireless communication signal. After the short-range wireless communication signal is searched and received by the router, the smart air conditioner sends out a communication request. The router establishes a communication channel with the smart air conditioner based on the communication request. Based on this communication channel, the smart air conditioner sends out a network connection request. The router receives the network connection request and obtains the device information of the smart air conditioner. The device information of the smart air conditioner is then compared and verified with the historical network connection records stored locally in the router. When the device information of the smart air conditioner can be found in the local storage of the router, the router connects the smart air conditioner to the network to achieve network connection of the smart air conditioner.

[0114] Different from the prior art, the present application only uses a routing device, and the networked smart device can complete the network connection, and the connection is confirmed by the routing device without the need for participation of a third-party device. This method can improve the networking efficiency of the networked devices.

[0115] See also Figure 6 , Figure 6This is an interactive schematic diagram of the fourth embodiment of the smart device network connection method provided by the present application. The interactive process includes:

[0116] S1: Routing device network information changes.

[0117] S2: The connected smart device sends a short-range wireless communication signal.

[0118] It can be understood that, in one embodiment, the short-range wireless communication signal is an AP signal.

[0119] S3: The routing device searches for a short-range wireless communication signal.

[0120] (It can be understood that the above steps S2 and S3 do not limit the execution order)

[0121] S4: The connected smart device sends a communication request to the routing device.

[0122] 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 connected to the network, and the communication request can be sent periodically. In other embodiments, the communication request can also be sent non-periodically, which is not limited here.

[0123] S5: The routing device receives the communication request and establishes a short-range wireless communication channel with the smart device to be connected to the network.

[0124] S6: The smart device to be connected to the network sends a connection request to the routing device.

[0125] S7: The routing device obtains the networking request and sends verification information to the smart device to be connected to the network based on short-range wireless communication.

[0126] Optionally, the network request may be sent when the smart device to be connected is powered on, when it is powered off and restarted, or when it is disconnected and reconnected, and the request may be sent periodically, such as ten times per second, sending ten times in succession followed by a pause and then sending ten times in succession, etc., or it may be sent non-periodically.

[0127] S8: The smart device to be connected to the network performs verification based on the verification information to verify whether the connection request is sent because the network information of the routing device is changed, and obtains a verification result.

[0128] If the verification result shows yes, go to step S9.

[0129] S9: The smart device to be connected to the network encrypts the verification result and the device information of the smart device to be connected to the network to obtain encrypted information, and sends the encrypted information to the routing device.

[0130] S10: The routing device receives the encrypted information and decrypts the encrypted information to obtain device information of the smart device to be connected to the network.

[0131] S11: The routing device obtains local historical networking record information, and based on the historical networking record information, determines whether the smart device to be connected to the network has been connected to the routing device.

[0132] S12: After the smart device to be connected to the router is connected, the smart device to be connected to the network is connected to the network.

[0133] (It can be understood that, in one embodiment, step S12 can be performed only if it is determined in step S11 that the smart device to be connected to the network has been connected to the routing device.)

[0134] Through the above method, the network connection of the smart device to be connected is realized through the confirmation of the routing device, without the need for confirmation by a third-party device, and based on the interaction of short-range wireless communication, multiple devices can be connected to the network at the same time, thereby improving the networking efficiency.

[0135] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of an embodiment of a smart device provided in the present application. The smart device 10 includes a memory 101 and a processor 102. The memory 101 is used to store program data, and the processor 102 is used to execute program data to implement the method described above, which will not be repeated here.

[0136] See also Figure 8 , Figure 8 1 is a schematic diagram of the structure of an embodiment of a routing device provided in the present application. The routing 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 above-mentioned method, which will not be elaborated one by one here.

[0137] Among them, the processor can be called a CPU (Central Processing Unit), or it can be an integrated circuit chip with signal processing capabilities, or it can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0138] 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-mentioned method, which will not be repeated here.

[0139] The 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), a random access memory (RAM), or an optical disk.

[0140] 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: The network information changes, disconnecting the network connection with the smart device; then Obtaining a network connection request sent by a smart device to be connected to a network based on short-range wireless communication; wherein the smart device to be connected to a network is a device that has completed network configuration and is disconnected from the routing device; Based on the networking request, verification information is sent to the smart device to be networked based on the short-range wireless communication, so that the smart device to be networked performs verification based on the verification information to obtain a verification result; the verification information is used to verify whether the networking request issued by the smart device to be networked is due to a change in the network information of the routing device; If the verification result shows that the networking request is due to a change in the network information of the routing device, the smart device to be networked encrypts the verification result and the device information of the smart device to be networked to obtain encrypted information; Receiving the encrypted information sent by the smart device to be connected to the network, and decrypting the encrypted information to obtain the device information of the smart device to be connected to the network; Determine whether the smart device to be connected to the network has been connected to the routing device based on the device information; If so, the smart device to be connected to the network is connected to the network so that the smart device to be connected to the network can achieve network connection based on the routing device.

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 smart device to be connected to the network based on short-distance wireless communication is obtained, a short-distance wireless communication channel is established with the smart device to be connected to the network based on the communication request.

3. The method according to claim 1, characterized in that The determining, based on the device information, whether the smart device to be connected to the network has been connected to the routing device includes: Obtaining historical networking record information of the routing device; Based on the historical networking record information, it is determined whether the smart device to be connected to the network has been connected to the routing device.

4. The method according to any one of claims 1 to 3, characterized in that: The short distance wireless communication is AP communication.

5. A routing device, characterized in that: The routing device comprises a processor and a memory, wherein the memory is used to store program data, and the processor is used to execute the program data to implement the method according to any one of claims 1 to 4.

6. A network connection method, applied to a smart device, characterized in that: The method comprises: Detect that the network connection with the routing device is disconnected; then Sending short-range wireless communication signals; Sending a communication request to a routing device based on short-range wireless communication to establish a short-range wireless communication channel with the routing device; Sending a networking request to the routing device based on short-range wireless communication; and Based on the networking request, receiving verification information sent by the routing device based on short-range wireless communication, and performing verification based on the verification information to obtain a verification result; wherein the verification information is to verify whether the networking request issued by the smart device to be networked is due to a change in the network information of the routing device; If the verification result shows that the networking request is a change in the network information of the routing device, the verification result and the device information of the smart device to be connected to the network 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 connected to the network.

7. A smart device, characterized in that: The smart device comprises a processor and a memory, wherein the memory is used to store program data, and the processor is used to execute the program data to implement the method according to claim 6.

8. 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 to 4 or 6.

Citation Information

Patent Citations

  • Network connection method and device and storage medium

    CN109151010A