Adaptive access method and device of terminal equipment and monitoring equipment

Through an adaptive access method based on the extended address resolution protocol, the network terminal equipment is automatically searched and accessed, which solves the problems of complex manual configuration, high cost and high error risk in the prior art, realizes automatic access to network terminal equipment, and improves the convenience and security of engineering maintenance.

CN119854826APending Publication Date: 2025-04-18SHENZHEN KANGBIDA CONTROL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411972241.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When the prior art increases or decreases network terminal equipment during the operation of the monitoring system, it is necessary to manually configure the IP address and communication address of the network terminal equipment, resulting in complex engineering maintenance, high cost and high error risk.

Method used

Through an adaptive access method based on the extended address resolution protocol, the network terminal device is automatically searched and accessed, its network configuration information and point test templates are obtained, the point test templates are instantiated to generate engineering configuration examples, a communication channel is established, and network communication between the device access system and the network terminal device is performed.

Benefits of technology

It realizes automatic adaptive access to network terminal equipment, improves the convenience of engineering maintenance, and reduces labor costs and error risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854826A_ABST
    Figure CN119854826A_ABST
Patent Text Reader

Abstract

The invention provides a self-adaptive access method and device of terminal equipment and monitoring equipment. The method comprises the following steps: responding to network terminal equipment searched based on an extended address resolution protocol and receiving an access request for the network terminal equipment, and obtaining network configuration information and a measuring point template of the network terminal equipment; performing instantiation processing on the measuring point template to obtain an engineering configuration instance of the network terminal equipment; establishing a communication channel of the network terminal equipment in the equipment access system based on the network configuration information; and through the communication channel, based on the engineering configuration instance, executing network communication between the equipment access system and the network terminal equipment. According to the method and the device, the searched network terminal equipment can be automatically accessed to the equipment access system in a self-adaptive manner, so that the convenience of engineering maintenance is improved, and the labor cost and the error risk are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to an adaptive access method, device and monitoring equipment for a terminal device. Background Art

[0002] Monitoring systems in industries such as power monitoring and energy storage need to access many different network terminal devices for data collection and control. During the first deployment, the configuration of network terminal devices is usually completed by the manufacturer or customer service and deployed on site. However, during the operation of the monitoring system, there will be cases where network terminal devices are added. Usually, customer service is asked to manually add network terminal device modeling to the original project configuration and configure the Internet Protocol (IP) address and communication address of the corresponding network terminal device to meet the normal access of the device. Summary of the invention

[0003] The embodiments of the present application provide a method, device and monitoring device for adaptive access of terminal equipment, which can automatically and adaptively access the searched network terminal equipment to the equipment access system, thereby improving the convenience of engineering maintenance and reducing labor costs and error risks.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] An embodiment of the present application provides an adaptive access method for a terminal device, the method comprising: in response to searching for a network terminal device based on an extended address resolution protocol and receiving an access request for the network terminal device, obtaining network configuration information and a measurement point template of the network terminal device; instantiating the measurement point template to obtain an engineering configuration instance of the network terminal device; establishing a communication channel for the network terminal device in the device access system based on the network configuration information; and executing network communication between the device access system and the network terminal device based on the engineering configuration instance through the communication channel.

[0006] An embodiment of the present application provides an adaptive access device for a terminal device, comprising: an acquisition module, used to acquire network configuration information and a measurement point template of the network terminal device in response to searching for a network terminal device based on an extended address resolution protocol and receiving an access request for the network terminal device; an instantiation module, used to instantiate the measurement point template to obtain an engineering configuration instance of the network terminal device; a communication establishment module, used to establish a communication channel for the network terminal device in the device access system based on the network configuration information; and through the communication channel, based on the engineering configuration instance, execute network communication between the device access system and the network terminal device.

[0007] An embodiment of the present application provides a monitoring device, which includes: a memory for storing computer-executable instructions or computer programs; and a processor for executing the computer-executable instructions or computer programs stored in the memory to implement the adaptive access method of the terminal device provided in the embodiment of the present application.

[0008] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the adaptive access method for a terminal device provided in an embodiment of the present application when executed by a processor.

[0009] An embodiment of the present application provides a computer program product, including a computer program or a computer executable instruction. When the computer program or the computer executable instruction is executed by a processor, the adaptive access method of the terminal device provided in the embodiment of the present application is implemented.

[0010] The embodiments of the present application have the following beneficial effects:

[0011] Based on the extended address resolution protocol, the network terminal device is searched. When receiving the access request for the network terminal device, the network configuration information and the measurement point template of the network terminal device can be obtained. In this way, the network terminal device can be automatically searched using the extended address resolution protocol; then the measurement point template is instantiated to obtain the engineering configuration instance of the network terminal device; then according to the network configuration information, the communication channel of the network terminal device is established in the device access system; finally, through the communication channel, based on the engineering configuration instance, the network communication between the device access system and the network terminal device is executed. In this way, the searched network terminal device can be automatically and adaptively connected to the device access system, which improves the convenience of engineering maintenance and reduces labor costs and error risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a schematic diagram of the architecture of an adaptive access system for a terminal device provided in an embodiment of the present application;

[0013] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0014] Figure 3 This is an optional flowchart of the adaptive access method of a terminal device provided in an embodiment of the present application;

[0015] Figure 4 It is a schematic diagram of the implementation process of obtaining network configuration information and measurement point templates provided in an embodiment of the present application;

[0016] Figure 5 It is a schematic diagram of the extended address resolution protocol message format provided in an embodiment of the present application;

[0017] Figure 6 It is a schematic diagram of the implementation process of generating an engineering configuration example provided in an embodiment of the present application;

[0018] Figure 7 It is a schematic diagram of the implementation process of establishing a communication channel provided in an embodiment of the present application;

[0019] Figure 8 It is a schematic diagram of the implementation process of closing a communication channel provided in an embodiment of the present application;

[0020] Fig. 9 It is a schematic diagram of a process for a network terminal device to access a monitoring system provided by an embodiment of the present application;

[0021] Fig.10 It is a flowchart of closing an offline device channel of a monitoring system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0023] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0024] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0025] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0026] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0027] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the personal information subject.

