Control method of air conditioning system, air conditioning system and cloud server
By introducing near-field communication and dynamic code sequences managed by a cloud server into the air conditioning system, the validity of the dynamic code is verified, which solves the problem that the encryption and unlocking passwords of the air conditioning system are easily cracked and improves security.
Patent Information
- Application Number
- CN202310281389.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2043-03-21
AI Technical Summary
The encryption and unlocking passwords of existing air conditioning systems are easily cracked by others, leading to security risks.
The system uses a near-field communication (NFC) component to establish a connection with the terminal device, generates and manages dynamic code sequences through a cloud server, and verifies whether the dynamic code belongs to the valid dynamic code set. It only executes control commands when the verification is successful.
This improves the security of the air conditioning system and reduces the risk of malicious attacks from others.
Smart Images

Figure CN116379507B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of air conditioning, in particular to a control method of an air conditioning system, the air conditioning system and a cloud server. BACKGROUND
[0002] With the development of economy and society, air conditioning systems are increasingly widely used in entertainment, home and work and other places.
[0003] The current air conditioning system generally adopts a fixed unlocking password, and the user inputs the unlocking password to the air conditioning system through an application software, so that the air conditioning system can be unlocked. However, this method is easy to obtain the password by others, thereby easily causing the unlocking password of the same series of air conditioning systems to be cracked, and the same series of air conditioning systems have security risks. SUMMARY
[0004] The present application provides a control method of an air conditioning system, the air conditioning system and a cloud server, which are used to improve the security of the air conditioning system.
[0005] To achieve the above purpose, the present application adopts the following technical solutions:
[0006] In a first aspect, the present application provides an air conditioning system, which comprises: an indoor unit; an outdoor unit; a near field communication (NFC) component, configured to establish a near field communication connection with a terminal device; a storage, connected with a controller, and configured to store a dynamic code sequence and a first pointer, wherein the dynamic code sequence comprises a plurality of dynamic codes, and the first pointer is used to point to one dynamic code in the dynamic code sequence; and the controller is configured to: after establishing the near field communication connection with the terminal device, receive first key information sent by the terminal device through the NFC component, wherein the first key information comprises a first dynamic code and an air conditioning control instruction, and the first dynamic code is a dynamic code currently pointed to by a second pointer stored by a cloud server in the dynamic code sequence stored by the cloud server; obtain an effective dynamic code set from the storage, wherein the effective dynamic code set comprises a second dynamic code and all dynamic codes after the second dynamic code in the dynamic code sequence, and the second dynamic code is a dynamic code currently pointed to by the first pointer; verify whether the first dynamic code belongs to the effective dynamic code set; when the first dynamic code belongs to the effective dynamic code set, execute the air conditioning control instruction, and point the first pointer to a first dynamic code after the second dynamic code in the dynamic code sequence.
[0007] The technical scheme provided by the embodiments of the present application at least brings the following beneficial effects: the air conditioning system provided by the present application, after obtaining the first dynamic code in the dynamic code sequence stored by the cloud server, verifies whether the first dynamic code belongs to the valid dynamic code set stored in the air conditioning system, and sends the air conditioning control instruction to the indoor unit when the first dynamic code belongs to the valid dynamic code set. It can be understood that the valid dynamic code set is determined based on the dynamic code currently pointed to by the first pointer, and if the dynamic code pointed to by the first pointer changes, the valid dynamic code set also changes accordingly. Therefore, even if someone obtains the current first dynamic code, the valid dynamic code set will change, causing the current first dynamic code to fail the verification. In this way, the risk of malicious attacks by others can be effectively reduced, thereby effectively improving the security of the air conditioning system.
[0008] In some embodiments, the controller is further configured to: send a locking instruction to the indoor unit when the first dynamic code does not belong to the valid dynamic code set; wherein the locking instruction is used to control the indoor unit to perform a locking operation.
[0009] In some embodiments, the controller is further configured to: obtain a device identification code of the air conditioning system, wherein the device identification code includes a first field and a second field, the first field includes an identification bit and a type of the air conditioning system, the second field includes a MAC address of the air conditioning system, and the first field is located before the second field; adjust the second field to be before the first field to obtain an adjusted device identification code; and generate a plurality of dynamic codes based on the adjusted device identification code through an increment operation of the first field.
[0010] In a second aspect, the present application provides a cloud server, comprising: a storage for storing a dynamic code sequence and a second pointer, wherein the dynamic code sequence includes a plurality of dynamic codes, and the second pointer is used to point to a dynamic code in the dynamic code sequence; a communicator for communicating with a terminal device; and a processor configured to: receive a key request instruction sent by the terminal device through the communicator; and send first key information to the terminal device, the first key information including a first dynamic code and an air conditioning control instruction, the first dynamic code being a dynamic code currently pointed to by the second pointer in the dynamic code sequence.
[0011] In some embodiments, the processor is further configured to: point the second pointer to the first dynamic code in the dynamic code sequence.
[0012] In some embodiments, the processor is further configured to: acquire a device identification code of the air conditioning system, wherein the device identification code comprises a first field and a second field, the first field comprises an identification bit and a type of the air conditioning system, the second field comprises a MAC address of the air conditioning system, and the first field is located before the second field; adjust the second field to be before the first field to obtain an adjusted device identification code; and generate a plurality of dynamic codes based on the adjusted device identification code through an increment operation of the first field.
[0013] In a third aspect, an embodiment of the present application provides a control method of an air conditioning system. The method is applied to the air conditioning system and comprises: receiving first key information sent by a terminal device through an NFC component after a near field communication connection is established with the terminal device; wherein the first key information comprises a first dynamic code and an air conditioning control instruction, the first dynamic code is a dynamic code currently pointed to by a second pointer stored by a cloud server in a dynamic code sequence; acquiring an effective dynamic code set from a memory, the effective dynamic code set comprises all dynamic codes after a second dynamic code in the dynamic code sequence, the second dynamic code is a dynamic code currently pointed to by a first pointer; verifying whether the first dynamic code belongs to the effective dynamic code set; and when the first dynamic code belongs to the effective dynamic code set, executing the air conditioning control instruction and pointing the first pointer to a first dynamic code after the second dynamic code in the dynamic code sequence.
[0014] In a fourth aspect, an embodiment of the present application provides another control method of an air conditioning system. The method is applied to a cloud server and comprises: receiving a key request instruction sent by a terminal device through a communicator; and sending first key information to the terminal device, the first key information comprises a first dynamic code and an air conditioning control instruction, the first dynamic code is a dynamic code currently pointed to by a second pointer in a dynamic code sequence.
[0015] In some embodiments, the method further comprises: pointing the second pointer to a first dynamic code after the first dynamic code in the dynamic code sequence.
[0016] In a fifth aspect, an embodiment of the present application provides a controller. The controller comprises: one or more processors; and one or more memories. The one or more memories are configured to store computer program codes. The computer program codes comprise computer instructions. When the one or more processors execute the computer instructions, the controller performs any one of the control methods of the air conditioning system provided in the third aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer readable storage medium. The computer readable storage medium comprises computer instructions. When the computer instructions are controlled on a computer, the computer instructions make the computer execute the methods provided in the third aspect and possible implementation manners.
[0018] In a seventh aspect, an embodiment of the present application provides a computer program product, which can be directly loaded into a memory and contains software codes, and the computer program product can realize the method provided in the third aspect and possible implementation manners after being loaded and executed by a computer.
[0019] It should be noted that the computer instructions described above can be stored in the computer readable storage medium in whole or in part. The computer readable storage medium can be packaged together with the processor of the controller or packaged separately from the processor of the controller, and the present application does not limit this.
[0020] The beneficial effects of the second aspect to the seventh aspect described in the present application can be analyzed with reference to the beneficial effects of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0021] The accompanying drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, and are used to explain the technical solutions of the present application together with the embodiments of the present application, and do not constitute a limitation on the technical solutions of the present application.
[0022] Figure 1 An application scenario schematic diagram provided by an embodiment of the present application is shown in the following figure:
[0023] Figure 2 A composition schematic diagram of an air conditioning system provided by an embodiment of the present application is shown in the following figure:
[0024] Figure 3 A hardware configuration block diagram of an air conditioning system provided by an embodiment of the present application is shown in the following figure:
[0025] Figure 4 A structure schematic diagram of a cloud server provided by an embodiment of the present application is shown in the following figure:
[0026] Figure 5 A flowchart of a control method of an air conditioning system provided by an embodiment of the present application is shown in the following figure:
[0027] Figure 6 A cyclic use schematic diagram of a dynamic code sequence provided by an embodiment of the present application is shown in the following figure:
[0028] Figure 7 Another cyclic use schematic diagram of a dynamic code sequence provided by an embodiment of the present application is shown in the following figure:
[0029] Figure 8 A schematic diagram of an effective dynamic code set provided by an embodiment of the present application is shown in the following figure:
[0030] Figure 9 A schematic diagram of verifying a first dynamic code provided by an embodiment of the present application is shown in the following figure:
[0031] Figure 10A flow chart of another control method of an air conditioning system provided by an embodiment of the present application is shown in FIG. 6.
[0032] Figure 11 A schematic diagram of multiple dynamic codes generated by an air conditioning system provided by an embodiment of the present application is shown in FIG. 5.
[0033] Figure 12 A flow chart of another control method of an air conditioning system provided by an embodiment of the present application is shown in FIG. 6.
[0034] Figure 13 A hardware structure schematic diagram of a controller provided by an embodiment of the present application is shown in FIG. 7. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0036] It should be noted that all directional indications, such as up, down, left, right, front, back, etc., in the embodiments of the present application are only used to explain the relative positional relationship, movement condition, etc. between components in a certain posture (as shown in the drawings), and if the certain posture changes, the directional indications also change accordingly.
[0037] The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified and limited, the meaning of "multiple" is two or more.
[0038] In the description of the present application, it should be noted that, unless otherwise specified and limited, the terms "connected", "connected" should be understood in a broad sense, for example, it can be fixedly connected, or detachably connected, or integrally connected. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances. In addition, when describing the pipeline, the "connected" and "connected" used in the present application have the meaning of conducting. The specific meaning needs to be understood in combination with the context.
[0039] In the embodiments of the present application, the word "exemplary" or "for example" is used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application is not necessarily to be construed as preferred or advantageous over other embodiments or designs. In fact, a variety of implementations of the embodiments of the present application are possible, and the word "exemplary" or "for example" is used herein to present concepts in a concrete manner.
[0040] With the rapid development of the current sharing economy, the shared air conditioner emerges as the times require, greatly facilitating people's life. The existing air conditioning system usually provides a permanent or periodically updated fixed password for the user to control the air conditioning system through the application software. However, this way may bring potential risks, for example, unauthorized personnel may obtain the password and use the password to crack the same series of air conditioning systems. In addition, the fixed password also has potential risks such as easy brute force cracking.
[0041] Therefore, the embodiments of the present application provide a control method of an air conditioning system. After obtaining a first dynamic code in a dynamic code sequence stored by a cloud server, it is verified whether the first dynamic code belongs to a valid dynamic code set stored in the air conditioning system. When the first dynamic code belongs to the valid dynamic code set, an air conditioning control instruction is sent to an indoor unit. In this way, the air conditioning system uses multiple dynamic codes, which can effectively reduce the risk of malicious attacks by others, thereby effectively improving the security of the air conditioning system.
[0042] Figure 1 An application scenario provided by the embodiments of the present application is shown in FIG. 1. As shown in FIG. 1, the application scenario includes an air conditioning system 10, a cloud server 20, and a terminal device 30. Figure 1
[0043] The air conditioning system 10 is a device for adjusting and controlling the temperature, humidity, flow rate, and other parameters of the air in the environment of a building or structure. The air conditioning system 10 can be a cabinet air conditioner, a wall-mounted air conditioner, a central air conditioner, etc. The specific form of the air conditioning system 10 is not specially limited in the present application.
[0044] The cloud server 20 can be a cloud server providing cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks, big data servers, and other basic cloud computing services. The specific form of the cloud server 20 is not specially limited in the present application.
[0045] Terminal device 30 can be a remote control, mobile phone, tablet computer, personal computer (PC), personal digital assistant (PDA), smartwatch, netbook, wearable electronic device, augmented reality (AR) device, virtual reality (VR) device, robot, etc. Figure 1 The terminal device 30 shown is only one example of a terminal device, and this application does not impose any special restrictions on the specific form of the terminal device 30.
[0046] In some embodiments, the cloud server 20 may receive a key request instruction sent by the terminal device 30. In response to the key request instruction, the cloud server 20 concatenates the air conditioning control instruction sent by the user through the terminal device with the dynamic code stored in the cloud server 20 to form key information, and sends the key information to the terminal device 30.
[0047] In some embodiments, the air conditioning system 10 can receive key information sent by the terminal device 30. Based on the key information, the air conditioning system 10 matches the dynamic code in the key information with the dynamic code stored in the air conditioning system 10. If the dynamic code in the key information matches successfully, the air conditioning system 10 can perform corresponding operations according to the air conditioning control instructions in the key information.
[0048] Figure 2 This is a schematic diagram illustrating the composition of an air conditioning system provided in an embodiment of this application. Figure 1 As shown, the air conditioning system 10 includes an indoor unit 11, an outdoor unit 12, and a controller 13. Figure 1 (Not shown in the image).
[0049] Indoor unit 11, taking indoor unit 11 as an example of an indoor wall-mounted unit, is usually installed on an indoor wall. Another example is a floor-standing indoor unit.
[0050] Outdoor unit 12 is typically installed outdoors for heat exchange within the indoor environment. Additionally, in... Figure 1 In the diagram, outdoor unit 12 is shown as a dashed line because it is located on the opposite side of indoor unit 11, separated by a wall.
[0051] In the embodiments shown in the present application, the controller 13 refers to a device that can generate operation control signals according to instruction operation codes and timing signals to instruct the air conditioning system to execute control instructions. Exemplarily, the controller can be a central processing unit (CPU), a general processor network processor (NP), a digital signal processing (DSP), a micro control unit (MCU), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The controller can also be other devices with processing functions, such as a circuit, a device, or a software module, and the embodiments of the present application do not make any limitation in this regard.
[0052] In addition, the controller 13 can be used to control the operation of various components inside the air conditioning system 10, so that the various components of the air conditioning system 10 operate to achieve the predetermined functions of the air conditioning system.
[0053] Figure 3 A hardware configuration block diagram of an air conditioning system provided by the embodiments of the present application is shown in FIG. 1. As shown in the figure, the air conditioning system 10 further includes a compressor 101, an outdoor heat exchanger 102, an expansion valve 103, a liquid accumulator 104, an indoor heat exchanger 105, a near field communication (NFC) component 106, and a memory 107. Figure 3
[0054] Among them, the indoor heat exchanger 105 belongs to a part of the indoor unit 11, and the compressor 101, the outdoor heat exchanger 102, and the liquid accumulator 104 belong to a part of the outdoor unit 12.
[0055] In some embodiments, the compressor 101 sucks in refrigerant from a suction port, compresses the refrigerant inside, and discharges the compressed refrigerant from a discharge port to the indoor heat exchanger 105. The compressor 101 can be an inverter compressor with variable capacity based on inverter-based speed control.
[0056] In some embodiments, the outdoor heat exchanger 102 has a first port for allowing refrigerant to flow between the outdoor heat exchanger 102 and the suction port of the compressor 101 via the liquid accumulator 104, and has a second port for allowing refrigerant to flow between the outdoor heat exchanger 102 and the expansion valve 103. The outdoor heat exchanger 102 exchanges heat between the outdoor air and the heat pump flowing in the heat transfer pipe connected between the first port and the second port.
[0057] In some embodiments, the expansion valve 103 has a function of expanding and depressurizing the refrigerant flowing through the expansion valve 103, and can be used to adjust the supply amount of the refrigerant in the pipe. If the opening degree of the expansion valve 103 is reduced, the flow path resistance of the refrigerant passing through the expansion valve 103 is increased. If the opening degree of the expansion valve 103 is increased, the flow path resistance of the refrigerant passing through the expansion valve 103 is reduced. In this way, even if the states of other devices in the circuit do not change, when the opening degree of the expansion valve 103 changes, the refrigerant flow to the indoor unit 11 also changes.
[0058] In some embodiments, one end of the accumulator 104 is connected to the compressor 101, and the other end is connected to the outdoor heat exchanger 102. In the accumulator 104, the refrigerant flowing from the outdoor heat exchanger 102 to the compressor 101 is separated into gaseous refrigerant and liquid refrigerant. And the gaseous refrigerant is mainly supplied to the suction port of the compressor 101 from the accumulator 104.
[0059] In some embodiments, the indoor heat exchanger 105 has a third port for passing the liquid refrigerant between the expansion valve 103, and has a fourth port for passing the gaseous refrigerant between the discharge port of the compressor 101. The indoor heat exchanger 105 exchanges heat between the refrigerant flowing in the heat transfer pipe connected between the third port and the fourth port and the indoor air.
[0060] The NFC component 106 is used to support the air conditioning system 10 to communicate with other devices.
[0061] The memory 107 can be used to store software programs and data, which includes a dynamic code sequence and a first pointer, the first pointer points to the first dynamic code of the dynamic code sequence by default. The controller 13 executes various functions of the air conditioning system 10 and data processing by running the software programs or data stored in the memory 107. The memory 107 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 107 stores an operating system that enables the air conditioning system 10 to operate. In this application, the memory 107 can store an operating system and various application programs, and can also store codes for executing the control method of the air conditioning system provided by the embodiments of the application.
[0062] Those skilled in the art can understand that, Figure 3 The hardware structure shown in the above figure does not constitute a limitation on the air conditioning system, and the air conditioning system can include more or fewer components than the figure, or combine certain components, or different component arrangements.
[0063] Figure 4 A hardware structure schematic diagram of a cloud server provided by an embodiment of the application is shown in FIG. 8. As shown in FIG. 8, the cloud server includes a processor 801, a memory 802, a communication interface 803, and a bus 804. The bus 804 can be a hardware line that connects the processor 801, the memory 802, and the communication interface 803, and can be used to transmit data between the processor 801, the memory 802, and the communication interface 803. Figure 4As shown, the cloud server 20 includes a processor 21, a memory 22, and a communicator 23.
[0064] The processor 21 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to perform the functions of the embodiments of the present disclosure, such as one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).
[0065] In some embodiments, the memory 22 can be configured to store software programs and data, including a dynamic code sequence and a second pointer, the second pointer pointing to a first dynamic code of the dynamic code sequence by default. The processor 21 performs various functions and data processing of the cloud server 20 by running the software programs or data stored in the memory 22. The memory 22 can include a high-speed random access memory, and can further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. The memory 22 stores an operating system that enables the cloud server 20 to operate. In the present application, the memory 22 can store an operating system and various application programs, and can further store codes for performing the control method of the air conditioning system provided by the embodiments of the present application.
[0066] In some embodiments, the communicator 23 is configured to establish a communication connection with other network entities, such as a terminal device. The communicator 23 can include a radio frequency (RF) module, a cellular module, a wireless fidelity (WIFI) module, and a GPS module, etc. Taking the RF module as an example, the RF module can be configured to receive and send signals, in particular, to send the received information to the processor 21 for processing, and to send the signals generated by the processor 21. Generally, the RF circuit can include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0067] Those skilled in the art can understand that the structure shown in the above Figure 4 It should be understood that the structure shown in the above is not a limitation on the cloud server, and the cloud server can include more or fewer components than those shown, or combine certain components, or different component arrangements.
[0068] The embodiments provided by the present application will be described in detail below with reference to the accompanying drawings.
[0069] As shown in Figure 5 , the embodiments provided by the present application provide a control method of an air conditioning system, and the method comprises the following steps.
[0070] S101, the cloud server receives a key request instruction sent by the terminal device through the communicator.
[0071] In some embodiments, when the user controls the air conditioning system through the terminal device, the terminal device sends a key request instruction to the cloud server to request key information, so as to realize the control of the air conditioning system.
[0072] S102, the cloud server sends first key information to the terminal device.
[0073] The first key information comprises a first dynamic code and an air conditioning control instruction, and the first dynamic code is a dynamic code currently pointed to by a second pointer in a dynamic code sequence.
[0074] In some embodiments, after the cloud server receives the key request instruction, the cloud server encrypts the first dynamic code in the dynamic code sequence together with the air conditioning control instruction issued by the user through the terminal device by using an encryption algorithm to form the first key information.
[0075] The cloud server stores a pre-generated dynamic code sequence, and the dynamic code in the dynamic code sequence is a password for performing a locking operation or an unlocking operation of the air conditioning system.
[0076] Optionally, the encryption algorithm can be a one-way hash encryption algorithm, a symmetric encryption algorithm, an asymmetric encryption algorithm, etc.
[0077] In some embodiments, after the cloud server sends the first key information to the terminal device, the second pointer points to the first dynamic code after the first dynamic code in the dynamic code sequence.
[0078] In some embodiments, if the dynamic code currently pointed to by the second pointer is the last dynamic code in the dynamic code sequence, after the cloud server sends the first key information to the terminal device, the second pointer will point to the first dynamic code in the dynamic code sequence, that is, the dynamic codes in the dynamic code sequence are connected in a loop and used in a loop.
[0079] For example, as shown in Figure 6 , the first dynamic code currently pointed to by the second pointer in the cloud server is 01005E010001-000A, and after the cloud server sends the first key information to the terminal device, as shown in Figure 7 , the first pointer points to the dynamic code 01005E010001-0002.
[0080] S103, after the air conditioning system establishes the near field communication connection with the terminal device, receiving the first key information sent by the terminal device through the NFC component.
[0081] The first key information includes a first dynamic code and an air conditioner control instruction. The first dynamic code is a dynamic code pointed to by a second pointer stored in the cloud server in a dynamic code sequence stored in the cloud server. The air conditioner control instruction includes a locking instruction and an unlocking instruction.
[0082] In some embodiments, when the user needs to control the air conditioning system, in addition to issuing an air conditioner control instruction to the air conditioning system through the remote controller of the air conditioning system, the user can also issue an air conditioner control instruction to the air conditioning system through a terminal device with NFC communication function to control the air conditioning system to perform corresponding operations.
[0083] In actual application, after the user establishes the near field communication connection with the air conditioning system through the terminal device, the user sends the first key information to the air conditioning system through the terminal device. After receiving the first key information, the air conditioning system decrypts the received first key information and extracts the first dynamic code and the air conditioner control instruction.
[0084] It can be understood that in some embodiments, the first key information can be encrypted by an encryption algorithm. Therefore, after receiving the first key information, the air conditioning system also needs to decrypt the first key information to obtain the first dynamic code and the air conditioner control instruction therein.
[0085] S104, the air conditioning system obtains a valid dynamic code set from the memory.
[0086] The valid dynamic code set includes the second dynamic code and all dynamic codes after the second dynamic code in the dynamic code sequence. The second dynamic code is the dynamic code currently pointed to by the first pointer.
[0087] It can be understood that the air conditioning system stores a pre-generated dynamic code sequence. The dynamic code in the dynamic code sequence in the air conditioning system is used to verify the first dynamic code sent by the terminal device.
[0088] In some embodiments, after receiving the first key information sent by the user through the terminal device, the controller obtains a valid dynamic code set from the dynamic code sequence in the memory to verify the first dynamic code in the first key information.
[0089] For example, Figure 8As shown, the dynamic code sequence includes dynamic code 01005E010001-0002, dynamic code 01005E010001-0004, dynamic code 01005E010001-0006, dynamic code 01005E010001-0006, and dynamic code 01005E010001-000A. The dynamic code currently pointed to by the first pointer is dynamic code 01005E010001-0004, and thus the effective dynamic code set includes dynamic code 01005E010001-0004, dynamic code 01005E010001-0006, dynamic code 01005E010001-0008, and dynamic code 01005E010001-000A.
[0090] In S105, the air conditioning system verifies whether the first dynamic code belongs to the effective dynamic code set.
[0091] In some embodiments, the controller compares the received first dynamic code with the dynamic codes in the effective dynamic code set, and when it is determined that the first dynamic code belongs to the effective dynamic code set, the verification is successful, otherwise, the verification fails.
[0092] In one example, the controller compares the received first dynamic code with a second dynamic code in the effective dynamic code set, and if the first dynamic code is consistent with the second dynamic code, the verification is successful, otherwise, the verification fails.
[0093] In another example, even if the first dynamic code is not consistent with the second dynamic code, as long as the first dynamic code is consistent with any dynamic code within a preset range after the second dynamic code in the effective dynamic code set, the verification is considered successful.
[0094] It should be noted that when the distance between the terminal device and the air conditioning system exceeds the near field communication connection distance, the user mistakenly touches the air conditioning control key on the terminal device, and issues an air conditioning control instruction to the air conditioning system, but due to the long communication distance, the air conditioning system cannot receive the air conditioning control instruction, and thus cannot compare the first dynamic code with the second dynamic code. When the user issues the air conditioning control instruction next time, since the first dynamic code pointed to by the second pointer of the cloud server changes, and the second dynamic code pointed to by the first pointer of the air conditioning system does not change, if the first dynamic code is compared with the second dynamic code, the verification will definitely fail. Therefore, in order to avoid the problem of user's mistaken touch and other unexpected problems, causing the air conditioning system to fail to lock or unlock, it is set that the first dynamic code is consistent with any dynamic code within a preset range after the second dynamic code in the effective dynamic code set, which is considered as verification success.
[0095] For example, as shown in FIG. 6, the dynamic code sequence includes dynamic code 01005E010001-0002, dynamic code 01005E010001-0004, dynamic code 01005E010001-0006, dynamic code 01005E010001-0006, and dynamic code 01005E010001-000A. The dynamic code currently pointed to by the first pointer is dynamic code 01005E010001-0004, and thus the effective dynamic code set includes dynamic code 01005E010001-0004, dynamic code 01005E010001-0006, dynamic code 01005E010001-0008, and dynamic code 01005E010001-000A. Figure 9As shown, the valid dynamic code set includes dynamic code 01005E010001-0004, dynamic code 01005E010001-0006, dynamic code 01005E010001-0008, and dynamic code 01005E010001-000A. When the first dynamic code is dynamic code 01005E010001-0004 and the second dynamic code is dynamic code 01005E010001-0004, the first dynamic code is consistent with the second dynamic code, i.e., the first dynamic code belongs to the valid dynamic code set. Therefore, the first dynamic code 01005E010001-000A is verified successfully.
[0096] When the first dynamic code is dynamic code 01005E010001-0008 and the second dynamic code is dynamic code 01005E010001-0004, and the dynamic codes in the preset range after the second dynamic code include dynamic code 01005E010001-0006 and dynamic code 01005E010001-0008, since the first dynamic code is consistent with dynamic code 01005E010001-0008 in the two dynamic codes after the second dynamic code in the valid dynamic code set, i.e., the first dynamic code belongs to the valid dynamic code set, the first dynamic code 01005E010001-0008 is verified successfully.
[0097] S106, when the first dynamic code belongs to the valid dynamic code set, the air conditioning system executes the air conditioning control instruction, and the first pointer points to the first dynamic code after the second dynamic code in the dynamic code sequence.
[0098] In some embodiments, when the first dynamic code belongs to the valid dynamic code set, i.e., the first verification code is verified successfully, the controller sends the air conditioning control instruction to the indoor unit.
[0099] In some embodiments, when the indoor unit receives the air conditioning control instruction, the indoor unit can perform corresponding operations. For example, when the air conditioning control instruction is an unlocking instruction, the indoor unit starts running, thereby providing air conditioning service for the user. When the air conditioning instruction is a locking instruction, the indoor unit stops running, thereby stopping providing air conditioning service for the user.
[0100] In some embodiments, when the first dynamic code belongs to the valid dynamic code set, the first pointer also points to the first dynamic code after the second dynamic code in the dynamic code sequence.
[0101] In some embodiments, if the dynamic code currently pointed to by the first pointer is the last dynamic code in the dynamic code sequence, when the first dynamic code belongs to the valid dynamic code set, the first pointer points to the first dynamic code in the dynamic code sequence, i.e., the dynamic codes in the dynamic code sequence are connected in a loop and used in a loop.
[0102] For example,Figure 6 As shown, in the air conditioning system, the first pointer currently points to the second dynamic code 01005E010001-000A, and in the cloud server, the second pointer currently points to the first dynamic code 01005E010001-000A. Therefore, the first dynamic code and the second dynamic verification code are consistent at this time. Then, as... Figure 7 As shown, the first pointer is set to the dynamic code 01005E010001-0002.
[0103] In some embodiments, when the first dynamic code does not belong to the set of valid dynamic codes, a lock command is sent to the indoor unit. The lock command is used to control the indoor unit to perform a lock operation.
[0104] It should be noted that steps S101 and S102 are executed by the processor of the cloud server, while steps S103, S104, S105 and S106 are executed by the controller of the air conditioning system.
[0105] based on Figure 5 The embodiment shown in this application provides a control method for an air conditioning system. After obtaining a first dynamic code from a dynamic code sequence stored on a cloud server, the method verifies whether the first dynamic code belongs to the set of valid dynamic codes stored in the air conditioning system. If the first dynamic code belongs to the set of valid dynamic codes, an air conditioning control command is sent to the indoor unit. It is understood that the set of valid dynamic codes is determined based on the dynamic code currently pointed to by a first pointer. If the dynamic code pointed to by the first pointer changes, the set of valid dynamic codes also changes accordingly. Therefore, even if someone else obtains the current first dynamic code, the set of valid dynamic codes will change, causing the verification of the current first dynamic code to fail. This effectively reduces the risk of malicious attacks by others, thereby effectively improving the security of the air conditioning system.
[0106] In some embodiments, such as Figure 10 As shown, the method also includes the following steps:
[0107] S201. Obtain the equipment identification code of the air conditioning system.
[0108] The device identification code includes a first field and a second field. The first field includes an identifier and the type of the air conditioning system, and the second field includes the MAC address of the air conditioning system. The first field is located before the second field.
[0109] For example, the first field of the device identification code of an air conditioning system includes a 1-bit identifier and a 3-bit type of the air conditioning system, and the second field includes a 12-bit MAC address of the air conditioning system. For example, the device identification code of an air conditioning system is 0004-01005E010001.
[0110] Wherein, the 1st bit is a fixed value, the 3rd bit can represent 4095 types of air conditioning system, and the 12th bit is a unique code for each air conditioning system.
[0111] S202, the air conditioning system adjusts the second field to before the first field to obtain an adjusted device identification code.
[0112] It can be understood that, since the MAC address is a unique code for each air conditioning system, the second field has uniqueness and can uniquely determine an air conditioning system. Before generating multiple dynamic codes, in order to not affect the uniqueness of the second field, the second field can be adjusted to before the first field. In this way, even if the first field changes, the device identification code can still uniquely determine an air conditioning system.
[0113] S203, the air conditioning system generates multiple dynamic codes based on the adjusted device identification code through the self-increment operation of the first field.
[0114] In some embodiments, based on the adjusted device identification code, the first field is self-incremented according to a preset step length to generate a preset number of dynamic codes. For example, the preset step length is 2 and the preset number is 100, so the dynamic code sequence includes 100 dynamic codes.
[0115] Wherein, the upper limit value of the product of the preset step length and the preset number is 4096.
[0116] For example, as shown in Figure 11 , the device identification code of the air conditioning system is 0002-01005E010001, the adjusted device identification code is 01005E010001-0002, and based on the adjusted device identification code, the first field 0002 is self-incremented by 2 to obtain 5 dynamic codes, which are dynamic code 01005E010001-0002, dynamic code 01005E010001-0004, dynamic code 01005E010001-0006, dynamic code 01005E010001-0008 and dynamic code 01005E010001-000A.
[0117] It should be noted that the above steps S201, S202 and S203 are executed by the controller of the air conditioning system.
[0118] In some embodiments, as shown in Figure 12 , the method further includes the following steps:
[0119] S301, the cloud server obtains the device identification code of the air conditioning system.
[0120] The device identification code includes a first field and a second field, the first field includes identification bits and a type of the air conditioning system, the second field includes a MAC address of the air conditioning system, and the first field is located before the second field.
[0121] In some embodiments, the user sends the device identification code of the air conditioning system to the cloud server through the terminal device.
[0122] In an example, the user can scan a two-dimensional code on the air conditioning system through an application in the mobile terminal, and send the device identification code of the air conditioning system to the cloud server.
[0123] In another example, the user can input the device identification code of the air conditioning system into the application in the mobile terminal, so that the application sends the device identification code of the air conditioning system to the cloud server.
[0124] S302, the cloud server adjusts the second field to be before the first field, and obtains an adjusted device identification code.
[0125] S303, the cloud server generates a plurality of dynamic codes based on the adjusted device identification code through an auto-increment operation of the first field.
[0126] In some embodiments, the plurality of generated dynamic codes form a dynamic code sequence, which is bound to the terminal device, that is, the dynamic code sequence is only sent to the terminal device, and is stored in a memory of the cloud server.
[0127] It should be noted that the above steps S301, S302 and S303 are executed by a processor of the cloud server.
[0128] It can be seen that the above mainly introduces the scheme provided by the embodiments of the present application from the perspective of method. In order to realize the above functions, the embodiments of the present application provide corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that the modules and algorithm steps of the examples described in combination with the embodiments disclosed in the present text can be realized in the form of hardware or combination of hardware and computer software. Whether a certain function is executed in hardware or computer software driven hardware depends on the specific application and design constraints of the technical scheme. Professional technicians can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0129] The embodiments of the present application can divide the functional modules of the controller according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing module. The integrated module can be realized in the form of hardware or in the form of a software functional module. Optionally, the division of the modules in the embodiments of the present application is illustrative, and is only a logical functional division. In actual implementation, another division mode can be used.
[0130] The embodiments of the present application also provide a hardware structure diagram of a controller, as shown in Figure 13 The controller 3000 includes a processor 3001, and optionally, a memory 3002 and a communication interface 3003 connected with the processor 3001. The processor 3001, the memory 3002 and the communication interface 3003 are connected through a bus 3004.
[0131] The processor 3001 can be a central processing unit (CPU), a general processor network processor (NP), a digital signal processing (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD) or any combination thereof. The processor 3001 can also be any other device having a processing function, such as a circuit, a device or a software module. The processor 3001 can also include multiple CPUs, and the processor 3001 can be a single-CPU processor or a multi-CPU processor. The processor herein can refer to one or more devices, circuits or processing cores for processing data (for example, computer program instructions).
[0132] The memory 3002 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magneto-optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing instructions or data in the form of programs and being accessed by a computer, and the embodiments of the present application do not make any limitation thereon. The memory 3002 can exist independently or be integrated with the processor 3001. The memory 3002 can contain computer program codes. The processor 3001 is configured to execute the computer program codes stored in the memory 3002, so as to implement the method for controlling an air conditioning system provided by the embodiments of the present application.
[0133] The communication interface 3003 can be configured to communicate with other devices or communication networks (such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.). The communication interface 3003 can be a module, a circuit, a transceiver or any device capable of realizing communication.
[0134] The bus 3004 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 3004 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 13 Only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0135] The embodiments of the present application also provide a computer readable storage medium, which includes computer execution instructions. When the computer execution instructions run on a computer, the computer is caused to execute the method for controlling an air conditioning system provided by the above embodiments.
[0136] The embodiment of the present application further provides a computer program product, which can be directly loaded into a memory and contains software codes, and the computer program product can realize the control method of the air conditioning system provided by the above embodiment after being loaded and executed by a computer.
[0137] Those skilled in the art should understand that, in one or more examples described above, the functions described by the present application can be realized by hardware, software, firmware or any combination thereof. When realized by software, the functions can be stored in a computer readable medium or transmitted as one or more instructions or codes on a computer readable medium. The computer readable medium includes a computer storage medium and a communication medium, wherein the communication medium includes any medium that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0138] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0139] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another device, or some features can be omitted or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms. The units described as separate components can be or can not be physically separated, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place, or can be distributed in a plurality of different places. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0140] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit. When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or said part that contributes to the prior art or all or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various storage medium that can store program codes.
[0141] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An air conditioning system, characterized in that, include: Indoor unit; Outdoor unit; Near Field Communication (NFC) component, used to establish a near field communication connection with terminal devices; A memory connected to a controller is provided for storing a dynamic code sequence and a first pointer, wherein the dynamic code sequence includes multiple dynamic codes and the first pointer is used to point to one of the dynamic codes in the dynamic code sequence. The controller is configured as follows: After establishing a near-field communication connection with the terminal device, the first key information sent by the terminal device is received through the NFC component; wherein, the first key information includes a first dynamic code and an air conditioning control command, and the first dynamic code is the dynamic code currently pointed to by the second pointer stored in the cloud server in the dynamic code sequence stored in the cloud server. Obtain a valid set of dynamic codes from the memory. The valid set of dynamic codes includes the second dynamic code in the dynamic code sequence and all dynamic codes after the second dynamic code. The second dynamic code is the dynamic code currently pointed to by the first pointer. Verify whether the first dynamic code belongs to the set of valid dynamic codes; When the first dynamic code belongs to the set of valid dynamic codes, the air conditioning control command is executed, and the first pointer is pointed to the first dynamic code after the second dynamic code in the dynamic code sequence; The controller is further configured as follows: Obtain the device identification code of the air conditioning system, wherein the device identification code includes a first field and a second field, the first field includes an identifier bit and the type of the air conditioning system, the second field includes the MAC address of the air conditioning system, and the first field is located before the second field; The second field is moved before the first field to obtain the adjusted device identification code; Based on the adjusted device identification code, the plurality of dynamic codes are generated through the auto-increment operation of the first field.
2. The air conditioning system according to claim 1, characterized in that, When the first dynamic code does not belong to the set of valid dynamic codes, a locking instruction is executed; wherein, the locking instruction is used to control the indoor unit to perform a locking operation.
3. A cloud server, applied to the air conditioning system of claim 1, characterized in that, include: A memory is provided for storing a dynamic code sequence and a second pointer, wherein the dynamic code sequence includes a plurality of dynamic codes, and the second pointer is used to point to a dynamic code in the dynamic code sequence; A communicator used to communicate with terminal devices; The processor is configured as follows: The communicator receives a key request instruction sent by the terminal device. Send the first key information to the terminal device. The first key information includes a first dynamic code and an air conditioning control command. The first dynamic code is the dynamic code currently pointed to by the second pointer in the dynamic code sequence. The processor is further configured to: Obtain the device identification code of the air conditioning system, wherein the device identification code includes a first field and a second field, the first field includes an identifier bit and the type of the air conditioning system, the second field includes the MAC address of the air conditioning system, and the first field is located before the second field; The second field is moved before the first field to obtain the adjusted device identification code; Based on the adjusted device identification code, the plurality of dynamic codes are generated through the auto-increment operation of the first field.
4. The cloud server according to claim 3, characterized in that, The processor is also configured to: The second pointer is then directed to the first dynamic code following the first dynamic code in the dynamic code sequence.
5. A control method for an air conditioning system, characterized in that, Applied to an air conditioning system, the method includes: After establishing a near-field communication connection with the terminal device, the first key information sent by the terminal device is received through the NFC component; wherein, the first key information includes a first dynamic code and an air conditioning control command, and the first dynamic code is the dynamic code currently pointed to by the second pointer stored in the cloud server in the dynamic code sequence stored in the cloud server; Obtain a valid set of dynamic codes from the memory. The valid set of dynamic codes includes the second dynamic code in the dynamic code sequence and all dynamic codes after the second dynamic code. The second dynamic code is the dynamic code currently pointed to by the first pointer stored in the memory. Verify whether the first dynamic code belongs to the set of valid dynamic codes; When the first dynamic code belongs to the set of valid dynamic codes, the air conditioning control command is executed, and the first pointer is pointed to the first dynamic code after the second dynamic code in the dynamic code sequence; Obtain the device identification code of the air conditioning system, wherein the device identification code includes a first field and a second field, the first field includes an identifier bit and the type of the air conditioning system, the second field includes the MAC address of the air conditioning system, and the first field is located before the second field; The second field is moved before the first field to obtain the adjusted device identification code; Based on the adjusted device identification code, the plurality of dynamic codes are generated through the auto-increment operation of the first field.
6. The method according to claim 5, characterized in that, The method further includes: When the first dynamic code belongs to the set of valid dynamic codes, the first pointer is set to point to the first dynamic code after the second dynamic code in the dynamic code sequence.
7. A control method for an air conditioning system, characterized in that, The method, applicable to the air conditioning system of claim 1 and also to a cloud server, includes: Receive key request instructions sent by terminal devices through the communicator; Send the first key information to the terminal device. The first key information includes a first dynamic code and an air conditioning control command. The first dynamic code is the dynamic code currently pointed to by the second pointer in the dynamic code sequence. Obtain the device identification code of the air conditioning system, wherein the device identification code includes a first field and a second field, the first field includes an identifier bit and the type of the air conditioning system, the second field includes the MAC address of the air conditioning system, and the first field is located before the second field; The second field is moved before the first field to obtain the adjusted device identification code; Based on the adjusted device identification code, the plurality of dynamic codes are generated through the auto-increment operation of the first field.
8. The method according to claim 7, characterized in that, The method further includes: The second pointer is then directed to the first dynamic code following the first dynamic code in the dynamic code sequence.
Citation Information
Patent Citations
Dynamic password unlocking device, method and equipment for intelligent community building intercom system and storage medium
CN112863017A
Air conditioning device, operation terminal, and wireless communication system
CN115682393A