Air conditioner encryption processing method and device, storage medium and air conditioner
By obtaining and calculating the cumulative time interval, the communication time interval between controllers and the sensing element sampling value in the air conditioner, the real random key is generated, and the problem of key generation relies on external devices or non-true random numbers in the existing air conditioner encryption processing is solved, which significantly improves the encryption security of the air conditioner.
Patent Information
- Application Number
- CN202411820657.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-28
AI Technical Summary
In the existing air conditioner encryption process, key generation depends on external devices or uses non-true random numbers, resulting in poor encryption security.
By obtaining variables such as the cumulative time interval and the communication time interval between controllers, and computing them in combination with the sampling value of the sensing element, a true random key is generated for air conditioning encryption operation.
Without relying on external devices, generate keys with good randomness, significantly improving the encryption security of the air conditioner.
Smart Images

Figure CN119728099A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of air conditioning, and in particular to an air conditioning encryption processing method, device, storage medium and air conditioning. Background Art
[0002] There are various encryption requirements in many air-conditioning products. During the encryption process, keys are usually sampled for air-conditioning encryption operations. The higher the randomness of the generated key, the higher the encryption security is. Therefore, it is of great significance if the generated random key is a true random number.
[0003] At present, when generating random keys, some methods need to rely on network, positioning, geographic location and other data, and thus need to rely on external devices that provide these data. In some methods, functions such as rand() are used to generate them, which cannot achieve true randomness.
[0004] Therefore, during the current encryption process of the air conditioner, the generation of the encryption key needs to rely on external devices or the generated encryption key cannot be truly random, resulting in poor encryption security of the air conditioner. Summary of the invention
[0005] The embodiment of the present application provides a solution that can effectively improve the encryption security of the air conditioner.
[0006] The embodiments of the present application provide the following technical solutions:
[0007] According to one embodiment of the present application, an air conditioner encryption processing method includes: in response to an encryption instruction, obtaining a first variable, a second variable and a sampling value of a sensing element, wherein the first variable is a value obtained by accumulating a preset reference value according to a cumulative time interval, and the second variable is a time interval from a roll call by a first controller in the air conditioner to a reply from a second controller; performing calculations based on the first variable, the second variable and the sampling value to obtain a random value; obtaining a random key based on the random value, and the random key is used to perform air conditioner encryption operations.
[0008] In some embodiments of the present application, obtaining a random key according to the random value includes one of the following methods: determining the random value as the random key; obtaining a unique corresponding parameter value of the air conditioner, and calculating based on the random value and the parameter value to obtain the random key.
[0009] In some embodiments of the present application, the obtaining of the unique corresponding parameter value of the air conditioner includes at least one of the following methods: if there is controller local area network communication in the air conditioner, obtaining the local address of the air conditioner in the controller local area network; obtaining the unique identifier of the air conditioner, and the unique corresponding parameter value of the air conditioner includes at least one of the local address of the air conditioner and the unique identifier.
[0010] In some embodiments of the present application, the sensing element includes a sampling resistor; the sampling value of the sensing element is obtained in the following manner: obtaining the resistance value of the sampling resistor; using the resistance value as the sampling value, or calculating the environmental sensing data based on the resistance value as the sampling value.
[0011] In some embodiments of the present application, the method for obtaining the second variable includes one of the following methods: sending a roll call message to the second controller through the first controller, receiving a reply message from the second controller through the first controller, and counting the time interval from sending the roll call message to receiving the reply message as the second variable; sending a roll call message and a random task to the second controller through the first controller, and receiving a reply message returned by the second controller after completing the random task through the first controller, and counting the time interval from sending the roll call message to receiving the reply message as the second variable.
[0012] In some embodiments of the present application, before obtaining the first variable, the second variable and the sampling value of the sensing element in response to the encryption instruction, the method also includes: initializing the preset reference value; accumulating a specified value to the preset reference value according to a cumulative time interval; correspondingly, the method for obtaining the first variable includes one of the following methods: obtaining the moment when the encryption instruction is triggered, and accumulating the preset reference value to obtain a value as the first variable.
[0013] In some embodiments of the present application, accumulating a specified value to the preset reference value according to cumulative time intervals includes: generating a random time interval sequence; and accumulating a specified value to the preset reference value according to random cumulative time intervals in the random time interval sequence.
[0014] According to one embodiment of the present application, an air conditioner encryption processing device includes: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
[0015] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of an air conditioner, the air conditioner executes the method described in the embodiment of the present application.
[0016] According to another embodiment of the present application, an air conditioner may include the air conditioner encryption processing device as described in the embodiment of the present application and other air conditioner modules.
[0017] According to another embodiment of the present application, a computer program product or a computer program includes computer instructions stored in a computer-readable storage medium. A processor of an air conditioner reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the air conditioner executes the method provided in various optional implementations described in the embodiments of the present application.
[0018] In an embodiment of the present application, in response to an encryption instruction, a first variable, a second variable and a sampling value of a sensing element are obtained, wherein the first variable is a value obtained by accumulating a preset reference value according to a cumulative time interval, and the second variable is a time interval from the roll call of the first controller in the air conditioner to the reply of the second controller; a random value is obtained by calculation based on the first variable, the second variable and the sampling value; a random key is obtained according to the random value, and the random key is used to perform air conditioner encryption operations.
[0019] In the manner of the embodiment of the present application, the first variable, the second variable and the sampling value of the sensing element with good randomness can be obtained locally in the air conditioner without relying on external devices, and the random value calculated based on the first variable, the second variable and the sampling value of the sensing element has good true randomness. Based on the random value, a truly random random key can be generated, and the random key can be used to perform related encryption operations in the air conditioner to have a good encryption effect, effectively improving the encryption security of the air conditioner. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A flow chart of an air conditioner encryption processing method according to an embodiment of the present application is shown.
[0022] Figure 2 A variable generation flow chart according to an embodiment of the present application is shown.
[0023] Figure 3 A variable generation flow chart according to another embodiment of the present application is shown.
[0024] Figure 4 A block diagram of an air conditioner encryption processing device according to an embodiment of the present application is shown.
[0025] Figure 5 A block diagram of an air conditioner according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.
[0027] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).
[0028] For example, the air conditioner encryption processing method provided in the embodiment of the present disclosure includes a series of steps, but the air conditioner encryption processing method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the air conditioner encryption processing device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on information.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0030] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0031] Figure 1 The flowchart of the air conditioner encryption processing method according to one embodiment of the present application is schematically shown. The execution subject of the air conditioner encryption processing method can be any air conditioner with processing capability.
[0032] like Figure 1 As shown, the air conditioner encryption processing method may include steps S110 to S130.
[0033] Step S110, in response to the encrypted instruction, obtaining a first variable, a second variable and a sampling value of a sensing element, wherein the first variable is a value obtained by accumulating a preset reference value according to an accumulation time interval, and the second variable is a time interval from a roll call by the first controller to a reply by the second controller in the air conditioner;
[0034] Step S120, performing calculation based on the first variable, the second variable and the sampled value to obtain a random value;
[0035] Step S130: obtaining a random key according to the random value, wherein the random key is used to perform an air conditioner encryption operation.
[0036] In response to the encryption instruction, the air conditioner obtains the first variable, the second variable and the sampling value of the sensing element. The encryption instruction can be triggered by the random air conditioner encryption operation. Among them, the first variable is the value obtained by accumulating the preset reference value according to the cumulative time interval. Due to the randomness of the encryption process, the first variable accumulated at the encryption time can be obtained randomly. The second variable is the time interval from the first controller in the air conditioner to the second controller's reply. The time interval can be at the ms level. Due to differences in chips, hardware, etc., the reply time will be different each time, so that a second variable with good randomness can be obtained. The sampling value of the sensing element in the air conditioner changes randomly with changes in the sensing environment, so it will also have good randomness.
[0037] The sampling value of the sensing element. The first variable, the second variable and the sampling value of the sensing element can be obtained locally in the air conditioner without relying on external equipment, and the sampling values of the first variable, the second variable and the sensing element have good randomness. The random value calculated based on the first variable, the second variable and the sampling value of the sensing element has good true randomness. Based on the random value, a truly random random key can be generated, and based on the random key used to perform related encryption operations in the air conditioner, it can have a good encryption effect and is not easily cracked by random numbers by external devices.
[0038] Among them, the method of calculating the random value based on the first variable, the second variable and the sampling value of the sensing element can be calculated according to a preset function. For example, the first variable, the second variable and the sampling value of the sensing element can be added or multiplied, etc. This application does not make any specific limitations on this.
[0039] Furthermore, in the manner of the embodiments of the present application, the first variable, the second variable, and the sampling value of the sensing element with good randomness can be obtained locally in the air conditioner without relying on external devices, and the random value calculated based on the first variable, the second variable, and the sampling value of the sensing element has good true randomness. Based on the random value, a truly random random key can be generated, and the random key can be used to perform related encryption operations in the air conditioner to have a good encryption effect, effectively improving the encryption security of the air conditioner.
[0040] Described below Figure 1 When performing air conditioning encryption processing under the embodiment, further optional specific embodiments are provided for each step performed.
[0041] In one embodiment, the sensing element includes a sampling resistor; the sampling value of the sensing element can be specifically obtained in the following manner: obtaining the resistance value of the sampling resistor; using the resistance value as the sampling value, or calculating environmental sensing data based on the resistance value as the sampling value.
[0042] Sampling resistors are usually provided in air conditioners, such as temperature-sensitive resistors, humidity-sensitive resistors, etc. After obtaining the resistance value of the sampling resistor, since the sampling resistor changes dynamically with the change of the environment, the resistance value is used as the sampling value, or the environmental sensing data (such as ambient temperature or ambient humidity) calculated according to the resistance value is used as the sampling value, which can have good randomness.
[0043] Furthermore, the sensing element may also be other elements for sensing functions provided in the air conditioner. For example, when human body sensing is selected as the sensing element, the sampling value may be the position of the human body, etc.
[0044] In one embodiment, see Figure 2 , the method for obtaining the second variable may specifically include one of the following methods:
[0045] The first method, step S210, is to send a roll call message to the second controller through the first controller, and receive a reply message from the second controller through the first controller, and to count the time interval from sending the roll call message to receiving the reply message as the second variable;
[0046] The second type, step S220, sends a roll call message and a random task to the second controller through the first controller, and receives a reply message returned by the second controller after completing the random task through the first controller, and counts the time interval from sending the roll call message to receiving the reply message as the second variable.
[0047] In the first method, the first controller only sends a roll call message to the second controller to trigger the second controller to directly respond with a reply message, and then the time interval from sending the roll call message to receiving the reply message is counted as the second variable, that is, the second variable is the time interval from the roll call of the first controller in the air conditioner to the reply of the second controller, and the time interval can be at the ms level. Due to differences in chips, hardware, etc., the reply time each time will be different, so that a second variable with good randomness can be obtained.
[0048] In the second method, the first controller not only sends a roll call message to the second controller but also sends a random task to trigger the second controller to respond to the reply message after completing the random task, and then the time interval from sending the roll call message to receiving the reply message is counted as the second variable, thereby further improving the randomness of the second variable through the random task processing process. Among them, the first controller can randomly select one or more tasks from the preset task library as random tasks.
[0049] In one embodiment, see Figure 3 Before obtaining the first variable, the second variable and the sampling value of the sensing element in response to the encryption instruction, the method also includes: step S310, initializing the preset reference value; step S320, adding a specified value to the preset reference value according to a cumulative time interval; correspondingly, the first variable can be obtained in the following manner: step S330, obtaining the moment when the encryption instruction is triggered, and accumulating the preset reference value to obtain a value as the first variable.
[0050] For example, when the air conditioner is started, a preset reference value A can be established and initialized to a fixed value, and then a specified value (for example, +1) is accumulated every certain cumulative time interval T, and the cycle continues. When the encryption instruction is triggered, the accumulated value at the time when the encryption instruction is triggered can be obtained as the first variable, thereby obtaining a random first variable.
[0051] Optionally, in other methods, after the preset reference value is initialized, the preset reference value may be accumulated by multiplying or dividing the preset reference value according to the accumulation time interval to obtain a specified value (eg *2).
[0052] In some embodiments, adding a specified value to the preset reference value according to a cumulative time interval includes: taking a predetermined time interval as a cumulative time interval, for example, adding a specified value to the preset reference value at each predetermined time interval T.
[0053] Further, in one embodiment, the adding a specified value to the preset reference value according to a cumulative time interval may include: generating a random time interval sequence; and adding a specified value to the preset reference value according to a random cumulative time interval in the random time interval sequence.
[0054] Generate a random time interval sequence, where the random time interval sequence is a sequence formed by multiple random cumulative time intervals, for example, the random time interval sequence is T1, T2, ..., Tn, where T1, T2, ..., Tn can be different from each other. Thus, the preset reference value can be accumulated with a specified value according to the random cumulative time intervals in the random time interval sequence, so that the obtained first variable further improves randomness.
[0055] In one embodiment, obtaining a random key according to the random value may include one of the following methods:
[0056] First, the random value is determined as the random key;
[0057] The second method is to obtain a unique corresponding parameter value of the air conditioner, and perform calculation based on the random value and the parameter value to obtain the random key.
[0058] In the first method, the calculated random value is directly determined as a random key, and the random key has good randomness.
[0059] In the second method, a parameter value uniquely corresponding to the air conditioner is further obtained, and a random key is calculated based on the random value and the parameter value. The random key further ensures uniqueness on the basis of good randomness, further improving the encryption effect of the air conditioner. Among them, the method of calculating based on the random value and the parameter value can be calculated based on a preset formula, such as addition or multiplication, etc., and this application does not make specific limitations on this.
[0060] Specifically, the obtaining of the unique corresponding parameter value of the air conditioner may include at least one of the following methods: if there is controller local area network communication in the air conditioner, obtaining the local address of the air conditioner in the controller local area network; obtaining the unique identifier of the air conditioner, and the unique corresponding parameter value of the air conditioner includes at least one of the local address of the air conditioner and the unique identifier.
[0061] If there is controller area network communication (CAN communication) in the air conditioner, the local address of the air conditioner in the controller area network (CAN IP address) can be obtained. The unique identifier of the air conditioner (such as SN code or MAC address, etc.) can also be obtained. Then, at least one of the local address of the air conditioner and the unique identifier can be used as the unique corresponding parameter value of the air conditioner.
[0062] In order to facilitate better implementation of the air conditioner encryption processing method provided in the embodiment of the present application, the embodiment of the present application also provides an air conditioner encryption processing device based on the air conditioner encryption processing method. The meanings of the terms are the same as those in the air conditioner encryption processing method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of an air conditioner encryption processing device according to an embodiment of the present application is shown.
[0063] like Figure 4 As shown, the air conditioner encryption processing device 400 may include one or more processing core processors 401, one or more computer-readable storage media memories 402 and other components. Those skilled in the art will understand that Figure 4 The air conditioner structure shown in the figure does not constitute a limitation on the air conditioner, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0064] The processor 401 is the control center of the air-conditioning encryption processing device. It uses various interfaces and lines to connect the various parts of the entire air-conditioning encryption processing device. By running or executing the software programs and / or modules stored in the memory 402, and calling the data stored in the memory 402, it executes various functions of the air-conditioning encryption processing device and processes data, thereby monitoring the air-conditioning encryption processing device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0065] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the air conditioner encryption processing device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0066] Specifically in this embodiment, the processor 401 in the air conditioner encryption processing device will load the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 will run the computer program stored in the memory 402, so as to realize various functions in the aforementioned embodiments of the present application. For example, the processor 401 can perform the following steps:
[0067] In response to an encryption instruction, a first variable, a second variable and a sampling value of a sensing element are obtained, wherein the first variable is a value obtained by accumulating a preset reference value according to a cumulative time interval, and the second variable is a time interval from a roll call by a first controller in the air conditioner to a reply by a second controller; a random value is obtained by calculation based on the first variable, the second variable and the sampling value; a random key is obtained according to the random value, and the random key is used to perform air conditioner encryption operations.
[0068] In some embodiments of the present application, obtaining a random key according to the random value includes one of the following methods: determining the random value as the random key; obtaining a unique corresponding parameter value of the air conditioner, and calculating based on the random value and the parameter value to obtain the random key.
[0069] In some embodiments of the present application, the obtaining of the unique corresponding parameter value of the air conditioner includes at least one of the following methods: if there is controller local area network communication in the air conditioner, obtaining the local address of the air conditioner in the controller local area network; obtaining the unique identifier of the air conditioner, and the unique corresponding parameter value of the air conditioner includes at least one of the local address of the air conditioner and the unique identifier.
[0070] In some embodiments of the present application, the sensing element includes a sampling resistor; the sampling value of the sensing element is obtained in the following manner: obtaining the resistance value of the sampling resistor; using the resistance value as the sampling value, or calculating the environmental sensing data based on the resistance value as the sampling value.
[0071] In some embodiments of the present application, the method for obtaining the second variable includes one of the following methods: sending a roll call message to the second controller through the first controller, receiving a reply message from the second controller through the first controller, and counting the time interval from sending the roll call message to receiving the reply message as the second variable; sending a roll call message and a random task to the second controller through the first controller, and receiving a reply message returned by the second controller after completing the random task through the first controller, and counting the time interval from sending the roll call message to receiving the reply message as the second variable.
[0072] In some embodiments of the present application, before obtaining the first variable, the second variable and the sampling value of the sensing element in response to the encryption instruction, the method also includes: initializing the preset reference value; accumulating a specified value to the preset reference value according to a cumulative time interval; correspondingly, the method for obtaining the first variable includes one of the following methods: obtaining the moment when the encryption instruction is triggered, and accumulating the preset reference value to obtain a value as the first variable.
[0073] In some embodiments of the present application, accumulating a specified value to the preset reference value according to cumulative time intervals includes: generating a random time interval sequence; and accumulating a specified value to the preset reference value according to random cumulative time intervals in the random time interval sequence.
[0074] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0075] In addition, according to another embodiment of the present application, an air conditioner 500 is provided, which may include the air conditioner encryption processing device 400 as described in the embodiment of the present application and other air conditioner modules 510, wherein the other air conditioner modules 510 are, for example, indoor and outdoor units of the air conditioner.
[0076] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0077] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.
[0078] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0079] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0080] According to another embodiment of the present application, a computer program product or a computer program includes computer instructions stored in a computer-readable storage medium. A processor of an air conditioner reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the air conditioner executes the method provided in various optional implementations described in the embodiments of the present application.
[0081] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0082] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. An air conditioning encryption processing method, characterized in that: include: In response to the encrypted instruction, a first variable, a second variable and a sampling value of a sensing element are obtained, wherein the first variable is a value obtained by accumulating a preset reference value according to an accumulation time interval, and the second variable is a time interval from a roll call by a first controller to a reply by a second controller in the air conditioner; Perform calculation based on the first variable, the second variable and the sampling value to obtain a random value; A random key is obtained according to the random value, and the random key is used to perform an air conditioner encryption operation.
2. The method according to claim 1, characterized in that The obtaining of a random key according to the random value includes one of the following methods: Determining the random value as the random key; A unique corresponding parameter value of the air conditioner is obtained, and a calculation is performed based on the random value and the parameter value to obtain the random key.
3. The method according to claim 2, characterized in that The obtaining of the unique corresponding parameter value of the air conditioner includes at least one of the following methods: If there is a controller area network communication in the air conditioner, obtaining the local address of the air conditioner in the controller area network; A unique identifier of the air conditioner is obtained, wherein the unique corresponding parameter value of the air conditioner includes at least one of the local address of the air conditioner and the unique identifier.
4. The method according to claim 1, characterized in that: The sensing element includes a sampling resistor; the sampling value of the sensing element is obtained in the following manner: Obtaining the resistance value of the sampling resistor; The resistance value is used as the sampling value, or environmental sensing data is calculated according to the resistance value and used as the sampling value.
5. The method according to claim 1, characterized in that The second variable is obtained in one of the following ways: sending a roll call message to the second controller through the first controller, receiving a reply message from the second controller through the first controller, and counting a time interval from sending the roll call message to receiving the reply message as the second variable; The first controller sends a roll call message and a random task to the second controller, and the first controller receives a reply message returned by the second controller after completing the random task, and the time interval from sending the roll call message to receiving the reply message is counted as the second variable.
6. The method according to claim 1, characterized in that Before acquiring the first variable, the second variable and the sampled value of the sensing element in response to the encryption instruction, the method further includes: Initializing the preset reference value; Accumulate a specified value to the preset reference value according to a cumulative time interval; Correspondingly, the first variable is obtained in the following manner: The time when the encryption instruction is triggered is obtained, and a value is obtained by accumulating the preset reference value as the first variable.
7. The method according to claim 6, characterized in that The step of adding a specified value to the preset reference value according to the accumulation time interval includes: Generate a sequence of random time intervals; The preset reference value is accumulated by a specified value according to random accumulation time intervals in the random time interval sequence.
8. An air conditioning encryption processing device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of the air conditioner, the air conditioner executes the method according to any one of claims 1 to 7.
10. An air conditioner, characterized in that: It includes the air conditioning encryption processing device as described in claim 8 and other air conditioning modules.