Gateway collaborative configuration and data output method and system, terminal and medium
By generating a general point template and mapping relationship template, combined with the built-in Agent service of EMU gateway, the problem of inconsistent device data format and tight coupling of configuration information in the Internet of Things gateway system is solved, and the flexibility of unified data processing and configuration is realized. Improves system compatibility and maintainability.
Patent Information
- Application Number
- CN202411170984.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-12
AI Technical Summary
Due to the inconsistent data reading format of various manufacturers and tightly coupled configuration information, existing IoT gateway systems have difficulty in adapting to rapidly changing market demands.
By generating common point templates and mapping relationship templates, saving them in the configuration center, using the built-in Agent service of the EMU gateway to automatically read the configuration and flash it to the local file, realizing unified format output of data, independent storage and dynamic update of configuration information, Coupled configuration and business logic.
It realizes seamless connection between different equipment types and manufacturers' equipment, improves the universality and compatibility of the system, simplifies operation and maintenance, reduces error rates and maintenance costs, and improves the scalability and maintainability of the system.
Smart Images

Figure CN118945058A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things communication technology, and in particular, to a gateway collaborative configuration and data output method, system, terminal and medium. Background Art
[0002] As the application scope of IOT becomes wider, wider and more diversified, and appears in more fields, in order to achieve different functional requirements (such as microgrid systems), multiple IOT gateways may be deployed in the same physical location. The computing, storage, and collaboration of each IOT gateway are limited, and the data reading format is relatively fixed.
[0003] One reason is that the data reading format of each manufacturer's device is not unified. Since the communication protocols, data encoding formats and other standards followed by each manufacturer are different, there are serious barriers when data is transmitted across platforms and systems. Whenever a new device needs to be connected, developers have to develop a new docking program for the specific data format of the device. This "one-to-one" docking method is not only inefficient, but also difficult to adapt to the rapidly changing IoT market needs. In addition, the diverse data formats also increase the complexity and error rate of data processing, affecting the accuracy and real-time nature of the data.
[0004] Another reason is the traditional tight coupling mode between business and configuration, that is, the collaborative relationship configuration is in each IOT gateway, and the configuration information is often directly embedded in the business code, or set inside the gateway through hard coding. Although this method is simple to implement, as the scale of the system expands and the complexity increases, it depends on each actual business computing unit, which will affect each business node, and its disadvantages are becoming increasingly apparent. On the one hand, the tight coupling of configuration information and business logic makes the system difficult to maintain and upgrade; on the other hand, every time the configuration changes, the business code needs to be recompiled and deployed, which not only increases the operation and maintenance costs, but also may cause the risk of business interruption. Whenever a new device or new function is added, it is often necessary to carry out customized development for each device, which is not only time-consuming and labor-intensive, but also increases the system's maintenance costs and the risk of errors.
[0005] In view of this, this application is specially filed. Summary of the invention
[0006] In view of the defects in the prior art, the present application provides a gateway collaborative configuration and data output method, system, terminal and medium.
[0007] In a first aspect of the present application, a gateway collaborative configuration and data output method is provided, the method comprising:
[0008] Obtain the points of all device types and devices of various manufacturers in the IoT gateway, generate universal point templates and mapping relationship templates, and save the generated universal point templates and mapping relationship templates in the configuration center;
[0009] The Agent service built into the EMU gateway automatically reads the latest configuration from the configuration center and writes the read configuration to the local file;
[0010] After receiving the data reading instruction, data is read from each device according to the general point template and mapping relationship template, and the read data is processed and converted into a unified output format for output.
[0011] Further, the acquisition of the points of all device types and devices of various manufacturers in the IoT gateway, the generation of a universal point template and a mapping relationship template, and the storage of the generated universal point template and mapping relationship template in the configuration center include:
[0012] Get the locations of all device types in the IoT gateway and generate a universal location template;
[0013] The configuration center defines the mapping relationship between each manufacturer's equipment and the general point template through the generated general point template and the equipment of each manufacturer, and generates a mapping relationship template;
[0014] Save the generated general point template and mapping relationship template in the configuration center.
[0015] Furthermore, after the generated general point template and the mapping relationship template are saved in the configuration center, the following is further included:
[0016] Monitor device information in real time to determine whether it is necessary to add, delete, or modify the current device information. If so, add, delete, or modify the general point template and generate a new general point template.
[0017] Map the generated new universal point template to the corresponding manufacturer's equipment, generate a new mapping relationship template, and save it in the configuration center.
[0018] Furthermore, the Agent service built into the EMU gateway automatically reads the latest configuration from the configuration center and writes the read configuration to a local file, including:
[0019] An Agent service is built into the EMU gateway, and the Agent service establishes communication with the configuration center through the set communication protocol;
[0020] Get the current time and the set time, and determine whether the set time has been reached. If so, the Agent service reads the configuration information from the configuration center;
[0021] The Agent service writes the parsed configuration information to the local file of the EMU gateway and records the last update time of the local configuration file.
[0022] Furthermore, the set communication protocol is MQTT.
[0023] Furthermore, the Agent service is a TCP layer 4 oriented service.
[0024] Furthermore, the configuration center is independently set up and interacts collaboratively with the Internet of Things gateway and the EMU gateway.
[0025] A second aspect of the present application provides a gateway collaborative configuration and data output system, including:
[0026] Configuration center, used to store, manage and dynamically update the configuration information of all services in the system;
[0027] The general point definition and mapping module is set in the configuration center to obtain the points of all device types and devices of various manufacturers in the IoT gateway, and generate general point templates and mapping relationship templates;
[0028] The EMU gateway configuration management module has a built-in Agent service, which is used to regularly read configuration information from the configuration center and write the configuration information to the local computer.
[0029] The data output module is used to read data from various devices according to the general point template and mapping relationship template after receiving the read information, and process the read data and convert it into a unified output format for output.
[0030] According to a third aspect of the present application, a terminal is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can be used to execute the above-mentioned gateway collaborative configuration and data output method when executing the program.
[0031] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, it can be used to execute the above-mentioned gateway collaborative configuration and data output method.
[0032] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0033] 1. This application standardizes the points of different equipment types and manufacturers by generating general point templates and mapping relationship templates, so that no matter which manufacturer's equipment is, as long as it is configured according to a unified template, it can be recognized and processed by the system, achieving seamless connection between data information of various manufacturers, improving the versatility and compatibility of the system. The Agent service built into the EMU gateway can automatically read the latest configuration from the configuration center and write it to the local file, simplifying the operation and maintenance work, reducing the need for manual intervention, and also improving the accuracy and real-time performance of the configuration.
[0034] 2. This application sets up a separate configuration center and combines it with the Agent service so that the configuration information is no longer embedded in the business Internet of Things (IOT) gateway, making configuration modification and updating more flexible and convenient, while also reducing the complexity of the business gateway. At the same time, it realizes the decoupling of configuration information and business logic. The business gateway no longer needs to process complex configuration logic, but focuses on processing and forwarding business data, which reduces the pressure on the business gateway and improves the scalability and maintainability of the system.
[0035] 3. This application implements an independent storage and dynamic update mechanism for configuration information through the configuration center, so that the system can respond to configuration changes and errors more flexibly. When there are problems such as addition, modification, deletion, etc. in the configuration, the configuration center can be quickly repaired, updated and maintained without restarting or modifying the business gateway. At the same time, the Agent service interacts with the configuration center regularly to achieve rapid support for new devices, thereby improving the stability and availability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments with reference to the following drawings:
[0037] Figure 1 This is a flow chart of a gateway collaborative configuration and data output method in one embodiment of the present application.
[0038] Figure 2 In a preferred embodiment of this application Figure 1 Flow chart of step S100 in FIG.
[0039] Figure 3 In a preferred embodiment of this application Figure 1 Flowchart of step S200 in FIG.
[0040] Figure 4 A template diagram is configured and issued in one embodiment of the present application.
[0041] Figure 5 This is a template diagram for reading point information in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The present application is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements can also be made without departing from the concept of the present application. These all belong to the protection scope of the present application.
[0043] In the existing technology, as the application scope of the Internet of Things (IOT) becomes wider, wider and more diversified, and appears in more fields, in order to achieve different functional requirements (such as microgrid systems), multiple IOT gateways may be deployed in the same physical location. The computing, storage, and collaboration of each IOT gateway are limited and the data reading format is relatively fixed. Because the device data reading format of each manufacturer is not unified, and the collaborative relationship configuration is in each IOT gateway, it depends on each actual business computing unit, so it will affect each business node.
[0044] To solve the above problems, refer to Figure 1 As shown, in an embodiment of the present application, a gateway collaborative configuration and data output method is proposed, and the method includes S100-S300:
[0045] S100: Obtain the points of all device types and devices of various manufacturers in the IoT gateway, generate a general point template and a mapping relationship template, and save the generated general point template and mapping relationship template in the configuration center.
[0046] The Internet of Things Gateway, or IOT Gateway, is an important component of the Internet of Things (IOT) system. It mainly realizes the protocol conversion between the perception network and the communication network, as well as between different types of perception networks. It can support both wide area interconnection and local area interconnection needs.
[0047] Specifically, first, collect the type information of all devices in the IoT gateway and the unique points of each type of device (such as sensor readings, switch status, etc.), and then create a universal point template based on the collected device types and point information. The point template should be able to cover the common points of all devices. Then, create a mapping relationship template for each manufacturer's equipment, map the specific points of each device to the corresponding position in the universal point template, and then save the universal point template and mapping relationship template in the configuration center.
[0048] By generating a universal point template and a mapping relationship template through the above steps, standardized processing of different device types and manufacturers' equipment is achieved. When configuring and connecting the equipment, no matter which manufacturer's equipment is from, as long as it is configured according to a unified template, it can be recognized and processed by the system, thereby improving the versatility and compatibility of the system.
[0049] S200, through the built-in Agent service of the EMU gateway, automatically reads the latest configuration from the configuration center and writes the read configuration to the local file.
[0050] Agent refers to an intelligent entity, which can be intelligent software, intelligent equipment, intelligent robot or intelligent computer system, etc. Agent has its own computing resources and local behavior control mechanism, and can determine and control its own behavior according to its internal state and perceived environmental information without direct external manipulation.
[0051] Then, the Agent service built into the EMU gateway reads the latest general point template and mapping relationship template from the configuration center regularly or according to event triggers (such as startup, configuration update), and the Agent service writes the read configuration to the local file, so that the latest configuration information can be used when the gateway is not online or the configuration center is unavailable. During operation, when the EMU gateway receives an instruction to read data, the Agent service activates the data reading process. According to the general point template and mapping relationship template, the Agent service sends a read request to each device to obtain the point data of each device.
[0052] The Agent service built into the EMU gateway can automatically read the latest configuration from the configuration center and write it to the local file. The automated configuration method simplifies operation and maintenance work, reduces the need for manual intervention, and improves the accuracy and real-time performance of the configuration.
[0053] S300: After receiving the data reading instruction, data is read from each device according to the general point template and the mapping relationship template, and the read data is processed and converted into a unified output format for output.
[0054] After receiving the data reading instruction, the system can quickly read data from various devices according to the general point template and mapping relationship template, and automatically process and convert it into a unified output format. The automated data processing process improves the efficiency of data reading and the accuracy and consistency of output data.
[0055] In some possible implementations, the configuration center is independently set up and interacts with the IoT gateway and the EMU gateway. By setting up the configuration center independently, the configuration information is not embedded in the business IOT gateway, but is independently stored in the configuration center, making the modification and update of the configuration more flexible and convenient, while also reducing the complexity of the business gateway. At the same time, by setting up the configuration center independently, the configuration information is also decoupled from the business logic, reducing the pressure on the business gateway, so that the business gateway no longer needs to process complex configuration logic, but focuses on the processing and forwarding of business data, improving the scalability and maintainability of the system.
[0056] Preferably, the configuration center may be a central database, a cloud service, or a distributed configuration management system for storing and managing all relevant configuration information.
[0057] Reference Figure 2 As shown, in some implementations, in step S100, the points of all device types and devices of various manufacturers in the IoT gateway are obtained, a general point template and a mapping relationship template are generated, and the generated general point template and mapping relationship template are saved in the configuration center, which is specifically implemented as follows:
[0058] S101. Obtain the locations of all device types in the IoT gateway and generate a general location template.
[0059] S102: The configuration center defines the mapping relationship between the equipment of each manufacturer and the universal point template through the generated universal point template and the equipment of each manufacturer, and generates a mapping relationship template.
[0060] S103: Save the generated general point template and mapping relationship template in the configuration center.
[0061] Among them, the IOT gateway must first have a set of universal point templates, including the points of all manufacturers. It is a large and comprehensive universal template, namely the universal point template.
[0062] Specifically, during operation, the system first scans all devices that can be connected to the IoT gateway to obtain their device types (such as temperature sensors, humidity sensors, lighting devices, etc.). For each device type, the system further collects the data points it supports, including point names, data types (such as integers, floating point numbers, strings, etc.), measurement units (such as degrees Celsius, percentages, etc.) and other related attributes; then, based on the collected point information, the system identifies the common points between different device types and integrates these common points into a universal point template. The universal point template contains all standardized and common point names, data types and units.
[0063] Then, the configuration center receives the general point template from step S101 and starts to analyze the specific point information of each manufacturer's equipment. For each manufacturer's equipment, the configuration center defines a mapping relationship, which maps the specific point name of the manufacturer's equipment to the corresponding point in the general point template.
[0064] Finally, based on the above mapping relationship, the configuration center generates a mapping relationship template.
[0065] A possible implementation method in the above embodiment is: each mapping relationship template is for a type or a category of equipment, and describes in detail how to convert the point information of the equipment into the format in the general point template. Before saving, the configuration center converts the general point template and the mapping relationship template into a format suitable for storage (such as JSON, XML, etc.).
[0066] S103: Save the generated general point template and mapping relationship template in the configuration center.
[0067] This application achieves the standardization and unification of point information between different devices by generating a universal point template. The mapping relationship template can also add new device types or modify the mapping relationship of existing devices without modifying the underlying logic of the entire system, thereby improving the flexibility and scalability of the system and facilitating subsequent data processing and integration.
[0068] In the above embodiment, if the points of the manufacturer's equipment do not completely match the universal points (such as name differences, different data types, etc.), the configuration center needs to define appropriate conversion rules or calculation logic.
[0069] One possible implementation is: if there is an incomplete match, big data analysis is performed on the signal to match the most credible template for modeling. If there is a set number of signal points (such as 1500 signal points) originally, but in fact less than the set number of signal points may be received, a message push is required, and manual intervention is performed to adjust the modeling through the visualization page.
[0070] Specifically, when the signal or data point received by the system does not completely match the target template (i.e., the data is noisy, missing, or has inconsistent formats), the system will not abandon modeling directly, but will use big data analysis technology to conduct in-depth analysis of these signals. Through big data analysis, the system will match the template that is closest to the current data and has the highest credibility for modeling.
[0071] For example, ideally, the system may expect to receive a specific number of signal points (such as 1,500) for modeling. However, in actual operation, due to various reasons (such as sensor failure, signal interference, etc.), fewer than the expected number of signal points may be received. The system will send a corresponding prompt message to remind human intervention and make modeling adjustments through the visualization page.
[0072] Another possible specific implementation method is: by collecting data such as the user's historical operation records, equipment type, point template usage, etc., to remove duplicate, invalid or abnormal data, while ensuring the quality and accuracy of the data, according to business needs and data characteristics, select appropriate features for modeling, such as user operation frequency, equipment type distribution, point template usage rate, etc., and use big data model learning or deep learning algorithms (such as collaborative filtering, content-based recommendation, deep learning models, etc.) for modeling to predict the point templates that users may need; then, according to the user's current operation and equipment type, run the recommendation algorithm to generate a recommendation list, and display the recommendation results to the user or administrator in the form of a graphical user interface (GUI) or API interface to facilitate their quick selection and application.
[0073] Another possible specific implementation is: the configuration center first analyzes the differences between the general point template and the specific points of each manufacturer's equipment, which may include point name, data type, data range, unit, etc. Based on the above differences, the configuration center determines whether it is necessary to define conversion rules or calculation logic. For example, if the temperature data of a manufacturer's equipment is in Fahrenheit, and the general point template requires Celsius, then a conversion rule needs to be defined to convert Fahrenheit to Celsius.
[0074] For data points that need to be converted, the configuration center designs specific conversion rules. These rules can be simple mathematical formulas (such as temperature unit conversion), string replacement logic (such as standardization of point names), data type conversion (such as converting string type numbers to floating point numbers), etc.
[0075] In some cases, raw data may need to be calculated before it can be mapped to the universal point template. For example, if a device's humidity sensor outputs relative humidity percentage, but the universal point template requires absolute humidity value, then the configuration center needs to implement a calculation logic to calculate absolute humidity based on relative humidity, temperature, and pressure parameters.
[0076] For example: a smart home IoT gateway system that contains multiple temperature sensors and humidity sensors from different manufacturers.
[0077] S101. The system scans two types of devices, temperature sensors and humidity sensors, and collects point information from each type of device. For example, temperature sensor A (manufacturer X) has a "temp_x" point, and temperature sensor B (manufacturer Y) has a "temperature_y" point. The system generates a general point template, including the "temperature" point.
[0078] S102, the configuration center defines a mapping relationship based on the general point template and the device point information of each manufacturer. For temperature sensor A, the mapping relationship is {"temp_x":"temperature"}; for temperature sensor B, the mapping relationship is {"temperature_y":"temperature"}, and the configuration center generates a mapping relationship template containing these mapping relationships.
[0079] S103: The configuration center saves the common point template and the mapping relationship template in a database or cloud storage service in JSON format. Afterwards, other components of the smart home system (such as data analysis module, user interface, etc.) can understand and process temperature data from different devices by querying these templates.
[0080] In some possible embodiments, after the generated general point template and the mapping relationship template are saved in the configuration center, the following further includes:
[0081] S104, monitor the device information in real time, determine whether it is necessary to add, delete, or modify the current device information, and if so, add, delete, or modify the general point template, and generate a new general point template;
[0082] S105: Map the generated new universal point template to the equipment of the corresponding manufacturer to generate a new mapping relationship template, and save it in the configuration center.
[0083] In step S104, a monitoring component in the configuration center or the IoT system continuously monitors all devices connected to the IoT gateway, including but not limited to periodically checking device status, receiving heartbeat signals sent by devices, or actively querying device information.
[0084] By analyzing the device information collected in real time, the system detects whether there are any new device types, removal of existing devices, or changes in device point information (such as adding points, deleting points, modifying point attributes, etc.). When an update is required, the general point template is added, deleted, or modified accordingly to reflect the latest status of the device information; then, based on the new general point template, the system re-evaluates or defines the mapping relationship between each manufacturer's equipment and the general point template, which includes checking whether the existing mapping relationship needs to be adjusted, and creating a new mapping relationship for the newly added device type or point.
[0085] By real-time monitoring and updating of device information, the system can dynamically adapt to changes in device types and point information, maintain the timeliness and accuracy of general point templates and mapping relationship templates, and when new types of devices or new manufacturers' devices are added, only the corresponding templates need to be updated or added to support this type of device. It has good scalability and flexibility, can adapt to the ever-changing Internet of Things environment, and avoid data errors or system failures caused by inconsistent point information.
[0086] For example: Assume that a new type of air quality sensor (manufacturer W) is added to the smart home system, which can detect air quality indicators such as PM2.5, PM10 and VOCs.
[0087] S104. The system monitors the addition of the air quality sensor (manufacturer W) in real time, and detects that the sensor has new point information (such as PM2.5, PM10, VOCs). The system determines that it is necessary to add operations to the general point template to include these new air quality indicator points. The general point template is updated, and three points "PM2.5", "PM10" and "VOCs" are added, and their data types and units are defined.
[0088] S105. The system generates a new mapping relationship template for the air quality sensor (manufacturer W) based on the updated universal point template. These templates define how to map the raw data output by the sensor to the corresponding points in the universal point template. For example, the mapping relationship may include directly mapping the PM2.5 concentration value output by the sensor to the "PM2.5" point in the universal point template.
[0089] like Figure 3 As shown, in step S200, the Agent service built into the EMU gateway automatically reads the latest configuration from the configuration center and writes the read configuration to a local file, including:
[0090] S201. An Agent service is built into the EMU gateway. The Agent service establishes communication with the configuration center through a set communication protocol.
[0091] S202: Get the current time and the set time, and determine whether the set time has been reached. If so, the Agent service reads configuration information from the configuration center.
[0092] S203. The Agent service writes the parsed configuration information to the local file of the EMU gateway and records the last update time of the local configuration file.
[0093] Through the automated operation of the Agent service, the EMU gateway can obtain the latest configuration information from the configuration center in real time or on a scheduled basis, achieving rapid response to system or business needs. Automated configuration updates reduce manual intervention and reduce the error rate. This solves the problem that traditional configuration update methods often require manual intervention, which is not only inefficient but also prone to errors.
[0094] Preferably, the Agent service is a TCP layer 4 oriented service.
[0095] Usually, an EMU gateway has point information of multiple devices to be read, but the information between each device is communicated through 4G / 5G. This application builds all functions into the Agent service. The Agent service is a service for TCP layer 4. The Agent service reads the configuration of the configuration center through TCP layer 4. The configuration center is deployed independently. Through regular interaction with the configuration center, the corresponding PCS, BMS and other information to be accessed will be refreshed in the local file. The configuration has been updated to the latest through regular refresh.
[0096] By adopting the Agent and configuration center approach, configuration independence can be achieved, and the configuration read by the Agent comes from the configuration center instead of being embedded in the business IOT gateway. Information can be refreshed through collaborative interaction, which is more reliable and stable, decoupled from the business, and reduces the pressure on the business gateway.
[0097] Specifically, first, an Agent service is pre-integrated in the operating system or firmware of the EMU gateway. The Agent service is specially designed to interact with the configuration center and is responsible for obtaining the latest configuration information from the configuration center. The Agent service establishes a connection with the configuration center through a preset communication protocol (such as HTTP, HTTPS, MQTT, etc.). The Agent service checks whether the current time has reached the preset update time regularly (such as every hour, every day, etc.). This time point can be fixed (such as 1 a.m. every day) or configurable. If the current time reaches the set update time, the Agent service will send a request to the configuration center to obtain the latest configuration information. The configuration information may include various types of data such as network settings, security policies, and business logic parameters. Finally, after receiving the response from the configuration center, the Agent service will parse the configuration information. After the parsing is completed, the Agent service will flush the configuration information to the local file of the EMU gateway. At the same time, the Agent service will also record the last update time of the local configuration file to implement troubleshooting and recovery operations when problems occur.
[0098] Preferably, the set communication protocol is MQTT.
[0099] In some possible embodiments, step S300 includes: first, the IOT device reports by reading the original signal; then it passes through the EMU gateway, and the gateway is mapped through the configuration template. A unified data structure is stored upstream, and the point information is converted into a readable form; finally, it is reported to the cloud.
[0100] Among them, in the above embodiment, a specific implementation method is: after receiving the data reading instruction, according to the preset universal point template, a request is sent to each device to read the original signal or data; then the read data is sent to the EMU gateway, and inside the gateway, the received original data is processed according to the configured mapping relationship template; after the mapping process, the data is converted into a data structure that is common to all upstream systems; finally, the data processed by the EMU gateway is reported to the cloud.
[0101] The mapping process may include data type conversion (such as converting analog signals into digital values), data unit unification (such as unifying the temperature units of different devices into Celsius), and data accuracy adjustment.
[0102] In the process of data reading, a possible implementation method is that in actual application, the IOT gateway may not directly rely on the configuration reading process of the EMU gateway, and the data reading and output process of the IOT gateway may be performed independently of the configuration update process of the EMU gateway.
[0103] Another possible implementation is that in actual applications, in order to ensure the stability and consistency of the entire system, the data reading operation of the IOT gateway will also be performed after the EMU gateway configuration is updated.
[0104] The present application is not limited to the above two methods, and can be selected according to the design and requirements of the system.
[0105] like Figure 4 As shown in the figure, when the configuration is issued, the configuration center generates and issues the configuration, establishes a communication connection with the EMU gateway through the MQTT communication protocol, subscribes to and reads the configuration issued by the configuration center through the built-in Agent service, and then the Agent service sends the command to the devices PCS1 and PCS2 to wait for the read point command.
[0106] Today's energy storage architecture is composed of batteries, PCS, electric meters, EMU, liquid cooling, fire protection and other equipment. In traditional energy storage architecture solutions, communication protocols such as RS485 and CAN are used and reading is carried out using communication lines. With the rapid development of 4G and 5G networks, each device can interact with each other using 4G and 5G communication methods, thus realizing wireless communication between devices.
[0107] The EMU gateway is an important device for connecting various devices and reading information from various devices. It is an indispensable device in wireless sensor networks. Since the IOT gateway device has limited computing and storage resources, in this application, the acquisition and accuracy of configuration information are provided and guaranteed by the configuration center, and the communication protocol is issued in MQTT rather than guaranteed by collaboration between configurations. The advantage of this is that computing resources not related to the business are processed by the Agent service in the EMU gateway, while also ensuring stability, solving the problem that once the EMUs of all devices fail, only one device survives and it is likely that configuration synchronization and collaboration will not be possible.
[0108] like Figure 5 As shown in the figure, after the configuration center sends the mapping point template, the Agent service in the EMU gateway reads the point information template through MQTT on the one hand, and reads the point information of devices PCS1 and PCS2 on the other hand, matches the point information with the mapping point template, and reads the information of related devices.
[0109] Today's energy storage architecture is composed of batteries, PCS, electricity meters, EMU, liquid cooling, fire protection and other equipment, and different equipment may be used for different scenarios. The reading of point information between different devices is different. In order to ensure the normal reading of the equipment and send it to the application service, what needs to be done is that different devices need to be developed separately.
[0110] This application ensures the standardization of data through a mapping scheme for point information. The point information mapping can be added, deleted, and modified through platform definition, and saved in real time to the database. Finally, the IOT gateway only needs to read the device point information through MQTT, which is lightweight, fast, convenient, and safe.
[0111] In another embodiment of the present application, a gateway collaborative configuration and data output system is provided, including: a configuration center, a general point definition and mapping module, an EMU gateway configuration management module and a data output module.
[0112] The configuration center is used to store, manage and dynamically update the configuration information of all services in the system.
[0113] The general point definition and mapping module is set in the configuration center, and is used to obtain the points of all device types and devices of various manufacturers in the Internet of Things gateway, and generate a general point template and a mapping relationship template.
[0114] The EMU gateway configuration management module is provided with a built-in Agent service for regularly reading configuration information from the configuration center and writing the configuration information locally.
[0115] The data output module is used to read data from various devices according to the general point template and mapping relationship template after receiving the read information, and process the read data and convert it into a unified output format for output.
[0116] The technologies specifically implemented by each module in the above system embodiment of the present application can refer to the corresponding steps in the above method embodiment, which will not be repeated here.
[0117] Preferably, the Agent service is a TCP layer 4 oriented service for reading and managing location information of multiple devices, and the Agent service communicates through a 4G / 5G network.
[0118] In another embodiment of the present application, a terminal is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can be used to execute the above-mentioned gateway collaborative configuration and data output method when executing the program.
[0119] In another embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, it can be used to execute the above-mentioned gateway collaborative configuration and data output method.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0124] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0125] The above describes the specific embodiments of the present application. It should be understood that the present application is not limited to the above specific embodiments, and those skilled in the art can make various modifications or variations within the scope of the claims, which does not affect the substantive content of the present application. The above preferred features can be used in any combination without conflicting with each other.
Claims
1. A gateway collaborative configuration and data output method, It is characterized in that The method comprises: Obtaining the points of all device types and devices of various manufacturers in the IoT gateway, generating a general point template and a mapping relationship template, and saving the generated general point template and mapping relationship template in the configuration center; The Agent service built into the EMU gateway automatically reads the latest configuration from the configuration center and writes the read configuration to a local file; After receiving the data reading instruction, data is read from each device according to the general point template and the mapping relationship template, and the read data is processed and converted into a unified output format for output.
2. A gateway collaborative configuration and data output method according to claim 1, It is characterized in that The method of obtaining the points of all device types and devices of various manufacturers in the IoT gateway, generating a general point template and a mapping relationship template, and saving the generated general point template and mapping relationship template in the configuration center includes: Get the points of all device types in the IoT gateway and generate a universal point template; The configuration center defines the mapping relationship between the equipment of each manufacturer and the general point template through the generated general point template and the equipment of each manufacturer, and generates a mapping relationship template; The generated general point template and the mapping relationship template are stored in the configuration center.
3. A gateway collaborative configuration and data output method according to claim 2, It is characterized in that After the generated general point template and mapping relationship template are saved in the configuration center, it also includes: Monitor the device information in real time, determine whether it is necessary to add, delete or modify the current device information, and if so, add, delete or modify the general point template, and generate a new general point template; The generated new universal point template is point mapped with the equipment of the corresponding manufacturer to generate the new mapping relationship template, and is saved in the configuration center.
4. A gateway collaborative configuration and data output method according to claim 1, It is characterized in that The built-in Agent service of the EMU gateway automatically reads the latest configuration from the configuration center and writes the read configuration to the local file, including: At least one Agent service is built into the EMU gateway, and the Agent service establishes communication with the configuration center through a set communication protocol; Get the current time and the set time, and determine whether the set time has been reached. If so, the Agent service reads the configuration information from the configuration center; The Agent service writes the parsed configuration information to the local file of the EMU gateway and records the last update time of the local configuration file.
5. A gateway collaborative configuration and data output method according to claim 4, It is characterized in that The communication protocol set is MQTT.
6. A gateway collaborative configuration and data output method according to claim 1, It is characterized in that The Agent service is a TCP layer 4 oriented service.
7. A gateway collaborative configuration and data output method according to claim 1, It is characterized in that The configuration center is independently set up and interacts with the Internet of Things gateway and the EMU gateway.
8. A gateway collaborative configuration and data output system, It is characterized in that include: Configuration center, used to store, manage and dynamically update the configuration information of all services in the system; A general point definition and mapping module is provided in the configuration center, and is used to obtain the points of all device types and devices of various manufacturers in the IoT gateway, and generate a general point template and a mapping relationship template; The EMU gateway configuration management module is provided with a built-in Agent service for regularly reading configuration information from the configuration center and writing the configuration information to the local computer; The data output module is used to read data from each device according to the universal point template and the mapping relationship template after receiving the read information, and process the read data and convert it into a unified output format for output.
9. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, it can be used to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, it can be used to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Remote control method and device for energy storage equipment and energy storage system
CN121000752A
