A method, device and storage medium for managing carbon emissions

By automatically parsing and converting protocol data from different types of on-site smart instruments, it solves the problems of complexity and inefficiency in collecting and managing carbon emission data, and achieves efficient carbon emission data collection and management.

CN116709059BActive Publication Date: 2024-09-06GUANGDONG ESHORE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310689475.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-09-06
Estimated Expiration
2043-06-09

AI Technical Summary

Technical Problem

When collecting and managing carbon emission data, existing technologies require separate analysis for different types of on-site smart instruments, which results in complex, cumbersome and inefficient work, and the installation and deployment process may affect enterprise production.

Method used

The original protocol protocol data frame of the electronic device is obtained through the carbon emission data collection device and transparently transmitted to the protocol engine system. The protocol engine system automatically parses and converts it into the target protocol message agreed upon by the dual-carbon system, and transmits it to the dual-carbon system for processing. Visual management of carbon emissions avoids manual analysis of each agreement individually.

Benefits of technology

It improves the efficiency of data collection and management, simplifies the on-site deployment process, reduces the difficulty and cost of construction, is suitable for different types of equipment terminals, and achieves efficient visual management of carbon emissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116709059B
    Figure CN116709059B
Patent Text Reader

Abstract

The present invention discloses a carbon emission management method, device and storage medium. The present invention obtains the original protocol data frame of the electronic device through the carbon emission data acquisition device, and transmits the original protocol data frame to the protocol engine system. The protocol engine system parses the original protocol data frame and converts it into a target protocol message agreed upon by the dual-carbon system. There is no need to manually parse the specific protocol situation of the electronic device separately. The protocol engine system can automatically parse and realize protocol conversion, which is convenient and fast, and is conducive to improving conversion efficiency; the target protocol message is transmitted to the dual-carbon system, and the carbon emission is visualized by the dual-carbon system. The converted target protocol message is automatically transmitted to the dual-carbon system for visualized management, which is conducive to improving the management effect and management efficiency of carbon emissions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of carbon emissions, and in particular to a carbon emission management method, device and storage medium. Background Art

[0002] With the emergence of energy requirements for energy conservation and carbon reduction, helping to achieve "carbon peak" and "carbon neutrality" is the goal of each enterprise, park, and factory. In order to achieve this goal, a large number of enterprises, parks, and factories need to timely understand their own energy consumption and carbon emissions, and manage carbon emissions to provide a strong basis for energy conservation and carbon reduction.

[0003] Nowadays, in order to collect data related to carbon emissions, companies will install and deploy data transmission units (DTUs) at the front end of each field smart meter to connect to the field smart meter, and then use the data transmission unit (DTU) to collect data to avoid manual meter reading. However, due to the large number of field smart meter types and communication protocols (such as ModBusRTU, DLT645, etc.), the traditional debugging method requires technicians to analyze the specific protocol of each field smart meter separately, which is complicated and inefficient. Summary of the invention

[0004] In view of this, in order to solve at least one of the above-mentioned technical problems, an object of the present invention is to provide a carbon emission management method, device and storage medium to improve management efficiency and convenience.

[0005] An embodiment of the present invention provides a carbon emission management method, including:

[0006] Acquire the original protocol data frame of the electronic device through the carbon emission data collection device, and transparently transmit the original protocol data frame to the protocol engine system;

[0007] The protocol engine system parses the original protocol data frame and converts it into a target protocol message agreed upon by the dual-carbon system, and transmits the target protocol message to the dual-carbon system;

[0008] The carbon emission visual management of the target protocol message is performed through the dual-carbon system.

[0009] Furthermore, the carbon emission data collection device includes an infrared photoelectric sensor and a collection unit; the process of obtaining the original protocol data frame of the electronic device through the carbon emission data collection device includes:

[0010] The infrared photoelectric probe is used to read the data of the electronic device in real time or at a fixed time by non-invasive means, and the read data of the electronic device is transmitted to the acquisition unit;

[0011] The data of the electronic device is acquired by the acquisition unit to obtain the original protocol data frame of the electronic device.

[0012] Further, the parsing and converting of the original protocol data frame into a target protocol message agreed upon by the dual-carbon system by the protocol engine system includes:

[0013] Determining the protocol type of the original protocol data frame by the protocol engine system;

[0014] According to the protocol type, the original protocol data frame is transmitted to the Modbus protocol conversion unit or the DLT protocol conversion unit of the protocol engine system for parsing and conversion into the target protocol message agreed upon by the dual-carbon system.

[0015] Further, the determining the protocol type of the original protocol data frame by the protocol engine system includes:

[0016] The original protocol data frame is transmitted to the Modbus protocol conversion unit, and when the Modbus protocol conversion unit successfully reads the machine address, it is determined that the protocol type is Modbus, otherwise it is DLT;

[0017] Alternatively, the original protocol data frame is transmitted to the DLT protocol conversion unit, and when the Modbus protocol conversion unit successfully reads the 68 frame header, it is determined that the protocol type is DLT, otherwise it is Modbus.

[0018] Further, according to the protocol type, the original protocol data frame is transmitted to the Modbus protocol conversion unit or the DLT protocol conversion unit of the protocol engine system for parsing and conversion into the target protocol message agreed upon by the dual-carbon system, including:

[0019] When the protocol type is Modbus, data is extracted from the original protocol data frame according to the Modbus data frame protocol format, and a CRC legitimacy check is performed using the extracted data. When the CRC legitimacy check passes, the data of the same time period and the same number in the extracted data are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system;

[0020] or,

[0021] When the protocol type is DLT, the control code of the original protocol data frame is parsed through the frame control code table, and the data item identification part in the data field of the original protocol data frame is parsed through the data item identification coding table to obtain the parsing result, and the parsing result is decoded and the legality is checked. When the legality check passes, the data with the same time period and the same number in the numerical part of the data field of the original protocol data frame are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system.

[0022] Further, the CRC legitimacy check includes:

[0023] The target byte is selected from the extracted data through the preset register of the Modbus protocol conversion unit, a first XOR operation is performed on a first byte consisting of a high number of preset bits of the target byte and a second byte consisting of the remaining low number of bits, the result of the first XOR operation is stored back in the preset register, the value in the preset register is shifted right by one bit, the highest bit is filled with 0, the lowest bit is shifted out and detected, if the lowest bit is detected to be 0, the step of shifting the value in the preset register right by one bit is returned, if the lowest bit is detected to be 1, the preset register is subjected to a second XOR operation with a preset fixed value, and the result of the second XOR operation is stored back In the preset register, return to the step of shifting the value in the preset register rightward by one bit until the number of shifts is the preset number of bits, return to the step of selecting a target byte from the extracted data through the preset register of the Modbus protocol conversion unit to determine a new target byte, return to the step of performing a first XOR operation on a first byte consisting of a high number of the preset number of bits of the target byte and a second byte consisting of the remaining low number of bits, until all bytes in the extracted data are processed, and when the value in the preset register is equal to the check code in the original protocol data frame, the CRC legitimacy check passes;

[0024] or,

[0025] The legality check includes:

[0026] The DLT protocol conversion unit performs hexadecimal accumulation of the original protocol data frame from the first 68 frame headers to the last byte of data, and ignores high-order overflow in the accumulation result. When the accumulation result is equal to the check code in the original protocol data frame, the legality check is passed.

[0027] Further, the visual management of carbon emissions of the target protocol message through the dual carbon system includes:

[0028] Loading the carbon emission accounting standard library and the carbon emission prediction algorithm model through the dual carbon system;

[0029] Performing carbon emission accounting on the target protocol message according to the carbon emission accounting standard library, and predicting the carbon emission trend according to the prediction algorithm model and the target protocol message;

[0030] The carbon emission accounting results, the predicted carbon emission trend results and at least one of the target protocol messages are displayed.

[0031] The embodiment of the present invention further provides a carbon emission management device, comprising:

[0032] A carbon emission data collection device, used for acquiring the original protocol data frame of the electronic device, and transparently transmitting the original protocol data frame to the protocol engine system;

[0033] A protocol engine system, used for parsing the original protocol data frame into a target protocol message agreed upon by the dual-carbon system, and transmitting the target protocol message to the dual-carbon system;

[0034] The dual carbon system is used to perform visual management of carbon emissions for the target protocol message.

[0035] An embodiment of the present invention also provides a carbon emission management device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the method.

[0036] An embodiment of the present invention also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the method.

[0037] The beneficial effects of the present invention are:

[0038] The original protocol data frame of the electronic device is obtained through the carbon emission data collection device, and the original protocol data frame is transmitted to the protocol engine system, and the original protocol data frame is parsed and converted into the target protocol message agreed upon by the dual-carbon system through the protocol engine system. There is no need to manually parse the specific protocol situation of the electronic device separately. The protocol engine system can automatically parse and realize protocol conversion, which is convenient and fast, and is conducive to improving conversion efficiency; the target protocol message is transmitted to the dual-carbon system, and the carbon emission visualization management of the target protocol message is performed through the dual-carbon system, and the converted target protocol message is automatically transmitted to the dual-carbon system for visualization management, which is conducive to improving the management effect and efficiency of carbon emissions.

[0039] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 Schematic diagram of the steps of the carbon emission management method of the present invention. DETAILED DESCRIPTION

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

[0042] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. 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 limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0044] like Figure 1 As shown, an embodiment of the present invention provides a carbon emission management method, including steps S100-S300:

[0045] S100, obtaining the original protocol data frame of the electronic device through the carbon emission data collection device, and transparently transmitting the original protocol data frame to the protocol engine system.

[0046] Optionally, the carbon emission data collection device includes an infrared photoelectric probe and a collection unit. In step S100, obtaining the original protocol data frame of the electronic device through the carbon emission data collection device includes steps S110-S120:

[0047] S110, reading data of the electronic device in real time or at a fixed time by an infrared photoelectric probe in a non-invasive manner, and transmitting the read data of the electronic device to a collection unit.

[0048] It should be noted that electronic devices include but are not limited to various energy metering equipment, such as electric meters, water meters, gas meters, etc. In the embodiment of the present invention, an infrared photoelectric probe is used to read the data of electronic devices, such as parameter data of various meters, in real time or at a fixed time through a modulated infrared optical port, and then the read data of the electronic devices is transmitted to the acquisition unit through an RS-485 interface.

[0049] Today, there are two ways to collect carbon emissions data:

[0050] 1) Manual meter reading is required to collect various data and perform manual calculations to complete the corporate carbon report. It is too dependent on manual meter reading and the workload is relatively large. It is impossible to efficiently and in real time understand the current energy consumption status of the enterprise, and it is also impossible to meet the requirements of visual management of energy consumption and carbon emissions tracking. 2) Data transmission units DTU are installed and deployed at the front end of each on-site smart meter to connect the on-site smart meter, and then the data transmission unit DTU is used to collect data to avoid manual meter reading. However, due to the large number of on-site smart meter types and communication protocols of on-site smart meters (such as ModBus RTU, DLT645, etc.), the traditional debugging method requires technicians to perform separate analysis according to the specific protocol of each on-site smart meter. The work is complicated and cumbersome, inefficient, and the process of installing and deploying DTU at the front end requires power outage construction, which also has a huge impact on corporate production.

[0051] In the embodiment of the present invention, the data of the electronic device is read in real time or at a fixed time by an infrared photoelectric probe in a non-invasive manner, which is simple, fast, and efficient, and does not require power outage construction, thereby avoiding a huge impact on the production of the enterprise. At the same time, there is no need for technical personnel to perform separate analysis according to the specific protocol conditions of each on-site smart meter. The protocol conversion can be automatically completed through the protocol engine system later, which is more efficient.

[0052] S120: Acquire data of the electronic device through a collection unit to obtain an original protocol data frame of the electronic device.

[0053] Specifically, the acquisition unit includes but is not limited to any one or more processor chips including MCU, FPGA, CPLD, DSP, ARM, etc., and the data of the electronic device is acquired through the acquisition unit to obtain the original protocol data frame of the electronic device.

[0054] S200, parsing the original protocol data frame through the protocol engine system and converting it into the target protocol message agreed upon by the dual-carbon system, and transmitting the target protocol message to the dual-carbon system.

