An Adaptive Energy-Saving Control Method and System for Air Conditioning Based on Dynamic Modeling of Energy Consumption Baseline
By using an adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption benchmarks, and by generating lock keys using minute-level time slots, acquiring multi-dimensional data, filtering manually operated marked equipment, and combining outdoor temperature to determine target energy-saving strategies, the method solves the problem of chaotic energy-saving control in multi-store cluster deployments and achieves efficient energy-saving control.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI AINENGJIE INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2026-04-24
- Publication Date
- 2026-06-30
AI Technical Summary
Existing systems are prone to energy-saving control command confusion when deployed in multi-store clusters, leading to equipment vibration and control chaos.
An adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption benchmarks is adopted. The method generates lock keys through minute-level time slots, obtains multi-dimensional data, filters manually operated marked equipment, determines the target energy-saving strategy in combination with outdoor temperature, and verifies Redis cache to avoid duplicate instructions.
It enables dynamic selection of store-level strategies, avoids erroneous execution during non-business hours, effectively reduces overall equipment energy consumption, and solves the problems of low efficiency and chaotic control in traditional systems under large-scale management.
Smart Images

Figure CN122305606A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an adaptive energy-saving control method and system for air conditioning based on dynamic modeling of energy consumption benchmarks. Background Technology
[0002] Existing systems are mostly centrally deployed in the cloud and combined with data collection at the store. Distributed deployment solutions only use general cluster scheduling technology, which is prone to repeatedly issuing control commands in the same minute, causing equipment to receive conflicting commands. For example, an air conditioner may be sent "turn on cooling" and "turn off air conditioner" at the same time, which can cause equipment vibration and control chaos.
[0003] As can be seen from the above, how to prevent confusion in energy-saving control commands under multi-store cluster deployment is an urgent problem to be solved. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide an adaptive energy-saving control method and system for air conditioning based on dynamic modeling of energy consumption benchmarks, which can prevent confusion in energy-saving control commands under multi-store cluster deployment. The specific solution is as follows: In a first aspect, this application provides an adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption benchmarks, comprising: A corresponding lock key is generated based on the current minute-level time slot, and the device is locked based on the lock key. If the locking is successful, multi-dimensional data related to the store equipment is obtained. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, list of activated energy-saving strategies, manual operation marks, and equipment control interface. The store equipment marked with the manual operation mark is filtered to obtain the filtered equipment. The target list of activated energy-saving strategies corresponding to the filtered equipment is determined. The target energy-saving strategy is determined by using the target list of activated energy-saving strategies and the current outdoor temperature of the city. It is also determined whether the current time is within the execution time period of the target energy-saving strategy. If within the execution time period, the temperature change trend is determined based on the indoor temperature of the store, and the initial energy-saving control command is determined based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy. Determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device, and determine the target energy-saving control instruction based on the determination result, so as to perform corresponding energy-saving control operations based on the target energy-saving control instruction and using the device control interface.
[0005] Optionally, the step involves generating a corresponding lock key based on the current minute-level time slot, locking based on the lock key, and if the locking is successful, acquiring multi-dimensional data related to the store equipment, including: Generate a corresponding lock key based on the current minute-level time slot and preset format, and lock the device using the Redis SETNX command based on the lock key; If the lock is successfully engaged, multi-dimensional data related to the store's equipment will be obtained. If locking fails, the next minute will be designated as the new current minute-level time slot, and the process will jump to the step of generating the corresponding lock key based on the current minute-level time slot and the preset format, until locking is successful.
[0006] Optionally, determining the target list of activated energy-saving strategies corresponding to the filtered device, and using the list of activated energy-saving strategies in conjunction with the current outdoor temperature of the city to determine the target energy-saving strategy, includes: Based on the list of enabled energy-saving strategies in the multi-dimensional data, enabled energy-saving strategies that do not match the current date type are removed to obtain a list of enabled energy-saving strategies after removal; the date type includes weekdays and holidays; Determine the target list of enabled energy-saving strategies corresponding to the filtered device from the list of enabled energy-saving strategies after removal; The target energy-saving strategy is determined using the target's list of enabled energy-saving strategies and the current outdoor temperature of the city, along with a preset strategy matching function.
[0007] Optionally, if within the execution time period, the temperature change trend is determined based on the store's indoor temperature, and an initial energy-saving control command is determined based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy, including: If within the specified execution time period, the temperature change trend is determined based on the store's current indoor temperature and the indoor temperature of the previous minute; The initial energy-saving control command is determined based on the store equipment mode, the temperature change trend, and the preset temperature threshold segmentation rule of the target energy-saving strategy.
[0008] Optionally, determining whether a command cache key corresponding to the initial energy-saving control command exists in the Redis cache of the filtered device, and determining the target energy-saving control command based on the obtained determination result, includes: Determine whether a command cache key corresponding to the initial energy-saving control command exists in the Redis cache of the filtered device; the command cache key contains the device number of the corresponding store device. If an instruction cache key exists that corresponds to the initial energy-saving control instruction, it is determined whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction, and the target energy-saving control instruction is determined based on the determination result.
[0009] Optionally, determining whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction, and determining the target energy-saving control instruction based on the obtained determination result, includes: Determine whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction; If they match, the validity period of the instruction cache key in the Redis cache will be extended to obtain the target energy-saving control instruction. If they are inconsistent, the initial energy-saving control command will be determined as the target energy-saving control command.
[0010] Optionally, the step of performing corresponding energy-saving control operations based on the target energy-saving control command and utilizing the device control interface includes: Based on the equipment number corresponding to the store equipment, the target energy-saving control instruction and the corresponding timing strategy control instruction are merged and deduplicated to obtain the final energy-saving control instruction. Based on the final energy-saving control command, the corresponding energy-saving control operation is performed using an asynchronous execution method.
[0011] Secondly, this application provides an adaptive energy-saving control system for air conditioning based on dynamic modeling of energy consumption benchmarks, comprising: The data acquisition module is used to generate a corresponding lock key based on the current minute-level time slot, and to lock the device based on the lock key. If the locking is successful, it acquires multi-dimensional data related to the store equipment. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, list of activated energy-saving strategies, manual operation marks, and equipment control interface. The target strategy determination module is used to filter store equipment with the manual operation mark to obtain filtered equipment, determine the target enabled energy-saving strategy list corresponding to the filtered equipment, use the target enabled energy-saving strategy list and the current outdoor temperature of the city to determine the target energy-saving strategy, and determine whether the current time is within the execution time period of the target energy-saving strategy. The initial instruction determination module is used to determine the temperature change trend based on the indoor temperature of the store if it is within the execution time period, and to determine the initial energy-saving control instruction based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy. The target instruction determination module is used to determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device, and to determine the target energy-saving control instruction based on the determination result, so as to perform corresponding energy-saving control operations based on the target energy-saving control instruction and using the device control interface.
[0012] Optionally, the data acquisition module includes: The lock key generation unit is used to generate a corresponding lock key based on the current minute-level time slot and a preset format, and to lock the device using the Redis SETNX command based on the lock key. The data acquisition unit is used to acquire multi-dimensional data related to the store's equipment if the locking is successful. The new time slot determination unit is used to determine the next minute as the new current minute-level time slot if locking fails, and jump to the step of generating the corresponding lock key based on the current minute-level time slot and the preset format until locking is successful.
[0013] Optionally, the target strategy determination module includes: The energy-saving strategy elimination unit is used to eliminate enabled energy-saving strategies that do not match the current date type based on the enabled energy-saving strategy list in the multi-dimensional data, so as to obtain a list of enabled energy-saving strategies after elimination; the date type includes weekdays and holidays; The strategy list determination unit is used to determine, from the list of energy-saving strategies that have been removed and enabled, a target list of energy-saving strategies that corresponds to the filtered device; The target strategy determination unit is used to determine the target energy-saving strategy by using the target list of activated energy-saving strategies and the current outdoor temperature of the city, and by using a preset strategy matching function.
[0014] This application generates a corresponding lock key based on the current minute-level time slot, and locks the device based on the lock key. If the locking is successful, it acquires multi-dimensional data related to the store equipment. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, a list of enabled energy-saving strategies, manual operation markers, and device control interfaces. Store equipment with the manual operation markers is filtered to obtain filtered equipment. A target list of enabled energy-saving strategies corresponding to the filtered equipment is determined. The target energy-saving strategy is determined using the target list of enabled energy-saving strategies and the current outdoor temperature of the city. It is also determined whether the current time is within the execution time period of the target energy-saving strategy. If it is within the execution time period, the temperature change trend is determined based on the store's indoor temperature. An initial energy-saving control instruction is determined based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy. It is determined whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered equipment. Based on the determination result, the target energy-saving control instruction is determined, and corresponding energy-saving control operations are performed based on the target energy-saving control instruction and the device control interface.
[0015] As can be seen from the above, this application generates and locks key-based locks at the minute-level time slot granularity, ensuring that strategy calculations are performed only once per minute. Multi-dimensional data collection is triggered only after successful locking, filtering out store equipment marked with manual operation. Based on the filtered equipment, a list of target energy-saving strategies is determined, and the target energy-saving strategy is matched with the current urban outdoor temperature, achieving dynamic strategy selection at the store level. Furthermore, the energy-saving strategy is only effective within a preset time period, preventing erroneous execution during non-business or non-controllable periods. The initial energy-saving control command is determined based on the temperature change trend of the store's indoor temperature, and then the existence of the corresponding command cache key in the Redis cache of the filtered equipment is verified to avoid repeatedly issuing the same control command to the equipment. In this way, by executing the target energy-saving control command through the device control interface, the inefficiency and chaotic control problems of traditional systems under large-scale management are solved, effectively reducing the overall energy consumption of store equipment. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0017] Figure 1 This is a flowchart of an adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption benchmarks disclosed in this application; Figure 2 This is a schematic diagram of an adaptive energy-saving control system for air conditioning based on dynamic modeling of energy consumption benchmarks disclosed in this application. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] Currently, most existing systems are centrally deployed in the cloud and combined with data collection at the store level. Distributed deployment solutions only use general cluster scheduling technology, which is prone to repeatedly issuing control commands within the same minute, causing equipment to receive conflicting commands, resulting in equipment jitter and control chaos. To address this, this application provides an adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption benchmarks. This method uses the equipment control interface to execute target energy-saving control commands, solving the problems of low efficiency and chaotic control in traditional systems under large-scale management, and effectively reducing the overall energy consumption of store equipment.
[0020] See Figure 1 As shown in the figure, an embodiment of the present invention discloses an adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption baseline, comprising: Step S11: Generate a corresponding lock key based on the current minute-level time slot, and lock the device based on the lock key. If the locking is successful, obtain multi-dimensional data related to the store equipment. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, list of activated energy-saving strategies, manual operation markers, and equipment control interface.
[0021] In this embodiment, the lock key corresponding to the current minute-level time slot can be in the format "LOCK:STORE_MINUTE_TASK:"+minuteSlot. Each minute has a different lock key. The Redis SETNX command is used for locking. If the lock is successfully acquired, subsequent operations proceed; otherwise, the current control task is skipped. Additionally, the lock key has an expiration time, such as 55 seconds. This means that a locking operation is performed every minute, and the lock is automatically released after 55 seconds. This prevents subsequent minute-level tasks from being unable to acquire the lock if the previous server malfunctions.
[0022] Specifically, the process involves generating a corresponding lock key based on the current minute-level time slot, locking based on the lock key, and if the locking is successful, acquiring multi-dimensional data related to the store equipment, including: generating a corresponding lock key based on the current minute-level time slot and a preset format, and locking based on the lock key using the Redis SETNX command; if the locking is successful, acquiring multi-dimensional data related to the store equipment; if the locking fails, the next minute is determined as the new current minute-level time slot, and the process jumps to the step of generating a corresponding lock key based on the current minute-level time slot and a preset format until the locking is successful.
[0023] Step S12: Filter the store equipment with the manual operation mark to obtain filtered equipment, determine the target enabled energy-saving strategy list corresponding to the filtered equipment, use the target enabled energy-saving strategy list and the current outdoor temperature of the city to determine the target energy-saving strategy, and determine whether the current time is within the execution time period of the target energy-saving strategy.
[0024] In this embodiment, if the multi-dimensional data of the store equipment contains a manual operation marker, execution is performed based on the manual operation marker. If no manual operation marker exists, the system filters the enabled energy-saving strategies corresponding to the current date type (weekday or holiday) from all energy-saving strategy lists and groups them according to store number (e.g., store A has 3 strategies, store B has 2 strategies) to form a corresponding target enabled energy-saving strategy list. The system uses a preset strategy matching function `findCurrentEnergyStrategy()` and combines it with the current city's outdoor temperature to determine the target energy-saving strategy from the target enabled energy-saving strategy list. If the execution time period of the target energy-saving strategy is fixed from 9:00 AM to 10:00 PM, and the current time is 8:59 AM, no operation is performed until 9:00 AM. The execution time period supports cross-day periods, such as 10:00 PM to 8:00 AM the next day.
[0025] Specifically, determining the target list of activated energy-saving strategies corresponding to the filtered device, and using the target list of activated energy-saving strategies in conjunction with the current city's outdoor temperature to determine the target energy-saving strategy, includes: removing activated energy-saving strategies that do not match the current date type from the activated energy-saving strategy list in the multi-dimensional data to obtain a list of activated energy-saving strategies after removal; the date type includes weekdays and holidays; determining the target list of activated energy-saving strategies corresponding to the filtered device from the list of activated energy-saving strategies after removal; and determining the target energy-saving strategy using the target list of activated energy-saving strategies and the current city's outdoor temperature using a preset strategy matching function.
[0026] Step S13: If within the execution time period, determine the temperature change trend based on the indoor temperature of the store, and determine the initial energy-saving control command based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy.
[0027] In this embodiment, if within the execution time period, the temperature change trend is determined based on the comparison between the current indoor temperature of the store and the indoor temperature of the previous minute; the temperature change trend includes rising, remaining stable, and falling. The preset temperature threshold segmentation rules of the target energy-saving strategy are as follows: cooling scenario: off / air supply / cooling / forced cooling; heating scenario: high heating (turned on when the indoor temperature is below the preset temperature threshold) / medium heating / air supply only. In one specific implementation, if the store equipment mode is cooling mode, the preset temperature threshold segmentation rules of the target energy-saving strategy are as follows: below 24℃, the air conditioning equipment is turned off; between 24-26℃, only air supply; between 26-28℃, cooling with low fan speed; above or equal to 28℃, forced cooling with high fan speed; if the current indoor temperature is 27℃ and the temperature change trend is voiceprint, then the initial energy-saving control command is air conditioning equipment cooling + setting 26℃ + low fan speed.
[0028] Specifically, if within the execution time period, the step of determining the temperature change trend based on the store's indoor temperature, and determining the initial energy-saving control command based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy, includes: if within the execution time period, determining the temperature change trend based on the store's current indoor temperature and the indoor temperature of the previous minute; and determining the initial energy-saving control command based on the store's equipment mode, the temperature change trend, and the preset temperature threshold segmentation rule of the target energy-saving strategy.
[0029] Step S14: Determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device, and determine the target energy-saving control instruction based on the determination result, so as to perform corresponding energy-saving control operations based on the target energy-saving control instruction and using the device control interface.
[0030] In this embodiment, a unique cache key is set for each store device. The cache key format can be: PREFIX_AUTO_DEVICE + device number, and the cache key is saved to the Redis cache of the corresponding store device. It is determined whether a cache key exists in the Redis cache of the filtered devices that is completely identical to the instruction in the initial energy-saving control instruction. If it exists, the validity period of the instruction corresponding to the cache key is extended, and the instruction is not reissued. If it does not exist, the initial energy-saving control instruction is determined as the target energy-saving control instruction. The validity period of the instruction corresponding to the cache key can be 29 minutes, or it can be adjusted according to the actual situation.
[0031] Specifically, determining whether a command cache key corresponding to the initial energy-saving control command exists in the Redis cache of the filtered device, and determining the target energy-saving control command based on the obtained determination result, includes: determining whether a command cache key corresponding to the initial energy-saving control command exists in the Redis cache of the filtered device; the command cache key contains the device number of the corresponding store device; if a command cache key corresponding to the initial energy-saving control command exists, determining whether the cached command corresponding to the command cache key is consistent with the initial energy-saving control command, and determining the target energy-saving control command based on the obtained determination result.
[0032] Specifically, determining whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction, and determining the target energy-saving control instruction based on the obtained determination result, includes: determining whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction; if consistent, extending the validity period of the instruction cache key in the Redis cache to obtain the target energy-saving control instruction; if inconsistent, determining the initial energy-saving control instruction as the target energy-saving control instruction.
[0033] It is understood that, in addition to corresponding energy-saving control commands, the store equipment may also have timed strategy control commands, such as turning off the air conditioner at 22:00 every day. If the filtered store equipment has both energy-saving control commands and timed strategy control commands, the timed strategy control commands are removed to avoid command conflicts, and the target energy-saving control command is determined as the final energy-saving control command. A manual operation flag is then checked for the target store equipment about to execute the final energy-saving control command. If a flag exists, the operation is skipped; otherwise, the final energy-saving control command is placed in the command queue. Based on the device number, the commands in the command queue are deduplicated. Specifically, if a store equipment has multiple final energy-saving control commands, the first or most recent one is selected for execution, which can be adjusted according to the actual situation. Command execution is based on the device control interface and asynchronous execution method, calling `deviceService.controlAirConditionerByStrategy(vo)` to complete the energy-saving control operation.
[0034] Specifically, the step of performing corresponding energy-saving control operations based on the target energy-saving control command and using the device control interface includes: merging and deduplicating the target energy-saving control command and the corresponding timing strategy control command based on the device number corresponding to the store equipment to obtain the final energy-saving control command; and performing corresponding energy-saving control operations based on the final energy-saving control command and using an asynchronous execution method.
[0035] As can be seen from the above, this application generates and locks key-based locks at the minute-level time slot granularity, ensuring that strategy calculations are performed only once per minute. Multi-dimensional data collection is triggered only after successful locking, filtering out store equipment marked with manual operation. Based on the filtered equipment, a list of target energy-saving strategies is determined, and the target energy-saving strategy is matched with the current urban outdoor temperature, achieving dynamic strategy selection at the store level. Furthermore, the energy-saving strategy is only effective within a preset time period, preventing erroneous execution during non-business or non-controllable periods. The initial energy-saving control command is determined based on the temperature change trend of the store's indoor temperature, and then the existence of the corresponding command cache key in the Redis cache of the filtered equipment is verified to avoid repeatedly issuing the same control command to the equipment. In this way, by executing the target energy-saving control command through the device control interface, the inefficiency and chaotic control problems of traditional systems under large-scale management are solved, effectively reducing the overall energy consumption of store equipment.
[0036] Accordingly, see Figure 2 As shown, this application also provides an adaptive energy-saving control system for air conditioning based on dynamic modeling of energy consumption baseline, including: The data acquisition module 11 is used to generate a corresponding lock key based on the current minute-level time slot, lock the device based on the lock key, and if the locking is successful, acquire multi-dimensional data related to the store equipment. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, list of activated energy-saving strategies, manual operation marks, and equipment control interface. The target strategy determination module 12 is used to filter the store equipment with the manual operation mark to obtain the filtered equipment, determine the target enabled energy-saving strategy list corresponding to the filtered equipment, use the target enabled energy-saving strategy list and the current outdoor temperature of the city to determine the target energy-saving strategy, and determine whether the current time is within the execution time period of the target energy-saving strategy. The initial instruction determination module 13 is used to determine the temperature change trend based on the indoor temperature of the store if the execution time period is within the specified time period, and to determine the initial energy-saving control instruction based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy. The target instruction determination module 14 is used to determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device, and to determine the target energy-saving control instruction based on the determination result, so as to perform corresponding energy-saving control operations based on the target energy-saving control instruction and using the device control interface.
[0037] In some specific embodiments, the data acquisition module 11 may specifically include: The lock key generation unit is used to generate a corresponding lock key based on the current minute-level time slot and a preset format, and to lock the device using the Redis SETNX command based on the lock key. The data acquisition unit is used to acquire multi-dimensional data related to the store's equipment if the locking is successful. The new time slot determination unit is used to determine the next minute as the new current minute-level time slot if locking fails, and jump to the step of generating the corresponding lock key based on the current minute-level time slot and the preset format until locking is successful.
[0038] In some specific embodiments, the target strategy determination module 12 may specifically include: The energy-saving strategy elimination unit is used to eliminate enabled energy-saving strategies that do not match the current date type based on the enabled energy-saving strategy list in the multi-dimensional data, so as to obtain a list of enabled energy-saving strategies after elimination; the date type includes weekdays and holidays; The strategy list determination unit is used to determine, from the list of energy-saving strategies that have been removed and enabled, a target list of energy-saving strategies that corresponds to the filtered device; The target strategy determination unit is used to determine the target energy-saving strategy by using the target list of activated energy-saving strategies and the current outdoor temperature of the city, and by using a preset strategy matching function.
[0039] In some specific embodiments, the initial instruction determination module 13 may specifically include: The trend determination unit is used to determine the temperature change trend based on the current indoor temperature of the store and the indoor temperature of the previous minute if the execution time period is within the specified time period. The initial instruction determination unit is used to determine the initial energy-saving control instruction based on the store equipment mode, the temperature change trend, and the preset temperature threshold segmentation rule of the target energy-saving strategy.
[0040] In some specific embodiments, the target instruction determination module 14 may specifically include: The cache key determination unit is used to determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device; the instruction cache key contains the device number of the corresponding store device. The target instruction determination submodule is used to determine whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction if an instruction cache key exists, and to determine the target energy-saving control instruction based on the determination result.
[0041] In some specific implementations, the target instruction determination submodule may specifically include: A cache instruction judgment unit is used to determine whether the cache instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction; The validity period extension unit is used to extend the validity period of the instruction cache key in the Redis cache if they are consistent, so as to obtain the target energy-saving control instruction. The target instruction determination unit is used to determine the initial energy-saving control instruction as the target energy-saving control instruction if there is a discrepancy.
[0042] In some specific embodiments, the target instruction determination module 14 may specifically include: The instruction deduplication unit is used to merge and deduplicate the target energy-saving control instruction and the corresponding timing strategy control instruction based on the equipment number corresponding to the store equipment, so as to obtain the final energy-saving control instruction. An energy-saving control unit is used to perform corresponding energy-saving control operations based on the final energy-saving control command and using an asynchronous execution method.
Claims
1. An adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption benchmarks, characterized in that, include: A corresponding lock key is generated based on the current minute-level time slot, and the device is locked based on the lock key. If the locking is successful, multi-dimensional data related to the store equipment is obtained. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, list of activated energy-saving strategies, manual operation markers, and equipment control interface. The store equipment marked with the manual operation mark is filtered to obtain the filtered equipment. The target list of activated energy-saving strategies corresponding to the filtered equipment is determined. The target energy-saving strategy is determined by using the target list of activated energy-saving strategies and the current outdoor temperature of the city. It is also determined whether the current time is within the execution time period of the target energy-saving strategy. If within the execution time period, the temperature change trend is determined based on the indoor temperature of the store, and the initial energy-saving control command is determined based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy. Determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device, and determine the target energy-saving control instruction based on the determination result, so as to perform corresponding energy-saving control operations based on the target energy-saving control instruction and using the device control interface.
2. The air conditioning adaptive energy-saving control method based on dynamic modeling of energy consumption benchmark as described in claim 1, characterized in that, The system generates a corresponding lock key based on the current minute-level time slot, locks the device using the lock key, and if the locking is successful, acquires multi-dimensional data related to the store equipment, including: Generate a corresponding lock key based on the current minute-level time slot and preset format, and lock the device using the Redis SETNX command based on the lock key; If the lock is successfully engaged, multi-dimensional data related to the store's equipment will be obtained. If locking fails, the next minute will be designated as the new current minute-level time slot, and the process will jump to the step of generating the corresponding lock key based on the current minute-level time slot and the preset format, until locking is successful.
3. The air conditioning adaptive energy-saving control method based on dynamic modeling of energy consumption baseline according to claim 1, characterized in that, The step of determining the target list of activated energy-saving strategies corresponding to the filtered equipment, and using the list of activated energy-saving strategies in conjunction with the current outdoor temperature of the city to determine the target energy-saving strategy, includes: Based on the list of enabled energy-saving strategies in the multi-dimensional data, enabled energy-saving strategies that do not match the current date type are removed to obtain a list of enabled energy-saving strategies after removal; the date type includes weekdays and holidays; Determine the target list of enabled energy-saving strategies corresponding to the filtered device from the list of enabled energy-saving strategies after removal; The target energy-saving strategy is determined using the target's list of enabled energy-saving strategies and the current outdoor temperature of the city, along with a preset strategy matching function.
4. The air conditioning adaptive energy-saving control method based on dynamic modeling of energy consumption benchmark as described in claim 1, characterized in that, If, during the execution time period, the temperature change trend is determined based on the store's indoor temperature, and an initial energy-saving control command is determined based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy, including: If within the specified execution time period, the temperature change trend is determined based on the store's current indoor temperature and the indoor temperature of the previous minute; The initial energy-saving control command is determined based on the store equipment mode, the temperature change trend, and the preset temperature threshold segmentation rule of the target energy-saving strategy.
5. The adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption baseline according to claim 1, characterized in that, The step of determining whether a command cache key corresponding to the initial energy-saving control command exists in the Redis cache of the filtered device, and determining the target energy-saving control command based on the obtained determination result, includes: Determine whether a command cache key corresponding to the initial energy-saving control command exists in the Redis cache of the filtered device; the command cache key contains the device number of the corresponding store device. If an instruction cache key exists that corresponds to the initial energy-saving control instruction, it is determined whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction, and the target energy-saving control instruction is determined based on the determination result.
6. The air conditioning adaptive energy-saving control method based on dynamic modeling of energy consumption baseline according to claim 5, characterized in that, The step of determining whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction, and determining the target energy-saving control instruction based on the obtained determination result, includes: Determine whether the cached instruction corresponding to the instruction cache key is consistent with the initial energy-saving control instruction; If they match, the validity period of the instruction cache key in the Redis cache will be extended to obtain the target energy-saving control instruction. If they are inconsistent, the initial energy-saving control command will be determined as the target energy-saving control command.
7. The adaptive energy-saving control method for air conditioning based on dynamic modeling of energy consumption baseline according to any one of claims 1 to 6, characterized in that, The step of performing corresponding energy-saving control operations based on the target energy-saving control command and utilizing the device control interface includes: Based on the equipment number corresponding to the store equipment, the target energy-saving control instruction and the corresponding timing strategy control instruction are merged and deduplicated to obtain the final energy-saving control instruction. Based on the final energy-saving control command, the corresponding energy-saving control operation is performed using an asynchronous execution method.
8. An adaptive energy-saving control system for air conditioning based on dynamic modeling of energy consumption benchmarks, characterized in that, include: The data acquisition module is used to generate a corresponding lock key based on the current minute-level time slot, lock the device based on the lock key, and if the locking is successful, acquire multi-dimensional data related to the store equipment. The multi-dimensional data includes time data, outdoor temperature, date type, indoor temperature, list of activated energy-saving strategies, manual operation markers, and equipment control interface. The target strategy determination module is used to filter store equipment with the manual operation mark to obtain filtered equipment, determine the target enabled energy-saving strategy list corresponding to the filtered equipment, use the target enabled energy-saving strategy list and the current outdoor temperature of the city to determine the target energy-saving strategy, and determine whether the current time is within the execution time period of the target energy-saving strategy. The initial instruction determination module is used to determine the temperature change trend based on the indoor temperature of the store if it is within the execution time period, and to determine the initial energy-saving control instruction based on the temperature change trend and the preset temperature threshold segmentation rule of the target energy-saving strategy. The target instruction determination module is used to determine whether there is an instruction cache key corresponding to the initial energy-saving control instruction in the Redis cache of the filtered device, and to determine the target energy-saving control instruction based on the determination result, so as to perform corresponding energy-saving control operations based on the target energy-saving control instruction and using the device control interface.
9. The air conditioning adaptive energy-saving control system based on dynamic modeling of energy consumption benchmark as described in claim 8, characterized in that, The data acquisition module includes: The lock key generation unit is used to generate a corresponding lock key based on the current minute-level time slot and a preset format, and to lock the device using the Redis SETNX command based on the lock key. The data acquisition unit is used to acquire multi-dimensional data related to the store's equipment if the locking is successful. The new time slot determination unit is used to determine the next minute as the new current minute-level time slot if locking fails, and jump to the step of generating the corresponding lock key based on the current minute-level time slot and the preset format until locking is successful.
10. The air conditioning adaptive energy-saving control system based on dynamic modeling of energy consumption benchmark as described in claim 8, characterized in that, The target strategy determination module includes: The energy-saving strategy elimination unit is used to eliminate enabled energy-saving strategies that do not match the current date type based on the enabled energy-saving strategy list in the multi-dimensional data, so as to obtain a list of enabled energy-saving strategies after elimination; the date type includes weekdays and holidays; The strategy list determination unit is used to determine, from the list of energy-saving strategies that have been removed and enabled, a target list of energy-saving strategies that corresponds to the filtered device; The target strategy determination unit is used to determine the target energy-saving strategy by using the target list of activated energy-saving strategies and the current outdoor temperature of the city, and by using a preset strategy matching function.