Heat pump configuration data processing method and device, equipment and storage medium
By combining CRC check and multiple feature value verification in the heat pump control system, the problem of data unreliability in data transmission and storage processes is solved, and the synchronization consistency and reliability of system configuration are achieved, avoiding data confusion or internal data Operational errors caused by tampering.
Patent Information
- Application Number
- CN202410826372.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-11-01
AI Technical Summary
Due to insufficient CRC verification during data transmission and storage, the heat pump control system is prone to unreliability and control abnormalities. It is difficult to ensure the absolute reliability and security of the data simply rely on CRC verification.
When the control motherboard receives the heat pump configuration data packet sent by the external control terminal, perform CRC verification. If the verification is successful, perform multiple feature value verification, and perform multiple backup processing and storage when the feature value verification is successful. If the verification fails, the previous historical data will be read and synchronized to the external control terminal.
Through the multi-eigenvalue check-up and multiple backup mechanism, the accuracy and security of data transmission and storage are improved, and the consistency and reliability of system configuration synchronization between the control motherboard and the external control terminal are ensured, thereby avoiding data errors. Or operational errors caused by internal tampering.
Smart Images

Figure CN118890127A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of heat pump data processing, and in particular to a heat pump configuration data processing method, device, equipment and storage medium. Background Art
[0002] With the popularization of heat pump units, the reliability of heat pump control systems has become particularly important. Cyclic Redundancy Check (CRC) is usually used for error checking in the communication between the control motherboard running the heat pump control program and the external control terminal (such as the human-computer interaction panel).
[0003] However, when data is garbled during transmission between the control mainboard and the external control terminal, although the CRC itself is affected, the result may just pass the verification check, resulting in unreliable data; even if the CRC check is passed, the control mainboard needs to be configured according to the corresponding compressor type, fan type and other configuration parameters to implement the corresponding control logic. The control mainboard may be tampered with due to interference, resulting in control anomalies when the heat pump is powered on again. Therefore, relying solely on CRC verification is difficult to ensure the absolute reliability and security of data, and it is easy to cause errors in the operation of the heat pump unit. Summary of the invention
[0004] The present invention provides a heat pump configuration data processing method, device, equipment and storage medium, which are used to solve the problem that traditional heat pump data processing technology is difficult to ensure data transmission, storage accuracy and security.
[0005] A first aspect of the present invention provides a method for processing heat pump configuration data, comprising: when a control mainboard receives a heat pump configuration data packet sent by an external control terminal, performing a CRC check on the heat pump configuration data packet to obtain a CRC check result; if the CRC check result is a successful check, performing multiple characteristic value checks on the heat pump configuration data packet to obtain a characteristic value check result; if the characteristic value check result is a successful check, performing multiple backup processing on the first heat pump configuration data in the heat pump configuration data packet and storing it in a preset plurality of storage addresses; if the characteristic value check result is a failed check, reading the previous historical heat pump configuration data and synchronizing it to the external control terminal.
[0006] The second aspect of the present invention provides a heat pump configuration data processing device, including: a CRC check module, which is used to perform a CRC check on the heat pump configuration data packet when the control mainboard receives the heat pump configuration data packet sent by the external control terminal to obtain a CRC check result; a characteristic value check module, which is used to perform multiple characteristic value checks on the heat pump configuration data packet to obtain a characteristic value check result if the CRC check result is a successful check; a storage module, which is used to perform multiple backup processing on the first heat pump configuration data in the heat pump configuration data packet and store it to multiple preset storage addresses if the characteristic value check result is a successful check; a synchronization module, which is used to read the previous historical heat pump configuration data and synchronize it to the external control terminal if the characteristic value check result is a failed check. The third aspect of the present invention provides a heat pump configuration data processing device, including: a memory and at least one processor, the memory storing instructions; the at least one processor calls the instructions in the memory so that the heat pump configuration data processing device executes the above-mentioned heat pump configuration data processing method.
[0007] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned heat pump configuration data processing method.
[0008] In the technical solution provided by the present invention, on the basis of CRC verification, multiple eigenvalue verification is further used to ensure the accuracy and security of data storage and data storage in the heat pump control system, realize the effective identification of abnormal data, ensure the consistency and reliability of system configuration synchronization between the control main board and the external control terminal, and avoid operational errors caused by data confusion or internal tampering. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A schematic diagram of an embodiment of a method for processing heat pump configuration data in an embodiment of the present invention;
[0010] Figure 2 A schematic diagram of another embodiment of a method for processing heat pump configuration data in an embodiment of the present invention;
[0011] Figure 3 A schematic diagram of an embodiment of a heat pump configuration data processing device in an embodiment of the present invention;
[0012] Figure 4 A schematic diagram of another embodiment of a heat pump configuration data processing device in an embodiment of the present invention;
[0013] Figure 5 It is a schematic diagram of an embodiment of a heat pump configuration data processing device in an embodiment of the present invention. DETAILED DESCRIPTION
[0014] The present invention provides a heat pump configuration data processing method, device, equipment and storage medium, which are used to solve the problem that the heat pump configuration data transmission and storage process may cause heat pump unit operation errors due to interference or internal tampering.
[0015] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0016] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the heat pump configuration data processing method in the embodiment of the present invention includes:
[0017] 101. When the control mainboard receives a heat pump configuration data packet sent by an external control terminal, a CRC check is performed on the heat pump configuration data packet to obtain a CRC check result.
[0018] It is understandable that the execution subject of the present invention may be a heat pump configuration data processing device, or a heat pump control system, a heat pump unit, or other terminal or server, which is not limited here. The embodiment of the present invention is described by taking the heat pump control system as the execution subject.
[0019] The heat pump control system of this embodiment includes a control mainboard inside the heat pump unit, and an external control terminal for the user to set the heat pump unit, for example, a human-computer interaction panel. RS485 communication is adopted between the control mainboard and the human-computer interaction panel. The user sets the heat pump system configuration on the external control terminal to obtain initial heat pump configuration data, for example, setting heat pump operating modes such as cooling mode, heating mode, and automatic mode, and setting heat pump target temperatures such as target cooling temperature and target heating temperature.
[0020] The external control terminal performs CRC checksum calculation on the setting configuration selected by the user and other configuration information, and generates a heat pump configuration data packet and sends it to the control main board, wherein the other configuration information includes default configuration parameters that are not set by the user, and / or the previous historical heat pump configuration data that has not been modified by the user. For example, the current user is running the heating mode, which changes the target heating temperature from 30°C to 28°C. The default configuration parameters include the compressor type ABC, and the previous historical heat pump configuration data that has not been modified by the user includes the corresponding target cooling temperature when the cooling mode was last run. The above data are all calculated with CRC checksums and packaged and sent to the control main board to achieve synchronization of the control main board with the external control terminal, ensure that the data displayed on the human-computer interaction panel is consistent with the actually stored data, ensure user operation safety, and avoid misoperation due to external control terminals, such as display errors on the human-computer interaction panel.
[0021] When the control mainboard receives the heat pump configuration data packet, it calculates the CRC check code of the data in the heat pump configuration data packet and compares it with the CRC check code in the heat pump configuration data packet. If they are consistent, the CRC check succeeds; if they are inconsistent, the CRC check fails.
[0022] 102. If the CRC check result is successful, multiple characteristic value checks are performed on the heat pump configuration data packet to obtain a characteristic value check result.
[0023] The multiple characteristic value checks implemented in this embodiment are used to indicate multiple characteristic value checks on the heat pump configuration data packet. The characteristic value check is to verify the validity and integrity of the parameter value corresponding to each field in the heat pump configuration data packet to avoid the control mainboard executing the heat pump control program according to abnormal parameters and storing abnormal data, which leads to the current heat pump unit operating errors and the unit restarting and powering on. It is often necessary to restore the last system configuration to restore the operating status. If the stored abnormal data is read, the heat pump unit will not be able to start and run normally.
[0024] Specifically, when any characteristic value verification fails, the characteristic verification result is determined to be a verification failure; when each characteristic value verification succeeds, the characteristic verification result is determined to be a verification success.
[0025] The target parameter characteristic value is used to indicate the characteristic value range corresponding to each parameter, which is used to define the normal working range of each parameter. For example, the range value of temperature, frequency, mode, valve opening, etc. For example, the temperature characteristic value may include a heating temperature range and a cooling temperature range, and the temperature characteristic value verification includes: extracting the parameter value corresponding to each temperature field position in the heat pump configuration data packet to obtain the target heating temperature and the target cooling temperature; if the target heating temperature is within the heating temperature range, and the target cooling temperature is within the cooling temperature range, the temperature characteristic value verification is successful.
[0026] This embodiment can perform characteristic value verification according to a preset cyclic verification period or before the start of each working node. The above-mentioned working nodes are used to instruct the control mainboard to operate the heat pump configuration data packet, such as the data packet interpretation node, which triggers the characteristic value verification before the parameter value in the data packet is assigned to the internal system configuration; the data storage node, which triggers the characteristic value verification before the system configuration data is stored in the internal memory, which may be triggered by a preset parameter storage period or when the heat pump unit receives a shutdown command; the configuration update node, that is, the control mainboard and its heat pump control program may update the system configuration parameters according to the current operating conditions, such as modifying the target setting temperature according to the ambient temperature, etc., before the configuration update, the characteristic value verification is triggered.
[0027] To ensure that the control mainboard can read valid and complete heat pump parameters when executing corresponding control according to the heat pump configuration data packet, and to ensure the timeliness and data consistency of data synchronization of system configuration data between the control mainboard and the external control terminal, the number of characteristic value checks in this embodiment can be two, three or other values, and this embodiment does not make specific restrictions.
[0028] 103. If the result of the characteristic value verification is successful, multiple backup processing is performed on the first heat pump configuration data in the heat pump configuration data packet, and the data is stored in a plurality of preset storage addresses.
[0029] In this embodiment, the control board may include multiple memories or be divided into multiple storage areas to achieve isolation of data storage, which may include two storage addresses, three storage addresses, and multiple storage addresses, that is, the first heat pump configuration data may retain one copy or two or more copies as required, so that when data abnormality or loss occurs in any memory or storage area, the heat pump configuration data of other memories or storage areas can be retrieved for use, which can improve data reliability and security.
[0030] Optionally, if the characteristic value check result is successful, CRC calculation is performed on the first heat pump configuration data to obtain a CRC check code corresponding to the first heat pump configuration data; and multiple backup data are generated according to the first heat pump configuration data and its corresponding CRC check code and stored in multiple storage addresses respectively.
[0031] Optionally, if the characteristic value check result is a successful check, the parameter type corresponding to each heat pump parameter in the first heat pump configuration data is classified to obtain multiple heat pump parameters corresponding to each parameter type, and CRC calculation is performed on the multiple heat pump parameters corresponding to each parameter type to obtain a heat pump parameter CRC check code corresponding to each parameter type; multiple backup data are generated according to the multiple heat pump parameters corresponding to each parameter type and their corresponding heat pump parameter CRC check codes and stored in multiple storage addresses respectively.
[0032] 104. If the characteristic value verification result is a verification failure, the previous historical heat pump configuration data is read and synchronized to the external control terminal.
[0033] Specifically, when the eigenvalue verification corresponding to the data packet interpretation node fails, the data packet is determined to be invalid, the heat pump configuration data packet is discarded, no configuration update is performed, and the previous historical heat pump configuration data that has passed the verification is read and pushed back to the external control terminal to ensure that the data displayed by the external control terminal is consistent with the actual stored data to avoid misoperation; when the eigenvalue verification corresponding to the data storage node fails, the heat pump configuration data packet is discarded and no data storage is performed.
[0034] Optionally, when the eigenvalue check corresponding to the data packet interpretation node fails, the target parameter type corresponding to the eigenvalue check failure is determined; if the target parameter type is a non-critical parameter, the target system configuration is assigned according to the critical parameter to obtain an updated first heat pump configuration data, and the first heat pump configuration data is used to control the operation of the heat pump unit; if the target parameter type is a critical parameter, wait for the external control terminal to send the next data packet, and perform CRC check and eigenvalue check. In this embodiment, when the control panel and the external control terminal communicate configuration data, their data frames include complete system configuration data, wherein non-critical parameters are used to indicate configuration parameters that do not affect the current operating requirements of the heat pump unit, and critical parameters indicate configuration parameters related to the current operation of the heat pump unit. For example, when the user modifies the target heating temperature through the external control terminal and sends it to the control panel for system configuration update, the operating mode parameters and target heating temperature are critical parameters, and the validity and integrity of their data directly affect the operation of the heat pump unit, while configuration parameters such as the target cooling temperature and refrigerant type are non-critical parameters. When the characteristic value check fails, this embodiment further processes according to the target parameter type, thereby avoiding discarding the entire data packet due to non-critical parameter abnormalities and reducing the configuration data update efficiency.
[0035] In the technical solution provided by the present invention, on the basis of CRC verification, multiple eigenvalue verification is further used to ensure the accuracy and security of data storage and data storage in the heat pump control system, realize the effective identification of abnormal data, ensure the consistency and reliability of system configuration synchronization between the control main board and the external control terminal, and avoid operational errors caused by data confusion or internal tampering.
[0036] See also Figure 2 Another embodiment of the heat pump configuration data processing method in the embodiment of the present invention includes:
[0037] 201. When the control mainboard receives a heat pump configuration data packet sent by an external control terminal, a CRC check is performed on the heat pump configuration data packet to obtain a CRC check result.
[0038] 202. If the CRC check result is successful, multiple characteristic value checks are performed on the heat pump configuration data packet to obtain characteristic value check results.
[0039] Since data may still be affected by external electromagnetic interference during transmission within the system from the time the data packet is interpreted to the time the data is stored, causing data changes, internal circuit failures or software errors in the system may cause the data to be accidentally changed or tampered with. Therefore, it is very important to ensure the validity and integrity of the data before receiving the heat pump configuration data packet to update the system configuration and when storing the data.
[0040] Specifically, if the CRC check result is a successful check, a characteristic value check is performed on the heat pump configuration data packet to obtain a first check result; if the first check result is a successful check, the parameter value corresponding to each field in the heat pump configuration data packet is assigned to the system configuration in the control mainboard to obtain an updated first heat pump configuration data, and the first heat pump configuration data is used to control the operation of the heat pump unit; a characteristic value check is performed on the first heat pump configuration data to obtain a second check result; if the second check result is a successful check, it is determined that the characteristic value check is successful, otherwise it is determined that the characteristic value check fails, that is, the first check result and / or the second check result is a check failure.
[0041] Optionally, if the CRC check result is a successful check, a characteristic value check is performed on the heat pump configuration data packet to obtain a first check result, including: if the CRC check result is a successful check, the parameter value corresponding to each field in the heat pump configuration data packet is compared with the characteristic value range preset for each field, and the characteristic value range is used to indicate the allowable interval of the heat pump configuration parameter corresponding to each heat pump configuration parameter; when the parameter value corresponding to each field is within the characteristic value range preset for each field, it is determined that the first characteristic value check is successful; when the parameter value corresponding to any field is not within the characteristic value range, it is determined that the first characteristic value check fails. This embodiment improves the reliability of system configuration parameters by performing characteristic value check on each parameter in the heat pump configuration data packet.
[0042] In this embodiment, the heat pump configuration data packet is a data frame, which consists of multiple fields. Each field corresponds to a parameter address, that is, a field position. For example, the parameter value corresponding to the field position 1000 is the operating mode parameter, and the parameter value corresponding to the field position 1001 is the maximum heating operating frequency. The control motherboard can read the corresponding parameter value according to the field position. Each field position corresponds to a characteristic value range used to indicate the allowable value range of the parameter value at that position.
[0043] Optionally, if the CRC check result is a successful check, a characteristic value check is performed on the heat pump configuration data packet, and obtaining a first check result includes: if the CRC check result is a successful check, the parameter value corresponding to the operation mode field position in the heat pump configuration data packet is matched with a preset operation mode identifier, and if the target operation mode is matched, the target temperature field position is determined according to the target operation mode to obtain the target parameter value; if the target parameter value is within the target characteristic value range, the check is successful. This embodiment performs a characteristic value check once by associating the relationship between the parameter field positions.
[0044] 203. If the result of the characteristic value verification is that the verification is successful, multiple backup processing is performed on the first heat pump configuration data in the heat pump configuration data packet, and the data is stored in a plurality of preset storage addresses.
[0045] Specifically, if the second verification result is a successful verification, that is, the characteristic value verification triggered by the data storage node is successful, the first heat pump configuration data and its CRC verification code are stored in the primary storage address, and the corresponding first copy is stored in the secondary storage address, and the corresponding second copy is stored in the backup storage address. This embodiment can ensure the security of configuration data storage through multiple storage solutions.
[0046] In a feasible implementation, if the result of the characteristic value verification is successful, multiple backup processing is performed on the first heat pump configuration data in the heat pump configuration data packet, and after it is stored in multiple preset storage addresses, it also includes: cyclic detection to determine whether the first heat pump configuration data has been changed; if any heat pump configuration parameter in the first heat pump configuration data changes, data synchronization is performed on each storage address. In this embodiment, after the first heat pump configuration data is stored, if the heat pump unit is in operation, the heat pump configuration data may be automatically adjusted during its operation. In this embodiment, data synchronization is performed through cyclic detection to ensure the timeliness of data update and the accuracy of stored data.
[0047] In a feasible implementation, if the second verification result is successful, the current target system configuration is backed up multiple times and stored in a preset plurality of storage addresses, and further includes: performing data verification on the plurality of storage addresses according to a preset verification cycle to ensure data consistency and avoid voltage fluctuations that may cause instability in the data in the memory.
[0048] 204. If the characteristic value verification result is a verification failure, the previous historical heat pump configuration data is read and synchronized to the external control terminal.
[0049] Optionally, an error parameter prompt message may be generated and sent to an external control terminal to prompt the user to make adjustments.
[0050] 205. When the control mainboard is powered on again, data is read and verified from multiple storage addresses in sequence according to the priority corresponding to each storage address.
[0051] When the heat pump unit is powered on, the first configuration data is read from the first storage address, and the first configuration data is subjected to CRC check and characteristic value check; if the CRC check corresponding to the first configuration data fails or the characteristic value check fails, the second configuration data is read from the second storage address, and the second configuration data is subjected to CRC check and characteristic value check; if the CRC check corresponding to the second configuration data fails or the characteristic value check fails, the third configuration data is read from the third storage address, and the third configuration data is subjected to CRC check and characteristic value check. The above characteristic value check can be performed with reference to step 202, which will not be described in detail here.
[0052] 206. If the previous historical heat pump configuration data stored in any storage address is successfully verified, the operation of the heat pump unit is controlled according to the previous historical heat pump configuration data.
[0053] Through CRC and characteristic value judgment, it is ensured that the read data has not been tampered with. The control mainboard controls the operation of the heat pump unit according to the previous historical heat pump configuration data to ensure that the unit can be restored to the operating state before power failure after power-on and continue to operate stably. For example, to restore the previous target temperature and operating mode, the control mainboard sends the previous historical heat pump configuration data to the external control terminal to ensure that the display is correct.
[0054] 207. If data verification fails at each storage address, roll back to the last backup point to restore the data.
[0055] This embodiment introduces a data recovery and system rollback mechanism. If three checks fail or the characteristic value judgment fails, that is, a serious data anomaly or failure is detected, the system can automatically recover to the last stable state. Specifically, by regularly backing up the system status and key data, retaining multiple backup points, when a serious failure is detected, it automatically rolls back to the most recent stable backup point.
[0056] In a feasible implementation, when any verification fails, an alarm message and an abnormal analysis log are generated. This embodiment uses real-time monitoring and alarm functions to immediately alarm and record the time, data content, verification results and treatment measures of each data abnormality once a data abnormality or verification failure is detected, provide detailed log query and analysis functions, and support multi-dimensional data analysis and fault location.
[0057] In the embodiment of the present invention, the accuracy and security of the heat pump configuration data in data storage and data storage are guaranteed by CRC check and multiple characteristic value check, the effective identification of abnormal data is realized, the consistency and reliability of the system configuration synchronization between the control mainboard and the external control terminal are guaranteed, and the operation errors caused by data confusion or internal tampering are avoided. In the data storage process, the consistency and reliability of the data in the storage and reading process are ensured by the characteristic value judgment and the design of triple storage address. The triple check mechanism when the system is powered on again ensures that the read data is complete and correct, and prevents system failures caused by erroneous data.
[0058] The above describes the heat pump configuration data processing method in the embodiment of the present invention. The following describes the heat pump configuration data processing device in the embodiment of the present invention. Figure 3 , an embodiment of the heat pump configuration data processing device in the embodiment of the present invention includes:
[0059] The CRC check module 301 is used to perform a CRC check on the heat pump configuration data packet when the control mainboard receives the heat pump configuration data packet sent by the external control terminal to obtain a CRC check result;
[0060] The characteristic value check module 302 is used to perform multiple characteristic value checks on the heat pump configuration data packet to obtain a characteristic value check result if the CRC check result is successful;
[0061] The storage module 303 is used for performing multiple backup processing on the first heat pump configuration data in the heat pump configuration data packet and storing it in a plurality of preset storage addresses if the characteristic value verification result is successful;
[0062] The synchronization module 304 is used to read the previous historical heat pump configuration data and synchronize it to the external control terminal if the characteristic value verification result is a verification failure.
[0063] In the technical solution provided by the present invention, on the basis of CRC verification, multiple characteristic value verification is further used to ensure the accuracy and security of heat pump configuration data in data storage and data storage, realize effective identification of abnormal data, ensure the consistency and reliability of system configuration synchronization between the control main board and the external control terminal, and avoid operational errors caused by data confusion or internal tampering.
[0064] See also Figure 4 Another embodiment of the heat pump configuration data processing device in the embodiment of the present invention includes:
[0065] The CRC check module 301 is used to perform a CRC check on the heat pump configuration data packet when the control mainboard receives the heat pump configuration data packet sent by the external control terminal to obtain a CRC check result;
[0066] The characteristic value check module 302 is used to perform multiple characteristic value checks on the heat pump configuration data packet to obtain a characteristic value check result if the CRC check result is successful;
[0067] The storage module 303 is used for performing multiple backup processing on the first heat pump configuration data in the heat pump configuration data packet and storing it in a plurality of preset storage addresses if the characteristic value verification result is successful;
[0068] The synchronization module 304 is used to read the previous historical heat pump configuration data and synchronize it to the external control terminal if the characteristic value verification result is a verification failure.
[0069] Optionally, the feature value checking module 302 includes:
[0070] The first verification unit 3021 is used to perform a characteristic value verification on the heat pump configuration data packet to obtain a first verification result if the CRC verification result is successful;
[0071] The first processing unit 3022 is used to assign the parameter value corresponding to each field in the heat pump configuration data packet to the system configuration in the control mainboard if the first verification result is successful, so as to obtain the updated first heat pump configuration data, and the first heat pump configuration data is used to control the operation of the heat pump unit;
[0072] The second verification unit 3023 is used to perform a characteristic value verification on the first heat pump configuration data to obtain a second verification result;
[0073] The determination unit 3024 is configured to determine that the eigenvalue verification is successful if the second verification result is a verification success, and otherwise determine that the eigenvalue verification fails.
[0074] Optionally, the first verification unit 3021 is specifically used to: if the CRC verification result is a successful verification, compare the parameter value corresponding to each field in the heat pump configuration data packet with a preset characteristic value range of each field, and the characteristic value range is used to indicate the heat pump configuration parameter allowable interval corresponding to each heat pump configuration parameter;
[0075] When the parameter value corresponding to each field is within the characteristic value range preset for each field, it is determined that the first characteristic value verification is successful;
[0076] When the parameter value corresponding to any field is out of the characteristic value range, it is determined that the first characteristic value check fails.
[0077] Optionally, the loop detection module 305 is used for loop detection to determine whether the first heat pump configuration data is changed; if any heat pump configuration parameter in the first heat pump configuration data changes, data synchronization is performed on each storage address.
[0078] Optionally, a power-on reading module 306 is used to read and verify data from multiple storage addresses in sequence according to the priority corresponding to each storage address when the control mainboard is powered on again;
[0079] The operation module 307 is used to control the operation of the heat pump unit according to the previous historical heat pump configuration data if the previous historical heat pump configuration data stored in any storage address is successfully verified;
[0080] The rollback module 308 is used to roll back to the last backup point for data recovery if data verification fails at each storage address.
[0081] Optionally, the power-on reading module 306 is specifically used to: when the heat pump unit is powered on, read the first configuration data from the first storage address, and perform CRC check and characteristic value check on the first configuration data;
[0082] If the CRC check corresponding to the first configuration data fails or the characteristic value check fails, the second configuration data is read from the second storage address, and the CRC check and the characteristic value check are performed on the second configuration data;
[0083] If the CRC check corresponding to the second configuration data fails or the characteristic value check fails, the third configuration data is read from the third storage address, and the CRC check and the characteristic value check are performed on the third configuration data.
[0084] Optionally, the monitoring module 309 is used to generate an alarm message and an abnormality analysis log when any verification fails.
[0085] In the embodiment of the present invention, the accuracy and security of the heat pump configuration data in data storage and data storage are guaranteed by CRC check and multiple characteristic value check, the effective identification of abnormal data is realized, the consistency and reliability of the system configuration synchronization between the control mainboard and the external control terminal are guaranteed, and the operation errors caused by data confusion or internal tampering are avoided. In the data storage process, the consistency and reliability of the data in the storage and reading process are ensured by the characteristic value judgment and the design of triple storage address. The triple check mechanism when the system is powered on again ensures that the read data is complete and correct, and prevents system failures caused by erroneous data.
[0086] above Figure 3 and Figure 4 The heat pump configuration data processing device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The heat pump configuration data processing device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0087] See also Figure 5As shown, the heat pump configuration data processing device includes a processor 500 and a memory 501 . The memory 501 stores machine executable instructions that can be executed by the processor 500 . The processor 500 executes the machine executable instructions to implement the above heat pump configuration data processing method.
[0088] Further, Figure 5 The heat pump configuration data processing device shown further includes a bus 502 and a communication interface 503 , and the processor 500 , the communication interface 503 and the memory 501 are connected via the bus 502 .
[0089] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 502 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0090] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 500. The above processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501 , and the processor 500 reads the information in the memory 501 and completes the method steps of the above-mentioned embodiment in combination with its hardware.
[0091] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the heat pump configuration data processing method.
[0092] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0093] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable 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), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0094] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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. A method for processing heat pump configuration data, characterized in that: The heat pump configuration data processing method comprises: When the control mainboard receives the heat pump configuration data packet sent by the external control terminal, a CRC check is performed on the heat pump configuration data packet to obtain a CRC check result; If the CRC check result is successful, multiple characteristic value checks are performed on the heat pump configuration data packet to obtain characteristic value check results; If the characteristic value verification result is successful, multiple backup processing is performed on the first heat pump configuration data in the heat pump configuration data packet, and stored in multiple preset storage addresses; If the characteristic value verification result is a verification failure, the previous historical heat pump configuration data is read and synchronized to the external control terminal.
2. The heat pump configuration data processing method according to claim 1, characterized in that: If the CRC check result is successful, multiple characteristic value checks are performed on the heat pump configuration data packet to obtain characteristic value check results, including: If the CRC check result is successful, a characteristic value check is performed on the heat pump configuration data packet to obtain a first check result; If the first verification result is successful, the parameter value corresponding to each field in the heat pump configuration data packet is assigned to the system configuration in the control mainboard to obtain updated first heat pump configuration data, and the first heat pump configuration data is used to control the operation of the heat pump unit; Performing a characteristic value check on the first heat pump configuration data to obtain a second check result; If the second verification result is verification success, it is determined that the characteristic value verification is successful, otherwise it is determined that the characteristic value verification fails.
3. The heat pump configuration data processing method according to claim 2, characterized in that: If the CRC check result is successful, then a characteristic value check is performed on the heat pump configuration data packet to obtain a first check result, including: If the CRC check result is successful, then compare the parameter value corresponding to each field in the heat pump configuration data packet with the characteristic value range preset for each field, the characteristic value range being used to indicate the heat pump configuration parameter allowable interval corresponding to each heat pump configuration parameter; When the parameter value corresponding to each field is within the characteristic value range preset for each field, it is determined that the first characteristic value verification is successful; When the parameter value corresponding to any field is not within the characteristic value range, it is determined that the first characteristic value check fails.
4. The heat pump configuration data processing method according to claim 2, characterized in that: If the characteristic value verification result is successful, then multiple backup processing is performed on the first heat pump configuration data in the heat pump configuration data packet and stored in a plurality of preset storage addresses, the method further includes: Cyclic detection determines whether the first heat pump configuration data has been changed; If any heat pump configuration parameter in the first heat pump configuration data changes, data synchronization is performed on each storage address.
5. The heat pump configuration data processing method according to any one of claims 1 to 4, characterized in that: After the previous historical heat pump configuration data is read and synchronized to the external control terminal if the characteristic value verification result is a verification failure, the method further includes: When the control mainboard is powered on again, data is read and verified from the multiple storage addresses in sequence according to the priority corresponding to each storage address; If the previous historical heat pump configuration data stored in any storage address is successfully verified, the heat pump unit is controlled to operate according to the previous historical heat pump configuration data; If data verification fails for each storage address, roll back to the last backup point for data recovery.
6. The heat pump configuration data processing method according to claim 5, characterized in that: The multiple storage addresses include a first storage address, a second storage address, and a third storage address, and when the control mainboard is powered on again, data is read and verified in sequence for the multiple storage addresses according to the priority corresponding to each storage address, including: When the heat pump unit is powered on, first configuration data is read from the first storage address, and CRC check and characteristic value check are performed on the first configuration data; If the CRC check corresponding to the first configuration data fails or the characteristic value check fails, reading the second configuration data from the second storage address, and performing a CRC check and a characteristic value check on the second configuration data; If the CRC check or the characteristic value check corresponding to the second configuration data fails, the third configuration data is read from the third storage address, and the CRC check and the characteristic value check are performed on the third configuration data.
7. The heat pump configuration data processing method according to claim 1, characterized in that: Also includes: When any verification fails, an alarm message and an abnormal analysis log are generated.
8. A heat pump configuration data processing device, characterized in that: The heat pump configuration data processing device comprises: A CRC check module is used to perform a CRC check on a heat pump configuration data packet when the control mainboard receives the heat pump configuration data packet sent by the external control terminal to obtain a CRC check result; A characteristic value verification module, configured to perform multiple characteristic value verifications on the heat pump configuration data packet to obtain a characteristic value verification result if the CRC verification result is successful; A storage module, configured to perform multiple backup processing on the first heat pump configuration data in the heat pump configuration data packet and store the data in a plurality of preset storage addresses if the characteristic value verification result is successful; A synchronization module is used to read the previous historical heat pump configuration data and synchronize it to the external control terminal if the characteristic value verification result is a verification failure.
9. A heat pump configuration data processing device, characterized in that: The heat pump configuration data processing device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the heat pump configuration data processing device to execute the heat pump configuration data processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is read and executed, the heat pump configuration data processing method according to any one of claims 1 to 7 is executed.
