Internet-of-things system of heterogeneous equipment

By designing the IoT device of the IoT system in the power system and using device models and adapters to achieve unified data formats, the problem of poor interoperability of heterogeneous devices is solved, and the integration efficiency and operation consistency of the power system are improved.

CN119276951AActive Publication Date: 2025-01-07CHINA SOUTHERN POWER GRID COMPANY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411315720.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-07
Estimated Expiration
2044-09-20

AI Technical Summary

Technical Problem

In traditional power systems, the communication protocol and data format of heterogeneous devices lack unified standards, resulting in poor interoperability and compatibility, making it difficult to achieve direct interoperability between different devices.

Method used

Design an IoT system of heterogeneous devices, realize interoperability between the power equipment and the power processing system through the device model, the first adapter and the second adapter in the IoT device, and configure the equipment information using the device model. An adapter receives calls from the power processing system and performs operations, and the second adapter parses and converts data packets to achieve unified data formats.

Benefits of technology

It realizes compatibility and interoperability of heterogeneous power equipment, improves the system's integration efficiency and operation consistency, and solves the interoperability and compatibility problems between different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276951A_ABST
    Figure CN119276951A_ABST
Patent Text Reader

Abstract

The invention discloses an internet-of-things system of heterogeneous equipment, and relates to the field of power systems. The internet-of-things system of the heterogeneous equipment comprises at least one internet-of-things device, and the internet-of-things device comprises an equipment model configured with equipment information of power equipment, a first adapter used for receiving calling of an interface by a power processing system and executing operation corresponding to the interface on the power equipment, and a second adapter taking a protocol abstraction interface as a base class; and each Internet of Things device is used for assisting one type of power equipment to access the power processing system, so that compatibility and intercommunication of heterogeneous equipment in the power system are realized, and the integration efficiency and the operation consistency of the system are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to an Internet of Things system for heterogeneous devices. Background Art

[0002] With the rapid development of IoT technology, various devices are connected through the network, forming a huge IoT ecosystem. In the power system, the application of IoT technology is becoming more and more extensive, involving various types of equipment such as smart meters, substation equipment, distribution automation equipment, sensors, etc. However, these devices usually use different communication protocols and data formats, resulting in increasingly prominent interoperability and compatibility issues between them.

[0003] In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art: In traditional power systems, the communication protocols and data formats of different devices are often highly customized and lack unified standards. Devices used by different manufacturers and application scenarios use their own independent communication protocols, which have significant differences in data transmission format, communication mode, data encoding, etc., making it difficult for different devices to communicate directly with each other. Summary of the invention

[0004] The present invention provides an Internet of Things system for heterogeneous devices to solve the problems of low compatibility and poor interoperability of heterogeneous devices in a power system.

[0005] According to one aspect of the present invention, there is provided an Internet of Things system for heterogeneous devices, comprising:

[0006] At least one IoT device, the IoT device comprising a device model, a first adapter and a second adapter; each IoT device is used to assist a type of power device to access the power processing system;

[0007] The device model is configured with device information of the power device;

[0008] The first end of the first adapter is connected to the power processing system, and the second end of the first adapter is connected to the power device. The first adapter includes a plurality of interfaces, each interface is obtained by encapsulating a type of operation, and the first adapter is used to receive a call to the interface by the power processing system and perform an operation corresponding to the interface on the power device;

[0009] The first end of the second adapter is connected to the power processing system, and the second end of the second adapter is connected to the power equipment. The second adapter takes the protocol abstract interface as the base class and inherits the base class to execute the following method: receiving the first data message transmitted by the power equipment, parsing the first data message, extracting the data field in the first data message, converting the extracted data field into standard format data adapted to the power processing system, and transmitting it to the power processing system; and receiving the second data message from the power processing system, extracting the data field in the second data message, encapsulating it into a protocol message adapted to the power equipment, and transmitting it to the power equipment.

[0010] The technical solution of the embodiment of the present invention is through at least one Internet of Things device, which is configured with a device model of device information of the power equipment, a first adapter for receiving calls to the interface by the power processing system and performing operations corresponding to the interface on the power equipment, and a second adapter with the protocol abstract interface as the base class. Each Internet of Things device is used to assist a type of power equipment to access the power processing system, which solves the interoperability and compatibility problems between different devices caused by different communication protocols and data formats in traditional power systems, realizes the compatibility and intercommunication of heterogeneous devices in the power system, and greatly improves the system integration efficiency and operational consistency.

[0011] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 It is a structural schematic diagram of an Internet of Things system of heterogeneous devices provided in Embodiment 1 of the present invention;

[0014] Figure 2 It is a structural schematic diagram of another heterogeneous device Internet of Things system provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0015] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0016] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0017] Embodiment 1

[0018] Figure 1 1 is a schematic diagram of the structure of a heterogeneous device IoT system provided by the first embodiment of the present invention. This embodiment is applicable to the direct communication between different power devices using different communication protocols and data formats. Figure 1 As shown, the IoT system includes at least one IoT device 100. Each IoT device 100 includes a device model 110, a first adapter 120 and a second adapter 130; each IoT device 100 is used to assist a type of power device to access the power processing system;

[0019] The device model 110 is configured with device information of the power device;

[0020] The first end of the first adapter 120 is connected to the power processing system, and the second end of the first adapter 120 is connected to the power equipment. The first adapter 120 includes multiple interfaces, each interface is obtained by encapsulating a type of operation, and the first adapter 120 is used to receive the call of the power processing system to the interface and perform the operation corresponding to the interface on the power equipment; the first end of the second adapter 130 is connected to the power processing system, and the second end of the second adapter 130 is connected to the power equipment. The second adapter 130 takes the protocol abstract interface as the base class and inherits the base class to execute the following method: receiving a first data message transmitted by the power equipment, parsing the first data message, extracting the data field in the first data message, converting the extracted data field into standard format data adapted to the power processing system, and transmitting it to the power processing system; and receiving a second data message from the power processing system, extracting the data field in the second data message, encapsulating it into a protocol message adapted to the power equipment, and transmitting it to the power equipment.

[0021] In this embodiment, the power equipment can be understood as equipment that performs power services such as power production, power conversion, and power distribution in the power system. For example, the power equipment may include but is not limited to smart meters, substation equipment, distribution automation equipment, sensors, etc. Different power equipment may use different communication protocols and data formats. For example, different power equipment may use the following communication protocols: Modbus, IEC, 61850, DNP3, Zigbee, etc.

[0022] The power processing system can be understood as an Internet of Things system that manages heterogeneous power equipment, collects data, and processes data. By realizing the Internet of Things with different power equipment, it can send control instructions to the power equipment and transmit data with the power equipment.

[0023] Since heterogeneous power devices use different communication protocols and data formats and cannot be compatible with each other, in this embodiment, an Internet of Things system is set between the power devices and the power processing system, and different power devices are connected to the power processing system through the Internet of Things system to achieve compatible Internet of Things between heterogeneous power devices and the power processing system.

[0024] The IoT system includes a plurality of IoT devices 100. Optionally, each power device may be configured with an IoT device 100, and the power device may be connected to the power processing system via the IoT device 100.

[0025] On the basis of the above embodiments, the same type of power equipment adopts the same communication protocol and data format. In order to reduce the cost of the Internet of Things system, the power equipment to be connected to the power processing system is classified and processed, and an Internet of Things device 100 is configured for the same type of power equipment. By reusing one Internet of Things device 100 by multiple power equipment of the same type, the equipment cost is reduced on the basis of realizing the access of the power equipment to the power processing system.

[0026] Optionally, the power equipment is classified based on the communication protocol and data format used by the power equipment, and the power equipment with the same communication protocol and data format is determined as the same type of power equipment. It is understandable that for the same type of power equipment, taking smart meters as an example, smart meters produced by different manufacturers may use different communication protocols and / or data formats, and classifying the power equipment by communication protocol and data format can improve the accuracy of classification.

[0027] In this embodiment, each IoT device 100 includes a device model 110, which is a model configured with device information of an electric device. Here, the device information of the electric device can be understood as the device information of a certain type of electric device corresponding to the IoT device 100. Optionally, the device information configured in the device model 110 includes one or more of the following: device identification, device type, device attribute, device function and data format. Among them, the device identification is a unique identifier assigned to each electric device, for example, it can be a power device ID. It can be understood that when there are multiple electric devices of a certain type, the device model 110 can be configured with the device identifications of multiple electric devices of this type. The device type is used to classify the types of different electric devices, for example, it can be a smart meter. The device attributes contain some basic information of the electric device, for example, it can include but is not limited to one or more items such as the name of the electric device, manufacturer, model, communication interface type and protocol type. The device function includes the functions supported by the electric device and the operations that can be performed, for example, the smart meter can accurately measure the power consumption and provide accurate power consumption data. The data format is used to record and store various data of the operation of the power system. The device information configured in the device model 110 is helpful to provide data support for the access of the power equipment to the power processing system.

[0028] The first end of the first adapter 120 is connected to the power processing system, and the second end of the first adapter 120 communicates with the power device. The first adapter 120 performs corresponding operations on the power device by receiving instructions from the power processing system. The first adapter 120 completes the above operations through an interface. Among them, the first adapter 120 includes multiple interfaces. An interface can be obtained by encapsulating the same type of operations, and multiple interfaces can be obtained by encapsulating different types of operations to meet the power processing system's operations on different types of power devices. For example, the smart meter operation encapsulation includes one or more of the functions of reading power, setting time, and restarting the device. These operations are encapsulated as interfaces, and the power processing system can directly call the functions of the smart meter through these interfaces without having to understand its underlying implementation details.

[0029] In this embodiment, the first adapter 120 is used to assist in implementing the control operations of the power processing system on the power equipment during the process of the power equipment being connected to the power processing system. By way of example, the control operations of the power processing system on the power equipment include but are not limited to data reading, data writing, device restarting, starting or shutting down a device or function, etc.

[0030] The first adapter 120 includes a plurality of pre-packaged interfaces, each of which is obtained by packaging a type of operation, and the power processing system sends relevant command operations to the power device by calling the relevant interface. The connection mode between the first adapter 120 and the power processing system and the power device can be determined according to the interface through which the power processing system and the power device pass. For example, when the power device is equipped with a serial port, the first adapter 120 can be connected to the power device through the serial port; for example, when the power device is equipped with a wireless communication interface, the first adapter 120 can be wirelessly connected to the power device, and different power devices can access the corresponding first adapter 120 in different ways. Similarly, the first adapter 120 can be wirelessly connected or wired to the power processing system.

[0031] The packaging method of the multiple interfaces in the first adapter 120 may be: pre-configure an initialization method, which is a method for defining device initialization, and set the communication parameters and basic configuration of the power device through the initialization method. For example, the settings of the smart meter include a communication port (such as COM3 port), a baud rate (such as 9600bps), and a communication timeout (such as 5 seconds).

[0032] The communication method is pre-set to define the communication interface of the power device, and the communication interface of the device is configured through the communication method. The communication interface is used for data exchange between the power device and the system. Taking the smart meter as an example, the communication interface may include an interface for sending commands and receiving data. Through the above communication interface, the power processing system can send commands such as reading the power quantity to the smart meter and receive the power quantity data returned by it, so that the power device can effectively communicate with the power processing system in a heterogeneous environment.

[0033] The specific operations of the power equipment are converted into a system-standard operation interface through operation encapsulation, so that the power processing system can interact with different types of equipment in a unified manner. Optionally, the interface in the first adapter 120 includes a data reading interface, a data writing interface, and a command execution interface. Specifically, the data reading interface is an interface for reading data from the power equipment; the data writing interface is an interface for the power processing system to write relevant information or instructions to the power equipment, such as configuration information and control instructions; the command execution interface is used to execute specific operations of the power equipment, such as restarting the power equipment and starting a certain function. The command execution interface standardizes the operation methods of different power equipment, so that the power processing system can execute commands of different power equipment through a unified interface.

