WO2020052133A1 - Gateway communication method, gateway, and energy system - Google Patents

Gateway communication method, gateway, and energy system Download PDF

Info

Publication number
WO2020052133A1
WO2020052133A1 PCT/CN2018/121499 CN2018121499W WO2020052133A1 WO 2020052133 A1 WO2020052133 A1 WO 2020052133A1 CN 2018121499 W CN2018121499 W CN 2018121499W WO 2020052133 A1 WO2020052133 A1 WO 2020052133A1
Authority
WO
WIPO (PCT)
Prior art keywords
blockchain
information
energy
gateway
network
Prior art date
Application number
PCT/CN2018/121499
Other languages
French (fr)
Chinese (zh)
Inventor
王灵军
文武
许芳萃
Original Assignee
珠海格力电器股份有限公司
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 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2020052133A1 publication Critical patent/WO2020052133A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H02J13/0013

Definitions

  • the present disclosure relates to the field of energy network technology, and in particular, to a gateway communication method, a gateway, and an energy system.
  • the current generation and supply of electric energy mostly adopts a unified dispatching method. Electricity is generated by a power plant and dispatched to different users on the energy network.
  • a gateway communication method which includes: the gateway receives energy information from an energy network; generates blockchain information based on the energy information; and publishes a block on a blockchain network where the gateway is located Chain information.
  • the gateway communication method further includes: the gateway receives an energy dispatch request from the energy network; and generates energy dispatch information based on the blockchain data, the blockchain data includes the area issued by each node on the blockchain network where the gateway is located Blockchain information; generates blockchain information based on energy dispatch information and publishes it on the blockchain network where the gateway is located.
  • the gateway communication method further includes: the gateway obtains the blockchain information from the blockchain network; when the blockchain information includes energy scheduling information, and the energy scheduling information is related to the energy network connected to the gateway To send energy scheduling information to the energy network in order to perform energy scheduling.
  • the gateway is located on multiple blockchain networks.
  • the gateway is connected to multiple energy networks.
  • generating the blockchain information according to the energy information includes: for each blockchain network where the gateway is located, based on the energy information required by the blockchain network, generating rules based on the blockchain information of the blockchain network Generate blockchain information; publishing blockchain information includes: publishing blockchain information to the blockchain network corresponding to the blockchain information.
  • generating the blockchain information based on the energy dispatch information includes: determining a blockchain network associated with the energy dispatch information; and based on the energy dispatch information, according to the blocks of the blockchain network associated with the energy dispatch information
  • the chain information generation rule generates blockchain information; publishing the blockchain information on the blockchain network where the gateway is located includes publishing the blockchain information on the blockchain network associated with the energy dispatch information.
  • the gateway communication method further comprises: determining the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, wherein the execution request is generated by the gateway or from the Obtained from the blockchain information of other nodes on the first blockchain network; if the gateway is located on the second blockchain network, generate a block based on the execution request and the blockchain information generation rules of the second blockchain network The chain information is published on the second blockchain network so that related nodes on the second blockchain network can execute the execution request in the blockchain information.
  • the gateway communication method further includes: generating data according to at least one of energy scheduling information and execution requests originating from other blockchain networks.
  • the current blockchain network's execution request ; generating a blockchain based on the execution request
  • the information is published on the current blockchain network.
  • the gateway communication method further includes: generating and / or updating a gateway configuration parameter according to at least one of an energy network and a blockchain network, wherein the gateway configuration parameter includes a gateway identity configuration parameter, a key configuration parameter, a trigger One or more of policy configuration parameters, period configuration parameters, and network port configuration parameters.
  • the gateway communication method further includes at least one of the following: requesting access to the blockchain network according to pre-stored authentication information, and accessing the blockchain network through identity information authorized by the blockchain network; or, according to the pre-stored The authentication information requests access to the energy network, and the identity information authorized by the energy network accesses the energy network.
  • the gateway communication method further includes at least one of the following: analyzing the communication rules of the blockchain network based on the blockchain information from the blockchain network, and adjusting the gateway in the blockchain according to the communication rules of the blockchain network.
  • the communication behavior of the network conforms the communication behavior to the communication rules; or, analyzes the communication rules of the energy network based on the energy information from the energy network, and adjusts the communication behavior of the gateway in the energy network according to the communication rules of the energy network to make the communication behavior comply with the communication rules .
  • a gateway including: an energy network communication module configured to receive energy information from the energy network; and an information processing module configured to generate blockchain information based on the energy information ; Blockchain network communication module, configured to publish blockchain information on the blockchain network where the gateway is located.
  • the energy network communication module is further configured to receive an energy dispatch request from the energy network; the information processing module is further configured to generate energy dispatch information based on the blockchain data, and the blockchain data includes the area where the gateway is located.
  • Blockchain information issued by each node on the blockchain network generates blockchain information based on energy dispatch information, so that the blockchain network communication module is published on the blockchain network where the gateway is located.
  • the blockchain network communication module is further configured to obtain blockchain information from the blockchain network; the energy network communication module is further configured to include the energy scheduling information in the information processing module determining the blockchain information If the energy scheduling information is related to the energy network connected to the gateway, the energy scheduling information is sent to the energy network in order to perform energy scheduling.
  • the gateway includes multiple blockchain network communication modules.
  • the gateway includes multiple energy network communication modules.
  • the information processing module is further configured to: for each blockchain network where the gateway is located, based on the energy information required by the blockchain network, generate a rule generation area based on the blockchain information of the blockchain network Blockchain information; the blockchain network communication module is also configured to: publish the blockchain information to the blockchain network corresponding to the blockchain information.
  • the information processing module is further configured to: determine a blockchain network associated with energy scheduling information; and based on the energy scheduling information, generate based on the blockchain information of the blockchain network associated with the energy scheduling information The rules generate blockchain information; the blockchain network communication module is also configured to publish the blockchain information on the blockchain network associated with the energy dispatch information.
  • the information processing module is further configured to determine the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, wherein the execution request is generated by the gateway, or Obtained from the blockchain information from other nodes on the first blockchain network; in the case where the gateway is located on the second blockchain network, it is generated according to the execution request and the blockchain information generation rules of the second blockchain network Blockchain information; the blockchain network communication module is configured to publish the blockchain information generated according to the execution request on the second blockchain network so that relevant nodes on the second blockchain network can execute the blockchain information. Execution request.
  • the information processing module is further configured to: generate data according to at least one of energy dispatch information and execution requests originating from other blockchain networks; an execution request of the current blockchain network; and generate an area based on the execution request Blockchain information, so that the blockchain network communication module is published on the current blockchain network.
  • the gateway further includes: a configuration management module configured to generate and / or update gateway configuration parameters according to at least one of an energy network and a blockchain network, wherein the gateway configuration parameters include a gateway identity configuration parameter, a password One or more of key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters.
  • a configuration management module configured to generate and / or update gateway configuration parameters according to at least one of an energy network and a blockchain network, wherein the gateway configuration parameters include a gateway identity configuration parameter, a password One or more of key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters.
  • the gateway further includes an authentication and identity management module configured to perform at least one of the following: request access to the blockchain network according to pre-stored authentication information, so that the gateway uses identity information authorized by the blockchain network Access the blockchain network; or, request access to the energy network based on the pre-stored authentication information, so that the gateway accesses the energy network using the identity information authorized by the energy network.
  • the gateway further includes a rule determination module configured to perform at least one of the following: analyze the communication rules of the blockchain network based on the blockchain information from the blockchain network, and perform the communication rules according to the blockchain network. Adjust the communication behavior of the gateway in the blockchain network so that the communication behavior complies with the communication rules; or, analyze the communication rules of the energy network based on the energy information from the energy network, and adjust the communication behavior of the gateway in the energy network according to the communication rules of the energy network, Align communication behavior with communication rules.
  • a gateway including: a memory; and a processor coupled to the memory, the processor being configured to execute any one of the gateway communication methods above based on instructions stored in the memory. .
  • a computer-readable storage medium on which computer program instructions are stored, and the instructions, when executed by a processor, implement the steps of any one of the gateway communication methods above.
  • an energy system including: a blockchain network configured to store and interact with blockchain information; an energy network configured to collect energy equipment information; and, Any of the above gateways.
  • FIG. 1 is a flowchart of some embodiments of a gateway communication method of the present disclosure.
  • FIG. 2 is a flowchart of another embodiment of a gateway communication method according to the present disclosure.
  • FIG. 3 is a flowchart of another embodiment of a gateway communication method according to the present disclosure.
  • FIG. 4 is a schematic diagram of some embodiments of a gateway of the present disclosure.
  • FIG. 5 is a schematic diagram of another embodiment of a gateway of the present disclosure.
  • FIG. 6 is a schematic diagram of still other embodiments of a gateway of the present disclosure.
  • FIG. 7 is a schematic diagram of some embodiments of an energy system of the present disclosure.
  • FIG. 1 A flowchart of some embodiments of the gateway communication method of the present disclosure is shown in FIG. 1.
  • the gateway receives energy information from the energy network.
  • the gateway may be connected to information collection and processing equipment of the energy network to obtain energy information.
  • the energy information may include identity, power generation capacity, power consumption capacity, power storage capacity, adjustable capacity, space-time attributes, demand information, supply information, unit type, U (voltage), I (current), One or more of P (power), Q (energy), and the like.
  • step 102 blockchain information is generated based on the energy information.
  • the gateway may be connected to one or more energy networks to obtain energy information of each energy network respectively.
  • the blockchain information is generated according to the blockchain information generation rule of the blockchain network.
  • the predetermined rule may be a static rule or a dynamic rule, and is implemented by a rule engine that can dynamically update the rule.
  • step 103 the blockchain information is published on the blockchain network where the gateway is located.
  • the gateway can publish the energy information of the energy network to the blockchain network, thereby achieving a decentralized record of energy information, and can read the recorded information at any node of the blockchain network, which is convenient for generating scheduling instructions. To achieve flexible scheduling of energy.
  • the gateway may belong to one or more blockchain networks, and the blockchain network may be homogeneous or heterogeneous.
  • the information that needs to be published in each blockchain network is different, and the rules for generating information can also be different.
  • the gateway can generate blocks based on the blockchain network information generation rules based on the energy information required by each blockchain network. Chain information.
  • the nodes on each blockchain network can obtain the required energy information, and the information can be stored on the blockchain network.
  • the gateway can facilitate the information exchange between different blockchain networks, realize the blockchain network processing of information, and reduce the requirements for the information processing capabilities of each node.
  • FIG. 2 A flowchart of another embodiment of the gateway communication method of the present disclosure is shown in FIG. 2.
  • the gateway receives an energy scheduling request from the energy network.
  • the energy dispatch request may be a request to dispatch energy from an energy network in another region, or to provide energy to another energy network.
  • the energy scheduling request may also be a request for adjusting the amount and speed of energy generated and consumed in the energy network.
  • the energy network may compare its own energy demand and energy information, trigger the generation of an energy scheduling request, and send it to the gateway.
  • the gateway In step 202, the gateway generates energy scheduling information based on the blockchain data.
  • Blockchain data includes blockchain information issued by various nodes on the blockchain network where the gateway is located.
  • the gateway may obtain the energy information in the network according to the blockchain data generated within a predetermined period of time, and generate the energy scheduling information. For example, if the energy network A requests power, the gateway determines that the energy network B can provide power based on the energy information reported by the energy network B in the blockchain data, and then generates energy scheduling information for scheduling energy from the energy network B.
  • step 203 the gateway generates blockchain information based on the energy scheduling information.
  • step 204 the blockchain information is published on the blockchain network where the gateway is located, so that all nodes on the blockchain network can obtain the information.
  • each gateway node can generate energy scheduling information based on its own stored blockchain data, which enables decentralized energy scheduling and improves the flexibility and execution efficiency of energy scheduling.
  • the gateway may first determine the blockchain network associated with the energy dispatch information, and then based on the energy dispatch information, Generate blockchain information based on the blockchain information generation rules of the blockchain network associated with energy dispatch information, and publish the blockchain information on the blockchain network associated with the energy dispatch information to achieve energy dispatch information Accurate release, reducing the data storage burden of blockchain network nodes.
  • the gateway can perform corresponding scheduling work according to the blockchain information including energy scheduling information published on the blockchain network.
  • the gateway communication method may further include steps 205-206.
  • step 205 the gateway obtains the blockchain information from the blockchain network, and the blockchain information is the blockchain information issued by any node in the blockchain network.
  • the gateway stores the blockchain information to enrich the blockchain data.
  • step 206 if the blockchain information includes energy scheduling information and the energy scheduling information is related to the energy network connected to the gateway, the energy scheduling information is sent to the energy network in order to perform energy scheduling.
  • the gateway can parse the blockchain information, and if it only includes the energy information of each node, it directly stores it; if it includes the content that needs to be executed, such as energy scheduling information, and the energy scheduling information is Related to the energy network, the energy scheduling information in the blockchain information is extracted and sent to the energy network, so that the energy network can implement energy scheduling through the underlying energy scheduling channel.
  • the energy dispatching information can be distributed and stored in the form of a blockchain. While achieving flexible energy dispatching, it can also ensure the secure storage of transaction records and improve the reliability of energy dispatching and transactions.
  • the gateway when the gateway is connected to multiple energy networks, the gateway needs to determine the energy network related to the energy scheduling information, and then only delivers the energy scheduling information to the energy network, so that the energy scheduling information is available. Targeted relaying to avoid unnecessary operations by nodes in the energy network and ensure the accuracy of energy scheduling.
  • a single energy dispatch operation may involve multiple blockchain networks, and different blockchain networks need to perform instruction interactions.
  • FIG. 3 A flowchart of another embodiment of the gateway communication method of the present disclosure is shown in FIG. 3.
  • the second blockchain network corresponding to the execution request is determined according to the execution request from the first blockchain network to which the gateway belongs.
  • the execution request may be generated by the gateway, or may be obtained from the blockchain information from other nodes on the first blockchain network.
  • step 302 if the gateway is located on the second blockchain network, the request is executed to generate the blockchain information according to the blockchain information generation rules of the second blockchain network.
  • step 303 the gateway publishes the blockchain information generated in step 302 on the second blockchain network, so that relevant nodes on the second blockchain network can execute the execution request in the blockchain information.
  • an execution request can be generated on the blockchain network, and the execution request can generate blockchain information for another network at the intersection gateway of the blockchain network and publish to the network, so that the execution request is
  • the blockchain network is implemented on the blockchain network, thereby realizing data processing operations across the blockchain network, improving the blockchain network's ability to process complex and comprehensive instructions, and further increasing the flexibility of energy scheduling.
  • steps 304-306 may be further included.
  • the gateway In step 304, the gateway generates data of an execution request of the current blockchain network according to at least one of energy scheduling information and execution requests originating from other blockchain networks.
  • the gateway may be the gateway on the second blockchain network in step 304, and the execution request is extracted from the blockchain information; in other embodiments, the execution request may also be performed by the gateway according to its own Energy dispatch information generation.
  • the gateway may also generate an execution request of the current blockchain network according to the blockchain data stored by itself after parsing an execution request from another blockchain network.
  • step 305 the gateway generates blockchain information based on the execution request.
  • step 306 the gateway publishes the blockchain information on the current blockchain network, so that all nodes on the current blockchain network receive the blockchain information and related nodes execute the execution request of the current blockchain network.
  • the gateway can generate execution requests and can execute execution requests from other gateways and even other blockchain networks, ensuring the data processing capabilities of the blockchain network and further improving the flexibility of energy scheduling.
  • the gateway may be flexibly connected to the energy network (or a communication network to which the energy network is connected).
  • the gateway can pre-store authentication information, use the pre-stored authentication information to request access to the energy network, and access the energy network through the identity information authorized by the energy network. This method improves the flexibility of gateway access on the one hand, and also helps control the authority of the gateway on the other hand, and improves network security.
  • the gateway can flexibly access the blockchain network.
  • the gateway can pre-store authentication information, use the pre-stored authentication information to request access to the blockchain network, and access the energy network through the identity information authorized by the blockchain network. This method improves the flexibility of gateway access on the one hand, and also helps control the authority of the gateway on the other hand, and improves network security.
  • the gateway may generate or update gateway configuration parameters according to one or more energy networks it accesses, or may generate or update gateway configuration parameters according to one or more blockchain networks it accesses, and Can take into account each energy network and blockchain network to generate or update gateway configuration parameters.
  • the adaptive configuration parameters can be obtained according to the information from each network, and then the configuration parameters of the gateway itself can be adjusted.
  • the gateway configuration parameters may include one or more of gateway identity configuration parameters, key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters.
  • the gateway may further analyze the communication rules of the blockchain network based on the blockchain information from the blockchain network, and adjust the communication behavior of the gateway on the blockchain network according to the communication rules of the blockchain network to enable communication.
  • the behavior complies with the rules of communication.
  • the gateway may further analyze the communication rules of the energy network according to the energy information from the energy network, and adjust the communication behavior of the gateway in the energy network according to the communication rules of the energy network, so that the communication behavior conforms to the communication rules.
  • the adaptability of the gateway to different blockchain networks and energy networks can be further improved, making the gateway compatible with different networks, and improving the adaptive ability of the gateway.
  • the energy network communication module 401 can receive energy information from the energy network.
  • the gateway may be connected to information collection and processing equipment of the energy network to obtain energy information.
  • the gateway 400 may include one or more energy network communication modules to achieve connection with one or more energy networks and obtain energy information of each energy network respectively.
  • the energy information may include identity, power generation capacity, power consumption capacity, power storage capacity, adjustable capacity, space-time attributes, demand information, supply information, unit type, U (voltage), I (current), One or more of P (power), Q (energy), and the like.
  • the information processing module 402 can generate blockchain information based on the energy information. In some embodiments, after the energy information is extracted, summarized, and transformed according to a predetermined rule, the blockchain information is generated according to the blockchain information generation rule of the blockchain network. In some embodiments, the information processing module 402 can also perform operations such as extraction, aggregation, and transformation on the received blockchain information according to a predetermined rule, and provide the operation to the energy network.
  • the predetermined rule may be a static rule or a dynamic rule, and is implemented by a rule engine that can dynamically update the rule.
  • the blockchain network communication module 403 can publish blockchain information on the blockchain network where the gateway is located.
  • the gateway 400 may include one or more blockchain network communication modules, so that the gateway belongs to one or more blockchain networks.
  • Such a gateway can publish the energy information of the energy network to the blockchain network, thereby achieving a decentralized record of energy information, and can read the recorded information at any node of the blockchain network, which is convenient for generating scheduling instructions and implementing Flexible scheduling of energy.
  • the information processing module 402 can be based on the energy information required by each blockchain network and according to the blockchain information of the blockchain network
  • the generation rules generate blockchain information, so that nodes on each blockchain network can obtain the required energy information, and the information can be stored on the blockchain network.
  • the gateway can facilitate the information exchange between different blockchain networks, realize the blockchain network processing of information, and reduce the requirements for the information processing capabilities of each node.
  • the energy network communication module 401 is also capable of receiving energy scheduling requests from the energy network.
  • the energy dispatch request may be a request to dispatch energy from an energy network in another region, or to provide energy to another energy network.
  • the energy scheduling request may also be a request for adjusting the amount and speed of energy generated and consumed in the energy network.
  • the energy network may compare its own energy demand and energy information, trigger the generation of an energy scheduling request, and send it to the gateway.
  • the information processing module 402 can generate energy scheduling information based on the blockchain data, and generate blockchain information based on the energy scheduling information.
  • Blockchain data includes blockchain information issued by various nodes on the blockchain network where the gateway is located.
  • the gateway may obtain the energy information in the network according to the blockchain data generated within a predetermined period of time, and generate the energy scheduling information.
  • the blockchain network communication module 403 can publish blockchain information on the blockchain network where the gateway is located, so that all nodes on the blockchain network can obtain the information.
  • Such a gateway can generate energy scheduling information according to the blockchain data stored by itself, realize decentralized energy scheduling, and improve the flexibility and execution efficiency of energy scheduling.
  • the information processing module 402 may first determine that it is related to the energy scheduling information. Based on the energy dispatch information, the blockchain information is generated according to the blockchain information generation rules of the blockchain network associated with the energy dispatch information, and the blockchain is associated with the energy dispatch information.
  • the network-connected blockchain network communication module 403 issues blockchain information, thereby achieving accurate distribution of energy dispatching information, and reducing the data storage burden of the blockchain network nodes.
  • the information processing module 402 stores the blockchain information and parses the content of the blockchain information, including the energy scheduling information in the blockchain information If the energy scheduling information is related to the energy network connected to the energy network communication module 401, the energy scheduling information is sent to the energy network in order to perform energy scheduling.
  • Such a gateway can realize the distribution and storage of energy dispatching information in the form of a blockchain. While achieving flexible energy dispatching, it can also ensure the secure storage of transaction records and improve the reliability of energy dispatching and transactions.
  • the information processing module 402 needs to determine the energy network related to the energy scheduling information, and then only by the energy network communication module 401 connected to the energy network The energy dispatching information is transmitted, so as to realize the targeted transmission of the energy dispatching information, avoid unnecessary operations by the nodes in the energy network, and ensure the accuracy of the energy dispatching.
  • the information processing module 402 can also determine the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, where the execution request is generated by the gateway or from the The first blockchain network; if the gateway is located on the second blockchain network, the request will be executed to generate the blockchain information according to the blockchain information generation rules of the second blockchain network.
  • the blockchain network communication module 403 can publish blockchain information on the second blockchain network, so that relevant nodes on the second blockchain network can execute the execution request in the blockchain information.
  • Such a gateway can generate an execution request on the blockchain network, and at the intersection gateway of the blockchain network, the execution request generates blockchain information for another network and publishes it to the network, so that the execution request is in the area. Executed on the blockchain network, thus achieving data processing operations across the blockchain network, improving the blockchain network's data processing capabilities for complex and comprehensive instructions, and further increasing the flexibility of energy scheduling.
  • the information processing module 402 can also generate data according to at least one of energy scheduling information and execution requests originating from other blockchain networks.
  • the blockchain network communication module 403 publishes the blockchain information generated by the information processing module 402 on the current blockchain network, so that all nodes on the current blockchain network receive the blockchain information and the relevant nodes Execute the execution request of the current blockchain network.
  • Such a gateway can generate execution requests and can execute execution requests from other gateways and even other blockchain networks, ensuring the data processing capabilities of the blockchain network and further improving the flexibility of energy scheduling.
  • the gateway may further include a configuration management module 404 capable of generating or updating gateway configuration parameters according to one or more energy networks to which it is connected, or according to one or more of its access nodes.
  • the blockchain network generates or updates the gateway configuration parameters, or it can take into account the various energy networks and blockchain networks it accesses to update the gateway configuration parameters.
  • the adaptive configuration parameters can be obtained according to the information from each network, and then the configuration parameters of the gateway itself can be adjusted.
  • the gateway configuration parameters may include one or more of gateway identity configuration parameters, key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters. Such a gateway can improve the adaptability of the network to which it is connected or joined, and improve the adaptability of the gateway.
  • the gateway may further include an authentication and identity management module 405, which can use pre-stored authentication information to request access to the energy network, and enable the gateway to access the energy network through the identity information authorized by the energy network.
  • the authentication and identity management module 405 may request access to the blockchain network using pre-stored authentication information, and enable the gateway to access the energy network through the identity information authorized by the blockchain network.
  • the gateway may further include a rule determination module 406, which can analyze the communication rules of the blockchain network based on the blockchain information from the blockchain network, and according to the communication rules of the blockchain network. Adjust the communication behavior of the gateway in the blockchain network to make the communication behavior comply with the communication rules.
  • the rule determination module 406 may further analyze the communication rules of the energy network according to the energy information from the energy network, and adjust the communication behavior of the gateway on the energy network according to the communication rules of the energy network, so that the communication behavior conforms to the communication rules.
  • Such a gateway can further improve the adaptability of the gateway to different blockchain networks and energy networks, make the gateway compatible with different networks, and improve the adaptability of the gateway.
  • the gateway includes a memory 501 and a processor 502.
  • the memory 501 may be a magnetic disk, a flash memory, or any other non-volatile storage medium.
  • the memory is configured to store the instructions in the corresponding embodiments of the gateway communication method above.
  • the processor 502 is coupled to the memory 501 and may be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller.
  • the processor 502 is used to execute instructions stored in the memory, which can implement a decentralized record of energy information, and can read the recorded information at any node of the blockchain network, thereby facilitating the generation of scheduling instructions and achieving flexibility in energy. Scheduling.
  • the gateway 600 includes a memory 601 and a processor 602.
  • the processor 602 is coupled to the memory 601 through a BUS bus 603.
  • the gateway 600 may also be connected to the external storage device 605 through the storage interface 604 to call external data, and may also be connected to the network or another computer system (not shown) through the network interface 606. I won't go into details here.
  • a data instruction is stored in a memory, and then the processor processes the above instruction, so that a decentralized record of energy information can be achieved, and the recorded information can be read at any node of the blockchain network, thereby facilitating the generation of a schedule Instructions to achieve flexible scheduling of energy.
  • a computer-readable storage medium stores computer program instructions thereon, which when executed by a processor, implement steps of a method corresponding to an embodiment of a gateway communication method.
  • a processor executes computer program instructions thereon, which when executed by a processor, implement steps of a method corresponding to an embodiment of a gateway communication method.
  • the embodiments of the present disclosure may be provided as a method, an apparatus, or a computer program product. Therefore, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code therein. .
  • the gateway 700 may be any of the gateways mentioned above.
  • the gateway 700 may be connected to the blockchain network through a blockchain network communication module and connected to the energy network through an energy network communication module.
  • the blockchain network is capable of storing and interacting with blockchain information.
  • the energy network can collect energy equipment information.
  • the energy network may include multiple communication modules, and each communication module may access a communication network or a field bus network to implement communication between devices within the boundary of a small energy network.
  • Energy networks can be homogeneous or heterogeneous.
  • the gateway can publish the energy information of the energy network to the blockchain network, so that the energy information can be decentralized, and the recorded information can be read at any node of the blockchain network, which is convenient. Generate scheduling instructions to achieve flexible scheduling of energy.
  • the energy network may include a power generation device, an energy storage device, a transmission device, a power consumption device, etc.
  • Each device is connected through a communication module to coordinate its own electrical behavior.
  • devices in a single or several homes can access the blockchain network through the gateway 700 as a unit node; for factory scenarios, devices in a single or several workshops can access the zone through the gateway 700 as a unit node
  • Blockchain network, home or workshop is a distributed energy production and sales unit.
  • the energy network accesses the blockchain network through the gateway 700, thereby realizing the joint scheduling control of all energy networks on the blockchain network, and improving the management and control capability of the distributed energy network.
  • the gateway 700 may include multiple blockchain network communication modules, such as the blockchain network communication modules 711-71n, where n is a positive integer greater than 1. Each blockchain network communication module is connected to a blockchain network.
  • the number of blockchain networks that can be connected is 741-74n, that is, the number does not exceed the number of blockchain network communication modules.
  • the gateway 700 may include multiple energy network communication modules, such as energy network communication modules 731 to 73m, where m is a positive integer greater than 1. Each energy network communication module is connected to an energy network.
  • the blockchain network that can be connected is 751 to 75m, that is, the number does not exceed the number of energy network communication modules.
  • Such an energy system can realize the connection of a single gateway to multiple energy networks, reducing the demand for the gateway; it can enable nodes on each blockchain network to obtain their own energy information, and realize the blockchain network storage of information.
  • the gateway can facilitate the information exchange between different blockchain networks, realize the division of blockchain network information, and reduce the requirements for the information processing capabilities of each node.
  • the gateway 700 can flexibly use its idle energy network communication module to flexibly access the energy network, utilize its idle blockchain network communication module to flexibly access the blockchain network, and can pass the authentication and identity management module Complete the authentication access, use the rule determination module to determine the communication rules of each network, and use the configuration management module to complete the configuration and update of the gateway configuration parameters, so as to improve the flexibility of the network connection and the system's adaptive ability.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
  • the methods and apparatus of the present disclosure may be implemented in many ways.
  • the methods and devices of the present disclosure may be implemented by software, hardware, firmware or any combination of software, hardware, firmware.
  • the above order of the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless otherwise specifically stated.
  • the present disclosure may also be implemented as programs recorded in a recording medium, which programs include machine-readable instructions for implementing the method according to the present disclosure.
  • the present disclosure also covers a recording medium storing a program for executing a method according to the present disclosure.

Abstract

The present disclosure relates to the technical field of energy networks and provides a gateway communication method, a gateway, and an energy system. The gateway communication method of the present disclosure comprises: a gateway receives energy information from an energy network; generate blockchain information on the basis of the energy information; and publish the blockchain information on a blockchain network where the gateway is located. In this way, the gateway can publish the energy information of the energy network to the blockchain network, so that a decentralized record of the energy information is achieved, and the recorded information can be read at any node of the blockchain network, thereby facilitating generation of a scheduling instruction and achieving flexible scheduling of energy.

Description

网关通信方法、网关和能源系统Gateway communication method, gateway and energy system
相关申请的交叉引用Cross-reference to related applications
本申请是以CN申请号为201811050054.3,申请日为2018年9月10日的申请为基础,并主张其优先权,该CN申请的公开内容在此作为整体引入本申请中。This application is based on an application with a CN application number of 201811050054.3 and an application date of September 10, 2018, and claims its priority. The disclosure of this CN application is incorporated herein as a whole.
技术领域Technical field
本公开涉及能源网络技术领域,特别是一种网关通信方法、网关和能源系统。The present disclosure relates to the field of energy network technology, and in particular, to a gateway communication method, a gateway, and an energy system.
背景技术Background technique
目前的电能生成和供给多采用统一调度的方式,由电厂产生电能,在能源网络上调度给不同的用户。The current generation and supply of electric energy mostly adopts a unified dispatching method. Electricity is generated by a power plant and dispatched to different users on the energy network.
随着电能生成方式的多样化发展,现有的供电方式难以实现对分布散落的电能的灵活调度,从而造成能源浪费和能源不足并存的现象。With the diversified development of power generation methods, it is difficult for existing power supply methods to achieve flexible scheduling of distributed and scattered electrical energy, which results in the coexistence of energy waste and energy shortage.
发明内容Summary of the Invention
根据本公开的一些实施例一个方面,提出一种网关通信方法,包括:网关接收来自能源网络的能源信息;基于能源信息生成区块链信息;在网关所处的区块链网络上发布区块链信息。According to an aspect of some embodiments of the present disclosure, a gateway communication method is provided, which includes: the gateway receives energy information from an energy network; generates blockchain information based on the energy information; and publishes a block on a blockchain network where the gateway is located Chain information.
在一些实施例中,网关通信方法还包括:网关接收来自能源网络的能源调度请求;基于区块链数据生成能源调度信息,区块链数据包括网关位于的区块链网络上各个节点发布的区块链信息;基于能源调度信息生成区块链信息并在网关所处的区块链网络上发布。In some embodiments, the gateway communication method further includes: the gateway receives an energy dispatch request from the energy network; and generates energy dispatch information based on the blockchain data, the blockchain data includes the area issued by each node on the blockchain network where the gateway is located Blockchain information; generates blockchain information based on energy dispatch information and publishes it on the blockchain network where the gateway is located.
在一些实施例中,网关通信方法还包括:网关获取来自区块链网络的区块链信息;在区块链信息中包括能源调度信息,且能源调度信息与网关连接的能源网络相关的情况下,将能源调度信息发送至能源网络,以便执行能源调度。In some embodiments, the gateway communication method further includes: the gateway obtains the blockchain information from the blockchain network; when the blockchain information includes energy scheduling information, and the energy scheduling information is related to the energy network connected to the gateway To send energy scheduling information to the energy network in order to perform energy scheduling.
在一些实施例中,网关位于多个区块链网络。In some embodiments, the gateway is located on multiple blockchain networks.
在一些实施例中,网关与多个能源网络连接。In some embodiments, the gateway is connected to multiple energy networks.
在一些实施例中,根据能源信息生成区块链信息包括:针对网关所处的各个区块链网络,基于区块链网络所需的能源信息,根据区块链网络的区块链信息生成规则生 成区块链信息;发布区块链信息包括:将区块链信息发布至区块链信息对应的区块链网络。In some embodiments, generating the blockchain information according to the energy information includes: for each blockchain network where the gateway is located, based on the energy information required by the blockchain network, generating rules based on the blockchain information of the blockchain network Generate blockchain information; publishing blockchain information includes: publishing blockchain information to the blockchain network corresponding to the blockchain information.
在一些实施例中,基于能源调度信息生成区块链信息包括:确定与能源调度信息相关联的区块链网络;基于能源调度信息,根据与能源调度信息相关联的区块链网络的区块链信息生成规则生成区块链信息;在网关所处的区块链网络上发布区块链信息包括:在与能源调度信息相关联的区块链网络上发布区块链信息。In some embodiments, generating the blockchain information based on the energy dispatch information includes: determining a blockchain network associated with the energy dispatch information; and based on the energy dispatch information, according to the blocks of the blockchain network associated with the energy dispatch information The chain information generation rule generates blockchain information; publishing the blockchain information on the blockchain network where the gateway is located includes publishing the blockchain information on the blockchain network associated with the energy dispatch information.
在一些实施例中,网关通信方法还包括:根据来自网关归属的第一区块链网络的执行请求,确定执行请求对应的第二区块链网络,其中,执行请求由网关生成,或从来自第一区块链网络上其他节点的区块链信息中获取;在网关位于第二区块链网络的情况下,根据执行请求和第二区块链网络的区块链信息生成规则生成区块链信息,并在第二区块链网络上发布,以便第二区块链网络上的相关节点执行区块链信息中的执行请求。In some embodiments, the gateway communication method further comprises: determining the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, wherein the execution request is generated by the gateway or from the Obtained from the blockchain information of other nodes on the first blockchain network; if the gateway is located on the second blockchain network, generate a block based on the execution request and the blockchain information generation rules of the second blockchain network The chain information is published on the second blockchain network so that related nodes on the second blockchain network can execute the execution request in the blockchain information.
在一些实施例中,网关通信方法还包括:根据能源调度信息、源自其它区块链网络的执行请求中的至少一种生成数据当前区块链网络的执行请求;基于执行请求生成区块链信息并在当前区块链网络上发布。In some embodiments, the gateway communication method further includes: generating data according to at least one of energy scheduling information and execution requests originating from other blockchain networks. The current blockchain network's execution request; generating a blockchain based on the execution request The information is published on the current blockchain network.
在一些实施例中,网关通信方法还包括:根据能源网络、区块链网络中的至少一个生成和/或更新网关配置参数,其中,网关配置参数包括网关身份配置参数、密钥配置参数、触发策略配置参数、周期配置参数,网口配置参数中的一种或多种。In some embodiments, the gateway communication method further includes: generating and / or updating a gateway configuration parameter according to at least one of an energy network and a blockchain network, wherein the gateway configuration parameter includes a gateway identity configuration parameter, a key configuration parameter, a trigger One or more of policy configuration parameters, period configuration parameters, and network port configuration parameters.
在一些实施例中,网关通信方法还包括以下至少一项:根据预存的鉴权信息请求接入区块链网络,通过区块链网络授权的身份信息接入区块链网络;或,根据预存的鉴权信息请求接入能源网络,通过能源网络授权的身份信息接入能源网络。In some embodiments, the gateway communication method further includes at least one of the following: requesting access to the blockchain network according to pre-stored authentication information, and accessing the blockchain network through identity information authorized by the blockchain network; or, according to the pre-stored The authentication information requests access to the energy network, and the identity information authorized by the energy network accesses the energy network.
在一些实施例中,网关通信方法还包括以下至少一项:根据来自区块链网络的区块链信息分析区块链网络的通信规则,根据区块链网络的通信规则调节网关在区块链网络的通信行为,使通信行为符合通信规则;或,根据来自的能源网络的能源信息分析能源网络的通信规则,根据能源网络的通信规则调节网关在能源网络的通信行为,使通信行为符合通信规则。In some embodiments, the gateway communication method further includes at least one of the following: analyzing the communication rules of the blockchain network based on the blockchain information from the blockchain network, and adjusting the gateway in the blockchain according to the communication rules of the blockchain network. The communication behavior of the network conforms the communication behavior to the communication rules; or, analyzes the communication rules of the energy network based on the energy information from the energy network, and adjusts the communication behavior of the gateway in the energy network according to the communication rules of the energy network to make the communication behavior comply with the communication rules .
根据本公开的另一些实施例的一个方面,提出一种网关,包括:能源网络通信模块,被配置为接收来自能源网络的能源信息;信息处理模块,被配置为基于能源信息生成区块链信息;区块链网络通信模块,被配置为在网关所处的区块链网络上发布区块链信息。According to an aspect of other embodiments of the present disclosure, a gateway is provided, including: an energy network communication module configured to receive energy information from the energy network; and an information processing module configured to generate blockchain information based on the energy information ; Blockchain network communication module, configured to publish blockchain information on the blockchain network where the gateway is located.
在一些实施例中,能源网络通信模块还被配置为接收来自能源网络的能源调度请求;信息处理模块还被配置为:基于区块链数据生成能源调度信息,区块链数据包括网关位于的区块链网络上各个节点发布的区块链信息;基于能源调度信息生成区块链信息,以便区块链网络通信模块在网关所处的区块链网络上发布。In some embodiments, the energy network communication module is further configured to receive an energy dispatch request from the energy network; the information processing module is further configured to generate energy dispatch information based on the blockchain data, and the blockchain data includes the area where the gateway is located. Blockchain information issued by each node on the blockchain network; generates blockchain information based on energy dispatch information, so that the blockchain network communication module is published on the blockchain network where the gateway is located.
在一些实施例中,区块链网络通信模块还被配置为获取来自区块链网络的区块链信息;能源网络通信模块还被配置为在信息处理模块确定区块链信息中包括能源调度信息,且能源调度信息与网关连接的能源网络相关的情况下,将能源调度信息发送至能源网络,以便执行能源调度。In some embodiments, the blockchain network communication module is further configured to obtain blockchain information from the blockchain network; the energy network communication module is further configured to include the energy scheduling information in the information processing module determining the blockchain information If the energy scheduling information is related to the energy network connected to the gateway, the energy scheduling information is sent to the energy network in order to perform energy scheduling.
在一些实施例中,网关包括多个区块链网络通信模块。In some embodiments, the gateway includes multiple blockchain network communication modules.
在一些实施例中,网关包括多个能源网络通信模块。In some embodiments, the gateway includes multiple energy network communication modules.
在一些实施例中,信息处理模块还被配置为:针对网关所处的各个区块链网络,基于区块链网络所需的能源信息,根据区块链网络的区块链信息生成规则生成区块链信息;区块链网络通信模块还被配置为:将区块链信息发布至区块链信息对应的区块链网络。In some embodiments, the information processing module is further configured to: for each blockchain network where the gateway is located, based on the energy information required by the blockchain network, generate a rule generation area based on the blockchain information of the blockchain network Blockchain information; the blockchain network communication module is also configured to: publish the blockchain information to the blockchain network corresponding to the blockchain information.
在一些实施例中,信息处理模块还被配置为:确定与能源调度信息相关联的区块链网络;基于能源调度信息,根据与能源调度信息相关联的区块链网络的区块链信息生成规则生成区块链信息;区块链网络通信模块还被配置为在与能源调度信息相关联的区块链网络上发布区块链信息。In some embodiments, the information processing module is further configured to: determine a blockchain network associated with energy scheduling information; and based on the energy scheduling information, generate based on the blockchain information of the blockchain network associated with the energy scheduling information The rules generate blockchain information; the blockchain network communication module is also configured to publish the blockchain information on the blockchain network associated with the energy dispatch information.
在一些实施例中,信息处理模块还被配置为:根据来自网关归属的第一区块链网络的执行请求,确定执行请求对应的第二区块链网络,其中,执行请求由网关生成,或从来自第一区块链网络上其他节点的区块链信息中获取;在网关位于第二区块链网络的情况下,根据执行请求和第二区块链网络的区块链信息生成规则生成区块链信息;区块链网络通信模块被配置为在第二区块链网络上发布根据执行请求生成的区块链信息,以便第二区块链网络上的相关节点执行区块链信息中的执行请求。In some embodiments, the information processing module is further configured to determine the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, wherein the execution request is generated by the gateway, or Obtained from the blockchain information from other nodes on the first blockchain network; in the case where the gateway is located on the second blockchain network, it is generated according to the execution request and the blockchain information generation rules of the second blockchain network Blockchain information; the blockchain network communication module is configured to publish the blockchain information generated according to the execution request on the second blockchain network so that relevant nodes on the second blockchain network can execute the blockchain information. Execution request.
在一些实施例中,信息处理模块还被配置为:根据能源调度信息、源自其它区块链网络的执行请求中的至少一种生成数据当前区块链网络的执行请求;基于执行请求生成区块链信息,以便区块链网络通信模块在当前区块链网络上发布。In some embodiments, the information processing module is further configured to: generate data according to at least one of energy dispatch information and execution requests originating from other blockchain networks; an execution request of the current blockchain network; and generate an area based on the execution request Blockchain information, so that the blockchain network communication module is published on the current blockchain network.
在一些实施例中,网关还包括:配置管理模块,被配置为根据能源网络、区块链网络中的至少一个生成和/或更新网关配置参数,其中,网关配置参数包括网关身份配置参数、密钥配置参数、触发策略配置参数、周期配置参数,网口配置参数中的一种 或多种。In some embodiments, the gateway further includes: a configuration management module configured to generate and / or update gateway configuration parameters according to at least one of an energy network and a blockchain network, wherein the gateway configuration parameters include a gateway identity configuration parameter, a password One or more of key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters.
在一些实施例中,网关还包括鉴权和身份管理模块,被配置为执行以下至少一项:根据预存的鉴权信息请求接入区块链网络,使网关采用区块链网络授权的身份信息接入区块链网络;或,根据预存的鉴权信息请求接入能源网络,使网关采用能源网络授权的身份信息接入能源网络。In some embodiments, the gateway further includes an authentication and identity management module configured to perform at least one of the following: request access to the blockchain network according to pre-stored authentication information, so that the gateway uses identity information authorized by the blockchain network Access the blockchain network; or, request access to the energy network based on the pre-stored authentication information, so that the gateway accesses the energy network using the identity information authorized by the energy network.
在一些实施例中,网关还包括规则确定模块,被配置为执行以下至少一项:根据来自区块链网络的区块链信息分析区块链网络的通信规则,根据区块链网络的通信规则调节网关在区块链网络的通信行为,使通信行为符合通信规则;或,根据来自的能源网络的能源信息分析能源网络的通信规则,根据能源网络的通信规则调节网关在能源网络的通信行为,使通信行为符合通信规则。In some embodiments, the gateway further includes a rule determination module configured to perform at least one of the following: analyze the communication rules of the blockchain network based on the blockchain information from the blockchain network, and perform the communication rules according to the blockchain network. Adjust the communication behavior of the gateway in the blockchain network so that the communication behavior complies with the communication rules; or, analyze the communication rules of the energy network based on the energy information from the energy network, and adjust the communication behavior of the gateway in the energy network according to the communication rules of the energy network, Align communication behavior with communication rules.
根据本公开的又一些实施例的一个方面,提出一种网关,包括:存储器;以及耦接至存储器的处理器,处理器被配置为基于存储在存储器的指令执行上文中任意一种网关通信方法。According to an aspect of still other embodiments of the present disclosure, a gateway is provided, including: a memory; and a processor coupled to the memory, the processor being configured to execute any one of the gateway communication methods above based on instructions stored in the memory. .
根据本公开的再一些实施例的一个方面,提出一种计算机可读存储介质,其上存储有计算机程序指令,该指令被处理器执行时实现上文中任意一种网关通信方法的步骤。According to an aspect of still other embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the instructions, when executed by a processor, implement the steps of any one of the gateway communication methods above.
另外,根据本公开的一些实施例的一个方面,提出一种能源系统,包括:区块链网络,被配置为存储和交互区块链信息;能源网络,被配置为采集能源设备信息;和,上文中任意一种网关。In addition, according to one aspect of some embodiments of the present disclosure, an energy system is proposed, including: a blockchain network configured to store and interact with blockchain information; an energy network configured to collect energy equipment information; and, Any of the above gateways.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and the description thereof are used to explain the present disclosure, and do not constitute an improper limitation on the present disclosure. In the drawings:
图1为本公开的网关通信方法的一些实施例的流程图。FIG. 1 is a flowchart of some embodiments of a gateway communication method of the present disclosure.
图2为本公开的网关通信方法的另一些实施例的流程图。FIG. 2 is a flowchart of another embodiment of a gateway communication method according to the present disclosure.
图3为本公开的网关通信方法的又一些实施例的流程图。FIG. 3 is a flowchart of another embodiment of a gateway communication method according to the present disclosure.
图4为本公开的网关的一些实施例的示意图。FIG. 4 is a schematic diagram of some embodiments of a gateway of the present disclosure.
图5为本公开的网关的另一些实施例的示意图。FIG. 5 is a schematic diagram of another embodiment of a gateway of the present disclosure.
图6为本公开的网关的又一些实施例的示意图。FIG. 6 is a schematic diagram of still other embodiments of a gateway of the present disclosure.
图7为本公开的能源系统的一些实施例的示意图。FIG. 7 is a schematic diagram of some embodiments of an energy system of the present disclosure.
具体实施方式detailed description
下面通过附图和实施例,对本公开的技术方案做进一步的详细描述。The technical solutions of the present disclosure will be described in further detail below with reference to the drawings and embodiments.
本公开的网关通信方法的一些实施例的流程图如图1所示。A flowchart of some embodiments of the gateway communication method of the present disclosure is shown in FIG. 1.
在步骤101中,网关接收来自能源网络的能源信息。在一些实施例中,网关可以与能源网络的信息采集、处理设备连接,获取能源信息。在一些实施例中,能源信息可以包括身份、发电能力、用电能力、储电能力、可调控能力、时空属性、需求信息、可供应信息、单元类型、U(电压)、I(电流)、P(功率)、Q(能量)等中的一种或多种。In step 101, the gateway receives energy information from the energy network. In some embodiments, the gateway may be connected to information collection and processing equipment of the energy network to obtain energy information. In some embodiments, the energy information may include identity, power generation capacity, power consumption capacity, power storage capacity, adjustable capacity, space-time attributes, demand information, supply information, unit type, U (voltage), I (current), One or more of P (power), Q (energy), and the like.
在步骤102中,基于能源信息生成区块链信息。在一些实施例中,网关可以与一个或者多个能源网络连接,分别获取各个能源网络的能源信息。在一些实施例中,可以根据预定规则对能源信息进行抽取、汇总、变换等操作后,根据区块链网络的区块链信息生成规则生成区块链信息。在一些实施例中,预定规则可以为静态规则,也可以为动态规则,通过可动态更新规则的规则引擎来实现。In step 102, blockchain information is generated based on the energy information. In some embodiments, the gateway may be connected to one or more energy networks to obtain energy information of each energy network respectively. In some embodiments, after the energy information is extracted, summarized, and transformed according to a predetermined rule, the blockchain information is generated according to the blockchain information generation rule of the blockchain network. In some embodiments, the predetermined rule may be a static rule or a dynamic rule, and is implemented by a rule engine that can dynamically update the rule.
在步骤103中,在网关所处的区块链网络上发布区块链信息。In step 103, the blockchain information is published on the blockchain network where the gateway is located.
通过这样的方法,网关能够将能源网络的能源信息发布至区块链网络,从而实现能源信息去中心化记录,并能够在区块链网络的任何一个节点读取记录的信息,便于生成调度指令,实现对能源的灵活调度。Through this method, the gateway can publish the energy information of the energy network to the blockchain network, thereby achieving a decentralized record of energy information, and can read the recorded information at any node of the blockchain network, which is convenient for generating scheduling instructions. To achieve flexible scheduling of energy.
在一些实施例中,网关可以属于一个或多个区块链网络,区块链网络可以同构或者异构。每个区块链网络中需要发布的信息不同,信息的生成规则也可以不同,网关可以基于各个区块链网络所需的能源信息,根据区块链网络的区块链信息生成规则生成区块链信息。In some embodiments, the gateway may belong to one or more blockchain networks, and the blockchain network may be homogeneous or heterogeneous. The information that needs to be published in each blockchain network is different, and the rules for generating information can also be different. The gateway can generate blocks based on the blockchain network information generation rules based on the energy information required by each blockchain network. Chain information.
通过这样的方法,能够使得各个区块链网络上的节点获得需要的能源信息,实现信息的分区块链网络存储。网关作为不同区块链网络的交点能够方便不同区块链网络的信息交互,实现信息的分区块链网络处理,降低对各个节点的信息处理能力的要求。Through this method, the nodes on each blockchain network can obtain the required energy information, and the information can be stored on the blockchain network. As the intersection point of different blockchain networks, the gateway can facilitate the information exchange between different blockchain networks, realize the blockchain network processing of information, and reduce the requirements for the information processing capabilities of each node.
本公开的网关通信方法的另一些实施例的流程图如图2所示。A flowchart of another embodiment of the gateway communication method of the present disclosure is shown in FIG. 2.
在步骤201中,网关接收来自能源网络的能源调度请求。在一些实施例中,能源调度请求可以为请求从其他区域的能源网络调度能源,或向其他能源网络提供能源的请求。在一些实施例中,能源调度请求还可以为请求调节能源网络中生成、消耗能源 的量、速度的请求。在一些实施例中,能源网络可以根据自身的能源需求和能源信息进行比较,触发生成能源调度请求,并发送给网关。In step 201, the gateway receives an energy scheduling request from the energy network. In some embodiments, the energy dispatch request may be a request to dispatch energy from an energy network in another region, or to provide energy to another energy network. In some embodiments, the energy scheduling request may also be a request for adjusting the amount and speed of energy generated and consumed in the energy network. In some embodiments, the energy network may compare its own energy demand and energy information, trigger the generation of an energy scheduling request, and send it to the gateway.
在步骤202中,网关基于区块链数据生成能源调度信息。区块链数据包括网关位于的区块链网络上各个节点发布的区块链信息。在一些实施例中,网关可以根据预定时间段内生成的区块链数据得到网络中的能源信息,并生成能源调度信息。如,能源网络A请求获取电能,网关根据区块链数据中由能源网络B上报的能源信息确定能源网络B能够提供电能,则生成从能源网络B调度能源的能源调度信息。In step 202, the gateway generates energy scheduling information based on the blockchain data. Blockchain data includes blockchain information issued by various nodes on the blockchain network where the gateway is located. In some embodiments, the gateway may obtain the energy information in the network according to the blockchain data generated within a predetermined period of time, and generate the energy scheduling information. For example, if the energy network A requests power, the gateway determines that the energy network B can provide power based on the energy information reported by the energy network B in the blockchain data, and then generates energy scheduling information for scheduling energy from the energy network B.
在步骤203中,网关基于能源调度信息生成区块链信息。In step 203, the gateway generates blockchain information based on the energy scheduling information.
在步骤204中,在网关所处的区块链网络上发布区块链信息,从而使得区块链网络上的所有节点均能够获得该信息。In step 204, the blockchain information is published on the blockchain network where the gateway is located, so that all nodes on the blockchain network can obtain the information.
通过这样的方法,每个网关节点均能够根据自身存储的区块链数据生成能源调度信息,实现了去中心化的能源调度,提高了能源调度的灵活性和执行效率。In this way, each gateway node can generate energy scheduling information based on its own stored blockchain data, which enables decentralized energy scheduling and improves the flexibility and execution efficiency of energy scheduling.
在一些实施例中,若网关属于多个区块链网络,则网关收到来自能源网络的能源调度请求后,可以先确定与能源调度信息相关联的区块链网络,再基于能源调度信息,根据与能源调度信息相关联的区块链网络的区块链信息生成规则生成区块链信息,并在与能源调度信息相关联的区块链网络上发布区块链信息,从而实现能源调度信息的准确发布,降低区块链网络节点的数据存储负担。In some embodiments, if the gateway belongs to multiple blockchain networks, after receiving the energy dispatch request from the energy network, the gateway may first determine the blockchain network associated with the energy dispatch information, and then based on the energy dispatch information, Generate blockchain information based on the blockchain information generation rules of the blockchain network associated with energy dispatch information, and publish the blockchain information on the blockchain network associated with the energy dispatch information to achieve energy dispatch information Accurate release, reducing the data storage burden of blockchain network nodes.
在一些实施例中,如图2所示,网关能够根据区块链网络上发布的包括能源调度信息的区块链信息执行相应的调度工作。网关通信方法还可以包括步骤205~206。In some embodiments, as shown in FIG. 2, the gateway can perform corresponding scheduling work according to the blockchain information including energy scheduling information published on the blockchain network. The gateway communication method may further include steps 205-206.
在步骤205中,网关获取来自区块链网络的区块链信息,该区块链信息为区块链网络中任意节点发布的区块链信息。网关存储区块链信息以丰富区块链数据。In step 205, the gateway obtains the blockchain information from the blockchain network, and the blockchain information is the blockchain information issued by any node in the blockchain network. The gateway stores the blockchain information to enrich the blockchain data.
在步骤206中,在区块链信息中包括能源调度信息,且能源调度信息与网关连接的能源网络相关的情况下,将能源调度信息发送至能源网络,以便执行能源调度。在一些实施例中,网关可以解析区块链信息,若仅包括各个节点的能源信息,则直接存储;若包括需要执行的内容,如包括能源调度信息,且该能源调度信息与本节点相连的能源网络相关,则提取区块链信息中的能源调度信息发送至能源网络,以便能源网络通过底层能源调度通道实现能源调度。In step 206, if the blockchain information includes energy scheduling information and the energy scheduling information is related to the energy network connected to the gateway, the energy scheduling information is sent to the energy network in order to perform energy scheduling. In some embodiments, the gateway can parse the blockchain information, and if it only includes the energy information of each node, it directly stores it; if it includes the content that needs to be executed, such as energy scheduling information, and the energy scheduling information is Related to the energy network, the energy scheduling information in the blockchain information is extracted and sent to the energy network, so that the energy network can implement energy scheduling through the underlying energy scheduling channel.
通过这样的方法,能够以区块链的形式实现能源调度信息的分发和存储,在实现能源灵活调度的同时,也能够保证交易记录的安全存储,提高了能源调度和交易的可靠性。Through this method, the energy dispatching information can be distributed and stored in the form of a blockchain. While achieving flexible energy dispatching, it can also ensure the secure storage of transaction records and improve the reliability of energy dispatching and transactions.
在一些实施例中,在网关与多个能源网络相连接的情况下,网关需要确定与能源调度信息相关的能源网络,进而仅向该能源网络下发能源调度信息,从而实现能源调度信息的有针对性的转达,避免能源网络中节点执行不必要操作,保证能源调度的准确性。In some embodiments, when the gateway is connected to multiple energy networks, the gateway needs to determine the energy network related to the energy scheduling information, and then only delivers the energy scheduling information to the energy network, so that the energy scheduling information is available. Targeted relaying to avoid unnecessary operations by nodes in the energy network and ensure the accuracy of energy scheduling.
在一些实施例中,单次能源调度操作可能会涉及多个区块链网络,不同区块链网络之间需要执行指令交互。本公开的网关通信方法的又一些实施例的流程图如图3所示。In some embodiments, a single energy dispatch operation may involve multiple blockchain networks, and different blockchain networks need to perform instruction interactions. A flowchart of another embodiment of the gateway communication method of the present disclosure is shown in FIG. 3.
在步骤301中,根据来自网关归属的第一区块链网络的执行请求确定执行请求对应的第二区块链网络。执行请求可以由网关生成,也可以为从来自第一区块链网络上其他节点的区块链信息中获取。In step 301, the second blockchain network corresponding to the execution request is determined according to the execution request from the first blockchain network to which the gateway belongs. The execution request may be generated by the gateway, or may be obtained from the blockchain information from other nodes on the first blockchain network.
在步骤302中,在网关位于第二区块链网络的情况下,将执行请求根据第二区块链网络的区块链信息生成规则生成区块链信息。In step 302, if the gateway is located on the second blockchain network, the request is executed to generate the blockchain information according to the blockchain information generation rules of the second blockchain network.
在步骤303中,网关在第二区块链网络上发布步骤302中生成的区块链信息,以便第二区块链网络上的相关节点执行区块链信息中的执行请求。In step 303, the gateway publishes the blockchain information generated in step 302 on the second blockchain network, so that relevant nodes on the second blockchain network can execute the execution request in the blockchain information.
通过这样的方法,能够在本区块链网络上生成执行请求,并在区块链网络的交点网关处将执行请求生成针对另一个网络的区块链信息并向该网络发布,使得执行请求在该区块链网络上执行,从而实现了跨区块链网络的数据处理操作,提高了区块链网络对复杂、综合指令的数据处理能力,进一步提高了能源调度的灵活性。Through this method, an execution request can be generated on the blockchain network, and the execution request can generate blockchain information for another network at the intersection gateway of the blockchain network and publish to the network, so that the execution request is The blockchain network is implemented on the blockchain network, thereby realizing data processing operations across the blockchain network, improving the blockchain network's ability to process complex and comprehensive instructions, and further increasing the flexibility of energy scheduling.
在一些实施例中,如图3所示,还可以包括步骤304~306。In some embodiments, as shown in FIG. 3, steps 304-306 may be further included.
在步骤304中,网关根据能源调度信息、源自其它区块链网络的执行请求中的至少一种生成数据当前区块链网络的执行请求。在一些实施例中,网关可以为步骤304中的第二区块链网络上的网关,从区块链信息中提取出执行请求;在另一些实施例中,执行请求也可以由网关根据自身的能源调度信息生成。在又一些实施例中,网关也可以在解析出来自其他区块链网络的执行请求后,根据自身存储的区块链数据生成当前区块链网络的执行请求。In step 304, the gateway generates data of an execution request of the current blockchain network according to at least one of energy scheduling information and execution requests originating from other blockchain networks. In some embodiments, the gateway may be the gateway on the second blockchain network in step 304, and the execution request is extracted from the blockchain information; in other embodiments, the execution request may also be performed by the gateway according to its own Energy dispatch information generation. In still other embodiments, the gateway may also generate an execution request of the current blockchain network according to the blockchain data stored by itself after parsing an execution request from another blockchain network.
在步骤305中,网关基于执行请求生成区块链信息。In step 305, the gateway generates blockchain information based on the execution request.
在步骤306中,网关在当前区块链网络上发布区块链信息,使得当前区块链网络上的所有节点收到区块链信息,并由相关节点执行当前区块链网络的执行请求。In step 306, the gateway publishes the blockchain information on the current blockchain network, so that all nodes on the current blockchain network receive the blockchain information and related nodes execute the execution request of the current blockchain network.
通过这样的方法,网关能够生成执行请求,且能够执行来自其他网关、甚至其他区块链网络的执行请求,保证了区块链网络的数据处理能力,有利于进一步提高对能 源调度的灵活性。Through this method, the gateway can generate execution requests and can execute execution requests from other gateways and even other blockchain networks, ensuring the data processing capabilities of the blockchain network and further improving the flexibility of energy scheduling.
在一些实施例中,网关可以灵活与能源网络(或能源网路相连接的通信网络)连接。网关可以预存有鉴权信息,利用预存的鉴权信息请求接入能源网络,通过能源网络授权的身份信息接入能源网络。这样的方法一方面提高了网关接入的灵活性,另一方面也有助于控制网关的权限,提高网络的安全性。In some embodiments, the gateway may be flexibly connected to the energy network (or a communication network to which the energy network is connected). The gateway can pre-store authentication information, use the pre-stored authentication information to request access to the energy network, and access the energy network through the identity information authorized by the energy network. This method improves the flexibility of gateway access on the one hand, and also helps control the authority of the gateway on the other hand, and improves network security.
在一些实施例中,网关可以灵活的接入区块链网络。网关可以预存有鉴权信息,利用预存的鉴权信息请求接入区块链网络,通过区块链网络授权的身份信息接入能源网络。这样的方法一方面提高了网关接入的灵活性,另一方面也有助于控制网关的权限,提高网络的安全性。In some embodiments, the gateway can flexibly access the blockchain network. The gateway can pre-store authentication information, use the pre-stored authentication information to request access to the blockchain network, and access the energy network through the identity information authorized by the blockchain network. This method improves the flexibility of gateway access on the one hand, and also helps control the authority of the gateway on the other hand, and improves network security.
在一些实施例中,网关可以根据其接入的一个或多个能源网络生成或更新网关配置参数,也可以根据其接入的一个或多个区块链网络中生成或更新网关配置参数,还可以兼顾各个能源网络和区块链网络生成或更新网关配置参数。在一些实施例中,可以根据来自各个网络的信息获取适配的配置参数,进而调整网关自身的配置参数。网关配置参数可以包括网关身份配置参数、密钥配置参数、触发策略配置参数、周期配置参数,网口配置参数等中的一种或多种。通过这样的方法,能够提高网关对其连接或加入的网络的适配性,提高网关的自适应能力。In some embodiments, the gateway may generate or update gateway configuration parameters according to one or more energy networks it accesses, or may generate or update gateway configuration parameters according to one or more blockchain networks it accesses, and Can take into account each energy network and blockchain network to generate or update gateway configuration parameters. In some embodiments, the adaptive configuration parameters can be obtained according to the information from each network, and then the configuration parameters of the gateway itself can be adjusted. The gateway configuration parameters may include one or more of gateway identity configuration parameters, key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters. Through this method, the adaptability of the gateway to the network to which it is connected or joined can be improved, and the adaptability of the gateway can be improved.
在一些实施例中,网关还可以根据来自区块链网络的区块链信息分析区块链网络的通信规则,根据区块链网络的通信规则调节网关在区块链网络的通信行为,使通信行为符合通信规则。在一些实施例中,网关还可以根据来自的能源网络的能源信息分析能源网络的通信规则,根据能源网络的通信规则调节网关在能源网络的通信行为,使通信行为符合通信规则。In some embodiments, the gateway may further analyze the communication rules of the blockchain network based on the blockchain information from the blockchain network, and adjust the communication behavior of the gateway on the blockchain network according to the communication rules of the blockchain network to enable communication. The behavior complies with the rules of communication. In some embodiments, the gateway may further analyze the communication rules of the energy network according to the energy information from the energy network, and adjust the communication behavior of the gateway in the energy network according to the communication rules of the energy network, so that the communication behavior conforms to the communication rules.
通过这样的方法,能够进一步提高网关对不同区块链网络、能源网络的适配性,使得网关与不同网络兼容,提高网关的自适应能力。Through this method, the adaptability of the gateway to different blockchain networks and energy networks can be further improved, making the gateway compatible with different networks, and improving the adaptive ability of the gateway.
本公开的网关400的一些实施例的示意图如图4所示。能源网络通信模块401能够接收来自能源网络的能源信息。在一些实施例中,网关可以与能源网络的信息采集、处理设备连接,获取能源信息。在一些实施例中,网关400中可以包括一个或多个能源网络通信模块,实现与一个或者多个能源网络连接,分别获取各个能源网络的能源信息。在一些实施例中,能源信息可以包括身份、发电能力、用电能力、储电能力、可调控能力、时空属性、需求信息、可供应信息、单元类型、U(电压)、I(电流)、P(功率)、Q(能量)等中的一种或多种。A schematic diagram of some embodiments of the gateway 400 of the present disclosure is shown in FIG. 4. The energy network communication module 401 can receive energy information from the energy network. In some embodiments, the gateway may be connected to information collection and processing equipment of the energy network to obtain energy information. In some embodiments, the gateway 400 may include one or more energy network communication modules to achieve connection with one or more energy networks and obtain energy information of each energy network respectively. In some embodiments, the energy information may include identity, power generation capacity, power consumption capacity, power storage capacity, adjustable capacity, space-time attributes, demand information, supply information, unit type, U (voltage), I (current), One or more of P (power), Q (energy), and the like.
信息处理模块402能够基于能源信息生成区块链信息。在一些实施例中,可以根据预定规则对能源信息进行抽取、汇总、变换等操作后,根据区块链网络的区块链信息生成规则生成区块链信息。在一些实施例中,信息处理模块402还能够根据预定规则对收到的区块链信息进行抽取、汇总、变换等操作,提供给能源网络。在一些实施例中,预定规则可以为静态规则,也可以为动态规则,通过可动态更新规则的规则引擎来实现。The information processing module 402 can generate blockchain information based on the energy information. In some embodiments, after the energy information is extracted, summarized, and transformed according to a predetermined rule, the blockchain information is generated according to the blockchain information generation rule of the blockchain network. In some embodiments, the information processing module 402 can also perform operations such as extraction, aggregation, and transformation on the received blockchain information according to a predetermined rule, and provide the operation to the energy network. In some embodiments, the predetermined rule may be a static rule or a dynamic rule, and is implemented by a rule engine that can dynamically update the rule.
区块链网络通信模块403能够在网关所处的区块链网络上发布区块链信息。在一些实施例中,网关400中可以包括一个或多个区块链网络通信模块,使得网关属于一个或者多个区块链网络。The blockchain network communication module 403 can publish blockchain information on the blockchain network where the gateway is located. In some embodiments, the gateway 400 may include one or more blockchain network communication modules, so that the gateway belongs to one or more blockchain networks.
这样的网关能够将能源网络的能源信息发布至区块链网络,从而实现能源信息去中心化记录,并能够在区块链网络的任何一个节点读取记录的信息,便于生成调度指令,实现对能源的灵活调度。Such a gateway can publish the energy information of the energy network to the blockchain network, thereby achieving a decentralized record of energy information, and can read the recorded information at any node of the blockchain network, which is convenient for generating scheduling instructions and implementing Flexible scheduling of energy.
在一些实施例中,在网关400包括多个区块链网络通信模块403的情况下,信息处理模块402能够基于各个区块链网络所需的能源信息,根据区块链网络的区块链信息生成规则生成区块链信息,从而使得各个区块链网络上的节点获得需要的能源信息,实现信息的分区块链网络存储。网关作为不同区块链网络的交点能够方便不同区块链网络的信息交互,实现信息的分区块链网络处理,降低对各个节点的信息处理能力的要求。In some embodiments, in the case where the gateway 400 includes multiple blockchain network communication modules 403, the information processing module 402 can be based on the energy information required by each blockchain network and according to the blockchain information of the blockchain network The generation rules generate blockchain information, so that nodes on each blockchain network can obtain the required energy information, and the information can be stored on the blockchain network. As the intersection point of different blockchain networks, the gateway can facilitate the information exchange between different blockchain networks, realize the blockchain network processing of information, and reduce the requirements for the information processing capabilities of each node.
在一些实施例中,能源网络通信模块401还能够接收来自能源网络的能源调度请求。在一些实施例中,能源调度请求可以为请求从其他区域的能源网络调度能源,或向其他能源网络提供能源的请求。在一些实施例中,能源调度请求还可以为请求调节能源网络中生成、消耗能源的量、速度的请求。在一些实施例中,能源网络可以根据自身的能源需求和能源信息进行比较,触发生成能源调度请求,并发送给网关。In some embodiments, the energy network communication module 401 is also capable of receiving energy scheduling requests from the energy network. In some embodiments, the energy dispatch request may be a request to dispatch energy from an energy network in another region, or to provide energy to another energy network. In some embodiments, the energy scheduling request may also be a request for adjusting the amount and speed of energy generated and consumed in the energy network. In some embodiments, the energy network may compare its own energy demand and energy information, trigger the generation of an energy scheduling request, and send it to the gateway.
信息处理模块402能够基于区块链数据生成能源调度信息,并基于能源调度信息生成区块链信息。区块链数据包括网关位于的区块链网络上各个节点发布的区块链信息。在一些实施例中,网关可以根据预定时间段内生成的区块链数据得到网络中的能源信息,并生成能源调度信息。区块链网络通信模块403能够在网关所处的区块链网络上发布区块链信息,从而使得区块链网络上的所有节点均能够获得该信息。The information processing module 402 can generate energy scheduling information based on the blockchain data, and generate blockchain information based on the energy scheduling information. Blockchain data includes blockchain information issued by various nodes on the blockchain network where the gateway is located. In some embodiments, the gateway may obtain the energy information in the network according to the blockchain data generated within a predetermined period of time, and generate the energy scheduling information. The blockchain network communication module 403 can publish blockchain information on the blockchain network where the gateway is located, so that all nodes on the blockchain network can obtain the information.
这样的网关能够根据自身存储的区块链数据生成能源调度信息,实现了去中心化的能源调度,提高了能源调度的灵活性和执行效率。Such a gateway can generate energy scheduling information according to the blockchain data stored by itself, realize decentralized energy scheduling, and improve the flexibility and execution efficiency of energy scheduling.
在一些实施例中,在网关400属于多个区块链网络的情况下,则在能源网络通信模块401收到来自能源网络的能源调度请求后,信息处理模块402可以先确定与能源调度信息相关联的区块链网络,再基于能源调度信息,根据与能源调度信息相关联的区块链网络的区块链信息生成规则生成区块链信息,由与同能源调度信息相关联的区块链网络连接的区块链网络通信模块403发布区块链信息,从而实现能源调度信息的准确发布,降低区块链网络节点的数据存储负担。In some embodiments, in the case that the gateway 400 belongs to multiple blockchain networks, after the energy network communication module 401 receives an energy scheduling request from the energy network, the information processing module 402 may first determine that it is related to the energy scheduling information. Based on the energy dispatch information, the blockchain information is generated according to the blockchain information generation rules of the blockchain network associated with the energy dispatch information, and the blockchain is associated with the energy dispatch information. The network-connected blockchain network communication module 403 issues blockchain information, thereby achieving accurate distribution of energy dispatching information, and reducing the data storage burden of the blockchain network nodes.
在一些实施例中,区块链网络通信模块403收到区块链信息后,信息处理模块402存储区块链信息,并解析区块链信息的内容,在区块链信息中包括能源调度信息,且能源调度信息与能源网络通信模块401连接的能源网络相关的情况下,将能源调度信息发送至能源网络,以便执行能源调度。In some embodiments, after the blockchain network communication module 403 receives the blockchain information, the information processing module 402 stores the blockchain information and parses the content of the blockchain information, including the energy scheduling information in the blockchain information If the energy scheduling information is related to the energy network connected to the energy network communication module 401, the energy scheduling information is sent to the energy network in order to perform energy scheduling.
这样的网关能够以区块链的形式实现能源调度信息的分发和存储,在实现能源灵活调度的同时,也能够保证交易记录的安全存储,提高了能源调度和交易的可靠性。Such a gateway can realize the distribution and storage of energy dispatching information in the form of a blockchain. While achieving flexible energy dispatching, it can also ensure the secure storage of transaction records and improve the reliability of energy dispatching and transactions.
在一些实施例中,在网关400与多个能源网络相连接的情况下,信息处理模块402需要确定与能源调度信息相关的能源网络,进而仅由与该能源网络连接的能源网络通信模块401下发能源调度信息,从而实现能源调度信息的有针对性的转达,避免能源网络中节点执行不必要操作,保证能源调度的准确性。In some embodiments, when the gateway 400 is connected to multiple energy networks, the information processing module 402 needs to determine the energy network related to the energy scheduling information, and then only by the energy network communication module 401 connected to the energy network The energy dispatching information is transmitted, so as to realize the targeted transmission of the energy dispatching information, avoid unnecessary operations by the nodes in the energy network, and ensure the accuracy of the energy dispatching.
在一些实施例中,信息处理模块402还能够根据来自网关归属的第一区块链网络的执行请求,确定执行请求对应的第二区块链网络,其中,执行请求由网关生成,或从来自第一区块链网;在网关位于第二区块链网络的情况下,将执行请求根据第二区块链网络的区块链信息生成规则生成区块链信息。区块链网络通信模块403能够在第二区块链网络上发布区块链信息,以便第二区块链网络上的相关节点执行区块链信息中的执行请求。这样的网关能够在本区块链网络上生成执行请求,并在区块链网络的交点网关处将执行请求生成针对另一个网络的区块链信息并向该网络发布,使得执行请求在该区块链网络上执行,从而实现了跨区块链网络的数据处理操作,提高了区块链网络对复杂、综合指令的数据处理能力,进一步提高了能源调度的灵活性。In some embodiments, the information processing module 402 can also determine the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, where the execution request is generated by the gateway or from the The first blockchain network; if the gateway is located on the second blockchain network, the request will be executed to generate the blockchain information according to the blockchain information generation rules of the second blockchain network. The blockchain network communication module 403 can publish blockchain information on the second blockchain network, so that relevant nodes on the second blockchain network can execute the execution request in the blockchain information. Such a gateway can generate an execution request on the blockchain network, and at the intersection gateway of the blockchain network, the execution request generates blockchain information for another network and publishes it to the network, so that the execution request is in the area. Executed on the blockchain network, thus achieving data processing operations across the blockchain network, improving the blockchain network's data processing capabilities for complex and comprehensive instructions, and further increasing the flexibility of energy scheduling.
在一些实施例中,信息处理模块402还能够根据能源调度信息、源自其它区块链网络的执行请求中的至少一种生成数据当前区块链网络的执行请求,并基于执行请求生成区块链信息;区块链网络通信模块403在当前区块链网络上发布信息处理模块402生成的区块链信息,使得当前区块链网络上的所有节点收到区块链信息,并由相关节点执行当前区块链网络的执行请求。In some embodiments, the information processing module 402 can also generate data according to at least one of energy scheduling information and execution requests originating from other blockchain networks. The current blockchain network's execution request and generate blocks based on the execution request Blockchain information; the blockchain network communication module 403 publishes the blockchain information generated by the information processing module 402 on the current blockchain network, so that all nodes on the current blockchain network receive the blockchain information and the relevant nodes Execute the execution request of the current blockchain network.
这样的网关能够生成执行请求,且能够执行来自其他网关、甚至其他区块链网络的执行请求,保证了区块链网络的数据处理能力,有利于进一步提高对能源调度的灵活性。Such a gateway can generate execution requests and can execute execution requests from other gateways and even other blockchain networks, ensuring the data processing capabilities of the blockchain network and further improving the flexibility of energy scheduling.
在一些实施例中,如图4所示,网关还可以包括配置管理模块404,能够根据其接入的一个或多个能源网络生成或更新网关配置参数,或根据其接入的一个或多个区块链网络生成或更新网关配置参数,或者可以兼顾其接入的各个能源网络和区块链网络更新网关配置参数。在一些实施例中,可以根据来自各个网络的信息获取适配的配置参数,进而调整网关自身的配置参数。网关配置参数可以包括网关身份配置参数、密钥配置参数、触发策略配置参数、周期配置参数,网口配置参数等中的一种或多种。这样的网关能够提高对其连接或加入的网络的适配性,提高网关的自适应能力。In some embodiments, as shown in FIG. 4, the gateway may further include a configuration management module 404 capable of generating or updating gateway configuration parameters according to one or more energy networks to which it is connected, or according to one or more of its access nodes. The blockchain network generates or updates the gateway configuration parameters, or it can take into account the various energy networks and blockchain networks it accesses to update the gateway configuration parameters. In some embodiments, the adaptive configuration parameters can be obtained according to the information from each network, and then the configuration parameters of the gateway itself can be adjusted. The gateway configuration parameters may include one or more of gateway identity configuration parameters, key configuration parameters, trigger policy configuration parameters, period configuration parameters, and network port configuration parameters. Such a gateway can improve the adaptability of the network to which it is connected or joined, and improve the adaptability of the gateway.
在一些实施例中,如图4所示,网关还可以包括鉴权和身份管理模块405,能够利用预存的鉴权信息请求接入能源网络,通过能源网络授权的身份信息使网关接入能源网络。在另一些实施例中,鉴权和身份管理模块405可以利用预存的鉴权信息请求接入区块链网络,通过区块链网络授权的身份信息使网关接入能源网络。这样的网关一方面提高了网络接入的灵活性,另一方面也有助于控制网关的权限,提高网络的安全性。In some embodiments, as shown in FIG. 4, the gateway may further include an authentication and identity management module 405, which can use pre-stored authentication information to request access to the energy network, and enable the gateway to access the energy network through the identity information authorized by the energy network. . In other embodiments, the authentication and identity management module 405 may request access to the blockchain network using pre-stored authentication information, and enable the gateway to access the energy network through the identity information authorized by the blockchain network. Such a gateway improves the flexibility of network access on the one hand, and helps control the authority of the gateway on the other hand, and improves network security.
在一些实施例中,如图4所示,网关还可以包括规则确定模块406,能够根据来自区块链网络的区块链信息分析区块链网络的通信规则,根据区块链网络的通信规则调节网关在区块链网络的通信行为,使通信行为符合通信规则。在一些实施例中,规则确定模块406还可以根据来自的能源网络的能源信息分析能源网络的通信规则,根据能源网络的通信规则调节网关在能源网络的通信行为,使通信行为符合通信规则。In some embodiments, as shown in FIG. 4, the gateway may further include a rule determination module 406, which can analyze the communication rules of the blockchain network based on the blockchain information from the blockchain network, and according to the communication rules of the blockchain network. Adjust the communication behavior of the gateway in the blockchain network to make the communication behavior comply with the communication rules. In some embodiments, the rule determination module 406 may further analyze the communication rules of the energy network according to the energy information from the energy network, and adjust the communication behavior of the gateway on the energy network according to the communication rules of the energy network, so that the communication behavior conforms to the communication rules.
这样的网关能够进一步提高网关对不同区块链网络、能源网络的适配性,使得网关与不同网络兼容,提高网关的自适应能力。Such a gateway can further improve the adaptability of the gateway to different blockchain networks and energy networks, make the gateway compatible with different networks, and improve the adaptability of the gateway.
本公开网关的一些实施例的结构示意图如图5所示。网关包括存储器501和处理器502。其中:存储器501可以是磁盘、闪存或其它任何非易失性存储介质。存储器用于存储上文中网关通信方法的对应实施例中的指令。处理器502耦接至存储器501,可以作为一个或多个集成电路来实施,例如微处理器或微控制器。该处理器502用于执行存储器中存储的指令,能够实现能源信息去中心化记录,并能够在区块链网络的任何一个节点读取记录的信息,从而便于生成调度指令,实现对能源的灵活调度。A schematic structural diagram of some embodiments of the gateway of the present disclosure is shown in FIG. 5. The gateway includes a memory 501 and a processor 502. The memory 501 may be a magnetic disk, a flash memory, or any other non-volatile storage medium. The memory is configured to store the instructions in the corresponding embodiments of the gateway communication method above. The processor 502 is coupled to the memory 501 and may be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 502 is used to execute instructions stored in the memory, which can implement a decentralized record of energy information, and can read the recorded information at any node of the blockchain network, thereby facilitating the generation of scheduling instructions and achieving flexibility in energy. Scheduling.
在一些实施例中,还可以如图6所示,网关600包括存储器601和处理器602。 处理器602通过BUS总线603耦合至存储器601。该网关600还可以通过存储接口604连接至外部存储装置605以便调用外部数据,还可以通过网络接口606连接至网络或者另外一台计算机系统(未标出)。此处不再进行详细介绍。In some embodiments, as shown in FIG. 6, the gateway 600 includes a memory 601 and a processor 602. The processor 602 is coupled to the memory 601 through a BUS bus 603. The gateway 600 may also be connected to the external storage device 605 through the storage interface 604 to call external data, and may also be connected to the network or another computer system (not shown) through the network interface 606. I won't go into details here.
在该实施例中,通过存储器存储数据指令,再通过处理器处理上述指令,能够实现能源信息去中心化记录,并能够在区块链网络的任何一个节点读取记录的信息,从而便于生成调度指令,实现对能源的灵活调度。In this embodiment, a data instruction is stored in a memory, and then the processor processes the above instruction, so that a decentralized record of energy information can be achieved, and the recorded information can be read at any node of the blockchain network, thereby facilitating the generation of a schedule Instructions to achieve flexible scheduling of energy.
在另一些实施例中,一种计算机可读存储介质,其上存储有计算机程序指令,该指令被处理器执行时实现网关通信方法对应实施例中的方法的步骤。本领域内的技术人员应明白,本公开的实施例可提供为方法、装置、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用非瞬时性存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。In other embodiments, a computer-readable storage medium stores computer program instructions thereon, which when executed by a processor, implement steps of a method corresponding to an embodiment of a gateway communication method. Those skilled in the art should understand that the embodiments of the present disclosure may be provided as a method, an apparatus, or a computer program product. Therefore, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code therein. .
本公开的能源系统的又一些实施例的示意图如图7所示。网关700可以为上文中提到的任意一种网关。网关700可以通过区块链网络通信模块与区块链网络连接,通过能源网络通信模块与能源网络连接,其中,区块链网络能够存储和交互区块链信息。能源网络能够采集能源设备信息。在一些实施例中,能源网络可以包括多个通讯模块,每个通讯模块可以接入一个通讯网络或现场总线网络,实现在小型能源网络边界内的装置之间的通讯。能源网络可以为同构或异构网络。A schematic diagram of still other embodiments of the energy system of the present disclosure is shown in FIG. 7. The gateway 700 may be any of the gateways mentioned above. The gateway 700 may be connected to the blockchain network through a blockchain network communication module and connected to the energy network through an energy network communication module. The blockchain network is capable of storing and interacting with blockchain information. The energy network can collect energy equipment information. In some embodiments, the energy network may include multiple communication modules, and each communication module may access a communication network or a field bus network to implement communication between devices within the boundary of a small energy network. Energy networks can be homogeneous or heterogeneous.
这样的能源系统中,网关能够将能源网络的能源信息发布至区块链网络,从而使能源信息实现去中心化记录,并能够在区块链网络的任何一个节点读取记录的信息,从而便于生成调度指令,实现对能源的灵活调度。In such an energy system, the gateway can publish the energy information of the energy network to the blockchain network, so that the energy information can be decentralized, and the recorded information can be read at any node of the blockchain network, which is convenient. Generate scheduling instructions to achieve flexible scheduling of energy.
在一些实施例中,能源网络中可以包括发电装置、储能装置、变送装置、用电装置等,各装置之间通过通讯模块联结起来,互相协调自身的电行为。对于小区场景,单个或几个家庭内的设备可以通过网关700作为一个单元节点接入区块链网络;对于工厂场景,单个或几个车间内的设备可以通过网关700作为一个单元节点接入区块链网络,家庭或者车间为一个分布式的能量产销单元。能源网络通过网关700接入区块链网络,从而实现区块链网络上所有能源网络的联合调度控制,提高了对分布式的能源网络的管控能力。In some embodiments, the energy network may include a power generation device, an energy storage device, a transmission device, a power consumption device, etc. Each device is connected through a communication module to coordinate its own electrical behavior. For residential scenarios, devices in a single or several homes can access the blockchain network through the gateway 700 as a unit node; for factory scenarios, devices in a single or several workshops can access the zone through the gateway 700 as a unit node Blockchain network, home or workshop is a distributed energy production and sales unit. The energy network accesses the blockchain network through the gateway 700, thereby realizing the joint scheduling control of all energy networks on the blockchain network, and improving the management and control capability of the distributed energy network.
在一些实施例中,如图7所示,网关700可以包括多个区块链网络通信模块,如 区块链网络通信模块711~71n,n为大于1的正整数。每个区块链网络通信模块实现与一个区块链网络连接,能够连接的区块链网络为741~74n,即数量不超过区块链网络通信模块的数量。In some embodiments, as shown in FIG. 7, the gateway 700 may include multiple blockchain network communication modules, such as the blockchain network communication modules 711-71n, where n is a positive integer greater than 1. Each blockchain network communication module is connected to a blockchain network. The number of blockchain networks that can be connected is 741-74n, that is, the number does not exceed the number of blockchain network communication modules.
在一些实施例中,如图7所示,网关700可以包括多个能源网络通信模块,如能源网络通信模块731~73m,m为大于1的正整数。每个能源网络通信模块实现与一个能源网络连接,能够连接的区块链网络为751~75m,即数量不超过能源网络通信模块的数量。In some embodiments, as shown in FIG. 7, the gateway 700 may include multiple energy network communication modules, such as energy network communication modules 731 to 73m, where m is a positive integer greater than 1. Each energy network communication module is connected to an energy network. The blockchain network that can be connected is 751 to 75m, that is, the number does not exceed the number of energy network communication modules.
这样的能源系统能够实现单个网关与多个能源网络的连接,降低网关的需求量;能够使各个区块链网络上的节点获得需要各自能源信息,实现信息的分区块链网络存储。网关作为不同区块链网络的交点能够方便不同区块链网络的信息交互,实现信息的分区块链网络处理,降低对各个节点的信息处理能力的要求Such an energy system can realize the connection of a single gateway to multiple energy networks, reducing the demand for the gateway; it can enable nodes on each blockchain network to obtain their own energy information, and realize the blockchain network storage of information. As the intersection of different blockchain networks, the gateway can facilitate the information exchange between different blockchain networks, realize the division of blockchain network information, and reduce the requirements for the information processing capabilities of each node.
在一些实施例中,网关700可以灵活利用其空闲的能源网络通信模块灵活接入能源网络,利用其空闲的区块链网络通信模块灵活接入区块链网络,可以通过鉴权和身份管理模块完成鉴权接入,利用规则确定模块确定各个网络的通信规则,并利用配置管理模块完成网关配置参数的配置和更新,从而提高网络连接的灵活度,提高系统的自适应能力。In some embodiments, the gateway 700 can flexibly use its idle energy network communication module to flexibly access the energy network, utilize its idle blockchain network communication module to flexibly access the blockchain network, and can pass the authentication and identity management module Complete the authentication access, use the rule determination module to determine the communication rules of each network, and use the configuration management module to complete the configuration and update of the gateway configuration parameters, so as to improve the flexibility of the network connection and the system's adaptive ability.
本公开是参照根据本公开实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowcharts and / or block diagrams and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate instructions Means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算 机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
至此,已经详细描述了本公开。为了避免遮蔽本公开的构思,没有描述本领域所公知的一些细节。本领域技术人员根据上面的描述,完全可以明白如何实施这里公开的技术方案。So far, the present disclosure has been described in detail. To avoid obscuring the concept of the present disclosure, some details known in the art are not described. Those skilled in the art can fully understand how to implement the technical solutions disclosed herein based on the above description.
可能以许多方式来实现本公开的方法以及装置。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本公开的方法以及装置。用于所述方法的步骤的上述顺序仅是为了进行说明,本公开的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本公开实施为记录在记录介质中的程序,这些程序包括用于实现根据本公开的方法的机器可读指令。因而,本公开还覆盖存储用于执行根据本公开的方法的程序的记录介质。The methods and apparatus of the present disclosure may be implemented in many ways. For example, the methods and devices of the present disclosure may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless otherwise specifically stated. Further, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, which programs include machine-readable instructions for implementing the method according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing a method according to the present disclosure.
最后应当说明的是:以上实施例仅用以说明本公开的技术方案而非对其限制;尽管参照较佳实施例对本公开进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本公开的具体实施方式进行修改或者对部分技术特征进行等同替换;而不脱离本公开技术方案的精神,其均应涵盖在本公开请求保护的技术方案范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present disclosure and are not limited thereto. Although the present disclosure has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the present invention can still Modifications or equivalent replacements of some of the technical features of the disclosed specific embodiments; without departing from the spirit of the technical solutions of the present disclosure, they should all be covered within the scope of the technical solutions claimed by the present disclosure.

Claims (25)

  1. 一种网关通信方法,包括:A gateway communication method includes:
    网关接收来自能源网络的能源信息;The gateway receives energy information from the energy network;
    基于所述能源信息生成区块链信息;Generating blockchain information based on the energy information;
    在网关所处的区块链网络上发布所述区块链信息。The blockchain information is published on the blockchain network where the gateway is located.
  2. 根据权利要求1所述的网关通信方法,还包括:The gateway communication method according to claim 1, further comprising:
    网关接收来自能源网络的能源调度请求;The gateway receives the energy dispatch request from the energy network;
    基于区块链数据生成能源调度信息,所述区块链数据包括所述网关位于的所述区块链网络上各个节点发布的区块链信息;Generating energy scheduling information based on blockchain data, the blockchain data including blockchain information issued by various nodes on the blockchain network where the gateway is located;
    基于所述能源调度信息生成区块链信息并在网关所处的区块链网络上发布。Generate blockchain information based on the energy dispatch information and publish it on the blockchain network where the gateway is located.
  3. 根据权利要求2所述的网关通信方法,还包括:The gateway communication method according to claim 2, further comprising:
    网关获取来自所述区块链网络的区块链信息;The gateway obtains blockchain information from the blockchain network;
    在所述区块链信息中包括能源调度信息,且能源调度信息与所述网关连接的能源网络相关的情况下,将所述能源调度信息发送至能源网络,以便执行能源调度。If the blockchain information includes energy scheduling information and the energy scheduling information is related to the energy network connected to the gateway, the energy scheduling information is sent to the energy network in order to perform energy scheduling.
  4. 根据权利要求1所述的网关通信方法,其中,所述网关符合以下至少一项:所述网关位于多个区块链网络;或,所述网关与多个所述能源网络连接。The gateway communication method according to claim 1, wherein the gateway meets at least one of the following: the gateway is located in a plurality of blockchain networks; or the gateway is connected to a plurality of the energy networks.
  5. 根据权利要求1~4任意一项所述的网关通信方法,其中,The gateway communication method according to any one of claims 1 to 4, wherein:
    所述根据所述能源信息生成区块链信息包括:针对所述网关所处的各个区块链网络,基于区块链网络所需的能源信息,根据所述区块链网络的区块链信息生成规则生成区块链信息;The generating blockchain information according to the energy information includes: for each blockchain network where the gateway is located, based on the energy information required by the blockchain network, and according to the blockchain information of the blockchain network Generation rules generate blockchain information;
    所述发布所述区块链信息包括:将所述区块链信息发布至所述区块链信息对应的区块链网络。The publishing the blockchain information includes publishing the blockchain information to a blockchain network corresponding to the blockchain information.
  6. 根据权利要求2所述的网关通信方法,其中,The gateway communication method according to claim 2, wherein:
    所述基于所述能源调度信息生成区块链信息包括:The generating blockchain information based on the energy scheduling information includes:
    确定与所述能源调度信息相关联的区块链网络;Determining a blockchain network associated with the energy dispatch information;
    基于所述能源调度信息,根据与所述能源调度信息相关联的所述区块链网络的区块链信息生成规则生成区块链信息;Generating blockchain information based on the blockchain information generation rules of the blockchain network associated with the energy scheduling information based on the energy scheduling information;
    所述在网关所处的区块链网络上发布所述区块链信息包括:在与所述能源调度信 息相关联的所述区块链网络上发布所述区块链信息。The publishing the blockchain information on the blockchain network where the gateway is located includes publishing the blockchain information on the blockchain network associated with the energy dispatch information.
  7. 根据权利要求5所述的网关通信方法,还包括:The gateway communication method according to claim 5, further comprising:
    根据来自所述网关归属的第一区块链网络的执行请求,确定所述执行请求对应的第二区块链网络,其中,所述执行请求由所述网关生成,或从来自所述第一区块链网络上其他节点的区块链信息中获取;Determine the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, wherein the execution request is generated by the gateway or from the first Obtained from the blockchain information of other nodes on the blockchain network;
    在所述网关位于所述第二区块链网络的情况下,根据所述执行请求和所述第二区块链网络的区块链信息生成规则生成区块链信息,并在所述第二区块链网络上发布,以便所述第二区块链网络上的相关节点执行所述区块链信息中的执行请求。When the gateway is located in the second blockchain network, the blockchain information is generated according to the execution request and the blockchain information generation rules of the second blockchain network, and Published on the blockchain network, so that relevant nodes on the second blockchain network can execute the execution request in the blockchain information.
  8. 根据权利要求5所述的网关通信方法,还包括:The gateway communication method according to claim 5, further comprising:
    根据能源调度信息、源自其它区块链网络的执行请求中的至少一种生成数据当前区块链网络的执行请求;Generating data according to at least one of energy dispatch information and execution requests originating from other blockchain networks; execution requests of the current blockchain network;
    基于所述执行请求生成区块链信息并在当前区块链网络上发布。Generate blockchain information based on the execution request and publish it on the current blockchain network.
  9. 根据权利要求1~4、6~8任意一项所述的网关通信方法,还包括:The gateway communication method according to any one of claims 1 to 4, 6 to 8, further comprising:
    根据所述能源网络、所述区块链网络中的至少一个生成和/或更新网关配置参数,其中,所述网关配置参数包括网关身份配置参数、密钥配置参数、触发策略配置参数、周期配置参数,网口配置参数中的一种或多种。Generate and / or update gateway configuration parameters according to at least one of the energy network and the blockchain network, wherein the gateway configuration parameters include gateway identity configuration parameters, key configuration parameters, trigger policy configuration parameters, and cycle configuration Parameter, one or more of network port configuration parameters.
  10. 根据权利要求1~4、6~8任意一项所述的网关通信方法,还包括以下至少一项:The gateway communication method according to any one of claims 1 to 4, 6 to 8, further comprising at least one of the following:
    根据预存的鉴权信息请求接入所述区块链网络,通过所述区块链网络授权的身份信息接入所述区块链网络;或,Request access to the blockchain network according to pre-stored authentication information, and access the blockchain network through identity information authorized by the blockchain network; or,
    根据预存的鉴权信息请求接入所述能源网络,通过所述能源网络授权的身份信息接入所述能源网络。Request access to the energy network according to pre-stored authentication information, and access the energy network through identity information authorized by the energy network.
  11. 根据权利要求1~4、6~8任意一项所述的网关通信方法,还包括以下至少一项:The gateway communication method according to any one of claims 1 to 4, 6 to 8, further comprising at least one of the following:
    根据来自区块链网络的区块链信息分析所述区块链网络的通信规则,根据所述区块链网络的通信规则调节网关在所述区块链网络的通信行为,使所述通信行为符合所述通信规则;或,Analyze the communication rules of the blockchain network according to the blockchain information from the blockchain network, adjust the communication behavior of the gateway on the blockchain network according to the communication rules of the blockchain network, and make the communication behavior Comply with said communication rules; or,
    根据来自的能源网络的能源信息分析所述能源网络的通信规则,根据所述能源网络的通信规则调节网关在所述能源网络的通信行为,使所述通信行为符合所述通信规则。Analyze the communication rules of the energy network according to the energy information from the energy network, adjust the communication behavior of the gateway in the energy network according to the communication rules of the energy network, and make the communication behavior comply with the communication rules.
  12. 一种网关,包括:A gateway including:
    能源网络通信模块,被配置为接收来自能源网络的能源信息;An energy network communication module configured to receive energy information from the energy network;
    信息处理模块,被配置为基于所述能源信息生成区块链信息;An information processing module configured to generate blockchain information based on the energy information;
    区块链网络通信模块,被配置为在网关所处的区块链网络上发布所述区块链信息。The blockchain network communication module is configured to publish the blockchain information on a blockchain network where the gateway is located.
  13. 根据权利要求12所述的网关,其中:The gateway according to claim 12, wherein:
    所述能源网络通信模块还被配置为接收来自能源网络的能源调度请求;The energy network communication module is further configured to receive an energy dispatch request from an energy network;
    所述信息处理模块还被配置为:The information processing module is further configured:
    基于区块链数据生成能源调度信息,所述区块链数据包括所述网关位于的所述区块链网络上各个节点发布的区块链信息;Generating energy scheduling information based on blockchain data, the blockchain data including blockchain information issued by various nodes on the blockchain network where the gateway is located;
    基于所述能源调度信息生成区块链信息,以便所述区块链网络通信模块在网关所处的区块链网络上发布。Generate blockchain information based on the energy dispatch information, so that the blockchain network communication module is published on the blockchain network where the gateway is located.
  14. 根据权利要求13所述的网关,其中:The gateway according to claim 13, wherein:
    所述区块链网络通信模块还被配置为获取来自所述区块链网络的区块链信息;The blockchain network communication module is further configured to obtain blockchain information from the blockchain network;
    所述能源网络通信模块还被配置为在所述信息处理模块确定所述区块链信息中包括能源调度信息,且能源调度信息与所述网关连接的能源网络相关的情况下,将所述能源调度信息发送至能源网络,以便执行能源调度。The energy network communication module is further configured to, when the information processing module determines that the blockchain information includes energy scheduling information, and the energy scheduling information is related to an energy network connected to the gateway, the energy network Scheduling information is sent to the energy network to perform energy scheduling.
  15. 根据权利要求12所述的网关,其中,所述网关符合以下至少一项:所述网关包括多个区块链网络通信模块;或,所述网关包括多个所述能源网络通信模块。The gateway according to claim 12, wherein the gateway meets at least one of the following: the gateway includes a plurality of blockchain network communication modules; or the gateway includes a plurality of the energy network communication modules.
  16. 根据权利要求12~15任意一项所述的网关,其中,The gateway according to any one of claims 12 to 15, wherein:
    所述信息处理模块还被配置为:针对所述网关所处的各个区块链网络,基于区块链网络所需的能源信息,根据所述区块链网络的区块链信息生成规则生成区块链信息;The information processing module is further configured to: for each blockchain network where the gateway is located, based on the energy information required by the blockchain network, generate a rule generation area based on the blockchain information of the blockchain network Blockchain information;
    所述区块链网络通信模块还被配置为:将所述区块链信息发布至所述区块链信息对应的区块链网络。The blockchain network communication module is further configured to: publish the blockchain information to a blockchain network corresponding to the blockchain information.
  17. 根据权利要求13所述的网关,其中,所述信息处理模块还被配置为:The gateway according to claim 13, wherein the information processing module is further configured to:
    确定与所述能源调度信息相关联的区块链网络;Determining a blockchain network associated with the energy dispatch information;
    基于所述能源调度信息,根据与所述能源调度信息相关联的所述区块链网络的区块链信息生成规则生成区块链信息;Generating blockchain information based on the blockchain information generation rules of the blockchain network associated with the energy scheduling information based on the energy scheduling information;
    所述区块链网络通信模块还被配置为在与所述能源调度信息相关联的所述区块链网络上发布所述区块链信息。The blockchain network communication module is further configured to publish the blockchain information on the blockchain network associated with the energy dispatch information.
  18. 根据权利要求16所述的网关,其中,所述信息处理模块还被配置为:The gateway according to claim 16, wherein the information processing module is further configured to:
    根据来自所述网关归属的第一区块链网络的执行请求,确定所述执行请求对应的第二区块链网络,其中,所述执行请求由所述网关生成,或从来自所述第一区块链网络上其他节点的区块链信息中获取;Determine the second blockchain network corresponding to the execution request according to the execution request from the first blockchain network to which the gateway belongs, wherein the execution request is generated by the gateway or from the first Obtained from the blockchain information of other nodes on the blockchain network;
    在所述网关位于所述第二区块链网络的情况下,根据所述执行请求和所述第二区块链网络的区块链信息生成规则生成区块链信息;If the gateway is located in the second blockchain network, generating blockchain information according to the execution request and a blockchain information generation rule of the second blockchain network;
    所述区块链网络通信模块被配置为在所述第二区块链网络上发布根据所述执行请求生成的所述区块链信息,以便所述第二区块链网络上的相关节点执行所述区块链信息中的执行请求。The blockchain network communication module is configured to publish the blockchain information generated according to the execution request on the second blockchain network so that relevant nodes on the second blockchain network can execute An execution request in the blockchain information.
  19. 根据权利要求16所述的网关,其中,所述信息处理模块还被配置为:The gateway according to claim 16, wherein the information processing module is further configured to:
    根据能源调度信息、源自其它区块链网络的执行请求中的至少一种生成数据当前区块链网络的执行请求;Generating data according to at least one of energy dispatch information and execution requests originating from other blockchain networks; execution requests of the current blockchain network;
    基于所述执行请求生成区块链信息,以便所述区块链网络通信模块在当前区块链网络上发布。Generate blockchain information based on the execution request, so that the blockchain network communication module is published on the current blockchain network.
  20. 根据权利要求12~15、17~19任意一项所述的网关,还包括:The gateway according to any one of claims 12 to 15, and 17 to 19, further comprising:
    配置管理模块,被配置为根据所述能源网络、所述区块链网络中的至少一个生成和/或更新网关配置参数,其中,所述网关配置参数包括网关身份配置参数、密钥配置参数、触发策略配置参数、周期配置参数,网口配置参数中的一种或多种。The configuration management module is configured to generate and / or update a gateway configuration parameter according to at least one of the energy network and the blockchain network, wherein the gateway configuration parameter includes a gateway identity configuration parameter, a key configuration parameter, One or more of trigger policy configuration parameters, period configuration parameters, and network port configuration parameters.
  21. 根据权利要求12~15、17~19任意一项所述的网关,还包括鉴权和身份管理模块,被配置为执行以下至少一项:The gateway according to any one of claims 12 to 15, 17 to 19, further comprising an authentication and identity management module configured to perform at least one of the following:
    根据预存的鉴权信息请求接入所述区块链网络,使网关采用所述区块链网络授权的身份信息接入所述区块链网络;或,Requesting access to the blockchain network according to pre-stored authentication information, so that the gateway uses the identity information authorized by the blockchain network to access the blockchain network; or,
    根据预存的鉴权信息请求接入所述能源网络,使网关采用所述能源网络授权的身份信息接入所述能源网络。Request access to the energy network according to the pre-stored authentication information, so that the gateway uses the identity information authorized by the energy network to access the energy network.
  22. 根据权利要求12~15、17~19任意一项所述的网关,还包括规则确定模块,被配置为执行以下至少一项:The gateway according to any one of claims 12 to 15, 17 to 19, further comprising a rule determination module configured to execute at least one of the following:
    根据来自区块链网络的区块链信息分析所述区块链网络的通信规则,根据所述区块链网络的通信规则调节网关在所述区块链网络的通信行为,使所述通信行为符合所述通信规则;或,Analyze the communication rules of the blockchain network according to the blockchain information from the blockchain network, adjust the communication behavior of the gateway on the blockchain network according to the communication rules of the blockchain network, and make the communication behavior Comply with said communication rules; or,
    根据来自的能源网络的能源信息分析所述能源网络的通信规则,根据所述能源网络的通信规则调节网关在所述能源网络的通信行为,使所述通信行为符合所述通信规则。Analyze the communication rules of the energy network according to the energy information from the energy network, adjust the communication behavior of the gateway in the energy network according to the communication rules of the energy network, and make the communication behavior comply with the communication rules.
  23. 一种网关,包括:A gateway including:
    存储器;以及Memory; and
    耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器的指令执行如权利要求1至11任一项所述的方法。A processor coupled to the memory, the processor being configured to perform the method of any one of claims 1 to 11 based on instructions stored in the memory.
  24. 一种计算机可读存储介质,其上存储有计算机程序指令,该指令被处理器执行时实现权利要求1至11任意一项所述的方法的步骤。A computer-readable storage medium stores computer program instructions thereon, which when executed by a processor, implement the steps of the method according to any one of claims 1 to 11.
  25. 一种能源系统,包括:An energy system including:
    区块链网络,被配置为存储和交互区块链信息;Blockchain network, configured to store and interact with blockchain information;
    能源网络,被配置为采集能源设备信息;和,An energy network configured to collect energy equipment information; and,
    权利要求12~23任意一项所述的网关。The gateway according to any one of claims 12 to 23.