[0055] Optionally, the acquisition unit is connected to the protocol engine system through a variety of networks such as wired, 4G / 5G, WiFi, etc., so that the acquisition unit can transparently transmit the original protocol data frame to the protocol engine system. In an embodiment of the present invention, the protocol engine system is used to automatically parse the standard industrial protocol of various types of fixed energy metering equipment into the target protocol message agreed upon by the dual-carbon system, and send it to the dual-carbon system via MQTT or HTTP protocol.

[0056] Optionally, the protocol engine system sends a polling instruction to the collection unit of the carbon emission data collection device according to the supported standard device protocol type (Modbus, DLT645, etc.). After receiving the instruction, the collection unit of the carbon emission data collection device replies with a response. At this time, the protocol engine system obtains the original protocol data frame to determine the protocol type.

[0057] Among them, in step S200, the original protocol data frame is parsed and converted into the target protocol message agreed by the dual-carbon system through the protocol engine system, including steps S210-S220:

[0058] S210: Determine the protocol type of the original protocol data frame through the protocol engine system.

[0059] Optionally, step S210 includes S2101 or S2102:

[0060] S2101, transmitting the original protocol data frame to the Modbus protocol conversion unit. When the Modbus protocol conversion unit successfully reads the machine address, it determines that the protocol type is Modbus, otherwise it is DLT.

[0061] It should be noted that the data frame structure of the ModBus protocol includes an address field, a function code, data, and a check code. Specifically, the original protocol data frame is transmitted to the Modbus protocol conversion unit. When the Modbus protocol conversion unit successfully reads the machine address, it indicates that the protocol type of the current original protocol data frame is Modbus, otherwise it is DLT.

[0062] S2102, the original protocol data frame is transmitted to the DLT protocol conversion unit. When the Modbus protocol conversion unit successfully reads the 68 frame header, it is determined that the protocol type is DLT, otherwise it is Modbus.

[0063] It should be noted that the DLT protocol data frame is composed of a fixed leading code FE, a fixed 68-frame header, a table address, a control code, a data length, a data field (including a data item identification part and a numerical part), a check code, and a frame tail. Specifically, the original protocol data frame is transmitted to the DLT protocol conversion unit. When the Modbus protocol conversion unit successfully reads the 68-frame header, it indicates that the protocol type of the current original protocol data frame is DLT, otherwise it is Modbus. It should be noted that since the leading code FE is not required to be sent and the number of FEs will vary from manufacturer to manufacturer, the DLT protocol conversion unit in the embodiment of the present invention directly recognizes the fixed 68-frame header, which can improve readability.

[0064] S220. According to the protocol type, the original protocol data frame is transmitted to the Modbus protocol conversion unit or the DLT protocol conversion unit of the protocol engine system for parsing and conversion into the target protocol message agreed upon by the dual-carbon system.

[0065] It should be noted that the target protocol message includes but is not limited to electronic device readings (collected data, values), electronic device ID, timestamp, data type and protocol version, etc.

[0066] Optionally, step S220 includes step S2201 or S2202:

[0067] S2201. When the protocol type is Modbus, extract data from the original protocol data frame according to the Modbus data frame protocol format, and perform CRC legitimacy check on the extracted data. When the CRC legitimacy check passes, put the data in the same time period and the same number in the extracted data into the same subset, and convert all subsets into target protocol messages according to the message agreement format agreed upon by the dual-carbon system.

[0068] Optionally, when the protocol type is Modbus, the original protocol data frame is extracted according to the Modbus data frame protocol format, and the extracted data is used for CRC legitimacy check. When the CRC legitimacy check passes, the data of the same time period and the same number in the extracted data are placed in the same subset. For example, the number can be a unique ID, table number, etc. corresponding to different electronic devices, so that the collected data, the time of collection, and the corresponding electronic device are bound to ensure the source and time accuracy of data collection. Finally, all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system. It should be noted that the protocol conversion includes but is not limited to pre-configuring the message agreement format template agreed upon by the dual-carbon system, extracting the data in the original protocol data frame and filling it into the message agreement format template accordingly, thereby obtaining the target protocol message.

