CN115143590A - Control parameter processing method and device and storage medium - Google Patents

Control parameter processing method and device and storage medium Download PDF

Info

Publication number
CN115143590A
CN115143590A CN202210772679.0A CN202210772679A CN115143590A CN 115143590 A CN115143590 A CN 115143590A CN 202210772679 A CN202210772679 A CN 202210772679A CN 115143590 A CN115143590 A CN 115143590A
Authority
CN
China
Prior art keywords
control parameter
memory
check
stored
equipment
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.)
Pending
Application number
CN202210772679.0A
Other languages
Chinese (zh)
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/CN115143590A/en
Publication of CN115143590A publication Critical patent/CN115143590A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The disclosure relates to a processing method, a processing device and a storage medium of control parameters. The method is applied to a first device and comprises the following steps: sending a first data acquisition instruction to second equipment, wherein the first data acquisition instruction is used for requesting to acquire a second control parameter of the second equipment and receiving the second control parameter sent by the second equipment; storing the received second control parameter in the first memory; verifying the second control parameter stored in the first memory; and responding to the verification passing, and storing the 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 method and the device store the control parameters of the second device in the first device, and realize remote backup of the control parameters. The data are cached firstly, then verified, and the data are stored in the nonvolatile memory after the verification is passed, so that the accuracy and the validity of the data are ensured, the nonvolatile memory has the characteristic of power failure retention, and the safety of data storage is improved.

Description

