Energy management method and device based on Internet of Things, electronic equipment and storage medium
By connecting sensors with programmable controllers in the energy management system and using IoT technology to monitor and regulate energy supply in real time, the problem of low energy management efficiency in the existing technology is solved, equipment monitoring, data collection and remote management are realized, and energy consumption is reduced.
Patent Information
- Application Number
- CN202510346226.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-04-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art is difficult to implement equipment monitoring, data collection and remote management in the energy management process, resulting in inefficient energy consumption.
By connecting the sensor to a programmable controller and using IoT technology, we can monitor the energy side data in real time, configure energy strategies, and regulate the energy supply of the energy supply equipment.
It realizes equipment monitoring, data collection and remote management of the energy management system, reduces energy consumption and improves the scalability of the energy management system.
Smart Images

Figure CN119861645A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy management, and in particular to an energy management method, device, electronic device and storage medium based on the Internet of Things. Background Art
[0002] Programmable controllers are widely used in a variety of tasks such as performing logical operations, realizing sequential control, setting timing functions, performing counting operations, and performing arithmetic operations. With the development of IoT (Internet of Things) technology, the combination of PLC and IoT systems has brought new opportunities for industrial automation, such as equipment monitoring, data collection and remote management. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an energy management method, device, electronic device and storage medium based on the Internet of Things, so as to utilize IoT technology to realize equipment monitoring, data collection and remote management in the energy management process.
[0004] In a first aspect, an embodiment of the present invention provides an energy management method based on the Internet of Things, which is applied to a first target programmable controller, wherein the first target programmable controller is connected to a first sensor, and the method includes: Acquire the working data of the target energy supply device collected by the first sensor; Sending the operating data of the target energy supply device to a server; receiving feedback information, and adjusting energy supply to the target energy supply device based on the target monitoring feedback information; Wherein, the feedback information includes: energy configuration information of the target energy supply equipment.
[0005] In the embodiment provided in the present application, the sensor is placed in the programmable controller. At this time, the server can monitor the energy side data in real time and configure the energy strategy based on the energy side data, that is, calculate the output power of each energy supply side, thereby reducing energy consumption. By using IoT technology, equipment monitoring, data collection and remote management are realized in the energy management process. At the same time, the programmable controller, sensor and energy equipment are regarded as a module, and the module is managed in a unified manner, thereby improving the scalability of the energy management system.
[0006] One possible manner is that the first target programmable controller is configured with a first wireless transmission module, and the first target programmable controller is communicatively connected with the server based on the first wireless transmission module.
[0007] One possible way is that the first wireless transmission module is: one of a Bluetooth module, a ZigBee module, a Wi-Fi module, a 4G module, a 5G module and LoRaWAN.
[0008] In one possible manner, the first target programmable controller has a built-in first MQTT module, and the first MQTT module is configured to: send a first topic, wherein the first topic includes: working data of the target energy supply device; and A subscribed second topic is received, where the second topic includes: energy configuration information of the target energy supply device.
[0009] In a second aspect, an embodiment of the present application provides an energy management method based on the Internet of Things, which is applied to a second target programmable controller, wherein the second target programmable controller is connected to a second sensor, and the method includes: Acquire energy demand data of the target energy demand device collected by the second sensor; The operating data of the target energy demand device is sent to a server.
[0010] One possible manner is that the second target programmable controller is configured with a second wireless transmission module, and the second sensor communicates with the second target programmable controller based on the second wireless transmission module.
[0011] One possible way is that the second wireless transmission module is: one of a Bluetooth module, a ZigBee module, a Wi-Fi module, a 4G module, a 5G module and LoRaWAN.
[0012] One possible manner is that the second target programmable controller is built with a second MQTT module, and the second MQTT module is configured to: send a third topic, and the third topic includes: energy demand data of the target energy demand device.
[0013] In a third aspect, an embodiment of the present application provides an energy management method based on the Internet of Things, which is applied to a server, wherein the server obtains data sent by at least one first and second programmable controllers, and the at least one first programmable controller is used to obtain energy demand data of at least one energy demand device, and send the energy demand data of the energy demand device to the server, and one first programmable controller corresponds to one energy demand device; The second programmable controller is used to obtain the working data of at least one energy supply device and send the working data of the energy supply device to the server, and one second programmable controller corresponds to one energy supply device; The method comprises: Determine at least one energy consumption mode, and determine a configuration strategy for an energy supply device corresponding to each of the energy consumption modes; Obtain energy demand data of current energy demand equipment and working data of current energy supply equipment; identifying current energy consumption patterns based on energy demand data of current energy demanding devices; Adjusting the configuration strategy of the energy supply device corresponding to the current energy consumption mode based on the working data of the energy supply device to determine the configuration information of each energy supply device; The configuration information of each of the energy supply devices is sent to the corresponding second programmable controller.
[0014] One possible way is that in the step of determining at least one energy consumption mode and determining the configuration strategy of the energy supply device corresponding to each energy consumption mode, the following formula is used to determine the configuration strategy of different energy supply devices under different energy consumption modes: ; —In energy consumption mode Lower energy supply equipment The output energy ; — learning rate; —Instant rewards; — discount factor; —Energy consumption patterns in the future Under this condition, all energy supply devices output energy The maximum value of .
[0015] One possible way is that the server includes a third MQTT module, and the third MQTT module is configured as follows: Receive a subscribed first topic, the first topic including: working data of each of the energy supply devices; and The second topic sent includes: energy configuration information of the energy supply device; and A subscribed third topic is received, wherein the third topic includes: energy demand data of the energy demand device.
[0016] One possible way is that the server is provided with an API interface, and the API interface is used to send the energy configuration information of the energy supply device.
[0017] In one possible manner, the method further comprises: encrypting and transmitting the energy configuration information of the energy supply device.
[0018] In a fourth aspect, an embodiment of the present application provides an energy management device based on the Internet of Things, which is applied to a first target programmable controller, wherein the first target programmable controller is connected to a first sensor, and includes: A first acquisition module: used to acquire the working data of the target energy supply device collected by the first target programmable controller and the corresponding first sensor; A first sending module: used for sending the working data of the target energy supply device to the server; A first receiving module: used to receive feedback information, and adjust the energy supply of the target energy supply device based on the target monitoring feedback information; Wherein, the feedback information includes: energy configuration information of the target energy supply equipment.
[0019] In a fifth aspect, an embodiment of the present application provides: An energy management device based on the Internet of Things, applied to a second target programmable controller, the second target programmable controller is connected to a second sensor, and the second sensor is used to obtain status data of a target energy demand device, including: A second acquisition module: acquiring energy demand data of a target energy demand device sent by the second sensor; The second sending module is used to send the working data of the target energy demand device to the server.
[0020] In a sixth aspect, an embodiment of the present application provides an energy management method based on the Internet of Things, which is applied to a server, wherein the server obtains data sent by at least one first and second programmable controllers, and the at least one first programmable controller is used to obtain energy demand data of at least one energy demand device, and send the energy demand data of the energy demand device to the server, and one first programmable controller corresponds to one energy demand device; The second programmable controller is used to obtain the working data of at least one energy supply device and send the working data of the energy supply device to the server, and one second programmable controller corresponds to one energy supply device; include: The third acquisition module is used to acquire energy demand data of energy demand equipment and working data of energy supply equipment; An identification module: used for identifying an energy consumption pattern based on energy demand data of the energy demand device; A determination module: used to determine the configuration information of each energy supply device based on the working data of the energy supply device and the energy consumption mode; The third sending module is used to send the configuration information of each energy supply device to the corresponding second programmable controller.
[0021] In a seventh aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and at least one memory in communication with the processor, wherein: The memory stores program instructions that can be executed by the processor, and the processor can execute the methods described in the first to third aspects by calling the program instructions.
[0022] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method described in the first to third aspects.
[0023] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A topological diagram of an energy management system based on the Internet of Things provided by an embodiment of the present invention; Figure 2 A flow chart of an energy management method based on the Internet of Things provided by an embodiment of the present invention; Figure 3 A flow chart of another energy management method based on the Internet of Things provided by an embodiment of the present invention; Figure 4 A flow chart of another energy management method based on the Internet of Things provided by an embodiment of the present invention; Figure 5 A structural diagram of an energy management device based on the Internet of Things provided by an embodiment of the present invention; Figure 6 A structural diagram of another energy management device based on the Internet of Things provided by an embodiment of the present invention; Figure 7 A structural diagram of another energy management device based on the Internet of Things provided by an embodiment of the present invention; Figure 8 This is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] First, the energy management system based on the Internet of Things involved in the present application is explained. In the embodiments provided in the present application, the energy management system includes a server and several programmable controllers, and each programmable controller can communicate bidirectionally with the server. Specifically, in the energy management system, based on different uses, the programmable controllers are divided into a first programmable controller and a second programmable controller. The first programmable controller is specifically used to allocate the energy source on the energy supply side. Specifically, the first programmable controller is used to adjust the output power of the corresponding energy supply equipment, and the second programmable controller is used to obtain energy demand data on the energy demand side.
[0029] It should be noted that in the embodiments provided in the present application, the energy management system can specifically manage gas energy, liquid energy, and electricity. Taking gas energy as an example, it can specifically manage shale gas, natural gas, and petroleum gas and other energies. Taking liquid energy as an example, it can specifically manage gasoline, alcohol and other energies.
[0030] To facilitate further understanding of the aforementioned system, the first programmable controller in this application is described below: In the present application, for any programmable controller in the first programmable controller, that is, the first target programmable controller, the first target programmable controller is connected to the corresponding first sensor. In this embodiment, the first sensor is specifically used to collect working data of the target energy supply device. The target energy supply device specifically refers to the energy supply device corresponding to the first target programmable controller. More specifically, the target energy supply device is subject to the control of the first target programmable controller. Taking the energy system composed of wind energy, photovoltaic energy, and solar energy as an example, the wind power generation unit A is controlled by the programmable controller B, and the wind power generation unit A is the energy supply device corresponding to the programmable controller B.
[0031] In this embodiment, the first target sensor first executes S101: acquiring the working data of the target energy supply device collected by the first sensor.
[0032] Specifically, the working data of the target energy supply equipment includes but is not limited to the output power, start / stop status, current fault status, etc. of the target energy supply equipment.
[0033] After acquiring the operating data of the target energy supply device, the first target sensor executes S102: sending the operating data of the target energy supply device to the server.
[0034] Thus, the server can obtain the working data of all energy supply devices, and calculate the energy configuration information of all energy supply devices in combination with the status data of the energy demand devices described later.
[0035] Furthermore, the energy configuration information of the energy supply device specifically includes: the start / stop state of the energy supply device, the output power of the energy supply device, and the like.
[0036] It should be noted that in the embodiments provided in the present application, there is no limitation on how the server obtains the energy configuration information of the energy supply device, and those skilled in the art may calculate the energy configuration information of the energy supply device based on an algorithm selected by themselves.
[0037] After the server calculates the energy configuration information of all energy supply devices, the first target programmable controller executes S103: receiving feedback information, and adjusting the energy supply of the target energy supply device based on the target monitoring feedback information.
[0038] In the embodiment provided in the present application, the feedback information specifically includes energy configuration information of the target energy supply device. When the first target programmable controller obtains the feedback information, the output power of the target energy supply device can be reasonably configured according to the feedback information.
[0039] In the embodiment provided in the present application, the sensor is placed in the programmable controller. At this time, the server can monitor the energy side data in real time and configure the energy strategy based on the energy side data, thereby reducing energy consumption. By utilizing IoT technology, equipment monitoring, data collection and remote management are realized in the energy management process. At the same time, the programmable controller, sensor and energy equipment are regarded as a module, and the module is managed in a unified manner, thereby improving the scalability of the energy management system.
[0040] As a preferred embodiment, the first target programmable controller is configured with a first wireless transmission module, and each first target programmable controller uses the first wireless transmission module to communicate with the corresponding first sensor.
[0041] In the embodiments provided in the present application, the first wireless transmission module may be one of a Bluetooth module, a ZigBee module, a Wi-Fi module, a 4G module, a 5G module and a LoRaWAN.
[0042] Through the above method, the communication connection between the programmable controller and the sensor on the energy supply side is realized, and the programmable controller can obtain the real-time data of the equipment on the energy supply side.
[0043] In general situations, programmable controllers and servers belong to different types of devices. At the same time, programmable controllers and servers are equipped with different types of operating systems. In order to solve the cross-platform and cross-system technical problems in the communication between programmable controllers and servers, programmable controllers communicate with servers based on the MQTT (Message Queuing Telemetry Transport) protocol.
[0044] Specifically, the first target programmable controller has a built-in first MQTT module, and the first MQTT module is specifically used to send a first topic and receive a subscribed second topic.
[0045] Specifically, in the embodiment provided in the present application, the first subject includes working data of the target energy supply device, and the second subject includes energy configuration information of the target energy supply device.
[0046] Through the above method, the cross-platform and cross-system technical problems in the communication between the programmable controller and the server are solved, the communication between the programmable controller and the server is realized, and the communication connection between the programmable controller and the server is realized. The server side can obtain the current working status of each energy supply side, providing a basis for the reasonable allocation of energy of each energy supply equipment.
[0047] The following will describe the second programmable controller provided in the embodiment of the present application.
[0048] For the convenience of description, a second programmable controller will be taken as an example and explained below.
[0049] In the embodiment provided in the present application, for any second programmable controller (ie, the second target programmable controller), in order to obtain energy demand data of the target energy demand device, the second sensor is connected to the second target programmable controller.
[0050] In the embodiment provided in the present application, there is a corresponding relationship between the second target programmable controller and the target energy demand device, that is, the second target programmable controller is specifically responsible for the energy demand data of the target energy demand device.
[0051] First, the second target programmable controller executes S201: obtains the energy demand data of the target energy demand device collected by the second sensor. At this time, the second target programmable controller stores the energy demand data of the target energy demand device. Then, the second target programmable controller executes S202: sends the working data of the target energy demand device to the server.
[0052] As for the type of the second sensor, it may specifically be an electric meter, a gas detection sensor, or a flow sensor, and the type of the second sensor is specifically determined according to the energy driving method of the target energy demand device.
[0053] Taking air conditioners as an example, air conditioners are mainly driven by electricity, so the second sensor can be an electric meter.
[0054] Through the above method, the sensor is placed in the programmable controller. At this time, the server can monitor the energy side data in real time and configure the energy strategy based on the energy side data, that is, calculate the output power of each energy supply side, reduce energy consumption, and use IoT technology to realize equipment monitoring, data collection and remote management in the energy management process. At the same time, the programmable controller, sensor, and energy equipment are regarded as a module, and the module is managed in a unified manner, which improves the scalability of the energy management system.
[0055] In the embodiment provided in the present application, the second target programmable controller is configured with a second wireless transmission module, and the second sensor communicates with the second target programmable controller based on the second wireless transmission module.
[0056] Regarding the selection of the second wireless transmission module, it can specifically be a Bluetooth module, a ZigBee module, a Wi-Fi module, a 4G module, a 5G module and a LoRaWAN module, and the technical personnel in this field can determine it according to the scenario.
[0057] The communication connection between the sensor and the programmable controller is realized in the above manner.
[0058] At the same time, those skilled in the art can set the sampling frequency of the second sensor by themselves, thereby increasing the flexibility of sampling.
[0059] Similarly, in order to solve the cross-platform and cross-system technical problems in the communication between the programmable controller and the server, the programmable controller communicates with the server based on the MQTT (Message Queuing Telemetry Transport) protocol.
[0060] As a preferred embodiment, referring to the aforementioned embodiment, the second target programmable controller is equipped with a second MQTT module. In this embodiment, the second MQTT module is specifically used to send a third topic. The third topic includes energy demand data of the target energy demand device. The server subscribes to the third topic. When the second MQTT module sends the third topic, the server can receive the data sent by the second target programmable controller.
[0061] Through the above method, the cross-platform and cross-system technical problems in the communication between the programmable controller and the server are solved, the communication between the programmable controller and the server is realized, and a basis is provided for the reasonable configuration of the energy of each energy supply device.
[0062] The following is a detailed description of the server's workflow: In the embodiment provided in the present application, combined with the foregoing, it can be known that the server obtains data sent by multiple first and second programmable controllers, the first programmable controller is used to obtain energy demand data of at least one energy demand device, and send the energy demand data of the energy demand device to the server, and at the same time, one first programmable controller corresponds to one energy demand device.
[0063] The second programmable controller is used to obtain the working data of at least one energy supply device and send the working data of the energy supply device to the server. At the same time, one second programmable controller corresponds to one energy supply device.
[0064] In the embodiment provided in this application, the server specifically performs the following steps: S301: Determine at least one energy consumption mode, and determine a configuration strategy of an energy supply device corresponding to each energy consumption mode.
[0065] In this step, the energy consumption pattern refers to the way and characteristics of energy consumption in different fields or scenarios. After the server obtains the energy demand data of the energy demand device, it identifies the consumption of various types of energy based on the energy demand data of the energy demand device, that is, the energy consumption pattern.
[0066] For example, an energy management system includes two energy supply devices: photovoltaic power generation equipment and diesel generators. Our goal is to determine which device is more economical and efficient to use in different time periods based on the energy consumption pattern and the working data of the equipment.
[0067] According to the time of day, it is divided into daytime and nighttime; according to the type of energy consumption, it is divided into photovoltaic power generation equipment and diesel generators.
[0068] In this example, the energy consumption mode specifically includes: during the day and at night, when calculating the configuration strategy of the corresponding energy supply equipment during the day, the energy configuration strategy of the photovoltaic power generation equipment and the diesel generator during the day is specifically calculated.
[0069] S302: Acquire energy demand data of current energy demand equipment and working data of current energy supply equipment; In this step, each of the first and second programmable controllers is connected to the server for communication. Specifically, each first programmable controller supplies working data of the energy supply device, and each second programmable controller sends energy demand data of the energy demand device to the server.
[0070] Thus, the server can obtain the energy demand data of the energy demand device and the working data of the energy supply device.
[0071] S303: Identify a current energy consumption mode based on energy demand data of current energy demand devices.
[0072] In this step, the server analyzes the energy demand data of the current energy demand device and identifies the environment in which the current energy management system is located, that is, identifies the current energy consumption mode.
[0073] For example, continuing with the above example, after analyzing the energy demand data of the current energy demand equipment, it is found that heating is currently the main source of energy, and heating is mainly based on thermal power generation. Therefore, thermal power generation is mainly used in energy configuration.
[0074] If it is assumed that the energy consumption pattern can be specifically divided into daytime and nighttime, and after analysis, it is currently daytime, the energy output of the photovoltaic power generation equipment and the diesel generator during the daytime is calculated here.
[0075] S304: Adjust the configuration strategy of the energy supply device corresponding to the current energy consumption mode based on the working data of the energy supply device, and determine the configuration information of each energy supply device.
[0076] After the current energy consumption mode is identified, the configuration strategy of the energy supply device corresponding to the current energy consumption mode is adjusted based on the working data of the energy supply device, that is, the configuration information of each energy supply device is determined.
[0077] Continuing with the above example, the energy consumption patterns specifically include: (daytime, photovoltaic power generation equipment), (daytime, diesel generator), (nighttime, photovoltaic power generation equipment). After analysis and calculation, during the daytime, the output energy of (daytime, photovoltaic power generation equipment) is , (During the day, diesel generator) output energy is However, according to analysis, photovoltaic power generation equipment can only provide At this time, the current energy allocation strategy is: during the day, the photovoltaic power generation equipment functions , powered by a diesel generator .
[0078] S305: Send the configuration information of each energy supply device to the corresponding second programmable controller.
[0079] When the second programmable controller obtains the configuration information of the energy supply device, it can control the energy supply device.
[0080] Through the above method, the server can monitor the energy side data in real time and configure the energy strategy based on the energy side data, that is, calculate the output power of each energy supply side, thereby reducing energy consumption.
[0081] As a preferred embodiment, the following formula can be used to determine the configuration strategy of different energy supply devices under different energy consumption modes: ; —In energy consumption mode Lower energy supply equipment The output energy ; — learning rate; —Instant rewards; — discount factor; —Energy consumption patterns in the future Under this condition, all energy supply devices output energy The maximum value of .
[0082] In this embodiment, is a number between 0 and 1 that controls how quickly new information overwrites old information. The larger the value, the greater the impact of the new energy consumption mode. The greater the impact of the value. In energy management, this could be indicators such as cost savings, improved energy efficiency, etc. Used to measure the current value of future rewards. The closer the value is to 1, the more importance is placed on future rewards.
[0083] In order to facilitate the understanding of this application, a specific example is provided below: This example includes two types of energy supply equipment: photovoltaic power generation equipment and diesel generators. In this example, in order to determine the energy control strategy adopted for different time periods, the energy consumption pattern is divided based on time periods and energy demands. Specifically, the time period is divided into day and night, and the energy demand is divided into high energy demand and low energy demand based on the amount of energy demand.
[0084] In the embodiment provided in this application, the energy configuration strategy specifically includes: using photovoltaic power generation equipment and using diesel generators. At the same time, considering that photovoltaic power generation is low in cost and environmentally friendly, if photovoltaic power generation is used during the day, then .
[0085] Diesel generators are necessary at night. If you use diesel generators at night, .
[0086] In this example, the discount factor ( ) is 0.9, and the learning rate ( ) is 0.1, under the initial conditions, (Daytime, photovoltaic power generation) = 0, (Daytime, diesel generator) = 0, (night, photovoltaic power generation) = 0, (Night, diesel generator) = 0.
[0087] Assuming that the initial energy consumption pattern is that during the day, energy demand is high and photovoltaic power generation is selected, the reward is R = 10. When entering a new energy consumption pattern (i.e., at night, energy demand is low), the expected future return is: In this Refers to continuous updating, , through multiple iterations, the energy output of each energy supply device in each energy consumption mode will gradually converge, and the algorithm will eventually learn to choose the optimal action in different states. In this example, the calculation can be obtained:
[0088] In this way, the power generation by photovoltaic power generation and diesel engine power generation during the day and the power generation by photovoltaic power generation and diesel engine power generation at night are determined.
[0089] As a preferred embodiment, in order to solve the cross-platform and cross-device type communication problem between the server and the programmable controller, and to realize the communication between the programmable controller and the server, the server includes a third MQTT module, the third MQTT module subscribes to the first topic, and the server uses the third MQTT module. Given that the first topic includes the working data of each energy supply device, when the first topic is subscribed, the working data of each energy supply device can be obtained.
[0090] At the same time, the server uses the second topic sent by the third MQTT module. Given that the second topic includes energy configuration information of each energy supply device, by sending the second topic, the programmable controller subscribed to the second topic can obtain the energy configuration information of the energy supply device.
[0091] At the same time, the server also subscribes to the third topic. Since the third topic includes energy demand data of energy demand equipment, the energy configuration information of the energy supply equipment can be obtained by subscribing to the third topic.
[0092] Through the above method, communication between the programmable controller and the server can be achieved.
[0093] On the basis of the above-mentioned embodiment, as a preferred embodiment, the server is provided with an API interface, and the server API interface sends the energy configuration information of the energy supply device to a third-party platform.
[0094] As a preferred embodiment, in order to improve data security, the energy configuration information of the energy supply device is encrypted. In this embodiment, the server encrypts and transmits the energy configuration information of the energy supply device.
[0095] Through the above methods, data security can be improved.
[0096] Reference Figure 5 The embodiment of the present application provides an energy management device based on the Internet of Things, which is applied to a first target programmable controller, the first target programmable controller is connected to a first sensor, and the method includes: The first acquisition module is used to acquire the working data of the target energy supply device collected by the first target programmable controller and the corresponding first sensor; The first sending module is used to send the working data of the target energy supply device to the server; The first receiving module is used to receive feedback information and adjust the energy supply of the target energy supply device based on the target monitoring feedback information; The feedback information includes: energy configuration information of the target energy supply equipment.
[0097] Reference Figure 6 The present application 14 reasonably provides an energy management device based on the Internet of Things, which is applied to a second target programmable controller, the second target programmable controller is connected to a second sensor, and the second sensor is used to obtain status data of the target energy demand device, including: A second acquisition module: acquiring energy demand data of a target energy demand device sent by a second sensor; The second sending module: sends the working data of the target energy demand equipment to the server.
[0098] Reference Figure 7 , the embodiment of the present application provides an energy management method based on the Internet of Things, which is applied to a server, the server obtains data sent by multiple first and second programmable controllers, the first programmable controller is used to obtain energy demand data of at least one energy demand device, and send the energy demand data of the energy demand device to the server, and one first programmable controller corresponds to one energy demand device; The second programmable controller is used to obtain the working data of at least one energy supply device and send the working data of the energy supply device to the server, and one second programmable controller corresponds to one energy supply device; include: The third acquisition module is used to acquire energy demand data of energy demand equipment and working data of energy supply equipment; Identification module: used for identifying energy consumption patterns based on energy demand data of energy demand devices; Determination module: used to determine the configuration information of each energy supply device based on the working data and energy consumption mode of the energy supply device; The third sending module is used to send the configuration information of each energy supply device to the corresponding second programmable controller.
[0099] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0100] Like reference numerals and letters denote similar items in the following drawings, and thus, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0101] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0102] Figure 8 A block diagram of an exemplary electronic device suitable for implementing an exemplary embodiment of the present invention is shown. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0103] like Figure 8 As shown, the electronic device is in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 410, a memory 430, and a communication bus 440 connecting different system components (including the memory 430 and the processor 410).
[0104] The communication bus 440 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnection (PCI) bus.
[0105] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0106] The memory 430 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of each embodiment of the present invention.
[0107] A program / utility having a set (at least one) of program modules may be stored in the memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in the embodiments of the present invention.
[0108] The processor 410 executes various functional applications and data processing by running the programs stored in the memory 430, such as implementing the embodiments of the present invention. Figure 2~Figure 3 The method provided by the illustrated embodiment.
[0109] An embodiment of the present invention provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute an embodiment of the present invention. Figure 1~Figure 3 The method provided by the illustrated embodiment.
[0110] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ReadOnly Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasable Programmable ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0111] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0112] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0113] Computer program codes for performing the operations of the embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0114] The above describes specific embodiments of the present invention. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0115] In the description of the embodiments of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of the present invention. In the embodiments of the present invention, the schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in the embodiments of the present invention and the features of the different embodiments or examples, without contradiction.
[0116] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0117] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred implementation of the embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0118] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0119] It should be noted that the terminals involved in the embodiments of the present invention may include but are not limited to personal computers (Personal Computer; hereinafter referred to as: PC), personal digital assistants (Personal Digital Assistant; hereinafter referred to as: PDA), wireless handheld devices, tablet computers (Tablet Computer), mobile phones, MP3 players, MP4 players, etc.
[0120] In the several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0121] In addition, each functional unit in each embodiment of the present invention may be integrated into one processor, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0122] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.
[0123] The above description is only a preferred embodiment of the embodiment of the present invention and is not intended to limit the embodiment of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiment of the present invention should be included in the scope of protection of the embodiment of the present invention.
Claims
1. An energy management method based on the Internet of Things, characterized in that: Applied to a first target programmable controller, the first target programmable controller is connected to a first sensor, the method comprises: Acquire the working data of the target energy supply device collected by the first sensor; Sending the operating data of the target energy supply device to a server; receiving feedback information, and adjusting energy supply to the target energy supply device based on the target monitoring feedback information; Wherein, the feedback information includes: energy configuration information of the target energy supply device.
2. The method according to claim 1, characterized in that The first target programmable controller is configured with a first wireless transmission module, and the first target programmable controller is communicatively connected with the server based on the first wireless transmission module.
3. The method according to claim 2, characterized in that The first wireless transmission module is: one of a Bluetooth module, a ZigBee module, a Wi-Fi module, a 4G module, a 5G module and a LoRaWAN.
4. The method according to any one of claims 1 to 3, characterized in that: The first target programmable controller has a built-in first MQTT module, and the first MQTT module is configured to: send a first topic, and the first topic includes: working data of the target energy supply device; and A subscribed second topic is received, where the second topic includes: energy configuration information of the target energy supply device.
5. An energy management method based on the Internet of Things, characterized in that: Applied to a second target programmable controller, the second target programmable controller is connected to a second sensor, the method comprising: Acquire energy demand data of the target energy demand device collected by the second sensor; The operating data of the target energy demand device is sent to a server.
6. The method according to claim 5, characterized in that The second target programmable controller is configured with a second wireless transmission module, and the second sensor communicates with the second target programmable controller based on the second wireless transmission module.
7. The method according to claim 6, characterized in that The second wireless transmission module is: one of a Bluetooth module, a ZigBee module, a Wi-Fi module, a 4G module, a 5G module and a LoRaWAN.
8. The method according to any one of claims 5 to 7, characterized in that: The second target programmable controller has a built-in second MQTT module, and the second MQTT module is configured to: send a third topic, and the third topic includes: energy demand data of the target energy demand device.
9. An energy management method based on the Internet of Things, characterized in that: Applied to a server, the server acquires data sent by at least one first and second programmable controllers, the at least one first programmable controller is used to acquire energy demand data of at least one energy demand device, and send the energy demand data of the energy demand device to the server, one first programmable controller corresponds to one energy demand device; At least one second programmable controller is used to obtain working data of at least one energy supply device and send the working data of the energy supply device to the server, and one second programmable controller corresponds to one energy supply device; The method comprises: Determine at least one energy consumption mode, and determine a configuration strategy for an energy supply device corresponding to each of the energy consumption modes; Obtain energy demand data of current energy demand equipment and working data of current energy supply equipment; identifying current energy consumption patterns based on energy demand data of current energy demanding devices; Adjusting the configuration strategy of the energy supply device corresponding to the current energy consumption mode based on the working data of the energy supply device to determine the configuration information of each energy supply device; The configuration information of each of the energy supply devices is sent to the corresponding second programmable controller.
10. The method according to claim 9, characterized in that In the step of determining at least one energy consumption mode and determining the configuration strategy of the energy supply device corresponding to each energy consumption mode, the following formula is used to determine the configuration strategy of different energy supply devices under different energy consumption modes: ; —In energy consumption mode Lower energy supply equipment The output energy ; — learning rate; —Instant rewards; — discount factor; —Energy consumption patterns in the future Under this condition, all energy supply devices output energy The maximum value of .
11. The method according to claim 10, characterized in that The server includes a third MQTT module, wherein the third MQTT module is configured to: Receive a subscribed first topic, the first topic including: working data of each of the energy supply devices; and The second topic sent includes: energy configuration information of the energy supply device; and A subscribed third topic is received, wherein the third topic includes: energy demand data of the energy demand device.
12. The method according to any one of claims 9 to 11, characterized in that: The server is provided with an API interface, and the API interface is used to send energy configuration information of the energy supply device.
13. The method according to claim 12, characterized in that The method further comprises: encrypting and transmitting the energy configuration information of the energy supply device.
14. An energy management device based on the Internet of Things, characterized in that: The method is applied to a first target programmable controller, wherein the first target programmable controller is connected to a first sensor, and comprises: A first acquisition module: used to acquire the working data of the target energy supply device collected by the first target programmable controller and the corresponding first sensor; A first sending module: used for sending the working data of the target energy supply device to a server; A first receiving module: used to receive feedback information, and adjust the energy supply of the target energy supply device based on the target monitoring feedback information; Wherein, the feedback information includes: energy configuration information of the target energy supply device.
15. An energy management device based on the Internet of Things, characterized in that: The method is applied to a second target programmable controller, wherein the second target programmable controller is connected to a second sensor, and comprises: A second acquisition module: acquiring energy demand data of a target energy demand device sent by the second sensor; The second sending module is used to send the working data of the target energy demand device to the server.
16. An energy management method based on the Internet of Things, characterized in that: The server acquires data sent by at least one first and second programmable controllers, and the at least one first programmable controller is used to acquire energy demand data of at least one energy demand device and send the energy demand data of the energy demand device to the server. One first programmable controller corresponds to one energy demand device. The second programmable controller is used to obtain the working data of at least one energy supply device and send the working data of the energy supply device to the server, and one second programmable controller corresponds to one energy supply device; include: The third acquisition module is used to acquire energy demand data of energy demand equipment and working data of energy supply equipment; An identification module: used for identifying an energy consumption pattern based on energy demand data of the energy demand device; A determination module: used to determine the configuration information of each energy supply device based on the working data of the energy supply device and the energy consumption mode; The third sending module is used to send the configuration information of each energy supply device to the corresponding second programmable controller.
17. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute any one of the methods described in claims 1 to 4, 5 to 8, or 9 to 14.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method according to any one of claims 1 to 4 or 5 to 8 or 9 to 13.