[go: up one dir, main page]

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

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

Info

Publication number
CN112751872B
CN112751872B CN202011631262.XA CN202011631262A CN112751872B CN 112751872 B CN112751872 B CN 112751872B CN 202011631262 A CN202011631262 A CN 202011631262A CN 112751872 B CN112751872 B CN 112751872B
Authority
CN
China
Prior art keywords
data
air conditioner
preset
communication module
control
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
CN202011631262.XA
Other languages
Chinese (zh)
Other versions
CN112751872A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a control method of an air conditioner, a control authority request method, the air conditioner and a communication module, wherein the method comprises the following steps: the communication module is used for generating third data according to the first data and returning 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 or not; if yes, a request success signal is sent to the communication module through the communication interface, and the operation of the air conditioner is controlled within a first preset duration according to the control signal received from the communication interface. The invention realizes the verification of whether the object communicating with the air conditioner is a legal communication module, and prevents other equipment from stealing the air conditioner.

Description

Control method of air conditioner, control authority request method, air conditioner and communication module
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a control method of an air conditioner, a control authority request method, the air conditioner and a communication module.
Background
The shared air conditioner starts to enter the market, can be fully utilized in places such as self-service young hotels and student dormitories, reduces the cost of merchants and schools, can reduce the use cost for short-term use of users, and has an application market.
The shared air conditioner is communicated with the operation platform through the communication module, the operation platform issues a purchase permission related information instruction through the communication module, so that a user can normally operate the air conditioner.
Accordingly, there is a need for improvement and advancement 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 are provided, and the problem that communication data between the air conditioner and the communication module are easy to simulate and cause embezzlement in the prior art is solved.
In a first aspect of the present invention, there is provided a control method of an air conditioner, applied to an air conditioner, including:
when a control permission request signal is received, generating first data for determining whether the control permission 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 a control authority request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data or not;
if the fourth data is consistent with the third data, a request success signal is sent to the communication module through the communication interface, and the operation of the air conditioner is controlled according to the control signal received from the communication interface within a first preset duration.
In a second aspect of the present invention there is provided an air conditioner comprising a memory, a processor and an air conditioner control program stored in the memory and operable on the processor, the processor implementing the steps of the method of the first aspect described above when executing the air conditioner control program.
In a third aspect of the present invention, there is provided a control authority request method of an air conditioner, applied to a communication module, including:
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 according to the first data through a preset algorithm, and then sending the third data to an air conditioner;
and receiving a control authority confirmation signal returned by the air conditioner.
In a fourth aspect of the present invention, there is provided a communication module comprising a memory, a processor and an air conditioning control program stored in the memory and operable on the processor, the processor implementing the steps of the method of the third aspect when executing the air conditioning control program.
In a fifth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the above-described control method of an air conditioner and/or the above-described control authority request method of an air conditioner.
Compared with the prior art, the invention provides the control method, the control authority request method, the air conditioner and the communication module, when the air conditioner receives the authority request signal, the encrypted first data is generated by a preset algorithm, the first data is used for being sent to the communication module to generate the third data according to the preset algorithm, after the air conditioner sends the first data 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 communication module which is communicated with the air conditioner is legal, the air conditioner can operate according to the control signal received by the communication interface, and the invention realizes the verification of whether an object which is communicated with the air conditioner is legal or not, and prevents illegal equipment from simulating the communication data between the communication module and the air conditioner to misappropriate the air conditioner.
Drawings
Fig. 1 is a flowchart of an embodiment of a control method of an air conditioner provided by the present invention;
fig. 2 is a communication schematic diagram of an air conditioner processor and a communication module according to an embodiment of the control method of an air conditioner provided by the present invention;
FIG. 3 is a flow chart illustrating the interaction between the air conditioner and the communication module in the embodiment of the control method of the air conditioner;
fig. 4 is a flowchart of an embodiment of a control authority request method of an air conditioner provided by 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 provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and more specific, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Example 1
The control method of the air conditioner provided by the invention can be executed by the air conditioner, and a processor in the air conditioner can realize the control method of the air conditioner provided by the invention when executing a computer program.
An embodiment of a control method of an air conditioner according to the present invention is shown in fig. 1, and includes the steps of:
and 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 an independently disposed device externally connected to the air conditioner, where the communication between the communication module and the air conditioner is actually communication 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 out instructions such as renting the air conditioner, stopping using or controlling the air conditioner through a control application of the shared air conditioner, after receiving the instructions sent by the user through the control application, the operation platform forwards corresponding instructions to the air conditioner through the communication module, the air conditioner starts, closes, adjusts the temperature and other operations according to the corresponding instructions, the communication module can be an NB-IOT (narrow-band Internet of things) module, communication is carried out with the operation platform based on a frequency band provided by an operator, package provided by the operator is charged according to fixed times/year or fixed flow/year at present, therefore, based on the consideration of operation cost, interaction between the communication module and the operation platform cannot be too frequent, otherwise, the operation cost is greatly improved, and therefore, a long-time idle window period exists between the communication module and the air conditioner through the communication module, namely, communication between the communication module and the air conditioner belongs to serial port communication through the communication interface communication, and the communication interface is independent of a frequency band provided by the operator, as shown in fig. 2, the communication module sends control data to a processor of the air conditioner, the processor of the air conditioner is easy to charge according to the operation cost, the communication module returns data to the serial port, the communication interface can be simulated, and the communication data can be easily shared by the air conditioner, and the communication data can be simulated by the communication interface is easy to the air conditioner in the operation process. In the application, the communication module sends a control permission request signal to the air conditioner, when the air conditioner receives the control permission request signal, the air conditioner generates first data according to a preset algorithm, the first data is sent out through a communication interface which is communicated with the communication module, if the communication module is legal, then third data is generated according to the first data through the preset algorithm and sent back to the air conditioner, after the air conditioner sends the first data, if fourth data received through the communication interface with the communication module is consistent with the third data, the control permission request signal is sent out by the communication module, the object which is currently communicated with the air conditioner through the interface is legal, and data transmission between the communication module and the communication module is normal, and then the air conditioner can operate according to the control signal received from the communication interface with the communication module.
And when receiving the control authority request signal, the processor of the air conditioner generates first data according to a preset algorithm. The control permission request signal is received by the processor of the air conditioner through a communication interface which communicates with the communication module, specifically, a communication data format of the communication module is agreed in advance, for example, the data format can be 'header code + data type + data content + check', different codes are set for different data types, and when the air conditioner receives the signal, whether the signal is the control permission 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 a communication interface with the air conditioner every preset time period, such as 3mi n, so that the air conditioner may confirm in real time whether the object currently performing communication is a legal communication interface. In one possible implementation manner, the communication module may also send a query signal to the air conditioner at intervals of a shorter duration, such as 1s, to query the current running state of the air conditioner, for example, whether the air conditioner is in use, whether there is a fault, etc., update the running state of the air conditioner in real time, and return related data to the operation platform when the operation platform requests the running state of the air conditioner. Because the query signal is only used for query and does not involve control, the air conditioner can directly feed back the current running 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, including:
s111, the air conditioner generates a first random number and a second random number, and first encrypted data corresponding to the first random number is obtained according to a preset corresponding relation;
s112, the air conditioner performs encryption operation on the first encrypted data through a first preset encryption algorithm to generate second encrypted data;
s113, the air conditioner arranges the second 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, namely a first random number and a second random number, wherein the first random number and the second random number can be numbers, letters, other codes or the like, and the corresponding relation between the random numbers and the data is preset, for example, a character string can be preset as a secret key, and each character is respectively corresponding to the random numbers according to the serial number of each character of the character string, such as: the first bit of the string is corresponding to the number 1, etc. After the first random number and the second random number are generated, data corresponding to the first random number is obtained according to a preset corresponding relation to serve as first encrypted data.
In this embodiment, a first preset encryption algorithm is preset, where the first preset encryption algorithm may be an operation formula defined by a developer, for example, the first preset encryption algorithm is (X is data to be encrypted): x is a1+42, (x+34) A2, (X is A3) -15. After the first encrypted data is obtained, the air conditioner calculates the first encrypted data according to a first preset encryption algorithm to generate second encrypted data, and then the second encrypted data and the 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 to form a new character string according to a preset combination sequence of the encrypted data and the random number (for example, the sequence that the encrypted data is before, the random number is after, or the encrypted data is before) and then the characters in the new character string are rearranged according to the first preset rule, for example, the characters in the character string ABCDEF are rearranged to be facbase, 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, third data is generated according to the first data and returned to the air conditioner, which will be described in the second embodiment.
Referring to fig. 1 again, the control method of the air conditioner provided in this embodiment further includes the steps of:
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 the data received by the air conditioner through the communication interface with the communication module after the first data is sent out, the third data is the 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, that is, the object which is currently communicated with the air conditioner through the communication interface is the legal communication module, and the control permission request signal is sent 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, and the air conditioner comprises:
s121, performing encryption operation on the first encrypted data through a second preset encryption algorithm to generate second data;
s122, the air conditioner rearranges the fourth data according to a second preset rule 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 out by the communication module.
In this embodiment, a second preset encryption algorithm is further preset, where the second preset encryption algorithm may be an operation formula defined by a developer, for example, the second preset encryption algorithm is (X is data to be encrypted): x+25+a1, x×a2+41, x×6. And carrying out encryption operation on the first encrypted data generated in the process of generating the first data by using a second preset encryption algorithm to generate second data.
The second preset rule is also an arrangement rule, after the air conditioner receives the fourth data, the air conditioner rearranges the fourth data according to the second preset rule to obtain a new character string, and then 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 to determine whether the third encrypted data and the second data are consistent. Specifically, in this embodiment, after the air conditioner sends the first data, if the legal communication module receives the first data, third data is obtained according to the first data operation, and the encrypted data obtained by rearranging the third data generated by the first data according to the second preset rule process is consistent with the second data, so that the air conditioner can determine whether the object currently communicating through the communication interface with the communication module is the 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 obtaining the third data according to the first data operation will be specifically described in the second embodiment.
After judging whether the fourth data is consistent with the third data, the air conditioner executes different programs according to the result of whether the fourth data is consistent with the third data, as shown in fig. 3, specifically including:
and S130, if the fourth data are 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 the control signal received from the communication interface within a first preset duration.
If the fourth data is consistent with the third data, the current communication object of the air conditioner is indicated to be legal to the communication module, the air conditioner sends a request success signal to the communication module, the processor of the air conditioner controls the air conditioner to operate according to the control signal received from the communication interface of the communication module within a first preset time period, the communication module does not send a control permission request signal within the first preset time period after receiving the request success signal, and the control permission request signal is sent again after the first preset time period, so that the air conditioner determines the legality of the communication module again according to the control permission request signal, and safe and stable communication is established between the air conditioner and the communication module.
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.
If the communication module has packet loss, communication module failure and other conditions in the communication process of the communication module and the air conditioner, the fourth data and the third data are inconsistent, so in this embodiment, if the fourth data and the third data are inconsistent, the air conditioner sends a request failure signal through a communication interface with the communication module, so that the communication module can resend the control authority request signal after receiving the request failure signal in the case that the current communication object is a legal communication module.
If the number of times that the air conditioner continuously sends the request failure signal exceeds the preset number of times, or the control authority request signal is not received within a second preset duration after the request failure signal is sent through the communication interface, the air conditioner executes a shutdown program.
The preset times can be 3 times, 5 times and the like, the times of continuously sending the request failure signal of the air conditioner exceeds the preset times, or the control authority request signal is not received within a second preset time period after the request failure signal is sent through the communication interface, so that the condition that the current communication object is not a legal communication module or communication between the current communication object and the communication module is failed is indicated, at the moment, the air conditioner executes a shutdown program, the preset times can prevent the condition that the control authority request of the communication module fails due to the condition of data packet loss, and the air conditioner is directly shut down is avoided.
Example two
In one embodiment of the present invention, there is also provided a control authority request method of an air conditioner, the method being performed by a communication module, specifically, as shown in fig. 4, one embodiment of the control authority request method of an air conditioner provided by the present invention includes the steps of:
s210, after the communication module sends an authority request signal to the air conditioner, first data returned by the air conditioner according to the control authority request signal is received.
Specifically, the communication module sends the permission request signal through the communication interface with the air conditioner at intervals of a first preset duration, after the air conditioner receives the permission request signal, 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 described in the first embodiment.
And S220, after the communication module generates third data according to the first data through a preset algorithm, the third data is sent to the air conditioner.
In order to verify the legitimacy 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 verifies the legitimacy 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:
s221, rearranging the first data according to a third preset rule to obtain fourth encrypted data, and then performing decryption operation on the fourth encrypted data through a first preset decryption algorithm to obtain first decrypted data.
S222, performing encryption operation on the first decrypted data through a second preset encryption algorithm to obtain fifth encrypted data;
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, the first preset rule is for the character string ABCDEF, rearranged as facpled, and then the third preset rule should be: for the character string ABCDEF, the character string is rearranged to BDCFEA, 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 X after rearranging according to the third preset rule. It is not difficult to see that the new character string obtained by rearranging the first data according to the third preset rule 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 sequence of the encrypted data and the random number, and obviously, the fifth encrypted data should be the same as the second data in the first embodiment.
The first preset decryption algorithm corresponds to the first preset encryption algorithm, that is, for the data X, after the data X is operated by the first preset encryption algorithm, the data X can be obtained again by performing decryption operation according to the first preset decryption algorithm. The first decryption data obtained by the communication module through the decryption operation of the first preset decryption algorithm on the fourth encryption data is the same as the first encryption data in the embodiment. And then carrying out encryption operation on the first decrypted data through a second preset encryption algorithm to obtain fifth encrypted data which is the same as the second data in the embodiment.
After the first data is received, the communication module generates a third random number, the third random number and the fifth encrypted data are arranged according to a fourth preset rule to obtain third data, and specifically, the third random number and the fifth encrypted data are combined according to a preset combination rule of the encrypted data and the random number and then rearranged according to the fourth preset rule. The fourth preset rule corresponds to the second preset rule in the first embodiment, for example, the fourth preset rule is for the character string ABCDEF, rearranged as facpled, and then the second preset rule should be: for the character string ABCDEF, the character string is rearranged to BDCFEA, 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 X after rearranging according to the second preset rule.
As can be seen from the above description of the process of generating the third data, the encrypted data obtained after the third data generated by the communication module is rearranged by 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 the first data is sent is the same as the third data.
Referring to fig. 4 again, the control authority request method of the air conditioner provided in this embodiment further includes:
s300, the communication module receives a control authority confirmation signal returned by the air conditioner.
Specifically, if the control permission confirmation signal returned by the air conditioner is a request success signal, it is indicated that the communication between the communication module and the air conditioner is normal, and the air conditioner has verified the validity of the communication module, then the communication module can normally issue a control instruction to the air conditioner, and the control permission request signal is not issued any more within a first preset duration, and the control permission request signal is issued again after a first preset duration is spaced.
If the control authority confirmation signal returned by the air conditioner is a request failure signal, the communication abnormality between the communication module and the air conditioner is indicated, for example, the faults such as packet loss, data dislocation and the like exist, and the communication module reissues the control authority request signal 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 request method of an air conditioner, when the air conditioner receives an authority request signal, a predetermined algorithm generates encrypted first data, the first data is used for being sent to a communication module to generate third data according to a predetermined algorithm, after the air conditioner sends the first data through a communication interface which communicates with the communication module, if the fourth data received through the communication interface is consistent with the third data, it is indicated that the communication module which communicates with the air conditioner is legal, 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 drawings of the present specification are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps of the present invention are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of the present invention may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order in which the sub-steps or stages are performed is not necessarily sequential, and may be performed in turn or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program, which may be stored on a non-transitory computer readable storage medium and which, when executed, may comprise the steps of the above-described embodiments of the methods. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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 (Synchi nk) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Example III
Based on the above embodiment, the present invention also provides an air conditioner, and a functional block diagram thereof may be shown in fig. 5. The air conditioner comprises a memory 20 and a computer program stored in the memory 20, and the air conditioner is in communication connection with the processor 10, wherein the memory 20 and the processor 10, when the processor 10 executes the computer program, at least the following steps can be realized:
when a control permission request signal is received, generating first data for determining whether the control permission 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 a control authority request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data or not;
if the fourth data is consistent with the third data, a request success signal is sent to the communication module through the communication interface, and the operation of the air conditioner is controlled according to the control signal received from the communication interface within a first preset duration.
The method for generating the first data for determining whether the control authority request signal is sent by the communication module according to the 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;
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 first data.
Wherein, confirm whether control authority request signal is sent by communication module through judging whether fourth data is unanimous with the third data, include:
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;
when the third encrypted data is consistent with the second data, the fourth data is determined to be consistent with the third data, and the control authority request signal is sent out by the communication module.
After judging whether the fourth data is consistent with the third data, the method further comprises:
if the fourth data and the third data are inconsistent, a request failure signal is sent through the communication interface;
and if the number of times of continuously sending the request failure signal exceeds the preset number of times, or the control authority request signal is not received within a second preset time period after the request failure signal is sent through the communication interface, executing a shutdown program.
Example IV
Based on the above embodiment, the present invention also provides a communication module, and a functional block diagram thereof may be shown in fig. 6. The air conditioner comprises a memory 40 and a computer program stored in the memory 40 and communicatively connected with the processor 30, the memory 40 and the processor 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 an 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 an air conditioner;
and receiving a control authority confirmation signal returned by the air conditioner.
Wherein, generating third data according to the first data through a preset algorithm comprises:
rearranging the first data according to a third preset rule to obtain fourth encrypted data, and then performing 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.
After receiving the control right confirmation signal returned by the air conditioner, the method further comprises the following steps:
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 a control authority request signal until a request success signal is received.
Example five
The present invention also provides a storage medium storing one or more programs executable by one or more processors to implement the control method of an air conditioner and/or the steps of the control authority request method of an air conditioner described in the above embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A control method of an air conditioner, which is applied to an air conditioner, the method comprising:
when a control permission request signal is received, generating first data for determining whether the control permission 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 right request signal is sent out by the communication module by judging whether the fourth data is consistent with the third data;
if the fourth data are consistent with the third data, a request success signal is sent to the communication module through the communication interface, and the operation of the air conditioner is controlled according to a control signal received from the communication interface within a first preset duration;
the generating, according to a preset algorithm, first data for determining whether the control right request signal is sent by the communication module includes:
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;
the second encrypted data and the second random number are arranged according to a first preset rule to obtain the first data;
the determining 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, includes:
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;
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 out by the communication module;
the third data is generated in the following manner:
rearranging the first data by the communication module according to a third preset rule to obtain fourth encrypted data, and then performing 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;
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, the first preset decryption algorithm corresponds to the first preset encryption algorithm, and the fourth preset rule corresponds to the second preset rule.
2. The method of claim 1, wherein after said determining whether the fourth data is consistent with the third data, the method further comprises:
if the fourth data and the third data are inconsistent, a request failure signal is sent through the communication interface;
and if the number of times of continuously sending the request failure signal exceeds the preset number of times, or the control authority request signal is not received within a second preset time period after the request failure signal is sent through the communication interface, executing a shutdown program.
3. An air conditioner comprising a memory, a processor and an air conditioner control program stored in the memory and operable on the processor, the processor implementing the steps of the method of any one of claims 1-2 when the air conditioner control program is executed.
4. The control authority request method of the air conditioner is characterized by being applied to a communication module, and 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 according to the first data through a preset algorithm, and then sending the third data to an air conditioner;
receiving a control right confirmation signal returned by the air conditioner, wherein the control right confirmation signal is sent out when the third encrypted data is consistent with the second data;
the generating third data according to the first data through a preset algorithm comprises the following steps:
rearranging the first data according to a third preset rule to obtain fourth encrypted data, and then performing 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;
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 first data is generated in the following manner:
the air conditioner generates a first random number and a second random number, and first encrypted data corresponding to the first random number is obtained 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;
the second encrypted data and the second random number are arranged according to a first preset rule to obtain the first data;
the second data is generated in the following manner:
the air conditioner performs encryption operation on the first encrypted data through a second preset encryption algorithm to generate second data;
the third encrypted data is generated in the following manner:
the air conditioner rearranges fourth data received through a communication interface according to a second preset rule to obtain third encrypted data;
the third preset rule corresponds to the first preset rule, the first preset decryption algorithm corresponds to the first preset encryption algorithm, and the fourth preset rule corresponds to the second preset rule.
5. The method of claim 4, wherein after receiving the control authority confirmation signal returned by the air conditioner, the method further comprises:
if the control right confirmation signal is a request success signal, the control right request signal is sent out again after a first preset time interval;
and if the control authority confirmation signal is a request failure signal, the control authority request signal is reissued until the request success signal is received.
6. A communication module comprising a memory, a processor and an air conditioning control authority request program stored in the memory and executable on the processor, the processor implementing the steps of the method of any of the preceding claims 4-5 when executing the air conditioning control authority request program.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the method according to any one of claims 1-2 and/or the steps of the method according to any one of claims 4-5.
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 CN112751872A (en) 2021-05-04
CN112751872B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865981B (en) * 2022-11-29 2024-05-31 宁波奥克斯电气股份有限公司 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

