CN112751872A - Control method and control authority request method of air conditioner, air conditioner and communication module - Google Patents

Control method and control authority request method of air conditioner, air conditioner and communication module Download PDF

Info

Publication number
CN112751872A
CN112751872A CN202011631262.XA CN202011631262A CN112751872A CN 112751872 A CN112751872 A CN 112751872A CN 202011631262 A CN202011631262 A CN 202011631262A CN 112751872 A CN112751872 A CN 112751872A
Authority
CN
China
Prior art keywords
data
air conditioner
communication module
control authority
preset
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.)
Granted
Application number
CN202011631262.XA
Other languages
Chinese (zh)
Other versions
CN112751872B (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.)
TCL Air Conditioner Zhongshan Co Ltd
Original Assignee
TCL Air Conditioner Zhongshan 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 TCL Air Conditioner Zhongshan Co Ltd filed Critical TCL Air Conditioner Zhongshan Co Ltd
Priority to CN202011631262.XA priority Critical patent/CN112751872B/en
Publication of CN112751872A publication Critical patent/CN112751872A/en
Application granted granted Critical
Publication of CN112751872B publication Critical patent/CN112751872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Abstract

The invention discloses a control method of an air conditioner, a control authority requesting method, the air conditioner and a communication module, wherein the method comprises the following steps: the control authority request signal is used for determining whether the control authority request signal is first data sent by the communication module, and the first data is sent to the communication module through the communication interface, so that the communication module generates third data according to the first data and returns the third data to the air conditioner; receiving fourth data through the communication interface, and determining whether a control authority request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data; if so, sending a request success signal to the communication module through the communication interface, and controlling the air conditioner to operate according to the control signal received from the communication interface within a first preset time. The invention realizes the verification of whether the object communicating with the air conditioner is a legal communication module, and prevents other equipment from embezzlement of the air conditioner.

Description

