A method, device and storage medium for measuring carbon emissions
Through edge gateway access to subscription topics, automatically collecting and calculating carbon emission data, solving the problems of low efficiency and poor accuracy of carbon emission measurement in the existing technology, and achieving efficient and reliable carbon emission data transmission and storage.
Patent Information
- Application Number
- CN202310686606.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-09
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-06-09
AI Technical Summary
The existing carbon emission measurement methods are inefficient and inaccurate, manual statistics are cumbersome, data transmission pressure is high, communication abnormalities and data packet loss problems are prone to reduced system reliability and real-time performance.
By generating access configuration information, edge gateway access subscription topics, obtaining carbon emission factors to be updated, generating upgrade software packages, and automatically collecting smart instrument data through the MQTT protocol, calculating and sending carbon emission data, reducing communication burden, improving efficiency and accuracy.
It realizes the automation of carbon emission measurement, reduces manual operations, improves the reliability and accuracy of data transmission, reduces network communication burden, and improves the efficiency and system reliability of carbon measurement.
Smart Images

Figure CN116643774B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of carbon emissions, and in particular to a carbon emissions measurement method, device and storage medium. Background Art
[0002] In order to achieve the dual carbon goals of energy conservation, a large number of enterprises, parks, and factories urgently need to understand their own energy consumption and carbon emissions in a timely manner to provide a strong basis for energy conservation and carbon reduction.
[0003] At present, carbon emission measurement methods usually adopt two methods: 1) Relying on manual meter reading to count the energy consumption of enterprises (such as water, natural gas, electricity, steam, etc.), and completing the carbon emission measurement report of the enterprise through manual measurement. This measure cannot meet the requirements of visual management of energy consumption and carbon emission tracking, and the steps are complicated, the workload is large, and the efficiency is low; 2) Install and deploy the data transmission unit DTU to connect to the on-site intelligent instrument through the RS485 communication interface, and summarize it to the centralized monitoring platform through the data transparent transmission method combined with the Ethernet communication transmission method for protocol analysis and data conversion. The server computing pressure is too large, and it is easy to cause a huge network communication burden and data packet loss, unsuccessful transmission and other problems, resulting in communication anomalies, and reduced system reliability and real-time performance. Summary of the invention
[0004] In view of this, in order to solve at least one of the above technical problems, an object of the present invention is to provide a carbon emission measurement method, device and storage medium to improve the efficiency and accuracy of carbon emission measurement.
[0005] An embodiment of the present invention provides a carbon emission measurement method, including:
[0006] Generate access configuration information; the access configuration information is used for the edge gateway to access the subscription topic;
[0007] Obtaining a carbon emission factor to be updated, and generating an upgrade software package according to the carbon emission factor to be updated;
[0008] The upgrade software package is sent to the edge gateway, and the metering result is obtained through the subscription topic; wherein the metering result includes at least one of a parsing result and a calculation result, the parsing result is a parameter architecture obtained by the edge gateway parsing the generated upgrade software package and replacing the original carbon emission factor, and the calculation result is the carbon emission data calculated by the edge gateway based on the collected smart meter data and the parameter architecture.
[0009] Furthermore, before generating the access configuration information, the method includes:
[0010] Obtain industry field and edge gateway identification parameters;
[0011] According to the industry field and the edge gateway identification parameter, calling the gateway platform to establish a new software package task so that the gateway platform generates a basic software package;
[0012] The basic software package is received and verified, and when the verification passes, the access configuration information is generated.
[0013] Further, obtaining the measurement result through the subscription topic includes:
[0014] Sending a first collection instruction to the edge gateway through the MQTT protocol; the first collection instruction is used to enable the edge gateway to collect the smart meter data to calculate the carbon emission data;
[0015] The carbon emission data is received, and the carbon emission data is stored in a database and / or displayed.
[0016] The embodiment of the present invention provides another carbon emission measurement method, including:
[0017] Receive access configuration information generated by the dual-carbon platform, and access the subscription topic according to the access configuration information;
[0018] receiving an upgrade software package; the upgrade software package is generated by the dual-carbon platform based on the carbon emission factor to be updated;
[0019] Parsing the upgrade software package and replacing the original carbon emission factor to obtain a parameter architecture;
[0020] Collecting smart meter data, and calculating carbon emission data according to the smart meter data and the parameter architecture;
[0021] At least one of the parameter architecture and the carbon emission data is sent to the subscription topic.
[0022] Further, accessing a subscription topic according to the access configuration information includes:
[0023] Configure MQTT settings according to the access configuration information; the access configuration information includes IP, port, account, password, and subscription topic;
[0024] The MQTT protocol connection authentication is performed through the configured MQTT setting items, and when the authentication is successful, the subscription topic is accessed.
[0025] Further, the collecting of smart meter data includes:
[0026] Receiving a first collection instruction issued by the dual-carbon platform through the MQTT protocol;
[0027] In response to the first collection instruction, a second collection instruction is issued to the smart meter to collect the smart meter data of the smart meter.
[0028] Further, the calculating carbon emission data according to the smart meter data and the parameter architecture includes:
[0029] Receiving a basic software package and extracting a carbon measurement scheme in the basic software package; the basic software package is generated by calling a gateway platform based on the industry field and edge gateway identification parameters obtained by the dual carbon platform;
[0030] The carbon metering solution calculates carbon emission data based on the smart meter data and the parameter architecture.
[0031] An embodiment of the present invention further provides a carbon emission metering device, including: a dual carbon platform or an edge gateway;
[0032] The dual carbon platform comprises:
[0033] A generation module, used to generate access configuration information; the access configuration information is used for the edge gateway to access the subscription topic;
[0034] A first acquisition module is used to acquire the carbon emission factor to be updated, and generate an upgrade software package according to the carbon emission factor to be updated;
[0035] The second module is used to send the upgrade software package to the edge gateway and obtain the metering result through the subscription topic; wherein the metering result includes at least one of the parsing result and the calculation result, the parsing result is the parameter architecture obtained by the edge gateway parsing the generated upgrade software package and replacing the original carbon emission factor, and the calculation result is the carbon emission data calculated by the edge gateway based on the collected smart meter data and the parameter architecture;
[0036] The edge gateway comprises:
[0037] The first receiving module is used to receive the access configuration information generated by the dual-carbon platform, and access the subscription topic according to the access configuration information;
[0038] A second receiving module is used to receive an upgrade software package; the upgrade software package is generated by the dual-carbon platform based on the carbon emission factor to be updated;
[0039] An upgrade module, used to parse the upgrade software package and replace the original carbon emission factor to obtain a parameter architecture;
[0040] A calculation module, used for collecting smart meter data, and calculating carbon emission data according to the smart meter data and the parameter architecture;
[0041] A sending module is used to send at least one of the parameter architecture and the carbon emission data to the subscription topic.
[0042] An embodiment of the present invention also provides a carbon emission metering 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 is loaded and executed by the processor to implement the method.
[0043] 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.
[0044] The beneficial effects of the present invention are:
[0045] By generating access configuration information, the access configuration information is used for the edge gateway to access the subscription topic, obtain the carbon emission factor to be updated, generate an upgrade software package according to the carbon emission factor to be updated, send the upgrade software package to the edge gateway, and obtain the metering result through the subscription topic; the metering result includes a parsing result and at least one of the calculation results, the calculation result is the carbon emission data calculated by the edge gateway according to the collected smart meter data and the parameter architecture, the edge gateway automatically collects the smart meter data and uses the edge computing capability to calculate the carbon emission data and send it to the subscription topic, no manual operation is required, and it can reduce the communication burden and the occurrence of data packet loss, improve efficiency and communication reliability, so as to obtain better carbon metering effect; in addition, the edge gateway can parse the parameter architecture obtained by generating the upgrade software package and replacing the original carbon emission factor to realize the update of the edge gateway, so as to ensure the accuracy of carbon emission measurement.
[0046] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic diagram of the application scenario of the present invention;
[0048] Figure 2 A schematic diagram of the steps of a carbon emission measurement method of the present invention;
[0049] Figure 3 The figure is a schematic flow chart of another carbon emission measurement method of the present invention. DETAILED DESCRIPTION
[0050] 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.
[0051] 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.
[0052] 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.
[0053] like Figure 1 As shown, an application scenario of the carbon emission measurement method involved in an embodiment of the present invention includes a smart meter, several edge gateways, a dual-carbon platform and a gateway platform.
[0054] Optionally, the edge gateway supports serial RS485 / RS232 communication, 4G module and edge computing capabilities. The edge gateway can transmit and interact with the dual-carbon platform through the MQTT communication protocol to achieve the function of data reporting.
[0055] Optionally, smart meters include but are not limited to smart electricity meters, smart water meters, smart gas meters and other smart meters with energy metering that have serial communication capabilities, which are connected to the edge gateway through an RS485 / RS232 interface and provide standard protocols for edge gateway collection.
[0056] In the embodiment of the present invention, the dual-carbon platform provides MQTT services, database services, application services and WEB services:
[0057] Application services: including the deployment of various dual-carbon application components to collect, parse, process, convert and store data from edge gateways;
[0058] Database services: deploy and configure database applications;
[0059] MQTT service: Deploy and configure EMQX's MQTT message queue telemetry transmission protocol, which is a client-server based message publish / subscribe transmission protocol used to upload device data and push down instructions.
[0060] WEB service: mainly deploys the website server of the dual-carbon platform, provides services to the requesting terminal (client terminal), stores, processes and delivers web pages to the requesting terminal;
[0061] In the embodiment of the present invention, the gateway platform mainly includes interface services, data analysis services, rule engines, database services and application services:
[0062] Application services: including the deployment of various application components to collect, analyze, and generate software packages;
[0063] Interface service: Provides an http interface that meets the RESTful rules for other systems to query the collected data, and realizes the technical connection between the other system and the gateway platform system;
[0064] Data analysis service: It can pre-process the data of device data source and API data source, create data analysis tasks, and set the data source, processing method and output method to be processed through the data analysis workbench.
[0065] Rule engine: It can perform various calculations, processing, and circulation operations on the messages transmitted between the device and the cloud platform according to the set conditions.
[0066] Database services: deploy and configure database applications;
[0067] WEB service: mainly deploys the website server of the gateway platform, provides services to the requesting terminal, stores, processes and delivers web pages to the requesting terminal.
[0068] like Figure 2 As shown, an embodiment of the present invention provides a carbon emission measurement method, which is applied to the above-mentioned dual carbon platform, including steps S100-S300:
[0069] S100: Generate access configuration information.
[0070] In the embodiment of the present invention, the access configuration information is used for the edge gateway and the gateway platform to access the subscription topic, so that the edge gateway and the gateway platform can send data content to the subscription topic, or receive and view the data content in the subscription topic. Optionally, (IP, port, account, password, subscription topic), the subsequent dual-carbon platform obtains relevant data content through the subscription topic.
[0071] Optionally, the dual-carbon platform may also generate platform information to determine the gateway platform to which the dual-carbon platform sends access configuration information according to the platform information, or provide the edge gateway and the gateway platform with information about the dual-carbon platform that currently generates access configuration information according to the platform information.
[0072] Optionally, before step S100, steps S001-S003 are also included:
[0073] S001. Obtain industry field and edge gateway identification parameters.
[0074] Optionally, when carbon emissions measurement is required, users can create a project information table in the dual carbon platform, and enter relevant information of the collection points in the chemical carbon emissions data monitoring project into the project information table, including but not limited to industry field, project name, project address, collection point name, collection point identification (such as smart instrument identification parameters, edge gateway identification parameters), etc., and organize and archive the information of each point.
[0075] Optionally, after creating the project information table, you can:
[0076] 1) Construction application: Construction personnel with construction qualifications apply for construction and installation application to the enterprise safety department and competent department, fill out the application form and receive safety training. After passing the safety training, they wear construction suits and carry out construction and installation under the supervision of the construction safety liaison person.
[0077] 2) Equipment wiring: Check the instruction manual of the smart meter. Use shielded twisted pair cables. The edge gateway is connected to the smart meter one-to-one. RS485 is hard-wired (A+, B- interfaces). Use a USB to 485 cable to connect to the debugging computer. Use Modbus Poll software to read the corresponding register address of the smart meter, obtain the corresponding power data (smart meter data), and visually check whether it is consistent with the data of the smart meter. After confirmation, make a record and confirm.
[0078] S002. According to the industry field and edge gateway identification parameters, call the gateway platform to establish a new software package task so that the gateway platform generates a basic software package.
[0079] Optionally, the Shuangtan Platform transmits the industry field and gateway identification parameters to the gateway platform through the Http protocol, and establishes a new software package task by calling the Restful API interface of the gateway platform. After the gateway platform receives the successful request, it asynchronously generates the basic software package and returns the success identification and the result to the Shuangtan Platform.
[0080] S003: Receive the basic software package and verify the basic software package. When the verification passes, generate access configuration information.
[0081] Optionally, the dual-carbon platform continues to call the Restful API interface of the gateway platform to establish a download software package task. The dual-carbon platform downloads the software package through the Http protocol. After the gateway platform successfully receives it, it returns the file stream and the basic software package. Then, the dual-carbon platform receives the basic software package and verifies it. When the verification passes, it generates access configuration information.
[0082] S200: Obtain the carbon emission factor to be updated, and generate an upgrade software package according to the carbon emission factor to be updated.
[0083] In the embodiment of the present invention, since the carbon emission factor is constantly changing, for example, it may change according to different updates and improvements of industry fields and relevant specifications, and in order for the carbon emission measurement results calculated by the edge gateway to comply with the latest specifications, the carbon emission factor in the edge gateway needs to be updated to meet actual needs. Specifically, the dual-carbon platform receives the carbon emission factor to be updated that needs to be updated entered by the user, and generates an upgrade software package according to the carbon emission factor to be updated.
[0084] S300: Send the upgrade software package to the edge gateway and obtain the metering results by subscribing to the topic.
[0085] Optionally, the metering result includes at least one of the analysis result and the calculation result. The analysis result is the parameter structure obtained by the edge gateway when parsing the generated upgrade software package and replacing the original carbon emission factor. The parameter structure is sent to the subscription topic through the edge gateway; the calculation result is the carbon emission data calculated by the edge gateway based on the collected smart meter data and the parameter structure. It should be noted that the dual-carbon platform can receive the update object input by the user, that is, one or more edge gateways that need to be updated, and then the dual-carbon platform sends the upgrade software package to these one or more edge gateways that need to be updated. The edge gateway updates the original carbon emission factor and obtains a new parameter structure. The new parameter structure is combined with the collected smart meter data to calculate the carbon emission data, so that the calculation result of the carbon emission data is accurate and meets the latest standards / specifications.
[0086] Optionally, obtaining the measurement result by subscribing to a topic in step S300 includes steps S310-S320:
[0087] S310: Send the first collection instruction to the edge gateway through the MQTT protocol.
[0088] Specifically, when the dual-carbon platform needs to collect relevant data, the dual-carbon platform sends a first collection instruction to the edge gateway in real time or periodically through the MQTT protocol. The edge gateway collects the smart meter data of the smart meter in response to the first instruction and calculates the carbon emission data.
[0089] S320: Receive carbon emission data, store the carbon emission data in a database and / or display it.
[0090] Specifically, the carbon emission data of the edge gateway is sent to the subscription topic, and the dual-carbon platform receives the carbon emission data through the subscription topic, stores the carbon emission data in the database and displays it. For example, carbon emission data and parameter architecture can be stored in the database, and then the carbon emission data and parameter architecture stored in the database are displayed, so that users can timely understand the current parameter architecture of each edge gateway, and then easily determine which edge gateway needs to be updated, and facilitate users to timely and conveniently understand the carbon emission data and manage carbon emissions.
[0091] Optionally, the dual-carbon platform can display carbon emission data and parameter architecture on a large screen, generate a dual-carbon panoramic view, conduct carbon emission management and equipment management (such as edge gateway), generate corresponding reports using carbon emission data and parameter architecture, or generate alarms and alarm information when carbon emission data exceeds the preset value.
[0092] like Figure 3 As shown, an embodiment of the present invention provides another carbon emission measurement method, which is applied to the above-mentioned edge gateway, including steps S400-S800:
[0093] S400: Receive access configuration information generated by the dual-carbon platform, and access the subscription topic according to the access configuration information.
[0094] Optionally, in the initial state, the edge gateway and the dual-carbon platform are connected to the dual-carbon platform through the TCP / IP protocol to obtain information sent by the dual-carbon platform. For example, the edge gateway receives access configuration information generated by the dual-carbon platform and transmitted through the TCP / IP protocol; the access configuration information includes but is not limited to IP, port, account, password, and subscription topic.
[0095] Optionally, accessing the subscription topic according to the access configuration information in step S400 includes S410-S420:
[0096] S410. Configure MQTT setting items according to the access configuration information.
[0097] Optionally, you can log in to the device system of the edge gateway through SSH software in the dual-carbon platform, gateway platform or terminal to manage the gateway background. There is an MQTT setting item in the device system page. Configure IP, port, account, password, access topic and other information in the MQTT setting item. You can subsequently access the public network through 4G / 5G / wired and other methods to connect to the dual-carbon platform.
[0098] S420, perform MQTT protocol connection authentication through the configured MQTT setting items, and access the subscription topic when the authentication is successful.
[0099] Optionally, after the configuration is completed, you can use the configured MQTT setting items to perform MQTT protocol connection authentication. When the authentication is successful, the edge gateway can access the subscription topic.
[0100] It should be noted that the configuration method of the gateway platform is similar to that of the edge gateway. You can log in to the management page of the gateway platform and configure the access configuration information, and perform MQTT protocol connection authentication. When the authentication is successful, the gateway platform accesses the subscription topic.
[0101] S500: Receive the upgrade software package.
[0102] It should be noted that the upgrade software package is generated for the dual-carbon platform based on the carbon emission factors to be updated.
[0103] S600: parse the upgrade software package and replace the original carbon emission factor to obtain a parameter architecture.
[0104] Specifically, after receiving the upgrade software package, the edge gateway automatically parses and upgrades it, replaces the original carbon emission factor with the new carbon emission factor, and obtains an updated parameter architecture.
[0105] Optionally, when actually configuring the MQTT setting items, you can initialize and configure the edge gateway first, then power on the edge gateway, log in to the device system of the smart gateway through the SSH software to perform the above configuration, and then power on again after the upgrade is complete. The user logs in to the device system of the smart gateway through the SSH software to perform gateway background management, and can set the smart gateway collection rules according to the collection requirements, for example:
[0106] 1) Collection time interval setting: for example, automatic collection every 15 minutes or collection based on the first collection instruction of the dual-carbon platform.
[0107] 2) Acquisition communication protocol: Modbus RTU, configuration of Serial, baud rate, data bit, stop bit, parity check
[0108] 3) Collection point configuration: device name, collection point name, slave address, function code, register address, rate, unit
[0109] 4) After the configuration is completed, download and restart the gateway to enable the collection function.
[0110] S700, collect smart meter data, and calculate carbon emission data based on the smart meter data and parameter architecture.
[0111] Optionally, when collecting smart meter data, you can view and proofread the data, check the edge gateway data log and uploaded message fields, extract and proofread the current on-site smart meter status and reported data, ensure that the data is normal and accurate, and process any abnormalities found in the data until the collection of smart meter data is normal.
[0112] Optionally, collecting smart meter data in step S700 includes steps S710-S720:
[0113] S710: Receive a first collection instruction sent by the dual-carbon platform through the MQTT protocol.
[0114] S720: In response to the first collection instruction, issue a second collection instruction to the smart meter to collect smart meter data of the smart meter.
[0115] Specifically, when the dual-carbon platform needs to collect relevant data, it sends a first collection instruction through the MQTT protocol. The edge gateway receives the first collection instruction, responds to the first collection instruction, and sends a second collection instruction to the smart meter to collect the smart meter data of the smart meter.
[0116] Optionally, in step S700, carbon emission data is calculated according to the smart meter data and the parameter architecture, including steps S730-S740:
[0117] S730: Receive a basic software package, and extract a carbon measurement solution from the basic software package.
[0118] S740, through the carbon measurement solution, calculate the carbon emission data based on the smart meter data and parameter architecture.
[0119] In an embodiment of the present invention, the basic software package is generated by calling the gateway platform based on the industry field and edge gateway identification parameters obtained by the dual carbon platform. Optionally, the basic software package may also include a carbon metering scheme, such as a carbon metering calculation method corresponding to the industry code corresponding to the industry field, including but not limited to calculation formulas, etc. Among them, when the gateway platform generates the basic software package, the edge gateway will perform a verification, such as but not limited to determining whether the edge gateway has the carbon emission factor corresponding to the industry field, whether the identification parameters of the edge gateway correspond to the edge gateway identification parameters in the basic software package, etc. When the verification passes, the edge gateway extracts the carbon metering scheme in the basic software package, and subsequently enables the carbon metering scheme, and calculates the carbon emission data through the carbon metering scheme combined with the smart meter data and parameter architecture.
[0120] It should be noted that when different specifications and standards are updated, when the carbon metering scheme is also updated, the dual-carbon platform can update the carbon metering scheme. For example, the updated carbon metering scheme can be carried in the access configuration information, so that the basic software package carries the updated carbon metering scheme for the edge gateway to use to calculate carbon emission data.
[0121] For example, a carbon accounting scheme could include:
[0122] 1) Coal, oil, natural gas, and other calculation formulas: CO2 (tons) = the sum of the quantity of each energy type (unit) * low calorific value (MJ / unit fuel) * carbon emission factor (g CO2 / MJ) / 1,000,000;
[0123] 2) Calculation formula for carbon emissions from electricity and heat: Carbon dioxide (tons) = electricity / heat quantity (unit) * carbon emission factor (tons of carbon dioxide / million kilojoules).
[0124] The reference values of carbon emission factors in edge gateways are shown in Table 1:
[0125] Table 1
[0126]
[0127]
[0128] S800: Send at least one of the parameter architecture and the carbon emission data to a subscription topic.
[0129] Optionally, the parameter architecture and the carbon emission data are sent to the subscription topic, so that the dual-carbon platform and the gateway platform can obtain the parameter architecture and the carbon emission data through the subscription topic.
[0130] Optionally, the dual-carbon platform can perform data proofreading on the metering results obtained in the subscribed topic. After the dual-carbon platform verifies whether the uploaded carbon emission data is read by the collection device, determines the multiplier and the message data structure, click Complete Upload Configuration to store it in the database for warehousing, and displays the data in the database on the display page. The data can be viewed by logging into the dual-carbon platform.
[0131] Compared with the prior art, the carbon emission measurement method of the embodiment of the present invention:
[0132] 1. Convert the company's smart meter data, such as electricity consumption data, into carbon emission data. Combined with the company's carbon management concept, it can more effectively improve the availability of data, realize centralized energy monitoring and collection, conversion, reporting and other functions, provide a data basis for the company's low-carbon energy-saving measures, and facilitate the company's standardized management of carbon emission data;
[0133] 2. Smart meters, edge gateways, dual-carbon platforms and gateway platform modules work together to establish links and interactions, and complete the automatic generation and conversion of carbon emission data. There is no need to manually collect data for reporting, which solves the huge network communication burden caused by the large amount of data generated by the centralized communication structure of the existing carbon emission data measurement, reduces the amount of data transmitted, reduces the data transmission and cloud server processing pressure, improves the efficiency, convenience and flexibility of energy consumption collection and carbon emission data collection, and facilitates the rapid management and application of carbon emission data by relevant departments. In addition, after completing the data conversion at the front end, the front-end data tamper-proof function can also be realized to enhance the data security of carbon emission data;
[0134] 3. With the continuous changes in carbon emission standards and specifications, the latest carbon emission factors and methodologies are configured through the dual-carbon platform, and then sent to the corresponding gateway in the form of a software package through the gateway platform, which effectively solves the subsequent gateway parameter updates and the accuracy of carbon emission accounting.
[0135] The embodiment of the present invention further provides a carbon emission metering device, comprising:
[0136] Dual-carbon platform or edge gateway;
[0137] The dual carbon platform includes:
[0138] A generation module is used to generate access configuration information; the access configuration information is used for the edge gateway to access the subscription topic;
[0139] A first acquisition module is used to acquire the carbon emission factor to be updated and generate an upgrade software package according to the carbon emission factor to be updated;
[0140] The second module is used to send the upgrade software package to the edge gateway and obtain the metering result by subscribing to the topic; wherein the metering result includes at least one of the parsing result and the calculation result, the parsing result is the parameter structure obtained by the edge gateway parsing the generated upgrade software package and replacing the original carbon emission factor, and the calculation result is the carbon emission data calculated by the edge gateway based on the collected smart meter data and the parameter structure;
[0141] The edge gateway includes:
[0142] The first receiving module is used to receive the access configuration information generated by the dual-carbon platform and access the subscription topic according to the access configuration information;
[0143] The second receiving module is used to receive an upgrade software package; the upgrade software package is generated by the dual-carbon platform based on the carbon emission factor to be updated;
[0144] An upgrade module is used to parse the upgrade software package and replace the original carbon emission factor to obtain a parameter architecture;
[0145] The calculation module is used to collect smart meter data and calculate carbon emission data based on the smart meter data and parameter architecture;
[0146] The sending module is used to send at least one of the parameter architecture and the carbon emission data to a subscription topic.
[0147] 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.
[0148] An embodiment of the present invention also provides another carbon emission metering 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 metering method of the aforementioned embodiment.
[0149] 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.
[0150] 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 measurement method of the aforementioned embodiment.
[0151] 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. The processor of the 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 measurement method of the above embodiment.
[0152] 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.
[0153] 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.
[0154] 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.
[0155] 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.
[0156] 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 measurement method, characterized in that: include: Generate access configuration information; the access configuration information is used for the edge gateway to access the subscription topic; The dual-carbon platform obtains the carbon emission factor to be updated, and generates an upgrade software package according to the carbon emission factor to be updated; The dual-carbon platform sends the upgrade software package to the edge gateway and obtains the metering result through the subscription topic; wherein the metering result includes at least one of the parsing result and the calculation result, and the parsing result is the parameter architecture obtained by the edge gateway parsing the generated upgrade software package and replacing the original carbon emission factor; The generating of access configuration information includes: the dual carbon platform obtains the industry field and the edge gateway identification parameters, and according to the industry field and the edge gateway identification parameters, calls the gateway platform to establish a new software package task so that the gateway platform generates a basic software package, receives the basic software package and verifies the basic software package, and when the verification passes, generates the access configuration information; The edge gateway is used to extract the carbon metering scheme in the basic software package, and the calculation result is the carbon emission data calculated by the edge gateway through the carbon metering scheme according to the collected smart meter data and the parameter architecture.
2. The carbon emission measurement method according to claim 1, characterized in that: The obtaining of the measurement result through the subscription topic includes: Sending a first collection instruction to the edge gateway through the MQTT protocol; the first collection instruction is used to enable the edge gateway to collect the smart meter data to calculate the carbon emission data; The carbon emission data is received, and the carbon emission data is stored in a database and / or displayed.
3. A carbon emission measurement method, characterized in that: include: Receive access configuration information generated by the dual-carbon platform, and access the subscription topic according to the access configuration information; Receive upgrade packages; The upgrade software package is generated for the dual-carbon platform based on the carbon emission factor to be updated; Parsing the upgrade software package and replacing the original carbon emission factor to obtain a parameter architecture; Collecting smart meter data, and calculating carbon emission data according to the smart meter data and the parameter architecture, including: receiving a basic software package, extracting a carbon measurement scheme in the basic software package, and calculating carbon emission data according to the smart meter data and the parameter architecture through the carbon measurement scheme; Sending at least one of the parameter architecture and the carbon emission data to the subscription topic; The generation of the access configuration information includes: the dual-carbon platform obtains the industry field and the edge gateway identification parameters, and calls the gateway platform to establish a new software package task according to the industry field and the edge gateway identification parameters, so that the gateway platform generates a basic software package, receives the basic software package and verifies the basic software package, and generates the access configuration information when the verification passes.
4. The carbon emission measurement method according to claim 3, characterized in that: The accessing a subscription topic according to the access configuration information includes: Configure MQTT settings according to the access configuration information; the access configuration information includes IP, port, account, password, and subscription topic; The MQTT protocol connection authentication is performed through the configured MQTT setting items, and when the authentication is successful, the subscription topic is accessed.
5. The carbon emission measurement method according to claim 4, characterized in that: The collecting of smart meter data includes: Receiving a first collection instruction issued by the dual-carbon platform through the MQTT protocol; In response to the first collection instruction, a second collection instruction is issued to the smart meter to collect the smart meter data of the smart meter.
6. A carbon emission metering device, characterized in that: include: Dual-carbon platform or edge gateway; The dual carbon platform comprises: A generation module, used to generate access configuration information; the access configuration information is used for the edge gateway to access the subscription topic; A first acquisition module is used to acquire the carbon emission factor to be updated, and generate an upgrade software package according to the carbon emission factor to be updated; The second module is used to send the upgrade software package to the edge gateway and obtain the metering result through the subscription topic; wherein the metering result includes at least one of a parsing result and a calculation result, the parsing result is a parameter structure obtained by the edge gateway parsing the generated upgrade software package and replacing the original carbon emission factor, and the calculation result is the carbon emission data calculated by the edge gateway based on the collected smart meter data and the parameter structure; The edge gateway comprises: The first receiving module is used to receive the access configuration information generated by the dual-carbon platform, and access the subscription topic according to the access configuration information; A second receiving module is used to receive an upgrade software package; the upgrade software package is generated by the dual-carbon platform based on the carbon emission factor to be updated; An upgrade module, used to parse the upgrade software package and replace the original carbon emission factor to obtain a parameter architecture; A calculation module, used for collecting smart meter data, and calculating carbon emission data according to the smart meter data and the parameter architecture; A sending module, configured to send at least one of the parameter architecture and the carbon emission data to the subscription topic; Among them, the step of generating access configuration information includes: the dual carbon platform obtains the industry field and the edge gateway identification parameters, and calls the gateway platform to establish a new software package task according to the industry field and the edge gateway identification parameters, so that the gateway platform generates a basic software package, receives the basic software package and verifies the basic software package, and generates the access configuration information when the verification passes; The edge gateway is used to extract the carbon metering scheme in the basic software package, and calculate the carbon emission data based on the collected smart meter data and the parameter architecture through the carbon metering scheme.
7. A carbon emission metering device, characterized in that: The carbon emission metering 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 to 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.