[0034] In this embodiment, the first end of the second adapter 130 is connected to the power processing system, and the second end of the second adapter 130 is connected to the power device. The second adapter 130 is used to assist in the transmission of data messages between the power processing system and the power device during the process of the power device accessing the power processing system. The second adapter 130 can assist in the transmission of data messages from the power device to the power processing system, and the transmission of data messages from the power processing system to the power device.

[0035] In the process of transmitting data messages from the power equipment to the power processing system, the second adapter 130 receives the first data message transmitted by the power equipment, parses the first data message, extracts the data field in the first data message, converts the extracted data field into standard format data suitable for the power processing system, and transmits it to the power processing system.

[0036] The first data message is a data message transmitted by the power device and received by the second adapter 130. The data field is a data field extracted by parsing the first data message. For example, the second adapter 130 may be configured with a parser submodule, and different parser submodules may correspond to different communication protocols. The parser submodule configured in the second adapter 130 is suitable for the communication protocol of the power device corresponding to the IoT device 100, and can be used to parse the first data message sent by the power device. Based on the characteristics of the power device protocol, the parser submodule can be constructed in the form of regular expressions or protocol parsing libraries.

[0037] The data fields parsed from the first data message may include, but are not limited to, device ID, data timestamp, and measurement value. Standard format data is data adapted to the format required by the power processing system. The second adapter 130 receives a first data message of the Modbus protocol, and the content of the first data message is: 01 03 00 00 00 02C4 0B. By parsing the first data message, the address 0000 and the data length 2 are extracted, and this information is converted into standard format data of the Internet of Things system, such as {"address": "0000", "data length": "2"}.

[0038] Converting the parsed data fields into standard format data for the power processing system may involve, but is not limited to, data type conversion, unit conversion (e.g., Celsius to Fahrenheit) and data format adjustment. For different types of data, for example, converter classes and function libraries can be used for data conversion to ensure that all data conform to the format and units required by the IoT system, such as converting floating point numbers, integers or strings into a unified numeric type.

[0039] In the process of converting the data sent by the power system into standard format data required by the power processing system, the second adapter 130 parses the first data message transmitted by the power equipment, extracts the data fields in the first data message, and maps the data extracted from the first data message into data suitable for the power processing system according to corresponding mapping rules.

[0040] Optionally, the second adapter 130 is also used to map the data field to a standard field of the power processing system after extracting the data field in the first data message; wherein the second adapter 130 pre-stores field mapping rules corresponding to the power equipment, and the field mapping rules include a mapping relationship between the data field in the power equipment and the standard field of the power processing system.

[0041] In this embodiment, the field mapping rule represents the mapping relationship between the data field in the first data message and the standard field of the power processing system, which is pre-stored in the second adapter 130. For example, a set of field mapping rule tables is established for each type of power equipment, indicating the mapping relationship between the data field of the power equipment and the standard field of the power processing system. For example, for a temperature sensor, the temp_value field of the power equipment may be mapped to the standard field temperature of the power processing system. If the data units of different power equipment are different, it is necessary to define the unit conversion rules in the mapping rules, for example, Fahrenheit can be converted to Celsius, or inches can be converted to centimeters. For example, for a temperature sensor, the data field in the power equipment is temp_value, and the standard field required in the power processing system is temperature. By converting the data unit, Fahrenheit is converted to Celsius, and the conversion formula is temperature = (temp_value-32) * 5 / 9. For example, for a pressure sensor, the data field in the power equipment is pressure_value, and the standard field required in the power processing system is pressure. By converting the data unit, pounds per square inch is converted to Pascals, and the conversion formula is pressure = pressure_value * 6894.76.

[0042] Field mapping rules can be dynamically adjusted based on IoT system configuration or real-time parameters. For example, some power equipment may have different working modes, and the meaning of data may change in different modes. The IoT system should adjust the mapping rules based on the current mode.

