Smart device and network connection method thereof, routing device, and storage medium
The routing device obtains the near-range wireless communication request of the smart device and performs permission verification, which solves the problem of low networking efficiency of smart devices after network information changes, and realizes efficient networking without third-party devices, and supports multi-user access.
Patent Information
- Application Number
- CN202210533060.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-16
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2042-05-16
AI Technical Summary
Existing smart devices need to redistribute the network after the network information is changed, resulting in inefficient efficiency when multiple devices are connected to the network and rely on third-party equipment to participate, which is inefficient.
The routing device obtains the close-range wireless communication request of the smart device to be connected to the network, obtains device information and sends it to the server for permission verification, realizes device networking, supports AP communication to cover multi-user access, and reduces dependence on third-party devices.
Smart device networking can be achieved without the participation of third-party devices, which improves the efficiency of multi-device networking, supports simultaneous access by multiple users, and expands the coverage.
Smart Images

Figure CN115150797B_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] With the development of science and technology, more and more smart devices support network connection, allowing users to operate smart devices anytime and anywhere to realize functions. For example, users can control the smart air conditioner to turn off / on through APP when they are out. Before the smart device realizes its function, it is necessary to configure the network for the smart device to realize the network connection of the smart device. The smart device to be configured is connected to the router and the wide area network based on network information such as wireless network account and password. When the network information changes (such as wireless network account and password change), the smart device to be configured needs to re-configure the network to connect to the network to realize the network connection of the smart device. For application scenarios with multiple devices, such as a school computer room, it takes a lot of manpower and time to connect all devices to the network, and the efficiency is extremely low. 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 networked devices.
[0004] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a network connection method, which is applied to a routing device, and the method includes: first, when the network information of the routing device changes, 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 the device information sent by the smart device to be connected to the network based on short-range wireless communication; then, the routing device sends the device information to the server, so that the server performs authority verification on the device information to obtain an authority verification result; finally, the authority verification result sent by the server is received, and the smart device to be connected to the network is connected to the network based on the authority verification result, so that the smart device to be connected to the network can achieve network connection based on the routing device.
[0005] Among them, the network information of the routing device is changed, and the network connection with the connected smart device is disconnected.
[0006] Among them, the smart devices to be connected to the network are devices that have completed network configuration and disconnected from the routing device.
[0007] 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.
[0008] 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 verifies the device information of the smart device to be connected based on the verification information to obtain a verification result.
[0009] 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; thereafter, 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.
[0010] The device information includes the first account information associated with the smart device to be connected to the network.
[0011] Among them, sending device information to the server so that the server can perform permission verification on the networked smart device to obtain a permission verification result includes: the routing device sends the first account information and the second account information associated with the routing device to the server so that the server determines whether the first account information and the second account information match to obtain a permission verification result.
[0012] Among them, 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 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; thereafter, the smart device to be connected to the network sends a network request to the routing device based on the short-range wireless communication, and sends the device information of the smart device to be connected to the routing device based on the short-range wireless communication.
[0014] In order to solve the above technical problems, another technical problem adopted by the present application is: to provide a computer-readable storage medium, which stores program data, and 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 smart devices respectively. When applied to a routing device, the routing device obtains a networking request sent by the smart device to be connected based on short-range wireless communication, and based on the networking request, obtains the device information sent by the smart device to be connected, and then the routing device sends the device information to the server so that the server performs permission verification on the device information to obtain a permission verification result; finally, the routing device receives the permission verification result sent by the server, and connects the smart device to be connected based on the permission verification result, so that the smart device to be connected 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 the AP communication range covers tens to hundreds of meters, and the present application does not require the participation of third-party devices (such as mobile phones and tablets), which reduces the dependence on third-party devices and can also improve the efficiency of networking the devices to be connected. 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 smart device network connection method provided by the present application;
[0019] Figure 3 It is a flowchart of the second embodiment of the smart device network connection method provided by the present application;
[0020] Figure 4 It is a flowchart of the third embodiment of the smart device network connection method provided by the present application;
[0021] Figure 5 It is a flowchart of a fourth embodiment of the smart device network connection method provided by the present application;
[0022] Figure 6 This is an interactive schematic diagram of the fourth embodiment of the smart device network connection method 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 by the present application, wherein the smart device network connection system 100 includes a smart device to be networked 10, a routing device 20 and a server 30. The smart device to be networked 10 and the routing device 20, and the routing device 20 and the server 30 interact based on short-range wireless communication.
[0028] The interactive content 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.
[0029] It can be understood that 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 smart air conditioner is connected to the router for the first time, the smart air conditioner needs to complete the account binding with the router and connect to the network to achieve network connection.
[0030] It can be understood that the networking operation refers to the network connection between the smart device and the routing device. For example, when a smart air conditioner is connected to a router, since the smart air conditioner has completed the account binding with the target router before this connection, as long as the smart air conditioner sends a network request, the router can complete the network connection between the smart air conditioner and the router according to the obtained network request, and there is no need to perform the account binding again.
[0031] Optionally, short-range wireless communications mainly include WIFI (IEEE802.11 protocol), Bluetooth, ZigBee (802.15.4 protocol), Thread (802.15.4 protocol), Z-Wave, NFC, UWB, LiFi, etc.
[0032] Specifically, in one embodiment, the short-range wireless communication is AP (Wireless Access Point) communication, where AP is a 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.
[0033] 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 smart watch, or the like.
[0034] 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.
[0035] Optionally, the server 30 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.
[0036] It can be understood that in one embodiment, the routing device 20 obtains the networking request sent by the smart device 10 to be networked, and based on the networking request, obtains the device information sent by the smart device 10 to be networked, and then the routing device 20 sends the device information to the server 30, so that the server 30 performs authority verification on the device information to obtain an authority verification result; finally, the routing device 20 receives the authority verification result sent by the server 30, and connects the smart device 10 to be networked based on the authority verification result, so that the smart device 10 to be networked can achieve network connection based on the routing device 20. Since the devices interact with each other through AP communication and the authentication operation is completed through the server 30, the routing device 20 realizes the networking of the smart device 10 to be networked.
[0037] Through the above method, network connection of networked devices can be achieved without the participation of third-party devices (such as mobile phones), and network connection of multiple devices can be achieved simultaneously based on short-range wireless communication, thereby improving networking efficiency.
[0038] The above-mentioned smart device network connection method is introduced below through several embodiments.
[0039] 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:
[0040] Step 21: The network information changes, and the network connection with the smart device is disconnected.
[0041] Among them, the network information change refers to the change of the device information of the routing device, including SSID change, password change, etc.
[0042] 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.
[0043] It can be understood that the network configuration operation between the smart device and the routing device is an operation of account binding and networking between the smart device and the routing device.
[0044] Among them, the smart devices to be connected to the Internet can be smart phones, tablet computers, and smart wearable devices (such as smart watches).
[0045] Optionally, in one embodiment, the short-range wireless communication is AP communication, and in other embodiments, the short-range wireless communication may be Bluetooth or a local area network.
[0046] Optionally, the condition for the smart device to be connected to send a network request may be when it is powered on, when it is powered off and restarted, or when it is disconnected and reconnected, but the premise is that the reason why the smart device to be connected to send a network request to the routing device is because the network information of the routing device has changed.
[0047] 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 times per second, or send ten requests in a row and then pause for one second, and then send ten requests in a row after one second.
[0048] It can be understood that in one embodiment, AP communication supports simultaneous access by multiple users, and the routing device can simultaneously receive networking requests from multiple smart devices to be connected within a unit of time, that is, the routing device can process the received networking requests in parallel.
[0049] Step 23: Based on the networking request, obtain device information sent by the smart device to be networked based on short-range wireless communication.
[0050] It can be understood that the equipment information includes equipment model, equipment specifications, performance parameters, technical parameters, technical indicators and the like.
[0051] 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. Each computer name is also the device ID, which is unique.
[0052] It is understandable that the device ID number can be used as a distinguishing mark.
[0053] Specifically, the routing device sorts the networking requests according to the order in which the networking requests are received. In one embodiment, the routing device performs subsequent networking operations according to a unit time as a processing cycle. For example, if one second is a processing cycle, the routing device receives ten networking requests in the first second, and in the second second, based on the networking requests received in the previous second, simultaneously obtains the device information of the smart device to be networked that has sent the networking 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 smart devices to be networked can be obtained in sequence according to the order in which the networking requests are sent.
[0054] Step 24: Send the device information to the server so that the server performs permission verification on the device information to obtain a permission verification result.
[0055] Among them, the authority verification is that the server verifies whether the account information of the smart device to be connected to the network is consistent with the account information of the routing device.
[0056] Step 25: Receive the authority verification result sent by the server, and connect the smart device to be connected to the network based on the authority verification result, so that the smart device to be connected to the network can achieve network connection based on the routing device.
[0057] Specifically, the routing device will connect the device to be connected to the network only when the account information of the device to be connected to the network is consistent with the account information of the routing device.
[0058] 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 account / password of the router is changed and the network connection with the smart air conditioner is disconnected, then the smart air conditioner sends a request to the router to connect to the network based on short-range wireless communication, and the router obtains the device information of the smart air conditioner (including device name, device ID number, etc.) based on the connection request, and then the router sends the device information of the smart air conditioner to the server. When the communication connection is established between the router and the server, the server stores the account information of the router. Therefore, when the server receives the device information of the smart air conditioner, it compares and verifies the device information with the device information of the router to verify whether they match. If the verification result shows a match, the matching result is returned to the router, and the router connects the smart air conditioner to the network based on the result.
[0059] Different from the prior art, the present application verifies whether the to-be-connected smart device is to be connected to the network by a server, and the routing device performs the to-be-connected smart device networking operation according to the server verification result, and the routing device and the to-be-connected smart device achieve communication interaction based on short-range wireless communication. In one embodiment, the short-range wireless communication is AP communication, which can achieve the effect of multiple users accessing the communication at the same time. Through the above method, the networking efficiency of the to-be-connected smart device can be improved.
[0060] See also Figure 3 , Figure 3 : 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:
[0061] Step 31: The network information changes, and the network connection with the smart device is disconnected.
[0062] Step 32: Search for short-range wireless communication signals.
[0063] Optionally, the short-range wireless communication signal may be an AP signal, a Bluetooth signal, a local area network signal, or the like.
[0064] 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.
[0065] Specifically, in one embodiment, the short-range wireless communication channel is an AP channel.
[0066] 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.
[0067] 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.
[0068] Step 34: Obtain a network connection request sent by the smart device to be connected based on short-range wireless communication.
[0069] Optionally, the conditions for sending a network request include powering on, powering off and restarting, disconnecting and reconnecting, 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.
[0070] Optionally, the method of sending the networking request includes periodic sending, non-periodic sending, etc.
[0071] It can be understood that the networking request is a signal from the smart device to be networked requesting to connect to the network.
[0072] Step 35: Based on the networking request, obtain device information sent by the smart device to be networked based on short-range wireless communication.
[0073] It can be understood that the device information includes the device type, device performance, device name, etc. Since most of the information possessed by each device is the same, in order to distinguish each device, the device ID number is used as a distinguishing mark.
[0074] Specifically, the device information acquired by the routing device is arranged in the order of the time when the network request is sent. In one embodiment, since AP communication supports simultaneous access by multiple users, the routing device can fix the processing cycle and process the received device information in parallel within one processing cycle.
[0075] Step 36: Send the device information to the server so that the server performs permission verification on the device information to obtain a permission verification result.
[0076] Specifically, the authority verification is that the server verifies whether the account information of the smart device to be connected to the network is consistent with the account information of the routing device.
[0077] Step 37: Receive the permission verification result sent by the server.
[0078] If the result of the permission verification shows that the network can be connected, then go to step 38 ; otherwise, go to step 39 .
[0079] Step 38: Connect the smart device to the network.
[0080] Step 39: End the networking process of the smart device to be connected.
[0081] It can be understood that only when the account information of the smart device to be connected to the network matches the account information of the routing device, can the routing device establish a network connection with the smart device to be connected to the network.
[0082] For example, assuming that the networked smart device is a smart air conditioner and the routing device is a router, when the network information of the router changes, the communication signal within the communication range is searched, and the communication request sent by the smart air conditioner that sends the communication signal is received. Based on the communication request, the routing device establishes a communication channel with the smart air conditioner. Afterwards, the routing device receives the network connection request sent by the smart air conditioner based on the communication channel, obtains the device information of the smart air conditioner, and sends the received device information to the server. The server determines whether the locally stored router account information matches the account information in the device information. If they match, the router connects the smart air conditioner to the network.
[0083] Different from the existing technology, this application determines whether to connect the smart device to the network through the server, and completes the network connection of the smart device to the network through the routing device. It does not require the participation of third-party devices (such as user mobile phones), and short-range wireless communication can support multiple users to access at the same time. This method can improve networking efficiency.
[0084] 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:
[0085] Step 41: Network information changes.
[0086] Specifically, network information changes include SSID changes and password changes.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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 .
[0091] 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.
[0092] 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.
[0093] 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.
[0094] 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:
[0095] Step 51: The network information of the routing device changes.
[0096] Step 52: The routing device searches for a short-range wireless communication signal.
[0097] 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.
[0098] 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.
[0099] Among them, the smart devices to be connected to the network are devices that have completed network configuration and disconnected from the routing device.
[0100] 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.
[0101] Specifically, in one embodiment, the short-range wireless communication channel is an AP channel.
[0102] Step 54: The routing device obtains the network connection request sent by the smart device to be connected to the network.
[0103] Optionally, the scenarios in which the network connection request is sent include power-on, power-off and restart, and network disconnection and reconnection, and the networked smart device has completed the network configuration and only disconnected the network connection with the routing device.
[0104] 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.
[0105] Step 55: The routing device sends verification information to the smart device to be connected to the network based on short-range wireless communication.
[0106] 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.
[0107] If the verification result shows yes, then go to step 57.
[0108] 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.
[0109] 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.
[0110] Step 59: The routing device sends the first account information associated with the smart device to be connected and the second account information associated with the routing device to the server.
[0111] Step 510: The server determines whether the first account information and the second account information match to obtain an authority verification result.
[0112] If the permission verification result shows a match, proceed to step 511 , otherwise, proceed to step 512 .
[0113] Step 511: The routing device connects the smart device to be connected to the network.
[0114] Step 512: The routing device ends the networking operation for the smart device to be networked.
[0115] It can be understood that the premise of network connection is that the account information (including SSID, password, etc.) is consistent, that is, the device to be connected and the routing device are configured before this connection, but the network connection is disconnected.
[0116] It can be understood that when the server establishes a communication connection with the routing device, there is a memory inside the server for storing information of the routing device.
[0117] Through the above method, the server completes the permission verification, and the network connection of the connected smart device is completed through the routing device. It does not require the participation of third-party devices, which can improve the networking efficiency.
[0118] See also Figure 6 , Figure 6 This 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:
[0119] S1: Routing device network information changes.
[0120] S2: The connected smart device sends a short-range wireless communication signal.
[0121] It can be understood that, in one embodiment, the short-range wireless communication signal is an AP signal.
[0122] S3: The routing device searches for a short-range wireless communication signal.
[0123] (It can be understood that the above steps S2 and S3 do not limit the execution order)
[0124] S4: The connected smart device sends a communication request to the routing device.
[0125] 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.
[0126] 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.
[0127] S6: The smart device to be connected to the network sends a connection request to the routing device.
[0128] 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.
[0129] 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.
[0130] 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 due to a change in the network information of the routing device, and obtains a verification result.
[0131] If the verification result shows yes, go to step S9.
[0132] 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.
[0133] 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.
[0134] The device information of the smart device to be connected to the network includes the associated first account information.
[0135] S11: The routing device sends the first account information associated with the smart device to be connected to the network and the second account information associated with the routing device to the server.
[0136] S12: The server determines whether the first account information and the second account information match to obtain an authority verification result.
[0137] S13: The server sends the authority verification result to the routing device.
[0138] If the authority verification result shows a match, proceed to step S14.
[0139] S14: The routing device connects the smart device to be connected to the network.
[0140] It can be understood that when a server establishes a communication connection with a routing device, the server internally stores information of the routing device with which the communication connection has been established, including account number, password, device type, etc.
[0141] Through the above method, the participation of a third-party device is not required, and in one embodiment, the short-range wireless communication is AP communication, which supports simultaneous access by multiple users and can realize networking operations for multiple networking devices at the same time.
[0142] See also Figure 7 , Figure 71 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 above-mentioned method, which will not be elaborated one by one here.
[0143] Optionally, the processor 102 in the embodiment of the present application may be referred to as a CPU (Central Processing Unit), an integrated circuit chip, 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. The general-purpose processor 102 may be a microprocessor or any conventional processor, etc.
[0144] 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 method described above, which will not be repeated here.
[0145] Optionally, the processor 202 in the embodiment of the present application can be called a CPU (Central Processing Unit), an integrated circuit chip, 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.
[0146] 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 method described above, which will not be repeated here.
[0147] Optionally, the computer-readable storage medium 90 in the embodiment of the present application can be a medium that can store program instructions, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, or it can also be a server that stores the program instructions. The server can send the stored program instructions to other devices for execution, or it can also run the stored program instructions itself.
[0148] 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 short-range wireless communication, so that the smart device to be networked performs 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 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; Sending the device information to a server so that the server performs authority verification on the device information to obtain an authority verification result; The authority verification result sent by the server is received, and the smart device to be connected to the network is connected to the network based on the authority verification result, so that the smart device to be connected to the network can achieve network connection with 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 device information includes the first account information associated with the smart device to be connected to the network; The sending of the device information to the server so that the server performs permission verification on the smart device to be connected to the network to obtain a permission verification result includes: The first account information and the second account information associated with the routing device are sent to a server, so that the server determines whether the first account information and the second account information match, so as to obtain an authority verification result.
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 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, and performs networking operations on 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
System and method for achieving wireless authentication encryption of mobile terminal
CN104468626A
Method, device and system for logging in account
CN105049410A
Method and device for connecting wireless network
CN106488450A
Wireless network configuration method, device and system
CN107171837A
Network authentication method and device
CN108337677A
