A networking method for smart home devices
By setting the activation status of smart home devices when they leave the factory, and using public key encryption registration information for verification and monitoring, the problem of insufficient security protection for Internet of Things devices entering the network is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111228344.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-10-21
AI Technical Summary
Existing technology cannot provide an effective method for connecting smart home devices, resulting in poor security protection for IoT devices entering the network and poor user experience.
The device is set to a state to be activated when it leaves the factory, configures networking information and establishes a connection with the Internet gateway, sends registration information to the server with a preset IP address for verification, uses the public key to encrypt the registration information, sends status information at intervals, and does not receive it when the server does not receive it. Send offline alarm when status information is received to realize safe access and monitoring of equipment.
The security protection level of network access verification for smart home devices has been improved and the user experience has been improved.
Smart Images

Figure CN113965379B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and in particular relates to a networking method for smart home equipment. Background Art
[0002] With the development of the Internet, people have proposed the concept and technology of the Internet of Everything, trying to connect various objects, objects and people through the Internet, in order to achieve monitoring, feedback, control and interaction of the status of various objects.
[0003] After the concept of the Internet of Things was proposed, it has developed rapidly in the corresponding fields of academia and industry. However, as an emerging network application model, the Internet of Things still faces many challenges in the security field. Each IoT device is essentially an electronic device running on the network and can communicate with the outside world. If there is no good network security protection and management, it is easy to become a target of hackers or malicious middlemen. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a networking method for smart home devices, aiming to solve the problem that the prior art cannot provide an effective networking method for smart home devices, resulting in poor security protection for Internet of Things devices accessing the network and poor user experience.
[0005] In one aspect, the present invention provides a method for networking a smart home device, the method comprising the following steps:
[0006] The device is set to be activated when it leaves the factory;
[0007] Configuring networking information for the device to connect the device to the Internet;
[0008] The device sends registration information to a server with a preset IP address, and the server allows the device to access after verifying the registration information;
[0009] The device sends status information to the server at intervals, and the server sends an offline alarm to a terminal of a registered user of the device after failing to receive the status information within a certain period of time.
[0010] Further, the device is set to a waiting-for-activation state when it leaves the factory, including: writing into the device the IP address of the registration server and the IP address of the server, and a public key paired with a unique private key stored in the server, and the serial number of the public key;
[0011] Configuring networking information for the device to connect the device to the Internet includes: inputting network access configuration information of the Internet gateway to be connected to the device and establishing a communication connection with the Internet gateway.
[0012] Further, after inputting the network access configuration information of the Internet gateway into the device and establishing a communication connection with the Internet gateway:
[0013] The device sends a network-connected prompt to the registration server, and after receiving the network-connected prompt, the registration server sends a user account registration request or a user account login request to the device;
[0014] The user account is automatically logged in after registration, and after the registration server verifies that the user has successfully logged in, the device sends registration information to the server at the preset IP address.
[0015] Furthermore, the registration information includes: the hardware identification code of the device, the network configuration information, the user account information of the device, the public IP address of the device accessing the Internet gateway, and the number of the public key;
[0016] The device sending the registration information to the server at the preset IP address includes: using the public key to encrypt the registration information and then sending it to the server.
[0017] Further preferably, after receiving the online prompt, the registration server sends a user account registration request or a user account login request to the device, including:
[0018] The registration server generates information for generating a temporary certificate and generates a temporary certificate, and establishes a trusted authentication with the device, and the device uses the temporary certificate to encrypt and transmit the user account information;
[0019] The user account information includes: one or more of: user account, user password, user mobile phone number, user identity information, device usage address, security questions and answers to security questions.
[0020] Furthermore, the status information includes: the network status of the device or the operating status of the device;
[0021] When the device sends the status information to the server at intervals, the interval for sending the network status information of the device is shorter than the interval for sending the running status of the device.
[0022] Further preferably, the method further includes server reallocation, wherein the server reallocation includes:
[0023] After the registration server establishes trusted authentication with the device, the IP address of a server with a lighter load is rewritten to the device according to the load balancing principle, or the registration server allocates a server closest to the device or a server with the lowest ping value to the device according to the public IP address of the device, and rewrites the IP address of the server into the device; after the IP address of the server is rewritten into the device, the device sends registration information to the server corresponding to the IP address.
[0024] Further preferably, if the server does not receive the status information within a certain period of time, it determines that the device is offline, and after the device is offline, it sends a reallocation server instruction to the registration server;
[0025] After the device comes online again, the registration server reallocates the server to which the device is connected.
[0026] Further preferably, after verifying that the user has successfully logged in, the registration server obtains the registration information from the device and sends the registration information to the server to which the device re-accesses.
[0027] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program information. When the program information is executed by a processor, the processor executes the above-mentioned smart home device networking method.
[0028] The beneficial effects of the present invention are as follows: step one, when the device is set to a waiting-for-activation state at the factory, the IP address of the registration server and the IP address of the server, the public key paired with the unique private key stored in the server, and the number of the public key are written into the device; step two, the networking information is configured for the device to connect the device to the Internet; step three, the device sends registration information to a server with a preset IP address, and the server allows the device to access after verifying the registration information; step four, the device sends status information to the server at intervals, and the server sends an offline alarm to the terminal of the registered user of the device after failing to receive the status information within a certain period of time; wherein, the device sends registration information to the server with a preset IP address, including encrypting the registration information with a public key and then sending it to the server; thereby improving the level of security protection for network access verification of smart home devices, and thus improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 Schematic diagram of the implementation of the networking method of smart home devices provided in the first embodiment of the present invention;
[0030] Figure 2 This is a flow chart of the implementation of the networking method for smart home devices provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0032] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
[0033] Embodiment 1:
[0034] Figure 1 The implementation process of the networking method of the smart home device provided by the first embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0035] In step S101, the device is set to a waiting-for-activation state when it leaves the factory;
[0036] In an embodiment of the present invention, the device is set to the activation state when it leaves the factory, including: writing the IP address of the registration server and the IP address of the server, and the public key paired with the unique private key stored in the server, and the number of the public key to the device; realizing device verification.
[0037] In step S102, the device is configured with networking information to connect the device to the Internet;
[0038] In an embodiment of the present invention, configuring networking information for a device to connect the device to the Internet includes: inputting network configuration information of the Internet gateway to be accessed into the device and establishing a communication connection with the Internet gateway; for example, configuring a WiFi or IP address, subnet mask, default gateway, and DNS server.
[0039] In step S103, the device sends registration information to the server at the preset IP address, and the server allows the device to access after verifying the registration information;
[0040] In an embodiment of the present invention, the registration information includes: the hardware identification code of the device, the network access configuration information, the user account information of the device, the public IP address of the device to access the Internet gateway, and the public key number; the device sends the registration information to the server with a preset IP address, including: using the public key to encrypt and encapsulate the registration information and then send it to the server; the server performs an initial decryption on the data packet received from the device to obtain the public key number, and retrieves the public key, and then uses the private key corresponding to the public key to perform a secondary decryption on the data packet to obtain the registration information and the public key, and compares the decrypted public key with the public key retrieved from the server. If the comparison is consistent, the registration information is verified.
[0041] In step S104, the device sends status information to the server at intervals. If the server does not receive the status information within a certain period of time, it sends an offline alarm to the terminal of the registered user of the device.
[0042] In an embodiment of the present invention, the status information includes: a network status of the device or an operating status of the device;
[0043] When the device sends status information to the server at intervals, the interval for sending the network status information of the device is shorter than the interval for sending the running status of the device, so as to realize monitoring of the device status.
[0044] In an embodiment of the present invention, in step one, when the device is set to a waiting-for-activation state at the factory, the IP address of the registration server and the IP address of the server, the public key paired with the unique private key stored in the server, and the number of the public key are written to the device; in step two, the networking information is configured for the device to connect the device to the Internet; in step three, the device sends registration information to a server with a preset IP address, and the server allows the device to access after verifying the registration information; in step four, the device sends status information to the server at intervals, and the server sends an offline alarm to the terminal of the registered user of the device after not receiving the status information within a certain period of time; wherein, the device sends registration information to the server with a preset IP address, including encrypting the registration information with a public key and then sending it to the server; thereby improving the level of security protection for network access verification of smart home devices, thereby improving user experience.
[0045] Embodiment 2:
[0046] Figure 2 The implementation process of the networking method of the smart home device provided by the second embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0047] In step S201, the device is set to a waiting-for-activation state when it leaves the factory;
[0048] In an embodiment of the present invention, setting the device to the activation state at the factory includes: writing the IP address of the registration server and the IP address of the server, and the public key paired with the unique private key stored in the server, and the number of the public key to the device.
[0049] In step S202, the network access configuration information of the Internet gateway to be connected is input into the device and a communication connection is established with the Internet gateway;
[0050] In the embodiment of the present invention, the device needs to communicate with a gateway connected to the Internet via wired or wireless means.
[0051] In step S203, the device sends a network-connected prompt to the registration server. After receiving the network-connected prompt, the registration server sends a user account registration request or a user account login request to the device;
[0052] In an embodiment of the present invention, the user account is automatically logged in after registration;
[0053] Furthermore, after receiving the online notification, the registration server sends a user account registration request or a user account login request to the device, including:
[0054] The registration server generates information for generating a temporary certificate and generates a temporary certificate, and establishes trusted authentication with the device. The device uses the temporary certificate to encrypt and transmit user account information;
[0055] User account information includes: one or more of: user account, user password, user mobile phone number, user identity information, device usage address, security questions and answers to security questions.
[0056] In step S204, after the registration server verifies that the user has successfully logged in, the device sends registration information to the server at the preset IP address;
[0057] In an embodiment of the present invention, server reallocation is also included, and server reallocation includes: after the registration server establishes trusted authentication with the device, the IP address of a server with a lighter load is rewritten to the device according to the load balancing principle, or the registration server allocates a server closest to the device or a server with the lowest ping value to the device according to the public network IP address of the device, and rewrites the IP address of the server to the device; after the IP address of the server is rewritten to the device, the device sends registration information to the server corresponding to the IP address; so as to improve network quality and thus improve user experience;
[0058] The registration information includes: the hardware identification code of the device, network configuration information, user account information of the device, the public IP address of the device’s Internet gateway, and the public key number;
[0059] The device sends the registration information to the server at the preset IP address, including: encrypting the registration information using the public key and then sending it to the server;
[0060] Furthermore, after verifying that the user has logged in successfully, the registration server obtains registration information from the device and sends the registration information to the server to which the device reconnects.
[0061] In step S205, the server verifies the registration information and allows the device to access;
[0062] In an embodiment of the present invention, the server also compares the status information received from the registration server with the status information sent by the device, and allows the device to access if the comparison is consistent.
[0063] In step S206, the device sends status information to the server at intervals, and the server sends an offline alarm to the terminal of the registered user of the device after failing to receive the status information within a certain period of time;
[0064] In the embodiment of the present invention, sending an offline alarm to a terminal of a registered user of the device is not limited to a phone reminder, an APP message reminder, or a text message reminder;
[0065] Furthermore, if the server does not receive the status information within a certain period of time, it determines that the device is offline, and after the device is offline, it sends a reallocation server instruction to the registration server;
[0066] After the device comes online again, the registration server reallocates the server that the device is connected to; this updates the server that serves the device, improves network quality, and improves the operating stability of the device.
[0067] Embodiment three:
[0068] Embodiment 3 of the present invention provides a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable information, and the computer-executable information is executed by one or more processors, for example, to execute the above-described Figure 1 The method comprises steps S101 to S104.
[0069] As an example, the non-volatile storage medium can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable ROM (EEPROM), or a flash memory. Volatile memory can include a random access memory (RAM) as an external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.
[0070] The embodiments described above are merely illustrative, in which the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0071] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can exist in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including some information to enable a computer electronic device (which can be a personal computer, a server, or a network electronic device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0072] What has been described herein in this specification and the accompanying drawings includes examples of networking methods that can provide smart home devices. Of course, it is not possible to describe every conceivable combination of elements and / or methods for the purpose of describing the various features of the present disclosure, but it can be recognized that many other combinations and permutations of the disclosed features are possible. Therefore, it is obvious that various modifications can be made to the present disclosure without departing from the scope or spirit of the present disclosure. In addition, or in the alternative, other embodiments of the present disclosure may be apparent from consideration of the present specification and the accompanying drawings and from the practice of the present disclosure as presented herein. It is intended that the examples set forth in this specification and the accompanying drawings are considered to be illustrative and not restrictive in all respects. Although specific terms are employed herein, they are used in a general and descriptive sense and are not used for limiting purposes.
Claims
1. A networking method for smart home devices, characterized in that: The method comprises the following steps: The device is set to be activated when it leaves the factory; Configuring networking information for the device to connect the device to the Internet; The device sends registration information to a server with a preset IP address, and the server allows the device to access after verifying the registration information; The device sends status information to the server at intervals, and the server sends an offline alarm to the terminal of the registered user of the device after failing to receive the status information within a certain period of time; Configuring networking information for the device to connect the device to the Internet includes: inputting network configuration information of an Internet gateway to be connected to the device and establishing a communication connection with the Internet gateway; After inputting the Internet gateway's network configuration information into the device and establishing a communication connection with the Internet gateway: The device sends a network-connected prompt to the registration server, and after receiving the network-connected prompt, the registration server sends a user account registration request or a user account login request to the device; The user account automatically logs in after registration, and after the registration server verifies that the user has successfully logged in, the device sends registration information to a server at a preset IP address; After receiving the network connection prompt, the registration server sends a user account registration request or a user account login request to the device, including: The registration server generates information of a temporary certificate and a temporary certificate, and establishes a trusted authentication with the device. The device uses the temporary certificate to encrypt and transmit the user account information.
2. The method according to claim 1, characterized in that The device is set to the ready-to-activate state when leaving the factory, including: writing the IP address of the registration server and the IP address of the server, and the public key paired with the unique private key stored in the server, and the serial number of the public key into the device.
3. The method according to claim 2, characterized in that The registration information includes: the hardware identification code of the device, the network configuration information, the user account information of the device, the public IP address of the device connected to the Internet gateway, and the number of the public key; The device sending registration information to a server at a preset IP address includes: encrypting the registration information using the public key and then sending the encrypted information to the server; The user account information includes: one or more of: user account, user password, user mobile phone number, user identity information, device usage address, security questions and answers to security questions.
4. The method according to claim 1, characterized in that The status information includes: the network status of the device or the operating status of the device; When the device sends the status information to the server at intervals, the interval for sending the network status information of the device is shorter than the interval for sending the running status of the device.
5. The method according to claim 1, characterized in that Also included is server reallocation, the server reallocation comprising: After the registration server establishes trusted authentication with the device, the IP address of a server with a lighter load is rewritten to the device according to the load balancing principle, or the registration server allocates a server closest to the device or a server with the lowest ping value to the device according to the public IP address of the device, and rewrites the IP address of the server into the device; after the IP address of the server is rewritten into the device, the device sends registration information to the server corresponding to the IP address.
6. The method according to claim 5, characterized in that If the server does not receive the status information within a certain period of time, it determines that the device is offline, and after the device is offline, it sends a reallocation server instruction to the registration server; After the device comes online again, the registration server reallocates the server to which the device is connected.
7. The method according to claim 5, characterized in that After verifying that the user has successfully logged in, the registration server obtains the registration information from the device and sends the registration information to the server to which the device reconnects.
8. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer executable information, which, when executed by one or more processors, enables the one or more processors to execute the networking method for smart home devices according to any one of claims 1 to 7.