Control method and control authority request method of air conditioner, air conditioner and communication module
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to an air conditioner control method, a control authority request method, an air conditioner and a communication module.
Background
The shared air conditioner starts to walk into the market, the shared air conditioner can be fully utilized in places such as self-service youth hotels, student dormitories and the like, the cost of merchants and schools is reduced, the use cost can also be reduced when a user uses the shared air conditioner for a short time, and the shared air conditioner has an application market.
The shared air conditioner communicates with the operation platform through the communication module, the operation platform issues a purchase permission related information instruction through the communication module, and therefore a user can normally operate the air conditioner.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
Aiming at the defects in the prior art, the control method, the control authority request method, the air conditioner and the communication module of the air conditioner are provided, and the problem that communication data between the air conditioner and the communication module in the prior art is easy to be simulated to cause embezzlement is solved.
In a first aspect of the present invention, a method for controlling an air conditioner is provided, which is applied to the air conditioner and includes:
when the control authority request signal is received, first data used for determining whether the control authority request signal is sent by the communication module is generated according to a preset algorithm, and the first data is sent to the communication module through the communication interface, so that the communication module generates third data according to the first data and returns the third data to the air conditioner;
receiving fourth data through the communication interface, and determining whether a control authority request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data;
and if the fourth data is consistent with the third data, sending a request success signal to the communication module through the communication interface, and controlling the air conditioner to operate according to the control signal received from the communication interface within a first preset time period.
In a second aspect of the present invention, an air conditioner is provided, where the air conditioner includes a memory, a processor, and an air conditioner control program stored in the memory and executable on the processor, and the processor implements the steps of the method of the first aspect when executing the air conditioner control program.
In a third aspect of the present invention, a method for requesting control authority of an air conditioner is provided, which is applied to a communication module, and includes:
after sending a control authority request signal to the air conditioner, receiving first data returned by the air conditioner according to the control authority request signal;
generating third data according to the first data through a preset algorithm, and then sending the third data to the air conditioner;
and receiving a control authority confirmation signal returned by the air conditioner.
In a fourth aspect of the present invention, a communication module is provided, where the communication module includes a memory, a processor, and an air conditioning control program stored in the memory and operable on the processor, and when the processor executes the air conditioning control program, the steps of the method in the third aspect are implemented.
In a fifth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the control method of the air conditioner and/or the control authority request method of the air conditioner.
Compared with the prior art, the invention provides a control method of an air conditioner, a control authority request method, the air conditioner and a communication module, when the air conditioner receives an authority request signal, firstly, a prearranged algorithm is used for generating encrypted first data, the first data is used for being sent to a communication module to generate third data according to the prearranged algorithm, after the air conditioner sends the first data out through a communication interface which is communicated with the communication module, if the fourth data received through the communication interface is consistent with the third data, the invention realizes the verification of whether the object communicated with the air conditioner is a legal communication module, and prevents illegal equipment from simulating the communication data between the communication module and the air conditioner to steal the air conditioner.
Drawings
Fig. 1 is a flowchart of an embodiment of a control method of an air conditioner according to the present invention;
fig. 2 is a schematic communication diagram of a processor and a communication module of an air conditioner according to an embodiment of a control method of the air conditioner provided by the present invention;
fig. 3 is an interaction flowchart of an air conditioner and a communication module in an embodiment of a control method of the air conditioner provided by the invention;
fig. 4 is a flowchart illustrating a control authority requesting method of an air conditioner according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of an air conditioner provided by the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a communication module according to the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
The control method of the air conditioner provided by the invention can be executed by the air conditioner, and the processor in the air conditioner can realize the control method of the air conditioner provided by the invention when executing the computer program.
An embodiment of a method for controlling an air conditioner according to the present invention is shown in fig. 1, and includes the steps of:
s110, when the control authority request signal is received, the air conditioner generates first data used for determining whether the control authority request signal is sent by the communication module according to a preset algorithm, and the first data is sent to the communication module through the communication interface, so that the communication module generates third data according to the first data and returns the third data to the air conditioner.
Specifically, the communication module may be disposed inside the air conditioner as a component of the air conditioner, or may be externally connected to the air conditioner as an independently disposed device, the communication between the communication module and the air conditioner is actually performed with a processor of the air conditioner, and the control permission request signal is received by the air conditioner through a communication interface that communicates with the communication module, specifically, the operation mode of the existing shared air conditioner is as follows: in the operation process of the shared air conditioner, a user can send instructions of renting, stopping or controlling the air conditioner and the like through a control application of the shared air conditioner, an operation platform receives the instructions sent by the user through the control application and then forwards corresponding instructions to the air conditioner through a communication module, the air conditioner performs operations such as opening, closing, temperature adjustment and the like according to the corresponding instructions, the communication module can be an NB-IOT (narrow-band Internet of things) module and communicates with the operation platform based on a frequency band provided by an operator, packages provided by the operator at present are charged according to fixed times/year or fixed flow/year, therefore, based on the consideration of operation cost, the interaction between the communication module and the operation platform cannot be too frequent, otherwise, the operation cost is greatly increased, and the communication module has a long empty window period in the operation process of the air conditioner, that is to say, the frequency of the communication module being called by the operation platform to communicate with the air conditioner is not high, but the communication module and the air conditioner are in serial communication, that is, the communication module and the air conditioner communicate with each other through a communication interface without depending on a frequency band provided by an operator, as shown in fig. 2, the communication module sends control data to a processor of the air conditioner, and the processor of the air conditioner returns response data. In the present application, the communication module sends a control authority request signal to the air conditioner, and when the air conditioner receives the control authority request signal, generating first data according to a preset algorithm, sending the first data out through a communication interface for communicating with the communication module, if the communication with the air conditioner is a legal communication module, third data is generated according to the first data through a preset algorithm and is sent back to the air conditioner, after the first data is sent out by the air conditioner, if the fourth data received by the communication interface of the communication module is consistent with the third data, the control authority request signal is sent by the communication module, the object of communication with the air conditioner through the interface is a legal communication module and data transmission between the communication module and the air conditioner is normal, so that the air conditioner can operate according to the control signal received from the communication interface of the communication module.
And when the control authority request signal is received, the processor of the air conditioner generates first data according to a preset algorithm. The control authority request signal is received by a processor of the air conditioner through a communication interface for communicating with the communication module, specifically, a communication data format with the communication module is agreed in advance, for example, the data format may be "header code + data type + data content + check", and for different data types, different codes are set, and when the air conditioner receives the signal, whether the signal is the control authority request signal is determined according to the data type in the data included in the signal. Specifically, as shown in fig. 3, in order to ensure that the air conditioner is not stolen, the communication module may not send a control permission request signal to the air conditioner after receiving the control signal of the operation platform, but may send the control permission request signal through the communication interface with the air conditioner at intervals of a preset time, such as 3min, so that the air conditioner may determine in real time whether the current object to be communicated is a legal communication interface. In a possible implementation manner, the communication module may also send an inquiry signal to the air conditioner to inquire the current operating state of the air conditioner at intervals of shorter time, such as 1s, for example, whether the air conditioner is in use, whether there is a fault, and the like, update the use state of the air conditioner in real time, and return related data to the operation platform when the operation platform requests the operating state of the air conditioner. Since the query signal is only used for querying and does not relate to control, the air conditioner may directly feed back the current operation state after receiving the query signal, as shown in fig. 3.
Specifically, the air conditioner generates first data for determining whether the control authority request signal is sent by the communication module according to a preset algorithm, and the method comprises the following steps:
s111, generating a first random number and a second random number by the air conditioner, and acquiring first encrypted data corresponding to the first random number according to a preset corresponding relation;
s112, the air conditioner carries out encryption operation on the first encrypted data through a first preset encryption algorithm to generate second encrypted data;
s113, the air conditioner arranges the first encrypted data and the second random number according to a first preset rule to obtain first data.
After receiving the control authority request signal, the air conditioner randomly generates two data, which are a first random number and a second random number, respectively, where the first random number and the second random number may be numbers, letters, or other codes, and the corresponding relationship between the random numbers and the data is preset, for example, a character string may be preset as a key, and each character and the random number are respectively corresponding according to a serial number of each character of the character string, such as: the first digit of the string is assigned the number 1, etc. And after the first random number and the second random number are generated, acquiring data corresponding to the first random number according to a preset corresponding relation to be used as first encrypted data.
In this embodiment, a first preset encryption algorithm is preset, and the first preset encryption algorithm may be an operation expression defined by a developer, for example, the first preset encryption algorithm is (X is data to be encrypted): x a1+42, (X +34) a2, (X A3) -15. After the first encrypted data are obtained, the air conditioner operates the first encrypted data according to a first preset encryption algorithm to generate second encrypted data, and then the second encrypted data and a second random number are arranged according to a first preset rule to obtain the first data.
Specifically, the first preset rule is an arrangement rule, after the second encrypted data is obtained, the second encrypted data and the second random number are combined according to a preset combination order of the encrypted data and the random number (for example, the order of the encrypted data before, the random number after, or the order of the encrypted data before, the random number after, and the random number before) to form a new character string, and then characters in the new character string are rearranged according to the first preset rule, for example, for the character string ABCDEF, the character string ABCDEF is rearranged into facded, and the like.
After the first data is generated, the first data is sent to the communication module through the communication interface with the communication module, and after the communication module receives the first data, the third data is generated according to the first data and is returned to the air conditioner, which will be specifically described in embodiment two.
Referring to fig. 1 again, the method for controlling an air conditioner according to the present embodiment further includes the steps of:
and S120, the air conditioner receives the fourth data through the communication interface, and determines whether the control authority request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data.
The fourth data is data received by the air conditioner through a communication interface of the communication module after the first data is sent out, the third data is data generated by the legal communication module according to the first data, if the fourth data is consistent with the third data, the fourth data is generated by the legal communication module, namely, the object currently communicating with the air conditioner through the communication interface is a legal communication module, and the control authority request signal is sent out by the communication module.
Specifically, the air conditioner determines whether the control authority request signal is sent by the communication module by judging whether the fourth data is consistent with the third data, including:
s121, carrying out encryption operation on the first encrypted data through a second preset encryption algorithm to generate second data;
s122, rearranging the fourth data according to a second preset rule by the air conditioner to obtain third encrypted data;
and S123, when the third encrypted data is consistent with the second data, the air conditioner determines that the fourth data is consistent with the third data, and the control authority request signal is sent by the communication module.
In this embodiment, a second preset encryption algorithm is also preset, and the second preset encryption algorithm may be an operation expression defined by a developer, for example, the second preset encryption algorithm is (X is data to be encrypted): x +25+ a1, X a2+41, X6. And for first encrypted data generated in the process of generating the first data, performing encryption operation by using a second preset encryption algorithm to generate second data.
And after receiving the fourth data, the air conditioner rearranges the fourth data according to the second preset rule to obtain a new character string, extracts third encrypted data from the new character string obtained by rearranging the fourth data according to a combination mode of the random number and the encrypted data, and determines whether the third encrypted data is consistent with the second data. Specifically, in this embodiment, after the air conditioner sends the first data, if the legal communication module receives the first data, the air conditioner may calculate to obtain third data according to the first data, and the encrypted data obtained by the communication module after the third data generated according to the first data is rearranged according to the second preset rule process is consistent with the second data, so that the air conditioner may determine whether an object currently communicating through the communication interface with the communication module is a legal communication module by determining whether the third encrypted data obtained by rearranging the fourth data is consistent with the second data. The process of the communication module calculating the third data according to the first data will be specifically described in the second embodiment.
After determining whether the fourth data is consistent with the third data, the air conditioner executes different programs according to a result of whether the fourth data is consistent with the third data, as shown in fig. 3, which specifically includes:
and S130, if the fourth data is consistent with the third data, the air conditioner sends a request success signal to the communication module through the communication interface, and the air conditioner is controlled to operate according to a control signal received from the communication interface within a first preset time period.
If the fourth data is consistent with the third data, it is indicated that a current communication object of the air conditioner is corresponding to a legal communication module, the air conditioner sends a request success signal to the communication module, a processor of the air conditioner controls the air conditioner to operate according to a control signal received from a communication interface of the communication module within a first preset time, after the communication module receives the request success signal, the communication module does not send a control authority request signal within the first preset time, and sends the control authority request signal again after the first preset time, so that the air conditioner determines the legality of the communication module again according to the control authority request signal, and safe and stable communication is established between the air conditioner and the communication module.
And if the fourth data is inconsistent with the third data, the air conditioner sends a request failure signal through a communication interface of the communication module.
Therefore, in this embodiment, if the fourth data is inconsistent with the third data, the air conditioner sends a request failure signal through a communication interface with the communication module, so that the communication module may resend the control permission request signal after receiving the request failure signal when the current communication object is a legal communication module.
And if the frequency of the air conditioner continuously sending the request failure signal exceeds the preset frequency or the control authority request signal is not received within a second preset time after the request failure signal is sent through the communication interface, executing a shutdown program by the air conditioner.
The preset times can be 3 times, 5 times and the like, the number of times that the air conditioner continuously sends the request failure signal exceeds the preset times, or the control authority request signal is not received within a second preset time after the request failure signal is sent through the communication interface, it is indicated that the current communication object is not a legal communication module or the communication between the current communication object and the communication module fails, at this moment, the air conditioner executes a shutdown program, and the situation that the communication module fails to control the authority request and the air conditioner is directly shut down due to the fact that data packet loss is caused by the preset times can be prevented.
Example two
In an embodiment of the present invention, a method for requesting control authority of an air conditioner is further provided, where the method is executed by a communication module, and specifically, as shown in fig. 4, an embodiment of the method for controlling an air conditioner provided by the present invention includes the steps of:
s210, after the communication module sends the permission request signal to the air conditioner, first data returned by the air conditioner according to the control permission request signal is received.
Specifically, the communication module sends an authority request signal every a first preset time through a communication interface with the air conditioner, and after the air conditioner receives the authority request signal, the first data is generated and sent out through the communication interface, and the communication module receives the first data through the communication interface, which is specifically described in the first embodiment.
And S220, the communication module generates third data according to the first data through a preset algorithm, and then sends the third data to the air conditioner.
In order to verify the validity of the communication module, after receiving the first data, the communication module generates third data according to a preset algorithm, and the third data is sent to the air conditioner through the communication interface, so that the air conditioner can verify the validity of the communication module according to the third data.
Specifically, the communication module generates third data according to the first data through a preset algorithm, including:
and S221, after the first data are rearranged according to a third preset rule to obtain fourth encrypted data, carrying out decryption operation on the fourth encrypted data through a first preset decryption algorithm to obtain first decrypted data.
S222, carrying out encryption operation on the first decrypted data through a second preset encryption algorithm to obtain fifth encrypted data;
and S223, generating a third random number, and arranging the third random number and the fifth encrypted data according to a fourth preset rule to obtain third data.
The third preset rule corresponds to the first preset rule in the first embodiment, for example, if the first preset rule is to rearrange the character string ABCDEF into facbod, the third preset rule should be: for the character string ABCDEF, the character string is rearranged to bdfea, that is, for the character string X, the character string obtained by rearranging according to the first preset rule is identical to the character string obtained by rearranging according to the third preset rule. It can be seen that the new character string obtained by rearranging the first data according to the third preset rule by the communication module is the same as the character string obtained by combining the second encrypted data and the second random number by the air conditioner in the first embodiment, and the fourth encrypted data is extracted from the character string according to the preset combination order of the encrypted data and the random number, obviously, the fifth encrypted data should be the same as the first encrypted data in the first embodiment.
The first preset decryption algorithm corresponds to the first preset encryption algorithm, that is, for the data X, the decryption operation is performed according to the first preset decryption algorithm after the operation of the first preset encryption algorithm, and the data X can be obtained again. The first decrypted data obtained by the communication module performing decryption operation on the fourth encrypted data through the first preset decryption algorithm is the same as the first encrypted data in the embodiment. And then, the fifth encrypted data obtained by performing encryption operation on the first decrypted data by using a second preset encryption algorithm is the same as the second encrypted data in the embodiment.
After receiving the first data, the communication module generates a third random number, arranges the third random number and the fifth encrypted data according to a fourth preset rule to obtain third data, and specifically, combines the third random number and the fifth encrypted data according to a preset combination rule of encrypted data and random numbers and then rearranges the third random number and the fifth encrypted data according to the fourth preset rule. The fourth preset rule corresponds to the second preset rule in the first embodiment, for example, if the fourth preset rule is to rearrange the character string ABCDEF into facbod, the second preset rule should be: for the character string ABCDEF, the character string is rearranged to bdfea, that is, for the character string X, the character string obtained by rearranging according to the fourth preset rule is identical to the character string obtained by rearranging according to the second preset rule.
As is apparent from the above description of the process of generating the third data, the encrypted data obtained by rearranging the third data generated by the communication module according to the second preset rule should be the same as the second data in the first embodiment, so that the air conditioner can determine whether the communication object is the communication module according to whether the data received after sending the first data is the same as the third data.
Referring to fig. 4 again, the method for requesting control authority of an air conditioner according to the present embodiment further includes:
and S300, the communication module receives a control authority confirmation signal returned by the air conditioner.
Specifically, if the control authority confirmation signal returned by the air conditioner is the request success signal, it indicates that the communication between the communication module and the air conditioner is normal, and the validity of the communication module has been verified by the air conditioner, the communication module may normally issue a control instruction to the air conditioner, and no longer send a control authority request signal within the first preset time, and send a control authority request signal again after the interval of the first preset time.
If the control authority confirmation signal returned by the air conditioner is a request failure signal, the communication between the communication module and the air conditioner is abnormal, for example, faults such as packet loss, data dislocation and the like exist, and the communication module sends out the control authority request signal again to know that the request success signal is received.
In summary, the present invention provides a control method of an air conditioner and a control authority requesting method of an air conditioner, in which when an authority requesting signal is received by an air conditioner, a pre-agreed algorithm generates encrypted first data, the first data is used to be sent to a communication module to generate third data according to the pre-agreed pre-established algorithm, after the first data is sent out by the air conditioner through a communication interface communicating with the communication module, if fourth data received through the communication interface is identical to the third data, it is indicated that the communication module communicating with the air conditioner is a legal communication module, and the air conditioner can operate according to a control signal received by the communication interface.
It should be understood that, although the steps in the flowcharts shown in the figures of the present specification are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps of the present invention are not limited to being performed in the exact order disclosed, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps of the present invention may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
EXAMPLE III
Based on the above embodiments, the present invention further provides an air conditioner, and a schematic block diagram thereof may be as shown in fig. 5. The air conditioner comprises a memory 10 and a processor 20, wherein the memory 10 is in communication connection with the processor 20, a computer program is stored in the memory 10, and the processor 10 can at least realize the following steps when executing the computer program:
when the control authority request signal is received, first data used for determining whether the control authority request signal is sent by the communication module is generated according to a preset algorithm, and the first data is sent to the communication module through the communication interface, so that the communication module generates third data according to the first data and returns the third data to the air conditioner;
receiving fourth data through the communication interface, and determining whether a control authority request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data;
and if the fourth data is consistent with the third data, sending a request success signal to the communication module through the communication interface, and controlling the air conditioner to operate according to the control signal received from the communication interface within a first preset time period.
The method for generating first data used for determining whether the control authority request signal is sent by the communication module according to a preset algorithm comprises the following steps:
generating a first random number and a second random number, and acquiring first encrypted data corresponding to the first random number according to a preset corresponding relation;
carrying out encryption operation on the first encrypted data through a first preset encryption algorithm to generate second encrypted data;
and arranging the second encrypted data and the second random number according to a first preset rule to obtain first data.
Wherein, whether the control authority request signal is sent by the communication module is determined by judging whether the fourth data is consistent with the third data, including:
performing encryption operation on the first encrypted data through a second preset encryption algorithm to generate second data;
rearranging the fourth data according to a second preset rule to obtain third encrypted data;
and when the third encrypted data is consistent with the second data, determining that the fourth data is consistent with the third data, and sending a control authority request signal by the communication module.
After judging whether the fourth data is consistent with the third data, the method further includes:
if the fourth encrypted data is inconsistent with the third data, sending a request failure signal through the communication interface;
and if the frequency of continuously sending the request failure signal exceeds the preset frequency or the control authority request signal is not received within a second preset time after the request failure signal is sent through the communication interface, executing a shutdown program.
Example four
Based on the above embodiments, the present invention further provides a communication module, and a schematic block diagram thereof may be as shown in fig. 6. The air conditioner comprises a memory 30 and a processor 40, wherein the memory 30 is in communication connection with the processor 40, a computer program is stored in the memory 30, and the processor 30 can at least realize the following steps when executing the computer program:
after sending a control authority request signal to the air conditioner, receiving first data returned by the air conditioner according to the control authority request signal;
generating third data according to the first data through a preset algorithm, and then sending the third data to the air conditioner;
and receiving a control authority confirmation signal returned by the air conditioner.
Generating third data according to the first data through a preset algorithm, wherein the generating of the third data comprises the following steps:
after the first data are rearranged according to a third preset rule to obtain fourth encrypted data, carrying out decryption operation on the fourth encrypted data through a first preset decryption algorithm to obtain first decrypted data;
performing encryption operation on the first decrypted data through a second preset encryption algorithm to obtain fifth encrypted data;
and generating a third random number, and arranging the third random number and the fifth encrypted data according to a fourth preset rule to obtain third data.
Wherein, after receiving the control authority confirmation signal that the air conditioner returned, still include:
if the control authority confirmation signal is a request success signal, sending out a control authority request signal again after a first preset time interval;
and if the control authority confirmation signal is a request failure signal, re-sending the control authority request signal until receiving a request success signal.
EXAMPLE five
The present invention also provides a storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the control method of the air conditioner and/or the control authority request method of the air conditioner described in the above embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method of an air conditioner is characterized by being applied to the air conditioner and comprising the following steps:
when a control authority request signal is received, generating first data used for determining whether the control authority request signal is sent by a communication module according to a preset algorithm, and sending the first data to the communication module through a communication interface, so that the communication module generates third data according to the first data and returns the third data to the air conditioner;
receiving fourth data through the communication interface, and determining whether the control authority request signal is sent by the communication module by judging whether the fourth data is consistent with the third data;
and if the fourth data is consistent with the third data, sending a request success signal to the communication module through the communication interface, and controlling the air conditioner to operate according to a control signal received from the communication interface within a first preset time length.
2. The method according to claim 1, wherein the generating first data for determining whether the control authority request signal is issued by a communication module according to a preset algorithm comprises:
generating a first random number and a second random number, and acquiring first encrypted data corresponding to the first random number according to a preset corresponding relation;
performing encryption operation on the first encrypted data through a first preset encryption algorithm to generate second encrypted data;
and arranging the second encrypted data and the second random number according to a first preset rule to obtain the first data.
3. The method according to claim 2, wherein the determining whether the control authority request signal is issued by the communication module by determining whether the fourth data is consistent with the third data comprises:
performing encryption operation on the first encrypted data through a second preset encryption algorithm to generate second data;
rearranging the fourth data according to a second preset rule to obtain third encrypted data;
and when the third encrypted data is consistent with the second data, determining that the fourth data is consistent with the third data, wherein the control authority request signal is sent by the communication module.
4. The method of claim 3, wherein after determining whether the fourth data is consistent with the third data, the method further comprises:
if the fourth encrypted data is inconsistent with the third data, sending a request failure signal through the communication interface;
and if the frequency of continuously sending the request failure signal exceeds the preset frequency, or the control authority request signal is not received within a second preset time after the request failure signal is sent through the communication interface, executing a shutdown program.
5. An air conditioner, characterized in that the air conditioner comprises a memory, a processor and an air conditioner control program stored in the memory and operable on the processor, and the processor implements the steps of the method of any one of the preceding claims 1-4 when executing the air conditioner control program.
6. A control authority request method of an air conditioner is applied to a communication module, and the method comprises the following steps:
after sending a control authority request signal to an air conditioner, receiving first data returned by the air conditioner according to the control authority request signal;
generating third data through a preset algorithm according to the first data, and then sending the third data to an air conditioner;
and receiving a control authority confirmation signal returned by the air conditioner.
7. The method of claim 6, wherein generating third data according to the first data by a preset algorithm comprises:
after the first data are rearranged according to a third preset rule to obtain fourth encrypted data, carrying out decryption operation on the fourth encrypted data through a first preset decryption algorithm to obtain first decrypted data;
performing encryption operation on the first decrypted data through a second preset encryption algorithm to obtain fifth encrypted data;
and generating a third random number, and arranging the third random number and the fifth encrypted data according to a fourth preset rule to obtain third data.
8. The method according to claim 6, wherein after receiving the control authority confirmation signal returned by the air conditioner, the method further comprises:
if the control authority confirmation signal is a request success signal, sending the control authority request signal again after a first preset time interval;
and if the control authority confirmation signal is a request failure signal, re-sending the control authority request signal until receiving the request success signal.
9. A communication module, comprising a memory, a processor and an air conditioner control authority request program stored in the memory and operable on the processor, wherein the processor implements the steps of the method according to any one of claims 6 to 8 when executing the air conditioner control authority request program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 4 and/or the steps of the method of any one of claims 6 to 8.
CN202011631262.XA 2020-12-30 2020-12-30 Control method of air conditioner, control authority request method, air conditioner and communication module Active CN112751872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011631262.XA CN112751872B (en) 2020-12-30 2020-12-30 Control method of air conditioner, control authority request method, air conditioner and communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011631262.XA CN112751872B (en) 2020-12-30 2020-12-30 Control method of air conditioner, control authority request method, air conditioner and communication module