A processing method of control parameters device and storage medium
Technical Field
The present disclosure relates to the field of air conditioning technologies, and in particular, to a method and an apparatus for processing control parameters, and a storage medium.
Background
The air conditioner includes an indoor unit and an outdoor unit. The indoor unit operates according to indoor unit control parameters, and the outdoor unit operates according to outdoor unit control parameters. If the indoor unit or the outdoor unit cannot normally read the control parameters of the indoor unit or the outdoor unit due to reading, storage faults and the like, the normal operation of the air conditioner is influenced.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for processing a control parameter, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing a control parameter, which is applied to a first device, the method including:
sending a first data acquisition instruction to a second device, wherein the first data acquisition instruction is used for requesting to acquire a second control parameter of the second device, the first device is one of an indoor unit and an outdoor unit of an air conditioner, and the second device is the other of the indoor unit and the outdoor unit of the air conditioner;
receiving the second control parameter sent by the second device;
storing the received second control parameter in a first memory;
verifying the second control parameter stored in the first memory;
and responding to the verification passing, and storing the second control parameter stored in the first memory into a second memory, wherein the second memory is a nonvolatile memory and 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, wherein the second data acquisition instruction is used for requesting to acquire 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 check-up information sent by the second device, wherein the second check-up information comprises at least one of the following: the product serial number of the second device and a first check value of the second control parameter;
and responding to the second control parameter which is determined to need to be acquired from the second equipment according to the second check information, and sending the first data acquisition instruction to the second equipment.
In at least one embodiment, the method further comprises: determining that the second control parameter needs to be acquired from the second device in response to either 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 check-up information includes a first check-up value of the second control parameter; the method further comprises the following steps:
storing the received second check-up 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;
determining that the second control parameter stored in the first memory passes the check in response to the first check value being consistent with the second check value.
In at least one embodiment, the method further comprises:
storing the second check-up information stored in the first memory into the second memory in response to a check-up pass.
In at least one embodiment, the method further comprises:
sending first verification information to the second device, the first verification information including at least one of: the product serial number of the first device and a third check value of the first control parameter of the first device.
In at least one embodiment, the method further comprises:
when the first equipment is powered on, responding to the product serial number which is not read to the first equipment, and reading a first control parameter of the first equipment from the second memory;
responding to the first control parameter which is not read, and sending a third data acquisition instruction to the second equipment, 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 device;
and controlling the first equipment to operate according to the first control parameter.
In at least one embodiment, the method further comprises: storing the received first control parameter in the second memory.
According to a second aspect of the embodiments of the present disclosure, there is provided a processing apparatus for a control parameter, which is applied to a first device, and executes the processing method for the control parameter provided by the first aspect, including:
a sending module configured to send a first data acquisition instruction to a second device, wherein the first data acquisition instruction is configured to request to acquire a second control parameter of the second device, the first device is one of an indoor unit and an outdoor unit of an air conditioner, and the second device is the other of the indoor unit and the outdoor unit of the air conditioner;
a receiving module configured to receive the second control parameter transmitted by the second device;
a processing module configured to store the second control parameter received by the receiving module in 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 non-volatile 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 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, wherein the second data acquisition instruction is used for requesting to acquire the second control parameter of the second device;
the sending module further configured to: and sending the second control parameter 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 the first data acquisition instruction to the second device, receiving second check-up information sent by the second device, wherein the second check-up information comprises at least one of the following: the product serial number of the second equipment and the first check value of the second control parameter;
the sending module further configured to: and responding to the second control parameter which is determined to be acquired from the second equipment according to the second check information, and sending the first data acquisition instruction to the second equipment.
In at least one embodiment, the processing apparatus for controlling parameters further includes a determining module configured to: determining that the second control parameter needs to be acquired from the second device in response to either 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 check-up information includes a first check-up value of the second control parameter;
the processing module further configured to: storing the second check-up information received by the receiving module in the first memory; determining a second check value of the second control parameter according to the second control parameter stored in the first memory; determining that the second control parameter stored in the first memory passes the check in response to the first check value being consistent with the second check value.
In at least one embodiment, the processing module is further configured to: storing the second check-up information stored in the first memory into the second memory in response to a check-up pass.
In at least one embodiment, the sending module is further configured to: sending first verification information to the second device, the first verification information including at least one of: the product serial number of the first device and a third check value of the 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, responding to the product serial number which is not read to the first equipment, and reading a first control parameter of the first equipment from the second memory;
the sending module further configured to: responding to the processing module not reading the first control parameter, and 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 further configured to: receiving the first control parameter sent by the second device;
the processing module 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: storing the first control parameter received by the receiving module in the second memory.
According to a third aspect of the embodiments of the present disclosure, there is provided a processing apparatus for controlling a parameter, 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 processing method of the control parameter 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 for processing control parameters provided by the first aspect of the present disclosure as described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the first device requests to acquire the 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, then verifies the received control parameters, and stores the control parameters in the second memory when the verification is passed. Therefore, the control parameters of the second device are effectively stored in the first device, and the second device plays a role in 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 being powered on next time, the second device can still acquire the control parameters required by the second device from the first device due to the fact that redundant backup of the control parameters of the second device is performed in the first device before, and normal operation of the second device is ensured. In addition, the received control parameters of the second device are firstly cached and then verified, and after the verification 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 the verification, so that the accuracy and the validity of the control parameters of the second equipment stored in the first equipment can be ensured, on the other hand, the control parameters passing the verification 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-down retention.
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 present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view illustrating an application scenario of an air conditioner according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of processing control parameters in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method of processing control parameters in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method of processing control parameters in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a processing device for controlling parameters in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating another apparatus for processing control parameters in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
It should be noted that all actions of acquiring signals, information or data in the present application are performed under the premise of complying with the corresponding data protection regulation 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 device according to an exemplary embodiment of the present disclosure. As shown in figure 1 of the drawings, in which, 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 between the two.
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 to each other, so as to realize transmission of signals and data between the indoor unit 101 and the outdoor unit 102. The indoor unit 101 operates according to indoor unit control parameters; the outdoor unit 102 operates according to outdoor unit control parameters. Typically, 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 each of 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 the problem, the present disclosure proposes a method for processing a control parameter, which is applied to a first device, where the first device is one of an indoor unit and an outdoor unit of an air conditioner. Referring to fig. 2, the method includes the steps of:
step S202, sending a first data obtaining instruction to a second device, where the first data obtaining instruction is used to request to obtain a second control parameter of the second device.
Wherein, the second equipment is the other one in air conditioning indoor set and the air condensing units. Exemplarily, if the first device is an air conditioner indoor unit, the second device is an air conditioner outdoor unit; and if the first equipment is the air conditioner outdoor unit, the second equipment is the air conditioner indoor unit.
The air-conditioning indoor unit and the air-conditioning outdoor unit respectively have corresponding control parameters. The control parameters of the indoor unit of the air conditioner may include, but are not limited to: the control parameters related to the internal blower and the electronic expansion valve, and the control parameters of the outdoor unit of the air conditioner may include, but are not limited to: and controlling parameters of a fan of the outdoor unit.
For the sake of convenience 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.
And the second equipment responds to the first data acquisition instruction, reads the second control parameter stored locally and sends the second control parameter to the first equipment.
And step S206, storing the received second control parameter into a first memory.
Wherein the first memory acts as a buffer for the received second control parameter. Illustratively, the first memory may be a Random Access Memory (RAM).
Step S208, verifying the second control parameter stored in the first memory.
The first device and the second device may be abnormal in communication, so that the second control parameter received by the first device may not be consistent with the second control parameter sent by the second device. Therefore, in order to verify that the second control parameter received by the first device is the second control parameter sent by the second device, and ensure the accuracy and reliability of the subsequent data storage, 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 into a second memory, where the second memory is a nonvolatile memory and is different from the first memory.
When the second control parameter check passes, it indicates that the second control parameter received by the first device is consistent with the second control parameter sent by the second device, and it may be considered that the second control parameter received by the first device is accurate and valid, and therefore, 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. Illustratively, the second memory may be a flash memory (flash).
In the above technical solution, the first device sends a data obtaining instruction to the second device to request to obtain the control parameter of the second device, and caches the received control parameter in the first memory, and then verifies the received control parameter, and when the verification passes, stores the control parameter in the second memory. Therefore, the control parameters of the second device are effectively stored in the first device, the second device plays a role in remotely backing up the control parameters, even if the second device is powered on next time and locally acquires the required control parameters, the second device can still acquire the required control parameters from the first device due to the fact that redundant backup of the control parameters of the second device is carried out in the first device before, and normal operation of the second device is guaranteed. In addition, the received control parameters of the second device are firstly cached, then verified, and after the verification 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 the verification, so that the accuracy and the validity of the control parameters of the second equipment stored in the first equipment can be ensured, on the other hand, the control parameters passing the verification are stored in the nonvolatile memory, and the safety of data storage can be improved by utilizing the characteristic of power failure retention of the nonvolatile memory.
In at least one embodiment, when the second control parameter fails to be verified, step S202 may be executed again, that is, the first data acquisition instruction is sent to the second device again. Or outputting communication abnormity information to prompt the user that the communication between the first device and the second device is abnormal. Or, when the second control parameter check fails, step S202 may be executed again, and after step S202 is executed again for several times, the second control parameter check still fails, and then the communication abnormality information is 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 method for processing the control parameter may further include the following steps:
step S212, in response to receiving a second data obtaining instruction sent by a second device, reading a second control parameter from a second memory, where the second data obtaining instruction is used to request to obtain a second control parameter of the second device;
step S214, sending the read second control parameter to the second device.
When the second device is powered on, the second control parameter may be obtained locally first. If the local acquisition of the second control parameters fails, the second device may send a second data acquisition instruction to the first device to request acquisition of the second control parameters 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 because the second control parameter is previously stored in the second memory, and then send the read second control parameter to the second device. In this way, the second device may acquire the control parameter required by itself from the first device and operate based on the second control parameter acquired from the first device.
Through the technical scheme, under the condition that the second equipment fails to locally acquire the second control parameter, the second control parameter 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 flow diagram illustrating a method of processing control parameters in accordance with an exemplary embodiment. As shown in fig. 4, before step S202, the method may further include:
step S216, receiving second check-up information sent by the second device, where the second check-up information may include at least one of the following: the product serial number of the second device and the first check value of the second control parameter.
Wherein, when the second device is powered on, the second device may first read its own product serial number (i.e., SN number). If the second device reads the product serial number of the second device, the target control parameter matched with the product serial number of the second device can be obtained as the second control parameter required by the second device 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 its own serial number, it may still read a third memory provided on its own side to obtain the second control parameter from the third memory. Before the second device was last powered down, the second control parameters it used may be stored in a third memory, which is a non-volatile memory, such as a flash. Therefore, when the second device is powered on at this time, if the product serial number of the second device is not read, the second device can continuously read the second control parameter from the third memory, so that the local redundancy backup of the second control parameter in the second device is improved. After reading the second control parameter 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 can be a cyclic redundancy check code algorithm, a hash encryption algorithm, and the like.
After reading the product serial number of the second device or after calculating the first check value of the second control parameter, the second device may send second check information to the first device, where the second check information may include at least one of the following: the product serial number of the second device and 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 check information.
After receiving the second check information, the first device may determine whether the second control parameter needs to be acquired from the second device according to the second check information.
For example, the first device determines that the second control parameter needs to be obtained from the second device in response to any one of the following conditions being met:
the second memory does not store the second control parameter;
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 normally operate, the nonvolatile memory on the self side can store the product serial number of the other side, the control parameter of the other side and the check value of the control parameter of the other side. 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, due to device replacement or other reasons, the device performing information interaction this time may be different from the previous device, for example, if the second device is replaced, the product serial number of the original second device currently stored in the second memory of the first device and the check value of the second control parameter of the original second device may be mismatched with the current second device, and therefore, if the product serial number in the received second check information is inconsistent with the product serial number of the second device stored in the second memory, or the first check value in the received second check information is inconsistent with the check value of the second control parameter stored in the second memory, the first device determines that the second control parameter of the current second device needs to be acquired from the second device.
Determining from the second check-up information when the second device acquires the second control parameter, the first device sends the first data acquisition instruction to the second device, that is, the step S202 is executed.
Through the technical scheme, the second control parameter which is valid last time of the second equipment can be ensured to be always stored in the second memory of the first equipment, so that when the second equipment reversely acquires the second control parameter from the first equipment, the first equipment provides the second control parameter which is valid last time to the second equipment.
In at least one embodiment, the first device may store the received second check-up information in the first memory after receiving the second check-up information. That is, the second check-up information is cached in the first memory.
Thereafter, the first device may 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;
determining that the second control parameter stored in the first memory passes the check in response to the first check value being consistent with the second check value.
Illustratively, 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, after receiving the second check-up information sent by the second device, the first device also caches the second check-up information in the first memory. Wherein the second check information includes 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, a second check value of the second control parameter is calculated according to the second control parameter stored in the first memory and a preset check algorithm. The verification algorithm used by the first device when obtaining the second verification value is the same as the verification algorithm used by the second device when obtaining the first verification value, and the two devices can preset the same type of verification algorithm used. When the first check value stored in the first memory is consistent with the second check value calculated by the first device, it indicates that the second control parameter received by the first device is consistent with the second control parameter sent by the second device, at this time, it is determined that the second control parameter stored in the first memory passes 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, it indicates that the second control parameter received by the first device is inconsistent with the second control parameter sent by the second device, and at this time, it is determined that the second control parameter stored in the first memory fails to be checked.
In at least one embodiment, the first device may delete the second check-up information stored in the first memory when the second control parameter stored in the first memory fails to pass the check-up.
In at least one embodiment, the method for processing the control parameter may further include:
storing the second check-up information stored in the first memory into the second memory in response to a check-up pass.
That is, when it is determined that the second control parameter stored in the first memory passes the verification, the first device stores the second verification information cached in the first memory into the second memory. Therefore, after the first device is powered off, the latest product serial number and/or the check value of the second control parameter of the second device can still be effectively stored in the second memory.
In at least one embodiment, the method for processing the control parameter may further include:
sending first verification information to a second device, the first verification information including at least one of: the product serial number of the first device and a third check value of the first control parameter of the first device.
After being powered on, the first device also obtains the first control parameter required by the first device from the local. As described above, the first device and the second device may perform redundant backup of the control parameters with 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, when powered on, may first read its own product serial number (i.e., SN number). If the first device reads the product serial number of the first device, the target control parameter matched with the product serial number of the first device can be obtained as the first control parameter required by the first device 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 verification value of the first control parameter based on the first control parameter and a preset verification algorithm.
Or, if the first device does not read its product serial number, it may still read a second memory provided on its own side to obtain the first control parameter from the second memory. The first control parameter 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 at this time, if the product serial number of the first device is not read, the first device can continuously read the first control parameter from the second memory, so that the local redundancy backup of the first control parameter in 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 can be a cyclic redundancy check code algorithm, a hash encryption algorithm, and the like.
After reading the product serial number of the first device or after calculating the third check value of the first control parameter, the first device may send first check information to the second device, where the first check information may include at least one of the following: the product serial number of the first device and the third check value of the first control parameter.
After receiving the first check information sent by the first device, the second device may determine, according to the first check information, whether the first control parameter needs to be acquired from the first device and how the first device checks the second control parameter by using the second check information in the same manner as described above, that how the first device determines whether the second control parameter needs to be acquired from the second device according to the second check information, and how the first device checks the second control parameter by using the second check information, which is not described in detail herein.
In at least one embodiment, the method for processing the control parameter may further include:
when the first equipment is powered on, responding to the product serial number which is not read to the first equipment, and reading a first control parameter of the first equipment from the second memory;
responding to the condition that the first control parameter is not read, and sending a third data acquisition instruction to the second equipment, 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 device;
and controlling the first equipment to operate according to the first control parameter.
As described above, when the first device is powered on, the locally recorded product serial number of the first device is preferentially read. 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 storage due to abnormal reading or storage failure, the first device may ask the second device for help by sending a third data acquisition instruction to the second device to request acquisition of the first control parameter. After receiving the third data obtaining instruction, the second device obtains the first control parameter of the first device from local, for example, reads from the third memory of the local side. And then, the second equipment sends the first control parameter of the first equipment to the first equipment. 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 obtain the first control parameter required by the first device from the local, the first device can also obtain the first control parameter of the redundant backup in the second device from the second device, and the first device can be ensured to normally operate.
In at least one embodiment, the method for processing the control parameter may further include: storing the received first control parameter in the second memory.
That is, after acquiring the first control parameter of the first device from the second device, the first device may store the first control parameter in the second memory. Therefore, once the product serial number of the first product is not read when the first device is powered 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 obtain the first control parameter required by the operation locally.
It is worth mentioning that the above described processing method applied to the control parameter on the side of the first device is equally applicable to the second device. That is, by swapping the first device and the second device involved in the above-described method, swapping the first control parameter and the second control parameter, replacing the first memory with a nonvolatile memory on the second device side, that is, a third memory, and replacing the second memory with a fourth memory (for example, a RAM) on the second device side, which is different from the third memory, the processing method applied to the control parameter on the second device side can be implemented. The detailed flow is not described herein.
Fig. 5 is a block diagram illustrating a processing device 500 for controlling parameters according to an exemplary embodiment. The processing apparatus 500 can be applied to a first device, and performs the processing method of the control parameter. Referring to fig. 5, the processing apparatus 500 may include:
a sending module 510, configured to send a first data obtaining instruction to a second device, where the first data obtaining instruction is configured to request to obtain a second control parameter of the second device, where the first device is one of an indoor unit and an outdoor unit of an air conditioner, and the second device is the other of the indoor unit and the outdoor unit of the air conditioner;
a receiving module 520 configured to receive the second control parameter transmitted by the second device;
a processing module 530 configured to store the second control parameter received by the receiving module 520 in 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 non-volatile 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, further configured to: in response to the receiving module 520 receiving a second data obtaining instruction sent by the second device, reading the second control parameter from the second memory, where the second data obtaining instruction is used to request to obtain 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 obtaining instruction to the second device, receiving second check-up information sent by the second device, where the second check-up information includes at least one of: the product serial number of the second device and a first check value of the second control parameter;
the sending module 510 is further configured to: and responding to the second control parameter which is determined to need to be acquired from the second equipment according to the second check information, and sending the first data acquisition instruction to the second equipment.
In at least one embodiment, the processing apparatus of the control parameter may further include a determining module configured to: determining that the second control parameter needs 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 check-up information includes a first check-up value of the second control parameter;
the processing module 530, further configured to: storing the second check-up information received by the receiving module 520 in the first memory; according to the second control parameter stored in the first memory, determining a second check value of the second control parameter; determining that the second control parameter stored in the first memory passes the check in response to the first check value being consistent with the second check value.
In at least one embodiment, the processing module 530 is further configured to: storing the second check-up information stored in the first memory into the second memory in response to a check-up pass.
In at least one embodiment, the sending module 510 is further configured to: sending first verification information to the second device, the first verification information including at least one of: the product serial number of the first device and a third check value of the 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, responding to the product serial number which is not read to the first equipment, and reading a first control parameter of the first equipment from the second memory;
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 obtaining instruction to the second device, where the third data obtaining instruction is used to request to obtain the first control parameter;
the receiving module 520 is further configured to: receiving the first control parameter sent by the second device;
the processing module 530, further configured to: and controlling the first device 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: storing the first control parameter received by the receiving module 520 in the second memory.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
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: processing component 602, memory 604, power component 606, input/output interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation 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 a portion of the steps of the processing method for controlling parameters 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 for 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 non-volatile 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 disks.
The power supply component 606 provides power to the various components of the processing device 600. The power 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.
Input/output interface 612 provides an interface between processing component 602 and peripheral interface modules, which may be buttons, switches, and the like. These buttons may include, but are not limited to: a start button and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of state assessment for the processing device 600.
The communication component 616 is configured to facilitate communications between the processing apparatus 600 and other devices 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 an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an 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 device 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, micro-controllers, microprocessors or other electronic components for performing the above-described processing methods of the control parameters.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method of processing control parameters is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 method of processing control parameters when 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 variations, 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 in 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A processing method for control parameters is applied to a first device, and the method comprises the following steps:
sending a first data acquisition instruction to a second device, wherein the first data acquisition instruction is used for requesting to acquire a second control parameter of the second device, the first device is one of an indoor unit and an outdoor unit of an air conditioner, and the second device is the other of the indoor unit and the outdoor unit of the air conditioner;
receiving the second control parameter sent by the second device;
storing the received second control parameter in a first memory;
verifying the second control parameter stored in the first memory;
and responding to the verification passing, and 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.
2. The method of processing control parameters according to claim 1, characterized in that 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, wherein the second data acquisition instruction is used for requesting to acquire the second control parameter of the second device;
and sending the read second control parameter to the second equipment.
3. The method of claim 1, wherein prior to sending the first data acquisition instruction to the second device, the method further comprises:
receiving second check-up information sent by the second device, wherein the second check-up information comprises at least one of the following: the product serial number of the second device and a first check value of the second control parameter;
and responding to the second control parameter which is determined to be acquired from the second equipment according to the second check information, and sending the first data acquisition instruction to the second equipment.
4. The method of claim 3, wherein the method further comprises: determining that the second control parameter needs to be acquired from the second device in response to any one of the following conditions being met:
the second memory does not store the second control parameter;
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.
5. The method according to claim 3, wherein the second check information includes a first check value of the second control parameter; the method further comprises the following steps:
storing the received second check-up 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;
determining that the second control parameter stored in the first memory passes the check in response to the first check value being consistent with the second check value.
6. The method of claim 5, further comprising:
storing the second check-up information stored in the first memory into the second memory in response to a check-up pass.
7. The method of processing control parameters according to claim 1, characterized in that the method further comprises:
sending first verification information to the second device, the first verification information including at least one of: the product serial number of the first device and a third check value of the first control parameter of the first device.
8. The method of processing control parameters according to claim 1, characterized in that the method further comprises:
when the first equipment is powered on, responding to the product serial number which is not read to the first equipment, and reading a first control parameter of the first equipment from the second memory;
responding to the first control parameter which is not read, and sending a third data acquisition instruction to the second equipment, 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 device;
and controlling the first equipment to operate according to the first control parameter.
9. The method of claim 8, further comprising:
storing the received first control parameter in the second memory.
10. A control parameter processing apparatus, applied to a first device, for executing the control parameter processing method according to any one of claims 1 to 9, including:
a sending module configured to send a first data acquisition instruction to a second device, wherein the first data acquisition instruction is configured to request to acquire a second control parameter of the second device, the first device is one of an indoor unit and an outdoor unit of an air conditioner, and the second device is the other of the indoor unit and the outdoor unit of the air conditioner;
a receiving module configured to receive the second control parameter transmitted by the second device;
a processing module configured to store the second control parameter received by the receiving module in a first memory; verifying 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.
11. A processing apparatus for controlling a parameter, 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 parameter of any of claims 1 to 9.
12. 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 one of claims 1 to 9.
CN202210772679.0A 2022-06-30 2022-06-30 Control parameter processing method and device and storage medium Pending CN115143590A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=83409396

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115143590A (en)

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
US20160370799A1 (en) * 2015-06-19 2016-12-22 Trane International Inc. Self-learning fault detection for hvac systems
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

