CN115333863A - Internet of things system building method based on dynamic domain name service and related equipment - Google Patents
Internet of things system building method based on dynamic domain name service and related equipment Download PDFInfo
- Publication number
- CN115333863A CN115333863A CN202211255116.0A CN202211255116A CN115333863A CN 115333863 A CN115333863 A CN 115333863A CN 202211255116 A CN202211255116 A CN 202211255116A CN 115333863 A CN115333863 A CN 115333863A
- Authority
- CN
- China
- Prior art keywords
- domain name
- internet
- host
- gateway
- host gateway
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- 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
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses a method for building an internet of things system based on dynamic domain name service and related equipment, wherein the method for building the internet of things system based on the dynamic domain name service comprises the following steps: deploying a host gateway and a dynamic domain name server, and accessing all terminal equipment in a preset range to the host gateway; the method comprises the steps of establishing a root account number of a host gateway, and acquiring legal control terminals based on the root account number, wherein the legal control terminals have the authority of accessing the host gateway, and at least one legal control terminal is provided; sending the real-time IP of the host gateway to a dynamic domain name server, and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server, wherein the host domain name is the only identifier of the host gateway; and reading the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to build an Internet of things system. The application can improve the safety and stability of the Internet of things system.
Description
Technical Field
The invention relates to the field of Internet of things, in particular to a method for building an Internet of things system based on dynamic domain name service and related equipment.
Background
At present, a cloud data center is adopted in an internet of things system as a center for data storage and data transfer, and control among internet of things devices is required to be recognized and forwarded through the cloud data center, so that remote control and device binding of the internet of things devices are realized, but the method has too strong dependence on the cloud data center, and once unavailable situations such as cloud downtime or cloud disconnection occur, all or part of functions of the internet of things devices in the internet of things system can be unavailable, so that the stability of the internet of things system is poor;
meanwhile, the existing internet of things system usually stores user data in a cloud data center, so that the risk of privacy disclosure exists, and the privacy security of the internet of things system is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method for building an internet of things system based on dynamic domain name service and related devices, so as to avoid the influence of a cloud on the internet of things system and improve the security and stability of the internet of things system. The related equipment comprises an Internet of things system based on dynamic domain name service, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present invention provides a method for building an internet of things system based on a dynamic domain name service, where the method includes:
deploying a host gateway and a dynamic domain name server, and accessing all terminal equipment in a preset range to the host gateway;
creating a root account number of the host gateway, and acquiring legal control terminals based on the root account number, wherein the legal control terminals have the authority of accessing the host gateway, and the number of the legal control terminals is at least one;
sending the real-time IP of the host gateway to the dynamic domain name server, and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server, wherein the host domain name is the only identifier of the host gateway;
and reading the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to build an Internet of things system.
According to the method for building the internet of things system based on the dynamic domain name service, all terminal devices in a preset range can be accessed into the internet of things system and controlled, a host gateway serving as a data storage center is deployed to replace a cloud end, the real-time IP of the host gateway is obtained by means of the dynamic domain name service, then authority management is carried out based on the created root account number to obtain a legal control terminal, and finally the legal control terminal controls all terminal devices in the preset range through the real-time IP of the host gateway to complete building of the internet of things system. The Internet of things system based on the dynamic domain name service stores all data in the host gateway, and the host gateway is used independently within a preset range, so that the interference of external factors such as cloud downtime and the like is avoided, and the stability and the safety of the Internet of things system are improved; meanwhile, the authority management is carried out on the control terminal through the root account number, and the safety of the Internet of things system is further improved.
In some embodiments, the hosting gateway includes at least a data store for storing all data information in the system of internet of things.
In some embodiments, the terminal device comprises an internet of things sub-device of a sub-gateway, and/or at least one internet of things device;
the accessing all terminal devices within a preset range to the host gateway includes:
allocating a device ID to each terminal device, wherein the device ID is a unique identifier of the terminal device;
allocating a device IP for each terminal device, wherein the device IP is used for establishing communication connection between the terminal device and the host gateway, and different terminal devices correspond to different device IPs;
and storing the equipment ID and the equipment IP of the Internet of things equipment in a data memory of the host gateway, and storing the equipment ID and the equipment IP of the Internet of things sub-equipment in a sub-gateway of the Internet of things sub-equipment.
In some embodiments, after establishing communication connections between all legal control terminals and the host gateway based on the real-time IP to build an internet of things system, the method further includes:
sending a control instruction of a target legal control terminal to the host gateway, wherein the target legal control terminal is any one of all legal control terminals, the control instruction comprises a target equipment ID and an operation instruction, the target equipment ID is an equipment ID of target equipment, and the target equipment is all terminal equipment corresponding to the control instruction;
after receiving the control instruction, the host gateway acquires a target device IP corresponding to the target device ID and sends the operation instruction to a target device based on the target device IP;
the target device executes corresponding operation after receiving the operation instruction to obtain an execution result, wherein the execution result comprises execution success and execution failure;
and feeding back the execution result to the target legal control terminal.
In some embodiments, the operation instruction at least comprises at least one of a control instruction, a query instruction, a distribution network instruction and a parameter setting instruction.
In some embodiments, the creating a root account of the host gateway and acquiring a legal control terminal based on the root account includes:
binding root users of the root account, wherein the number of the root users is at least one;
the root account number receives authentication information sent by a new control terminal, wherein the authentication information at least comprises identity information of the new control terminal;
the root account number reminds the root user to execute authentication approval so as to obtain an authentication result of each root user, wherein the authentication result comprises legality and legality;
and when the authentication result of at least one root user is legal, taking the new control terminal as a legal control terminal.
In some embodiments, the sending the real-time IP of the host gateway to the dynamic domain name server and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server includes:
sending the real-time IP of the host gateway corresponding to the current timestamp to the dynamic domain name server;
judging whether the real-time IP of the current timestamp is the same as the real-time IP of the last adjacent timestamp;
and if not, binding the real-time IP of the current timestamp with the host domain name so as to update the binding relationship in the dynamic domain name server.
In a second aspect, an embodiment of the present invention further provides an internet of things system based on dynamic domain name service, where the system includes a host gateway, a dynamic domain name server, an equipment management module, an authority management module, and a control module:
the device management module is used for accessing all terminal devices in a preset range to the host gateway, and the host gateway at least comprises a data memory;
the authority management module is used for creating a root account number of the host gateway and acquiring legal control terminals based on the root account number, the legal control terminals have authority for accessing the host gateway, and the number of the legal control terminals is at least one;
the dynamic domain name server is used for collecting a real-time IP of the host gateway and recording the binding relationship between the real-time IP and a host domain name, and the host domain name is the unique identifier of the host gateway;
and the control module is used for acquiring the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to transmit the control instruction of any legal control terminal.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: a memory storing computer readable instructions; and the processor executes the computer readable instructions stored in the memory to realize the method for building the internet of things system based on the dynamic domain name service.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when executed by a processor, the method for building an internet of things system based on a dynamic domain name service is implemented.
Drawings
Fig. 1 is a flowchart of a preferred embodiment of a method for building an internet of things system based on a dynamic domain name service according to an embodiment of the present application.
Fig. 2 is a schematic architecture diagram of a preferred embodiment of an internet of things system based on a dynamic domain name service according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the method for building an internet of things system based on a dynamic domain name service according to the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for building an internet of things system based on a dynamic domain name service according to some embodiments of the present application. As shown in fig. 1, the method for building an internet of things system based on dynamic domain name service includes the following steps:
s101, deploying a host gateway and a dynamic domain name server, and accessing all terminal equipment in a preset range to the host gateway.
In some optional embodiments, the host gateway at least comprises a data storage for storing all data information in the dynamic domain name service based internet of things system; allocating a host domain name which is used as a unique identifier and is fixed to the host gateway; the IP of the host gateway is a public network IP and adopts a dynamic IP address. The dynamic domain name server is used for acquiring the real-time IP of the host gateway, and after the real-time IP of the host gateway is acquired, communication connection can be established with the host gateway through the real-time IP. It should be noted that the real-time IP of the host gateway is randomly changed, and the real-time IP of the host gateway at different times may be the same or different.
In some alternative embodiments, the preset range may be a family, or may also be an enterprise or an organization, and the embodiments of the present application are not limited. At least one sub-gateway can be arranged between the host gateway and all the terminal equipment. The terminal equipment comprises an Internet of things sub-equipment of a sub-gateway and/or at least one Internet of things equipment, wherein one sub-gateway comprises at least one Internet of things sub-equipment.
In some optional embodiments, for the internet of things subset of a sub-gateway, binding the sub-gateway with the host domain name may enable the internet of things subset of the sub-gateway to access the host gateway; and for the Internet of things equipment, directly binding the Internet of things equipment with the host domain name to access the host gateway.
For convenience of management and control of the internet of things devices within the preset range, the internet of things devices with the same attribute may be accessed into the same sub-gateway, for example, the internet of things devices within the same range are accessed into the same sub-gateway, or the internet of things devices with the same control logic are accessed into the same sub-gateway. Exemplarily, the preset range is set as a home, and each room is provided with one sub-gateway, so that all the smart home devices in one room are internet of things sub-devices of the sub-gateway corresponding to the room, and each sub-gateway is directly bound with the domain name of the host; in addition, an internet of things device is directly bound with the domain name of the host; and the Internet of things equipment and all the Internet of things sub-equipment under each sub-gateway form all the terminal equipment in the family, and all the terminal equipment is accessed to the host gateway.
In some optional embodiments, the terminal device includes an internet of things sub-device of a sub-gateway, and/or at least one internet of things device; the accessing all terminal devices within a preset range to the host gateway includes:
distributing equipment ID for each terminal equipment accessed to the host gateway, wherein the equipment ID is the unique identifier of the terminal equipment;
allocating an equipment IP to each terminal equipment, wherein the equipment IP is used for establishing communication connection between the terminal equipment and the host gateway, and different terminal equipment corresponds to different equipment IPs;
and storing the equipment ID and the equipment IP of the Internet of things equipment in a data memory of the host gateway, and storing the equipment ID and the equipment IP of the Internet of things sub-equipment in a sub-gateway of the Internet of things sub-equipment.
The device IP is an intranet IP, and may be a static IP that is not fixed or a dynamic IP that changes randomly, which is not limited in this embodiment of the present application.
In some optional embodiments, the internet of things device directly accesses the host gateway, and may establish a communication connection with the host gateway; although the internet of things sub-device of the sub-gateway cannot directly establish communication connection with the host gateway, the internet of things sub-device of the sub-gateway can establish communication connection with the sub-gateway through the IP of the sub-gateway, and further realizes communication with the host gateway. The IP of the sub-gateway is an intranet IP, which may be a static IP that is not fixed, or a dynamic IP that changes randomly, and the embodiments of the present application are not limited.
It should be noted that the public network IP refers to an unreserved IP address connected to the public network, and the public network IP is a public resource with limited quantity, cannot be allocated to all people, and is randomly allocated according to the first-come first-serve principle; and the intranet IP is an IP address allocated and used inside the dynamic domain name service-based internet of things system, and the number of the intranet IP may be theoretically infinite.
Therefore, all the terminal devices within the preset range are accessed into the host gateway, the device ID and the device IP are distributed to each terminal device, communication connection between the host gateway and all the terminal devices is established, and the internet of things devices with different attributes can be managed more conveniently through the arrangement of the sub-gateways.
S102, a root account number of the host gateway is created, and legal control terminals are obtained based on the root account number, the legal control terminals have the authority of accessing the host gateway, and the number of the legal control terminals is at least one.
In an optional embodiment, the creating a root account of the host gateway and acquiring a legal control terminal based on the root account includes:
binding root users of the root account, wherein the number of the root users is at least one;
the root account number receives authentication information sent by a new control terminal, wherein the authentication information at least comprises identity information of the new control terminal;
the root account number reminds the root user to execute authentication approval so as to obtain an authentication result of each root user, wherein the authentication result comprises legality and legality;
and when the authentication result of at least one root user is legal, taking the new control terminal as a legal control terminal.
The control terminal is a terminal device provided with a preset APP, the preset APP can perform message transmission with the root account, and the new control terminal identity information is the registered user information of the preset APP. And after each root user receives the prompt sent by the root account, executing authentication approval according to the identity information in the authentication information to obtain an authentication result.
In other optional embodiments, before the new control terminal sends the authentication information to the root account, a preset questionnaire needs to be completed, and an answer result of the preset questionnaire and the identity information of the new control terminal are used as the authentication information to assist the root user in performing authentication approval to obtain an authentication result.
Therefore, the authority management is carried out on the control terminal to obtain the legal control terminal, the legal control terminal has the authority of accessing the host gateway, and all terminal equipment accessed to the host gateway can be controlled.
S103, sending the real-time IP of the host gateway to the dynamic domain name server, and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server, wherein the host domain name is the unique identifier of the host gateway.
In an optional embodiment, the real-time IP of the host gateway is dynamically changed, the real-time IP of the host gateway at each timestamp is continuously sent to the dynamic domain name server, and the binding relationship between the real-time IP and the host domain name is recorded, where the timestamp is the inverse of the preset acquisition frequency.
In an optional embodiment, the sending the real-time IP of the host gateway to the dynamic domain name server, and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server includes:
sending the real-time IP of the host gateway corresponding to the current timestamp to the dynamic domain name server;
judging whether the real-time IP of the current timestamp is the same as the real-time IP of the last adjacent timestamp;
and if not, binding the real-time IP of the current timestamp with the host domain name so as to update the binding relationship in the dynamic domain name server.
Therefore, the real-time IP of the host gateway of the current timestamp is obtained by inquiring the binding relation based on the host domain name.
And S104, reading the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to establish an Internet of things system.
In some optional embodiments, the real-time IP of the host gateway is obtained by querying the binding relationship, and communication connections between all legal control terminals and the host gateway are established based on the real-time IP. And finishing the construction of the Internet of things system.
In some optional embodiments, after establishing communication connections between all legal control terminals and the host gateway based on the real-time IP to build an internet of things system, the method further includes:
sending a control instruction of a target legal control terminal to the host gateway, wherein the target legal control terminal is any one of all legal control terminals, the control instruction comprises a target equipment ID and an operation instruction, the target equipment ID is an equipment ID of target equipment, and the target equipment is all terminal equipment corresponding to the control instruction;
after receiving the control instruction, the host gateway acquires a target device IP corresponding to the target device ID and sends the operation instruction to a target device based on the target device IP;
the target device executes corresponding operation after receiving the operation instruction to obtain an execution result, wherein the execution result comprises execution success and execution failure;
and feeding back the execution result to the target legal control terminal.
The control instruction comprises a target device ID and an operation instruction, the target device ID is a device ID of the target device, the target device is all terminal devices corresponding to the control instruction, and the number of the target devices is at least one.
The operation instruction is used for controlling the target device to execute corresponding operation, and the operation instruction at least comprises at least one of a control instruction, a query instruction, a distribution network instruction and a parameter setting instruction. The control instruction is used for controlling the target equipment to move, the query instruction is used for querying the real-time state of the target equipment, the distribution network instruction is used for controlling the target equipment to be connected to or disconnected from the host gateway, and the parameter setting instruction is used for adjusting the parameters of the target equipment.
In some optional embodiments, the obtaining a target device IP corresponding to the target device ID and sending the operation instruction to the target device based on the target device IP includes:
when the target equipment corresponding to the target equipment ID is the Internet of things equipment, directly acquiring a target equipment IP corresponding to the target equipment ID, and sending the operation instruction to the target equipment based on the target equipment IP;
when the target device corresponding to the target device ID is an Internet of things sub-device, acquiring a sub-gateway corresponding to the target device, and sending the operation instruction to the sub-gateway based on the IP of the sub-gateway; and reading the target equipment IP corresponding to the target equipment IP from the sub gateway, and sending the operation instruction to the target equipment from the sub gateway based on the target equipment IP.
Therefore, the construction of the Internet of things system based on the dynamic domain name service is completed. In the Internet of things system, any legal control terminal controls all terminal equipment in a preset range through the real-time IP of the host gateway, all data are stored in the host gateway, and the host gateway is used independently in the preset range, so that the interference of external factors such as cloud downtime, information leakage and the like is avoided, and the stability and the safety of the Internet of things system are improved.
According to the Internet of things system building method based on the dynamic domain name service, all terminal devices in a preset range can be accessed into the Internet of things system and controlled, a host gateway serving as a data storage center is deployed to replace a cloud end, the real-time IP of the host gateway is obtained by means of the dynamic domain name service, authority management is carried out based on the created root account number to obtain a legal control terminal, and finally the legal control terminal controls all terminal devices in the preset range through the real-time IP of the host gateway to complete building of the Internet of things system. The Internet of things system based on the dynamic domain name service stores all data in the host gateway, and the host gateway is used independently within a preset range, so that the interference of external factors such as cloud downtime and the like is avoided, and the stability and the safety of the Internet of things system are improved; meanwhile, the authority management is carried out on the control terminal through the root account number, and the safety of the Internet of things system is further improved.
For ease of understanding, the dynamic domain name service based internet of things system 100 provided by the embodiment of the present application is first described with reference to fig. 2.
Fig. 2 is a schematic diagram of an architecture of an internet of things system 100 based on dynamic domain name service. As shown in fig. 2, the internet of things system 100 based on the dynamic domain name service utilizes the dynamic domain name service to realize the control of the host gateway on the internet of things device by deploying the host gateway as a data storage center, thereby getting rid of the influence of the cloud on the internet of things system and improving the security and stability of the internet of things system. The internet of things system 100 based on the dynamic domain name service includes a host gateway 10, a device management module 20, a rights management module 30, a dynamic domain name server 40, and a control module 50.
The host gateway 10 at least comprises a data storage for storing all data information in the dynamic domain name service based internet of things system 100; assigning a fixed host domain name as a unique identifier to the host gateway 10; the IP of the host gateway 10 is a public IP, and a dynamic IP address is used to establish communication connection with the host gateway 10 through the real-time IP after the real-time IP of the host gateway 10 is acquired. It should be noted that the real-time IP of the host gateway 10 is randomly changed, and the real-time IP of the host gateway 10 may be the same or different at different times.
The device management module 20 is configured to access all terminal devices within a preset range to the host gateway 10. The preset range may be a family, or an enterprise or an organization, and the embodiment of the present application is not limited. At least one sub-gateway may be disposed between the host gateway 10 and the device management module 20. The terminal equipment comprises an Internet of things sub-equipment of a sub-gateway and/or at least one Internet of things equipment, wherein one sub-gateway comprises at least one Internet of things sub-equipment.
In some optional embodiments, for the internet of things subset of the sub-gateway, the sub-gateway is bound to the host domain name, that is, the internet of things subset of the sub-gateway can be accessed to the host gateway 10; for the internet of things device, the internet of things device is directly bound with the host domain name to access the host gateway 10.
For convenience of management and control of the internet of things devices within the preset range, the internet of things devices with the same attribute may be accessed into the same sub-gateway, for example, the internet of things devices within the same range are accessed into the same sub-gateway, or the internet of things devices with the same control logic are accessed into the same sub-gateway. Exemplarily, the preset range is set as a home, and each room is provided with one sub-gateway, so that all the smart home devices in one room are internet of things sub-devices of the sub-gateway corresponding to the room, and each sub-gateway is directly bound with the domain name of the host; in addition, an internet of things device is directly bound with the domain name of the host; then, the internet of things device and all the internet of things sub-devices under each sub-gateway constitute all the terminal devices in the home, and all the terminal devices are connected to the host gateway 10.
In some optional embodiments, the device management module 20 is further configured to assign a device ID to each terminal device accessing the host gateway 10, where the device ID is a unique identifier of the terminal device; allocating a device IP to each terminal device, where the device IP is used to establish communication connection between the terminal device and the host gateway 10, and different terminal devices correspond to different device IPs; the device ID and the device IP of the internet of things device are stored in the data memory of the host gateway 10, and the device ID and the device IP of the internet of things sub-device are stored in the sub-gateway of the internet of things sub-device. The device IP is an intranet IP, and may be a static IP that is not fixed or a dynamic IP that changes randomly, which is not limited in this embodiment of the present application.
In some optional embodiments, the internet of things device directly accesses the host gateway 10, and may establish a communication connection with the host gateway 10; although the internet of things sub-device of the sub-gateway cannot directly establish communication connection with the host gateway 10, the internet of things sub-device of the sub-gateway can establish communication connection with the sub-gateway through the IP of the sub-gateway, thereby realizing communication with the host gateway 10. The IP of the sub-gateway is an intranet IP, which may be a static IP that is not fixed, or a dynamic IP that changes randomly, and the embodiments of the present application are not limited.
Therefore, all the terminal devices within the preset range are accessed into the host gateway 10, the device ID and the device IP are allocated to each terminal device, the communication connection between the host gateway 10 and all the terminal devices is established, and the internet of things devices with different attributes can be managed more conveniently through the setting of the sub-gateways.
The authority management module 30 is configured to create a root account number of the host gateway 10, and acquire a legal control terminal based on the root account number, where the legal control terminal has an authority to access the host gateway 10, and the number of the legal control terminals is at least one.
In some optional embodiments, after the rights management module 30 creates the root account of the host gateway 10, binding root users of the root account, where the number of the root users is at least one; the root account number receives authentication information sent by a new control terminal, wherein the authentication information at least comprises identity information of the new control terminal; the root account number reminds the root user to execute authentication approval so as to obtain an authentication result of each root user, wherein the authentication result comprises legality and legality; and when the authentication result of at least one root user is legal, taking the new control terminal as a legal control terminal. The control terminal is a terminal device provided with a preset APP, and the new control terminal identity information is the registered user information of the preset APP, and is specifically referred to and is not repeated here.
In this way, the right management module 30 performs right management on the control terminal to obtain a legal control terminal, where the legal control terminal has a right to access the host gateway 10 and can control all terminal devices accessing the host gateway 10.
The dynamic domain name server 40 is configured to collect a real-time IP of the host gateway 10, and record a binding relationship between the real-time IP and a host domain name, where the host domain name is a unique identifier of the host gateway 10. Wherein the real-time IP of the host gateway 10 is dynamically changed, and the host domain name is fixed and unchangeable.
In some optional embodiments, the dynamic domain name server 40 continuously collects the real-time IP of the host gateway 10 for each timestamp, and records the binding relationship between the real-time IP and the host domain name, where the timestamp is the inverse of the preset collection frequency. Acquiring a real-time IP of the host gateway 10 corresponding to the current timestamp; judging whether the real-time IP of the current timestamp is the same as the real-time IP of the previous adjacent timestamp; if not, binding the real-time IP of the current timestamp with the host domain name to update the binding relationship.
In this way, by the binding relationship recorded in the dynamic domain name server 40, the real-time IP of the host gateway 10 at the current timestamp can be obtained by querying the binding relationship based on the host domain name.
The control module 50 is configured to obtain the real-time IP based on the binding relationship, and establish communication connections between all legal control terminals and the host gateway 10 based on the real-time IP, so as to transmit a control instruction of any legal control terminal.
The control instruction comprises a target device ID and an operation instruction, the target device ID is a device ID of the target device, the target device is all terminal devices corresponding to the control instruction, and the number of the target devices is at least one.
The operation instruction is used for controlling the target device to execute corresponding operation, and the operation instruction at least comprises at least one of a control instruction, a query instruction, a distribution network instruction and a parameter setting instruction. The control instruction is used for controlling the target device to move, the query instruction is used for querying the real-time state of the target device, the distribution network instruction is used for controlling the target device to be connected to or disconnected from the host gateway 10, and the parameter setting instruction is used for adjusting the parameters of the target device.
In some optional embodiments, the control module 50 obtains the real-time IP of the host gateway 10 by querying the binding relationship, and establishes communication connections between all legal control terminals and the host gateway 10 based on the real-time IP.
In some optional embodiments, after the communication connections between all legal control terminals and the host gateway 10 are established based on the real-time IP, the control module 50 is further configured to send a control instruction of a target legal control terminal to the host gateway 10, where the target legal control terminal is any one of all legal control terminals; after receiving the control instruction, the host gateway 10 acquires a target device IP corresponding to the target device ID, and sends the operation instruction to the target device based on the target device IP; the target device executes corresponding operation after receiving the operation instruction to obtain an execution result, wherein the execution result comprises execution success and execution failure; and feeding back the execution result to the target legal control terminal.
In some optional embodiments, the obtaining a target device IP corresponding to the target device ID and sending the operation instruction to the target device based on the target device IP includes:
when the target equipment corresponding to the target equipment ID is the Internet of things equipment, directly acquiring a target equipment IP corresponding to the target equipment ID, and sending the operation instruction to the target equipment based on the target equipment IP;
when the target device corresponding to the target device ID is an Internet of things sub-device, acquiring a sub-gateway corresponding to the target device, and sending the operation instruction to the sub-gateway based on the IP of the sub-gateway; and reading the target equipment IP corresponding to the target equipment IP from the sub gateway, and sending the operation instruction to the target equipment from the sub gateway based on the target equipment IP.
The internet of things system based on the dynamic domain name service stores all data in the host gateway 10, and the host gateway 10 is used independently in a preset range, so that the interference of external factors such as cloud downtime is avoided, and the stability and the safety of the internet of things system are improved; meanwhile, the authority management module 30 performs authority management on the control terminal, so that the safety of the internet of things system is further improved.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 1 comprises a memory 12 and a processor 13. The memory 12 is used for storing computer readable instructions, and the processor 13 is used for executing the computer readable instructions stored in the memory to implement the method for building an internet of things system based on a dynamic domain name service according to any one of the embodiments.
In an alternative embodiment, the electronic device 1 further comprises a bus, a computer program stored in the memory 12 and operable on the processor 13, such as an internet of things system building program based on dynamic domain name service.
Fig. 3 shows only the electronic device 1 with the memory 12 and the processor 13, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
In conjunction with fig. 1, the memory 12 in the electronic device 1 stores a plurality of computer readable instructions to implement a method for building an internet of things system based on dynamic domain name service, and the processor 13 can execute the plurality of instructions to implement:
deploying a host gateway and a dynamic domain name server, and accessing all terminal equipment in a preset range to the host gateway;
creating a root account number of the host gateway, and acquiring legal control terminals based on the root account number, wherein the legal control terminals have the authority of accessing the host gateway, and the number of the legal control terminals is at least one;
sending the real-time IP of the host gateway to the dynamic domain name server, and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server, wherein the host domain name is the only identifier of the host gateway;
and reading the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to build an Internet of things system.
Specifically, the specific implementation method of the instruction by the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again.
It will be understood by those skilled in the art that the schematic diagram is only an example of the electronic device 1, and does not constitute a limitation to the electronic device 1, the electronic device 1 may have a bus-type structure or a star-shaped structure, the electronic device 1 may further include more or less hardware or software than those shown in the figures, or different component arrangements, for example, the electronic device 1 may further include an input and output device, a network access device, etc.
It should be noted that the electronic device 1 is only an example, and other existing or future electronic products, such as those that may be adapted to the present application, should also be included in the scope of protection of the present application, and are included by reference.
The processor 13 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 13 is a Control Unit (Control Unit) of the electronic device 1, connects various components of the whole electronic device 1 by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules stored in the memory 12 (for example, executing an internet of things system building program based on a dynamic domain name service, etc.), and calling data stored in the memory 12.
The processor 13 executes an operating system of the electronic device 1 and various installed application programs. The processor 13 executes the application program to implement the steps in each embodiment of the internet of things system building method based on the dynamic domain name service, for example, the steps shown in fig. 1.
Illustratively, the computer program may be partitioned into one or more modules/units, which are stored in the memory 12 and executed by the processor 13 to accomplish the present application. The one or more modules/units may be a series of computer-readable instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the electronic device 1. For example, the computer program may be divided into the host gateway 10, the device management module 20, the rights management module 30, the dynamic domain name server 40, and the control module 50.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a Processor (Processor) to execute a part of the method for building an internet of things system based on dynamic domain name service according to various embodiments of the present application.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer-readable storage medium and executed by a processor, to implement the steps of the embodiments of the methods described above.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random-access Memory and other Memory, etc.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus. The bus is arranged to enable connection communication between the memory 12 and at least one processor 13 or the like.
An embodiment of the present application further provides a computer-readable storage medium (not shown), where a computer-readable instruction is stored in the computer-readable storage medium, and the computer-readable instruction is executed by a processor in an electronic device to implement the method for building an internet of things system based on a dynamic domain name service according to any embodiment of the present application.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means stated in the description may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present application and not for limiting, and although the present application is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application.
Claims (10)
1. A method for building an Internet of things system based on dynamic domain name service is characterized by comprising the following steps:
deploying a host gateway and a dynamic domain name server, and accessing all terminal equipment in a preset range to the host gateway;
the method comprises the steps of establishing a root account number of the host gateway, and acquiring legal control terminals based on the root account number, wherein the legal control terminals have the authority of accessing the host gateway, and the number of the legal control terminals is at least one;
sending the real-time IP of the host gateway to the dynamic domain name server, and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server, wherein the host domain name is the only identifier of the host gateway;
and reading the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to build an Internet of things system.
2. The method for building the internet of things system based on the dynamic domain name service according to claim 1, wherein the host gateway at least comprises a data storage, and the data storage is used for storing all data information in the internet of things system.
3. The method for building the internet of things system based on the dynamic domain name service according to claim 1, wherein the terminal device comprises an internet of things sub-device of a sub-gateway and/or at least one internet of things device;
the accessing all terminal devices within a preset range to the host gateway includes:
allocating a device ID to each terminal device, wherein the device ID is a unique identifier of the terminal device;
allocating a device IP for each terminal device, wherein the device IP is used for establishing communication connection between the terminal device and the host gateway, and different terminal devices correspond to different device IPs;
and storing the equipment ID and the equipment IP of the Internet of things equipment in a data memory of the host gateway, and storing the equipment ID and the equipment IP of the Internet of things sub-equipment in a sub-gateway of the Internet of things sub-equipment.
4. The method for building an internet of things system based on dynamic domain name service according to claim 3, wherein after the communication connections between all legal control terminals and the host gateway are built based on the real-time IP to build the internet of things system, the method further comprises:
sending a control instruction of a target legal control terminal to the host gateway, wherein the target legal control terminal is any one of all legal control terminals, the control instruction comprises a target equipment ID and an operation instruction, the target equipment ID is an equipment ID of target equipment, and the target equipment is all terminal equipment corresponding to the control instruction;
after receiving the control instruction, the host gateway acquires a target device IP corresponding to the target device ID and sends the operation instruction to a target device based on the target device IP;
the target device executes corresponding operation after receiving the operation instruction to obtain an execution result, wherein the execution result comprises execution success and execution failure;
and feeding back the execution result to the target legal control terminal.
5. The method for building an internet of things system based on dynamic domain name service according to claim 4, wherein the operation instruction at least comprises at least one of a control instruction, a query instruction, a distribution network instruction and a parameter setting instruction.
6. The method for building an internet of things system based on dynamic domain name service according to claim 1, wherein the creating a root account of the host gateway and acquiring a legal control terminal based on the root account comprises:
binding root users of the root account, wherein the number of the root users is at least one;
the root account number receives authentication information sent by a new control terminal, wherein the authentication information at least comprises identity information of the new control terminal;
the root account number reminds the root user to execute authentication approval so as to obtain an authentication result of each root user, wherein the authentication result comprises legality and legality;
and when the authentication result of at least one root user is legal, taking the new control terminal as a legal control terminal.
7. The method for building an internet of things system based on dynamic domain name service according to claim 1, wherein the real-time IP of the host gateway is dynamically changed, the sending the real-time IP of the host gateway to the dynamic domain name server and recording the binding relationship between the real-time IP and the host domain name in the dynamic domain name server comprises:
sending the real-time IP of the host gateway corresponding to the current timestamp to the dynamic domain name server;
judging whether the real-time IP of the current timestamp is the same as the real-time IP of the last adjacent timestamp;
if not, binding the real-time IP of the current timestamp with the host domain name so as to update the binding relationship in the dynamic domain name server.
8. The system for networking based on dynamic domain name service is characterized by comprising a host gateway, a dynamic domain name server, an equipment management module, a permission management module and a control module:
the device management module is used for accessing all terminal devices in a preset range to the host gateway, and the host gateway at least comprises a data memory;
the authority management module is used for creating a root account number of the host gateway and acquiring legal control terminals based on the root account number, the legal control terminals have authority for accessing the host gateway, and the number of the legal control terminals is at least one;
the dynamic domain name server is used for collecting a real-time IP of the host gateway and recording the binding relationship between the real-time IP and a host domain name, and the host domain name is the unique identifier of the host gateway;
and the control module is used for acquiring the real-time IP based on the binding relationship, and establishing communication connection between all legal control terminals and the host gateway based on the real-time IP so as to transmit the control instruction of any legal control terminal.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing the computer readable instructions stored in the memory to implement the method for building a dynamic domain name service based internet of things system according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein computer-readable instructions are stored on the computer-readable storage medium, and when executed by a processor, the computer-readable instructions implement the method for building a dynamic domain name service-based internet of things system according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211255116.0A CN115333863B (en) | 2022-10-13 | 2022-10-13 | Internet of things system building method based on dynamic domain name service and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211255116.0A CN115333863B (en) | 2022-10-13 | 2022-10-13 | Internet of things system building method based on dynamic domain name service and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115333863A true CN115333863A (en) | 2022-11-11 |
CN115333863B CN115333863B (en) | 2023-03-24 |
Family
ID=83913913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211255116.0A Active CN115333863B (en) | 2022-10-13 | 2022-10-13 | Internet of things system building method based on dynamic domain name service and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115333863B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116938691A (en) * | 2023-09-19 | 2023-10-24 | 钛玛科(北京)工业科技有限公司 | Host computer construction method and system in equipment system network |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101442566A (en) * | 2009-01-08 | 2009-05-27 | 中国电信股份有限公司 | Method and apparatus for implementing dynamic domain name update |
CN103763180A (en) * | 2014-01-15 | 2014-04-30 | 南京物联传感技术有限公司 | Real-time network communication system and method |
CN105657719A (en) * | 2014-12-02 | 2016-06-08 | 网件公司 | Sensor gateway |
CN110958262A (en) * | 2019-12-15 | 2020-04-03 | 国网山东省电力公司电力科学研究院 | Ubiquitous Internet of things safety protection gateway system, method and deployment architecture in power industry |
CN113885349A (en) * | 2021-11-04 | 2022-01-04 | 深圳海智创科技有限公司 | Local area network autonomous distributed intelligent home management method and system |
CN115086322A (en) * | 2022-06-15 | 2022-09-20 | 南京林业大学 | Intelligent visual home system based on cloud service |
-
2022
- 2022-10-13 CN CN202211255116.0A patent/CN115333863B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101442566A (en) * | 2009-01-08 | 2009-05-27 | 中国电信股份有限公司 | Method and apparatus for implementing dynamic domain name update |
CN103763180A (en) * | 2014-01-15 | 2014-04-30 | 南京物联传感技术有限公司 | Real-time network communication system and method |
CN105657719A (en) * | 2014-12-02 | 2016-06-08 | 网件公司 | Sensor gateway |
CN110958262A (en) * | 2019-12-15 | 2020-04-03 | 国网山东省电力公司电力科学研究院 | Ubiquitous Internet of things safety protection gateway system, method and deployment architecture in power industry |
CN113885349A (en) * | 2021-11-04 | 2022-01-04 | 深圳海智创科技有限公司 | Local area network autonomous distributed intelligent home management method and system |
CN115086322A (en) * | 2022-06-15 | 2022-09-20 | 南京林业大学 | Intelligent visual home system based on cloud service |
Non-Patent Citations (1)
Title |
---|
孙豆豆: "面向智能家居网关的安全动态域名解析系统设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116938691A (en) * | 2023-09-19 | 2023-10-24 | 钛玛科(北京)工业科技有限公司 | Host computer construction method and system in equipment system network |
CN116938691B (en) * | 2023-09-19 | 2023-12-26 | 钛玛科(北京)工业科技有限公司 | Host computer construction method and system in equipment system network |
Also Published As
Publication number | Publication date |
---|---|
CN115333863B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111934918B (en) | Network isolation method and device for container instances in same container cluster | |
CN110049048B (en) | Data access method, equipment and readable medium for government affair public service | |
CN108769186B (en) | Service authority control method and device | |
KR20010088528A (en) | A portable storage device and Method for using a remote storage device in the network as auxiliary memory of the local computer system by using the same device | |
CN111935110A (en) | Method and device for controlling permission of tenant to access container instance | |
CN115333863B (en) | Internet of things system building method based on dynamic domain name service and related equipment | |
CN115567251A (en) | Multi-service isolation method and system for micro-service cluster | |
CN101079903B (en) | Method and system based on remote login of user terminal | |
CN114374524A (en) | Access control method and device for object storage, storage medium and electronic device | |
CN113542033B (en) | Many-to-many mapping method and system for alliance chain foundation establishment and management platform | |
CN114238879A (en) | Data processing method and device | |
CN114245366A (en) | Unified cloud card issuing method, hybrid cloud card service system and system equipment | |
CN109995890B (en) | Method and server for managing Network Address Translation (NAT) gateway | |
CN113839949B (en) | Access right management and control system, method, chip and electronic equipment | |
CN106936643B (en) | Equipment linkage method and terminal equipment | |
CN111683164B (en) | IP address configuration method and VPN service system | |
CN115348643A (en) | Wi-Fi network access method and device and computer readable storage medium | |
CN112737827A (en) | Resource allocation method, device and system | |
CN111542001A (en) | Network system with distributed server clusters and construction method thereof | |
CN109492376A (en) | Control method, device and the fort machine of equipment access authority | |
CN115665167A (en) | Intelligent Internet of things system building method based on peer-to-peer network and related equipment | |
CN113691575B (en) | Communication method, device and system | |
CN111355693B (en) | Proxy service realization method, device, electronic equipment and storage medium | |
CN114500395B (en) | Flow control method, device and equipment | |
CN118283043A (en) | Resource delivery method and related equipment |
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 |