CN115150796B - Intelligent device, network connection method thereof, routing device and storage medium - Google Patents
Intelligent device, network connection method thereof, routing device and storage medium Download PDFInfo
- Publication number
- CN115150796B CN115150796B CN202210530131.5A CN202210530131A CN115150796B CN 115150796 B CN115150796 B CN 115150796B CN 202210530131 A CN202210530131 A CN 202210530131A CN 115150796 B CN115150796 B CN 115150796B
- Authority
- CN
- China
- Prior art keywords
- networked
- equipment
- intelligent
- information
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses an intelligent device and a network connection method, a routing device and a storage medium thereof, wherein the network connection method comprises the following steps: the method comprises the steps that a routing device obtains a networking request sent by an intelligent device to be networked based on short-range wireless communication, obtains device information sent by the intelligent device to be networked based on the short-range wireless communication based on the networking request, judges whether the intelligent device to be networked is connected with the routing device based on the device information, if yes, networking the intelligent device to be networked, and accordingly network connection of the intelligent device to be networked is achieved based on the routing device. By the mode, the method and the device do not need to participate in third-party equipment, and networking efficiency can be improved.
Description
Technical Field
The present application relates to the field of internet of things, and in particular, to an intelligent device, a network connection method thereof, a routing device, and a storage medium.
Background
The intelligent equipment to be networked is connected with a router and a wide area network based on network information such as a wireless network account number and a password, and when the network information is changed (such as the wireless network account number and the password are changed), the intelligent equipment to be networked needs to be connected with a network again to carry out network allocation operation to realize network connection of the intelligent equipment, wherein the network allocation operation comprises account number binding and networking. In the scene of possessing the intelligent equipment with multiple networking technologies, the network connection efficiency and the low efficiency of the intelligent equipment with multiple networking technologies are realized, and the user is required to manually input information such as wireless network account numbers, passwords and the like, so that the dependence on the user is high.
Disclosure of Invention
The application mainly solves the technical problem of providing the intelligent equipment, the network connection method, the routing equipment and the storage medium thereof, does not need the participation of third-party equipment, and can improve the networking efficiency of the intelligent equipment to be networked.
In order to solve the technical problems, the technical scheme adopted by the application is that the network connection method is applied to the routing equipment and comprises the steps that network information of the routing equipment is changed, then the routing equipment obtains a networking request sent by the intelligent equipment to be networked based on the short-range wireless communication and obtains equipment information sent by the intelligent equipment to be networked based on the short-range wireless communication based on the networking request, then the routing equipment judges whether the intelligent equipment to be networked is connected with the routing equipment based on the equipment information, if so, the intelligent equipment to be networked is networked, so that the intelligent equipment to be networked realizes network connection based on the routing equipment.
The intelligent equipment to be networked is equipment which is completed with the network distribution and is disconnected with the routing equipment.
The method further comprises the steps that the routing equipment searches for a short-range wireless communication signal, and when a communication request sent by the intelligent equipment to be networked based on the short-range wireless communication is obtained, a short-range wireless communication channel between the intelligent equipment to be networked and the intelligent equipment to be networked is established based on the communication request.
The method comprises the steps that based on a networking request, the router device sends verification information to the intelligent device to be networked based on the networking request, so that the intelligent device to be networked is verified based on the verification information, and a verification result is obtained.
The method comprises the steps of receiving, by a router, encryption information sent by the intelligent device to be networked, and decrypting the encryption information to obtain the device information of the intelligent device to be networked, wherein the verification information is a networking request for verifying whether the intelligent device to be networked is sent by the router due to the fact that network information of the router is changed, if the verification result shows that the networking request is due to the fact that the network information of the router is changed, the intelligent device to be networked encrypts the verification result and the device information of the intelligent device to be networked to obtain the encryption information, and the router receives the encryption information sent by the intelligent device to be networked and decrypts the encryption information to obtain the device information of the intelligent device to be networked.
The encryption information is combined information of a verification result and device information of the intelligent device to be networked.
The method comprises the steps that whether the intelligent equipment to be networked is connected with the routing equipment is judged based on equipment information, wherein the routing equipment obtains historical networking record information of the routing equipment, and whether the intelligent equipment to be networked is connected with the routing equipment is judged based on the historical networking record information.
Wherein the close range wireless communication is an AP communication.
In order to solve the technical problem, the application adopts another technical scheme that the network connection method is applied to intelligent equipment and comprises the steps that the intelligent equipment to be networked detects that network connection with routing equipment is disconnected, then a close range wireless communication signal is sent, a communication request is sent to the routing equipment based on the close range wireless communication so as to establish a close range wireless communication channel between the intelligent equipment and the routing equipment, then a networking request is sent to the routing equipment based on the close range wireless communication, and equipment information of the intelligent equipment to be networked is sent to the routing equipment based on the networking request.
In order to solve the technical problem, another technical scheme adopted by the application is to provide a computer readable storage medium, wherein the computer readable storage medium stores program data, and the program data is used for realizing the network connection method of the intelligent equipment when being executed by a processor.
The network connection method has the beneficial effects that the network connection method provided by the application is different from the prior art, and can be respectively applied to the routing equipment and the intelligent equipment. When the method is applied to the routing equipment, the routing equipment acquires a networking request sent by the intelligent equipment to be networked based on the short-range wireless communication, acquires equipment information sent by the intelligent equipment to be networked based on the short-range wireless communication based on the networking request, and then judges whether the intelligent equipment to be networked is connected with the routing equipment based on the equipment information, if so, the intelligent equipment to be networked is networked, so that the intelligent equipment to be networked is connected with the network based on the routing equipment. In an embodiment, the near field communication is an AP communication, where the AP communication supports simultaneous access of multiple users, and the communication range covers several tens meters to several hundreds meters, so that network connection can be performed on multiple users simultaneously, and networking efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a network schematic diagram of an embodiment of an intelligent device network connection system provided by the present application;
fig. 2 is a schematic flow chart of a first embodiment of a network connection method for an intelligent device according to the present application;
fig. 3 is a schematic flow chart of a second embodiment of a network connection method for an intelligent device provided by the present application;
fig. 4 is a schematic flow chart of a third embodiment of a network connection method for an intelligent device provided by the present application;
Fig. 5 is a schematic flow chart of a fourth embodiment of a network connection method for an intelligent device provided by the present application;
FIG. 6 is an interaction schematic diagram of a fourth embodiment of the network connection method for intelligent devices provided by the present application;
FIG. 7 is a schematic structural diagram of an embodiment of a smart device provided by the present application;
fig. 8 is a schematic structural diagram of an embodiment of a routing device provided in the present application;
Fig. 9 is a schematic structural diagram of an embodiment of a computer readable storage medium provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a network schematic diagram of an embodiment of a smart device network connection system provided in the present application, where a smart device network connection system 100 includes a smart device 10 to be networked and a routing device 20.
The intelligent device 10 to be networked and the routing device 20 interact based on short-range wireless communication, and before the interaction, the intelligent device 10 to be networked and the routing device 20 complete network distribution operation, and the interaction content is network connection between the intelligent device 10 to be networked and the routing device 20, that is, networking operation.
The network allocation operation comprises networking operation between the intelligent device and the target routing device, and account binding with the target routing device is completed. For example, the mobile phone is connected with the router for the first time, the user selects the target router on the display interface of the mobile phone end, and needs to input a corresponding password to realize account binding, and then the router is connected with the mobile phone through a network.
The networking operation refers to network connection between the intelligent device and the routing device. For example, the mobile phone is connected with the router, the user selects the target router at the mobile phone end, and because the mobile phone end and the target router have completed account binding before the connection, the network connection between the mobile phone and the router can be completed only by pressing a connection button, and the user is not required to perform account binding again.
Optionally, the short-range wireless communication mainly includes WIFI (IEEE 802.11 protocol), mesh, bluetooth, zigBee (802.15.4 protocol), thread (802.15.4 protocol), Z-Wave, NFC, UWB, liFi, and the like.
Specifically, in an embodiment, the short-range wireless communication is AP (WIRELESS ACCESS Point) communication, which is also called a wireless AP, i.e., a wireless access Point, and the AP communication is mainly used in broadband families, inside buildings and inside parks, which can implement communication with a coverage range of several tens meters to hundreds meters, and the AP communication supports multi-user access.
Alternatively, the intelligent device 10 to be networked may be a household appliance, an intelligent electronic device, or the like, such as an intelligent air conditioner, a sweeping robot, or the like.
Alternatively, the routing device 20 may be a static route, a dynamic route, or a direct route. Where routing refers to the network-wide process of determining an end-to-end path as a packet goes from a source to a destination. The routing device 20 operates at the third layer network layer of the OSI network model to forward packets at the network layer to devices (e.g., cell phones, intelligent air conditioners). Routing device 20 implements network interconnection by forwarding packets. Although routing device 20 may support multiple protocols, most routing devices in China operate the TCP/IP protocol, and there is no limitation on routing device 20, and thus there is no limitation on the communication protocol embedded in routing device 20.
In this embodiment, the intelligent device to be networked 10 sends a networking request to the routing device 20 based on AP communication, and then the routing device 20 obtains device information of the intelligent device to be networked 10, and determines whether the intelligent device to be networked 10 is connected to the routing device 20 based on the device information, if so, the intelligent device to be networked 10 is networked, so that the intelligent device to be networked 10 realizes network connection based on the routing device 20. In this embodiment, network connection of the intelligent device to be networked 10 is achieved through the routing device 20, no participation of a third party device (a mobile phone of a user or the like) is required, and the used short-range wireless communication is AP communication, which supports simultaneous access of multiple users and covers a communication range from several tens of meters to several hundreds of meters, which can improve networking efficiency.
The above-described method for connecting a smart device to a network is described in the following by several embodiments.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a network connection method for an intelligent device, where the method is applied to a routing device, and the method includes:
and 21, changing network information, and disconnecting the network connection with the intelligent equipment.
The network information is changed into the device information of the routing device, including SSID change, password change and the like.
And step 22, acquiring a networking request sent by the intelligent equipment to be networked based on the short-range wireless communication, wherein the intelligent equipment to be networked is equipment which has completed network distribution and is disconnected with the routing equipment.
It can be appreciated that the network configuration between the intelligent device and the routing device operates as account binding between the intelligent device and the routing device.
Alternatively, in the present embodiment, the short-range wireless communication is AP communication, and in other embodiments, the short-range wireless communication may be bluetooth, a local area network, or the like, without limitation.
The intelligent device to be networked can be a mobile phone, a tablet computer or an intelligent wearable device (such as an intelligent watch).
Optionally, the network connection request sent by the intelligent device to be connected may occur in application scenarios such as power-on, power-off restarting, network disconnection reconnection, etc., provided that the reason that the network connection request is sent by the intelligent device to be connected to the routing device is that the network information of the routing device is changed.
Optionally, the manner in which the intelligent device to be networked sends the networking request includes periodic sending, non-periodic sending, and the like, where the periodic sending is exemplified by sending once every second, and sending continuously for a period of time after suspending for a plurality of times, for example, sending ten requests for one second, or suspending for one second after continuously sending ten requests, and sending ten requests continuously after one second.
Specifically, in an embodiment, the AP communication supports multi-user simultaneous access, which means that, in a unit time, the routing device can simultaneously receive networking requests of multiple intelligent devices to be networked, and the routing device can process the received communication requests in parallel.
And step 23, acquiring device information sent by the intelligent device to be networked based on the short-range wireless communication based on the networking request.
It is understood that the device information of the intelligent device to be networked includes the content of the device model, the device specification, the performance parameter, and the like. The device information exemplified herein is not unique, such as a device model, and there are many device models for each smart device, but each device of each class of devices has a unique device ID number. For example, a desktop computer can query device information through a running menu, including computer name, operating system, system manufacturer, system model, processor core, memory, etc., where each computer name is a device ID number, which is unique.
It will be appreciated that the device ID number may be used as a distinguishing flag in later networking operations.
Specifically, the routing device arranges the received device information according to the time of sending the networking requests as a sequence, in an embodiment, the routing device performs subsequent networking processing according to a unit time as one processing period, for example, one second is used as one processing period, and ten networking requests are received by the routing device in the first second, so that in the second, based on the networking requests received in the first second, the device information of the intelligent device to be networked, which sends the networking requests, is acquired at the same time, that is, all tasks are parallel in one processing period. In other embodiments, the device information of the intelligent devices to be networked may be sequentially acquired according to the order of sending the networking requests.
And step 24, judging whether the intelligent equipment to be networked is connected with the routing equipment or not based on the equipment information.
And if so, networking the intelligent equipment to be networked so that the intelligent equipment to be networked realizes network connection based on the routing equipment.
It can be understood that only before the intelligent device to be networked is connected with the network, the intelligent device to be networked and the routing device complete account binding, and the intelligent device to be networked can be connected with the network in the network. That is, the embodiment is applied, but not limited to, a case where network information is changed (such as a wireless network account number and a password are changed).
Specifically, the routing device locally stores the device information of the previously connected routing device, and the routing device compares the stored device information with the device information of the current connection to verify whether the information is the existing information.
For example, in the case that the intelligent device to be networked is an intelligent air conditioner, the router device is a router, and the short-range wireless communication is an AP communication, the network information of the router is changed, the network connection with the intelligent air conditioner is disconnected, then the intelligent air conditioner sends a networking request to the router based on an AP channel, the router obtains the device information (including the name, the device type, the manufacturer, etc. of the intelligent air conditioner) of the intelligent air conditioner based on the networking request, and then the router verifies whether the received device information is consistent with the device information stored locally in the router, if so, the networking of the intelligent air conditioner is completed, otherwise, the intelligent air conditioner cannot perform network connection.
Compared with the prior art, the method and the device realize network connection of the intelligent equipment to be networked through the routing equipment, do not need participation of third party equipment, and can improve the networking efficiency of the intelligent equipment to be networked through short-range wireless communication.
Referring to fig. 3, fig. 3 is a flow chart of a second embodiment of a network connection method for an intelligent device, which is applied to a routing device, and the method includes:
And 31, changing the network information, and disconnecting the network connection with the intelligent equipment.
Step 32, searching for short-range wireless communication signals.
It is understood that the short-range wireless communication signal may be an AP signal, a bluetooth signal, a local area network signal, or the like.
And step 33, when a communication request sent by the intelligent equipment to be networked based on the short-range wireless communication is acquired, a short-range wireless communication channel between the intelligent equipment to be networked and the intelligent equipment to be networked is established based on the communication request, wherein the intelligent equipment to be networked is equipment which has completed network distribution and is disconnected from the routing equipment.
It will be appreciated that in one embodiment, the short-range wireless communication channel is an AP channel.
Specifically, the routing device is in communication connection with the device to be networked searched in the communication range, in an embodiment, an AP channel is established based on the searched AP signal, and before the AP channel is established, the AP signal needs to be verified, to verify whether the name of the AP signal meets a naming rule, for example, the type, the product series and the extension attribute of the intelligent device, such as "refrigerator-XX-XXXX", and if yes, the communication channel is established.
Specifically, the routing device may simultaneously acquire a plurality of communication requests sent by the intelligent devices to be networked, perform parallel processing, and may also establish a plurality of communication channels in parallel when establishing the communication channels.
And step 34, acquiring a networking request sent by the intelligent equipment to be networked based on the short-range wireless communication.
It will be appreciated that the networking request is a signal that the intelligent device to be networked requests to connect to the network.
Optionally, the condition for sending the networking request includes power-on and power-off and restarting, and network-off and reconnection, etc., but if the network configuration is completed between the routing device and the intelligent device to be networked, and because the network information of the routing device is changed, the intelligent device to be networked sends the networking request.
Optionally, the manner in which the networking request is sent includes periodic transmission, aperiodic transmission, and the like.
And 35, acquiring device information sent by the intelligent device to be networked based on the short-range wireless communication based on the networking request.
It will be appreciated that the device information includes the type of device, performance, manufacturer, etc. of the intelligent device to be networked, where the device information is not unique, but each device has a unique device ID number, which can be used as a unique tag for the router to network the intelligent device, avoiding networking operations on non-target intelligent devices.
Specifically, the device information of the intelligent device to be networked, which is acquired by the routing device, is arranged according to the time of sending the networking request as a sequence, and in an embodiment, the routing device can perform parallel processing when performing subsequent operations based on the device information.
And step 36, judging whether the intelligent equipment to be networked is connected with the routing equipment or not based on the equipment information.
Specifically, when judging whether the intelligent device to be networked establishes the distribution network connection with the intelligent device to be networked, the routing device can perform judgment processing at the same time.
If yes, go to step 37, otherwise, go to step 38.
And step 37, networking the intelligent equipment to be networked.
And 38, ending the networking process of the intelligent device to be networked.
It will be appreciated that the routing device locally stores the device information of the connected intelligent device, and when the routing device verifies, the routing device automatically compares whether the received device information is consistent with the local information.
For example, when the intelligent device to be networked is an intelligent air conditioner and the routing device is a router, network information (such as an account number and a password) of the router is changed, then the router searches wireless communication signals sent by the intelligent air conditioner in a communication range, establishes a wireless communication channel with the intelligent air conditioner when the intelligent air conditioner sends a communication request based on wireless communication is obtained, then the intelligent air conditioner sends a networking request, the router receives the request and obtains device information of the intelligent air conditioner based on the request, verifies and judges whether the received device information is consistent with the device information locally stored in the router, if so, network connection of the intelligent air conditioner is completed, and otherwise, the intelligent air conditioner cannot be connected with the network.
Compared with the prior art, the intelligent device to be networked and the routing device interact based on short-range wireless communication, network connection of the intelligent device to be networked can be realized without third-party equipment, and networking efficiency of the intelligent device to be networked is improved.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of a network connection method for an intelligent device, which is applied to a routing device, and the method includes:
And step 41, changing the network information.
Specifically, the network information change includes SSID change, password change, and the like.
And 42, acquiring a networking request sent by the intelligent equipment to be networked based on the short-range wireless communication, wherein the intelligent equipment to be networked is equipment which has completed network distribution and is disconnected with the routing equipment.
The intelligent device to be networked and the routing device complete network distribution (account binding and the like), and only network connection is disconnected.
And 43, based on the networking request, generating verification information to the intelligent equipment to be networked based on the short-range wireless communication so that the intelligent equipment to be networked is verified based on the verification information, and verifying whether the networking request is sent or not because the network information of the routing equipment is changed.
If the verification result shows that the intelligent device to be networked sends the networking request because the network information of the routing device is changed, step 44 is entered.
And 44, receiving the encryption information sent by the intelligent equipment to be networked, and decrypting the encryption information to obtain the equipment information of the intelligent equipment to be networked.
The encryption information is obtained by encrypting the verification result and the equipment information combination of the intelligent equipment to be networked.
By the method, the intelligent equipment which needs to be networked because the network information of the routing equipment changes can be networked, and the encryption and decryption process is used for verifying that the equipment to be networked and the routing equipment are subjected to account binding operation before the network connection.
Referring to fig. 5, fig. 5 is a flowchart of a fourth embodiment of a network connection method for an intelligent device, where the method includes:
and step 51, changing the network information of the routing equipment.
Step 52, the routing device searches for a short-range wireless communication signal.
Alternatively, in an embodiment, the short-range wireless communication signal may be an AP signal, and in other embodiments, may be a Mesh signal, a bluetooth signal, a ZigBee signal, a Thread signal, or the like, which is not limited herein.
And step 53, when the communication request sent by the intelligent equipment to be networked is obtained, the routing equipment establishes a short-distance wireless communication channel with the intelligent equipment to be networked based on the communication request.
The intelligent equipment to be networked is equipment which is completed with the network distribution and is disconnected with the routing equipment.
Specifically, the routing device is in communication connection with the device to be networked searched in the communication range, a wireless communication channel is established based on the searched wireless communication signal, the wireless communication signal needs to be verified before the wireless communication channel is established, whether the name of the wireless communication signal accords with naming rules, such as the type, the product series and the expansion attribute of the intelligent device, such as 'refrigerator-XX-XXXX', and if so, the communication channel is established.
Specifically, in one embodiment, the short-range wireless communication channel is an AP channel.
And step 54, the routing equipment acquires a networking request sent by the intelligent equipment to be networked.
Optionally, the scenario where the networking request is sent includes when power is turned on, when power is turned off, when the network is disconnected, and the like.
Optionally, the manner in which the networking request is sent includes periodic transmission, aperiodic transmission, etc., and in one embodiment, may be periodic transmission, such as ten requests sent a second.
And step 55, the routing device sends verification information to the intelligent device to be networked based on the short-range wireless communication.
And 56, verifying the intelligent equipment to be networked based on the verification information, and verifying whether the networking request is sent because the network information of the routing equipment is changed or not, so as to obtain a verification result.
If the result of the verification shows yes, step 57 is entered.
And 57, the intelligent equipment to be networked carries out combined encryption on the verification result and the equipment information of the intelligent equipment to be networked to obtain encryption information, and sends the encryption information to the routing equipment.
And 58, the routing equipment receives the encryption information sent by the intelligent equipment to be networked and decrypts the encryption information to obtain the equipment information of the intelligent equipment to be networked.
Optionally, the device information includes a device model, a performance parameter, a device type, and the like, and since each type of device includes a plurality of devices, when the routing device obtains the device information of the device to be networked, the routing device obtains a unique device ID number of the device to be networked as the distinguishing mark.
Step 59, the routing device obtains local historical networking record information.
It will be appreciated that the routing device has locally stored device information, i.e. historical networking record information, for all intelligent devices connected thereto.
And 510, judging whether the intelligent equipment to be networked is connected with the routing equipment or not based on the historical networking record information.
If so, step 511 is entered to enable the intelligent device to be networked to make a network connection, otherwise step 512 is entered.
Step 511, networking the intelligent device to be networked.
Step 512, ending the networking operation of the intelligent device to be networked.
It can be understood that the routing device performs comparison verification according to the received device information of the device to be networked and the information stored locally by the routing device, and the routing device only allows networking operation of the intelligent device to be networked if the intelligent device to be networked and the routing device have networking records before the connection.
For example, when the intelligent device to be networked is an intelligent air conditioner and the router is a router, the intelligent air conditioner and the router are disconnected from the network, then a short-range wireless communication signal is sent out, after the short-range wireless communication signal is searched and received by the router, the intelligent air conditioner sends out a communication request, the router establishes a communication channel with the intelligent air conditioner based on the communication request, based on the communication channel, the intelligent air conditioner sends out a networking request, the router receives the networking request and acquires the equipment information of the intelligent air conditioner, then the equipment information of the intelligent air conditioner is compared with a history networking record stored locally by the router, and when the equipment information of the intelligent air conditioner can be found in a local memory of the router, the router networking the intelligent air conditioner is realized, so that the network connection of the intelligent air conditioner is realized.
Compared with the prior art, the method has the advantages that the network connection can be completed only through the routing equipment, the intelligent equipment to be networked can confirm the connection through the routing equipment, and the third party equipment is not needed to participate.
Referring to fig. 6, fig. 6 is an interaction schematic diagram of a fourth embodiment of a network connection method for an intelligent device, where the interaction process includes:
S1, changing network information of the routing equipment.
And S2, the intelligent equipment to be networked sends out a short-distance wireless communication signal.
It will be appreciated that in one embodiment, the short-range wireless communication signal is an AP signal.
And S3, the routing equipment searches for the short-range wireless communication signal.
(It will be appreciated that steps S2 and S3 are not limited in order to be performed)
And S4, the intelligent equipment to be networked sends a communication request to the routing equipment.
It will be appreciated that the communication request may be sent only after the routing device searches for a short-range wireless communication signal of the smart device to be networked, and the sent communication request may be sent periodically, or in other embodiments, the communication request may be sent aperiodically, without limitation.
And S5, the routing equipment receives the communication request and establishes a short-distance wireless communication channel with the intelligent equipment to be networked.
And S6, the intelligent equipment to be networked sends a networking request to the routing equipment.
And S7, the routing equipment acquires the networking request and sends verification information to the intelligent equipment to be networked based on the short-distance wireless communication.
Optionally, the transmission scenario of the networking request may be when the intelligent device to be networked is powered on, restarted when power is off, and reconnected when power is off, and the request transmission may be periodic transmission, for example, ten transmissions per second, ten transmissions are continuously transmitted, and then a period of time is paused for ten times, or the transmission may be aperiodic.
And S8, verifying the intelligent equipment to be networked based on the verification information, and verifying whether the networking request is sent because the network information of the routing equipment is changed or not, so as to obtain a verification result.
If the verification result shows yes, the process proceeds to step S9.
And S9, the intelligent equipment to be networked carries out combined encryption on the verification result and the equipment information of the intelligent equipment to be networked to obtain encryption information, and sends the encryption information to the routing equipment.
And S10, the routing equipment receives the encrypted information and decrypts the encrypted information to obtain the equipment information of the intelligent equipment to be networked.
And S11, the routing equipment acquires local history networking record information and judges whether the intelligent equipment to be networked is connected with the routing equipment or not based on the history networking record information.
And S12, connecting the intelligent equipment to be networked with the routing equipment, and networking the intelligent equipment to be networked.
(It will be appreciated that in one embodiment, step S12 is only performed if it is determined in step S11 that the intelligent device to be networked is connected to the routing device)
Through the mode, the network connection of the intelligent equipment to be networked is realized through the routing equipment confirmation, the third-party equipment confirmation is not needed, interaction is performed based on the short-range wireless communication, the simultaneous networking operation of multiple devices can be realized, and the networking efficiency is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of an intelligent device according to the present application, where the intelligent device 10 includes a memory 101 and a processor 102, the memory 101 is configured to store program data, and the processor 102 is configured to execute the program data to implement the above-mentioned method, which is not described herein again.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a routing device according to the present application, where the routing device 20 includes a memory 201 and a processor 202, and the memory 201 is used to store program data, and the processor 202 is used to execute the program data to implement the method described above, which is not described herein.
The processor 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 device, a discrete gate or transistor logic device, or a discrete hardware component.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a computer readable storage medium 90 according to the present application, where the computer readable storage medium 90 stores program data 901, and the program data 901 is used to implement the above-mentioned method when being processed and executed, and is not described herein again.
The storage medium includes a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), or various media capable of storing program codes such as an optical disk.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.
Claims (8)
1. A network connection method applied to a routing device, the method comprising:
network information is changed to disconnect network connection with intelligent equipment
Acquiring a networking request sent by intelligent equipment to be networked based on short-range wireless communication, wherein the intelligent equipment to be networked is equipment which is completed with network distribution and is disconnected with the routing equipment;
Based on the networking request, sending verification information to the intelligent equipment to be networked based on the short-distance wireless communication so that the intelligent equipment to be networked is verified based on the verification information to obtain a verification result, wherein the verification information is a networking request for verifying whether the intelligent equipment to be networked is sent out due to the change of the network information of the routing equipment;
If the verification result shows that the networking request is changed due to the network information of the routing equipment, the intelligent equipment to be networked encrypts the verification result and the equipment information of the intelligent equipment to be networked to obtain encrypted information;
receiving encryption information sent by the intelligent equipment to be networked, and decrypting the encryption information to obtain equipment information of the intelligent equipment to be networked;
judging whether the intelligent equipment to be networked is connected with the routing equipment or not based on the equipment information;
if yes, networking is conducted on the intelligent equipment to be networked, so that the intelligent equipment to be networked can achieve network connection based on the routing equipment.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The method further comprises the steps of:
searching for a short-range wireless communication signal;
When a communication request sent by the intelligent equipment to be networked based on the short-range wireless communication is acquired, a short-range wireless communication channel between the intelligent equipment to be networked and the intelligent equipment to be networked is established based on the communication request.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The judging whether the intelligent device to be networked is connected with the routing device based on the device information comprises the following steps:
acquiring historical networking record information of the routing equipment;
And judging whether the intelligent equipment to be networked is connected with the routing equipment or not based on the historical networking record information.
4. A method according to any one of claim 1 to 3, wherein,
The close range wireless communication is an AP communication.
5. A routing device, characterized in that it comprises a processor and a memory for storing program data, the processor being adapted to execute the program data for implementing the method according to any of claims 1-4.
6. A network connection method applied to an intelligent device, the method comprising:
detecting disconnection of network with the routing device, thereafter
Transmitting a short-range wireless communication signal;
Transmitting a communication request to a routing device based on the 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 equipment based on short-range wireless communication, and verifying based on the verification information to obtain a verification result, wherein the verification information is a networking request for verifying whether the intelligent equipment to be networked is sent by the routing equipment because of the change of network information;
And if the verification result shows that the networking request is the network information of the routing equipment, encrypting the verification result and the equipment information of the intelligent equipment to be networked to obtain encryption information, and sending the encryption information to the routing equipment so that the routing equipment decrypts the encryption information to obtain the equipment information of the intelligent equipment to be networked.
7. A smart device comprising a processor and a memory, the memory for storing program data, the processor for executing the program data to implement the method of claim 6.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein program data for performing the method according to any of claims 1-4 or 6 when being executed by a processor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210530131.5A CN115150796B (en) | 2022-05-16 | 2022-05-16 | Intelligent device, network connection method thereof, routing device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210530131.5A CN115150796B (en) | 2022-05-16 | 2022-05-16 | Intelligent device, network connection method thereof, routing device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115150796A CN115150796A (en) | 2022-10-04 |
| CN115150796B true CN115150796B (en) | 2024-12-17 |
Family
ID=83405764
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210530131.5A Active CN115150796B (en) | 2022-05-16 | 2022-05-16 | Intelligent device, network connection method thereof, routing device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115150796B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119729477A (en) * | 2024-12-30 | 2025-03-28 | 中国电信股份有限公司技术创新中心 | Terminal networking method, device, computer equipment and storage medium |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109151010A (en) * | 2018-08-09 | 2019-01-04 | 北京小米移动软件有限公司 | Method for connecting network, device and storage medium |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110310866A1 (en) * | 2010-06-22 | 2011-12-22 | Richard Howard Kennedy | Methods and apparatus to access network connectivity information associated with predicted times |
| WO2017133691A1 (en) * | 2016-02-04 | 2017-08-10 | 腾讯科技(深圳)有限公司 | Intelligent device networking method and apparatus |
| CN109981312A (en) * | 2017-12-27 | 2019-07-05 | 杭州萤石软件有限公司 | intelligent device configuration method, device and system |
| CN111194067A (en) * | 2018-11-14 | 2020-05-22 | 中兴通讯股份有限公司 | Network access method, device, related equipment and storage medium |
| CN111741510A (en) * | 2020-05-25 | 2020-10-02 | 杭州涂鸦信息技术有限公司 | Method for automatically updating networking information, intelligent equipment and router |
| WO2021254140A1 (en) * | 2020-06-19 | 2021-12-23 | 欧普照明股份有限公司 | Network distribution method, device to be networked, auxiliary network distribution device, and network distribution system |
| CN114095918B (en) * | 2020-07-31 | 2023-10-13 | 华为技术有限公司 | A network distribution method and system |
-
2022
- 2022-05-16 CN CN202210530131.5A patent/CN115150796B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109151010A (en) * | 2018-08-09 | 2019-01-04 | 北京小米移动软件有限公司 | Method for connecting network, device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115150796A (en) | 2022-10-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9596603B2 (en) | Distributed bulk onboarding process | |
| EP3484196B1 (en) | Method and apparatus for registering wireless device in wireless communication system | |
| CN108781473B (en) | Method and equipment for sharing files among different terminals | |
| CN110121902B (en) | Communication establishment method and terminal | |
| CN109996260B (en) | Configuration system, client device, embedded device configuration method and storage medium | |
| CN108366362A (en) | MESH network and its MESH equipment safeties match network method | |
| JP6756009B2 (en) | Data transmission | |
| CN103841626A (en) | Internet of Things wireless terminal, configuration method thereof and mobile terminal | |
| CN112566113B (en) | Key generation and terminal network distribution method, device and equipment | |
| CN113872835B (en) | Method and device for equipment network distribution, server, intelligent household appliance and terminal equipment | |
| CN113099440A (en) | Network configuration method, device, equipment and system | |
| CN111885680A (en) | Method, system and core equipment for establishing network connection | |
| CN108353339A (en) | The method and apparatus of networking between a kind of equipment | |
| CN111741509A (en) | Network distribution method and device, storage medium and processor | |
| CN111787514B (en) | Method and device for acquiring equipment control data, storage medium and electronic device | |
| CN105636040A (en) | Device networking method and system | |
| WO2018049823A1 (en) | Automatic network distribution method, apparatus and device, and repeater | |
| CN115150797B (en) | Smart device and network connection method thereof, routing device, and storage medium | |
| CN113301563A (en) | Network configuration method, device, equipment and storage medium | |
| CN104812093B (en) | Method and device for WIFI device access network for smart home | |
| CN112738785A (en) | Device connection method and device, storage medium and electronic device | |
| CN115226084B (en) | Intelligent device, network connection method thereof, routing device and storage medium | |
| CN115150796B (en) | Intelligent device, network connection method thereof, routing device and storage medium | |
| WO2014051430A1 (en) | Method and apparatus for transmitting, receiving and forwarding a gossip message using a gossip network | |
| CN115226085A (en) | Intelligent device and network connection method thereof, routing device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |