An energy data switching system
Patent Information
- Application Number
- CN202510441961.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]本发明的目的在于提供一种能源数据转接系统,用于解决现有技术中将能源数据持续转接至统一的云平台时效率较低、转接过程较复杂导致难以实现能源数据的实时转接调用的问题
[0015] The above-described technical solution of this invention provides a novel energy data transfer system, the beneficial effects of which include: acquiring and transferring energy data from the corresponding energy data collection module through an energy data transfer platform; utilizing the uniqueness of the measurement points acquiring the energy data (represented by the MAC address of the measurement point device); for each group of energy data information with different measurement points, formatted data is organized according to the data structure required by the cloud platform to be transferred before storage; and each group of formatted data contains a measurement point number as an identifier, allowing for identification of energy data information from different measurement points before, during, and after transfer; based on unified format storage and effective differentiation of each group of data, the formatted data can be directly transferred to the cloud platform; thus, this transfer system unifies the storage format before transfer and ensures that the unified formatted energy data information is not confused with each other; the stored formatted data can be transferred to the cloud platform without special protocols, and the data format meets the requirements of the cloud platform, allowing direct access by the cloud platform; therefore, it effectively improves transfer efficiency, simplifies the transfer process, and facilitates real-time transfer and access of energy data.
Smart Images