Publications (2)

Publication Number Publication Date
CN112751872A true CN112751872A (en) 2021-05-04
CN112751872B CN112751872B (en) 2023-05-23

Family

ID=75650779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011631262.XA Active CN112751872B (en) 2020-12-30 2020-12-30 Control method of air conditioner, control authority request method, air conditioner and communication module

Country Status (1)

Country Link
CN (1) CN112751872B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865981A (en) * 2022-11-29 2023-03-28 宁波奥克斯电气股份有限公司 Air conditioner control data management method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263141A (en) * 2015-10-30 2016-01-20 广东美的制冷设备有限公司 Household electrical appliance and control method thereof
CN105823168A (en) * 2016-03-11 2016-08-03 广东美的暖通设备有限公司 Protection method for communication module and air conditioner
CN106101097A (en) * 2016-06-08 2016-11-09 美的集团股份有限公司 Home appliance and with the communication system of Cloud Server and method, Cloud Server
CN109547303A (en) * 2018-11-21 2019-03-29 北京华大智宝电子系统有限公司 Control method and relevant device
CN110798471A (en) * 2019-10-31 2020-02-14 宁波奥克斯电气股份有限公司 Air conditioner management method and related device
CN110855706A (en) * 2019-11-25 2020-02-28 广东美的制冷设备有限公司 Control method, control device, terminal, air conditioner and computer-readable storage medium
WO2020186661A1 (en) * 2019-03-19 2020-09-24 青岛海尔空调电子有限公司 Air-conditioning system, data transmission method and apparatus, and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263141A (en) * 2015-10-30 2016-01-20 广东美的制冷设备有限公司 Household electrical appliance and control method thereof
CN105823168A (en) * 2016-03-11 2016-08-03 广东美的暖通设备有限公司 Protection method for communication module and air conditioner
CN106101097A (en) * 2016-06-08 2016-11-09 美的集团股份有限公司 Home appliance and with the communication system of Cloud Server and method, Cloud Server
CN109547303A (en) * 2018-11-21 2019-03-29 北京华大智宝电子系统有限公司 Control method and relevant device
WO2020186661A1 (en) * 2019-03-19 2020-09-24 青岛海尔空调电子有限公司 Air-conditioning system, data transmission method and apparatus, and computer storage medium
CN110798471A (en) * 2019-10-31 2020-02-14 宁波奥克斯电气股份有限公司 Air conditioner management method and related device
CN110855706A (en) * 2019-11-25 2020-02-28 广东美的制冷设备有限公司 Control method, control device, terminal, air conditioner and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865981A (en) * 2022-11-29 2023-03-28 宁波奥克斯电气股份有限公司 Air conditioner control data management method and system