[0028] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0029] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0030] 2) Human Machine Interface (HMI): It is the interface through which users interact with machines or systems. It allows users to input instructions, view information, monitor status and perform tasks, while also allowing the system to provide feedback and display status information to users. The design of the human machine interface aims to make the interaction process intuitive, efficient and easy to use, thereby improving user work efficiency and satisfaction.

[0031] 3) Instantiation: refers to the process of converting an abstract measurement point template into a specific engineering configuration instance.

[0032] During the operation of the monitoring system, there will be new network terminal devices or network terminal devices offline. Usually, the customer service will add network terminal device modeling to the original project configuration and configure the IP address and communication address of the corresponding network terminal device to ensure normal access of the device or not to take measures for the offline network terminal device. However, manual configuration engineering instances are complex, key information of network terminal devices (such as IP address, communication address) is prone to errors, and the maintenance cost of configuration engineering is increased.

[0033] Based on at least one of the above-mentioned problems existing in the related technology, an adaptive access method, device and monitoring device for terminal equipment are provided in the embodiments of the present application, which can automatically and adaptively access the searched network terminal equipment to the equipment access system, thereby improving the convenience of engineering maintenance and reducing labor costs and error risks.

[0034] See also Figure 1 , Figure 1 It is an architectural diagram of the adaptive access system for terminal devices provided in an embodiment of the present application. In order to realize an application that supports automatically and adaptively accessing searched network terminal devices to a device access system, the convenience of engineering maintenance is improved, and the labor cost and error risk are reduced. In the system 100, the terminal 400 is connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0035] The terminal 400 is used to send an access request for a network terminal device to the server 200. The server 200 is used to obtain network configuration information and a measurement point template of the network terminal device in response to searching for the network terminal device based on the extended address resolution protocol and receiving the access request for the network terminal device; instantiate the measurement point template to obtain an engineering configuration instance of the network terminal device; establish a communication channel for the network terminal device in the device access system based on the network configuration information; and perform network communication between the device access system and the network terminal device based on the engineering configuration instance through the communication channel.

[0036] In some embodiments, the server 200 is a system server of the device access system, which can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiments of the present application.

[0037] See also Figure 2 , Figure 2 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be implemented as a monitoring device. Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 540 and at least one network interface 520. The various components in the electronic device 500 are coupled together via a bus system 530. It is understood that the bus system 530 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 530 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 530 is not described in detail. Figure 2 Various buses are labeled as bus system 530 .

[0038] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0039] The memory 540 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 540 may optionally include one or more storage devices that are physically remote from the processor 510.

[0040] The memory 540 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 540 described in the embodiments of the present application is intended to include any suitable type of memory.

[0041] In some embodiments, memory 540 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0042] The operating system 541 includes system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic businesses and processing hardware-based tasks; a network communication module 542 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520. Exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.

[0043] In some embodiments, the adaptive access device of the terminal device provided in the embodiments of the present application can be implemented in a software manner. Figure 2 The adaptive access device 543 of the terminal device stored in the memory 540 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: an acquisition module 5431, an instantiation module 5432 and a communication establishment module 5433. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0044] In other embodiments, the adaptive access device of the terminal device provided in the embodiment of the present application can be implemented in hardware. As an example, the adaptive access device of the terminal device provided in the embodiment of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the adaptive access method of the terminal device provided in the embodiment of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other electronic components.

[0045] The following describes exemplary applications of the electronic device provided in the embodiments of the present application. The electronic device provided in the embodiments of the present application can be implemented as various types of terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals, and can also be implemented as servers.

[0046] Next, an exemplary application when the electronic device is implemented as a server will be described. Figure 3 , Figure 3 is an optional flow chart of the adaptive access method of the terminal device provided in the embodiment of the present application, which will be combined with Figure 3 Steps 101 to 104 are shown for explanation.

[0047] In step 101, in response to searching for a network terminal device based on an extended address resolution protocol and receiving an access request for the network terminal device, network configuration information and a measurement point template of the network terminal device are acquired.

[0048] In some embodiments, the adaptive access method for a terminal device provided in an embodiment of the present application may be applied to a device access system, and the device access system may be a monitoring system.

[0049] In some embodiments, see Figure 4 , Figure 4 is a schematic diagram of an implementation flow of obtaining network configuration information and a measurement point template provided in an embodiment of the present application, Figure 3 The illustrated step 101 may be implemented by following steps 1011 to 1014, which are described in detail below.

[0050] In step 1011, in response to searching for a network terminal device based on the extended address resolution protocol, device access prompt information is sent.

[0051] In some embodiments, an extended address resolution protocol can be obtained through the following technical solution, which is specifically described below: first, in response to a protocol customization operation, a preset address resolution protocol for a device access system is obtained; then, a custom extension field is added to the preset address resolution protocol to obtain an extended address resolution protocol; the extension field includes extended information for customizing a search for network terminal devices.

[0052] As an example, the Address Resolution Protocol (ARP) is a network protocol used to resolve IP addresses to physical addresses (such as Media Access Control (MAC)) within the same local area network. The Address Resolution Protocol can be a standard ARP protocol, which is used for resolving Internet Protocol Version 4 (IPv4) addresses to MAC addresses; ARP requests are sent by broadcasting to inquire about the MAC address corresponding to a certain IP address in the network. If the device that receives the ARP request has the IP address, the device responds with its own MAC address. Or it can be the Neighbor Discovery Protocol, a protocol used to replace ARP in Internet Protocol Version 6 (IPv6). The Neighbor Discovery Protocol not only provides the resolution function of IP addresses to MAC addresses, but also includes other functions, such as router discovery, address automatic configuration, redirection, etc.

[0053] In the implementation process, the preset address resolution protocol of the device access system can be obtained, and then the custom extension field can be added to the preset address resolution protocol according to the protocol customization operation to obtain the extended address resolution protocol. The extended field can be used to customize the search for the extended information of the network terminal device. The extended information can be IP address, port, device type, device model, software version, hardware model, serial number and communication address, etc.

[0054] For example, take the ARP protocol as an example, see Figure 5 , Figure 5 It is a schematic diagram of the extended address resolution protocol message format provided in an embodiment of the present application. Figure 5It is an extended address resolution protocol message format that adds an n-byte extended field on the basis of the standard ARP protocol. The extended ARP protocol is a protocol between the data link layer and the network layer. The complete data packet consists of an Ethernet frame header (including destination media access control, source media access control and frame type), an ARP custom frame (including hardware type, protocol type, address length and response request) and an extended field.