Figure CN122933799A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of energy big data technology, and specifically relates to an energy data transfer system. Background Technology
[0002] Energy big data technology is considered a crucial component of "Internet+" smart energy. It plays a significant role in driving my country's energy revolution, facilitating energy transition, and stimulating innovation in the energy industry. Specifically, energy internet interconnection technology effectively manages various resources within the energy system through data interconnection, utilizing big data and the Internet of Things (IoT) technologies to provide more convenient services for energy data transfer, achieving decentralization in the energy industry and forming a free-trading energy internet market. Energy data transfer technology refers to the standardization and transformation of data from different energy devices and monitoring systems through specific technical means to facilitate unified data management and analysis. These technologies ensure data compatibility and interoperability across different systems and are an important part of the energy big data technology system.
[0003] However, traditional energy data interoperability suffers from diverse data structures and difficulty in unification. This necessitates customized interface protocols for different energy types, resulting in lengthy data transfer cycles. Furthermore, data transferred through customized interface protocols often exhibits inconsistent energy data models and irregular storage. Consequently, continuously transferring large amounts of energy data to a unified cloud platform is not only inefficient but also complex, making it difficult to achieve real-time transfer and retrieval of energy data. Summary of the Invention
[0004] The purpose of this invention is to provide an energy data transfer system to solve the problems of low efficiency and complex transfer process in the prior art when continuously transferring energy data to a unified cloud platform, which makes it difficult to achieve real-time transfer and access of energy data.
[0005] To achieve the above objectives, the present invention provides an energy data transfer system, including an energy data transfer platform for receiving a pre-formatted message containing energy data information transmitted by a corresponding energy data collection module; the energy data information includes the MAC address and data value of the measuring device corresponding to the energy data. The energy data transfer platform is also used to obtain energy data information by parsing the predefined format message, obtain the corresponding measurement point number of the energy data by the correspondence between the energy data information and the preset MAC address of the measurement point device and the measurement point number; use the energy data information and the measurement point number to obtain the formatted data of the data structure required by the cloud platform to be transferred and store it; and transfer the stored formatted data to the cloud platform to be transferred. The formatted data includes the measurement point number and the corresponding data value for the energy data.
[0006] Furthermore, the formatted data also includes calculated values and data status; the data status includes the carbon emission to be calculated status and the calculated carbon emission to be uploaded status. The energy data transfer platform is also used to read the data value corresponding to the energy data required for calculating carbon emissions from the formatted data whose stored data status value corresponds to the carbon emission status to be calculated, by using the measurement point number in the formatted data, and send it to the functional module used to calculate carbon emissions; receive the carbon emission calculation result, use the carbon emission calculation result as the calculation value, update the corresponding formatted data, and change the data status value in the formatted data to the value corresponding to the carbon emission status to be uploaded.
[0007] Furthermore, the data status also includes the uploaded status; The energy data transfer platform is also used to change the value of the data status in the formatted data to the value corresponding to the uploaded status after transferring the stored formatted data to the cloud platform to be transferred; after a certain period of time, the formatted data with the value corresponding to the uploaded status is deleted from the stored formatted data.
[0008] Furthermore, the formatted data also includes data type, terminal number, cloud platform type, and cloud platform number; The method of obtaining the formatted data of the required data structure of the cloud platform to be transferred using energy data information and measurement point numbers includes: obtaining the cloud platform number of the cloud platform to be transferred based on the configuration information of the energy data transfer platform, and obtaining the cloud platform type; sending the cloud platform number and cloud platform type to the corresponding authentication interface to perform access permission authentication of the cloud platform to be transferred; if the access permission authentication is successful and the measurement point number corresponding to the energy data has been obtained, obtaining the terminal number corresponding to the measurement point number by accessing the device information stored in the cloud platform to be transferred, and obtaining the data type corresponding to the measurement point number by accessing the measurement point information stored in the cloud platform to be transferred; and storing the obtained cloud platform number, cloud platform type, terminal number, and data type into the formatted data of the required data structure of the cloud platform to be transferred.
[0009] Furthermore, it also includes an energy management sub-platform; The energy management sub-platform is used to receive a pre-formatted message containing energy data information transmitted by its corresponding energy data collection module; obtain the energy data information by parsing the pre-formatted message; obtain the corresponding measurement point number by using the correspondence between the energy data information and the preset MAC address and measurement point number of the measurement point device; and obtain the formatted data of the data structure required by the cloud platform to be transferred using the energy data information and the measurement point number. The energy data transfer platform is also used to receive and store formatted data transmitted from the energy management sub-platform.
[0010] Furthermore, the data status also includes a pending status, a processed and pending-upload status, and an unprocessed and pending-upload status; the carbon emission status to be calculated includes a processed and unprocessed carbon emission status. The methods for obtaining and storing formatted data with the required data structure for the cloud platform to be transferred, using energy data information and measurement point numbers, include: Based on the measurement point number, determine whether the data status corresponding to the energy data information is pending processing, unprocessed and awaiting upload, or unprocessed and awaiting carbon emission calculation. Then, using the determined data status, energy data information, and measurement point number, obtain the formatted data of the data structure required by the cloud platform to be transferred and store it. If the data status in the formatted data is pending processing, the corresponding processing method is determined according to the measurement point number. The data value corresponding to the energy data in the formatted data is processed, and the data value corresponding to the energy data in the formatted data is updated according to the processed data value. According to the measurement point number, the data status in the formatted data is updated to either processed and awaiting upload or processed and awaiting carbon emission calculation. The methods for transferring stored formatted data to the cloud platform to be transferred include: selecting formatted data from the stored formatted data whose data status values correspond to the status of processed and awaiting upload, unprocessed and awaiting upload, or carbon emission calculation and awaiting upload, and transferring them to the cloud platform to be transferred.
[0011] Furthermore, the energy data transfer platform is also used to provide configuration channels for the communication protocols and rules used by the corresponding energy data collection modules and energy management sub-platforms for data transmission. The energy data transfer platform receives the pre-formatted message containing energy data information transmitted by its corresponding energy data collection module in the following ways: according to the communication protocol and communication rules used by the corresponding energy data collection module for data transmission, the energy data transfer platform receives the pre-formatted message containing energy data information transmitted by its corresponding energy data collection module. The energy data transfer platform receives formatted data transmitted from the energy management sub-platform in the following ways: according to the configured communication protocol and rules used for data transmission with the energy management sub-platform, it receives formatted data transmitted with the energy data transfer platform.
[0012] Furthermore, methods for transferring stored formatted data to the cloud platform to be transferred include: The formatted data stored is transferred using the configured CRON expression, and the data is transferred to the cloud platform to be transferred according to the transfer frequency corresponding to the CRON expression.
[0013] Furthermore, the methods for obtaining and storing formatted data of the required data structure for the cloud platform to be transferred, using the determined data status, energy data information, and measurement point number, include: Based on the measurement point number corresponding to the energy data and the relationship between the preset measurement point number and the set enumeration field, the data value corresponding to the energy data in the energy data information is stored in the corresponding set enumeration field; Use the measurement point number corresponding to the energy data as the measurement point number in the formatted data; change the value of the data state in the formatted data according to the determined data state; find the set enumeration field corresponding to the measurement point number in the formatted data based on the relationship between the measurement point number and the preset measurement point number and the set enumeration field, modify the format of the set enumeration field storing the corresponding data value to the format of the data segment where the data value corresponding to the energy data is located in the formatted data, and use it as the data segment where the data value corresponding to the energy data is located in the formatted data.
[0014] Furthermore, the energy data collection module is an edge computing gateway.
[0015] The above-described technical solution of this invention provides a novel energy data transfer system, the beneficial effects of which include: acquiring and transferring energy data from the corresponding energy data collection module through an energy data transfer platform; utilizing the uniqueness of the measurement points acquiring the energy data (represented by the MAC address of the measurement point device); for each group of energy data information with different measurement points, formatted data is organized according to the data structure required by the cloud platform to be transferred before storage; and each group of formatted data contains a measurement point number as an identifier, allowing for identification of energy data information from different measurement points before, during, and after transfer; based on unified format storage and effective differentiation of each group of data, the formatted data can be directly transferred to the cloud platform; thus, this transfer system unifies the storage format before transfer and ensures that the unified formatted energy data information is not confused with each other; the stored formatted data can be transferred to the cloud platform without special protocols, and the data format meets the requirements of the cloud platform, allowing direct access by the cloud platform; therefore, it effectively improves transfer efficiency, simplifies the transfer process, and facilitates real-time transfer and access of energy data. Attached Figure Description
[0016] Figure 1 This is a structural principle block diagram of the energy data transfer platform in an embodiment of the energy data transfer system of the present invention; Figure 2This is a structural example diagram of formatted data in an embodiment of the energy data transfer system of the present invention; Figure 3 This is an example diagram illustrating the conversion process from energy data information to formatted data in an embodiment of the energy data transfer system of the present invention; Figure 4 This is a flowchart illustrating a specific example of the energy data transfer platform in the embodiment of the energy data transfer system of the present invention; Figure 5 This is an example image showing the relevant information related to the process of transferring stored formatted data to the cloud platform to be transferred, as described in an embodiment of the energy data transfer system of the present invention. Figure 6 This is an example diagram of a page configuring the switching frequency in an embodiment of the energy data switching system of the present invention; Figure 7 This is an example diagram illustrating the access process of protocol specification data when the energy management sub-platform accesses the energy data transfer platform and then transfers the energy data to the cloud platform in an embodiment of the energy data transfer system of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0018] Energy Data Transfer System Implementation Example This embodiment presents a technical solution for an energy data transfer system. Based on the uniqueness of the measurement points for acquiring energy data, the system organizes the data into formatted data according to the data structure required by the cloud platform to be transferred before storing it. This not only unifies the storage format before transfer but also ensures that the energy data information after the unified format will not be confused with each other. The stored formatted data can be transferred to the cloud platform without special protocols and can be directly called by the cloud platform, thereby effectively improving transfer efficiency and simplifying the transfer process.
[0019] Reference Figure 1 The energy data transfer system specifically includes an energy data transfer platform, which is used to receive a pre-formatted message containing energy data information transmitted by the corresponding energy data collection module; the energy data information includes the MAC address and data value of the measuring device corresponding to the energy data; The energy data transfer platform is also used to obtain energy data information by parsing the predefined format message, and to obtain the corresponding measurement point number by using the correspondence between the energy data information and the preset MAC address and measurement point number of the measurement point device; using the energy data information and the measurement point number, to obtain and store the formatted data required by the cloud platform to be transferred; and to transfer the stored formatted data to the cloud platform to be transferred; the formatted data contains the measurement point number and the corresponding data value of the energy data.
[0020] Therefore, this energy data transfer system acquires and transfers energy data from the corresponding energy data collection module through an energy data transfer platform. The transfer process utilizes the uniqueness of the energy data corresponding to the measuring point, represented by the MAC address of the measuring device. For each set of energy data information with different measuring points, it is formatted into data according to the data structure required by the cloud platform to be transferred before storage. Furthermore, each set of formatted data contains a measuring point number as an identifier, ensuring that the energy data information of different measuring points can be identified by the measuring point number before, during, and after the transfer. Based on the unified format storage and effective differentiation of each set of data, the formatted data can be directly transferred to the cloud platform to realize the transfer function. This transfer system not only unifies the storage format before transfer but also ensures that the energy data information after the unified format is not confused with each other. The stored formatted data can be transferred to the cloud platform without special protocols, and the formatted data can be directly called by the cloud platform. Therefore, it can effectively improve the transfer efficiency, simplify the transfer process, and facilitate the real-time transfer and call of energy data.
[0021] Considering that cloud platforms often need to obtain carbon emissions calculated through energy data, and that the energy data received directly through the energy data transfer platform does not involve carbon emission calculation results, in this embodiment, the formatted data also includes calculated values and data status; wherein, the data status includes the carbon emission to be calculated status and the calculated carbon emission to be uploaded status. The energy data transfer platform is also used to read the data value corresponding to the energy data required for calculating carbon emissions from the formatted data whose stored data status value corresponds to the carbon emission status to be calculated, by using the measurement point number in the formatted data, and send it to the functional module used to calculate carbon emissions; receive the carbon emission calculation result, use the carbon emission calculation result as the calculation value, update the corresponding formatted data, and change the data status value in the formatted data to the value corresponding to the carbon emission status to be uploaded.
[0022] As can be seen, the formatted data reserves a field for storing calculated carbon emissions (i.e., the calculated value), and also sets flags indicating whether carbon emissions need to be calculated or have already been calculated (i.e., data status). For example, the "carbon emissions to be calculated" status indicates that the energy data needs to be used for carbon emissions calculation, but has not yet been used; while the "calculated carbon emissions to be uploaded" status indicates that the energy data has been used to calculate carbon emissions and the calculated carbon emissions have been stored in the formatted data, waiting to be uploaded to the cloud platform. This ensures that the transferred formatted data meets the cloud platform's requirement to obtain carbon emissions calculated from energy data, and avoids confusion between formatted data corresponding to energy data that needs to be calculated but has not yet had its carbon emissions calculated and formatted data corresponding to energy data whose carbon emissions have been calculated. In other embodiments, if the cloud platform does not need to obtain carbon emissions calculated from energy data, the "calculated value" field may not be set in the formatted data, and the "carbon emissions to be calculated" and "calculated carbon emissions to be uploaded" statuses may not be included in the data status.
[0023] Specifically, the functional module for calculating carbon emissions can be implemented using a carbon asset platform. By scheduling the energy accounting interface of the carbon asset platform and utilizing the carbon asset platform's function of calculating carbon emissions, the function of the module for calculating carbon emissions can be realized.
[0024] Considering the storage capacity of the energy data transfer platform and the negative impact of the massive amount of data on real-time data transfer, in this embodiment, the data status also includes the uploaded status. The energy data transfer platform is also used to change the value of the data status in the formatted data to the value corresponding to the uploaded status after transferring the stored formatted data to the cloud platform to be transferred; after a certain period of time, the formatted data with the value corresponding to the uploaded status is deleted from the stored formatted data.
[0025] Therefore, the data status in the formatted data can distinguish between formatted data that has been transferred and formatted data that has not been transferred. Combined with the periodic cleanup of transferred data, this effectively prevents transferred data from affecting the transfer of untransferred data to the cloud platform. In other embodiments, if there is no need to consider processing the formatted data, the uploaded status may not be set.
[0026] Based on the function of calculating carbon emissions, and considering the different types of energy data, some energy data does not require processing and is not used for carbon emission calculation, so it is suitable to be directly transferred to the cloud platform according to the formatted data structure; while some energy data needs to be processed before being transferred to the cloud platform; some needs to have carbon emission calculation performed before being transferred to the cloud platform along with the calculated carbon emission; and some needs to be processed first, then have carbon emission calculation performed, and then be transferred to the cloud platform along with the calculated carbon emission. For these different types of energy data, the above data status also includes pending processing status, processed and awaiting upload status, and unprocessed and awaiting upload status; the carbon emission status to be calculated includes processed and unprocessed carbon emission status. The methods for obtaining and storing formatted data with the required data structure for the cloud platform to be transferred, using energy data information and measurement point numbers, include: Based on the measurement point number, determine whether the data status corresponding to the energy data information is pending processing, unprocessed and awaiting upload, or unprocessed and awaiting carbon emission calculation. Then, using the determined data status, energy data information, and measurement point number, obtain the formatted data of the data structure required by the cloud platform to be transferred and store it. If the data status in the formatted data is pending processing, the corresponding processing method is determined according to the measurement point number. The data value corresponding to the energy data in the formatted data is processed, and the data value corresponding to the energy data in the formatted data is updated according to the processed data value. According to the measurement point number, the data status in the formatted data is updated to either processed and awaiting upload or processed and awaiting carbon emission calculation. The methods for transferring stored formatted data to the cloud platform to be transferred include: selecting formatted data from the stored formatted data whose data status values correspond to the status of processed and awaiting upload, unprocessed and awaiting upload, or carbon emission calculation and awaiting upload, and transferring them to the cloud platform to be transferred.
[0027] As can be seen, the flags set in the formatted data (i.e., the data status) can also indicate whether the energy data needs to be processed and whether it needs to be processed before being used to calculate carbon emissions. For energy data that does not require processing and is not used for carbon emission calculation, setting it to the "unprocessed and awaiting upload" status allows it to be directly transferred to the cloud platform according to the formatted data structure. For energy data that needs to be processed before being transferred to the cloud platform or for which carbon emissions need to be calculated first before being transferred, setting it to the "pending processing" status, and then changing it to the "processed and awaiting upload" or "processed and awaiting carbon emission calculation" status after processing, the energy data in the "processed and awaiting carbon emission calculation" status... After calculation, the carbon emissions are transferred to the cloud platform along with the calculated carbon emissions. Data that does not require processing but needs carbon emissions calculation is set to an unprocessed state and transferred to the cloud platform along with the calculated carbon emissions. This ensures that the transferred formatted data not only meets the cloud platform's requirement to obtain carbon emissions calculated through energy data accounting, but also clearly distinguishes whether the formatted data needs data processing, whether it needs carbon emissions calculation, and whether it can be transferred to the cloud platform. This ensures that formatted data with different processing requirements will not be confused or interfere with each other during the transfer process.
[0028] In addition, in this embodiment, the formatted data also includes data type, terminal number, cloud platform type, and cloud platform number; The method for obtaining the formatted data structure required by the cloud platform to be transferred using energy data information and measurement point numbers includes: obtaining the cloud platform number of the cloud platform to be transferred based on the configuration information of the energy data transfer platform, and obtaining the cloud platform type; sending the obtained cloud platform number and cloud platform type to the corresponding authentication interface for access permission authentication of the cloud platform to be transferred; if the access permission authentication is successful and the measurement point number corresponding to the energy data has been obtained, obtaining the terminal number corresponding to the measurement point number by accessing the device information stored in the cloud platform to be transferred, and obtaining the data type corresponding to the measurement point number by accessing the measurement point information stored in the cloud platform to be transferred; and storing the obtained cloud platform number, cloud platform type, terminal number, and data type into the formatted data of the required data structure of the cloud platform to be transferred.
[0029] In summary, an example of a formatted data structure is as follows: Figure 2As shown, this format is the data structure (lightweight JSON format) required for aggregation by the cloud platform to be connected; where "id" is the measurement point number; "name" is the measurement point description, which can be found in the preset correspondence between measurement point number and measurement point description based on the measurement point number; "value" is the calculated value, that is, the calculated carbon emissions; "stamp" is the time of data entry into the system, and "markStamp" is the data collection time, both of which can be obtained by parsing the set format message; "measure" is the data type; "terminal" is the terminal number; "objType" is the cloud platform type, and "objId" is the cloud platform number; "markValue" is the data value corresponding to the energy data.
[0030] In addition, to make the process of converting energy data information into formatted data simpler and more efficient, the following methods are used to obtain and store the formatted data required by the cloud platform to be transferred, based on the determined data status, energy data information, and measurement point number: Based on the measurement point number corresponding to the energy data and the relationship between the preset measurement point number and the set enumeration field, the data value corresponding to the energy data in the energy data information is stored in the corresponding set enumeration field; Use the measurement point number corresponding to the energy data as the measurement point number in the formatted data; change the value of the data state in the formatted data according to the determined data state; find the set enumeration field corresponding to the measurement point number in the formatted data based on the relationship between the measurement point number and the preset measurement point number and the set enumeration field, modify the format of the set enumeration field storing the corresponding data value to the format of the data segment where the data value corresponding to the energy data is located in the formatted data, and use it as the data segment where the data value corresponding to the energy data is located in the formatted data.
[0031] Refer to the formatted data conversion process that includes the relationship between preset measurement point numbers and defined enumeration fields. Figure 3 , Figure 3 The enumeration table contains the relationship between preset measurement point numbers and defined enumeration fields, while the message parsing table contains the mapping between preset measurement point device MAC addresses and measurement point numbers. First, the energy data transfer platform receives a pre-formatted message containing energy data information transmitted by its corresponding energy data collection module. Parsing the message according to this format yields the energy data information, which includes the MAC address of the corresponding measurement point device and the data value. Then, using the pre-defined mapping between measurement point device MAC addresses and measurement point numbers in the message parsing table, the platform uses the MAC address of the measurement point device corresponding to the energy data to... Figure 3The measurement point number is found in the message parsing table (as the value of the "id" field in the formatted data). The cloud platform number (as the value of the "objId" field in the formatted data) and cloud platform type (as the value of the "objType" field in the formatted data) of the cloud platform to be transferred are obtained. After authentication with the access rights of the cloud platform to be transferred using the cloud platform number and cloud platform type, the device information stored in the cloud platform to be transferred can be accessed. The terminal number corresponding to the measurement point number is obtained using the measurement point number (as the value of the "terminal" field in the formatted data). The data type corresponding to the measurement point number is obtained using the measurement point number from the measurement point information stored in the cloud platform to be transferred (as the value of the "measure" field in the formatted data). Thus, the obtained cloud platform number, cloud platform type, terminal number, and data type are all stored in the formatted data of the required data structure of the cloud platform to be transferred. Furthermore, according to the data status determined by the above-mentioned data status-related content, the value of the data status in the formatted data is changed. For example, for the original data to be processed, the value of the data status in the formatted data is 0, indicating that the data status is pending processing.
[0032] For the "markValue" field, it is first necessary to determine the measurement point number and... Figure 3 The enumeration table establishes a relationship between preset measurement point numbers and defined enumeration fields, storing the data values corresponding to energy data in the energy data information into the corresponding defined enumeration fields; for example... Figure 2 The energy data for measuring point number 288120933 corresponds to the enumeration field CMO_ANA_ELE_FLOW according to the enumeration table; therefore, the data value 72710.0 corresponding to the energy data for measuring point number 288120933 is stored in the enumeration field CMO_ANA_ELE_FLOW; when constructing the formatted data for measuring point number 288120933, based on the measuring point number 288120933 and... Figure 3 The relationship between the preset measurement point numbers and the set enumeration fields in the enumeration table is determined. The set enumeration field CMO_ANA_ELE_FLOW, corresponding to measurement point number 288120933 in the formatted data, is found. The format of this set enumeration field storing the corresponding data value (e.g., "value": 72710.0) is modified to the format of the data segment containing the energy data value in the formatted data, i.e., the format of the "markValue" field (i.e.,...). Figure 2The format "markValue" (72710.0) is used as the data segment containing the energy data corresponding to the energy data in the formatted data. Since the energy data information may not contain only the energy data information corresponding to a single measuring point, the energy data transfer system in this embodiment can temporarily distinguish different data values by temporarily storing the data value corresponding to the energy data in an enumeration field that corresponds one-to-one with different measuring point numbers after parsing the message. When it is necessary to construct the formatted data corresponding to the data value, the data value can be found by the measuring point number. Compared with the less efficient and easily confused method of directly searching for the data value in the parsed message information, the above method of using an enumeration field as a regular transfer is clear, concise, and less prone to confusion.
[0033] Based on the above-mentioned scheme of receiving a pre-formatted message containing energy data information transmitted by the corresponding energy data collection module through the energy data transfer platform, the energy data transfer system also includes an energy management and control sub-platform. The energy management sub-platform receives formatted messages containing energy data information from its corresponding energy data collection module. It parses these messages to obtain the energy data information and, through the mapping between the energy data information and the pre-defined MAC addresses and measurement point numbers of the monitoring devices, obtains the corresponding monitoring point number. Using the energy data information and the monitoring point number, it generates formatted data with the required data structure for the cloud platform to be transferred. The energy data transfer platform also receives and stores the formatted data transmitted by the energy management sub-platform. Specifically, the energy data transfer platform receives the formatted data transmitted by the energy management sub-platform by calling its HTTP data interface, based on pre-configured access addresses, ports, and permission information for the energy sub-platform (e.g., the sub-platform's specific project name, system URL address, access port number, basic network configuration, and the type of energy data to be transmitted).
[0034] In other words, the energy data transfer platform can obtain energy data information in two ways. The first is to obtain it directly from the energy data collection module corresponding to the energy data transfer platform. The second is to first transmit the data from the energy data collection module corresponding to the energy management sub-platform to the energy management sub-platform, and then process it into formatted data before sending it to the energy data transfer platform. Since the way the energy management sub-platform processes the formatted messages transmitted by the corresponding energy data collection module into formatted data is the same as the way the energy data transfer platform processes the formatted messages transmitted by the corresponding energy data collection module into formatted data, the energy data information received by the energy data transfer platform from the energy management sub-platform is already formatted data, and basically no further processing is required from the energy data transfer platform.
[0035] In this embodiment, the two methods for obtaining energy data information described above can coexist, as detailed below. Figure 4 The energy data collection module can be an edge computing gateway. In other embodiments, depending on the communication connection between the energy data transfer platform and the corresponding energy data collection module and energy management sub-platform, one of the methods for acquiring energy data information can be adaptively selected; the energy data collection module can also be other modules or devices with energy data acquisition functions besides the edge computing gateway.
[0036] In addition, in this embodiment, the method of transferring the stored formatted data to the cloud platform to be transferred includes: The formatted data stored is transferred using the configured CRON expression, and the data is transferred to the cloud platform to be transferred according to the transfer frequency corresponding to the configured CRON expression.
[0037] Reference Figure 5 This page displays configurable information and other details related to the process of transferring stored formatted data to the cloud platform to be transferred; the execution expression is the configured CRON expression. For example... Figure 6 The image shows the page for configuring the switching frequency. By configuring the switching frequency, the corresponding CRON expression can be configured. The specific switching operation can be implemented using the Quartz task scheduler. Since the specific implementation principle is existing technology, it will not be elaborated here.
[0038] In this embodiment, refer to Figure 7 The energy data transfer platform is also used to provide configuration channels for the communication protocols and rules used by the corresponding energy data collection modules and energy management sub-platforms for data transmission. The energy data transfer platform receives the pre-formatted message containing energy data information transmitted by its corresponding energy data collection module in the following ways: according to the communication protocol and communication rules used by the corresponding energy data collection module for data transmission, the energy data transfer platform receives the pre-formatted message containing energy data information transmitted by its corresponding energy data collection module. The energy data transfer platform receives formatted data transmitted from the energy management sub-platform in the following ways: according to the configured communication protocol and rules used for data transmission with the energy management sub-platform, it receives formatted data transmitted with the energy data transfer platform.
[0039] Specifically, the energy data transfer platform supports configurable communication protocols including HTTP, MODBUS, IEC104, and MQTT. Different energy management sub-platforms can be configured with different communication protocols to ensure the independent and secure transmission of energy data during data communication. Combined with the transfer function of the energy data transfer platform, it ultimately achieves energy data interoperability between platforms (energy data transfer platform, energy management sub-platform, cloud platform, etc.) without affecting the independent operation of each platform, ensuring timely and effective transmission of energy data. Furthermore, the example of the formatted message is also provided below. Figure 7 The data field is where the data value corresponding to the energy data is located. Considering that the energy data may involve data related to multiple energy sources (electricity, water, gas), the data value corresponding to the energy data can be the data value of parameters such as temperature, pressure, power, and flow rate; the public address is the field where the MAC address of the measuring device corresponding to the energy data is located.
[0040] It should be understood that the above-described specific embodiments of the present invention are merely illustrative or explanatory of the principles of the present invention, and do not constitute a limitation thereof.
Claims
1. An energy data transfer system, characterized in that, It includes an energy data transfer platform, used to receive formatted messages containing energy data information transmitted by its corresponding energy data collection module; the energy data information includes the MAC address and data value of the measuring device corresponding to the energy data; The energy data transfer platform is also used to obtain energy data information by parsing the predefined format message, obtain the corresponding measurement point number of the energy data by the correspondence between the energy data information and the preset MAC address of the measurement point device and the measurement point number; use the energy data information and the measurement point number to obtain the formatted data of the data structure required by the cloud platform to be transferred and store it; and transfer the stored formatted data to the cloud platform to be transferred. The formatted data includes the measurement point number and the corresponding data value for the energy data.
2. The energy data transfer system according to claim 1, characterized in that, The formatted data also includes calculated values and data status; the data status includes the status of carbon emissions to be calculated and the status of calculated carbon emissions to be uploaded. The energy data transfer platform is also used to read the data value corresponding to the energy data required for calculating carbon emissions from the formatted data whose stored data status value corresponds to the carbon emission status to be calculated, by using the measurement point number in the formatted data, and send it to the functional module used to calculate carbon emissions; receive the carbon emission calculation result, use the carbon emission calculation result as the calculation value, update the corresponding formatted data, and change the data status value in the formatted data to the value corresponding to the carbon emission status to be uploaded.
3. The energy data transfer system according to claim 2, characterized in that, The data status also includes the uploaded status; The energy data transfer platform is also used to change the value of the data status in the formatted data to the value corresponding to the uploaded status after transferring the stored formatted data to the cloud platform to be transferred; after a certain period of time, the formatted data with the value corresponding to the uploaded status is deleted from the stored formatted data.
4. The energy data transfer system according to any one of claims 1-3, characterized in that, The formatted data also includes data type, terminal number, cloud platform type, and cloud platform number; The methods for obtaining the formatted data structure required by the cloud platform to be transferred using energy data information and measurement point number include: obtaining the cloud platform number of the cloud platform to be transferred based on the configuration information of the energy data transfer platform, and obtaining the cloud platform type; The cloud platform number and cloud platform type are sent to the corresponding authentication interface to perform access permission authentication for the cloud platform to be transferred. If the access permission authentication is successful and the measurement point number corresponding to the energy data has been obtained, the terminal number corresponding to the measurement point number is obtained by accessing the device information stored in the cloud platform to be transferred, and the data type corresponding to the measurement point number is obtained by accessing the measurement point information stored in the cloud platform to be transferred. The obtained cloud platform number, cloud platform type, terminal number and data type are all stored in the formatted data of the data structure required by the cloud platform to be transferred.
5. The energy data transfer system according to any one of claims 1-3, characterized in that, It also includes an energy management sub-platform; The energy management sub-platform is used to receive a pre-formatted message containing energy data information transmitted by its corresponding energy data collection module; obtain the energy data information by parsing the pre-formatted message; obtain the corresponding measurement point number by using the correspondence between the energy data information and the preset MAC address and measurement point number of the measurement point device; and obtain the formatted data of the data structure required by the cloud platform to be transferred using the energy data information and the measurement point number. The energy data transfer platform is also used to receive and store formatted data transmitted from the energy management sub-platform.
6. The energy data transfer system according to claim 2 or 3, characterized in that, The data status also includes pending status, processed and pending upload status, and unprocessed and pending upload status; the carbon emission to be calculated status includes processed carbon emission to be calculated status and unprocessed carbon emission to be calculated status. The methods for obtaining and storing formatted data with the required data structure for the cloud platform to be transferred, using energy data information and measurement point numbers, include: Based on the measurement point number, determine whether the data status corresponding to the energy data information is pending processing, unprocessed and awaiting upload, or unprocessed and awaiting carbon emission calculation. Then, using the determined data status, energy data information, and measurement point number, obtain the formatted data of the data structure required by the cloud platform to be transferred and store it. If the data status in the formatted data is pending processing, the corresponding processing method is determined according to the measurement point number. The data value corresponding to the energy data in the formatted data is processed, and the data value corresponding to the energy data in the formatted data is updated according to the processed data value. According to the measurement point number, the data status in the formatted data is updated to either processed and awaiting upload or processed and awaiting carbon emission calculation. The methods for transferring stored formatted data to the cloud platform to be transferred include: selecting formatted data from the stored formatted data whose data status values correspond to the status of processed and awaiting upload, unprocessed and awaiting upload, or carbon emission calculation and awaiting upload, and transferring them to the cloud platform to be transferred.
7. The energy data transfer system according to claim 5, characterized in that, The energy data transfer platform is also used to provide configuration channels for the communication protocols and rules used by the corresponding energy data collection modules and energy management sub-platforms for data transmission. The energy data transfer platform receives the pre-formatted message containing energy data information transmitted by its corresponding energy data collection module in the following ways: according to the communication protocol and communication rules used by the corresponding energy data collection module for data transmission, the energy data transfer platform receives the pre-formatted message containing energy data information transmitted by its corresponding energy data collection module. The energy data transfer platform receives formatted data transmitted from the energy management sub-platform in the following ways: according to the configured communication protocol and rules used for data transmission with the energy management sub-platform, it receives formatted data transmitted with the energy data transfer platform.
8. The energy data transfer system according to any one of claims 1-3, characterized in that, Methods for transferring stored formatted data to the cloud platform to be transferred include: The formatted data stored is transferred using the configured CRON expression, and the data is transferred to the cloud platform to be transferred according to the transfer frequency corresponding to the CRON expression.
9. The energy data transfer system according to claim 6, characterized in that, The methods for obtaining and storing formatted data with the required data structure for the cloud platform to be transferred, using determined data status, energy data information, and measurement point numbers, include: Based on the measurement point number corresponding to the energy data and the relationship between the preset measurement point number and the set enumeration field, the data value corresponding to the energy data in the energy data information is stored in the corresponding set enumeration field; Use the measurement point number corresponding to the energy data as the measurement point number in the formatted data; change the value of the data state in the formatted data according to the determined data state; find the set enumeration field corresponding to the measurement point number in the formatted data based on the relationship between the measurement point number and the preset measurement point number and the set enumeration field, modify the format of the set enumeration field storing the corresponding data value to the format of the data segment where the data value corresponding to the energy data is located in the formatted data, and use it as the data segment where the data value corresponding to the energy data is located in the formatted data.
10. The energy data transfer system according to any one of claims 1-3, characterized in that, The energy data collection module is an edge computing gateway.