Also Published As

Publication number Publication date
CN112751872A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
US9280653B2 (en) Security access method for automotive electronic control units
US9648023B2 (en) Vehicle module update, protection and diagnostics
US8898475B2 (en) Method, controller and system for detecting infringements of the authenticity of system components
CN114945021B (en) Unmanned vehicle remote debugging method, device, system and storage medium
US20190034637A1 (en) In-vehicle apparatus for efficient reprogramming and controlling method thereof
CN111415161A (en) Block chain-based data verification method and device and computer-readable storage medium
CN112751872B (en) Control method of air conditioner, control authority request method, air conditioner and communication module
CN105471902A (en) Data encryption method and system based on issued encryption algorithm
CN116016168B (en) Software function activation method, device, equipment and storage medium
OA12005A (en) Method and device for guaranteeing the integrity and authenticity of a set of data.
CN115903724A (en) Activation method, device, computer equipment and storage medium of controller system
CN113885907B (en) A firmware upgrade system and method
CN114692124A (en) Data reading and writing method and device and electronic equipment
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
KR102466866B1 (en) Data verification method
CN109150813B (en) Equipment verification method and device
CN106571917A (en) IC card intelligent gas meter ESAM embedded safety management module
CN114091008A (en) Method for securely updating a control device
CN111093190B (en) Method, device, system, electronic equipment and storage medium for writing key data
CN112118209B (en) Account operation method and device of vehicle equipment
CN116880871A (en) Refreshing method, device, equipment and storage medium of vehicle controller
CN111586688A (en) Identity identification generation and verification method based on environment perception
CN1716850B (en) Method and system for secure verification of a set-top-box chip
CN110971610A (en) Control system identity verification method and device, computer equipment and storage medium
JP2025514707A (en) How to respond safely to violations of security policies

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