[0055] Through the above technical solution, a custom extension field can be added to the address resolution protocol, and extended information of the network terminal device can be obtained through the extension field, so that more information can be obtained to facilitate identification of the network terminal device.

[0056] In some embodiments, when a network terminal device is searched based on the extended address resolution protocol, the system server of the device access system sends a device access prompt message to the HMI of the device access system. For example, the device access system can use the extended address resolution protocol to implement the function of the ARP client. For example, the device access system can be a monitoring system. The ARP client can provide an address search function for the monitoring system and be installed and deployed in the monitoring system together with the monitoring software. The ARP client can support manual and timed automatic broadcasting of extended address resolution protocol messages to obtain device information returned by the ARP server. The network terminal device can use the extended address resolution protocol to implement the function of the ARP server, so that the network terminal device can support the query and modification of information such as IP address, port and communication address.

[0057] As an example, the device access system can use the ARP client to periodically send extended address resolution protocol messages, and the network terminal device implements the function of the ARP server according to the extended address resolution protocol. After receiving the extended address resolution protocol message, the network terminal device can parse the extended address resolution protocol message and perform corresponding processing. For example, the network terminal device can use the function of the ARP server to return information such as the IP address, port and communication address to the ARP client. If the network terminal device is a new device that has not been connected to the device access system (a new type of network terminal device or an extended device of the same type), the system server of the device access system can send device access prompt information to the HMI of the device access system, thereby displaying the prompt information through the human-machine interface to prompt the user whether to access the device.

[0058] In step 1012, in response to receiving a device access operation performed in response to the device access prompt information, network configuration information of the network terminal device is obtained.

[0059] In some embodiments, upon receiving a device access operation performed by a user in response to device access prompt information, the network configuration information of the network terminal device may be obtained. The network configuration information includes extended information. For example, when a user sees the prompt information in the human-machine interface, he or she may choose whether to access the device. When the user chooses to access the device, the device access system may receive the device access operation performed in response to the device access prompt information, and obtain the network configuration information of the network terminal device (for example, the extended information may be an IP address, port, device type, device model, software version, hardware model, serial number, and communication address, etc.).

[0060] In step 1013, the device type of the network terminal device is extracted from the network configuration information.

[0061] In some embodiments, the device type of the network terminal device is extracted from the extended information of the network configuration information. For example, the network terminal device may be a monitoring system of a power system, and the device type of the network terminal device may be a current type device, a high voltage type device, a low voltage type device, etc.

[0062] In step 1014, a measuring point template corresponding to the device type is obtained from a measuring point template library.

[0063] In some embodiments, a measuring point template library can be preset, and a measuring point template corresponding to the device type can be obtained from the measuring point template library according to the device type. For example, corresponding measuring point templates are preset for devices such as current type devices, high voltage type devices, and low voltage type devices to form a measuring point template library. If the device type is a current type device, a measuring point template corresponding to the current type device can be obtained from the measuring point template library. The measuring point template can be a preset, standardized configuration file or model used to define the configuration and properties of a measuring point (also called a sensor or monitoring point). The measuring point template includes: a measuring point identifier (each measuring point has a unique identifier, usually a string or number), a data type, a data unit, a sampling frequency (the frequency at which a specified measuring point collects data), an alarm rule (some measuring points may need to set an alarm rule, and when the data exceeds the preset range, the device access system will trigger an alarm) and location information (location information of the measuring point in the physical space), etc.

[0064] Through steps 1011 to 1014, the device access system can use the extended address resolution protocol to automatically identify new network terminal devices and obtain network configuration information of the new network terminal devices, thereby reducing the workload of manual configuration and improving configuration accuracy and efficiency.

[0065] In some embodiments, when a measurement point template corresponding to a device type is obtained from a measurement point template library, the following processing can also be performed: in response to not obtaining a measurement point template corresponding to the device type from the measurement point template library, an access error prompt message is sent; the access error prompt message is used to prompt that the network terminal device does not meet the device access conditions.

[0066] As an example, when a measurement point template corresponding to the device type is not obtained from the measurement point template library, an access error prompt message can be displayed through the human-machine interface, and the access error prompt message can be used to prompt that the network terminal device does not meet the device access conditions. For example, an access error prompt message of "no measurement point template found" can be displayed on the human-machine interface.

[0067] Through the above processing, when there is no measuring point template corresponding to the device type in the measuring point template library, a prompt can be given to the user, so that the user can perform subsequent processing according to the prompt information.

[0068] In some embodiments, in response to not obtaining a measurement point template corresponding to the device type from the measurement point template library, after sending an access error prompt message, the following processing can also be implemented: receiving a measurement point template update operation performed in response to the access error prompt message; obtaining an updated measurement point template in response to the measurement point template update operation; then, updating the updated measurement point template to the measurement point template library to obtain an updated measurement point template library; finally, obtaining a measurement point template corresponding to the device type from the updated measurement point template library.

[0069] As an example, after the measuring point template corresponding to the device type is not obtained from the measuring point template library, the system server of the device access system sends an access error prompt message to the HMI of the device access system, and then the measuring point template update operation performed by the user in response to the access error prompt message can be received. For example, there are measuring point templates corresponding to current type devices, high voltage type devices and low voltage type devices in the measuring point template library. If the device type of the network terminal device is a capacitive device, the measuring point template corresponding to the device type cannot be obtained from the measuring point template library, and the access error prompt message can be displayed on the human-machine interface. The user can update the measuring point template according to the access error prompt message. For example, the user can set a new measuring point template for the capacitive device. According to the update operation of the measuring point template, the updated measuring point template is obtained, and then the updated measuring point template is updated to the measuring point template library to obtain the updated measuring point template library. Finally, the measuring point template corresponding to the device type can be obtained from the updated measuring point template library. For example, the updated measurement point template corresponding to the capacitive device is obtained, and the updated measurement point template is added to the original measurement point template library to obtain an updated measurement point template library. At this time, the measurement point template of the network terminal device whose device type is a capacitive device can be obtained from the updated measurement point template library.

[0070] Through the above processing, when there is no measuring point template corresponding to the device type in the measuring point template library, a measuring point template corresponding to the device type can be added to the measuring point template library to update the measuring point template library, so that when the network terminal device is searched again, the measuring point template corresponding to the device type can be obtained from the updated measuring point template library.

[0071] Continue to see Figure 3 , continuing with step 101 above.

[0072] In step 102, the measuring point template is instantiated to obtain an engineering configuration instance of the network terminal device.

[0073] In some embodiments, see Figure 6 , Figure 6 is a schematic diagram of the implementation flow of generating an engineering configuration example provided in an embodiment of the present application, Figure 3 The illustrated step 102 may be implemented by following steps 1021 to 1023, which are described in detail below.

[0074] In some embodiments, the measurement point template includes a collection template and a background template. The collection template is a template configured to establish communication with a network terminal device and monitor the measurement point data of the network terminal device. The content of the collection template includes the definition of the measurement point, such as the identification of the measurement point, data type, data unit, sampling frequency, alarm rules and location information, etc.; the background template is copied based on the collection template, and the measurement points in the background template correspond to the measurement points in the collection template.

[0075] In step 1021, the measuring point template is parsed to obtain the first measuring point identifier of the acquisition measuring point in the acquisition template, the second measuring point identifier of the background measuring point in the background template, and the mapping relationship between the acquisition measuring point and the background measuring point.

[0076] In some embodiments, the acquired measuring point template is parsed to obtain the first measuring point identifier of the acquisition measuring point in the acquisition template, the second measuring point identifier of the background measuring point in the background template, and the mapping relationship between the acquisition measuring point and the background measuring point.

[0077] As an example, in an electric power monitoring system, a measuring point refers to a key parameter in the electric power system that needs to be monitored and recorded, such as voltage, current, frequency, power, etc. The measuring point template may contain detailed information on the key parameters and a measuring point identifier. For example, the measuring point in the measuring point template detects current data. In the acquisition template, the first measuring point identifier may be "#001 Transformer A Phase Current", indicating that the measuring point collects the current data of transformer A phase numbered 001. The background template is copied based on the acquisition template, and the measuring points in the background template correspond to the measuring points in the acquisition template. The second measuring point identifier is "Transformer A Phase Current", which may represent the field name in the background database used to store transformer A phase current data.

[0078] In step 1022, the first measuring point identifier and the second measuring point identifier are copied to the equipment measuring point table according to the mapping relationship.

[0079] In some embodiments, according to the mapping relationship between the acquisition measurement point and the background measurement point, the first measurement point identifier and the second measurement point identifier are synchronously copied to the device measurement point table. For example, in a power monitoring system, the device measurement point table can be a data structure for storing information of the measurement point identifier, which can be used to configure and identify specific parameters that need to be monitored on the network terminal device, see Table 1 for details.

[0080] Table 1 Equipment measurement points

[0081] Device ID First measuring point identification Second measuring point mark 001 #001 Transformer A phase current Transformer A phase current

[0082] In step 1023, an engineering configuration instance of the network terminal device is generated based on the first measuring point identifier and the second measuring point identifier in the device measuring point table.

[0083] In some embodiments, in the device measurement point table, the device ID is a unique identifier of the network terminal device, the first measurement point identifier is an identifier used by the acquisition template, and the second measurement point identifier is an identifier used by the background template. Using the information in the device measurement point table, an engineering configuration instance of the network terminal device is generated. The engineering configuration instance may include parameters that the network terminal device needs to monitor and related configuration information, such as: monitoring type, alarm threshold, sampling frequency, and communication settings (communication settings define the parameters for the network terminal device to communicate with the monitoring system, such as IP address, port, and communication protocol, etc.). The engineering configuration instance is detailed configuration information of the network terminal device. The network terminal device can correctly collect data according to the engineering configuration instance and send the collected data to the background of the monitoring system for real-time monitoring and fault analysis.

[0084] Through steps 1021 to 1023, the measurement point identifiers can be automatically copied to the device measurement point table, reducing the workload of manual configuration and the risk of configuration errors. The automatically generated engineering configuration instance ensures that the network terminal equipment can collect data and communicate with the device access system according to predetermined parameters and settings, thereby improving the stability and reliability of the device access system.

[0085] Continue to see Figure 3 , continuing with step 102 above.

[0086] In step 103, based on the network configuration information, a communication channel of the network terminal device is established in the device access system.

[0087] In some embodiments, see Figure 7 , Figure 7 is a schematic diagram of the implementation process of establishing a communication channel provided in an embodiment of the present application, Figure 3 The illustrated step 103 may be implemented by following the steps 1031 to 1032, which are described in detail below.

[0088] In step 1031, the configuration information of the communication channel for the device to access the system is updated using the network configuration information to obtain updated configuration information.

[0089] In some embodiments, the network configuration information can be added to the configuration information of the communication channel of the device access system to obtain the updated configuration information. For example, the device access system has connected to device A, and the configuration information of the communication channel of the device access system can be the configuration information of device A: IP address 192.168.1.50, port 502, using Modbus Transmission Control Protocol (Modbus TCP). The network terminal device is device B, and the network configuration information can be information such as the IP address and port of device B. For example, the IP address of device B is 192.168.1.60, the port is 503, and device B uses the same communication protocol as device A. Then, the updated configuration information can be: configuration information of device A: IP address 192.168.1.50, port 502, using Modbus TCP protocol; configuration information of device B: IP address 192.168.1.60, port 503, using Modbus TCP protocol.

[0090] In step 1032, a communication channel of the network terminal device is established based on the updated configuration information.

[0091] In some embodiments, the updated configuration information can also be used to initialize the network connection to establish a communication channel for the network terminal device. For example, the updated configuration information is: Configuration information of device A: IP address 192.168.1.50, port 502, using Modbus TCP protocol. Configuration information of device B: IP address 192.168.1.60, port 503, using Modbus TCP protocol. For device A (already connected to the system), since the configuration information of device A has not changed, the device access system may not need to reinitialize device A. For device B (new network terminal device), the device access system needs to create a new network connection. A new socket connection can be created in the network management module of the device access system. The device access system (as a client) will try to establish a TCP connection with the IP address (192.168.1.60) and port (503) of device B. Device B (as a server) will listen to the specified port and wait for a connection request from the device access system. When the device access system establishes a connection with device B, the two parties can exchange handshake information or perform other forms of verification. After the verification is passed, the communication channel of device B (i.e., the network terminal device) is established.