[0043] Optionally, the second adapter 130 is further used to extract data fields in the first data message, perform standardization processing on the data fields, and convert the extracted data fields into standard format data adapted to the power processing system.

[0044] Specifically, the standard format data is data adapted to the power processing system, and is obtained by standardizing the data field in the first data message. For example, the data field in the extracted first data message is data in Fahrenheit units, and the data in the power processing system is data in Celsius units. By standardizing the data field in the first data message, the data in Fahrenheit units is converted into data in Celsius units.

[0045] In the process of transmitting the data message from the power processing system to the power equipment, the second adapter 130 has the function of encapsulation. The second adapter 130 receives the second data message of the power processing system, extracts the data field in the second data message, encapsulates it into a protocol message adapted to the power equipment, and transmits it to the power equipment. The second data message is the data information of the power processing system received by the second adapter 130. The protocol message is to convert the standard field of the system into the message required by the power equipment according to the requirements of different protocols. For example, in the Modbus protocol, the function code, address and data value will be encapsulated into a byte stream that conforms to the relevant protocol format. The Internet of Things system needs to send a Modbus protocol write register instruction. The corresponding field of the Internet of Things system is {"address": "0001", "value": "03E8"}, which is encapsulated into the corresponding protocol message, such as 0106 00 01 03E8 48 9A, and then sent to the power equipment.

[0046] In the above-mentioned process of implementing the parsing and encapsulation operation of the second adapter 130, the corresponding operation is implemented based on the protocol abstract interface. Optionally, the protocol abstract interface includes a data sending interface, a data receiving interface and a protocol initialization interface; wherein the data sending interface is a predefined first abstract method, the first abstract method is used to send data to the power device, and the input parameters of the first abstract method include the data content and the target device address; the data receiving interface is a predefined second abstract method, the second abstract method is used to receive data from the power device, and the input parameters of the second abstract method include the expected length and / or identifier; the protocol initialization interface is a predefined third abstract method, which is used to initialize the configuration parameters of the communication protocol.

[0047] In this embodiment, the protocol abstract interface is a base class or interface for defining abstract methods of operations related to the communication protocol, such as sending data, receiving data, and initializing the protocol. These methods have no specific implementation, and the specific implementation is left to the subclasses that inherit the relevant interface. Each subclass implements the corresponding data sending and receiving methods according to the characteristics of the specific protocol, ensuring the flexibility and extensibility of the Internet of Things system. The second adapter 130 is a specific class that inherits and implements the protocol abstract interface. According to the requirements of a specific communication protocol, these abstract methods are implemented to communicate with the power device or the Internet of Things system. The data content is the data to be sent, such as instructions and configuration parameters; the target device address is the communication address of the power device, such as an IP address, a port number, and a physical address. The expected length is a parameter of the Internet of Things system, which is used to tell the receiving logic how many bytes of data can be received before stopping receiving. It is a parameter set according to the requirements of the protocol; the identifier is used to identify a specific type of data or power device. For example, the power processing system needs to receive the measurement data of the sensor from the power device. Through the receiving data interface, the power processing system provides the expected length and / or identifier, and the receiving data interface obtains data from the power device and returns it to the power processing system to ensure the integrity and correctness of the data. Exemplarily, the power processing system can send a control instruction to a device with an IP address of 192.168.1.100 through a sending data interface, can wait for the power device to return the execution result of the control instruction through a receiving data interface, receive the returned status information, and can set the IP address and port number of the power device through a protocol initialization interface to ensure the establishment of a communication link.

[0048] In this embodiment, the first abstract method is a predefined abstract method for sending data to the power equipment, which unifies the data receiving methods of different protocols, so that the power processing system can obtain feedback or data of the power equipment in a standardized way; the second abstract method is a predefined abstract method for receiving data from the power equipment, which unifies the sending operations of different communication protocols, so that the power processing system can send commands or data to the power equipment through a consistent interface; the third abstract method is a predefined abstract method for initializing the configuration parameters of the communication protocol, which unifies the operations of different initialization steps that may be required by different protocols, ensuring that the necessary configuration is completed before using the protocol. The output result of the data sending interface is the status or feedback information of the sending operation, such as success, failure and error code; the output result of the data receiving interface is the content of the received data, such as sensor data and device status information; the output result of the protocol initialization interface is the status of the initialization operation, indicating whether the communication protocol is successfully configured.

[0049] The configuration parameters of the communication protocol need to be initialized in the following situations:

[0050] (1) When the IoT system is started. When the IoT system is started or the power equipment is powered on, the protocol is usually initialized first. At this time, the IoT system will configure all the parameters required by the communication protocol to ensure that subsequent communication operations can proceed smoothly. For example, one or more of the serial port baud rate, verification method, and timeout period can be configured.

[0051] (2) Before establishing a connection. Before establishing a communication connection with the power equipment, protocol initialization is required. Especially in connection-based protocols, such as TCP / IP, the initialization configuration step is usually completed before the connection is established to ensure that the connection parameters are correct.

[0052] (3) Before the start of a communication session. If the communication between the IoT system and the device is session-based, for example, a handshake or authentication is required before each communication, protocol initialization can be performed before each session starts to ensure that the configuration in the current session is the latest and correct.

[0053] (4) Configuration changes. If the communication configuration needs to be changed in the system, such as adjusting the baud rate and modifying the timeout period, the protocol needs to be reinitialized. This may occur when the IoT system detects that the configuration needs to be adjusted to adapt to new communication conditions during operation. During the above data transmission process, transmission anomalies may occur. In response to possible transmission anomalies, the second adapter 130 is also used to detect abnormal information and process the abnormal information.

[0054] Optionally, the second adapter 130 is further used to detect abnormal information during data transmission between the power device and the power processing system, and when abnormal information is detected, execute an abnormal processing operation corresponding to the abnormal information. In this embodiment, the abnormal processing methods corresponding to different abnormal information can be pre-set, and the corresponding abnormal processing methods can be executed according to the detected abnormal information.

[0055] For example, when a communication timeout is detected, an attempt may be made to resend data or record logs for subsequent analysis; or for a possible communication timeout, a timeout detection mechanism may be implemented in the first adapter and the second adapter respectively. When a timeout occurs, in addition to recording logs, the following options can be selected: (1) Abandon the current operation. If the retry fails, the current operation can be abandoned and other tasks can be continued to avoid blocking the entire IoT system. (2) Switch to a backup device or channel. If the IoT system supports multiple communication channels or backup devices, an attempt can be made to switch to a backup channel after a timeout.

[0056] The technical solution of this embodiment is that, through the device information configured in the device model 110, the Internet of Things system uses the first adapter 120 to receive the call of the power processing system to the interface, executes the operation corresponding to the interface on the power device, and uses the second adapter 130 to receive the second data message of the power processing system, extracts the data field in the second data message, encapsulates it into a protocol message adapted to the power device, and transmits it to the power device, which solves the interoperability and compatibility problems between different devices caused by different communication protocols and data formats in traditional power systems, realizes the compatibility and intercommunication of heterogeneous devices in the power system, and greatly improves the system integration efficiency and operational consistency.

[0057] Embodiment 2

[0058] Figure 2 1 is a schematic diagram of the structure of another heterogeneous device IoT system provided by Embodiment 2 of the present invention. This embodiment is an optimization of the above embodiment. Figure 2 As shown, the IoT system includes at least one IoT device 100. Each IoT device 100 includes a device model 110, a first adapter 120 and a second adapter 130; each IoT device 100 is used to assist a type of power device to access the power processing system;

[0059] The device model 110 is configured with device information of the power device;

[0060] The first end of the first adapter 120 is connected to the power processing system, and the second end of the first adapter 120 is connected to the power device. The first adapter 120 includes a plurality of interfaces, each of which is obtained by encapsulating a type of operation. The first adapter 120 is used to receive a call to the interface by the power processing system and perform an operation corresponding to the interface on the power device.

[0061] The first end of the second adapter 130 is connected to the power processing system, and the second end of the second adapter 130 is connected to the power equipment. The second adapter 130 takes the protocol abstract interface as the base class, and inherits the base class to execute the following method: receiving the first data message transmitted by the power equipment, parsing the first data message, extracting the data field in the first data message, converting the extracted data field into standard format data adapted to the power processing system, and transmitting it to the power processing system; and, receiving the second data message from the power processing system, extracting the data field in the second data message, encapsulating it into a protocol message adapted to the power equipment, and transmitting it to the power equipment.

[0062] The device management module 200 is used to read the description file of the power device when the power device is connected to the system, assign an identifier to the power device based on the description file of the power device, and register it, load the corresponding adapter identifier and communication protocol according to the configuration file of the power device, and configure the communication parameters of the power device.

[0063] Specifically, the device management module 200 automatically loads the corresponding adapter and communication protocol through the description file of the power device, and dynamically configures the communication parameters of the power device. Its workflow is as follows: the new power device is connected to the Internet of Things system through the network, serial port or other communication methods; the device management module detects the new power device and reads the power device description file; the Internet of Things system assigns a unique identifier to the power device according to the power device description file and registers it; automatically loads the corresponding adapter and communication protocol according to the description file, and configures the communication parameters of the power device; the Internet of Things system continuously monitors the operating status of the power device to ensure that the power device works normally. Optionally, the device management module 240 can add new adapters and protocol support to the Internet of Things system in the form of plug-ins.

[0064] Optionally, the device management module 200 further performs compatibility detection on the power equipment, wherein the data items of the compatibility detection include one or more of a communication protocol, a data format, a functional interface and a configuration interface.

[0065] Specifically, communication protocol detection can be to detect whether the communication protocol used by the new power equipment is already supported in the IoT system by analyzing the protocol field in the description file of the power equipment; if the communication protocol is incompatible, the IoT system will prompt the user to manually configure or develop a new second adapter. Data format detection can be the IoT system detecting whether the data format of the new power equipment meets the standardization requirements, including but not limited to data types, units and field structures, etc. If an incompatible format is found, the IoT system will prompt the user to make configuration adjustments. Functional interface detection can be the IoT system detecting whether the functional interface of the new power equipment is compatible with the existing IoT system, such as read and write commands, control instructions, etc. If the functional interface is incompatible, the IoT system will prompt the user to update the first adapter or develop a new interface adapter. The configuration interface can be to develop a user-friendly configuration interface that allows the user to manually configure the device parameters when an incompatible device is detected, or choose to upload a new first adapter code. The optional configuration interface supports visual operation and real-time feedback.

[0066] Optionally, the system further includes a testing module 300 for simulating multiple types of electronic devices and / or multiple protocols to perform compatibility testing on the IoT system.

[0067] Specifically, based on the test module 300, the operation of various power devices and protocols is simulated to comprehensively test the compatibility of the IoT system. For example, the test cases and results of different power devices and protocols can be collected and archived through the compatibility test library for subsequent analysis and system optimization. The test process is as follows: according to the power device description file and protocol, an automated test case suitable for the IoT system is generated; the communication protocol in the test case is simulated to generate a test data stream that complies with the specification; the data stream and behavior of the simulated device are generated to test the device compatibility of the IoT system; the simulation operation is run according to the test case, the response behavior of the IoT system is recorded, and a test report is generated; the test results are collected and stored in the compatibility test library for subsequent analysis and system optimization.

[0068] The technical solution of this embodiment is that, through the device information configured in the device model 110, the Internet of Things system uses the first adapter 120 to receive the call of the power processing system to the interface, executes the operation corresponding to the interface on the power device, and uses the second adapter 130 to receive the second data message of the power processing system, extracts the data field in the second data message, encapsulates it into a protocol message adapted to the power device, and transmits it to the power device, converts the data of different protocols into a common format of the Internet of Things system, thereby realizing data compatibility and interoperability between heterogeneous protocols; the device management module 140 automatically loads the corresponding adapter and communication protocol through the description file of the power device and dynamically configures the communication parameters of the power device; based on the test module, simulates the operation of various power devices and protocols, and conducts a comprehensive test on the compatibility of the Internet of Things system for subsequent analysis and system optimization, thereby realizing the compatibility and intercommunication of heterogeneous devices in the power system, and greatly improving the system integration efficiency and operation consistency.