[0069] Optionally, the CRC validity check in S2201 is specifically:

[0070] The target byte is selected from the extracted data through the preset register of the Modbus protocol conversion unit, the first XOR operation is performed on the first byte consisting of the high digits of the preset number of bits of the target byte and the second byte consisting of the remaining low digits, the result of the first XOR operation is stored back in the preset register, the value in the preset register is shifted right by one bit, the highest bit is filled with 0, the lowest bit is shifted out and detected, if the lowest bit is detected to be 0, the step of shifting the value in the preset register right by one bit is returned, if the lowest bit is detected to be 1, the preset register and the preset fixed value are subjected to the second XOR operation, the result of the second XOR operation is stored back in the preset register, the step of shifting the value in the preset register right by one bit is returned, until the number of shifts of the preset number of bits is reached, the step of selecting the target byte from the extracted data through the preset register of the Modbus protocol conversion unit is returned to determine the new target byte, the step of performing the first XOR operation on the first byte consisting of the high digits of the preset number of bits of the target byte and the second byte consisting of the remaining low digits is returned, until all bytes in the extracted data are processed, when the value in the preset register is equal to the check code in the original protocol data frame, the CRC legality check is passed.

[0071] Optionally, a preset register is preset in the Modbus protocol conversion unit, and the number of bits of the preset register and the preset number of bits can be set according to actual needs. For the convenience of explanation, the preset register has a total of 16 bits and the preset number of bits is 8 bits. For example, it is explained as an example, which does not constitute a specific limitation. For example, the target byte is selected from the extracted data (such as the data in the data frame structure of the ModBus protocol) through the preset register, such as the first byte, and the first byte composed of the 8 high-bit digits in the first byte and the second byte composed of the remaining 8 low-bit digits are subjected to the first XOR operation, and the first XOR operation result is stored back in the preset register. Then, the value in the preset register is shifted right by one bit, the highest bit is filled with 0, and the lowest bit is shifted out and detected. If the lowest bit is detected to be 0, the step of shifting the value in the preset register by one bit is returned to the right. If the lowest bit is detected to be 1, the preset register and the preset fixed value are subjected to the second XOR operation, and the second XOR operation result is stored back in the preset register, and the step of shifting the value in the preset register by one bit is returned to the right, until it is moved 8 times, so that a complete eight bits are processed. Then, the step of selecting the target byte from the extracted data through the preset register of the Modbus protocol conversion unit is returned to determine the new target byte, for example, determine the second byte, and the step of performing the first XOR operation on the first byte consisting of the high digits of the preset digits of the target byte and the second byte consisting of the remaining low digits is returned until all bytes in the extracted data are processed, for example, assuming that there are 8 bytes in the extracted data, at this time, all 8 bytes pass the above processing. At this time, when the value in the final preset register is equal to the check code in the original protocol data frame, the CRC legitimacy check passes, otherwise it fails.

[0072] S2202. When the protocol type is DLT, the control code of the original protocol data frame is parsed through the frame control code table, and the data item identification part in the data field of the original protocol data frame is parsed through the data item identification coding table to obtain the parsing result, and the parsing result is decoded and the legitimacy is checked. When the legitimacy check passes, the data with the same time period and the same number in the numerical part of the data field of the original protocol data frame are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system.

[0073] Optionally, a calculation submodule and a coding table submodule are provided in the DLT protocol conversion unit. Specifically, when the protocol type is DLT, the control code of the original protocol protocol data frame is parsed through the frame control code table in the coding table submodule, and the data item identification part in the data field of the original protocol protocol data frame is parsed through the data item identification coding table in the coding table submodule to obtain the parsing result, and the parsing result is decoded and the legality is checked. Among them, when the legality check passes, the data of the same time period and the same number in the numerical part of the data field of the original protocol protocol data frame are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system. Similarly, the protocol conversion includes but is not limited to pre-configuring the message agreement format template agreed upon by the dual-carbon system, extracting the data in the original protocol protocol data frame (such as the numerical part in the data field) and filling it into the message agreement format template accordingly, thereby obtaining the target protocol message.

