Air conditioner parameter processing method, device and equipment, storage medium and air conditioner
By monitoring the status of air conditioning parameters and obtaining parameters from the backup space when abnormal, the problem of complex backup and high error rate in the existing technology is solved, and fast and accurate parameter recovery is achieved.
Patent Information
- Application Number
- CN202311127810.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2043-09-01
AI Technical Summary
In the prior art, the backup and recovery of air conditioning parameters is relatively complex, with a high error rate, making it difficult to quickly recover when parameters are abnormal.
By monitoring the status of the air conditioner parameters, obtaining the backup parameters from the preset backup space in an abnormal state and storing them to the corresponding storage space, thereby realizing the recovery of parameters.
It improves the efficiency of backup and recovery of air conditioning parameters, reduces the error rate, and can quickly and accurately recover when parameters are abnormal.
Smart Images

Figure CN119554736A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioning, and in particular to an air conditioning parameter processing method, device, equipment, storage medium and air conditioning. Background Art
[0002] Air conditioning has become an important smart home in our lives, so the relevant parameters of air conditioning are also particularly important. Take air conditioning as an example of central air conditioning. For example, central air conditioning is used in shopping malls, subways, airports, hospitals, factories, data centers and other places. It is used for a long time in a year, and its working environment is relatively harsh, and the service life of electronic products is relatively shortened. For a single unit, the operating parameters and some data records of the product are very important. For example, once there is a problem with the controller of the air conditioner, after replacing the abnormal controller, it is necessary to reset the relevant parameters (such as setting communication parameters and compressor running time for multiple unit joint control), which is easy to make mistakes.
[0003] In the related art, the setting of air-conditioning parameters requires querying data backup and manually performing comparison settings. The setting process is cumbersome and prone to errors, data is easily lost, and maintenance is relatively complex. Summary of the invention
[0004] The present invention provides an air conditioning parameter processing method, device, equipment, storage medium and air conditioner, which are used to solve the defects of the prior art that parameter backup and recovery are relatively complicated and have a high error rate, and when the air conditioning parameters are abnormal, the air conditioning backup parameters can be obtained from the backup space in time, and then the air conditioning parameters can be recovered, with high backup and recovery efficiency and low backup error rate.
[0005] In a first aspect, the present invention provides an air conditioning parameter processing method, comprising:
[0006] monitoring a first state of a first air conditioning parameter in a first storage space, and monitoring a second state of a second air conditioning parameter in a second storage space;
[0007] When the first state indicates an abnormal state, a second air-conditioning backup parameter is obtained from a preset second backup space, and when the second state indicates an abnormal state, a first air-conditioning backup parameter is obtained from a preset first backup space; wherein the second air-conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air-conditioning parameter in the first storage space, and the first air-conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air-conditioning parameter in the second storage space;
[0008] The second air conditioner backup parameter is stored in the first storage space, and the first air conditioner backup parameter is stored in the second storage space.
[0009] Preferably, according to an air conditioning parameter processing method provided by the present invention, the data stored in the second backup space is obtained by backing up and storing the data in the first storage space, including:
[0010] Get the preset parameter backup time;
[0011] Compare the parameter backup time with a preset time threshold to obtain a time comparison result;
[0012] Based on the time comparison result, the first air-conditioning parameters in the first storage space are backed up to the second backup space.
[0013] Preferably, according to an air conditioning parameter processing method provided by the present invention, the time comparison result at least includes: a first time result and a second time result;
[0014] The comparing the parameter backup time with a preset time threshold to obtain a time comparison result includes:
[0015] If the parameter backup time is greater than or equal to the time threshold, a first time result is obtained;
[0016] If the parameter backup time is less than the time threshold, a second time result is obtained.
[0017] Preferably, according to an air conditioning parameter processing method provided by the present invention, the step of backing up the first air conditioning parameter in the first storage space to the second backup space based on the time comparison result includes:
[0018] backing up the first air-conditioning parameters in the first storage space to the second backup space according to the first time result;
[0019] monitoring a change in the number of bytes of the first air-conditioning parameter in the first storage space according to the second time result;
[0020] When it is determined that the number of bytes of the first air-conditioning parameter has changed, the first air-conditioning parameter in the first storage space is backed up to the second backup space.
[0021] Preferably, according to an air conditioning parameter processing method provided by the present invention, backing up the first air conditioning parameter in the first storage space to the second backup space includes:
[0022] Obtaining a physical address pointing to the first air-conditioning parameter, and obtaining the number of bytes of the first air-conditioning parameter;
[0023] According to the number of bytes of the first air-conditioning parameter, a parameter backup space having the same size as the number of bytes is divided from the second backup space, and a backup address corresponding to the parameter backup space is acquired;
[0024] constructing a communication address between the first storage space and the second backup space;
[0025] The first air-conditioning parameter in the first storage space is backed up to the parameter backup space based on the communication address, the physical address and the backup address.
[0026] Preferably, according to an air conditioning parameter processing method provided by the present invention, the step of backing up the first air conditioning parameter in the first storage space to the parameter backup space based on the communication address, the physical address and the backup address includes:
[0027] Backing up the first air-conditioning parameters in the first storage space to the communication address for storage;
[0028] Monitoring the storage status of the storage space pointed to by the communication address;
[0029] When the storage space pointed to by the communication address indicates that data is stored, the first air-conditioning parameter is obtained from the storage space pointed to by the communication address, and the first air-conditioning parameter is stored in the parameter backup space pointed to by the backup address.
[0030] In a second aspect, the present invention further provides an air conditioning parameter processing device, comprising:
[0031] A monitoring module, configured to monitor a first state of a first air-conditioning parameter in a first storage space, and to monitor a second state of a second air-conditioning parameter in a second storage space;
[0032] an acquisition module, configured to acquire a second air-conditioning backup parameter from a preset second backup space when the first state indicates an abnormal state, and to acquire a first air-conditioning backup parameter from a preset first backup space when the second state indicates an abnormal state; wherein the second air-conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air-conditioning parameter in the first storage space, and the first air-conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air-conditioning parameter in the second storage space;
[0033] The storage module is used to store the second air conditioner backup parameter in the first storage space, and store the first air conditioner backup parameter in the second storage space.
[0034] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned air conditioning parameter processing methods are implemented.
[0035] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described air conditioning parameter processing methods.
[0036] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned air-conditioning parameter processing methods.
[0037] In a sixth aspect, the present invention further provides an air conditioner, comprising a controller, which, when executed, implements the steps of any of the above-mentioned air conditioner parameter processing methods.
[0038] The present invention provides an air conditioning parameter processing method, device, equipment, storage medium and air conditioning, which monitors the first state of the first air conditioning parameter in the first storage space and the second state of the second air conditioning parameter in the second storage space; when the first state indicates an abnormal state, the second air conditioning backup parameter is obtained from the preset second backup space, and when the second state indicates an abnormal state, the first air conditioning backup parameter is obtained from the preset first backup space; wherein the second air conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air conditioning parameter in the first storage space, and the first air conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air conditioning parameter in the second storage space; the second air conditioning backup parameter is stored in the first storage space, and the first air conditioning backup parameter is stored in the second storage space. It is used to solve the defects of the prior art that parameter backup and recovery are relatively complicated and have a high error rate, and to achieve timely acquisition of air conditioning backup parameters from the backup space when air conditioning parameters are abnormal, thereby realizing the recovery of air conditioning parameters, with high backup and recovery efficiency and low backup error rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1This is one of the flow charts of an air conditioning parameter processing method provided by the present invention;
[0041] Figure 2 This is a second flow chart of an air conditioning parameter processing method provided by the present invention;
[0042] Figure 3 It is a structural schematic diagram of an air conditioning parameter processing device provided by the present invention;
[0043] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. 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.
[0045] Combine the following Figure 1-Figure 4 The present invention describes an air conditioning parameter processing method, device, equipment, storage medium and air conditioner, which are used to solve the defects of the prior art that parameter backup and recovery are relatively complicated and have a high error rate, and to obtain the air conditioning backup parameters from the backup space in time when the air conditioning parameters are abnormal, thereby realizing the recovery of the air conditioning parameters, with high backup and recovery efficiency and low backup error rate.
[0046] like Figure 1 As shown, it is one of the implementation flow diagrams of an air-conditioning parameter processing method provided by an embodiment of the present invention. An air-conditioning parameter processing method may include but is not limited to steps S100 to S300.
[0047] S100, monitoring a first state of a first air-conditioning parameter in a first storage space, and monitoring a second state of a second air-conditioning parameter in a second storage space;
[0048] S200, when the first state indicates an abnormal state, obtaining a second air conditioner backup parameter from a preset second backup space, and when the second state indicates an abnormal state, obtaining a first air conditioner backup parameter from a preset first backup space; wherein the second air conditioner backup parameter stored in the second backup space is obtained by backing up and storing the first air conditioner parameter in the first storage space, and the first air conditioner backup parameter stored in the first backup space is obtained by backing up and storing the second air conditioner parameter in the second storage space;
[0049] S300: storing the second air conditioner backup parameter in the first storage space, and storing the first air conditioner backup parameter in the second storage space.
[0050] It should be noted that the execution subject of the air-conditioning parameter processing method of the embodiment of the present invention may be a hardware device with data information processing capabilities and / or the necessary software required to drive the hardware device to work.
[0051] Optionally, the execution subject may include but is not limited to workstations, servers, computers, user terminals and other intelligent devices. Among them, user terminals include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc.
[0052] In step S100 of some embodiments, a first state of a first air-conditioning parameter in a first storage space is monitored, and a second state of a second air-conditioning parameter in a second storage space is monitored.
[0053] First of all, it should be noted that the first storage space can be a parameter setting storage area on the touch screen, and the second storage space can be a parameter setting storage area on the controller. Of course, the parameter setting storage areas corresponding to the first storage space and the second storage space can be interchangeable according to actual conditions, and no specific limitation is made here.
[0054] Then, taking the first storage space as the parameter setting storage area on the touch screen and the second storage space as the parameter setting storage area on the controller as an example, the first air-conditioning parameter stored in the first storage space is the air-conditioning parameter set on the touch screen, and the second air-conditioning parameter stored in the second storage space is the air-conditioning parameter set on the controller.
[0055] It should be noted that air conditioning parameters can be divided into unit user parameters and unit model parameters. Unit user parameters: such as target temperature, user password, compressor start times, compressor running time, etc.
[0056] Unit model parameters: refrigerant model, target superheat, exhaust temperature and pressure protection values, PID of electronic expansion valve opening control and other related parameters.
[0057] Let the first storage space be TS and the second storage space be CS.
[0058] In step S200 of some embodiments, when the first state indicates an abnormal state, the second air conditioner backup parameters are obtained from a preset second backup space, and when the second state indicates an abnormal state, the first air conditioner backup parameters are obtained from a preset first backup space.
[0059] It should be noted that the second air conditioning backup parameters stored in the second backup space are obtained by backing up and storing the first air conditioning parameters in the first storage space, and the first air conditioning backup parameters stored in the first backup space are obtained by backing up and storing the second air conditioning parameters in the second storage space.
[0060] The second backup space refers to a storage area for backing up controller parameters on the storage space of the touch screen, and the first backup space refers to a storage area for backing up touch screen parameters on the storage space of the controller.
[0061] Let the second backup space be TB and the first backup space be CB.
[0062] It is understandable that when it is monitored that the first state indicates an abnormal state, the second air conditioning backup parameters are obtained from the preset second backup space, and when the second state indicates an abnormal state, the first air conditioning backup parameters are obtained from the preset first backup space.
[0063] In step S300 of some embodiments, the second air conditioner backup parameter is stored in the first storage space, and the first air conditioner backup parameter is stored in the second storage space.
[0064] It can be understood that after executing step S200, the specific execution steps may be: storing the second air conditioner backup parameters obtained from the second backup space in the first storage space, and storing the first air conditioner backup parameters obtained from the first backup space in the second storage space, that is, when the data stored in the first storage space / second storage space is abnormal, the corresponding air conditioner backup parameter data can be quickly obtained from the backup space, thereby restoring the air conditioner parameter data.
[0065] The first backup space is stored in the memory corresponding to the touch screen, and the second backup space is stored in the memory corresponding to the controller. The first storage space is the parameter setting storage area on the touch screen, and the second storage space is the parameter setting storage area on the controller.
[0066] In some embodiments of the present invention, the data stored in the second backup space is obtained by backing up and storing the data in the first storage space, and includes:
[0067] Get the preset parameter backup time;
[0068] Compare the parameter backup time with a preset time threshold to obtain a time comparison result;
[0069] Based on the time comparison result, the first air-conditioning parameters in the first storage space are backed up to the second backup space.
[0070] It is understandable that a preset parameter backup time is obtained, such as backing up once every 2 minutes, and the parameter backup time is compared with a preset time threshold. If the parameter backup time is greater than or equal to the time threshold, a first time result is obtained.
[0071] If the parameter backup time is less than the time threshold, a second time result is obtained.
[0072] It should be noted that the time comparison result at least includes: a first time result and a second time result.
[0073] According to a first time result that the parameter backup time is greater than or equal to the time threshold, the first air-conditioning parameter in the first storage space is directly backed up to the second backup space.
[0074] According to the second time result that the parameter backup time is less than the time threshold, the change of the number of bytes of the first air-conditioning parameter in the first storage space is monitored, and when it is determined that the number of bytes of the first air-conditioning parameter has changed, the first air-conditioning parameter in the first storage space is backed up to the second backup space.
[0075] That is, when the fixed backup time has not been reached, if it is monitored that the number of bytes of the first air-conditioning parameter has changed, whether the number of bytes increases or decreases, it is considered that the first air-conditioning parameter has changed, and then a backup is performed immediately, and the first air-conditioning parameter in the first storage space is backed up to the second backup space.
[0076] In some embodiments of the present invention, the step of backing up the first air-conditioning parameter in the first storage space to the second backup space may specifically be: firstly, obtaining a physical address D1 pointing to the first air-conditioning parameter and obtaining the number of bytes of the first air-conditioning parameter. Then, according to the number of bytes of the first air-conditioning parameter, dividing a parameter backup space of the same size as the number of bytes from the second backup space, and obtaining a backup address D2 corresponding to the parameter backup space.
[0077] A communication address D3 is constructed between the first storage space and the second backup space, and based on the communication address, the physical address and the backup address, the first air-conditioning parameter in the first storage space is backed up to the parameter backup space.
[0078] Furthermore, the first air-conditioning parameters in the first storage space are backed up to the communication address D3 for storage.
[0079] Monitor the storage status of the storage space pointed to by the communication address. When the storage space pointed to by the communication address indicates that there is data stored, obtain the first air-conditioning parameter from the storage space pointed to by the communication address D3, and store the first air-conditioning parameter in the parameter backup space pointed to by the backup address D2, thereby efficiently realizing the backup of air-conditioning parameter data.
[0080] Then the first air-conditioning backup parameters stored in the first backup space are obtained by backing up and storing the second air-conditioning parameters in the second storage space, and the execution steps are the same as that of the second air-conditioning backup parameters stored in the second backup space being obtained by backing up and storing the first air-conditioning parameters in the first storage space, which will not be repeated here.
[0081] Figure 2 This is the second flow chart of an air conditioning parameter processing method provided by the present invention. TS to CB is to back up the first air conditioning parameter of the parameter setting storage area TS on the touch screen to the storage corresponding to the controller. CS to TB is to back up the second air conditioning parameter of the parameter setting storage area CS on the controller to the storage on the touch screen. In this way, if the data stored in TS is abnormal, it can be restored from CB. If the data in CS is abnormal, it can be restored from TB.
[0082] In some embodiments of the present invention, the compressor running time. In the centralized control of multiple units, if the running time of a compressor is not backed up, after the controller is replaced, the default running time of the controller is zero. In the subsequent operation, according to the principle of time operation balance, the compressor with the replaced controller will be given priority, and the actual running time will be longer, especially if the controller breaks down after running for many years, it is easier to make this compressor run. After the backup operation, at regular intervals (set to about one hour or a shorter time according to the situation), the controller updates and backs up the running time on the touch screen. At this time, if the controller is damaged, after replacing the new controller, the actual running time of the backup record on the touch screen can be updated to the new controller and accumulated on the original running time. If the controller is damaged, this running time can be immediately changed to the controller parameter storage area of the touch screen.
[0083] For the storage area on the controller, a storage space can be opened in advance, such as the storage area of the 16K EEPROM of the microcontroller, and the physical address 2FFFH-3FFFH can be specified as the storage area. (Store the current alarm upper limit value, suction superheat target value, etc.). Generally, the value of the controller storage area is mapped to the same logical address (such as MODBUS address) and the separate storage opened on the touch screen (the specification method is similar to the microcontroller). The connection is established through the same communication address of the communication.
[0084] For example, the address 3AAAH stored on the microcontroller contains the current alarm upper limit value 260 (indicating a current alarm at 260A), and 40030 is specified as its MODBUS communication address. When the power is turned on for the first time, when the touch screen is selected to be stored, the pre-written logic is triggered, and the value 260 is stored in the local storage space of the touch screen by querying the address 40030 (such as RW200, because it is a secondary development, the local storage address named by each manufacturer is different), so that the parameters on the microcontroller controller are stored. After completion, it is determined whether the value of RW200 is the same as that of 40030. If they are the same, a completion prompt is issued. This logic is that the touch screen reads the storage address from the microcontroller, and the touch screen storage is expressed as a write value. Other storage logics from the touch screen to the microcontroller are similar. This makes the later equipment maintenance faster, more convenient, and less prone to errors.
[0085] The present invention provides an air conditioning parameter processing method, device, equipment, storage medium and air conditioning, which monitors the first state of the first air conditioning parameter in the first storage space and the second state of the second air conditioning parameter in the second storage space; when the first state indicates an abnormal state, the second air conditioning backup parameter is obtained from the preset second backup space, and when the second state indicates an abnormal state, the first air conditioning backup parameter is obtained from the preset first backup space; wherein the second air conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air conditioning parameter in the first storage space, and the first air conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air conditioning parameter in the second storage space; the second air conditioning backup parameter is stored in the first storage space, and the first air conditioning backup parameter is stored in the second storage space. It is used to solve the defects of the prior art that parameter backup and recovery are relatively complicated and have a high error rate, and to achieve timely acquisition of air conditioning backup parameters from the backup space when air conditioning parameters are abnormal, thereby realizing the recovery of air conditioning parameters, with high backup and recovery efficiency and low backup error rate.
[0086] An air-conditioning parameter processing device provided by the present invention is described below. The air-conditioning parameter processing device described below and the air-conditioning parameter processing method described above can be referred to each other.
[0087] Figure 3 1 is a structural diagram of an air conditioning parameter processing device provided by the present invention, an air conditioning parameter processing device comprising:
[0088] A monitoring module 310, configured to monitor a first state of a first air conditioning parameter in a first storage space, and to monitor a second state of a second air conditioning parameter in a second storage space;
[0089] The acquisition module 320 is used to acquire the second air conditioner backup parameter from the preset second backup space when the first state indicates an abnormal state, and to acquire the first air conditioner backup parameter from the preset first backup space when the second state indicates an abnormal state; wherein the second air conditioner backup parameter stored in the second backup space is obtained by backing up and storing the first air conditioner parameter in the first storage space, and the first air conditioner backup parameter stored in the first backup space is obtained by backing up and storing the second air conditioner parameter in the second storage space;
[0090] The storage module 330 is configured to store the second air conditioner backup parameter in the first storage space, and store the first air conditioner backup parameter in the second storage space.
[0091] Preferably, according to an air conditioning parameter processing device provided by the present invention, the data stored in the second backup space is obtained by backing up and storing the data in the first storage space, and the step is specifically used to obtain a preset parameter backup time;
[0092] Compare the parameter backup time with a preset time threshold to obtain a time comparison result;
[0093] Based on the time comparison result, the first air-conditioning parameters in the first storage space are backed up to the second backup space.
[0094] Preferably, according to an air conditioning parameter processing device provided by the present invention, the time comparison result at least includes: a first time result and a second time result;
[0095] The step of comparing the parameter backup time with a preset time threshold to obtain a time comparison result is specifically used to obtain a first time result if the parameter backup time is greater than or equal to the time threshold;
[0096] If the parameter backup time is less than the time threshold, a second time result is obtained.
[0097] Preferably, according to an air conditioning parameter processing device provided by the present invention, the step of backing up the first air conditioning parameters in the first storage space to the second backup space based on the time comparison result is specifically used to back up the first air conditioning parameters in the first storage space to the second backup space according to the first time result;
[0098] monitoring a change in the number of bytes of the first air-conditioning parameter in the first storage space according to the second time result;
[0099] When it is determined that the number of bytes of the first air-conditioning parameter has changed, the first air-conditioning parameter in the first storage space is backed up to the second backup space.
[0100] Preferably, according to an air conditioning parameter processing device provided by the present invention, the step of backing up the first air conditioning parameter in the first storage space to the second backup space is specifically used to obtain a physical address pointing to the first air conditioning parameter, and to obtain the number of bytes of the first air conditioning parameter;
[0101] According to the number of bytes of the first air-conditioning parameter, a parameter backup space having the same size as the number of bytes is divided from the second backup space, and a backup address corresponding to the parameter backup space is acquired;
[0102] constructing a communication address between the first storage space and the second backup space;
[0103] The first air-conditioning parameter in the first storage space is backed up to the parameter backup space based on the communication address, the physical address and the backup address.
[0104] Preferably, according to an air conditioning parameter processing device provided by the present invention, the step of backing up the first air conditioning parameter in the first storage space to the parameter backup space based on the communication address, the physical address and the backup address is specifically used to back up the first air conditioning parameter in the first storage space to the communication address for storage;
[0105] Monitoring the storage status of the storage space pointed to by the communication address;
[0106] When the storage space pointed to by the communication address indicates that data is stored, the first air-conditioning parameter is obtained from the storage space pointed to by the communication address, and the first air-conditioning parameter is stored in the parameter backup space pointed to by the backup address.
[0107] The present invention provides an air conditioning parameter processing method, device, equipment, storage medium and air conditioning, which monitors the first state of the first air conditioning parameter in the first storage space and the second state of the second air conditioning parameter in the second storage space; when the first state indicates an abnormal state, the second air conditioning backup parameter is obtained from the preset second backup space, and when the second state indicates an abnormal state, the first air conditioning backup parameter is obtained from the preset first backup space; wherein the second air conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air conditioning parameter in the first storage space, and the first air conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air conditioning parameter in the second storage space; the second air conditioning backup parameter is stored in the first storage space, and the first air conditioning backup parameter is stored in the second storage space. It is used to solve the defects of the prior art that parameter backup and recovery are relatively complicated and have a high error rate, and to achieve timely acquisition of air conditioning backup parameters from the backup space when air conditioning parameters are abnormal, thereby realizing the recovery of air conditioning parameters, with high backup and recovery efficiency and low backup error rate.
[0108] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute an air conditioning parameter processing method, the method comprising: monitoring a first state of a first air conditioning parameter in a first storage space, and monitoring a second state of a second air conditioning parameter in a second storage space; when the first state indicates an abnormal state, obtaining a second air conditioning backup parameter from a preset second backup space, and when the second state indicates an abnormal state, obtaining a first air conditioning backup parameter from a preset first backup space; wherein the second air conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air conditioning parameter in the first storage space, and the first air conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air conditioning parameter in the second storage space; storing the second air conditioning backup parameter in the first storage space, and storing the first air conditioning backup parameter in the second storage space.
[0109] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product 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.) to perform all or part of the 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 (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0110] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute an air-conditioning parameter processing method provided by the above methods, the method including: monitoring a first state of a first air-conditioning parameter in a first storage space, and monitoring a second state of a second air-conditioning parameter in a second storage space; when the first state indicates an abnormal state, obtaining a second air-conditioning backup parameter from a preset second backup space, and when the second state indicates an abnormal state, obtaining a first air-conditioning backup parameter from a preset first backup space; wherein the second air-conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air-conditioning parameter in the first storage space, and the first air-conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air-conditioning parameter in the second storage space; storing the second air-conditioning backup parameter in the first storage space, and storing the first air-conditioning backup parameter in the second storage space.
[0111] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute an air-conditioning parameter processing method provided by the above-mentioned methods, the method comprising: monitoring a first state of a first air-conditioning parameter in a first storage space, and monitoring a second state of a second air-conditioning parameter in a second storage space; when the first state indicates an abnormal state, obtaining a second air-conditioning backup parameter from a preset second backup space, and when the second state indicates an abnormal state, obtaining a first air-conditioning backup parameter from a preset first backup space; wherein the second air-conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air-conditioning parameter in the first storage space, and the first air-conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air-conditioning parameter in the second storage space; storing the second air-conditioning backup parameter in the first storage space, and storing the first air-conditioning backup parameter in the second storage space.
[0112] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An air conditioning parameter processing method, characterized in that: include: monitoring a first state of a first air conditioning parameter in a first storage space, and monitoring a second state of a second air conditioning parameter in a second storage space; When the first state indicates an abnormal state, a second air-conditioning backup parameter is obtained from a preset second backup space, and when the second state indicates an abnormal state, a first air-conditioning backup parameter is obtained from a preset first backup space; wherein the second air-conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air-conditioning parameter in the first storage space, and the first air-conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air-conditioning parameter in the second storage space; The second air conditioner backup parameter is stored in the first storage space, and the first air conditioner backup parameter is stored in the second storage space.
2. The air conditioning parameter processing method according to claim 1, characterized in that: The data stored in the second backup space is obtained by backing up and storing the data in the first storage space, and includes: Get the preset parameter backup time; Compare the parameter backup time with a preset time threshold to obtain a time comparison result; Based on the time comparison result, the first air-conditioning parameters in the first storage space are backed up to the second backup space.
3. The air conditioning parameter processing method according to claim 2, characterized in that: The time comparison result includes at least: a first time result and a second time result; The comparing the parameter backup time with a preset time threshold to obtain a time comparison result includes: If the parameter backup time is greater than or equal to the time threshold, a first time result is obtained, and the first time result is used to trigger a backup mechanism to back up the first air-conditioning parameter in the first storage space to the second backup space; If the parameter backup time is less than the time threshold, a second time result is obtained, and the second time result is used to trigger a data update mechanism.
4. The air conditioning parameter processing method according to claim 3, characterized in that: The backing up the first air-conditioning parameter in the first storage space to the second backup space based on the time comparison result includes: backing up the first air-conditioning parameters in the first storage space to the second backup space according to the first time result; monitoring a change in the number of bytes of the first air-conditioning parameter in the first storage space according to the second time result; When it is determined that the number of bytes of the first air-conditioning parameter has changed, the first air-conditioning parameter in the first storage space is backed up to the second backup space.
5. The air conditioning parameter processing method according to claim 2, characterized in that: The backing up the first air-conditioning parameter in the first storage space to the second backup space includes: Obtaining a physical address pointing to the first air-conditioning parameter, and obtaining the number of bytes of the first air-conditioning parameter; According to the number of bytes of the first air-conditioning parameter, a parameter backup space having the same size as the number of bytes is divided from the second backup space, and a backup address corresponding to the parameter backup space is acquired; constructing a communication address between the first storage space and the second backup space; The first air-conditioning parameter in the first storage space is backed up to the parameter backup space based on the communication address, the physical address and the backup address.
6. The air conditioning parameter processing method according to claim 5, characterized in that: The backing up the first air-conditioning parameter in the first storage space to the parameter backup space based on the communication address, the physical address and the backup address includes: Backing up the first air-conditioning parameters in the first storage space to the communication address for storage; Monitoring the storage status of the storage space pointed to by the communication address; When the storage space pointed to by the communication address indicates that data is stored, the first air-conditioning parameter is obtained from the storage space pointed to by the communication address, and the first air-conditioning parameter is stored in the parameter backup space pointed to by the backup address.
7. An air conditioning parameter processing device, characterized in that: include: A monitoring module, configured to monitor a first state of a first air-conditioning parameter in a first storage space, and to monitor a second state of a second air-conditioning parameter in a second storage space; an acquisition module, configured to acquire a second air-conditioning backup parameter from a preset second backup space when the first state indicates an abnormal state, and to acquire a first air-conditioning backup parameter from a preset first backup space when the second state indicates an abnormal state; wherein the second air-conditioning backup parameter stored in the second backup space is obtained by backing up and storing the first air-conditioning parameter in the first storage space, and the first air-conditioning backup parameter stored in the first backup space is obtained by backing up and storing the second air-conditioning parameter in the second storage space; The storage module is used to store the second air conditioner backup parameter in the first storage space, and store the first air conditioner backup parameter in the second storage space.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the air conditioning parameter processing method according to any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the air conditioning parameter processing method according to any one of claims 1 to 6 are implemented.
10. An air conditioner, comprising a controller, characterized in that: When executed, the controller implements the steps of the air conditioning parameter processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for controlling double-machine backups of air conditioners
CN102494386A
Data caching method and device, equipment and storage medium
CN112698789A
Method for preventing unit from being incapable of working after memorizer abnormity and air conditioning system
CN113137705A
Outdoor machine, its control method, and air conditioning system
JP2004271021A
Air conditioner and method for controlling the same
KR101915993B1