Construction scene terminal equipment ad hoc network system and method based on intelligent gateway
Through the self-organizing networking system and method based on smart gateways, the problems of complexity and high cost of terminal equipment networking in construction scenarios are solved, and the terminal equipment is quickly accessed and low-cost data acquisition is realized. It is suitable for construction scenarios of multi-terminal equipment. Simplifies the network structure and reduces the platform's computing power requirements.
Patent Information
- Application Number
- CN202410876940.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-11-22
AI Technical Summary
In construction scenarios, the number of terminal devices is large and scattered, and the traditional networking method is costly, complex deployment, and low efficiency. It is impossible to achieve low-cost data collection. It also puts high requirements on the computing power of the platform layer, and cannot meet the networking of the construction scenario. need.
Adopting an ad hoc networking system and method based on smart gateways, the feature identification code is generated through the configuration unit, the authentication unit performs terminal equipment authentication, and the device passed through the authentication is connected to the Internet of Things management platform through the device access unit, simplifying the network Structure, reduce deployment difficulty, and realize fast network access to terminal equipment and low-cost information collection.
It realizes rapid access to the network of terminal equipment, reduces platform computing power demand, simplifies networking methods, and reduces data acquisition costs. It is suitable for construction scenarios with wide dispersed, large numbers and complex types of terminal equipment, and realizes automatic access to the network and personalized storage. Space configuration avoids waste of storage space.
Smart Images