[0092] Through steps 1031 to 1032, the configuration information of the communication channel of the device access system can be automatically updated according to the network configuration information, and the communication channel of the network terminal device can be established, which reduces the workload of manual configuration, reduces the possibility of human error, and improves the efficiency of device access system configuration.

[0093] Continue to see Figure 3 , continue with step 103 above.

[0094] In step 104, network communication between the device access system and the network terminal device is performed through the communication channel based on the engineering configuration instance.

[0095] In some embodiments, after the communication channel of the network terminal device is established, the device access system can communicate with the network terminal device through the network based on the engineering configuration instance. For example, after the communication channel between the device access system and the network terminal device is established, the device access system can construct a corresponding request frame based on the engineering configuration instance (including the parameters and related configuration information that the network terminal device needs to monitor). The request frame usually contains the type of operation to be performed (such as reading, writing, executing functions, etc.), as well as the data address to be accessed. The device access system sends the request frame to the network terminal device through the network. After receiving the request, the network terminal device performs the corresponding operation (such as reading register values, writing values ​​to registers, etc.), and encapsulates the response result in a response frame and sends it back to the device access system. After receiving the response frame, the device access system will parse the data content and process and apply the data as needed.

[0096] The following example illustrates this. For example, assume that a monitoring system needs to read data from device A (sensor). The engineering configuration example is: Device A (sensor): Use template A, IP address 192.168.1.50, port 502. The device access system can send a Modbus TCP request to device A to read temperature data. The request frame example (hexadecimal representation): 01 0300 01 0001 (the Modbus address of device A is 1, read a register, and the starting address is 40001). Device A processes the request and returns temperature data. The response frame example (hexadecimal representation): 01 03 02 00 1A (the Modbus address of device A is 1, returns two bytes of data, assuming the temperature is 26). The device access system parses the response data and displays the temperature data on the human-machine interface of the monitoring system.

[0097] In some embodiments, see Figure 8 , Figure 8 is a schematic diagram of the implementation flow of closing the communication channel provided in the embodiment of the present application. Figure 3 In step 101, the communication channel of the offline network terminal device can also be closed, which will be explained below in conjunction with steps 201 to 202 shown in the figure.

[0098] In step 201, in response to the failure to receive network configuration information of an offline network terminal device based on an extended address resolution protocol, configuration information of a communication channel for the device to access a system is updated to obtain updated configuration information.

[0099] Here, the off-line network terminal device has a corresponding communication channel in the device access system.

[0100] In some embodiments, an extended address resolution protocol message can be sent to an offline network terminal device and a network terminal device, and the network terminal device will return the network configuration information. Due to network problems or its own failure, the offline network terminal device is in an offline state and cannot return the network configuration information. The offline network terminal device has a corresponding communication channel in the device access system (that is, it has been connected to the device access system), so it is necessary to update the configuration information of the communication channel of the device access system. For example, the original configuration information is: configuration information of device A: IP address 192.168.1.50, port 502, using Modbus TCP protocol. Configuration information of device B: IP address 192.168.1.60, port 503, using Modbus TCP protocol. If device B is in an offline state and has not received the network configuration information of device B, the configuration information of device B can be deleted from the original configuration information. The updated configuration information is: configuration information of device A: IP address 192.168.1.50, port 502, using Modbus TCP protocol.

[0101] In step 202, the communication channel of the offline network terminal device is closed based on the updated configuration information.

[0102] In some embodiments, the updated configuration information can be used to initialize the network connection to close the communication channel of the offline network terminal device. For example, the updated configuration information is: configuration information of device A: IP address 192.168.1.50, port 502, using Modbus TCP protocol. For device A (already connected to the system), since the configuration information of device A has not changed, the device access system may not need to reinitialize device A. For device B (offline network terminal device), the updated configuration information does not include the network configuration information of device B. After the network connection is initialized, it is impossible to establish a network connection between device B and the device access system, which is equivalent to closing the communication channel of device B.

[0103] Through step 201 to step 202, the communication channel of the offline or faulty network terminal device can be closed, the overhead of the channel thread can be reduced, and the operation efficiency of the system can be improved.

[0104] Through the embodiment of the present application, the network terminal device is searched based on the extended address resolution protocol. When receiving the access request for the network terminal device, the network configuration information and the measurement point template of the network terminal device can be obtained. In this way, the network terminal device can be automatically searched using the extended address resolution protocol; then the measurement point template is instantiated to obtain the engineering configuration instance of the network terminal device; then according to the network configuration information, a communication channel of the network terminal device is established in the device access system, and finally, through the communication channel, based on the engineering configuration instance, the network communication between the device access system and the network terminal device is executed. In this way, the searched network terminal device can be automatically and adaptively accessed to the device access system, which improves the convenience of engineering maintenance and reduces labor costs and error risks.

[0105] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0106] Monitoring systems in industries such as power monitoring and energy storage are often connected to various network terminal devices for data collection and control. During the operation of the monitoring system, network terminal devices may be added or reduced. The embodiments of the present application can automatically meet the needs of network terminal device access and disconnection.

[0107] See also Fig. 9 , Fig. 9 It is a flow chart of the network terminal device accessing the monitoring system provided in the embodiment of the present application.

[0108] In step 901, an address resolution protocol client (ARP client) broadcasts an extended address resolution protocol message at a fixed time.

[0109] The system server is the core of the monitoring system. The system server is responsible for processing data from various components, coordinating the interaction between various components, and providing user interfaces. The monitoring system (i.e., the device access system) includes three important parts: the ARP client, the automatic modeling service, and the front-end acquisition service. The monitoring system can be implemented with a monitoring application. The ARP client is the client of the monitoring application. The ARP client can be deployed on a terminal device and is responsible for displaying the discovered network terminal devices at the user level. The system server can be the background server of the monitoring application. The automatic modeling service and the front-end acquisition service are components of the system server. The automatic modeling service is usually used to process and analyze the collected data; the front-end acquisition service directly interacts with the network terminal device and is responsible for collecting data and sending it to the system server. Based on the collaborative work between the above components, the monitoring system can automatically discover the network terminal devices in the local area network and complete the access of the network terminal devices.

[0110] Users can customize an extended ARP protocol in advance. In addition to the information carried by the basic ARP protocol (i.e. the preset address resolution protocol) (destination MAC, source MAC, frame type, hardware type, protocol type, address length and response request), the extended ARP protocol adds some extended fields (such as: IP address, port, device type, device model, software version, hardware model, serial number and communication address, etc.). The monitoring system can implement the ARP client function based on the extended ARP protocol (the ARP client belongs to the address search function of the 10-inch screen monitoring system, which is installed and deployed with the monitoring software and iterated through upgrade management to update the program). The ARP client supports manual and scheduled automatic broadcast messages (i.e. extended address resolution protocol messages) to obtain the device information returned by the ARP server.

[0111] In step 902, the network terminal device (ARP server) returns the Internet protocol, port, and communication address to the ARP client.

[0112] The network terminal device implements the function of the ARP server based on the extended ARP protocol. The network terminal device supports querying and modifying information such as IP address, port, communication address, etc. After receiving the extended ARP protocol, the network terminal device will return information such as IP, port, communication address, etc. to the ARP client.

[0113] In step 903, the ARP client determines whether there is a newly added network terminal device.

[0114] The ARP client determines whether there is information returned by a network terminal device that is not connected to the monitoring system based on the returned IP, port, communication address and other information. If there is no new network terminal device, the process proceeds to step 904, ends, and enters the next round of broadcasting. If there is a new network terminal device, the process proceeds to step 905.

[0115] In step 905, the ARP client displays an option of whether to access the device.

[0116] When the ARP client searches and finds a new type of device or an expansion device of the same type, an option of whether to connect to the device will be displayed on the human-machine interface, prompting the user whether to connect to the device (ie, the network terminal device).

[0117] In step 906, the ARP client determines whether to access the network terminal device.

[0118] If the user chooses not to access the network terminal device, the process proceeds to step 907, ends, and enters the next round of broadcasting.

[0119] If the user chooses to access the network terminal device, the process proceeds to step 908 .

[0120] In step 908, the ARP client sends the device information to the automatic modeling service, notifying the automatic modeling service to automatically model.

[0121] The ARP client program will notify the automatic modeling service, which is the background program of the monitoring system. Its main purpose is to receive instructions from the HMI to the access device of the monitoring system, so as to complete the association relationship between the front-end and back-end measurement points of the device according to the instructions, and complete the configuration of channel-related parameters, so as to prepare for the pre-configuration work for communication with the access network terminal device.

[0122] In step 909, the automatic modeling service receives the device information and starts matching the template.

