CN-121979550-A - Digital base updating method, system, electronic equipment and readable storage medium
Abstract
The method comprises the steps of setting the same current control logic in the digital base and the local controller, so that the current running state is sent to the local controller when the digital base is updated, and the local controller can continuously execute the current running state based on the same current control logic set by the local controller and the digital base so as to keep the control of the terminal equipment, thereby realizing the effect of avoiding the terminal equipment from controlling when the digital base is updated, and simultaneously, after the current control logic of the digital base is updated, the local controller is also updated, thereby ensuring the consistency of the control logic between the digital base and the local controller.
Inventors
- MOU GUIXIAN
- DIAO ZUOQING
- ZHAO SIQI
Assignees
- 珠海格力电器股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251219
Claims (10)
- 1. A digital base updating method, wherein the digital base updating method is applied to a digital base, the digital base updating method comprising: if the digital base is triggered to be updated, determining the current running state of the digital base based on the current control logic, wherein the current running state indicates a control strategy for the terminal equipment; Generating an authority switching instruction containing the current running state; The authority switching instruction is sent to a local controller, so that the local controller restores the current running state based on current control logic and the authority switching instruction to maintain control over the terminal equipment, wherein the digital base is connected with the terminal equipment through the local controller; Acquiring update data, and updating the current control logic through the update data to obtain update control logic; and sending an authority retraction instruction containing the update data to the local controller so that the local controller updates the current control logic into the update control logic according to the update data.
- 2. The digital base updating method according to claim 1, wherein the transmitting of the right retraction instruction containing the update data to the local controller includes: generating an authority retraction instruction containing the update data and an update completion identifier; and sending the permission recovery instruction to the local controller so as to stop running the current control logic according to the update completion identification, and enabling the local controller to update through the update data.
- 3. The method of claim 1, wherein said sending a rights retraction instruction containing said update data to said local controller comprises: Receiving updated period operation data returned by the local controller based on the permission retraction instruction; loading the during-update operational data based on the update control logic to resume control of the end device.
- 4. The digital base updating method of claim 1, wherein the method further comprises: if the digital base is not triggered to be updated, acquiring the operation parameters of the terminal equipment sent by the local controller; Determining a first control strategy for the end device operating parameters based on the current control logic; and sending a first control instruction to the local controller according to the first control strategy so that the local controller sends the first control instruction to the terminal equipment.
- 5. A digital base updating method, wherein the digital base updating method is applied to a local controller, and the digital base updating method comprises the following steps: Receiving an authority switching instruction sent by a digital base, wherein the authority switching instruction comprises a current running state of the digital base based on current control logic, and the current running state indicates a control strategy for terminal equipment; Restoring the current running state based on current control logic and the permission switching instruction to maintain control of the end device; And receiving an authority retraction instruction sent by the digital base, and updating the current control logic into an update control logic through update data in the authority retraction instruction, wherein the digital base updates the current control logic through the update data to obtain the update control logic.
- 6. The method of claim 5, wherein the receiving the permission retraction command sent by the digital base and updating the current control logic to update control logic via update data in the permission retraction command comprises: acquiring updated period operation data generated by controlling the terminal equipment; and sending the updated operation data to the digital base.
- 7. The digital base updating method of claim 5, wherein the method further comprises: acquiring end equipment operation parameters of the end equipment, and sending the end equipment operation parameters to the digital base; Determining a second control strategy of the operation parameters of the terminal equipment based on the current control logic, and determining a second control instruction corresponding to the control strategy; And receiving a first control instruction sent by the digital base, and sending the first control instruction to the terminal equipment.
- 8. The digital base updating system is characterized by comprising a digital base and a local controller; the digital base includes: The first determining module is used for determining the current running state of the digital base based on the current control logic if the digital base is triggered to update, wherein the current running state indicates the control strategy of the terminal equipment; The first generation module is used for generating an authority switching instruction containing the current running state; The first sending module is used for sending the permission switching instruction to a local controller so that the local controller restores the current running state based on current control logic and the permission switching instruction to maintain control over the terminal equipment, wherein the digital base is connected with the terminal equipment through the local controller; the first acquisition module is used for acquiring update data and updating the current control logic through the update data to obtain update control logic; The second sending module is used for sending an authority retraction instruction containing the update data to the local controller so that the local controller updates the current control logic into the update control logic according to the update data; the body controller includes: The first receiving module is used for receiving an authority switching instruction sent by the digital base, wherein the authority switching instruction comprises a current running state of the digital base based on current control logic, and the current running state indicates a control strategy for terminal equipment; the first restoring module is used for restoring the current running state based on current control logic and the permission switching instruction so as to maintain control over the terminal equipment; The second receiving module is used for receiving the right recovery instruction sent by the digital base and updating the current control logic into the update control logic through update data in the right recovery instruction, wherein the digital base updates the current control logic through the update data to obtain the update control logic.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the digital base updating method of any of claims 1 to 7.
- 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the digital base updating method according to any of claims 1 to 7.
Description
Digital base updating method, system, electronic equipment and readable storage medium Technical Field The present invention relates to the field of internet of things, and in particular, to a method and system for updating a digital base, an electronic device, and a readable storage medium. Background With the in-depth application of IoT (Internet of Things ) and cloud computing technologies in BAS (Building Automation System ), traditional in-situ distributed control architecture is gradually evolving towards a centralized management and control mode. In this mode, the digital chassis serves as a central management platform, carrying most of the complex control logic, data collection, analysis and optimization tasks. The local controllers or gateways on site are mainly responsible for data acquisition and instruction forwarding. The architecture realizes remote efficient operation and global energy efficiency optimization, and is a development trend of future intelligent buildings. However, due to the centralized nature of the control of the digital base, the digital base needs to suspend the operation of the control logic when updated or maintained, thereby causing the end device controlled by the digital base to lose command control, resulting in a controlled terminal. Disclosure of Invention The invention mainly aims to provide a digital base updating method, a digital base updating system, electronic equipment and a readable storage medium, and aims to solve the problem that in the prior art, control interruption of terminal equipment is caused by digital base updating. In order to achieve the above object, the present invention provides a digital base updating method, which is applied to a digital base, and includes: if the digital base is triggered to be updated, determining the current running state of the digital base based on the current control logic, wherein the current running state indicates a control strategy for the terminal equipment; Generating an authority switching instruction containing the current running state; The authority switching instruction is sent to a local controller, so that the local controller restores the current running state based on current control logic and the authority switching instruction to maintain control over the terminal equipment, wherein the digital base is connected with the terminal equipment through the local controller; Acquiring update data, and updating the current control logic through the update data to obtain update control logic; and sending an authority retraction instruction containing the update data to the local controller so that the local controller updates the current control logic into the update control logic according to the update data. Optionally, the sending the permission retraction instruction including the update data to the local controller includes: generating an authority retraction instruction containing the update data and an update completion identifier; and sending the permission recovery instruction to the local controller so as to stop running the current control logic according to the update completion identification, and enabling the local controller to update through the update data. Optionally, the sending the right retraction instruction containing the update data to the local controller includes: Receiving updated period operation data returned by the local controller based on the permission retraction instruction; loading the during-update operational data based on the update control logic to resume control of the end device. Optionally, the method further comprises: if the digital base is not triggered to be updated, acquiring the operation parameters of the terminal equipment sent by the local controller; Determining a first control strategy for the end device operating parameters based on the current control logic; and sending a first control instruction to the local controller according to the first control strategy so that the local controller sends the first control instruction to the terminal equipment. In order to achieve the above object, the present invention further provides a digital base updating method, which is applied to a local controller, and the digital base updating method includes: Receiving an authority switching instruction sent by a digital base, wherein the authority switching instruction comprises a current running state of the digital base based on current control logic, and the current running state indicates a control strategy for terminal equipment; Restoring the current running state based on current control logic and the permission switching instruction to maintain control of the end device; And receiving an authority retraction instruction sent by the digital base, and updating the current control logic into an update control logic through update data in the authority retraction instruction, wherein the digital base updates the current control logic through the update data to obtain