PCT/CN2018/121499 2018-09-10 2018-12-17 Gateway communication method, gateway, and energy system WO2020052133A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811050054.3 2018-09-10
CN201811050054.3A CN108833270B (en) 2018-09-10 2018-09-10 Gateway communication method, gateway and energy system

Publications (1)

Publication Number Publication Date
WO2020052133A1 true WO2020052133A1 (en) 2020-03-19

Family

ID=64149155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121499 WO2020052133A1 (en) 2018-09-10 2018-12-17 Gateway communication method, gateway, and energy system

Country Status (2)

Country Link
CN (1) CN108833270B (en)
WO (1) WO2020052133A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116111649A (en) * 2023-04-13 2023-05-12 杭州欣美成套电器制造有限公司 Intelligent real-time monitoring multidimensional digital energy gateway device and control method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833270B (en) * 2018-09-10 2022-10-25 珠海格力电器股份有限公司 Gateway communication method, gateway and energy system
CN109978347B (en) * 2019-03-07 2023-04-07 国网冀北电力有限公司技能培训中心 Community energy autonomous method with distributed power generation based on block chain technology
TWI720640B (en) * 2019-10-04 2021-03-01 國立臺灣科技大學 A method and a device for displaying origin of workpiece coordinate system and tool path on a workpiece by augmented reality
CN111835556B (en) * 2020-06-10 2022-01-11 清华大学 Security control method and device and computer readable storage medium
CN112712211A (en) * 2021-01-14 2021-04-27 首钢京唐钢铁联合有限责任公司 Method and device for energy scheduling based on block chain
CN114553967A (en) * 2022-01-14 2022-05-27 青岛海尔科技有限公司 Calling method and related device between micro services

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481141A (en) * 2017-07-25 2017-12-15 浙江大学 Electric energy metrical and transaction terminal based on block chain technology
CN107800131A (en) * 2017-11-10 2018-03-13 赫普科技发展(北京)有限公司 A kind of energy internet router
CN107846282A (en) * 2017-11-03 2018-03-27 法信公证云(厦门)科技有限公司 A kind of electronic data distribution keeping method and system based on block chain technology
CN107948300A (en) * 2017-12-05 2018-04-20 清华大学 A kind of energy block catenary system and its data processing method
US20180117446A1 (en) * 2016-05-02 2018-05-03 Bao Tran Smart device
CN108833270A (en) * 2018-09-10 2018-11-16 珠海格力电器股份有限公司 Gateway communication method, gateway and energy resource system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909358B (en) * 2017-11-01 2021-08-17 北京融链科技有限公司 Energy settlement method, device and system
CN108011370A (en) * 2017-12-27 2018-05-08 华北电力大学(保定) A kind of distributed energy scheduling method of commerce based on global energy block chain
CN108092412A (en) * 2018-02-02 2018-05-29 珠海格力电器股份有限公司 Energy information processing method and its equipment, energy internet system
GB2577853B (en) * 2018-06-22 2021-03-24 Moixa Energy Holdings Ltd Systems for machine learning, optimising and managing local multi-asset flexibility of distributed energy storage resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180117446A1 (en) * 2016-05-02 2018-05-03 Bao Tran Smart device
CN107481141A (en) * 2017-07-25 2017-12-15 浙江大学 Electric energy metrical and transaction terminal based on block chain technology
CN107846282A (en) * 2017-11-03 2018-03-27 法信公证云(厦门)科技有限公司 A kind of electronic data distribution keeping method and system based on block chain technology
CN107800131A (en) * 2017-11-10 2018-03-13 赫普科技发展(北京)有限公司 A kind of energy internet router
CN107948300A (en) * 2017-12-05 2018-04-20 清华大学 A kind of energy block catenary system and its data processing method
CN108833270A (en) * 2018-09-10 2018-11-16 珠海格力电器股份有限公司 Gateway communication method, gateway and energy resource system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116111649A (en) * 2023-04-13 2023-05-12 杭州欣美成套电器制造有限公司 Intelligent real-time monitoring multidimensional digital energy gateway device and control method

Also Published As

Publication number Publication date
CN108833270B (en) 2022-10-25
CN108833270A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
WO2020052133A1 (en) Gateway communication method, gateway, and energy system
US10594791B2 (en) Cloud data storage location monitoring
JP6719561B2 (en) Supply medium (eg, electricity) trading contract system
US10848338B2 (en) Systems and methods relating to a smart home manager
CN109274672B (en) Mobile operation and maintenance management and data interaction system for information communication equipment
CN114253793A (en) Dynamic tracking control
CN102711139B (en) A kind of data flow statistic method and terminal
CN106155812A (en) Method, device, system and the electronic equipment of a kind of resource management to fictitious host computer
WO2022252717A1 (en) Homogeneous-heterogeneous hybrid multi-core chip architecture for implementing electric power data processing
CN108076457A (en) A kind of safety-type power grid private radio communication module of wisdom based on linux system
CN103544060B (en) A kind of service dispatch system and method based on WEBSERVICE
CN109298937A (en) Document analysis method and the network equipment
CN109842624A (en) A kind of interchanger security agency communication method and system
US9903737B2 (en) Multi-tenant customer portal
CN113703363A (en) Plug-and-play method of intelligent edge computing gateway in power dispatching cloud
KR101985312B1 (en) Systems, methods and apparatus for an improved aggregation engine for a demand response management system
Galioto et al. Smart plugs: A low cost solution for programmable control of domestic loads
CN102710628B (en) A kind of cloud security encryption method based on home gateway and system
CN104469770A (en) WLAN authentication method, platform and system for third-party application
CN106602361A (en) Intelligent socket system based on WeChat official account control
CN112468350B (en) Operation parameter configuration management method and device of power Internet of things
Li et al. A blockchain-based decentralized framework for fair data processing
CN114449019A (en) Operation data recording method, node, system and equipment
CN106888199B (en) Role-driven demand response secure access method in smart grid
CN104811457A (en) Confidentiality identification system and method for battery of public network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18933164

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18933164

Country of ref document: EP

Kind code of ref document: A1