[0123] The automatic modeling service will first match whether a measurement point template of this type already exists from the measurement point template according to the device type in the received device information (the measurement point template is divided into two parts: one is the acquisition template, and the other is the background template. The acquisition template is a template configured to establish communication with the device and monitor the data of the device's measurement points; the background template is copied based on the acquisition template; and the measurement points of the acquisition template and the background template are associated).

[0124] In step 910, the automatic modeling service determines whether the template is matched successfully.

[0125] If the match is not successful, the process proceeds to step 911 to end the automatic modeling. If the match is successful, the process proceeds to step 912.

[0126] In step 912, the automatic modeling service starts to instantiate the template according to the information of the network terminal device and establishes a mapping relationship between primary and secondary measurement points.

[0127] The automatic modeling service will perform additional instantiations based on the measurement point template. For example, if there is an existing instance of device 1 (foreground and background measurement point engineering configuration), and now a new device 2 of the same type is connected, it is equivalent to using the measurement point template to instantiate another engineering configuration of device 2. The primary device refers to the background template configuration, and the secondary device refers to the acquisition template configuration. The mapping relationship between the measurement points of the primary and secondary devices is automatically associated in the measurement point template. When the automatic modeling service is instantiated, it first specifies the new channel to copy the front and background measurement points in the measurement point template to the instantiated front and background device measurement point table, and then establishes a mapping relationship in the instantiated front and background measurement point table based on the corresponding relationship between the measurement point labels of the front and background templates. If there is no preset measurement point template, it is equivalent to no instantiated data source. The automatic modeling service program will return an error message to the HMI, prompting: There is no device template and the device access conditions are not met.

[0128] In step 913, the automatic modeling service updates the channel communication configuration according to the Internet protocol, port, and communication address, and notifies the front-end collection service to reload the data.

[0129] After automatically completing the instantiation of the network terminal device, the automatic modeling service updates the configuration information of the communication channel according to the IP, port, and communication address of the network terminal device, and notifies the front-end acquisition service through a bus message.

[0130] In step 914, after receiving the automatic modeling service message, the front-end acquisition service reloads the modeling data and opens a new channel thread to establish communication with the network terminal device.

[0131] The front-end collection service is a program used to communicate with network terminal devices through protocols. The front-end collection service overloads modeling data, connects to the expanded network terminal devices based on the updated IP and port, and establishes communication for data monitoring.

[0132] In step 915, the front-end acquisition service sends a request data message via a network protocol.

[0133] The front-end acquisition service sends a request data message to the network terminal device (i.e., the network terminal device connected to the monitoring system) through a network protocol (such as ModbusTCP) for data acquisition, or performs measurement point control on the network terminal device through a network protocol (such as ModbusTCP).

[0134] In step 916, after receiving the request message, the network terminal device responds with the measurement point data.

[0135] After receiving the request message, the network terminal device parses the message, performs corresponding processing according to the content of the request, and returns the required measurement point data.

[0136] In step 917, the pre-collection service enters the next periodic collection.

[0137] After receiving the returned measurement point data, the front-end collection service can enter the next cycle of collection.

[0138] The embodiment of the present application can also automatically close the communication channel of the offline network terminal device, see Fig.10 , Fig.10 It is a flowchart of closing an offline device channel of a monitoring system provided in an embodiment of the present application.

[0139] In step 1001, an address resolution protocol client (ARP client) periodically broadcasts an extended address resolution protocol message.

[0140] You may refer to the implementation method of step 901, which will not be described again here.

[0141] In step 1002, the network terminal device (ARP server) returns the Internet protocol, port, and communication address to the ARP client.

[0142] Please refer to the implementation method of step 902, which will not be repeated here.

[0143] In step 1003, the ARP client determines whether an offline network terminal device appears.

[0144] After the ARP client program sends an ARP request, if no response is received from the network terminal device within a preset time period (the timeout period is configurable), it can be determined that the network terminal device is faulty or offline. The network terminal device requested by the ARP client will be displayed on the address search page of the HMI, including the device serial number, IP address, subnet mask, default gateway, and MAC address. The network terminal device can be determined to be faulty or offline based on the IP address that does not exist in the list. If there is no offline network terminal device, go to step 1004, end, and enter the next round of broadcasting. If there is an offline network terminal device, go to step 1005.

[0145] In step 1005, the ARP client notifies the automatic modeling service to close the offline device channel.

[0146] In step 1006 , the automatic modeling service searches for offline device channels according to the device list.

[0147] The automatic modeling service searches for an offline device channel according to the IP address of the offline device (ie, the offline network terminal device) that does not exist in the device list.

[0148] In step 1007, the automatic modeling service determines whether the search is successful.

[0149] If the search fails, the process proceeds to step 1008 to end the channel closing process. If the search succeeds, the process proceeds to step 1009.

[0150] In step 1009, the automatic modeling service closes the offline device channel and notifies the front-end acquisition service to reload the modeling data.

[0151] In step 1010, after receiving the automatic modeling service message, the front-end collection service reloads the modeling data, closes the offline channel thread, and other channels resume normal operation.

[0152] The ARP client notifies the automatic modeling service to close the offline device channel, and then the automatic modeling service notifies the front-end acquisition service through the bus message to reload the modeling data (reloading the channel configuration data can determine the specific channel to be closed, thereby releasing the thread resources of the closed channel).

[0153] In step 1011, the front-end acquisition service sends a request data message through a network protocol.

[0154] Referring to the implementation of step 915, the front-end acquisition service sends the request data message to other network terminal devices that are still connected to the monitoring system through the network protocol.

[0155] In step 1012, after receiving the request message, the network terminal device responds with the measurement point data.

[0156] After receiving the request message, other network terminal devices parse the message, perform corresponding processing according to the content of the request, and return the required measurement point data.

[0157] In step 1013, the pre-collection service enters the next periodic collection.

[0158] After receiving the returned measurement point data, the front-end collection service can enter the next cycle of collection.

[0159] Through the embodiments of the present application, the functional requirements of the monitoring system for freely expanding network terminal devices can be met, and the connected network terminal devices can be automatically discovered and modeling access can be completed, thereby improving the convenience of engineering maintenance and reducing labor costs and error risks; and when the network terminal device is offline, the communication channel of the offline device is automatically closed, reducing the overhead of the channel thread and improving the operating efficiency of the system.

[0160] The following further describes the exemplary structure of the adaptive access device 543 of the terminal device provided in the embodiment of the present application implemented as a software module. In some embodiments, for example Figure 2 As shown, the software modules stored in the adaptive access device 543 of the terminal device in the memory 540 may include:

[0161] The acquisition module 5431 is used to obtain the network configuration information and measurement point template of the network terminal device in response to searching for the network terminal device based on the extended address resolution protocol and receiving an access request for the network terminal device; the instantiation module 5432 is used to instantiate the measurement point template to obtain the engineering configuration instance of the network terminal device; the communication establishment module 5433 is used to establish a communication channel for the network terminal device in the device access system based on the network configuration information; through the communication channel, based on the engineering configuration instance, the network communication between the device access system and the network terminal device is executed.

[0162] In some embodiments, the communication establishment module 5433 is also used to use the network configuration information to update the configuration information of the communication channel of the device access system to obtain updated configuration information; based on the updated configuration information, establish the communication channel of the network terminal device.

[0163] In some embodiments, the acquisition module 5431 is also used to send device access prompt information in response to searching for a network terminal device based on the extended address resolution protocol; obtain network configuration information of the network terminal device in response to receiving a device access operation performed in response to the device access prompt information; extract the device type of the network terminal device from the network configuration information; and obtain a measurement point template corresponding to the device type from the measurement point template library.

[0164] In some embodiments, the acquisition module 5431 is further used to send an access error prompt message in response to failure to obtain a measurement point template corresponding to the device type from the measurement point template library; the access error prompt message is used to prompt the network terminal device that does not meet the device access conditions.

[0165] In some embodiments, the acquisition module 5431 is also used to receive a measurement point template update operation performed in response to an access error prompt message; in response to the measurement point template update operation, obtain an updated measurement point template; update the updated measurement point template to the measurement point template library to obtain an updated measurement point template library; and obtain a measurement point template corresponding to the device type from the updated measurement point template library.

[0166] In some embodiments, the instantiation module 5432, the measuring point template includes an acquisition template and a background template; it is also used to parse the measuring point template to obtain the first measuring point identifier of the acquisition measuring point in the acquisition template, the second measuring point identifier of the background measuring point in the background template, and the mapping relationship between the acquisition measuring point and the background measuring point; according to the mapping relationship, the first measuring point identifier and the second measuring point identifier are copied to the device measuring point table; based on the first measuring point identifier and the second measuring point identifier in the device measuring point table, an engineering configuration instance of the network terminal device is generated.

[0167] In some embodiments, the acquisition module 5431 is also used to respond to a protocol customization operation to obtain a preset address resolution protocol for a device to access the system; add a custom extension field to the preset address resolution protocol to obtain an extended address resolution protocol; the extension field includes extended information for customizing the search for network terminal devices.

[0168] In some embodiments, the device also includes: a communication closing module, which is used to update the configuration information of the communication channel of the device access system in response to the failure to receive network configuration information of the offline network terminal device based on the extended address resolution protocol, and obtain updated configuration information; the offline network terminal device has a corresponding communication channel in the device access system; based on the updated configuration information, the communication channel of the offline network terminal device is closed.

[0169] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the adaptive access method of the terminal device described in the embodiment of the present application.

[0170] The embodiment of the present application provides a computer-readable storage medium, in which computer executable instructions or computer programs are stored. When the computer executable instructions or computer programs are executed by a processor, the processor will be caused to execute the adaptive access method of the terminal device provided in the embodiment of the present application, for example, Figure 3 An adaptive access method for a terminal device is shown.

[0171] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0172] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0173] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0174] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0175] In summary, through the embodiments of the present application, a network terminal device is searched based on the extended address resolution protocol. When an access request for the network terminal device is received, the network configuration information and the measurement point template of the network terminal device can be obtained. In this way, the network terminal device can be automatically searched using the extended address resolution protocol; the measurement point template is then instantiated to obtain an engineering configuration instance of the network terminal device; then, based on the network configuration information, a communication channel for the network terminal device is established in the device access system; finally, through the communication channel, based on the engineering configuration instance, network communication between the device access system and the network terminal device is executed. In this way, the searched network terminal devices can be automatically and adaptively connected to the device access system, which improves the convenience of engineering maintenance, reduces labor costs and the risk of errors; a custom extended field can be added to the address resolution protocol, and the extended information of the network terminal device can be obtained by extending the field, so that more information can be obtained to facilitate the identification of the network terminal device; the device access system can use the extended address resolution protocol to automatically identify new network terminal devices and obtain the network configuration information of the new network terminal devices, which reduces the workload of manual configuration and improves the accuracy and efficiency of configuration; when there is no measuring point template corresponding to the device type in the measuring point template library, a prompt can be given to the user so that the user can perform subsequent processing according to the prompt information; when there is no measuring point template corresponding to the device type in the measuring point template library, a measuring point template corresponding to the device type can be added to the measuring point template library to update the measuring point template library, so that when the network terminal device is searched again, it can be obtained from the updated measuring point template library. Measuring point templates corresponding to the device type; the measuring point identifier can be automatically copied to the device measuring point table, reducing the workload of manual configuration and the risk of configuration errors. The automatically generated engineering configuration instance ensures that the network terminal device can collect data and communicate with the device access system according to the predetermined parameters and settings, improving the stability and reliability of the device access system; the configuration information of the communication channel of the device access system can be automatically updated according to the network configuration information, and the communication channel of the network terminal device can be established, reducing the workload of manual configuration, reducing the possibility of human error, and improving the efficiency of device access system configuration; it can meet the functional requirements of the monitoring system to freely expand the network terminal device, can automatically discover the connected network terminal device, and complete the modeling access, which improves the convenience of engineering maintenance, reduces labor costs and error risks, and automatically closes the communication channel of the offline device when the network terminal device is offline, reduces the overhead of the channel thread, and improves the operation efficiency of the system.