Also Published As

Publication number Publication date
CN112751872B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US9280653B2 (en) Security access method for automotive electronic control units
CN106249704B (en) Method and device for controlling communication of endpoints in industrial enterprise system based on integrity
KR101517286B1 (en) Updating an operating system for secure element
CN108616504B (en) Sensor node identity authentication system and method based on Internet of things
JPH0787564A (en) Authentication system
CN104283841A (en) Method, device and system for carrying out service access control on third-party application
CN111107073B (en) Application automatic login method and device, computer equipment and storage medium
CN104954330A (en) Method of accessing data resources, device and system
CN111970109B (en) Data transmission method and system
US20240064134A1 (en) In-vehicle network ota security communication method and apparatus, vehicle-mounted system, and storage medium
CN112257093B (en) Authentication method, terminal and storage medium for data object
CN112751872A (en) Control method and control authority request method of air conditioner, air conditioner and communication module
CN108881280A (en) Cut-in method, content distribution network system and access system
CN103312513A (en) Method and system for verifying use authorization in distributed environment
CN111585978B (en) Method, client, server and system for intercepting false request
CN112118209B (en) Account operation method and device of vehicle equipment
OA12005A (en) Method and device for guaranteeing the integrity and authenticity of a set of data.
CN110971610A (en) Control system identity verification method and device, computer equipment and storage medium
CN116366289A (en) Safety supervision method and device for remote sensing data of unmanned aerial vehicle
CN113538777B (en) Authorization method, intelligent container, server and computer storage medium
CN106571917A (en) IC card intelligent gas meter ESAM embedded safety management module
KR101322402B1 (en) System and Method for Security of Application, Communication Terminal Therefor
JP2001202266A (en) Method for inspecting on-vehicle control unit
KR20170021813A (en) Method for Processing Payment based on Application Program by using One Time Password
CN111586688A (en) Identity identification generation and verification method based on environment perception

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