Patent Citations (12)

* 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
US20160370799A1 (en) * 2015-06-19 2016-12-22 Trane International Inc. Self-learning fault detection for hvac systems
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

Similar Documents

Publication Publication Date Title
ES2922287T3 (en) Procedure, device and server to unlock an air conditioning unit
US11112137B2 (en) HVAC performance monitoring system
US20210157570A1 (en) Vehicle master device, installation instruction determination method and computer program product
US20100097463A1 (en) Monitoring unit control system
KR101911264B1 (en) Air conditioner and method for controlling the same
US20180244152A1 (en) System and method for remotely controlling and monitoring vehicle based on iot
CN111562933A (en) Air conditioner upgrading method and air conditioner system
JPWO2020044447A1 (en) How to update the air conditioning system and the program of the air conditioning system
US20230315436A1 (en) Program update system, program transmission device, and program transmission method
CN111780342A (en) Air conditioner
CN105204551A (en) Air-conditioning remote closed-loop control system, and remote control method and device of air-conditioning system
CN110762769A (en) Unit debugging method and device, debugging equipment, medium and air conditioning system
US10935271B2 (en) System and method of HVAC health monitoring for connected homes
CN115143590A (en) Control parameter processing method and device and storage medium
JP2006244269A (en) Facility managing device, program update system, facility management program updating method, starting program and facility management program
US10237131B2 (en) Communication adapter and program update method for communication adapter
CN112765679A (en) Sensor data management method, device and system and storage medium
US10330352B2 (en) Self-healing thermostat heat pump reversing valve setting
CN112460752B (en) Anti-theft control method and system for split air conditioner, air conditioner and terminal
US7917801B2 (en) Systems and methods for managing network communications
CN113839997A (en) Air conditioner and equipment information acquisition method thereof
CN109764500B (en) Control method and device for solving unit operation mode conflict and unit
US11442720B2 (en) Communication adapter and program update method for communication adapter
CN203759533U (en) Testing apparatus for air-conditioning control system
CN111895620A (en) Air conditioner control method, air conditioner, server and air conditioner control device

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