[0176] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. An adaptive access method for a terminal device, characterized in that: Applied to a device access system, the method comprises: In response to searching for a network terminal device based on the extended address resolution protocol and receiving an access request for the network terminal device, acquiring network configuration information and a measurement point template of the network terminal device; Instantiating the measuring point template to obtain an engineering configuration instance of the network terminal device; Based on the network configuration information, establishing a communication channel for the network terminal device in the device access system; Through the communication channel, based on the engineering configuration instance, network communication between the device access system and the network terminal device is performed.

2. The method according to claim 1, characterized in that The establishing a communication channel of the network terminal device in the device access system based on the network configuration information includes: Using the network configuration information to update the configuration information of the communication channel through which the device accesses the system, to obtain updated configuration information; A communication channel of the network terminal device is established based on the updated configuration information.

3. The method according to claim 1, characterized in that The step of obtaining network configuration information and a measurement point template of the network terminal device in response to searching for the network terminal device based on the extended address resolution protocol and receiving an access request for the network terminal device comprises: In response to searching for a network terminal device based on the extended address resolution protocol, sending device access prompt information; In response to receiving a device access operation performed in response to the device access prompt information, acquiring network configuration information of the network terminal device; Extracting the device type of the network terminal device from the network configuration information; A measuring point template corresponding to the device type is obtained from a measuring point template library.

4. The method according to claim 3, characterized in that The method further comprises: In response to failure to obtain a measurement point template corresponding to the device type from the measurement point template library, sending access error prompt information; the access error prompt information is used to prompt that the network terminal device does not meet the device access condition.

5. The method according to claim 4, characterized in that After sending access error prompt information in response to failure to obtain a measuring point template corresponding to the device type from the measuring point template library, the method further includes: receiving a measurement point template update operation executed in response to the access error prompt information; In response to the measuring point template update operation, obtaining an updated measuring point template; Updating the updated measuring point template into the measuring point template library to obtain an updated measuring point template library; A measuring point template corresponding to the device type is acquired from the updated measuring point template library.

6. The method according to claim 1, characterized in that The measuring point template includes a collection template and a background template; the instantiation processing of the measuring point template to obtain the engineering configuration instance of the network terminal device includes: Parsing the measuring point template to obtain a first measuring point identifier of a collection measuring point in the collection template, a second measuring point identifier of a background measuring point in the background template, and a mapping relationship between the collection measuring point and the background measuring point; According to the mapping relationship, copy the first measuring point identifier and the second measuring point identifier into a device measuring point table; An engineering configuration instance of the network terminal device is generated based on the first measuring point identifier and the second measuring point identifier in the device measuring point table.

7. The method according to claim 1, characterized in that The method further comprises: In response to the protocol customization operation, obtaining a preset address resolution protocol for the device to access the system; A custom extension field is added to the preset address resolution protocol to obtain the extended address resolution protocol; the extension field includes extended information for custom searching of network terminal devices.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to the failure to receive network configuration information of the offline network terminal device based on the extended address resolution protocol, updating the configuration information of the communication channel of the device access system to obtain updated configuration information; the offline network terminal device has a corresponding communication channel in the device access system; Based on the updated configuration information, the communication channel of the offline network terminal device is closed.

9. An adaptive access device for a terminal device, characterized in that: The device comprises: An acquisition module, configured to acquire network configuration information and a measurement point template of the network terminal device in response to searching for the network terminal device based on the extended address resolution protocol and receiving an access request for the network terminal device; An instantiation module, used to instantiate the measurement point template to obtain an engineering configuration instance of the network terminal device; A communication establishment module is used to establish a communication channel for the network terminal device in the device access system based on the network configuration information; through the communication channel, based on the engineering configuration instance, the network communication between the device access system and the network terminal device is performed.

10. A monitoring device, characterized in that: The monitoring device comprises: A memory for storing computer executable instructions or computer programs; A processor, used to implement the adaptive access method of the terminal device according to any one of claims 1 to 8 when executing the computer executable instructions or computer programs stored in the memory.