CN115143590B - Control parameter processing method, device and storage medium - Google Patents

Control parameter processing method, device and storage medium Download PDF

Info

Publication number
CN115143590B
CN115143590B CN202210772679.0A CN202210772679A CN115143590B CN 115143590 B CN115143590 B CN 115143590B CN 202210772679 A CN202210772679 A CN 202210772679A CN 115143590 B CN115143590 B CN 115143590B
Authority
CN
China
Prior art keywords
control parameter
memory
stored
data acquisition
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210772679.0A
Other languages
Chinese (zh)
Other versions
CN115143590A (en
Inventor
单联瑜
吴俊鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210772679.0A priority Critical patent/CN115143590B/en
Publication of CN115143590A publication Critical patent/CN115143590A/en
Application granted granted Critical
Publication of CN115143590B publication Critical patent/CN115143590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • F24F11/32Responding to malfunctions or emergencies
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The present disclosure relates to a control parameter processing method, apparatus, and storage medium. The method is applied to a first device and comprises the following steps: a first data acquisition instruction is sent to second equipment, the first data acquisition instruction is used for requesting to acquire second control parameters of the second equipment, and the second control parameters sent by the second equipment are received; storing the received second control parameter in a first memory; checking the second control parameter stored in the first memory; and in response to the verification passing, storing a second control parameter into a second memory, wherein the second memory is a nonvolatile memory, and the second memory is different from the first memory. The application stores the control parameters of the second equipment in the first equipment, and realizes the remote backup of the control parameters. Firstly, caching and then checking, and storing the checked data in a nonvolatile memory after the checked data pass, so that the accuracy and the effectiveness of the data are ensured, and the nonvolatile memory has the characteristics of power failure and maintenance, and the safety of data storage is improved.

Description

Control parameter processing method, device and storage medium
Technical Field
The disclosure relates to the technical field of air conditioners, and in particular relates to a control parameter processing method, a control parameter processing device and a storage medium.
Background
The air conditioner includes an indoor unit and an outdoor unit. The indoor unit operates according to the indoor unit control parameters, and the outdoor unit operates according to the outdoor unit control parameters. If the indoor unit or the outdoor unit cannot read the control parameters of the indoor unit or the outdoor unit normally due to the reasons of reading, storage faults and the like, the normal operation of the air conditioner is affected.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, apparatus, and storage medium for processing control parameters.
According to a first aspect of embodiments of the present disclosure, there is provided a method for processing a control parameter, applied to a first device, the method including:
A first data acquisition instruction is sent to second equipment, wherein the first data acquisition instruction is used for requesting to acquire a second control parameter of the second equipment, the first equipment is one of an air conditioning indoor unit and an air conditioning outdoor unit, and the second equipment is the other of the air conditioning indoor unit and the air conditioning outdoor unit;
Receiving the second control parameter sent by the second device;
Storing the received second control parameters into a first memory;
Checking the second control parameter stored in the first memory;
and in response to the verification passing, storing the second control parameters stored in the first memory into a second memory, wherein the second memory is a nonvolatile memory, and the second memory is different from the first memory.
In at least one embodiment, the method further comprises:
Reading the second control parameter from the second memory in response to receiving a second data acquisition instruction sent by the second device, where the second data acquisition instruction is used to request acquisition of the second control parameter of the second device;
And sending the read second control parameters to the second equipment.
In at least one embodiment, before sending the first data acquisition instruction to the second device, the method further comprises:
receiving second verification information sent by the second device, the second verification information comprising at least one of: a product serial number of the second device, a first check value of the second control parameter;
and transmitting the first data acquisition instruction to the second device in response to determining that the second control parameter needs to be acquired from the second device according to the second verification information.
In at least one embodiment, the method further comprises: determining that the second control parameter is to be acquired from the second device in response to any one of the following conditions being met:
the second control parameter is not stored in the second memory;
The received product serial number of the second device is inconsistent with the product serial number of the second device stored in the second memory;
the received first check value is inconsistent with the check value of the second control parameter stored in the second memory.
In at least one embodiment, the second verification information includes a first verification value of the second control parameter; the method further comprises the steps of:
Storing the received second verification information in the first memory;
the verifying the second control parameter stored in the first memory includes:
Determining a second check value of the second control parameter according to the second control parameter stored in the first memory;
And in response to the first check value being consistent with the second check value, determining that the second control parameter stored in the first memory passes a check.
In at least one embodiment, the method further comprises:
and storing the second verification information stored in the first memory into the second memory in response to verification passing.
In at least one embodiment, the method further comprises:
Transmitting first verification information to the second device, the first verification information including at least one of: a product serial number of the first device, a third check value of a first control parameter of the first device.
In at least one embodiment, the method further comprises:
when the first equipment is powered on, a first control parameter of the first equipment is read from the second memory in response to the fact that the product serial number of the first equipment is not read;
In response to the first control parameter not being read, sending a third data acquisition instruction to the second device, wherein the third data acquisition instruction is used for requesting to acquire the first control parameter;
Receiving the first control parameter sent by the second equipment;
And controlling the first equipment to operate according to the first control parameter.
In at least one embodiment, the method further comprises: and storing the received first control parameters into the second memory.
According to a second aspect of embodiments of the present disclosure, there is provided a processing apparatus for controlling a parameter, applied to a first device, to execute a processing method for controlling a parameter provided in the first aspect, including:
A transmitting module configured to transmit a first data acquisition instruction to a second device, the first data acquisition instruction being configured to request acquisition of a second control parameter of the second device, wherein the first device is one of an air conditioning indoor unit and an air conditioning outdoor unit, and the second device is the other of the air conditioning indoor unit and the air conditioning outdoor unit;
The receiving module is configured to receive the second control parameter sent by the second device;
A processing module configured to store the second control parameter received by the receiving module into a first memory; checking the second control parameter stored in the first memory; and in response to the verification passing, storing the second control parameter stored in the first memory into a second memory, wherein the second memory is a nonvolatile memory, and the second memory is different from the first memory.
In at least one embodiment, the receiving module is further configured to: receiving a second data acquisition instruction sent by the second equipment;
The processing module is further configured to: reading the second control parameter from the second memory in response to the receiving module receiving a second data acquisition instruction sent by the second device, where the second data acquisition instruction is used to request to acquire the second control parameter of the second device;
the transmitting module is further configured to: and sending the second control parameters read by the processing module to the second equipment.
In at least one embodiment, the receiving module is further configured to: before the sending module sends a first data acquisition instruction to a second device, receiving second check information sent by the second device, wherein the second check information comprises at least one of the following: a product serial number of the second device, a first check value of the second control parameter;
the transmitting module is further configured to: and transmitting the first data acquisition instruction to the second device in response to determining that the second control parameter needs to be acquired from the second device according to the second verification information.
In at least one embodiment, the processing device of control parameters further includes a determining module configured to: determining that the second control parameter is to be acquired from the second device in response to any one of the following conditions being met:
the second control parameter is not stored in the second memory;
The received product serial number of the second device is inconsistent with the product serial number of the second device stored in the second memory;
the received first check value is inconsistent with the check value of the second control parameter stored in the second memory.
In at least one embodiment, the second verification information includes a first verification value of the second control parameter;
the processing module is further configured to: storing the second verification information received by the receiving module into the first memory; determining a second check value of the second control parameter according to the second control parameter stored in the first memory; and in response to the first check value being consistent with the second check value, determining that the second control parameter stored in the first memory passes a check.
In at least one embodiment, the processing module is further configured to: and storing the second verification information stored in the first memory into the second memory in response to verification passing.
In at least one embodiment, the transmitting module is further configured to: transmitting first verification information to the second device, the first verification information including at least one of: a product serial number of the first device, a third check value of a first control parameter of the first device.
In at least one embodiment, the processing module is further configured to: when the first equipment is powered on, a first control parameter of the first equipment is read from the second memory in response to the fact that the product serial number of the first equipment is not read;
The transmitting module is further configured to: in response to the processing module not reading the first control parameter, sending a third data acquisition instruction to the second device, wherein the third data acquisition instruction is used for requesting to acquire the first control parameter;
the receiving module is further configured to: receiving the first control parameter sent by the second equipment;
the processing module is further configured to: and controlling the first equipment to operate according to the first control parameter received by the receiving module.
In at least one embodiment, the processing module is further configured to: and storing the first control parameters received by the receiving module into the second memory.
According to a third aspect of the embodiments of the present disclosure, there is provided a processing apparatus for controlling parameters, including:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to execute the executable instructions to implement the steps of the method of processing control parameters provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of processing control parameters provided in the first aspect of the present disclosure as described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the first device requests to acquire control parameters of the second device by sending a data acquisition instruction to the second device, caches the received control parameters in the first memory, checks the received control parameters, and stores the control parameters in the second memory when the control parameters pass the check. In this way, the control parameters of the second device are effectively stored in the first device, and the second device has the function of remotely backing up the control parameters, so that even if the second device fails to locally acquire the control parameters required by the second device when the second device is powered on next time, the second device still can acquire the control parameters required by the second device from the first device due to the redundant backup of the control parameters of the second device in the first device, and the second device can be ensured to normally operate. In addition, the received control parameters of the second device are cached first, then checked, and after the check is passed, the control parameters are stored in the nonvolatile memory. Therefore, on one hand, the control parameters of the second equipment are stored in the nonvolatile memory after passing verification, so that the accuracy and the effectiveness of the control parameters of the second equipment stored in the first equipment can be ensured, and on the other hand, the verified control parameters are stored in the nonvolatile memory, and the safety of data storage can be improved by utilizing the characteristic that the nonvolatile memory has power failure and is kept.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of an application scenario of an air conditioning apparatus according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of processing control parameters according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a method of processing control parameters according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of processing control parameters according to an exemplary embodiment;
FIG. 5 is a block diagram of a processing device for controlling parameters according to an exemplary embodiment;
fig. 6 is a block diagram of another control parameter processing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, all actions of acquiring signals, information or data in the present application are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
Fig. 1 is a schematic view of an application scenario of an air conditioning apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the air conditioner may include an indoor unit 101 and an outdoor unit 102. The indoor unit 101 may establish a communication connection with the outdoor unit 102 to implement information interaction, signaling control, and the like therebetween.
For example, the indoor unit 101 may include an indoor unit controller, such as an indoor unit micro control unit MCU, and the outdoor unit 102 may include an outdoor unit controller, such as an outdoor unit micro control unit MCU. The indoor unit controller and the outdoor unit controller can be communicatively coupled, so that signal and data transmission between the indoor unit 101 and the outdoor unit 102 is realized. The indoor unit 101 operates according to indoor unit control parameters; the outdoor unit 102 operates according to the outdoor unit control parameters. Normally, the indoor unit control parameters are stored locally in the indoor unit 101, and the outdoor unit control parameters are stored locally in the outdoor unit 102. If the control parameters required by the indoor unit 101 and the outdoor unit 102 cannot be read normally from the local area, the normal operation of the air conditioner is affected.
In order to solve this problem, the present disclosure proposes a processing method of a control parameter, which is applied to a first device, which is one of an air conditioning indoor unit and an air conditioning outdoor unit. Referring to fig. 2, the method comprises the steps of:
Step S202, a first data acquisition instruction is sent to a second device, where the first data acquisition instruction is used to request to acquire a second control parameter of the second device.
Wherein the second device is the other of the air-conditioning indoor unit and the air-conditioning outdoor unit. Illustratively, if the first device is an air-conditioning indoor unit, the second device is an air-conditioning outdoor unit; if the first device is an air conditioning outdoor unit, the second device is an air conditioning indoor unit.
The air conditioner indoor unit and the air conditioner outdoor unit are respectively provided with corresponding control parameters. The control parameters of the indoor unit of the air conditioner may include, for example, but not limited to: control parameters related to the inner fan and the electronic expansion valve, and control parameters of the air conditioner outdoor unit may include, for example, but not limited to: and controlling parameters of a fan of the outdoor unit.
For ease of distinction, in the present disclosure, the control parameter of the first device is referred to as a first control parameter, and the control parameter of the second device is referred to as a second control parameter.
Step S204, receiving the second control parameter sent by the second device.
The second device responds to the first data acquisition instruction, reads the locally stored second control parameter, and sends the second control parameter to the first device.
Step S206, storing the received second control parameter in the first memory.
Wherein the first memory serves as a buffer for the received second control parameter. The first memory may be, for example, a random access memory (random access memory, RAM).
Step S208, checking the second control parameter stored in the first memory.
The second control parameter received by the first device may not be consistent with the second control parameter transmitted by the second device, possibly due to some communication anomaly between the first device and the second device. Therefore, in order to confirm that the second control parameter received by the first device is the second control parameter transmitted by the second device, the accuracy and reliability of the subsequent data storage are ensured, and in step S208, the second control parameter buffered in the first memory is checked.
Step S210, in response to the verification passing, storing the second control parameter stored in the first memory in a second memory, where the second memory is a nonvolatile memory, and the second memory is different from the first memory.
When the second control parameter passes the verification, the second control parameter received by the first device is consistent with the second control parameter sent by the second device, and the second control parameter received by the first device can be considered to be accurate and valid, so that the second control parameter is stored in the second memory. The second memory is a nonvolatile memory, and the nonvolatile memory has a power-down holding function, so that the safety of data storage can be improved. The second memory may be a flash memory (flash), for example.
In the above technical solution, the first device requests to acquire the control parameters of the second device by sending a data acquisition instruction to the second device, buffers the received control parameters in the first memory, then checks them, and stores the control parameters in the second memory when the check passes. In this way, the control parameters of the second device are effectively stored in the first device, and the second device has the function of remotely backing up the control parameters, so that even if the second device fails to locally acquire the control parameters required by the second device when the second device is powered on next time, the second device still can acquire the control parameters required by the second device from the first device due to the redundant backup of the control parameters of the second device in the first device, and the second device can be ensured to normally operate. In addition, the received control parameters of the second device are cached first, then checked, and after the check is passed, the control parameters are stored in the nonvolatile memory. Therefore, on one hand, the control parameters of the second equipment are stored in the nonvolatile memory after passing verification, so that the accuracy and the effectiveness of the control parameters of the second equipment stored in the first equipment can be ensured, and on the other hand, the verified control parameters are stored in the nonvolatile memory, and the safety of data storage can be improved by utilizing the characteristic that the nonvolatile memory has power failure and is kept.
In at least one embodiment, when the second control parameter fails the verification, step S202 may be re-performed, i.e. the first data acquisition instruction is re-sent to the second device. Or outputting communication abnormality information to prompt the user of communication abnormality between the first device and the second device. Or when the second control parameter check is not passed, step S202 may be re-executed, and when the second control parameter check is not passed after re-executing step S202 several times, the communication abnormality information may be output.
Fig. 3 is a flow chart illustrating a method of processing control parameters according to an exemplary embodiment. As shown in fig. 3, the above-mentioned control parameter processing method may further include the following steps:
step S212, in response to receiving a second data acquisition instruction sent by a second device, reading a second control parameter from a second memory, where the second data acquisition instruction is used to request acquisition of the second control parameter of the second device;
step S214, transmitting the read second control parameter to the second device.
Wherein the second device may first obtain the second control parameter locally when powered on. If the local acquisition of the second control parameter fails, the second device may send a second data acquisition instruction to the first device to request acquisition of the second control parameter from the first device. Accordingly, after receiving the second data acquisition instruction, the first device may read the stored second control parameter from the second memory, and then send the read second control parameter to the second device, because the second control parameter is stored in the second memory. In this way, the second device can acquire the control parameters required for itself from the first device and operate based on the second control parameters acquired from the first device.
Through the technical scheme, under the condition that the second equipment fails to locally acquire the second control parameters, the second control parameters backed up in the first equipment can be acquired from the first equipment, so that the second equipment can still normally operate.
Fig. 4 is a flowchart illustrating a method of processing control parameters according to an exemplary embodiment. As shown in fig. 4, before step S202, the method may further include:
Step S216, receiving second verification information sent by the second device, where the second verification information may include at least one of the following: the product serial number of the second device, the first check value of the second control parameter.
Wherein the second device may first read its own product serial number (i.e., SN number) upon power-up. If the second equipment reads the own product serial number, the target control parameter matched with the own product serial number can be obtained as the second control parameter required by the second equipment by inquiring the corresponding relation between the product serial number and the second control parameter according to the product serial number. At this time, the second device may calculate a first check value of the second control parameter based on the second control parameter and a preset check algorithm.
Or if the second device does not read the own product serial number, it may still read a third memory provided on its own side, so as to obtain the second control parameter from the third memory. The second control parameters used by the second device may be stored in a third memory, which is a non-volatile memory, for example a flash, before it was last powered down. Therefore, when the second device is powered on this time, if the product serial number of the second device is not read, the second device can continue to read the second control parameter from the third memory, so that the redundancy backup of the second control parameter in the local area of the second device is improved. After the second control parameter is read from the third memory, the second device may calculate a first check value of the second control parameter based on the second control parameter and a preset check algorithm.
The check algorithm may be a cyclic redundancy check code algorithm, a hash encryption algorithm, or the like.
The second device may send second verification information to the first device after reading its own product serial number or after calculating the first verification value of the second control parameter, the second verification information may include at least one of: the product serial number of the second device, the first check value of the second control parameter.
Step S218, determining whether the second control parameter needs to be acquired from the second device according to the second verification information.
After receiving the second check-up information, the first device may determine whether the second control parameter needs to be acquired from the second device according to the second check-up information.
For example, the first device determines that the second control parameter is to be acquired from the second device in response to any of the following conditions being met:
the second control parameter is not stored in the second memory;
The received product serial number of the second device is inconsistent with the product serial number of the second device stored in the second memory;
the received first check value is inconsistent with the check value of the second control parameter stored in the second memory.
When the first device and the second device operate normally, the nonvolatile memory on the self side can store the product serial number of the opposite party, the control parameter of the opposite party and the check value of the control parameter of the opposite party. If the second control parameter is not stored in the second memory on the first device side, the first device determines that the second control parameter needs to be acquired from the second device.
Or because of equipment replacement or other reasons, the equipment for carrying out information interaction at this time is possibly different from the last time, for example, the second equipment is replaced, and then the product serial number of the original second equipment and the check value of the second control parameter of the original second equipment currently stored in the second memory of the first equipment are not matched with the current second equipment, so if the product serial number in the received second check information is not consistent with the product serial number of the second equipment stored in the second memory, or the first check value in the received second check information is not consistent with the check value of the second control parameter stored in the second memory, the first equipment determines that the second control parameter of the current second equipment needs to be acquired from the second equipment.
When it is determined that the second control parameter needs to be acquired from the second device according to the second check information, the first device transmits the first data acquisition instruction to the second device, that is, performs step S202 described above.
By means of the technical scheme, the fact that the last valid second control parameter of the second device is always stored in the second memory of the first device can be ensured, and therefore when the second device reversely acquires the second control parameter from the first device, the first device provides the last valid second control parameter for the second device.
In at least one embodiment, the first device may store the received second calibration information in the first memory after receiving the second calibration information. That is, the second check information is first cached in the first memory.
The first device may then verify the second control parameter stored in the first memory by:
Determining a second check value of the second control parameter according to the second control parameter stored in the first memory;
And in response to the first check value being consistent with the second check value, determining that the second control parameter stored in the first memory passes a check.
In an example, after the first device sends the first data acquisition instruction to the second device, the first device receives the second control parameter returned by the second device and caches the second control parameter in the first memory. In addition, the first device also buffers the second verification information sent by the second device into the first memory after receiving the second verification information. Wherein the second check information comprises a first check value of the second control parameter. In this way, the first device may verify the second control parameter stored in the first memory with the first verification value stored in the first memory. For example, according to the second control parameter stored in the first memory and a preset verification algorithm, a second verification value of the second control parameter is calculated. The check algorithm used by the first device when obtaining the second check value is the same as the check algorithm used by the second device when obtaining the first check value, and the two devices can preset the same check algorithm used. When the first check value stored in the first memory is consistent with the second check value calculated by the first device, the second control parameter received by the first device is consistent with the second control parameter sent by the second device, at the moment, the second control parameter stored in the first memory is determined to pass the check, and then the second control parameter is stored in the second memory. When the first check value stored in the first memory is inconsistent with the second check value calculated by the first device, the second control parameter received by the first device is inconsistent with the second control parameter sent by the second device, and at the moment, the second control parameter stored in the first memory is determined to not pass the check.
In at least one embodiment, the first device may delete the second verification information stored in the first memory when the second control parameter stored in the first memory fails to pass the verification.
In at least one embodiment, the method for processing control parameters may further include:
and storing the second verification information stored in the first memory into the second memory in response to verification passing.
That is, the first device stores the second check information cached in the first memory into the second memory when determining that the second control parameter stored in the first memory passes the check. Therefore, after the first device is powered down, the latest product serial number of the second device and/or the check value of the second control parameter can be still effectively stored in the second memory.
In at least one embodiment, the method for processing control parameters may further include:
Transmitting first verification information to a second device, the first verification information including at least one of: a product serial number of the first device, a third check value of a first control parameter of the first device.
After the first device is powered on, the first control parameter required by the first device is acquired locally. As described above, the first device and the second device may perform redundant backup of control parameters for each other. That is, the second device may store the first control parameter of the first device, the check value of the first control parameter, and the product serial number of the first control parameter in the third memory on its own side.
The first device may first read its own product serial number (i.e., SN number) upon power-up. If the first equipment reads the own product serial number, the target control parameter matched with the own product serial number can be obtained as the first control parameter required by the first equipment by inquiring the corresponding relation between the product serial number and the first control parameter according to the product serial number. At this time, the first device may calculate a third check value of the first control parameter based on the first control parameter and a preset check algorithm.
Or if the first device does not read the own product serial number, it may still read the second memory set on the own side, so as to obtain the first control parameter from the second memory. The first control parameters used by the first device may be stored in the second memory before it was last powered down. Therefore, when the first device is powered on this time, if the product serial number of the first device is not read, the first device can continue to read the first control parameter from the second memory, so that the redundancy backup of the first control parameter in the local area of the first device is improved. After the first control parameter is read from the second memory, the first device may calculate a third check value of the first control parameter based on the first control parameter and a preset check algorithm.
The check algorithm may be a cyclic redundancy check code algorithm, a hash encryption algorithm, or the like.
The first device may send first verification information to the second device after reading its own product serial number or after calculating a third verification value of the first control parameter, where the first verification information may include at least one of: the product serial number of the first device, the third check value of the first control parameter.
After receiving the first verification information sent by the first device, the second device may determine, according to the first verification information, whether to obtain the first control parameter from the first device and how to verify the first control parameter by using the first verification information, in the same manner how the first device determines, according to the second verification information, whether to obtain the second control parameter from the first device and how to verify the first control parameter by using the first verification information, which are described above, and will not be described in detail herein.
In at least one embodiment, the method for processing control parameters may further include:
When the first device is powered on, reading a first control parameter of the first device from a second memory in response to not reading a product serial number of the first device;
in response to the first control parameter not being read, sending a third data acquisition instruction to the second device, wherein the third data acquisition instruction is used for requesting to acquire the first control parameter;
Receiving the first control parameter sent by the second equipment;
And controlling the first equipment to operate according to the first control parameter.
As described above, the first device will preferably read the locally recorded product serial number of the first device when powered on. If the local record is empty or the product serial number of the first device is not successfully read, the first control parameter of the first device is read from the second memory. If the first control parameter is not successfully read from the second memory due to the abnormal reading or the storage fault, the first device may call for help to the second device, and request to acquire the first control parameter by sending a third data acquisition instruction to the second device. After receiving the third data acquisition instruction, the second device acquires the first control parameter of the first device locally, for example, reads the first control parameter from a third memory on the local side. The second device then transmits the first control parameter of the first device to the first device. After receiving the first control parameter sent by the second device, the first device may control the first device to operate according to the first control parameter.
Therefore, even if the first device fails to locally acquire the first control parameters required by the first device, the first device can acquire the first control parameters of the redundant backup in the second device from the second device, so that the first device can be ensured to normally operate.
In at least one embodiment, the method for processing control parameters may further include: and storing the received first control parameters into the second memory.
That is, the first device may store the first control parameter into the second memory after acquiring the first control parameter of the first device from the second device. In this way, once the product serial number of the first product is not read when the power is on next time, the first control parameter used in the previous operation can also be read from the second memory, so that the first device can successfully acquire the first control parameter required by the operation locally.
It should be noted that the above-described processing method applied to the control parameter of the first device side is equally applicable to the second device. That is, the first device and the second device involved in the above-described method are swapped, and the first control parameter and the second control parameter are swapped, the first memory is replaced with the nonvolatile memory on the second device side, that is, the third memory, and the second memory is replaced with the fourth memory (for example, RAM) on the second device side, which is different from the third memory, so that the processing method applied to the control parameter on the second device side can be realized. The detailed flow is not described here.
Fig. 5 is a block diagram of a processing device 500 for controlling parameters according to an exemplary embodiment. The processing apparatus 500 may be applied to the first device to perform the above-described processing method of the control parameter. Referring to fig. 5, the processing apparatus 500 may include:
A transmitting module 510 configured to transmit a first data acquisition instruction to a second device, where the first device is one of an air-conditioning indoor unit and an air-conditioning outdoor unit, and the second device is the other of the air-conditioning indoor unit and the air-conditioning outdoor unit, and the first data acquisition instruction is configured to request to acquire a second control parameter of the second device;
a receiving module 520 configured to receive the second control parameter sent by the second device;
A processing module 530 configured to store the second control parameter received by the receiving module 520 into a first memory; checking the second control parameter stored in the first memory; and in response to the verification passing, storing the second control parameter stored in the first memory into a second memory, wherein the second memory is a nonvolatile memory, and the second memory is different from the first memory.
In at least one embodiment, the receiving module 520 is further configured to: receiving a second data acquisition instruction sent by the second equipment;
The processing module 530 is further configured to: reading the second control parameter from the second memory in response to the receiving module 520 receiving a second data acquisition instruction sent by the second device, where the second data acquisition instruction is used to request to acquire the second control parameter of the second device;
The sending module 510 is further configured to: and sending the second control parameter read by the processing module 530 to the second device.
In at least one embodiment, the receiving module 520 is further configured to: before the sending module 510 sends the first data acquisition instruction to the second device, receiving second calibration information sent by the second device, where the second calibration information includes at least one of the following: a product serial number of the second device, a first check value of the second control parameter;
The sending module 510 is further configured to: and transmitting the first data acquisition instruction to the second device in response to determining that the second control parameter needs to be acquired from the second device according to the second verification information.
In at least one embodiment, the processing device for controlling a parameter may further include a determining module configured to: determining that the second control parameter is to be acquired from the second device in response to any one of the following conditions being met:
the second control parameter is not stored in the second memory;
The received product serial number of the second device is inconsistent with the product serial number of the second device stored in the second memory;
the received first check value is inconsistent with the check value of the second control parameter stored in the second memory.
In at least one embodiment, the second verification information includes a first verification value of the second control parameter;
The processing module 530 is further configured to: storing the second check information received by the receiving module 520 into the first memory; determining a second check value of the second control parameter according to the second control parameter stored in the first memory; and in response to the first check value being consistent with the second check value, determining that the second control parameter stored in the first memory passes a check.
In at least one embodiment, the processing module 530 is further configured to: and storing the second verification information stored in the first memory into the second memory in response to verification passing.
In at least one embodiment, the sending module 510 is further configured to: transmitting first verification information to the second device, the first verification information including at least one of: a product serial number of the first device, a third check value of a first control parameter of the first device.
In at least one embodiment, the processing module 530 is further configured to: when the first equipment is powered on, a first control parameter of the first equipment is read from the second memory in response to the fact that the product serial number of the first equipment is not read;
The sending module 510 is further configured to: in response to the processing module 530 not reading the first control parameter, sending a third data acquisition instruction to the second device, where the third data acquisition instruction is used to request acquisition of the first control parameter;
the receiving module 520 is further configured to: receiving the first control parameter sent by the second equipment;
the processing module 530 is further configured to: the first device is controlled to operate according to the first control parameter received by the receiving module 520.
In at least one embodiment, the processing module 530 is further configured to: the first control parameter received by the receiving module 520 is stored in the second memory.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating a processing device 600 for controlling parameters according to an exemplary embodiment. For example, referring to fig. 6, the processing device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, an input/output interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operations of the processing device 600, such as operations associated with display, data communication, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the control parameter processing method described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components.
The memory 604 is configured to store various types of data to support operations at the processing device 600. Examples of such data include instructions for any application or method operating on the processing device 600, control parameters of the air conditioning indoor unit and/or the air conditioning outdoor unit, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the processing device 600. The power supply components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the processing device 600.
The input/output interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be buttons, switches, and the like. These buttons may include, but are not limited to: an actuation button and a locking button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the processing device 600.
The communication component 616 is configured to facilitate communication between the processing apparatus 600 and other devices, either in a wired or wireless manner. The processing device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the processing apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the processing methods of controlling parameters described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method of processing control parameters. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned processing method of control parameters when being executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A method of processing control parameters, applied to a first device, the method comprising:
receiving second check-up information sent by second equipment;
In response to determining that a second control parameter of the second device needs to be acquired from the second device according to the second check information, sending a first data acquisition instruction to the second device, wherein the first data acquisition instruction is used for requesting to acquire the second control parameter, the first device is one of an air conditioning indoor unit and an air conditioning outdoor unit, and the second device is the other of the air conditioning indoor unit and the air conditioning outdoor unit;
Receiving the second control parameter sent by the second device;
Storing the received second control parameters into a first memory;
Checking the second control parameter stored in the first memory;
Storing the second control parameters stored in the first memory into a second memory in response to verification passing, wherein the second memory is a nonvolatile memory and is different from the first memory;
Reading the second control parameter from the second memory in response to receiving a second data acquisition instruction sent by the second device, wherein the second data acquisition instruction is used for requesting to acquire the second control parameter of the second device, and the device sends the second data acquisition instruction to the first device when the second control parameter is acquired from the local;
And sending the read second control parameters to the second equipment.
2. The method of processing a control parameter according to claim 1, wherein the second check information includes at least one of: a product serial number of the second device, a first check value of the second control parameter.
3. The method of processing control parameters according to claim 2, characterized in that the method further comprises: determining that the second control parameter is to be acquired from the second device in response to any one of the following conditions being met:
the second control parameter is not stored in the second memory;
The received product serial number of the second device is inconsistent with the product serial number of the second device stored in the second memory;
the received first check value is inconsistent with the check value of the second control parameter stored in the second memory.
4. The method of processing a control parameter according to claim 2, characterized in that the second check information includes a first check value of the second control parameter; the method further comprises the steps of:
Storing the received second verification information in the first memory;
the verifying the second control parameter stored in the first memory includes:
Determining a second check value of the second control parameter according to the second control parameter stored in the first memory;
And in response to the first check value being consistent with the second check value, determining that the second control parameter stored in the first memory passes a check.
5. The method of processing control parameters according to claim 4, characterized in that the method further comprises:
and storing the second verification information stored in the first memory into the second memory in response to verification passing.
6. The method of processing control parameters according to claim 1, characterized in that the method further comprises:
Transmitting first verification information to the second device, the first verification information including at least one of: a product serial number of the first device, a third check value of a first control parameter of the first device.
7. The method of processing control parameters according to claim 1, characterized in that the method further comprises:
when the first equipment is powered on, a first control parameter of the first equipment is read from the second memory in response to the fact that the product serial number of the first equipment is not read;
In response to the first control parameter not being read, sending a third data acquisition instruction to the second device, wherein the third data acquisition instruction is used for requesting to acquire the first control parameter;
Receiving the first control parameter sent by the second equipment;
And controlling the first equipment to operate according to the first control parameter.
8. The method of processing control parameters according to claim 7, characterized in that the method further comprises:
and storing the received first control parameters into the second memory.
9. A control parameter processing apparatus, characterized by being applied to a first device, for executing the control parameter processing method according to any one of claims 1 to 8, comprising:
A receiving module configured to receive second check information transmitted by the second device;
A transmission module configured to transmit a first data acquisition instruction to the second device in response to determining that a second control parameter of the second device is to be acquired from the second device according to the second check information, the first data acquisition instruction being configured to request acquisition of the second control parameter, wherein the first device is one of an air conditioning indoor unit and an air conditioning outdoor unit, and the second device is the other of the air conditioning indoor unit and the air conditioning outdoor unit;
the receiving module is further configured to receive the second control parameter sent by the second device;
A processing module configured to store the second control parameter received by the receiving module into a first memory; checking the second control parameter stored in the first memory; and in response to the verification passing, storing the second control parameter stored in the first memory into a second memory, wherein the second memory is a nonvolatile memory, and the second memory is different from the first memory;
The processing module is further configured to read the second control parameter from the second memory in response to receiving a second data acquisition instruction sent by the second device, where the second data acquisition instruction is used to request to acquire the second control parameter of the second device, and the device sends the second data acquisition instruction to the first device if the second control parameter is acquired locally;
The sending module is further configured to send the read second control parameter to the second device.
10. A processing apparatus for controlling parameters, comprising:
A processor;
A memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the method of processing the control parameters of any one of claims 1 to 8.
11. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 8.
CN202210772679.0A 2022-06-30 2022-06-30 Control parameter processing method, device and storage medium Active CN115143590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210772679.0A CN115143590B (en) 2022-06-30 2022-06-30 Control parameter processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210772679.0A CN115143590B (en) 2022-06-30 2022-06-30 Control parameter processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115143590A CN115143590A (en) 2022-10-04
CN115143590B true CN115143590B (en) 2024-04-30

Family

ID=83409396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210772679.0A Active CN115143590B (en) 2022-06-30 2022-06-30 Control parameter processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115143590B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103035294A (en) * 2011-09-28 2013-04-10 三星电子株式会社 Method of reading data from a non-volatile memory and devices and systems to implement same
CN104334975A (en) * 2012-06-26 2015-02-04 三菱电机株式会社 Air conditioner control system
CN110766529A (en) * 2019-10-31 2020-02-07 广东美的制冷设备有限公司 Operation verification method and device, air conditioner and storage medium
CN111506449A (en) * 2019-01-31 2020-08-07 青岛海尔空调电子有限公司 Air conditioner parameter storage method and device and storage medium
CN111928438A (en) * 2020-07-31 2020-11-13 海信(山东)空调有限公司 Method for rewriting air conditioner control parameter and air conditioner
CN113218051A (en) * 2021-05-13 2021-08-06 海信(山东)空调有限公司 Method for updating outdoor unit operation data, air conditioner and computer storage medium
CN113468189A (en) * 2020-03-30 2021-10-01 华为技术有限公司 Equipment information management method, device and system
CN113918088A (en) * 2020-07-10 2022-01-11 三星电子株式会社 RAID storage device, host and RAID system
CN114484775A (en) * 2022-02-07 2022-05-13 北京小米移动软件有限公司 Control method, data processing method, device and storage medium for air conditioner
CN114510378A (en) * 2022-02-16 2022-05-17 上海美控智慧建筑有限公司 Parameter backup method and device for air conditioning unit and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10592821B2 (en) * 2015-06-19 2020-03-17 Trane International Inc. Self-learning fault detection for HVAC systems

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103035294A (en) * 2011-09-28 2013-04-10 三星电子株式会社 Method of reading data from a non-volatile memory and devices and systems to implement same
CN104334975A (en) * 2012-06-26 2015-02-04 三菱电机株式会社 Air conditioner control system
CN111506449A (en) * 2019-01-31 2020-08-07 青岛海尔空调电子有限公司 Air conditioner parameter storage method and device and storage medium
CN110766529A (en) * 2019-10-31 2020-02-07 广东美的制冷设备有限公司 Operation verification method and device, air conditioner and storage medium
CN114674066A (en) * 2019-10-31 2022-06-28 广东美的制冷设备有限公司 Operation verification method and device, air conditioner and storage medium
CN113468189A (en) * 2020-03-30 2021-10-01 华为技术有限公司 Equipment information management method, device and system
CN113918088A (en) * 2020-07-10 2022-01-11 三星电子株式会社 RAID storage device, host and RAID system
CN111928438A (en) * 2020-07-31 2020-11-13 海信(山东)空调有限公司 Method for rewriting air conditioner control parameter and air conditioner
CN113218051A (en) * 2021-05-13 2021-08-06 海信(山东)空调有限公司 Method for updating outdoor unit operation data, air conditioner and computer storage medium
CN114484775A (en) * 2022-02-07 2022-05-13 北京小米移动软件有限公司 Control method, data processing method, device and storage medium for air conditioner
CN114510378A (en) * 2022-02-16 2022-05-17 上海美控智慧建筑有限公司 Parameter backup method and device for air conditioning unit and electronic equipment

Also Published As

Publication number Publication date
CN115143590A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
US11615653B2 (en) Engine gateway with engine data storage
JP6496427B2 (en) Method, device and server for unlocking air conditioning unit
CN109583824B (en) Attendance checking method, system, equipment and computer readable storage medium
CN111492182B (en) Air conditioning system, remote control device, and method for storing historical operation data of air conditioner
CN113422815A (en) Remote control method, device, equipment and computer readable storage medium
CN112130881A (en) Firmware remote upgrading method and device
US20120313751A1 (en) System and method for individually providing a function to a user
KR101911264B1 (en) Air conditioner and method for controlling the same
US12032946B2 (en) Program update system, program transmission device, and program transmission method
WO2020044443A1 (en) Air conditioning system and program update method for air conditioning system
JPWO2020044447A1 (en) How to update the air conditioning system and the program of the air conditioning system
US20190156649A1 (en) Hvac system and an hvac controller configured to generate master service alarms
CN115143590B (en) Control parameter processing method, device and storage medium
US10935271B2 (en) System and method of HVAC health monitoring for connected homes
US20140136016A1 (en) Control Unit for a Motor Vehicle, Programming Unit, and Programming System
CN111591322B (en) Electronic skate management method and system
WO2020040125A1 (en) Air conditioner system, air conditioner system control method, and air conditioner system control program
CN111445605A (en) Unlocking key authorized unlocking method and device and storage medium
KR100738644B1 (en) Remote management system and method of thermo-hygrostat using mobile network
US11848991B2 (en) System and method for validating data associated with parameter/s
JP2009177466A (en) System for updating stored information of network connecting device
CN114484778B (en) Method and device for updating parameters of air conditioner outdoor unit and storage medium
CN113682964B (en) Equipment parameter management and recovery method, platform, device, crane and system
US20240319986A1 (en) Program update system, program transmission device, and program transmission method
KR0138496B1 (en) Apparatus and method for remotely diagnosing a hindrance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant