CN117240504B - Data transmission encryption method and system for remote control of air conditioner - Google Patents

Data transmission encryption method and system for remote control of air conditioner Download PDF

Info

Publication number
CN117240504B
CN117240504B CN202311026173.6A CN202311026173A CN117240504B CN 117240504 B CN117240504 B CN 117240504B CN 202311026173 A CN202311026173 A CN 202311026173A CN 117240504 B CN117240504 B CN 117240504B
Authority
CN
China
Prior art keywords
data
remote control
air conditioner
bits
control data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311026173.6A
Other languages
Chinese (zh)
Other versions
CN117240504A (en
Inventor
王东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Weigao Intelligent Control Co ltd
Original Assignee
Guangdong Weigao Intelligent Control 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 Guangdong Weigao Intelligent Control Co ltd filed Critical Guangdong Weigao Intelligent Control Co ltd
Priority to CN202311026173.6A priority Critical patent/CN117240504B/en
Publication of CN117240504A publication Critical patent/CN117240504A/en
Application granted granted Critical
Publication of CN117240504B publication Critical patent/CN117240504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data transmission encryption method and a system for remote control of an air conditioner, wherein the method comprises the following steps: the method comprises the steps that a sending end obtains original air conditioner remote control data to be transmitted, receiving end key data and key calibration data; the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained receiving end key data and key calibration data to obtain encrypted air conditioner remote control data; the sending end checks the encrypted air conditioner remote control data through the acquired secret key calibration data to obtain check air conditioner remote control data; the sending end forms the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into air conditioner remote control data to be sent, and sends the air conditioner remote control data to be sent to the receiving end; the receiving end restores the air conditioner remote control data to be sent to obtain the original air conditioner remote control data. The invention is used for solving the technical problem that the instruction data sent by the existing air conditioner remote control are easy to be broken and stolen, and achieves the aim of improving the reliability of the air conditioner remote control data transmission.

Description

Data transmission encryption method and system for remote control of air conditioner
Technical Field
The invention relates to the technical field of data encryption, in particular to a data transmission encryption method and system for remote control of an air conditioner.
Background
In an air conditioning system, a wireless remote control is generally required to control the operation of the air conditioning system, wherein the wireless remote control refers to non-contact remote control of a controlled object. A remote control system is generally composed of two parts, a transmitter circuit and a receiver circuit. The air conditioner remote controller widely uses infrared rays to send control instructions, and the principle of the air conditioner infrared remote control is shown in figure 1. When a function key in the remote controller is pressed, the coding circuit codes the pressed key to form a coding instruction string. In order to prevent the infrared remote control signal from being interfered by other infrared signals in the wireless transmission process, the coding command string is modulated on a specific carrier frequency, and then the power amplification circuit drives the infrared light emitting diode to emit the modulated pulse infrared signal. The infrared receiving device in the air conditioner demodulates and decodes the received infrared signals, restores the infrared signals into a coded instruction string, then decodes the coded instruction string by the internal microprocessor, and finally controls the driving circuit to drive the executing circuit to realize the control operation of various instructions.
In order to coordinate the consistency of encoding and decoding, an infrared transmission protocol needs to be formulated, including carrier frequency, encoding mode, definition of bit 0 and bit 1, and format of data. Standard carrier frequencies are 30, 38, 40, 56kHz; the coding modes include pulse position coding (PPM) and pulse width coding (PWM) 2; the definition of bits 0 and 1 and the format of the data will vary from protocol to protocol. Common infrared transmission protocols are NEC, PHILIPS, RC, SIRCS, etc. In China, NEC protocol is adopted by most household appliances.
The NEC protocol data format includes a preamble consisting of a 9ms high level and a 4.5ms low level and a 32-bit systematic code consisting of an 8-bit address code and its inverse, an 8-bit command code and its inverse. The 32-bit system code can be 0 or 1 in each bit, and pressing different function keys on the remote control can generate different 0,1 combinations of 32 bits. The NEC protocol has a modulation frequency of 38kHz and is encoded using pulse position modulation, because bit 0 and bit 1 are distinguished by pulse spacing, bit 0 being defined as a combination of 0.56ms high and 0.56ms low, and bit 1 being defined as a combination of 0.56ms high and 1.68ms low. Therefore, in order to realize the real-time intelligent infrared control of the on/off function of the air conditioner by the working temperature of the instrument, only the temperature value is detected, the coding instruction string generated by the on/key pressing of the remote controller is obtained, and then the coding instruction string is modulated on a specific carrier signal to drive the infrared emitting diode.
However, most of instruction data sent by the air conditioner through remote control are simple to fix, low in cracking cost and easy to steal and utilize.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a data transmission encryption method and system for air conditioner remote control, which are used for solving the technical problem that command data sent by the existing air conditioner remote control are easy to be broken and stolen, thereby achieving the purpose of effectively improving the reliability and confidentiality of air conditioner remote control data transmission.
In order to solve the problems, the technical scheme adopted by the invention is as follows:
a data transmission encryption method for remote control of an air conditioner, comprising the steps of:
the method comprises the steps that a sending end obtains original air conditioner remote control data to be transmitted, receiving end key data and key calibration data;
the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained key data of the receiving end and the key calibration data to obtain encrypted air conditioner remote control data;
the sending end verifies the encrypted air conditioner remote control data through the obtained secret key calibration data to obtain verification air conditioner remote control data;
the sending end forms the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into air conditioner remote control data to be sent, and sends the air conditioner remote control data to be sent to a receiving end;
and the receiving end restores the remote control data of the air conditioner to be sent to obtain original remote control data of the air conditioner.
As a preferred embodiment of the present invention, when acquiring key calibration data, it includes:
the transmitting end acquires randomly updated key calibration data;
the randomly updated key calibration data is randomly updated according to a current time accumulator of the transmitting end, as shown in formula 1:
SD [32 bits ] =t32 ] (1);
wherein SD [32] bits are randomly updated key calibration data, and T [32] bits are randomly generated data by the current time accumulator.
As a preferred embodiment of the present invention, when obtaining encrypted air conditioner remote control data, it includes:
the transmitting end performs random operation on the receiving end key data and the key calibration data to obtain random key data FD [ n ] = { d1[32 bits ], d2[32 bits ], d3[32 bits ], …, dn [32 bits ] }, as shown in formula 2:
d1[32 bits ] =f (n 1[8 bits ]), d2[32 bits ] =f (n 2[8 bits ]), …,
dn [32 bits ] =f (nn [8 bits ]) (2);
wherein, f () represents that the nx data is operated on by itself;
the receiving end key data is fixed data TD [ n ] = { n1[8 bits ], n2[8 bits ], n3[8 bits ], n4[8 bits ] …, nn [8 bits ] }, and the quantity of the fixed data TD [ n ] is consistent with the original air conditioner remote control data to be transmitted.
In a preferred embodiment of the present invention, when performing a self-operation on nx data, the method includes:
respectively taking out the high-order and low-order of the nx data to generate high-order nx data and low-order nx data;
performing exclusive or operation on the high-order nx data and the key calibration data, and then shifting left by x+16 (x=1, 2 … n) bits to obtain data Na;
performing sum operation on the low-order nx data and the key calibration data, and then shifting left by x+8 (x=1, 2 … n) bits to obtain data Nb;
summing the data Na and the data Nb to obtain a result f (nx) of the nx data after self operation, as shown in a formula 3:
f(nx)=Na+Nb (3)。
as a preferred embodiment of the present invention, when obtaining encrypted air conditioner remote control data, the method further comprises:
the sending end performs encryption operation on the random key data FD [ n ] and the original air conditioner remote control data to be transmitted SE [ n ] = { s1[8 bits ], s2[8 bits ], s3[8 bits ], s4[8 bits ] … sn [8 bits ] } to obtain the encrypted air conditioner remote control data EN [ n ] = { e1[32 bits ], e2[32 bits ], e3[32 bits ], … EN [32 bits ] }, as shown in formula 4:
e1[32 bits ] =f (s 1[8 bits ]) +FD [1], e2[32 bits ] =f (s 2[8 bits ]) +FD [2], …,
en [32 bits ] =f (sn [8 bits ]) +fd [ n ] (4).
As a preferred embodiment of the present invention, when obtaining verification air conditioner remote control data, the method includes:
and the sending end performs exclusive or check on the encrypted air conditioner remote control data and the secret key calibration data to obtain check air conditioner remote control data.
As a preferred embodiment of the present invention, when obtaining verification air conditioner remote control data, the method includes:
and the sending end performs CRC (cyclic redundancy check) on the encrypted air conditioner remote control data and the secret key calibration data to obtain the check air conditioner remote control data.
As a preferred embodiment of the present invention, when obtaining verification air conditioner remote control data, the method includes:
and the sending end performs Gray code verification on the encrypted air conditioner remote control data and the secret key calibration data to obtain verification air conditioner remote control data.
As a preferred embodiment of the present invention, when the receiving end restores the remote control data of the air conditioner to be sent, the method includes:
and the receiving end carries out reverse pushing operation on the air conditioner remote control data to be sent through the key data of the receiving end stored by the receiving end, and restores the original air conditioner remote control data.
A data transmission encryption system for remote control of an air conditioner, comprising:
a data acquisition unit: the method comprises the steps that a sending end is used for obtaining original air conditioner remote control data to be transmitted, receiving end key data and key calibration data;
a data encryption unit: the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained key data of the receiving end and the key calibration data to obtain encrypted air conditioner remote control data;
data checking unit: the sending end is used for verifying the encrypted air conditioner remote control data through the obtained secret key calibration data to obtain verification air conditioner remote control data;
a data transmitting unit: the sending end is used for forming the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into air conditioner remote control data to be sent, and sending the air conditioner remote control data to be sent to the receiving end;
a data reduction unit: and the receiving end is used for restoring the air conditioner remote control data to be sent to obtain original air conditioner remote control data.
Compared with the prior art, the invention has the beneficial effects that:
(1) The conventional data encryption mode has the advantages that the key is fixed and is easy to crack through data exhaustion, the obtained encrypted data has high randomness after the air conditioner remote control data is encrypted by the data transmission encryption method provided by the invention, and the data exhaustion is difficult to crack, so that the reliability and confidentiality of the air conditioner remote control data transmission are effectively improved;
(2) According to the data transmission encryption method provided by the invention, the secret key calibration data randomly generated by the current time accumulator in the transmitting end is used for calibrating the air conditioner remote control data, so that the randomness of the air conditioner remote control data is increased through the calibration data on the basis of encrypting the air conditioner remote control data, and the encryption and randomness combination is utilized, so that the cracking difficulty of the data is effectively improved;
(3) The data transmission encryption method provided by the invention comprises the steps of firstly combining the key calibration data with the key data of the receiving end, firstly increasing the randomness of the key data of the receiving end, and obtaining the random key data in a random operation mode when the key calibration data is combined with the key data of the receiving end, thereby further increasing the randomness of the obtained random key data;
(4) When the encrypted air conditioner remote control data is obtained, the random key data and the original air conditioner remote control data to be transmitted are subjected to encryption operation to obtain the encrypted air conditioner remote control data, so that the encryption operation is overlapped on the basis of the random operation of the random key data, and the encrypted air conditioner remote control data is difficult to crack through data exhaustion.
The invention is described in further detail below with reference to the drawings and the detailed description.
Drawings
FIG. 1-is a schematic diagram of an infrared remote control of an air conditioner in accordance with the background of the invention;
fig. 2-is a step diagram of a data transmission encryption method for remote control of an air conditioner according to an embodiment of the present invention.
Detailed Description
The data transmission encryption method for remote control of an air conditioner provided by the invention, as shown in figure 2, comprises the following steps:
step S1: the method comprises the steps that a sending end obtains original air conditioner remote control data to be transmitted, receiving end key data and key calibration data;
step S2: the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained receiving end key data and key calibration data to obtain encrypted air conditioner remote control data;
step S3: the sending end checks the encrypted air conditioner remote control data through the acquired secret key calibration data to obtain check air conditioner remote control data;
step S4: the sending end forms the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into air conditioner remote control data to be sent, and sends the air conditioner remote control data to be sent to the receiving end;
step S5: the receiving end restores the air conditioner remote control data to be sent to obtain the original air conditioner remote control data.
In the step S1, when acquiring the key calibration data, the method includes:
the method comprises the steps that a sending end obtains randomly updated key calibration data;
the randomly updated key calibration data is randomly updated according to the current time accumulator of the transmitting end, as shown in formula 1:
SD [32 bits ] =t32 ] (1);
where SD [32] is randomly updated key calibration data, and T [32] is randomly generated data from the current time accumulator.
Specifically, the current time accumulator is in the transmitting end, and the generated data has randomness, and can be any one of 0 to 0xFFFFFFFF (hexadecimal). The calibration data adopted in the prior art are fixed calibration data, and the key calibration data is randomly generated by the current time accumulator of the transmitting end and used for calibrating the air conditioner remote control data, so that the randomness of the air conditioner remote control data is increased by the calibration data on the basis of encrypting the air conditioner remote control data, and the cracking difficulty of the data is effectively improved by utilizing the combination of confidentiality and randomness.
In the step S2, when obtaining the encrypted air conditioner remote control data, the method includes:
the transmitting end performs random operation on the key data of the receiving end and the key calibration data to obtain random key data FD [ n ] = { d1[32 bits ], d2[32 bits ], d3[32 bits ], …, dn [32 bits ] }, as shown in formula 2:
d1[32 bits ] =f (n 1[8 bits ]), d2[32 bits ] =f (n 2[8 bits ]), …,
dn [32 bits ] =f (nn [8 bits ]) (2);
wherein, f () represents that the nx data is operated on by itself;
the receiving end key data is fixed data TD [ n ] = { n1[8 bits ], n2[8 bits ], n3[8 bits ], n4[8 bits ] …, nn [8 bits ] }, and the quantity of the fixed data TD [ n ] is consistent with the original air conditioner remote control data to be transmitted.
Specifically, the invention does not directly combine the key calibration data with the original air conditioner remote control data, thereby increasing the randomness of the air conditioner remote control data, but combines the key calibration data with the key data of the receiving end first, and increases the randomness of the key data of the receiving end first. In addition, the method for combining the key calibration data and the data to be transmitted in the prior art is not adopted in combination with the key data of the receiving end, but the key calibration data and the key data of the receiving end are subjected to random operation to obtain random key data, so that the randomness of the obtained random key data is further improved, and the specific process of the random operation is as follows:
further, when performing self-operation on nx data, the method includes:
respectively taking out the high-order and low-order of the nx data to generate high-order nx data and low-order nx data;
performing exclusive OR operation on the high-order nx data and the secret key calibration data, and then shifting left by x+16 (x=1, 2 … n) bits to obtain data Na;
performing sum operation on the low-order nx data and the key calibration data, and then shifting left by x+8 (x=1, 2 … n) bits to obtain data Nb;
summing the data Na and the data Nb to obtain a result f (nx) of the nx data after self operation, as shown in a formula 3:
f(nx)=Na+Nb (3)。
further, when obtaining the encrypted air conditioner remote control data, the method further comprises the following steps:
the transmitting end carries out encryption operation on random key data FD [ n ] = { s1[8 bits ], s2[8 bits ], s3[8 bits ], s4[8 bits ] … sn [8 bits ] } and original air conditioner remote control data SE [ n ] = { e1[32 bits ], e2[32 bits ], e3[32 bits ], … EN [32 bits ] } to obtain encrypted air conditioner remote control data EN [ n ] = { e1[32 bits ], as shown in formula 4:
e1[32 bits ] =f (s 1[8 bits ]) +FD [1], e2[32 bits ] =f (s 2[8 bits ]) +FD [2], …,
en [32 bits ] =f (sn [8 bits ]) +fd [ n ] (4).
Specifically, when the encrypted air conditioner remote control data is obtained, the method which is not a direct combination method in the prior art is adopted, and the encrypted air conditioner remote control data is obtained by carrying out encryption operation on the random key data and the original air conditioner remote control data to be transmitted, so that the encryption operation is overlapped on the basis of the random operation of the random key data, and the encrypted air conditioner remote control data is difficult to crack through data exhaustion.
In the step S3, when obtaining the check air conditioner remote control data, the method includes:
and the sending end performs exclusive or check on the encrypted air conditioner remote control data and the secret key calibration data to obtain check air conditioner remote control data.
The verification of the air conditioner remote control data is exclusive or verification of the encrypted air conditioner remote control data and the secret key calibration data.
In the step S3, when obtaining the check air conditioner remote control data, the method includes:
and the sending end performs CRC (cyclic redundancy check) on the encrypted air conditioner remote control data and the secret key calibration data to obtain check air conditioner remote control data.
And the verification of the air conditioner remote control data is CRC (cyclic redundancy check) of the encrypted air conditioner remote control data and the key calibration data.
In the step S3, when obtaining the check air conditioner remote control data, the method includes:
and the sending end performs Gray code verification on the encrypted air conditioner remote control data and the secret key calibration data to obtain verification air conditioner remote control data.
The verification air conditioner remote control data is Gray code verification of the encrypted air conditioner remote control data and the secret key calibration data.
Specifically, in order to ensure the accuracy of data transmission, the invention obtains check air conditioner remote control data by checking the encrypted air conditioner remote control data, and uses the check air conditioner remote control data for the transmission of the encrypted air conditioner remote control data.
In the step S5, when the receiving end restores the remote control data of the air conditioner to be sent, the method includes:
the receiving end carries out reverse pushing operation on the remote control data of the air conditioner to be sent through the key data of the receiving end stored by the receiving end, and the original remote control data of the air conditioner is restored.
The invention provides a data transmission encryption system for remote control of an air conditioner, which comprises the following components: the device comprises a data acquisition unit, a data encryption unit, a data verification unit, a data transmission unit and a data restoration unit.
A data acquisition unit: the method is used for the sending end to acquire original air conditioner remote control data to be transmitted, receiving end key data and key calibration data.
A data encryption unit: the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained key data of the receiving end and the key calibration data to obtain encrypted air conditioner remote control data.
Data checking unit: and the sending end is used for verifying the encrypted air conditioner remote control data through the acquired key calibration data to obtain verification air conditioner remote control data.
A data transmitting unit: the sending end is used for forming the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into the air conditioner remote control data to be sent, and sending the air conditioner remote control data to be sent to the receiving end.
A data reduction unit: the method is used for restoring the air conditioner remote control data to be sent by the receiving end to obtain the original air conditioner remote control data.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (8)

1. A data transmission encryption method for remote control of an air conditioner, comprising the steps of:
the method comprises the steps that a sending end obtains original air conditioner remote control data to be transmitted, receiving end key data and key calibration data;
the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained key data of the receiving end and the key calibration data to obtain encrypted air conditioner remote control data;
the sending end verifies the encrypted air conditioner remote control data through the obtained secret key calibration data to obtain verification air conditioner remote control data;
the sending end forms the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into air conditioner remote control data to be sent, and sends the air conditioner remote control data to be sent to a receiving end;
the receiving end restores the remote control data of the air conditioner to be sent to obtain original remote control data of the air conditioner;
when obtaining the encrypted air conditioner remote control data, the method comprises the following steps:
the transmitting end performs random operation on the receiving end key data and the key calibration data to obtain random key data FD [ n ] = { d1[32 bits ], d2[32 bits ], d3[32 bits ], …, dn [32 bits ] }, as shown in formula 2:
d1[32 bits ] =f (n 1[8 bits ]), d2[32 bits ] =f (n 2[8 bits ]), …,
dn [32 bits ] =f (nn [8 bits ]) (2);
wherein, f () represents that the nx data is operated on by itself;
the receiving end key data is fixed data TD [ n ] = { n1[8 bits ], n2[8 bits ], n3[8 bits ], n4[8 bits ] …, nn [8 bits ] }, and the quantity of the fixed data TD [ n ] is consistent with the original air conditioner remote control data to be transmitted;
when carrying out self operation on nx data, the method comprises the following steps:
respectively taking out the high-order and low-order of the nx data to generate high-order nx data and low-order nx data;
performing exclusive or operation on the high-order nx data and the key calibration data, and then shifting left by x+16 (x=1, 2 … n) bits to obtain data Na;
performing sum operation on the low-order nx data and the key calibration data, and then shifting left by x+8 (x=1, 2 … n) bits to obtain data Nb;
summing the data Na and the data Nb to obtain a result f (nx) of the nx data after self operation, as shown in a formula 3:
f(nx)=Na+Nb (3);
when obtaining the encrypted air conditioner remote control data, the method further comprises the following steps:
the sending end performs encryption operation on the random key data FD [ n ] and the original air conditioner remote control data to be transmitted SE [ n ] = { s1[8 bits ], s2[8 bits ], s3[8 bits ], s4[8 bits ] … sn [8 bits ] } to obtain the encrypted air conditioner remote control data EN [ n ] = { e1[32 bits ], e2[32 bits ], e3[32 bits ], … EN [32 bits ] }.
2. The data transmission encryption method for remote control of air conditioner according to claim 1, wherein when acquiring the key calibration data, comprising:
the transmitting end acquires randomly updated key calibration data;
the randomly updated key calibration data is randomly updated according to a current time accumulator of the transmitting end, as shown in formula 1:
SD [32 bits ] =t32 ] (1);
wherein SD [32] bits are randomly updated key calibration data, and T [32] bits are randomly generated data by the current time accumulator.
3. The data transmission encryption method for remote control of air conditioner according to claim 1, wherein when the encryption operation is performed, as shown in formula 4:
e1[32 bits ] =f (s 1[8 bits ]) +fd [1], e2[32 bits ] =f (s 2[8 bits ]) +fd [2]
,…,
en [32 bits ] =f (sn [8 bits ]) +fd [ n ] (4).
4. A data transmission encryption method for remote control of an air conditioner according to any one of claims 1 to 3, comprising, when the verification of the remote control data of the air conditioner is obtained:
and the sending end performs exclusive or check on the encrypted air conditioner remote control data and the secret key calibration data to obtain check air conditioner remote control data.
5. A data transmission encryption method for remote control of an air conditioner according to any one of claims 1 to 3, comprising, when the verification of the remote control data of the air conditioner is obtained:
and the sending end performs CRC (cyclic redundancy check) on the encrypted air conditioner remote control data and the secret key calibration data to obtain the check air conditioner remote control data.
6. A data transmission encryption method for remote control of an air conditioner according to any one of claims 1 to 3, comprising, when the verification of the remote control data of the air conditioner is obtained:
and the sending end performs Gray code verification on the encrypted air conditioner remote control data and the secret key calibration data to obtain verification air conditioner remote control data.
7. The data transmission encryption method for remote control of air conditioner according to claim 1, wherein when the receiving end restores the remote control data of air conditioner to be sent, the method comprises:
and the receiving end carries out reverse pushing operation on the air conditioner remote control data to be sent through the key data of the receiving end stored by the receiving end, and restores the original air conditioner remote control data.
8. A data transmission encryption system for remote control of an air conditioner, comprising:
a data acquisition unit: the method comprises the steps that a sending end is used for obtaining original air conditioner remote control data to be transmitted, receiving end key data and key calibration data;
a data encryption unit: the sending end encrypts the original air conditioner remote control data to be transmitted through the obtained key data of the receiving end and the key calibration data to obtain encrypted air conditioner remote control data;
data checking unit: the sending end is used for verifying the encrypted air conditioner remote control data through the obtained secret key calibration data to obtain verification air conditioner remote control data;
a data transmitting unit: the sending end is used for forming the encrypted air conditioner remote control data, the secret key calibration data and the verification air conditioner remote control data into air conditioner remote control data to be sent, and sending the air conditioner remote control data to be sent to the receiving end;
a data reduction unit: the receiving end is used for restoring the remote control data of the air conditioner to be sent to obtain original remote control data of the air conditioner;
when obtaining the encrypted air conditioner remote control data, the method comprises the following steps:
the transmitting end performs random operation on the receiving end key data and the key calibration data to obtain random key data FD [ n ] = { d1[32 bits ], d2[32 bits ], d3[32 bits ], …, dn [32 bits ] }, as shown in formula 2:
d1[32 bits ] =f (n 1[8 bits ]), d2[32 bits ] =f (n 2[8 bits ]), …,
dn [32 bits ] =f (nn [8 bits ]) (2);
wherein, f () represents that the nx data is operated on by itself;
the receiving end key data is fixed data TD [ n ] = { n1[8 bits ], n2[8 bits ], n3[8 bits ], n4[8 bits ] …, nn [8 bits ] }, and the quantity of the fixed data TD [ n ] is consistent with the original air conditioner remote control data to be transmitted;
when carrying out self operation on nx data, the method comprises the following steps:
respectively taking out the high-order and low-order of the nx data to generate high-order nx data and low-order nx data;
performing exclusive or operation on the high-order nx data and the key calibration data, and then shifting left by x+16 (x=1, 2 … n) bits to obtain data Na;
performing sum operation on the low-order nx data and the key calibration data, and then shifting left by x+8 (x=1, 2 … n) bits to obtain data Nb;
summing the data Na and the data Nb to obtain a result f (nx) of the nx data after self operation, as shown in a formula 3:
f(nx)=Na+Nb (3);
when obtaining the encrypted air conditioner remote control data, the method further comprises the following steps:
the sending end performs encryption operation on the random key data FD [ n ] and the original air conditioner remote control data to be transmitted SE [ n ] = { s1[8 bits ], s2[8 bits ], s3[8 bits ], s4[8 bits ] … sn [8 bits ] } to obtain the encrypted air conditioner remote control data EN [ n ] = { e1[32 bits ], e2[32 bits ], e3[32 bits ], … EN [32 bits ] }.
CN202311026173.6A 2023-08-15 2023-08-15 Data transmission encryption method and system for remote control of air conditioner Active CN117240504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311026173.6A CN117240504B (en) 2023-08-15 2023-08-15 Data transmission encryption method and system for remote control of air conditioner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311026173.6A CN117240504B (en) 2023-08-15 2023-08-15 Data transmission encryption method and system for remote control of air conditioner

Publications (2)

Publication Number Publication Date
CN117240504A CN117240504A (en) 2023-12-15
CN117240504B true CN117240504B (en) 2024-03-22

Family

ID=89085185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311026173.6A Active CN117240504B (en) 2023-08-15 2023-08-15 Data transmission encryption method and system for remote control of air conditioner

Country Status (1)

Country Link
CN (1) CN117240504B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110319A (en) * 2009-12-24 2011-06-29 比亚迪股份有限公司 Wireless code hopping system, device and method for remote control door lock
CN104168109A (en) * 2014-09-11 2014-11-26 合肥晟泰克汽车电子有限公司 Method and device for achieving remote controller protocol encrypted based on AES
CN109286487A (en) * 2017-07-19 2019-01-29 杭州海康威视数字技术股份有限公司 The remote control method and system of a kind of electronic equipment
CN109787955A (en) * 2018-12-12 2019-05-21 东软集团股份有限公司 The method, apparatus and storage medium of information transmission

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10944544B2 (en) * 2018-11-07 2021-03-09 Sony Corporation Reducing variable-length pre-key to fix-length key

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110319A (en) * 2009-12-24 2011-06-29 比亚迪股份有限公司 Wireless code hopping system, device and method for remote control door lock
CN104168109A (en) * 2014-09-11 2014-11-26 合肥晟泰克汽车电子有限公司 Method and device for achieving remote controller protocol encrypted based on AES
CN109286487A (en) * 2017-07-19 2019-01-29 杭州海康威视数字技术股份有限公司 The remote control method and system of a kind of electronic equipment
CN109787955A (en) * 2018-12-12 2019-05-21 东软集团股份有限公司 The method, apparatus and storage medium of information transmission

Also Published As

Publication number Publication date
CN117240504A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
CN101719311B (en) Method for infrared remote control of computer
US10218516B2 (en) System and method for wireless re-programming of memory in a communication system
US7120430B2 (en) Programmable interoperable appliance remote control
US9407609B2 (en) Lighting system, a light source, a device and a method of authorizing the device by the light source
US7183940B2 (en) Radio relay appliance activation
US20110144778A1 (en) Smart Audio Plug-in for Enabling Smart Portable Device to be Universal Remote Control
JP2016518787A (en) Infrared signal transmission method, infrared signal transmission device, remote control, program, and recording medium
US20120219298A1 (en) Remote control system and method having reduced vulnerability to noise
CN103793987A (en) Remote control lock based on visible light communication technology
CN117240504B (en) Data transmission encryption method and system for remote control of air conditioner
CN101067898A (en) Domestic electric appliance remote controller utilizing laser transmission technique to control remote-control signal
CN101654087A (en) Method for matching car body controller with remote key based on SAEJ 1939
CN102081838A (en) Remote-control launcher, remote-control receiving device and remote-control method
CN107122064A (en) Mouse module and mouse signal transmission method
KR100616660B1 (en) Low-power wireless transceiver
CN102132333B (en) Method and apparatus for multiple bit encoding
TW200526835A (en) Method of wirelessly controlling a sewing machine having learning function
CN114978429B (en) Wireless transmitting and receiving method for door and window control
CN101290709A (en) Anti-jamming remote controlling device
WO2019001155A1 (en) Ir emitting device and method
CN111447613B (en) Encryption system for sharing products
CN102182361B (en) Control method of man-machine interface-free automobile door control system
CN218100434U (en) Automobile remote controller suitable for automobile front assembly
EP3633943A1 (en) Transmitting device, receiving device and methods of operation
JP2009278506A (en) Receiving apparatus

Legal Events

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