DTU connection method and system
By introducing an activation code mechanism in the Internet of Things system, DTU can effectively authenticate and authenticate third-party devices, solving the problem of the inability to effectively verify third-party devices in the prior art, and achieving the security and reliability of communication.
Patent Information
- Application Number
- CN202411894621.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-08
AI Technical Summary
In IoT systems, DTUs are unable to effectively verify and authenticate accessed third-party devices, resulting in security risks and instability in communication processes.
By introducing an activation code mechanism, third-party devices send the activation code and serial number to DTU, and DTU authenticates the activation code with the cloud. After the authentication is passed, a random username and password is generated and synchronized to the cloud. Third-party devices use this username and password to establish a session communication with DTU.
It realizes authentication and authentication of third-party equipment, ensures the security and reliability of communication, and reduces the risk of illegal equipment access.
Smart Images

Figure CN119788362A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and more specifically, relates to a DTU connection method and system. Background Art
[0002] In the current Internet of Things system, DTU plays a vital role. It is like a connector that connects traditional industrial equipment with the modern Internet to achieve real-time data collection, transmission and remote control.
[0003] As a connector, the lower end of DTU will be connected to various third-party devices. There is no unified verification method when third-party devices are connected, which makes it impossible for DTU to determine whether the connected third-party devices are reliable and effective. Once illegal devices are connected, it will cause work efficiency to decrease and energy consumption to increase, or even destroy the entire communication process and leak security information.
[0004] Moreover, due to hardware cost constraints, many downstream third-party devices cannot be connected to the Internet, and do not have many resources to perform authentication methods such as certificate interaction, which are relatively expensive. As a result, many third-party devices do not perform effective authentication and authorization, and there is a greater risk when DTU directly connects to third-party devices. Summary of the invention
[0005] The main purpose of the present invention is to provide a DTU connection method and system, which aims to enable authentication when a third-party device connects to the DTU, thereby realizing DTU's authentication of the third-party device.
[0006] According to a first aspect of the present invention, a DTU connection method is provided, comprising the following steps:
[0007] Step 1: Get the activation code from the cloud and enter it into the third-party device;
[0008] Step 2: The third-party device sends the activation code and its own serial number to the DTU;
[0009] Step 3: After receiving the activation code and serial number, DTU uses the activation code to authenticate with the cloud;
[0010] If the authentication is successful, the DTU will generate a random username and password and send it to the third-party device. At the same time, the username and password will be matched with the serial number of the third-party device and saved.
[0011] If the authentication fails, the activation code is determined to be incorrect and no username and password is generated;
[0012] Step 4: After receiving the username and password, the third-party device uses the username and password to establish a session communication with the DTU.
[0013] In the above DTU connection method, in step 3, after receiving the activation code and serial number, the DTU will send an activation code authentication request to the cloud, and the cloud will then send an activation code authentication reply to the DTU to inform the DTU whether the activation code authentication is passed.
[0014] In the above DTU connection method, the DTU synchronizes the username, password, serial number and corresponding relationship to the cloud.
[0015] In the above DTU connection method, the username and password are both random 16-bit character strings.
[0016] According to a second aspect of the present invention, there is provided a DTU connection system, including a cloud, a third-party device and a DTU;
[0017] Obtain an activation code from the cloud, and input the activation code into the third-party device;
[0018] The third-party device sends the activation code and its own serial number to the DTU;
[0019] After receiving the activation code and serial number, the DTU uses the activation code to authenticate with the cloud;
[0020] If the authentication is successful, the DTU will generate a set of random username and password and send the username and password to the third-party device, and at the same time, the username and password will be matched with the serial number of the third-party device and saved;
[0021] If the authentication fails, the activation code is determined to be incorrect and no username and password is generated;
[0022] After receiving the username and password, the third-party device uses the username and password to establish a session communication with the DTU.
[0023] In the above-mentioned DTU connection system, after receiving the activation code and serial number, the DTU will send an activation code authentication request to the cloud, and the cloud will then send an activation code authentication reply to the DTU to inform the DTU whether the activation code authentication is passed.
[0024] In the above-mentioned DTU connection system, the DTU synchronizes the user name, password, serial number and corresponding relationship to the cloud.
[0025] In the above-mentioned DTU connection system, the user name and password are both random 16-bit character strings.
[0026] One of the above technical solutions of the present invention has at least one of the following advantages or beneficial effects:
[0027] In the present invention, an activation code is introduced. The third-party device sends the activation code and its own serial number to the DTU. After receiving the activation code and serial number, the DTU uses the activation code to authenticate with the cloud. After the authentication is passed, the DTU generates a set of random usernames and passwords and sends them to the third-party device, and matches the usernames and passwords with the serial numbers. After receiving the usernames and passwords, the third-party device uses the usernames and passwords to establish a session communication with the DTU. Based on this, the third-party device can be authenticated when connecting to the DTU, so that the DTU can authenticate the third-party device and ensure the security of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention is further described below in conjunction with the accompanying drawings and embodiments;
[0029] Figure 1 is a flow chart of the DTU connection method of the present invention;
[0030] Figure 2 It is a timing diagram of the DTU connection method of the present invention;
[0031] Figure 3 Schematic diagram of the DTU connection system of the present invention. DETAILED DESCRIPTION
[0032] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0033] As a connector, the lower end of DTU will be connected to various third-party devices. There is no unified verification method when third-party devices are connected, which makes it impossible for DTU to determine whether the connected third-party devices are reliable and effective. Once illegal devices are connected, it will cause work efficiency to decrease and energy consumption to increase, or even destroy the entire communication process and leak security information.
[0034] Moreover, due to hardware cost constraints, many downstream third-party devices cannot be connected to the Internet, and do not have many resources to perform authentication methods such as certificate interaction, which are relatively expensive. As a result, many third-party devices do not perform effective authentication and authorization, and there is a greater risk when DTU directly connects to third-party devices.
[0035] This application proposes a DTU connection method, which introduces an activation code. The third-party device sends the activation code and its own serial number to the DTU. After receiving the activation code and serial number, the DTU uses the activation code to authenticate with the cloud. After the authentication is passed, the DTU generates a set of random usernames and passwords and sends them to the third-party device, and matches the username and password with the serial number. After receiving the username and password, the third-party device uses the username and password to establish a session communication with the DTU to ensure the security of the communication.
[0036] Reference Figure 1 to Figure 2 As shown, a DTU connection method includes the following steps:
[0037] Step 1: Get the activation code from the cloud and enter it into the third-party device;
[0038] Generally, an activation code is obtained from the cloud by the on-site installer, who then enters the activation code into the third-party device;
[0039] The activation code is randomly generated in the cloud.
[0040] Step 2: The third-party device sends the activation code and its own serial number to the DTU;
[0041] The serial number of a third-party device is unique, and the serial number can be used to correspond to the third-party device.
[0042] Step 3: After receiving the activation code and serial number, DTU uses the activation code to authenticate with the cloud;
[0043] After the authentication is passed, the DTU will generate a set of random username and password and send the username and password to the third-party device. At the same time, the username and password will be matched with the serial number of the third-party device and saved, so that the username and password are bound to the third-party device.
[0044] If the authentication fails, the activation code is determined to be incorrect and no username and password is generated;
[0045] Specifically, after receiving the activation code and serial number, the DTU will send an activation code authentication request to the cloud, and the cloud will then send an activation code authentication reply to the DTU to inform the DTU whether the activation code authentication is passed.
[0046] In this embodiment, the user name and password are both random 16-bit character strings, which are more secure.
[0047] Step 4: After receiving the username and password, the third-party device uses the username and password to establish a session communication with the DTU.
[0048] In this way, a random username and password can be assigned to each connected third-party device, and the third-party device uses the username and password for session communication to ensure the security of communication.
[0049] In this embodiment, DTU will synchronize the username, password, serial number and corresponding relationship to the cloud. Users can delete third-party devices according to actual conditions to facilitate the deployment of third-party devices.
[0050] Reference Figure 3 As shown, according to a second aspect of the present invention, a DTU connection system is provided, including a cloud 1, a third-party device 2 and a DTU 3;
[0051] Obtain an activation code from the cloud 1, and input the activation code into the third-party device 2;
[0052] The third-party device 2 sends the activation code and its own serial number to the DTU3;
[0053] After receiving the activation code and serial number, the DTU3 uses the activation code to authenticate with the cloud 1;
[0054] If the authentication is successful, the DTU3 will generate a set of random username and password and send the username and password to the third-party device 2, and at the same time, the username and password will be matched with the serial number of the third-party device 2 and saved;
[0055] If the authentication fails, the activation code is determined to be incorrect and no username and password is generated;
[0056] After receiving the username and password, the third-party device 2 uses the username and password to establish a session communication with the DTU 3 .
[0057] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A DTU connection method, characterized in that: The following steps are involved: Step 1: Get the activation code from the cloud and enter it into the third-party device; Step 2: The third-party device sends the activation code and its own serial number to the DTU; Step 3: After receiving the activation code and serial number, DTU uses the activation code to authenticate with the cloud; If the authentication is successful, the DTU will generate a random username and password and send it to the third-party device. At the same time, the username and password will be matched with the serial number of the third-party device and saved. If the authentication fails, the activation code is determined to be incorrect and no username and password is generated; Step 4: After receiving the username and password, the third-party device uses the username and password to establish a session communication with the DTU.
2. The DTU connection method according to claim 1, characterized in that: In step 3, after receiving the activation code and serial number, the DTU will send an activation code authentication request to the cloud, and the cloud will then send an activation code authentication reply to the DTU to inform the DTU whether the activation code authentication is passed.
3. The DTU connection method according to claim 1, characterized in that: DTU synchronizes the username, password, serial number and corresponding relationship to the cloud.
4. The DTU connection method according to claim 1, characterized in that: The username and password are both random 16-digit character strings.
5. A DTU connection system, characterized in that: Including cloud, third-party devices and DTU; Obtain an activation code from the cloud, and input the activation code into the third-party device; The third-party device sends the activation code and its own serial number to the DTU; After receiving the activation code and serial number, the DTU uses the activation code to authenticate with the cloud; If the authentication is successful, the DTU will generate a set of random username and password and send the username and password to the third-party device, and at the same time, the username and password will be matched with the serial number of the third-party device and saved; If the authentication fails, the activation code is determined to be incorrect and no username and password is generated; After receiving the username and password, the third-party device uses the username and password to establish a session communication with the DTU.
6. The DTU connection system according to claim 5, characterized in that: After receiving the activation code and serial number, the DTU will send an activation code authentication request to the cloud, and the cloud will then send an activation code authentication reply to the DTU to inform the DTU whether the activation code authentication is passed.
7. The DTU connection system according to claim 5, characterized in that: The DTU synchronizes the username, password, serial number and corresponding relationship to the cloud.
8. The DTU connection system according to claim 5, characterized in that: The username and password are both random 16-digit character strings.