Figure CN119012229A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent construction, and specifically relates to a construction scene terminal device self-organizing network system and method based on a smart gateway. Background Art
[0002] With the integration of IoT technology and intelligent construction, more and more sensors, mechanical equipment and other terminal devices need to be connected to the network. However, in construction scenarios, there are many terminal devices, which are scattered. The traditional networking method is costly, complex to deploy, and inefficient, and it is impossible to achieve low-cost data collection.
[0003] At present, the commonly used networking methods can be divided into wired networking, wireless networking and hybrid networking. The network structure mainly includes several access levels such as terminal nodes, aggregation nodes and core nodes. Terminal devices usually need to connect dedicated data collection equipment to the terminal node, and then pass through the aggregation node and core node to reach the platform. The entire networking structure is complex, and any error in any node may cause information collection failure. In addition, the access of many devices will bring huge pressure to the platform layer, and put forward high requirements on the computing power of the platform layer, which is not suitable for the networking needs in the construction scenario. Summary of the invention
[0004] In order to achieve rapid network access of terminal devices and low-cost information collection, simplify the network structure, and reduce the operational difficulty of network deployment, the present invention proposes a construction scenario terminal device self-organizing network system and method based on a smart gateway.
[0005] A construction scene terminal device self-organizing network system based on a smart gateway to achieve one of the purposes of the present invention includes:
[0006] Configuration unit: used to generate feature identification code;
[0007] Authentication unit: used to authenticate the terminal device to be connected to the current node according to the characteristic identification code;
[0008] Device access unit: used to connect the authenticated terminal device to the IoT management platform.
[0009] In the above-mentioned self-organizing network system, the configuration unit, authentication unit and device access unit can be arranged in the same hardware device, such as being integrated into a smart gateway to improve the functional integration of the device and reduce the difficulty of networking; they can also be dispersedly arranged in different hardware devices to facilitate maintenance of the equipment.
[0010] Furthermore, the method by which the authentication unit authenticates the connected terminal device includes:
[0011] Parse multiple feature values from the feature identification code; match the multiple feature values parsed with each feature value corresponding to the terminal device to be connected to the current node one by one. If they are inconsistent, the terminal device fails in authentication and is not allowed to access the current node.
[0012] Further, the feature identification code includes a plurality of feature values related to the terminal device, and the plurality of feature values include: terminal type, terminal connection interface type, and data protocol format;
[0013] The terminal type is used to identify the type of terminal device that the current node can access;
[0014] The terminal connection interface type is used to identify the interface type that the current node can support;
[0015] The data protocol format is used to identify the data protocol format that the current node can support.
[0016] Furthermore, when the terminal type of the terminal device to be accessed is inconsistent with the terminal type in the characteristic identification code, this terminal device is not allowed to access the current node; when the terminal connection interface type of the terminal device to be accessed is inconsistent with the terminal connection interface type in the characteristic identification code, this terminal device is not allowed to access the current node; when the data protocol format supported by the terminal device to be accessed is inconsistent with the data protocol format in the characteristic identification code, this terminal device is not allowed to access the current node.
[0017] Furthermore, the characteristic identification code also includes the number of connectable terminals and / or the number of connected terminals. The number of connectable terminals is used to identify the maximum number of terminal devices that the current node can connect to; the number of connected terminals is used to identify the number of terminal devices that the current node is connected to.
[0018] Furthermore, it also includes a resource allocation unit, which is used to allocate storage space to the connected terminal device according to the number of connectable terminals or the number of connected terminals in the feature identification code.
[0019] Furthermore, one of the solutions for allocating storage space to the connected terminal devices is: when the terminal device is connected to the current node for the first time, the number of connected terminals in the characteristic identification code is updated; after the characteristic identification code changes, it will be actively sent to the Internet of Things management platform; after the Internet of Things management platform receives the updated characteristic identification code, it allocates storage space to the newly connected terminal device according to the number of connected terminals in the characteristic identification code; the second solution for allocating storage space to the connected terminal device is: after the current node is connected to the Internet of Things management platform for the first time, the Internet of Things management platform allocates storage space to the terminal device according to the number of connectable terminals in the received characteristic identification code. The technical effect of the first solution is: the storage space can be allocated according to the actual connected terminal devices, avoiding the waste of storage space; the technical effect of the second solution is: the operation is simple and the available storage space of each terminal device is guaranteed.
[0020] A method for implementing the second objective of the present invention of building scene terminal equipment self-organizing network based on a smart gateway includes:
[0021] Generate a characteristic identification code; authenticate the terminal device to be connected to the current node according to the characteristic identification code; connect the terminal device that has passed the authentication to the Internet of Things management platform.
[0022] In the above self-organizing network method, the characteristic identification code may be generated on the device of the current node, or the characteristic identification code may be directly configured on other human-machine interface devices connected to the current node and then sent to the device of the current node.
[0023] Furthermore, the method for authenticating the accessed terminal device includes:
[0024] Parse multiple feature values from the feature identification code; match the parsed multiple feature values with each feature value corresponding to the terminal device to be connected to the current node one by one. If all match, the terminal device is authenticated successfully. As long as there is a mismatch in the feature value, the terminal device fails to authenticate and is not allowed to access the current node.
[0025] Further, the feature identification code includes a plurality of feature values related to the terminal device, and the plurality of feature values include: terminal type, terminal connection interface type, and data protocol format;
[0026] The terminal type is used to identify the type of terminal device that the current node can access; terminal types include: sensor, device, control system. The terminal connection interface type is used to identify the interface type that the current node can support; interface types include AI, DI, RS485, RJ45. The data protocol format is used to identify the data protocol format that the current node can support, data protocol formats include: MQTT, ModBus protocol, TCP protocol.
[0027] Furthermore, the characteristic identification code also includes the number of connectable terminals and / or the number of connected terminals. The number of connectable terminals is used to identify the maximum number of terminal devices that the current node can connect to; the number of connected terminals is used to identify the number of terminal devices that the current node is connected to.
[0028] Furthermore, the Internet of Things management platform allocates storage space to the connected terminal devices according to the number of connectable terminals or the number of connected terminals in the characteristic identification code.
[0029] Furthermore, the size of the characteristic identification code is 2 bytes, and one of the composition methods is: 2 bits are used to indicate the terminal type, 2 bits are used to indicate the terminal connection interface type; 2 bits are used to indicate the data protocol format; 4 bits are used to indicate the number of connectable terminals; the second composition method is: 2 bits are used to indicate the terminal type, 2 bits are used to indicate the terminal connection interface type; 2 bits are used to indicate the data protocol format; 4 bits are used to indicate the number of connectable terminals; 4 bits are used to indicate the number of connected terminals.
[0030] The beneficial effects of the present invention include:
[0031] 1) It can realize the rapid access of terminal devices to the network. Once the device is connected to the smart gateway, the data can be transmitted to the IoT management platform, and the IoT management platform does not need to process the data, which greatly reduces the computing power requirements of the platform;
[0032] 2) The networking method is simple, with only one access node, the smart gateway, which directly transmits data to the IoT management platform. It is suitable for construction scenarios where terminal devices are widely dispersed, large in number, and complex in type;
[0033] 3) Low data collection cost. A single gateway can complete the functions of terminal device access, data processing and platform data transmission, greatly reducing the cost of complex networking and collection modules;
[0034] 4) Automatic network access of terminal devices is realized. The IoT management platform can automatically identify the type of connected terminal based on the smart gateway and configure the smart gateway according to on-site needs. It is especially suitable for typical application scenarios such as smart beam yards. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a schematic diagram of the connection relationship between the various units of the smart gateway. DETAILED DESCRIPTION
[0036] The following specific implementations are used to explain the technical solutions of the claims of the present invention so that those skilled in the art can understand the claims. The protection scope of the present invention is not limited to the following specific implementation structures. The technical solutions of the claims of the present invention made by those skilled in the art but different from the following specific implementations are also within the protection scope of the present invention.
[0037] Example 1
[0038] A method for self-organizing a terminal device in a construction scene based on a smart gateway, comprising:
[0039] Configure the smart gateway feature identification code, connect the smart gateway to the IoT management platform wirelessly, and the IoT management platform manages devices and allocates resources based on the feature identification code. The terminal device selects an access point based on the matching degree between the smart gateway feature identification code and its own device type, and the terminal device automatically joins the network.
[0040] The composition of the smart gateway characteristic identification code includes the terminal connection type, data protocol format, and the number of terminal connections, which are specifically shown in Table 1 below. It is generated autonomously by the smart gateway and sent to the Internet of Things management platform for storage after the smart gateway is connected to the Internet of Things management platform.
[0041] Table 1
[0042]
[0043] The smart gateway characteristic identification code is in the MQTT protocol format and is sent to the IoT management platform as a message payload only when the smart gateway connects to the IoT platform for the first time or after disconnection and reconnection.
[0044] like Figure 1 As shown, the smart gateway includes a terminal device access unit, a data analysis and processing unit, a communication network access unit, and a power supply unit; wherein the terminal device access unit is used to connect the terminal device and collect data; the data analysis and processing unit is used to perform edge processing and standardized packaging of the terminal data; the communication network access unit is used to establish a connection with the Internet of Things management platform and send packaged data; the power supply unit is used to supply power to each unit of the entire gateway.
[0045] The above method also includes a configuration module, which includes a hardware host, a configuration interface for interacting with the user, and an underlying data interface for interacting with the smart gateway; the configuration module is used to automatically generate a smart gateway feature identification code after completing parameter configuration when the smart gateway is used for the first time, and store it in the smart gateway register. The smart gateway will automatically read the value of the register each time it is started. The parameter configuration mainly includes the terminal connection type, data protocol format, and the number of terminal connections.
[0046] In the above method, the configuration module and the smart gateway are connected via wired or wireless means. When the smart gateway is started, it will automatically enter the configuration state for 10 seconds. During this period, if the smart gateway does not receive the configuration instruction sent by the configuration module, it will automatically jump to the next work task; if the configuration instruction sent by the configuration module is received within 10 seconds, it will enter the configuration state until the configuration is completed.
[0047] In the above method, the method for the IoT management platform to perform device management and resource allocation includes:
[0048] According to the terminal type of the smart gateway characteristic identification code, the storage space N occupied by each terminal is allocated, and then according to the number of terminal connections m of the smart gateway characteristic identification code, the total storage space occupied by the smart gateway is allocated to m×N+1. This method realizes the personalized storage configuration of each terminal data, which can effectively reduce the waste of storage space and increase the data access volume of a single IoT management platform.
[0049] In the above method, the method in which the terminal device selects an access point based on the matching degree between the characteristic identification code of the smart gateway and its own device type includes:
[0050] According to the characteristic identification code of the smart gateway, the following information is parsed: terminal device type, data interface type and data protocol format, and it is determined whether the information is consistent with the terminal device to be accessed. If all match, the access of the terminal device can be completed. If not, the smart gateway will reject the access of the terminal device.
[0051] In the above method, after the terminal device is connected to the smart gateway, the smart gateway completes the data analysis of the terminal device according to the data protocol format in the characteristic identification code, and transmits the final analysis result to the storage location corresponding to the Internet of Things management platform to complete the automatic access of the terminal device to the network.
[0052] Example 2
[0053] A construction scene terminal device self-organizing network system based on a smart gateway, comprising:
[0054] Configuration unit: used to generate feature identification code;
[0055] Authentication unit: used to authenticate the terminal device to be connected to the current node according to the characteristic identification code;
[0056] Device access unit: used to connect the authenticated terminal device to the IoT management platform.
[0057] In the above-mentioned self-organizing network system, the configuration unit, authentication unit and device access unit can be arranged in the same hardware device, such as all arranged in a smart gateway to improve the integration of the device and simplify the network structure; they can also be dispersed and arranged in different hardware devices.
[0058] In some embodiments, the method for the authentication unit to authenticate an accessed terminal device includes:
[0059] Parse multiple feature values from the feature identification code; match the multiple feature values parsed with each feature value corresponding to the terminal device to be connected to the current node one by one. If all match, the authentication is passed. If there is one inconsistency, the authentication of the terminal device fails and the terminal device is not allowed to access the current node.
[0060] In some embodiments, the feature identification code includes a plurality of feature values associated with the terminal device, the plurality of feature values including: terminal type, terminal connection interface type, data protocol format;
[0061] The terminal type is used to identify the type of terminal device that the current node can access;
[0062] The terminal connection interface type is used to identify the interface type that the current node can support;
[0063] The data protocol format is used to identify the data protocol format that the current node can support.
[0064] In some embodiments, when the terminal type of the terminal device to be accessed is inconsistent with the terminal type in the feature identification code, the terminal device is not allowed to access the current node; when the terminal connection interface type of the terminal device to be accessed is inconsistent with the terminal connection interface type in the feature identification code, the terminal device is not allowed to access the current node; when the data protocol format supported by the terminal device to be accessed is inconsistent with the data protocol format in the feature identification code, the terminal device is not allowed to access the current node.
[0065] In some embodiments, the characteristic identification code also includes the number of connectable terminals and / or the number of connected terminals. The number of connectable terminals is used to identify the maximum number of terminal devices that the current node can connect to; the number of connected terminals is used to identify the number of terminal devices connected to the current node.
[0066] In some embodiments, a resource allocation unit is further included, which is used to allocate storage space to the connected terminal device according to the number of connectable terminals or the number of connected terminals in the feature identification code.
[0067] In some embodiments, one of the schemes for allocating storage space to the connected terminal devices is: when the terminal device is connected to the current node for the first time, the number of connected terminals in the feature identification code is updated; after the feature identification code changes, it will be actively sent to the Internet of Things management platform; after the Internet of Things management platform receives the updated feature identification code, it allocates storage space to the newly connected terminal device according to the number of connected terminals in the feature identification code; the second scheme for allocating storage space to the connected terminal device is: after the current node is connected to the Internet of Things management platform for the first time, the Internet of Things management platform allocates storage space to the terminal device according to the number of connectable terminals in the received feature identification code. The technical effect of the first scheme is: the storage space can be allocated according to the actual connected terminal devices, avoiding the waste of storage space; the technical effect of the second scheme is: the operation is simple, and the available storage space of each terminal device is guaranteed.
[0068] Example 3
[0069] A method for self-organizing a terminal device in a construction scene based on a smart gateway, comprising:
[0070] Generate a characteristic identification code; authenticate the terminal device to be connected to the current node according to the characteristic identification code; connect the terminal device that has passed the authentication to the Internet of Things management platform.
[0071] In the above self-organizing network method, the characteristic identification code may be generated on the device of the current node, or the characteristic identification code may be directly configured on other human-machine interface devices connected to the current node and then sent to the current node.
[0072] In some embodiments, a method for authenticating an accessed terminal device includes:
[0073] Parse multiple feature values from the feature identification code; match the multiple feature values parsed with each feature value corresponding to the terminal device to be connected to the current node one by one. If they are inconsistent, the terminal device fails in authentication and is not allowed to access the current node.
[0074] In some embodiments, the feature identification code includes a plurality of feature values associated with the terminal device, the plurality of feature values including: terminal type, terminal connection interface type, data protocol format;
[0075] The terminal type is used to identify the type of terminal device that the current node can access; terminal types include: sensors, equipment, and control systems.
[0076] The terminal connection interface type is used to identify the interface type that the current node can support; interface types include AI, DI, RS485, and RJ45.
[0077] The data protocol format is used to identify the data protocol format that the current node can support, and the data protocol format is, for example, MQTT, ModBus protocol, and TCP protocol.
[0078] In some embodiments, the characteristic identification code also includes the number of connectable terminals and / or the number of connected terminals. The number of connectable terminals is used to identify the maximum number of terminal devices that the current node can connect to; the number of connected terminals is used to identify the number of terminal devices connected to the current node.
[0079] In some embodiments, the Internet of Things management platform allocates storage space to the connected terminal devices according to the number of connectable terminals or the number of connected terminals in the feature identification code.
[0080] In some embodiments, the size of the feature identification code is 2 bytes, and one of the composition methods is: 2 bits are used to indicate the terminal type, 2 bits are used to indicate the terminal connection interface type; 2 bits are used to indicate the data protocol format; 4 bits are used to indicate the number of connectable terminals; the second composition method is: 2 bits are used to indicate the terminal type, 2 bits are used to indicate the terminal connection interface type; 2 bits are used to indicate the data protocol format; 4 bits are used to indicate the number of connectable terminals; 4 bits are used to indicate the number of connected terminals.
[0081] Example 4
[0082] A computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the various steps of the method of the present invention are implemented, which will not be described in detail herein.
[0083] The computer-readable storage medium may be the data transmission device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smartmedia card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc., provided on the computer device.
[0084] Furthermore, the computer-readable storage medium may include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data to be output or has been output.
[0085] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0086] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0087] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0089] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
Claims
1. A self-organizing network system for construction scene terminal devices based on smart gateway, It is characterized in that include: Configuration unit: used to generate feature identification code; Authentication unit: used to authenticate the terminal device to be connected to the current node according to the characteristic identification code; Device access unit: used to connect the authenticated terminal device to the IoT management platform.
2. The construction scene terminal device self-organizing network system based on the smart gateway as claimed in claim 1, It is characterized in that The method for the authentication unit to authenticate the connected terminal device includes: A plurality of characteristic values are parsed out from the characteristic identification code; the parsed plurality of characteristic values are matched one by one with each characteristic value corresponding to the terminal device to be connected to the current node, and if they are inconsistent, the authentication of the terminal device fails.
3. The construction scene terminal device self-organizing network system based on the smart gateway as claimed in claim 1 or 2, It is characterized in that The feature identification code includes a plurality of feature values related to the terminal device, and the plurality of feature values include: terminal type, terminal connection interface type, and data protocol format; The terminal type is used to identify the type of terminal device that the current node can access; The terminal connection interface type is used to identify the interface type that the current node can support; The data protocol format is used to identify the data protocol format that the current node can support.
4. The construction scene terminal device self-organizing network system based on the smart gateway as claimed in claim 3, It is characterized in that The characteristic identification code also includes the number of connectable terminals and / or the number of connected terminals. The number of connectable terminals is used to identify the maximum number of terminal devices that the current node can connect to; the number of connected terminals is used to identify the number of terminal devices that the current node is connected to.
5. The construction scene terminal device self-organizing network system based on the smart gateway as claimed in claim 4, It is characterized in that It also includes a resource allocation unit, which is used to allocate storage space to the connected terminal device according to the number of connectable terminals or the number of connected terminals in the feature identification code.
6. A method for self-organizing networking of construction scene terminal devices based on smart gateway, It is characterized in that include: Generate a feature identification code; Authenticate the terminal device to be connected to the current node according to the characteristic identification code; Connect the authenticated terminal device to the IoT management platform.
7. The method for self-organizing a construction scene terminal device based on a smart gateway as claimed in claim 6, It is characterized in that The method for authenticating the accessed terminal device includes: A plurality of characteristic values are parsed out from the characteristic identification code; the parsed plurality of characteristic values are matched one by one with each characteristic value corresponding to the terminal device to be connected to the current node, and if they are inconsistent, the authentication of the terminal device fails.
8. The method for self-organizing a construction scene terminal device based on a smart gateway as claimed in claim 6, It is characterized in that The feature identification code includes a plurality of feature values related to the terminal device, and the plurality of feature values include: terminal type, terminal connection interface type, and data protocol format; The terminal type is used to identify the type of terminal device that the current node can access; The terminal connection interface type is used to identify the interface type that the current node can support; The data protocol format is used to identify the data protocol format that the current node can support.
9. The method for self-organizing a construction scene terminal device based on a smart gateway as claimed in claim 6, It is characterized in that The characteristic identification code also includes the number of connectable terminals and / or the number of connected terminals. The number of connectable terminals is used to identify the maximum number of terminal devices that can be connected to the current node; the number of connected terminals is used to identify the number of terminal devices connected to the current node. The Internet of Things management platform allocates storage space to the connected terminal devices according to the number of connectable terminals or the number of connected terminals in the characteristic identification code.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by the processor, the steps of the method for self-organizing networking of construction scene terminal devices based on the smart gateway as described in any one of claims 6 to 9 are implemented.