[0074] Optionally, the legality check in S2202 is specifically as follows:

[0075] The DLT protocol conversion unit accumulates the original protocol data frame from the first 68 frame header to the last byte of data in hexadecimal, and ignores high-bit overflow in the accumulation result. When the accumulation result is equal to the check code in the original protocol data frame, the legality check passes.

[0076] Optionally, the calculation submodule in the DLT protocol conversion unit performs hexadecimal accumulation of single bytes from the first 68 start character to the last byte data end of the data frame and ignores high-bit overflow, that is, the accumulation result is the accumulation result without considering high-bit overflow. If the accumulation result is equal to the check code in the original protocol data frame, the legitimacy check passes, otherwise the legitimacy check fails.

[0077] Optionally, the protocol engine system in the embodiment of the present invention further includes a database and a data visualization application, wherein the database is used to store the target protocol message obtained after the Modbus protocol conversion unit and the DLT protocol conversion unit parse and convert, that is, the converted carbon emission data. The data visualization application is connected to the database and built using open source technologies such as MariaDB, Redis, RabbitMQ, and Spring, and displays the converted carbon emission data in the form of protocol messages agreed upon by the dual-carbon system, as well as the data reporting time and other contents.

[0078] S300, visually manage carbon emissions of target protocol messages through the dual-carbon system.

[0079] It should be noted that the protocol engine system can send the target protocol message to the dual-carbon system via MQTT, HTTP or CoAP protocol. The dual-carbon system processes the data into a warehouse, classifies and processes it, and forms visual applications such as carbon emission measurement and carbon emission accounting, realizing "dual control" management, carbon emission visual analysis and other functions.

[0080] Optionally, the dual-carbon system includes a data aggregation layer, a data analysis layer and a visualization application layer, and step S300 includes steps S310-S330:

[0081] S310, load the carbon emission accounting standard library and carbon emission prediction algorithm model through the dual carbon system.

[0082] Specifically, the dual-carbon system uses the data convergence layer based on MQTT, HTTP or CoAP protocol and adopts JSON data format to complete data exchange and transmission, which is used to aggregate the data converted by the protocol engine system. Then, the data of the data convergence layer is input into the data convergence layer, which has a carbon emission accounting standard library and a carbon emission prediction algorithm model that can be loaded to realize carbon emission measurement, accounting, analysis and prediction functions. Among them, the carbon emission accounting standard library includes 24 industries and peak-related emission accounting standard libraries, manages accounting methods and parameter factors, establishes the relationship between data, formulas and parameters, and can be flexibly adjusted with changes in national policies and requirements; at the same time, it can include multiple prediction algorithm models for predictions of different dimensions, different indicators and directions.

[0083] S320. Perform carbon emission accounting on the target protocol message according to the carbon emission accounting standard library, and predict the carbon emission trend according to the prediction algorithm model and the target protocol message.

[0084] For example, carbon emission accounting can use any one or more methods and formulas in the carbon emission accounting standard library, such as converting carbon dioxide emissions based on the data of the target protocol message, and then performing carbon emission accounting. Take the formula for carbon emission measurement as an example:

[0085] AE=AD*EF

[0086] Among them, AE is the carbon dioxide emissions of the enterprise (unit), the unit is tons of carbon dioxide (tCO2), AD is the carbon dioxide emission activity data, and EF is the carbon emission factor.

[0087] At the same time, one or more carbon emission calculation models can calculate the carbon emissions of each individual energy source each year based on the data of the target protocol message, and predict the carbon emission trends of enterprises and the carbon peak node from the bottom-up based on the current carbon emission baseline of the evaluated object.

[0088] S330: Display at least one of the carbon emission accounting results, the predicted carbon emission trend results, and the target protocol message.

[0089] In the embodiment of the present invention, the visualization application layer is the top layer of the dual-carbon system. On the basis of the data analysis layer, it provides enterprises with a visualization management solution for carbon emissions, builds scenarios such as carbon emission trend analysis and display, carbon emission intensity analysis and display, and carbon inventory, and promotes the internal energy optimization capability level and data standard management of enterprises, and realizes functions such as centralized energy monitoring and collection, conversion, and reporting. For example, the display function can display carbon emission accounting results, predicted carbon emission trend results, and target protocol messages (such as converted data), and the display method can be in the form of pictures, graphics, icons, icons, videos, animated pictures, etc., without specific limitation.

[0090] Compared with the prior art, the carbon emission management method of the embodiment of the present invention 1) solves the problem of meter reading when the enterprise's electricity meter is completely closed and cannot be opened or is in a high-voltage dangerous environment, greatly simplifying the on-site deployment time and reducing the construction difficulty and cost; 2) based on the automatic conversion of commonly used protocols, the device data collection method can be applied to equipment terminals of different types and protocols, without the need for separate development and debugging, improving the efficiency of equipment debugging and data collection, and solving the problems encountered by enterprises in the process of dual-carbon data governance, such as power outages affecting production, many types of equipment protocols, lengthy commissioning and analysis cycles, and lack of information management of energy consumption data; 3) provides enterprises with a carbon emission measurement and management system, and provides enterprises with a carbon emission visualization management solution, to promote the internal energy optimization capability and data standard management of the enterprise, realize energy centralized monitoring and collection, conversion, reporting and other functions, and facilitate carbon emission management.

[0091] The embodiment of the present invention further provides a carbon emission management device, comprising:

[0092] A carbon emission data collection device, used to obtain the original protocol data frame of the electronic device, and transparently transmit the original protocol data frame to the protocol engine system;

[0093] The protocol engine system is used to parse the original protocol data frame and convert it into the target protocol message agreed upon by the dual-carbon system, and transmit the target protocol message to the dual-carbon system;

[0094] The dual carbon system is used to visualize the carbon emissions of target protocol messages.

[0095] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments, and will not be repeated herein.

[0096] An embodiment of the present invention also provides another carbon emission management device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the carbon emission management method of the aforementioned embodiment.

[0097] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments, and will not be repeated herein.

[0098] An embodiment of the present invention also provides a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the carbon emission management method of the aforementioned embodiment.

[0099] The embodiment of the present invention also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the carbon emission management method of the aforementioned embodiment.

[0100] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0101] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0102] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0104] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A carbon emission management method, characterized in that: include: Acquire the original protocol data frame of the electronic device through the carbon emission data collection device, and transparently transmit the original protocol data frame to the protocol engine system; The protocol engine system parses the original protocol data frame and converts it into a target protocol message agreed upon by the dual-carbon system, and transmits the target protocol message to the dual-carbon system; Performing visual management of carbon emissions on the target protocol message through the dual-carbon system; The parsing and converting of the original protocol data frame into the target protocol message agreed upon by the dual-carbon system by the protocol engine system includes: Determining the protocol type of the original protocol data frame by the protocol engine system; According to the protocol type, the original protocol data frame is transmitted to the Modbus protocol conversion unit or the DLT protocol conversion unit of the protocol engine system for parsing and conversion into the target protocol message agreed upon by the dual-carbon system, specifically including: When the protocol type is Modbus, data is extracted from the original protocol data frame according to the Modbus data frame protocol format, and a CRC legitimacy check is performed using the extracted data. When the CRC legitimacy check passes, the data of the same time period and the same number in the extracted data are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system; or, When the protocol type is DLT, the control code of the original protocol data frame is parsed through the frame control code table, and the data item identification part in the data field of the original protocol data frame is parsed through the data item identification coding table to obtain the parsing result, and the parsing result is decoded and the legality is checked. When the legality check passes, the data with the same time period and the same number in the numerical part of the data field of the original protocol data frame are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system.

2. The carbon emission management method according to claim 1, characterized in that: The carbon emission data collection device includes an infrared photoelectric probe and a collection unit; The method of obtaining the original protocol data frame of the electronic device through the carbon emission data collection device includes: The infrared photoelectric probe is used to read the data of the electronic device in real time or at a fixed time by non-invasive means, and the read data of the electronic device is transmitted to the acquisition unit; The data of the electronic device is acquired by the acquisition unit to obtain the original protocol data frame of the electronic device.

3. The carbon emission management method according to claim 1, characterized in that: The determining the protocol type of the original protocol data frame by the protocol engine system includes: The original protocol data frame is transmitted to the Modbus protocol conversion unit, and when the Modbus protocol conversion unit successfully reads the machine address, it is determined that the protocol type is Modbus, otherwise it is DLT; Alternatively, the original protocol data frame is transmitted to the DLT protocol conversion unit, and when the Modbus protocol conversion unit successfully reads the 68 frame header, it is determined that the protocol type is DLT, otherwise it is Modbus.

4. The carbon emission management method according to claim 1, characterized in that: The CRC legitimacy check includes: The target byte is selected from the extracted data through the preset register of the Modbus protocol conversion unit, a first XOR operation is performed on a first byte consisting of a high number of preset bits of the target byte and a second byte consisting of the remaining low number of bits, the result of the first XOR operation is stored back in the preset register, the value in the preset register is shifted right by one bit, the highest bit is filled with 0, the lowest bit is shifted out and detected, if the lowest bit is detected to be 0, the step of shifting the value in the preset register right by one bit is returned, if the lowest bit is detected to be 1, the preset register is subjected to a second XOR operation with a preset fixed value, and the result of the second XOR operation is stored back In the preset register, return to the step of shifting the value in the preset register rightward by one bit until the number of shifts is the preset number of bits, return to the step of selecting a target byte from the extracted data through the preset register of the Modbus protocol conversion unit to determine a new target byte, return to the step of performing a first XOR operation on a first byte consisting of a high number of the preset number of bits of the target byte and a second byte consisting of the remaining low number of bits, until all bytes in the extracted data are processed, and when the value in the preset register is equal to the check code in the original protocol data frame, the CRC legitimacy check passes; or, The legality check includes: The DLT protocol conversion unit performs hexadecimal accumulation of the original protocol data frame from the first 68 frame headers to the last byte of data, and ignores high-order overflow in the accumulation result. When the accumulation result is equal to the check code in the original protocol data frame, the legality check is passed.

5. The carbon emission management method according to claim 1, characterized in that: The visual management of carbon emissions of the target protocol message by the dual-carbon system includes: Loading the carbon emission accounting standard library and the carbon emission prediction algorithm model through the dual carbon system; Performing carbon emission accounting on the target protocol message according to the carbon emission accounting standard library, and predicting the carbon emission trend according to the prediction algorithm model and the target protocol message; The carbon emission accounting results, the predicted carbon emission trend results and at least one of the target protocol messages are displayed.

6. A carbon emission management device, characterized in that: include: A carbon emission data collection device, used for acquiring the original protocol data frame of the electronic device, and transparently transmitting the original protocol data frame to the protocol engine system; A protocol engine system, used for parsing the original protocol data frame into a target protocol message agreed upon by the dual-carbon system, and transmitting the target protocol message to the dual-carbon system; A dual carbon system for visually managing carbon emissions of the target protocol message; The protocol engine system parses and converts the original protocol data frame into a target protocol message agreed upon by the dual-carbon system, including: Determining the protocol type of the original protocol data frame by the protocol engine system; According to the protocol type, the original protocol data frame is transmitted to the Modbus protocol conversion unit or the DLT protocol conversion unit of the protocol engine system for parsing and conversion into the target protocol message agreed upon by the dual-carbon system, specifically including: When the protocol type is Modbus, data is extracted from the original protocol data frame according to the Modbus data frame protocol format, and a CRC legitimacy check is performed using the extracted data. When the CRC legitimacy check passes, the data of the same time period and the same number in the extracted data are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system; or, When the protocol type is DLT, the control code of the original protocol data frame is parsed through the frame control code table, and the data item identification part in the data field of the original protocol data frame is parsed through the data item identification coding table to obtain the parsing result, and the parsing result is decoded and the legality is checked. When the legality check passes, the data with the same time period and the same number in the numerical part of the data field of the original protocol data frame are put into the same subset, and all subsets are converted into target protocol messages according to the message agreement format agreed upon by the dual-carbon system.

7. A carbon emission management device, characterized in that: The carbon emission management device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method as described in any one of claims 1-5.