[0069] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An Internet of Things system for heterogeneous devices, characterized in that: At least one IoT device, the IoT device comprising a device model, a first adapter and a second adapter; each IoT device is used to assist a type of power device to access a power processing system; The device model is configured with device information of the electric power device; The first end of the first adapter is connected to the power processing system, and the second end of the first adapter is connected to the power device. The first adapter includes a plurality of interfaces, each of which is obtained by encapsulating a type of operation. The first adapter is used to receive a call of the interface by the power processing system and perform an operation corresponding to the interface on the power device. The first end of the second adapter is connected to the power processing system, the second end of the second adapter is connected to the power device, and the second adapter takes the protocol abstract interface as a base class and inherits the base class to perform the following method: receiving a first data message transmitted by the power device, parsing the first data message, extracting a data field in the first data message, converting the extracted data field into standard format data adapted to the power processing system, and transmitting the data to the power processing system; And, receiving a second data message from the power processing system, extracting a data field in the second data message, encapsulating it into a protocol message adapted to the power device, and transmitting it to the power device.

2. The system according to claim 1, characterized in that The interfaces in the first adapter include a data reading interface, a data writing interface and a command execution interface.

3. The system according to claim 1, characterized in that The protocol abstract interface includes a data sending interface, a data receiving interface and a protocol initialization interface; The data transmission interface is a predefined first abstract method, the first abstract method is used to send data to the power device, and the input parameters of the first abstract method include data content and a target device address; The receiving data interface is a predefined second abstract method, the second abstract method is used to receive data from the power device, and the input parameter of the second abstract method includes an expected length and / or an identifier; The protocol initialization interface is a predefined third abstract method used to initialize the configuration parameters of the communication protocol.

4. The system according to claim 1, characterized in that The second adapter is further used to map the data field into a standard field of the power processing system after extracting the data field in the first data message; The second adapter pre-stores a field mapping rule corresponding to the power device, and the field mapping rule includes a mapping relationship between a data dictionary in the power device and a standard field of the power processing system.

5. The system according to claim 1, characterized in that The second adapter is further used to extract data fields from the first data message, perform standardization processing on the data fields, and convert the extracted data fields into standard format data adapted to the power processing system.

6. The system according to claim 1, characterized in that The second adapter is also used to detect abnormal information during data transmission between the power device and the power processing system, and when abnormal information is detected, perform an abnormal processing operation corresponding to the abnormal information.

7. The system according to claim 1, characterized in that The device information configured in the device model includes one or more of the following: device identification, device type, device attribute, device function and data format.

8. The system according to claim 1, characterized in that The system also includes a device management module, which is used to read the description file of the power device, assign an identifier to the power device based on the description file of the power device, and register it when the power device is connected to the system, load the corresponding adapter identifier and communication protocol according to the configuration file of the power device, and configure the communication parameters of the power device.

9. The system according to claim 8, characterized in that The device management module also performs compatibility detection on the power equipment, wherein the data items of the compatibility detection include one or more of a communication protocol, a data format, a functional interface and a configuration interface.

10. The system according to claim 1, characterized in that The system also includes a testing module for simulating multiple types of electronic devices and / or multiple protocols to perform compatibility testing on the IoT system.

Citation Information

Patent Citations

  • General protocol conversion platform for Internet of Things

    CN113381997A

  • Information processing method and information processing device based on cloud edge-end architecture

    CN115883557A

  • Data access method and system of Internet of Things equipment, terminal equipment and storage medium

    CN117579713A

  • Adaptation method, system and equipment of electric power Internet of Things operating system and electric power system, and medium

    CN118174449A

  • Method for providing interface for interoperation between different types of IoT platform devices and system for providing interface for interoperation between different types of IoT platform devices

    WO2021107256A1