CN115086380A - Data transmission system and method based on energy management platform - Google Patents

Data transmission system and method based on energy management platform Download PDF

Info

Publication number
CN115086380A
CN115086380A CN202210873957.1A CN202210873957A CN115086380A CN 115086380 A CN115086380 A CN 115086380A CN 202210873957 A CN202210873957 A CN 202210873957A CN 115086380 A CN115086380 A CN 115086380A
Authority
CN
China
Prior art keywords
data
equipment
module
energy
mqtt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210873957.1A
Other languages
Chinese (zh)
Other versions
CN115086380B (en
Inventor
李明
陈洪鑫
刘艳清
王伟兵
郭春杰
王中明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Sicui Industrial Internet Technology Research Institute Co ltd
Original Assignee
Suzhou Sicui Industrial Internet Technology Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Sicui Industrial Internet Technology Research Institute Co ltd filed Critical Suzhou Sicui Industrial Internet Technology Research Institute Co ltd
Priority to CN202210873957.1A priority Critical patent/CN115086380B/en
Publication of CN115086380A publication Critical patent/CN115086380A/en
Application granted granted Critical
Publication of CN115086380B publication Critical patent/CN115086380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P80/00Climate change mitigation technologies for sector-wide applications
    • Y02P80/10Efficient use of energy, e.g. using compressed air or pressurized fluid as energy carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data transmission system and a data transmission method based on an energy management platform, which belong to the technical field of energy management, and aim to solve the technical problems of limited resources and poor network quality of energy equipment, and adopt the technical scheme that: the system comprises an energy router module, an MQTT server module, a data receiving module and a data processing module; the energy router module is used for connecting various energy devices downwards and providing a data acquisition function; the system is also used for deploying the MQTT client and releasing the acquired data to the MQTT server module through the MQTT client; the MQTT server module is used for receiving network connection from the MQTT client, processing message subscription and message publishing requests of the MQTT client and forwarding messages published by the MQTT client to the message subscription client; the data receiving module is used as a subscription client of the MQTT server module and subscribes to the message issued by the MQTT client in the energy router module.

Description

Data transmission system and method based on energy management platform
Technical Field
The invention relates to the technical field of energy management, in particular to a data transmission system and a data transmission method based on an energy management platform.
Background
The novel digital energy platform becomes the focus in the industry, and technologies such as big data, thing networking, cloud computing, AI are utilized to monitor the energy consumption use process data of manufacturing enterprise and record, and the various energy use condition of real time monitoring manufacturing enterprise, energy saving and emission reduction of enterprise are energized, provide scientific basis for the enterprise realizes the intelligent transformation of low carbon zero carbon, promote the comprehensive energy and the carbon asset management ability of enterprise.
The energy management platform mainly comprises a front-end data acquisition part, a data transmission part and a background system, wherein the data transmission part is used as a bridge for connecting the front-end data acquisition part and the background system and plays a vital role, the traditional data transmission part has higher requirements on resource requirements and network delay, and meanwhile, equipment in the energy management platform is often dispersed in different factories, workshops and other areas, so that a network environment with higher network delay and poor quality can exist.
Therefore, the limited resources and poor network quality of energy equipment are the technical problems to be solved at present.
Disclosure of Invention
The technical task of the invention is to provide a data transmission system and a data transmission method based on an energy management platform, which are used for solving the problems of limited resources and poor network quality of energy equipment.
The technical task of the invention is realized in the following way, the data transmission system based on the energy management platform comprises an energy router module, an MQTT server module, a data receiving module and a data processing module;
the energy router module is used for connecting various energy devices downwards and providing a data acquisition function; the system is also used for deploying the MQTT client and releasing the acquired data to the MQTT server module through the MQTT client;
the MQTT server module is used for receiving network connection from the MQTT client, processing message subscription and message publishing requests of the MQTT client and forwarding messages published by the MQTT client to the message subscription client (the subscription client is one of the functions of the MQTT client);
the data receiving module is used as a subscription client of the MQTT server module and subscribes to the message issued by the MQTT client in the energy router module;
the data processing module is used for carrying out classification processing on the data received by the data receiving module and storing the data into a back-end database of the energy management platform, and providing data support for a background system of the energy management platform.
Preferably, the working process of the energy router module is as follows:
(1) the energy router module adopts a unique identification SN code as a unique gateway to register to the energy management platform;
(2) the energy router module acquires Token sent by the energy management platform as a connection Token for subsequent operation;
(3) registering various energy devices connected to the energy router module as acquisition point devices to an energy management platform; the energy equipment comprises energy storage equipment, electric equipment, photovoltaic equipment, a sensor and a meter;
(4) and when the equipment is registered, the data receiving module judges whether the energy equipment carries the SN code of the energy router module and the Token as verification conditions:
if so, successfully registering the energy equipment, and then skipping to the step (5);
if not, the energy equipment fails to be registered;
(5) when data are uploaded, the data receiving module judges whether the energy equipment carries SN codes and tokens of the energy router module as verification conditions:
firstly, if so, uploading energy data acquired by the energy equipment to an energy management platform;
and if not, the data uploading fails.
Preferably, the working process of the data receiving module is as follows:
(1) after the data receiving module receives the message registered by the gateway, the data receiving module decrypts the SN code and judges whether the decryption of the SN code is successful:
firstly, if decryption of the SN code fails, the gateway registration process is ended, and the MQTT client in the energy router module cannot receive token information;
if the SN code is decrypted successfully, executing the step (2);
(2) the data receiving module issues a token theme, the MQTT client in the energy router module receives token information, and the step (3) is executed;
(3) after the data receiving module receives the equipment registration message, the data receiving module checks the SN code and judges whether the check SN code passes:
if the check SN code passes, executing the step (4);
if the verification SN code does not pass, ending the equipment registration process, releasing a returned result theme of the equipment registration, and checking and re-registering after an MQTT client in the energy router module receives a message of equipment registration failure;
(4) after the data receiving module receives the message registered by the equipment and the verification SN passes, the data receiving module verifies the token information and judges whether the verification of the token information is successful;
if the check token information fails, ending the equipment registration process, issuing a returned result theme of equipment registration, and checking and re-registering after an MQTT client in the energy router module receives the information of equipment registration failure;
if the token information is successfully verified, transmitting the data to a data processing module for processing;
(5) after the data receiving module receives the message uploaded by the data, the data receiving module checks the SN code and judges whether the check of the SN code is successful:
firstly, if the verification of the SN code fails, ending the data uploading process;
if the verification SN code passes, executing the step (6);
(6) after the data receiving module receives the data uploading message and the check SN code passes, the data receiving module checks the token information and judges whether the check token information is successful:
firstly, if the token information is successfully checked, transmitting the data to a data processing module for processing;
and secondly, if the token information is failed to be verified, ending the data uploading process.
Preferably, the working process of the data processing module is as follows:
(1) the data processing module receives the gateway registration data, puts the gateway data into a storage, stores token information, and executes the step (2) in the next step;
(2) the data processing module receives the equipment registration data, classifies the equipment information, and performs warehousing processing according to different equipment types; and determines whether the device information has been registered:
if the equipment information exists, updating, and executing the step (3) next;
if the equipment information does not exist, performing an inserting operation, and executing the step (3) in the next step;
(3) and the data processing module receives the data uploading data, classifies the uploaded data, stores the data into different data tables according to different equipment types, and provides data for the energy management platform to display.
A data transmission method based on an energy management platform is characterized in that different topics are respectively issued by MQTT clients in an energy router module and are sent to a data receiving module through an MQTT server module, the data receiving module receives different messages according to the different topics, preliminarily classifies gateway registration, equipment registration and uploaded data and sends the messages to a data processing module, and the data processing module performs further classification according to different data types and equipment types and stores the data in a warehouse; the method comprises the following specific steps:
s1, registering the gateway;
s2, registering equipment;
and S3, uploading the data.
Preferably, the gateway registration in step S1 and the device registration in step S2 are both completed before the data upload in step S3 is performed; otherwise, the data upload will fail.
Preferably, the gateway registration in step S1 is specifically as follows:
s101, an MQTT client deployed in an energy router module is connected with an MQTT server module by using an account number of the MQTT;
s102, an MQTT client publishes a topic of gateway registration, and a message body is a unique gateway identification SN code; the SN code adopts SM4 national cryptographic algorithm, and the same key is used for encryption and decryption;
s103, the operations performed simultaneously with step S102 are: an MQTT client subscribes a gateway registration token to issue a theme;
s104, the data receiving module is connected with the MQTT server module by using the MQTT account number and subscribes a gateway registration theme, and the MQTT server module forwards registration gateway information to the data receiving module;
s105, after the data receiving module receives the gateway registration information, the data receiving module decrypts the SN code and judges whether the decryption of the SN code is successful:
firstly, if decryption of SN (serial number) codes fails, gateway registration is ended, and an MQTT client in an energy router module cannot receive token information;
if the decryption of the SN code is successful, executing the step S106;
s106, the data processing module issues a topic for registering the token by the publishing gateway, and the MQTT client in the energy router module receives token information and jumps to the step S103; meanwhile, the data processing module carries out warehousing processing on the gateway data and stores token information.
Preferably, the device registration in step 201 is specifically as follows:
s201, after gateway registration is successful, equipment registration is carried out on an MQTT client deployed in the energy router module, and energy storage equipment, electric equipment, photovoltaic equipment, sensors and meter equipment connected to the energy router module are registered to an energy management platform;
s202, the operations performed simultaneously with step S201 are: the MQTT client publishes a theme of equipment registration, wherein the theme comprises a gateway unique identification (SN) code;
s203, the data receiving module uses the MQTT account to connect with the MQTT server module and subscribes the theme of equipment registration, and the MQTT server module forwards the information of the registered equipment to the data receiving module;
s204, after the data receiving module receives the equipment registration message, the data receiving module checks the SN code and judges whether the checked SN code passes:
if the check SN passes, go to step S205;
if the verification SN code is not passed, the equipment registration process is ended, the equipment registration return result theme is issued, and the step S202 is executed;
s205, the message body of the equipment registration comprises token information received by the energy source router, the data receiving module verifies the token information and judges whether the verification of the token information is successful:
firstly, if the token information is verified to be failed, the device registration process is ended, a returned result theme of the device registration is issued, after the MQTT client in the energy router module receives the device registration failure message, the MQTT client checks and re-registers, and the step S202 is executed;
step S206 is executed if the token is successfully verified;
s206, after receiving the device registration message, the data processing module classifies the device information, performs storage processing according to different device types, and judges whether the device information exists:
if yes, updating operation is carried out;
and secondly, if not, performing insertion operation.
Preferably, the uploading data in step S3 is specifically as follows:
s301, after the equipment registration process is finished, the energy router module acquires data information uploaded by equipment at regular time, and issues a theme of the uploaded data through the MQTT client, wherein the theme of the uploaded data comprises a gateway unique identification (SN) code;
s302, the data receiving module is connected with an MQTT server module by using an MQTT account number, the theme of uploaded data is subscribed, and the MQTT server module forwards the uploaded data information to the data receiving module;
s303, after the data receiving module receives the message of uploading data, the data receiving module checks the SN code and judges whether the checked SN code passes:
step S304 if the check SN code passes;
if the verification SN code does not pass, ending the data uploading process;
s305, the message body for uploading the data comprises token information received by the energy router, and after the data receiving module subscribes to the message for uploading the data, the data receiving module verifies the token information and judges whether the verification of the token information is successful:
firstly, if the token information is failed to be checked, ending the data uploading process;
step S306 is executed if the token information is successfully verified;
and S306, after receiving the data uploading message, the data processing module classifies the uploaded data, stores the data into different data tables according to different equipment types, and provides data for the energy management platform to display.
An electronic device, comprising: a memory and at least one processor;
wherein the memory has stored thereon a computer program;
the at least one processor executes the computer program stored by the memory to cause the at least one processor to perform the energy management platform based data transfer method as described above.
The data transmission system and method based on the energy management platform have the following advantages that:
the method comprises the steps that a lightweight protocol MQTT is adopted, the method is dispersed in different areas such as factories and workshops, equipment information in a network environment with high network delay and poor quality possibly exists at the same time, the equipment information is reliably transmitted to an energy management platform in real time, and meanwhile, the safety in the transmission process is guaranteed through SN codes and tokens;
the method strategy ensures reliable, stable and efficient data transmission of the energy management platform;
and thirdly, the method is suitable for data transmission of the Internet of things equipment with low hardware performance and the environment with poor network condition, and ensures stable and reliable transmission of energy data.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a block diagram of a data transmission system based on an energy management platform;
FIG. 2 is a block diagram of a gateway registration process;
FIG. 3 is a block flow diagram of device registration;
fig. 4 is a block diagram of a process for uploading data.
Detailed Description
The data transmission system and method based on energy management platform according to the present invention will be described in detail with reference to the drawings and specific embodiments.
Example 1:
as shown in fig. 1, the present embodiment provides a data transmission system based on an energy management platform, which includes an energy router module, an MQTT server module, a data receiving module, and a data processing module;
the energy router module is used for connecting various energy devices downwards and providing a data acquisition function; the system is also used for deploying the MQTT client and publishing the acquired data to the MQTT server module through the MQTT client;
the MQTT server module is used for receiving network connection from the MQTT client, processing message subscription and message publishing requests of the MQTT client and forwarding messages published by the MQTT client to the message subscription client (the subscription client is one of the functions of the MQTT client);
the data receiving module is used as a subscription client of the MQTT server module and subscribes to the message issued by the MQTT client in the energy router module;
the data processing module is used for carrying out classification processing on the data received by the data receiving module and storing the data into a back-end database of the energy management platform, and providing data support for a background system of the energy management platform.
The working process of the energy router module in this embodiment is as follows:
(1) the energy router module adopts the unique identification SN code as a unique gateway to register to the energy management platform;
(2) the energy router module acquires Token sent by the energy management platform as a connection Token for subsequent operation;
(3) registering various energy devices connected to the energy router module as acquisition point devices to an energy management platform; the energy equipment comprises energy storage equipment, electric equipment, photovoltaic equipment, a sensor and a meter;
(4) and when the equipment is registered, the data receiving module judges whether the energy equipment carries the SN code of the energy router module and the Token as verification conditions:
if so, successfully registering the energy equipment, and then skipping to the step (5);
if not, the energy equipment fails to be registered;
(5) when data are uploaded, the data receiving module judges whether the energy equipment carries SN codes and tokens of the energy router module as verification conditions:
firstly, if so, uploading energy data acquired by the energy equipment to an energy management platform;
and if not, the data uploading fails.
The working process of the data receiving module in this embodiment is specifically as follows:
(1) after the data receiving module receives the message registered by the gateway, the data receiving module decrypts the SN code and judges whether the decryption of the SN code is successful:
firstly, if decryption of the SN code fails, the gateway registration process is ended, and the MQTT client in the energy router module cannot receive token information;
if the SN code is decrypted successfully, executing the step (2);
(2) the data receiving module issues a token theme, the MQTT client in the energy router module receives token information, and the step (3) is executed;
(3) after the data receiving module receives the equipment registration message, the data receiving module checks the SN code and judges whether the check SN code passes:
if the check SN code passes, executing the step (4);
if the verification SN code does not pass, ending the equipment registration process, releasing a returned result theme of the equipment registration, and checking and re-registering after an MQTT client in the energy router module receives a message of equipment registration failure;
(4) after the data receiving module receives the message registered by the equipment and the verification SN passes, the data receiving module verifies the token information and judges whether the verification of the token information is successful;
if the check token information fails, ending the equipment registration process, issuing a returned result theme of equipment registration, and checking and re-registering after an MQTT client in the energy router module receives the information of equipment registration failure;
if the token information is successfully verified, transmitting the data to a data processing module for processing;
(5) after the data receiving module receives the message uploaded by the data, the data receiving module checks the SN code and judges whether the check of the SN code is successful:
firstly, if the verification of the SN code fails, ending the data uploading process;
if the verification SN code passes, executing the step (6);
(6) after the data receiving module receives the data uploading message and the check SN code passes, the data receiving module checks the token information and judges whether the check token information is successful:
firstly, if the token information is successfully verified, transmitting the data to a data processing module for processing;
and secondly, if the token information is failed to be verified, ending the data uploading process.
The working process of the data processing module in this embodiment is specifically as follows:
(1) the data processing module receives gateway registration data, stores the gateway data in a warehouse, stores token information, and executes the step (2) next;
(2) the data processing module receives the equipment registration data, classifies the equipment information, and performs warehousing processing according to different equipment types; and determining whether the device information has been registered:
if the equipment information exists, updating operation is carried out, and the step (3) is executed next;
if the equipment information does not exist, performing an inserting operation, and executing the step (3) next;
(3) and the data processing module receives the data uploading data, classifies the uploaded data, stores the data into different data tables according to different equipment types, and provides data for the energy management platform to display.
Example 2:
the embodiment provides a data transmission method based on an energy management platform, which comprises the steps of respectively publishing different topics through MQTT clients in an energy router module, sending the topics to a data receiving module through an MQTT server module, preliminarily classifying gateway registration, equipment registration and uploaded data by the data receiving module according to different messages received by the different topics, and sending the messages to a data processing module, further classifying the data by the data processing module according to different data types and equipment types, and warehousing the data; the method comprises the following specific steps:
s1, registering the gateway;
s2, registering equipment;
and S3, uploading the data.
In this embodiment, after the gateway registration in step S1 and the device registration in step S2 are both completed, the data upload in step S3 can be performed; otherwise, the data upload will fail.
As shown in fig. 2, the gateway registration in step S1 of this embodiment is specifically as follows:
s101, an MQTT client deployed in an energy router module is connected with an MQTT server module by using an account number of the MQTT;
s102, an MQTT client publishes a topic of gateway registration, and a message body is a unique gateway identification SN code; the SN code adopts SM4 national cryptographic algorithm, and the same key is used for encryption and decryption;
s103, the operations performed simultaneously with step S102 are: an MQTT client subscribes a gateway registration token to issue a theme;
s104, the data receiving module is connected with an MQTT server module by using an MQTT account number and subscribes a gateway registration theme, and the MQTT server module forwards the registration gateway information to the data receiving module;
s105, after the data receiving module receives the gateway registration information, the data receiving module decrypts the SN code and judges whether the decryption of the SN code is successful:
firstly, if decryption of SN (serial number) codes fails, gateway registration is ended, and an MQTT client in an energy router module cannot receive token information;
if the decryption of the SN code is successful, executing the step S106;
s106, the data processing module issues a topic for registering the token by the publishing gateway, and the MQTT client in the energy router module receives token information and jumps to the step S103; meanwhile, the data processing module carries out warehousing processing on the gateway data and stores token information.
As shown in fig. 3, the device registration in step 201 of this embodiment is specifically as follows:
s201, after gateway registration is successful, equipment registration is carried out on an MQTT client deployed in the energy router module, and energy storage equipment, electric equipment, photovoltaic equipment, sensors and meter equipment connected to the energy router module are registered to an energy management platform;
s202, the operations performed simultaneously with step S201 are: the MQTT client publishes a theme of equipment registration, wherein the theme comprises a gateway unique identification (SN) code;
s203, the data receiving module uses the MQTT account to connect with the MQTT server module and subscribes the theme of equipment registration, and the MQTT server module forwards the information of the registered equipment to the data receiving module;
s204, after the data receiving module receives the equipment registration message, the data receiving module checks the SN code and judges whether the checked SN code passes:
if the check SN code passes, executing step S205;
if the verification SN code is not passed, the equipment registration process is ended, the equipment registration return result theme is issued, and the step S202 is executed;
s205, the message body of the equipment registration comprises token information received by the energy source router, the data receiving module verifies the token information and judges whether the verification of the token information is successful:
firstly, if the token information is verified to be failed, the device registration process is ended, a returned result theme of the device registration is issued, after the MQTT client in the energy router module receives the device registration failure message, the MQTT client checks and re-registers, and the step S202 is executed;
step S206 is executed if the token is successfully verified;
s206, after receiving the device registration message, the data processing module classifies the device information, performs storage processing according to different device types, and judges whether the device information exists:
if yes, updating operation is carried out;
and secondly, if not, performing insertion operation.
As shown in fig. 4, the upload data in step S3 of this embodiment is specifically as follows:
s301, after the equipment registration process is finished, the energy router module collects data information uploaded by equipment at regular time and issues the theme of the uploaded data through the MQTT client, wherein the theme of the uploaded data comprises a unique gateway identification (SN) code;
s302, the data receiving module is connected with an MQTT server module by using an MQTT account number, the theme of uploaded data is subscribed, and the MQTT server module forwards the uploaded data information to the data receiving module;
s303, after the data receiving module receives the message of uploading data, the data receiving module checks the SN code and judges whether the checked SN code passes:
step S304 if the check SN code passes;
if the verification SN code does not pass, ending the data uploading process;
s305, the message body for uploading the data comprises token information received by the energy router, and after the data receiving module subscribes to the message for uploading the data, the data receiving module verifies the token information and judges whether the verification of the token information is successful:
firstly, if the token information is failed to be checked, ending the data uploading process;
if the token information is successfully checked, executing step S306;
and S306, after receiving the data uploading message, the data processing module classifies the uploaded data, stores the data into different data tables according to different equipment types, and provides data for the energy management platform to display.
Example 3:
the present embodiment further provides an electronic device, including: a memory and a processor;
wherein the memory stores computer execution instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the energy management platform-based data transmission method in any embodiment of the invention.
The processor may be a Central Processing Unit (CPU), but may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), array of off-the-shelf programmable gates (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the electronic device by executing or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, and the like. The memory may also include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a memory only card (SMC), a Secure Digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid state memory device.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A data transmission system based on an energy management platform is characterized by comprising an energy router module, an MQTT server module, a data receiving module and a data processing module;
the energy router module is used for connecting various energy devices downwards and providing a data acquisition function; the system is also used for deploying the MQTT client and releasing the acquired data to the MQTT server module through the MQTT client;
the MQTT server module is used for receiving network connection from the MQTT client, processing message subscription and message publishing requests of the MQTT client and forwarding messages published by the MQTT client to the message subscription client;
the data receiving module is used as a subscription client of the MQTT server module and subscribes to the message issued by the MQTT client in the energy router module;
the data processing module is used for carrying out classification processing on the data received by the data receiving module and storing the data into a back-end database of the energy management platform, and providing data support for a background system of the energy management platform.
2. The energy management platform-based data transmission system according to claim 1, wherein the energy router module operates as follows:
(1) the energy router module adopts the unique identification SN code as a unique gateway to register to the energy management platform;
(2) the energy router module acquires Token sent by the energy management platform as a connection Token for subsequent operation;
(3) registering various energy devices connected to the energy router module as acquisition point devices to an energy management platform; the energy equipment comprises energy storage equipment, electric equipment, photovoltaic equipment, a sensor and a meter;
(4) and when the equipment is registered, the data receiving module judges whether the energy equipment carries the SN code of the energy router module and the Token as verification conditions:
if so, successfully registering the energy equipment, and then skipping to the step (5);
if not, the energy equipment fails to be registered;
(5) and when the data is uploaded, the data receiving module judges whether the energy equipment carries the SN code and Token of the energy router module as verification conditions:
firstly, if so, uploading energy data acquired by the energy equipment to an energy management platform;
and if not, the data uploading fails.
3. The data transmission system based on the energy management platform according to claim 1, wherein the data receiving module specifically operates as follows:
(1) after the data receiving module receives the message registered by the gateway, the data receiving module decrypts the SN code and judges whether the decryption of the SN code is successful:
firstly, if decryption of the SN code fails, the gateway registration process is ended, and the MQTT client in the energy router module cannot receive token information;
if the SN code is decrypted successfully, executing the step (2);
(2) the data receiving module issues a token theme, the MQTT client in the energy router module receives token information, and the step (3) is executed;
(3) after the data receiving module receives the equipment registration message, the data receiving module checks the SN code and judges whether the check SN code passes:
if the check SN code passes, executing the step (4);
if the verification SN code does not pass, ending the equipment registration process, releasing a returned result theme of the equipment registration, and checking and re-registering after an MQTT client in the energy router module receives a message of equipment registration failure;
(4) after the data receiving module receives the message registered by the equipment and the verification SN passes, the data receiving module verifies the token information and judges whether the verification of the token information is successful;
if the check token information fails, ending the equipment registration process, issuing a returned result theme of equipment registration, and checking and re-registering after an MQTT client in the energy router module receives the information of equipment registration failure;
if the token information is successfully verified, transmitting the data to a data processing module for processing;
(5) after the data receiving module receives the message uploaded by the data, the data receiving module checks the SN code and judges whether the check of the SN code is successful:
firstly, if the verification of the SN code fails, ending the data uploading process;
if the verification SN code passes, executing the step (6);
(6) after the data receiving module receives the data uploading message and the check SN code passes, the data receiving module checks the token information and judges whether the check token information is successful:
firstly, if the token information is successfully verified, transmitting the data to a data processing module for processing;
and secondly, if the token information is failed to be verified, ending the data uploading process.
4. The energy management platform-based data transmission system according to any one of claims 1 to 3, wherein the data processing module specifically operates as follows:
(1) the data processing module receives gateway registration data, stores the gateway data in a warehouse, stores token information, and executes the step (2) next;
(2) the data processing module receives the equipment registration data, classifies the equipment information, and performs warehousing processing according to different equipment types; and determining whether the device information has been registered:
if the equipment information exists, updating operation is carried out, and the step (3) is executed next;
if the equipment information does not exist, performing an inserting operation, and executing the step (3) next;
(3) and the data processing module receives the data uploading data, classifies the uploaded data, stores the data into different data tables according to different equipment types, and provides data for the energy management platform to display.
5. A data transmission method based on an energy management platform is characterized in that different topics are respectively issued through MQTT clients in an energy router module and are sent to a data receiving module through an MQTT server module, the data receiving module receives different messages according to the different topics, classification of gateway registration, equipment registration and uploaded data is preliminarily carried out, the messages are sent to a data processing module, and the data processing module carries out further classification processing according to different data types and equipment types and stores the data in a warehouse; the method comprises the following specific steps:
s1, registering the gateway;
s2, registering equipment;
and S3, uploading the data.
6. The data transmission method based on the energy management platform according to claim 5, wherein the gateway registration in step S1 and the device registration in step S2 are both completed before the data uploading in step S3 is performed; otherwise, the data upload will fail.
7. The data transmission method based on the energy management platform according to claim 5, wherein the gateway registration in step S1 is as follows:
s101, an MQTT client deployed in an energy router module is connected with an MQTT server module by using an account number of the MQTT;
s102, an MQTT client publishes a topic of gateway registration, and a message body is a unique gateway identification SN code; the SN code adopts SM4 national cryptographic algorithm, and the same key is used for encryption and decryption;
s103, the operations performed simultaneously with step S102 are: an MQTT client subscribes a gateway registration token to issue a theme;
s104, the data receiving module is connected with an MQTT server module by using an MQTT account number and subscribes a gateway registration theme, and the MQTT server module forwards the registration gateway information to the data receiving module;
s105, after the data receiving module receives the gateway registration information, the data receiving module decrypts the SN code and judges whether the decryption of the SN code is successful:
firstly, if decryption of SN (serial number) codes fails, gateway registration is ended, and an MQTT client in an energy router module cannot receive token information;
if the decryption of the SN code is successful, executing the step S106;
s106, the data processing module issues a topic for registering the token by the publishing gateway, and the MQTT client in the energy router module receives token information and jumps to the step S103; meanwhile, the data processing module carries out warehousing processing on the gateway data and stores token information.
8. The data transmission method based on the energy management platform according to claim 5, wherein the device registration in step 201 is specifically as follows:
s201, after gateway registration is successful, equipment registration is carried out on an MQTT client deployed in the energy router module, and energy storage equipment, electric equipment, photovoltaic equipment, sensors and meter equipment connected to the energy router module are registered to an energy management platform;
s202, the operations performed simultaneously with step S201 are: the MQTT client publishes a theme of equipment registration, wherein the theme comprises a gateway unique identification (SN) code;
s203, the data receiving module uses the MQTT account to connect with the MQTT server module and subscribes the theme of equipment registration, and the MQTT server module forwards the information of the registered equipment to the data receiving module;
s204, after the data receiving module receives the equipment registration message, the data receiving module checks the SN code and judges whether the checked SN code passes:
if the check SN code passes, executing step S205;
if the verification SN code is not passed, the equipment registration process is ended, the returned result theme of the equipment registration is issued, and the step S202 is executed;
s205, the message body of the equipment registration comprises the token information received by the energy router, the data receiving module verifies the token information and judges whether the verification of the token information is successful:
firstly, if the token information is verified to be failed, the device registration process is ended, a returned result theme of the device registration is issued, after the MQTT client in the energy router module receives the device registration failure message, the MQTT client checks and re-registers, and the step S202 is executed;
step S206 is executed if the token is successfully verified;
s206, after receiving the device registration message, the data processing module classifies the device information, performs storage processing according to different device types, and judges whether the device information exists:
if yes, updating operation is carried out;
and if not, performing insertion operation.
9. The energy management platform-based data transmission method according to any one of claims 5 to 8, wherein the uploading data in step S3 is specifically as follows:
s301, after the equipment registration process is finished, the energy router module acquires data information uploaded by equipment at regular time, and issues a theme of the uploaded data through the MQTT client, wherein the theme of the uploaded data comprises a gateway unique identification (SN) code;
s302, the data receiving module is connected with an MQTT server module by using an MQTT account number, the theme of uploaded data is subscribed, and the MQTT server module forwards the uploaded data information to the data receiving module;
s303, after the data receiving module receives the message of uploading data, the data receiving module checks the SN code and judges whether the checked SN code passes:
step S304 if the check SN code passes;
if the verification SN code does not pass, ending the data uploading process;
s305, the message body for uploading the data comprises token information received by the energy router, and after the data receiving module subscribes to the message for uploading the data, the data receiving module verifies the token information and judges whether the verification of the token information is successful:
if the token information is checked to be failed, ending the data uploading process;
step S306 is executed if the token information is successfully verified;
and S306, after receiving the data uploading message, the data processing module classifies the uploaded data, stores the data into different data tables according to different equipment types, and provides data for the energy management platform to display.
10. An electronic device, comprising: a memory and at least one processor;
wherein the memory has stored thereon a computer program;
the at least one processor executes the memory-stored computer program to cause the at least one processor to perform the energy management platform-based data transfer method of any one of claims 5 to 9.
CN202210873957.1A 2022-07-25 2022-07-25 Data transmission system and method based on energy management platform Active CN115086380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210873957.1A CN115086380B (en) 2022-07-25 2022-07-25 Data transmission system and method based on energy management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210873957.1A CN115086380B (en) 2022-07-25 2022-07-25 Data transmission system and method based on energy management platform

Publications (2)

Publication Number Publication Date
CN115086380A true CN115086380A (en) 2022-09-20
CN115086380B CN115086380B (en) 2022-11-15

Family

ID=83241919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210873957.1A Active CN115086380B (en) 2022-07-25 2022-07-25 Data transmission system and method based on energy management platform

Country Status (1)

Country Link
CN (1) CN115086380B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097766A (en) * 2023-10-18 2023-11-21 厦门海辰储能科技股份有限公司 Data monitoring method and data monitoring device of energy storage system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107708112A (en) * 2017-11-02 2018-02-16 重庆邮电大学 A kind of encryption method suitable for MQTT SN agreements
CN109040098A (en) * 2018-08-23 2018-12-18 四川长虹电器股份有限公司 A method of MQTT protocol authentication is realized based on JWT
WO2020063048A1 (en) * 2018-09-29 2020-04-02 深圳前海达闼云端智能科技有限公司 Pon network and communication method therefor, olt, mqtt-sn gateway, onu, and mqtt server
CN111131501A (en) * 2019-12-31 2020-05-08 郑州信大捷安信息技术股份有限公司 MQTT protocol-based message pushing system and method
CN111245661A (en) * 2020-03-04 2020-06-05 山西博华科技有限公司 Big data acquisition processing system of thing networking based on MQTT
CN112073403A (en) * 2020-08-31 2020-12-11 宁波奥克斯电气股份有限公司 AP isolation state network distribution method, terminal and readable storage medium
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN113991875A (en) * 2021-12-27 2022-01-28 江苏驷源电力有限公司 Low-voltage distribution network terminal equipment and message interaction method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107708112A (en) * 2017-11-02 2018-02-16 重庆邮电大学 A kind of encryption method suitable for MQTT SN agreements
CN109040098A (en) * 2018-08-23 2018-12-18 四川长虹电器股份有限公司 A method of MQTT protocol authentication is realized based on JWT
WO2020063048A1 (en) * 2018-09-29 2020-04-02 深圳前海达闼云端智能科技有限公司 Pon network and communication method therefor, olt, mqtt-sn gateway, onu, and mqtt server
CN111131501A (en) * 2019-12-31 2020-05-08 郑州信大捷安信息技术股份有限公司 MQTT protocol-based message pushing system and method
CN111245661A (en) * 2020-03-04 2020-06-05 山西博华科技有限公司 Big data acquisition processing system of thing networking based on MQTT
CN112073403A (en) * 2020-08-31 2020-12-11 宁波奥克斯电气股份有限公司 AP isolation state network distribution method, terminal and readable storage medium
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN113991875A (en) * 2021-12-27 2022-01-28 江苏驷源电力有限公司 Low-voltage distribution network terminal equipment and message interaction method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097766A (en) * 2023-10-18 2023-11-21 厦门海辰储能科技股份有限公司 Data monitoring method and data monitoring device of energy storage system

Also Published As

Publication number Publication date
CN115086380B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN110401592B (en) Method and equipment for data transfer in message channel
CN111614761B (en) Block chain message transmission method, device, computer and readable storage medium
CN105991412A (en) Method and device for pushing message
CN114024972B (en) Long connection communication method, system, device, equipment and storage medium
CN114567650B (en) Data processing method and Internet of things platform system
CN115086380B (en) Data transmission system and method based on energy management platform
CN111240862A (en) Universal interface platform and data conversion method
CN111371889B (en) Message processing method and device, internet of things system and storage medium
CN114035987A (en) Data transmission method and device based on message queue, electronic equipment and medium
CN112269981A (en) Block-based linkage computing power equipment data construction method, server and storage medium
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN105357267A (en) Method, device and system for obtaining server information
CN113259429B (en) Session maintenance management and control method, device, computer equipment and medium
US11509619B2 (en) Techniques to provide streaming data resiliency utilizing a distributed message queue system
CN112862650A (en) Object handover method and device and electronic equipment
CN112671844B (en) Equipment registration method and system
CN112668998B (en) Flow implementation method, device, system, electronic equipment and readable storage medium
CN114422496A (en) Mass traffic data processing system and method
CN110474954B (en) Block chain-based file sharing method and device, computer equipment and readable storage medium
CN113779021A (en) Data processing method, device, computer system and readable storage medium
CN108805741B (en) Fusion method, device and system of power quality data
CN113472781A (en) Service acquisition method, server and computer readable storage medium
CN113076380A (en) Data synchronization method, device, system, equipment and storage medium
CN111552907A (en) Message processing method, device, equipment and storage medium
CN111240867A (en) Information communication system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant