[go: up one dir, main page]

CN111917775B - Unit control method, air conditioning unit system and storage medium - Google Patents

Unit control method, air conditioning unit system and storage medium Download PDF

Info

Publication number
CN111917775B
CN111917775B CN202010762355.XA CN202010762355A CN111917775B CN 111917775 B CN111917775 B CN 111917775B CN 202010762355 A CN202010762355 A CN 202010762355A CN 111917775 B CN111917775 B CN 111917775B
Authority
CN
China
Prior art keywords
code
controller
authorization
authorization code
air conditioning
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
CN202010762355.XA
Other languages
Chinese (zh)
Other versions
CN111917775A (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.)
Trane Air Conditioning Systems China Co Ltd
Original Assignee
Trane Air Conditioning Systems China 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 Trane Air Conditioning Systems China Co Ltd filed Critical Trane Air Conditioning Systems China Co Ltd
Priority to CN202010762355.XA priority Critical patent/CN111917775B/en
Publication of CN111917775A publication Critical patent/CN111917775A/en
Application granted granted Critical
Publication of CN111917775B publication Critical patent/CN111917775B/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
    • 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/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/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/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • 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

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

本申请提供一种机组控制方法、空调机组系统和存储介质。机组控制方法应用于空调机组系统、维护终端、空调机组的主控制器。机组控制方法包括:维护终端发送授权码获取请求给授权端,授权码获取请求包括用于表示针对空调机组的操作类型的数据;授权端生成与操作类型对应的授权码;授权端下发授权码,以使维护终端接收授权码;若维护终端接收到的授权码通过校验,控制器执行与操作类型对应的操作。可以防止用户未经授权随意更换或更改空调机组的部件,也可防止空调机组的部件未经授权被其他空调机组使用。

Figure 202010762355

The application provides a unit control method, an air conditioning unit system and a storage medium. The unit control method is applied to an air-conditioning unit system, a maintenance terminal, and a main controller of the air-conditioning unit. The unit control method includes: the maintenance terminal sends an authorization code acquisition request to the authorization terminal, and the authorization code acquisition request includes data indicating the type of operation for the air conditioning unit; the authorization terminal generates an authorization code corresponding to the operation type; the authorization terminal issues the authorization code , so that the maintenance terminal receives the authorization code; if the authorization code received by the maintenance terminal passes the verification, the controller executes the operation corresponding to the operation type. It can prevent the user from replacing or changing the parts of the air-conditioning unit without authorization, and can also prevent the parts of the air-conditioning unit from being used by other air-conditioning units without authorization.

Figure 202010762355

Description

机组控制方法、空调机组系统和存储介质Unit control method, air conditioning unit system and storage medium

技术领域technical field

本发明涉及空调技术领域,尤其涉及一种机组控制方法、空调机组系统和存储介质。The invention relates to the technical field of air conditioning, and in particular to a unit control method, an air conditioning unit system and a storage medium.

背景技术Background technique

现有的空调机组通常包括多个具有不同控制功能的控制器,例如用于控制整个机组工作的主控制器、用于控制机组某个功能部件实现某个特定功能的设备控制器,例如输入输出控制器、有线通讯控制器、无线通讯控制器、触摸屏控制器、变频器控制器以及加热器控制器等。空调机组工作时,各个控制器之间可以进行通信,例如主控制器可以和设备控制器通信,以对整个空调机组的工作进行控制。Existing air conditioning units usually include multiple controllers with different control functions, such as the main controller used to control the work of the entire unit, and the device controller used to control a certain functional part of the unit to achieve a specific function, such as input and output Controllers, wired communication controllers, wireless communication controllers, touch screen controllers, inverter controllers and heater controllers, etc. When the air conditioning unit is working, various controllers can communicate with each other. For example, the main controller can communicate with the equipment controller to control the work of the entire air conditioning unit.

目前,空调机组售出后,用户可以随意对空调机组的控制器或一些包括控制器的功能部件进行更换或更改,使得空调机组面临非正规运行的风险,可能会影响空调机组的使用寿命等。At present, after the air-conditioning unit is sold, the user can replace or change the controller of the air-conditioning unit or some functional components including the controller at will, which makes the air-conditioning unit face the risk of irregular operation and may affect the service life of the air-conditioning unit.

发明内容Contents of the invention

本申请提供一种机组控制方法、空调机组系统和存储介质,可以降低空调机组的非正规运行的风险。The application provides a unit control method, an air-conditioning unit system and a storage medium, which can reduce the risk of irregular operation of the air-conditioning unit.

本申请提供一种机组控制方法,应用于维护终端,所述机组控制方法包括:The present application provides a unit control method, which is applied to a maintenance terminal, and the unit control method includes:

基于针对空调机组的操作类型,发送授权码获取请求给授权端,以使所述授权端生成与操作类型对应的授权码,所述授权码获取请求包括用于表示针对所述空调机组的操作类型的数据;Based on the type of operation for the air-conditioning unit, an authorization code acquisition request is sent to the authorizing end, so that the authorization end generates an authorization code corresponding to the operation type, and the authorization code acquisition request includes a code used to indicate the type of operation for the air-conditioning unit The data;

接收所述授权端下发的与操作类型对应的授权码;receiving the authorization code corresponding to the operation type issued by the authorization terminal;

校验所述授权码,以使所述授权码校验通过后,所述空调机组的控制器执行与操作类型对应的操作。The authorization code is verified, so that after the verification of the authorization code passes, the controller of the air conditioning unit executes an operation corresponding to the operation type.

本申请提供一种机组控制方法,应用于空调机组的控制器,所述机组控制方法包括:The present application provides a unit control method, which is applied to a controller of an air-conditioning unit, and the unit control method includes:

至少接收校验通过的授权码,所述授权码与针对空调机组的操作类型对应;At least receive the authorization code that passes the verification, and the authorization code corresponds to the operation type for the air conditioning unit;

基于所述授权码,针对所述空调机组,执行与所述操作类型对应的操作。Based on the authorization code, an operation corresponding to the operation type is performed for the air conditioning unit.

本申请提供一种机组控制方法,应用于空调机组系统,所述空调机组系统包括维护终端、授权端以及控制器,所述机组控制方法包括:The present application provides a unit control method, which is applied to an air-conditioning unit system. The air-conditioning unit system includes a maintenance terminal, an authorization terminal, and a controller. The unit control method includes:

所述维护终端发送授权码获取请求给所述授权端,所述授权码获取请求包括用于表示针对所述空调机组的操作类型的数据;The maintenance terminal sends an authorization code acquisition request to the authorization terminal, and the authorization code acquisition request includes data indicating the type of operation for the air conditioning unit;

所述授权端生成与所述操作类型对应的授权码;The authorizing terminal generates an authorization code corresponding to the operation type;

所述授权端下发所述授权码,以使所述维护终端接收所述授权码;The authorization terminal issues the authorization code, so that the maintenance terminal receives the authorization code;

若所述维护终端接收到的所述授权码通过校验,所述控制器执行与所述操作类型对应的操作。If the authorization code received by the maintenance terminal passes the verification, the controller executes an operation corresponding to the operation type.

本申请提供一种空调机组系统,所述空调机组系统包括一个或多个处理器,用于实现如上任一项所述的机组控制方法。The present application provides an air-conditioning unit system, the air-conditioning unit system including one or more processors, configured to implement the unit control method described in any one of the above items.

本申请的提供一种存储介质,其上存储有程序,该程序被处理器执行时,实现如上其中一项或几项所述的机组控制方法。The present application provides a storage medium on which a program is stored. When the program is executed by a processor, the unit control method described in one or more of the above items is realized.

在一些实施例中,本申请的机组控制方法需要在获取到授权码后才可对空调机组进行相应的操作,可以防止用户对空调机组的控制器或一些包括控制器的功能部件随意进行更换或更改,降低空调机组非正规运行的风险。In some embodiments, the unit control method of the present application needs to obtain the authorization code before performing corresponding operations on the air conditioning unit, which can prevent users from arbitrarily replacing or replacing the controller of the air conditioning unit or some functional components including the controller. Changes to reduce the risk of irregular operation of air conditioning units.

附图说明Description of drawings

图1是本申请的一个实施例提供的空调机组系统的示意图;Fig. 1 is a schematic diagram of an air conditioning unit system provided by an embodiment of the present application;

图2是本申请的一个实施例提供的机组控制方法的流程图;Fig. 2 is a flowchart of a unit control method provided by an embodiment of the present application;

图3是本申请的另一个实施例提供的机组控制方法的流程图;Fig. 3 is a flowchart of a unit control method provided by another embodiment of the present application;

图4是本申请的另一个实施例提供的机组控制方法的流程图;Fig. 4 is a flowchart of a unit control method provided by another embodiment of the present application;

图5是图1中的设备控制器与主控制器建立关联的流程图;Fig. 5 is a flowchart of establishing an association between the device controller and the main controller in Fig. 1;

图6是对图1中的主控制器对设备控制器进行非授权更换监控的流程交互图;Fig. 6 is a process interaction diagram for monitoring the unauthorized replacement of the device controller by the main controller in Fig. 1;

图7是图1中的对主控制器进行非授权更换监控的流程交互图;Fig. 7 is a flow interaction diagram of monitoring the main controller for unauthorized replacement in Fig. 1;

图8是对图1中的空调机组进行授权码定时更新监控的流程交互图;Fig. 8 is a process interaction diagram for regularly updating and monitoring the authorization code of the air-conditioning unit in Fig. 1;

图9是本申请一个实施例提供的空调机组系统的模块框图。Fig. 9 is a module block diagram of an air conditioning unit system provided by an embodiment of the present application.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施例并不代表与本说明书一个或多个实施例相一致的所有实施例。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with aspects of one or more embodiments of the present specification as recited in the appended claims.

需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or less steps than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other embodiments describe.

图1是本申请的一个实施例提供的空调机组系统100的示意图。空调机组系统100包括维护终端11、空调机组15和授权端13。其中,空调机组15包括主控制器1511和可更换的功能部件(未示出),功能部件可以包括设备控制器1512。主控制器1511用于对整个空调机组15的工作进行控制,设备控制器1512用于控制功能部件完成空调机组15的某个特定功能,例如无线通讯功能、有线通讯功能、变频功能、振动检测功能等。功能部件包括输入输出扩展板、有线通讯板、无线通讯板、触摸屏、变频器、加热器等。在一些实施例中,主控制器1511与设备控制器1512关联,且两者在关联之后可以相互通信。Fig. 1 is a schematic diagram of an air conditioning unit system 100 provided by an embodiment of the present application. The air conditioning unit system 100 includes a maintenance terminal 11 , an air conditioning unit 15 and an authorization terminal 13 . Wherein, the air conditioning unit 15 includes a main controller 1511 and replaceable functional components (not shown), and the functional components may include an equipment controller 1512 . The main controller 1511 is used to control the work of the entire air conditioning unit 15, and the equipment controller 1512 is used to control the functional components to complete a specific function of the air conditioning unit 15, such as wireless communication function, wired communication function, frequency conversion function, vibration detection function wait. Functional components include input and output expansion boards, wired communication boards, wireless communication boards, touch screens, frequency converters, heaters, etc. In some embodiments, the master controller 1511 is associated with the device controller 1512, and the two can communicate with each other after association.

空调机组15包括多种操作类型。例如在更换空调机组15的功能部件或设备控制器1512后,将更换后的功能部件包括的设备控制器1512或更换后的设备控制器1512与主控制器1511建立关联,以使主控制器1511可以与更换后的设备控制器1512在关联后可以通信。又例如,在更换空调机组15的主控制器1511后,将更换后的主控制器1511与空调机组15上原有的设备控制器1512建立关联,以使更换后的主控制器1511与原有的设备控制器1512在关联后可以通信。又例如,更新主控制器1511的软件程序或软件配置。再例如,更新设备控制器1512的软件程序或软件配置。授权端13对针对空调机组15的至少部分操作类型功能部件进行授权。在一些实施例中,授权端13对针对空调机组15的操作类型授权通过后,维护终端11发送操作请求给主控制器1511,使得主控制器1511执行与操作类型对应的操作。具体的,工作人员可以使维护终端11与空调机组15的主控制器1511建立通信连接,并发送操作请求给主控制器1511,使得主控制器1511执行与操作类型对应的操作。维护终端11可以包括工作人员对空调机组15进行操作时使用到的笔记本电脑、手机等。The air conditioning unit 15 includes various types of operation. For example, after replacing the functional parts or the device controller 1512 of the air conditioning unit 15, the device controller 1512 included in the replaced functional part or the replaced device controller 1512 is associated with the main controller 1511, so that the main controller 1511 Can communicate with the replaced device controller 1512 after association. For another example, after replacing the main controller 1511 of the air conditioning unit 15, an association is established between the replaced main controller 1511 and the original device controller 1512 on the air conditioning unit 15, so that the replaced main controller 1511 and the original The device controller 1512 may communicate after association. Another example is to update the software program or software configuration of the main controller 1511 . For another example, the software program or software configuration of the device controller 1512 is updated. The authorization terminal 13 authorizes at least some operating-type functional components for the air conditioning unit 15 . In some embodiments, after the authorization terminal 13 authorizes the operation type for the air conditioning unit 15, the maintenance terminal 11 sends an operation request to the main controller 1511, so that the main controller 1511 performs an operation corresponding to the operation type. Specifically, the staff can establish a communication connection between the maintenance terminal 11 and the main controller 1511 of the air conditioning unit 15, and send an operation request to the main controller 1511, so that the main controller 1511 performs an operation corresponding to the operation type. The maintenance terminal 11 may include a laptop computer, a mobile phone, etc. used by staff when operating the air conditioning unit 15 .

在一些实施例中,可以对针对空调机组15的操作类型进行授权控制,来防止用户通过非正规渠道对空调机组15的进行维护操作,例如可以防止用户通过未经授权的第三方售后服务商更换或更改空调机组15的主控制器1511和/或设备控制器1512和/或包括设备控制器1512的功能部件。具体的,例如更换空调机组15的包括设备控制器1512的功能部件或设备控制器1512时,即使从硬件上更换了包括设备控制器1512的功能部件,但未通过授权将主控制器1511与更换后的设备控制器1512关联,主控制器1511可以中断与更换后的设备控制器1512之间的通信,从而使得更换后的设备控制器1512依然是无法正常工作的。又例如,更新主控制器1511上的软件程序时,若未通过授权,主控制器1511可能无法获取到用于更新的软件程序,从而导致软件程序更新失败。又例如,可以将主控制器1511设置为,在更新软件程序或软件配置时,检查是否通过授权,若未通过授权,则不执行相应的操作。In some embodiments, the type of operation of the air-conditioning unit 15 can be authorized and controlled to prevent users from performing maintenance operations on the air-conditioning unit 15 through informal channels, such as preventing users from replacing the air-conditioning unit 15 through unauthorized third-party after-sales service providers. Or modify the main controller 1511 and/or the device controller 1512 of the air conditioning unit 15 and/or the functional components including the device controller 1512 . Specifically, for example, when replacing the functional components including the device controller 1512 or the device controller 1512 of the air conditioning unit 15, even if the functional components including the device controller 1512 are replaced from the hardware, the main controller 1511 is not authorized to be connected with the replacement After the device controller 1512 is associated, the main controller 1511 may interrupt the communication with the replaced device controller 1512, so that the replaced device controller 1512 still cannot work normally. For another example, when updating the software program on the main controller 1511, if the authorization is not passed, the main controller 1511 may not be able to obtain the software program used for updating, thus causing the software program update to fail. For another example, the main controller 1511 may be configured to check whether the authorization is passed when updating the software program or software configuration, and not perform the corresponding operation if the authorization is not passed.

在一些实施例中,一个空调机组系统100包括多个授权端13。在至少部分授权端13对针对空调机组15的操作类型均授权通过后,维护终端11发送请求给主控制器1511,使得主控制器1511执行与操作类型对应的操作。授权端13可以包括多个不同级别的授权端,例如第一级别的授权端13、第二级别的授权端13。针对不同空调机组15的操作类型或针对相同空调机组15的不同操作类型,可以通过不同级别数的授权端13进行授权。例如,针对第一空调机组15的操作类型,可以在第一级别的授权端13和第二级别的授权端13均授权通过后,允许第一空调机组15的主控制器1511执行与操作类型对应的操作;而针对第二空调机组15的操作类型,可以在第一级别的授权端13、第二级别的授权端13和第三级别的授权端13均授权通过后,允许第二空调机组15的主控制器1511执行与操作类型对应的操作。In some embodiments, an air conditioning unit system 100 includes multiple authorization terminals 13 . After at least part of the authorization terminal 13 authorizes all the operation types for the air conditioning unit 15, the maintenance terminal 11 sends a request to the main controller 1511, so that the main controller 1511 executes the operation corresponding to the operation type. The authorizing end 13 may include multiple authorizing ends of different levels, for example, the authorizing end 13 of the first level and the authorizing end 13 of the second level. For different operation types of air-conditioning units 15 or for different operation types of the same air-conditioning unit 15 , authorization can be performed through authorization terminals 13 with different levels. For example, for the operation type of the first air-conditioning unit 15, the master controller 1511 of the first air-conditioning unit 15 is allowed to execute the For the operation type of the second air-conditioning unit 15, the second air-conditioning unit 15 can be allowed to The main controller 1511 performs an operation corresponding to the operation type.

在一些实施例中,可根据空调机组15的机组类型、冷吨数和预定规则,确定对针对空调机组15的操作类型进行授权的授权端13的级别数。In some embodiments, the level number of the authorization end 13 for authorizing the operation type of the air conditioning unit 15 can be determined according to the unit type, cooling tonnage and predetermined rules of the air conditioning unit 15 .

在一些实施例中,空调机组系统100还包括服务器12和授权接收端14。服务器12可以分别与授权端13和维护终端11建立通信连接,至少用于接收并存储授权端13发送的授权信息。授权接收端14可以与授权端13建立通信连接,用于接收授权端13下发的授权信息(例如授权码)。授权接收端14可以包括工作人员的邮箱所在的客户端、工作人员的手机等。授权端13将授权信息通过邮件、短信等方式下发到授权接收端14,使得工作人员可以获取到授权信息。工作人员可以将获取到的授权信息输入到维护终端11,使得维护终端11接收到授权信息。In some embodiments, the air conditioning unit system 100 further includes a server 12 and an authorization receiving terminal 14 . The server 12 can establish a communication connection with the authorization terminal 13 and the maintenance terminal 11 respectively, at least for receiving and storing the authorization information sent by the authorization terminal 13 . The authorization receiving end 14 can establish a communication connection with the authorizing end 13 for receiving authorization information (such as an authorization code) issued by the authorizing end 13 . The authorization receiving terminal 14 may include a client terminal where a staff member's mailbox is located, a staff member's mobile phone, and the like. The authorization end 13 sends the authorization information to the authorization receiving end 14 through email, short message, etc., so that the staff can obtain the authorization information. The staff can input the obtained authorization information into the maintenance terminal 11, so that the maintenance terminal 11 receives the authorization information.

在一些实施例中,服务器12上存储的授权信息对于维护终端11接收到的授权信息进行校验,在维护终端11接收到的授权信息校验通过后,维护终端11发送操作请求给主控制器1511,以使主控制器1511执行与操作类型对应的操作。若维护终端11接收到的授权信息校验不通过,维护终端11不发送操作请求给主控制器1511。如此,可以防止授权信息造假、工作人员手误输入了错误的授权信息等问题。In some embodiments, the authorization information stored on the server 12 is verified for the authorization information received by the maintenance terminal 11, and after the verification of the authorization information received by the maintenance terminal 11 is passed, the maintenance terminal 11 sends an operation request to the main controller 1511, so that the main controller 1511 executes the operation corresponding to the operation type. If the verification of the authorization information received by the maintenance terminal 11 fails, the maintenance terminal 11 does not send an operation request to the main controller 1511 . In this way, problems such as falsification of authorization information and wrong input of authorization information by the staff can be prevented.

在一些实施例中,服务器12上还存储有主控制器1511和/或设备控制器1512上需要更新的软件程序以及软件配置等。服务器12根据授权码的授权范围,确定主控制器1511和/或设备控制器1512上需要更新的软件程序或软件配置,并将对应的软件程序或软件配置发送给维护终端11,以使维护终端11将相关的信息发送给主控制器1511,由主控制器1511进行软件程序和/或软件配置的更新。将需要更新的软件程序或软件配置存储在远程的服务器12上,由服务器12根据授权码的授权范围,下发授权范围内的软件程序或软件配置,可以防止软件程序和/或软件配置等被非法复制。In some embodiments, the server 12 also stores software programs and software configurations that need to be updated on the main controller 1511 and/or the device controller 1512 . The server 12 determines the software program or software configuration that needs to be updated on the main controller 1511 and/or the device controller 1512 according to the authorization scope of the authorization code, and sends the corresponding software program or software configuration to the maintenance terminal 11, so that the maintenance terminal 11 Send relevant information to the main controller 1511, and the main controller 1511 updates the software program and/or software configuration. Store the software program or software configuration that needs to be updated on the remote server 12, and the server 12 will issue the software program or software configuration within the authorized range according to the authorization range of the authorization code, which can prevent the software program and/or software configuration from being Illegal copying.

图2是本申请的一个实施例提供的机组控制方法的流程图。机组控制方法可应用于图1中的空调机组系统100。参见图1和图4,机组控制方法包括:Fig. 2 is a flow chart of a unit control method provided by an embodiment of the present application. The unit control method can be applied to the air conditioning unit system 100 in FIG. 1 . Referring to Figure 1 and Figure 4, the unit control method includes:

步骤S21,维护终端11发送授权码获取请求给授权端13,授权码获取请求包括用于表示针对空调机组15的操作类型的数据。在一些实施例中,操作类型包括以下至少一种:Step S21 , the maintenance terminal 11 sends an authorization code acquisition request to the authorization terminal 13 , and the authorization code acquisition request includes data indicating the type of operation for the air conditioning unit 15 . In some embodiments, the type of operation includes at least one of the following:

建立设备控制器1512与主控制器1511之间的关联的操作类型;the type of operation to establish the association between the device controller 1512 and the master controller 1511;

更新主控制器1511包括的软件程序的操作类型;Update the operation type of the software program included in the main controller 1511;

更新主控制器1511包括的软件配置的操作类型;Update the operation type of the software configuration included in the main controller 1511;

更新设备控制器1512包括的软件程序的操作类型;update the type of operation of the software program included in the device controller 1512;

更新设备控制器1512包括的软件配置的操作类型。An operation type to update the software configuration included in the device controller 1512 .

需要说明的是,在其他一些实施例中,操作类型可能还包括其他的操作类型,本申请对操作类型不作限制。It should be noted that, in some other embodiments, the operation type may also include other operation types, and this application does not limit the operation type.

为方便描述,定义操作类型数据为表示针对空调机组15的操作类型的数据。For convenience of description, the operation type data is defined as the data indicating the operation type for the air conditioning unit 15 .

在一些实施例中,维护终端11与授权端13通信连接。维护终端11上设置有软件程序。工作人员可以通过维护终端11上的客户端界面选择或输入针对空调机组15的操作类型,例如在更换设备控制器1512时,选择需要与主控制器1511进行关联的设备控制器1512(即更换后的设备控制器1512)。软件程序的逻辑可以包括:至少接收操作类型数据,并发送至少包括操作类型数据的授权码获取请求给授权端13。In some embodiments, the maintenance terminal 11 communicates with the authorization terminal 13 . Software programs are installed on the maintenance terminal 11 . The staff can select or input the operation type for the air conditioning unit 15 through the client interface on the maintenance terminal 11, for example, when replacing the device controller 1512, select the device controller 1512 that needs to be associated with the main controller 1511 (that is, after the replacement device controller 1512). The logic of the software program may include: at least receiving operation type data, and sending an authorization code acquisition request including at least the operation type data to the authorizing terminal 13 .

在一些实施例中,授权码获取请求还包括机组耦合码,机组耦合码用于标识空调机组15。该机组耦合码可以是工作人员通过维护终端11的客户端界面输入的。每个空调机组15的机组耦合码可以不相同。可以在空调机组15出厂前,为空调机组15设置机组耦合码;也可以在空调机组15出厂后,更新空调机组15的机组耦合码。具体的,可以在空调机组15出厂时,在空调机组15的硬件设备上设置二维码,使得工作人员对空调机组15进行操作时,通过扫描该二维码,可以连接到存储有相应空调机组15的机组耦合码的服务器(例如服务器12)上,以获取空调机组15的机组耦合码。通过定时更新服务器上存储的空调机组15的机组耦合码,可以达到空调机组15出厂后,更新空调机组15的机组耦合码的目的。In some embodiments, the authorization code acquisition request further includes a unit coupling code, which is used to identify the air conditioning unit 15 . The unit coupling code may be input by the staff through the client interface of the maintenance terminal 11 . The unit coupling codes of each air conditioning unit 15 may be different. The unit coupling code of the air-conditioning unit 15 can be set before the air-conditioning unit 15 leaves the factory; the unit coupling code of the air-conditioning unit 15 can also be updated after the air-conditioning unit 15 leaves the factory. Specifically, when the air-conditioning unit 15 leaves the factory, a two-dimensional code can be set on the hardware device of the air-conditioning unit 15, so that when the staff operates the air-conditioning unit 15, by scanning the two-dimensional code, they can be connected to the corresponding storage of the air-conditioning unit. 15 on the server (such as the server 12) of the unit coupling code to obtain the unit coupling code of the air conditioning unit 15. By periodically updating the unit coupling code of the air conditioning unit 15 stored on the server, the purpose of updating the unit coupling code of the air conditioning unit 15 after the air conditioning unit 15 leaves the factory can be achieved.

在一些实施例中,机组耦合码是至少基于空调机组15的序列号、空调机组15的配置、空调机组15配套的硬件序列号、和表示机组耦合码时效的时间数据中的至少一个得到的。其中,根据表示机组耦合码时效的时间数据可以确定机组耦合码的有效时长,例如180天。In some embodiments, the unit coupling code is obtained based on at least one of the serial number of the air conditioning unit 15, the configuration of the air conditioning unit 15, the hardware serial number of the air conditioning unit 15, and the time data representing the aging of the unit coupling code. Wherein, the effective duration of the unit coupling code can be determined according to the time data representing the time limit of the unit coupling code, for example, 180 days.

本实施例中,通过设定的加密方法对空调机组15的序列号、空调机组15的配置、空调机组15配套的硬件序列号、和表示机组耦合码时效的时间数据进行加密后,得到空调机组15的机组耦合码。In this embodiment, after encrypting the serial number of the air-conditioning unit 15, the configuration of the air-conditioning unit 15, the supporting hardware serial number of the air-conditioning unit 15, and the time data representing the aging of the coupling code of the air-conditioning unit through the set encryption method, the air-conditioning unit is obtained 15 unit coupling code.

步骤S22,授权端13生成与操作类型对应的授权码。在一些实施例中,与操作类型对应的授权码是至少基于机组耦合码和/或操作类型数据得到的。例如可以通过设定的加密方法对机组耦合码进行加密,并将加密后的数据作为对应空调机组的授权码。针对空调机组15的不同的操作类型,授权码可以不相同。从上述相关描述可以得知,由于机组耦合码具有时效性,因此针对相同空调机组15的相同操作类型,在不同时间段基于不同机组耦合码生成的授权码有可能是不相同的。如此,安全性更高。每个授权码可以授权针对空调机组15所能执行操作的范围,例如基于授权码A,可以只更新主控制器1511上的软件程序A;基于授权码B,可以只更换空调机组15的功能部件B。In step S22, the authorizing terminal 13 generates an authorization code corresponding to the operation type. In some embodiments, the authorization code corresponding to the type of operation is derived based at least on the crew coupling code and/or the type of operation data. For example, the unit coupling code can be encrypted by a set encryption method, and the encrypted data can be used as the authorization code of the corresponding air conditioning unit. For different operation types of the air conditioning unit 15, the authorization codes may be different. It can be known from the above related description that because the unit coupling code is time-sensitive, for the same operation type of the same air conditioning unit 15, the authorization codes generated based on different unit coupling codes in different time periods may be different. In this way, the security is higher. Each authorization code can authorize the range of operations that the air conditioning unit 15 can perform. For example, based on the authorization code A, only the software program A on the main controller 1511 can be updated; based on the authorization code B, only the functional components of the air conditioning unit 15 can be replaced. b.

本实施例中,与操作类型对应的授权码包括N个至少基于机组耦合码和操作类型数据生成的子授权码。其中,N个子授权码为对针对空调机组的操作类型进行授权的N个不同级别的授权端13生成的。N的取值为大于或等于1的整数。例如,对操作类型进行授权的授权端13包括第一级别的授权端13和第二级别的授权端13,N的取值为2。每个级别的授权端13生成一个子授权码,且每个子授权码可以不相同。根据图1中对授权端13的相关描述可以得知,由于针对不同空调机组15的操作类型或针对相同空调机组15的不同操作类型,可以通过不同级别数的授权端13进行授权,因此每个授权码包括的子授权码个数可以不相同。In this embodiment, the authorization code corresponding to the operation type includes N sub-authorization codes generated based at least on the unit coupling code and the operation type data. Wherein, the N sub-authorization codes are generated by N authorization terminals 13 of different levels that authorize the operation type of the air-conditioning unit. The value of N is an integer greater than or equal to 1. For example, the authorization terminal 13 that authorizes the operation type includes a first-level authorization terminal 13 and a second-level authorization terminal 13, and the value of N is 2. The authorization end 13 of each level generates a sub-authorization code, and each sub-authorization code may be different. According to the relevant description of the authorizing terminal 13 in FIG. 1, it can be known that, due to different operation types for different air-conditioning units 15 or different operation types for the same air-conditioning unit 15, authorization can be performed through the authorization terminals 13 with different levels of numbers, so each The number of sub-authorization codes included in the authorization code can be different.

在一些实施例中,第N个级别的授权端13至少基于机组耦合码、操作类型数据和前N-1个级别的授权端13生成的子授权码,生成相应级别的子授权码,例如第二级别的授权端13至少根据机组耦合码、操作类型数据和第一级别的授权端13生成的子授权码,生成第二级别的子授权码。此处,由于第一级别的授权端13没有上一个级别的授权端13,第一级别的授权端13可以基于机组耦合码和操作类型数据,生成第一级别的子授权码。为方便描述,定义第N个级别的授权端13生成的子授权码为第N个级别的子授权码。In some embodiments, the authorization terminal 13 of the Nth level generates a sub-authorization code of the corresponding level based on at least the unit coupling code, the operation type data and the sub-authorization code generated by the authorization terminal 13 of the previous N-1 levels, for example, The second-level authorization terminal 13 generates a second-level sub-authorization code at least according to the unit coupling code, operation type data and the sub-authorization code generated by the first-level authorization terminal 13 . Here, since the authorization terminal 13 of the first level does not have the authorization terminal 13 of the previous level, the authorization terminal 13 of the first level can generate a sub-authorization code of the first level based on the unit coupling code and the operation type data. For the convenience of description, the sub-authorization code generated by the authorization terminal 13 of the Nth level is defined as the sub-authorization code of the Nth level.

在本实施例中,第N个级别的子授权码可以是通过预设的授权码加密方法,至少对机组耦合码、操作类型数据和前N-1个级别的子授权码进行加密后得到的。在一些实施例中,授权端13上可以包括多个预先设置的授权码加密方法。In this embodiment, the sub-authorization code of the Nth level can be obtained by encrypting at least the unit coupling code, the operation type data and the sub-authorization codes of the first N-1 levels through the preset authorization code encryption method . In some embodiments, the authorization terminal 13 may include multiple preset authorization code encryption methods.

步骤S23,授权端13下发授权码,以使维护终端11接收授权码。每个级别的授权端13可以分别下发对应的该级别的子授权码。本实施例中,每个级别的授权端13分别将相应的子授权码发送给授权接收端14。工作人员可以通过授权接收端14获取到每个授权端13下发的子授权码,并将每个子授权码通过维护终端11的客户端界面输入到维护终端11,以使维护终端11接收到每个授权端13下发的子授权码。在其他一些实施例中,每个级别的授权端13也可分别将相应的子授权码直接发送给维护终端11。In step S23, the authorization terminal 13 issues an authorization code, so that the maintenance terminal 11 receives the authorization code. The authorization terminal 13 of each level can respectively issue the corresponding sub-authorization code of the level. In this embodiment, the authorization terminal 13 of each level sends the corresponding sub-authorization code to the authorization receiving terminal 14 respectively. The staff can obtain the sub-authorization code issued by each authorization terminal 13 through the authorization receiving terminal 14, and input each sub-authorization code into the maintenance terminal 11 through the client interface of the maintenance terminal 11, so that the maintenance terminal 11 receives each sub-authorization code. A sub-authorization code issued by the authorization terminal 13. In some other embodiments, the authorization terminal 13 at each level may also directly send the corresponding sub-authorization code to the maintenance terminal 11 respectively.

步骤S24,若维护终端11接收到的授权码通过校验,控制器151执行与操作类型对应的操作。在一些实施例中,授权端13生成授权码后,授权端13将授权码发送给服务器12,使得服务器12存储该授权码。服务器12存储的授权码,可以用于对维护终端11接收到的授权码进行校验。具体的,在维护终端11接收到授权码后,维护终端11发送授权码校验请求给服务器12。授权码校验请求包括待校验的授权码。服务器12基于存储的授权码,对授权码校验请求中的待校验的授权码进行校验,例如服务器12将存储的授权码和授权码校验请求包括的待校验的授权码,通过相同的授权码解密方法进行解密,对解密后得到的两个授权码进行比较,若两者相同,确定授权码校验通过。又例如,服务器12上还可以将解密出的授权码包括的子授权码的个数与该操作类型对应的授权级别数进行比对,如果两者不相符,确定授权码校验不通过。若授权码校验请求中的授权码校验通过,服务器12返回授权码校验通过的消息给维护终端11。Step S24, if the authorization code received by the maintenance terminal 11 passes the verification, the controller 151 executes an operation corresponding to the operation type. In some embodiments, after the authorization terminal 13 generates the authorization code, the authorization terminal 13 sends the authorization code to the server 12, so that the server 12 stores the authorization code. The authorization code stored in the server 12 can be used to verify the authorization code received by the maintenance terminal 11 . Specifically, after the maintenance terminal 11 receives the authorization code, the maintenance terminal 11 sends an authorization code verification request to the server 12 . The authorization code verification request includes the authorization code to be verified. The server 12 checks the authorization code to be verified in the authorization code verification request based on the stored authorization code, for example, the server 12 uses the stored authorization code and the authorization code to be verified included in the authorization code verification request to The same authorization code decryption method is used to decrypt, and the two decrypted authorization codes are compared. If the two are the same, it is determined that the authorization code has passed the verification. For another example, the server 12 can also compare the number of sub-authorization codes included in the decrypted authorization code with the number of authorization levels corresponding to the operation type. If the two do not match, it is determined that the authorization code verification fails. If the authorization code in the authorization code verification request passes the verification, the server 12 returns a message that the authorization code verification is passed to the maintenance terminal 11 .

在一些实施例中,维护终端11若接收到服务器12返回的授权码校验通过的消息,确定授权码校验通过。维护终端11发送操作请求给控制器151,由控制器151执行与操作类型对应的操作。In some embodiments, if the maintenance terminal 11 receives the message that the authorization code has passed the verification returned by the server 12, it determines that the authorization code has passed the verification. The maintenance terminal 11 sends an operation request to the controller 151, and the controller 151 executes an operation corresponding to the operation type.

在一些实施例中,在授权码校验通过后,维护终端11至少发送授权码给控制器151,以使控制器151至少基于授权码,执行与操作类型对应的操作。例如使主控制器1511基于授权码,建立主控制器1511与某个更换的设备控制器1512之间的关联。In some embodiments, after the verification of the authorization code is passed, the maintenance terminal 11 at least sends the authorization code to the controller 151, so that the controller 151 performs an operation corresponding to the operation type at least based on the authorization code. For example, make the main controller 1511 establish an association between the main controller 1511 and a certain replacement device controller 1512 based on the authorization code.

在一些实施例中,在授权码校验通过后,服务器12基于授权码确定针对空调机组15的操作类型对应的操作,在返回给维护终端11的授权码校验通过消息中包括控制器151执行与操作类型对应的操作时所需的数据。例如更新主控制器1511上的软件程序时,服务器12在返回给维护终端11的消息中,包括主控制器1511上需要更新的软件程序。服务器12通过维护终端11将需要更新的软件程序发送给主控制器1511,由主控制器1511进行更新。如此,主控制器1511可无法更新未经授权的软件程序,从而保证主控制器1511上执行的操作为授权的操作。In some embodiments, after the verification of the authorization code is passed, the server 12 determines the operation corresponding to the operation type of the air conditioning unit 15 based on the authorization code, and the authorization code verification passed message returned to the maintenance terminal 11 includes the controller 151 executing The data required for the operation corresponding to the operation type. For example, when updating the software program on the main controller 1511 , the server 12 includes the software program on the main controller 1511 that needs to be updated in the message returned to the maintenance terminal 11 . The server 12 sends the software program to be updated to the main controller 1511 through the maintenance terminal 11, and the main controller 1511 performs the update. In this way, the main controller 1511 cannot update unauthorized software programs, thereby ensuring that the operations performed on the main controller 1511 are authorized operations.

在一些实施例中,也可将控制器151设置为:在执行与操作类型的对应的操作时,先对授权码进行校验,若校验通过,控制器151执行与操作类型相关的操作,反之,控制器151不执行与操作类型相关的操作。如此,可以防止非授权的操作。In some embodiments, the controller 151 can also be set to: when performing an operation corresponding to the operation type, first verify the authorization code, if the verification is passed, the controller 151 executes an operation related to the operation type, On the contrary, the controller 151 does not perform an operation related to the operation type. In this way, unauthorized operations can be prevented.

本申请的一些实施例中的机组控制方法,在针对空调机组15进行操作时,需要获取到与操作类型对应的授权码,在授权码校验通过后,针对空调机组15的在授权码授权范围内的操作类型(例如更改主控制器1511的配置等)才能执行成功,可以防止用户对空调机组15的控制器或一些包括控制器的功能部件随意进行更换或更改,降低空调机组15非正规运行的风险。同时,也可以降低空调生产厂家的售后维保业务流失率。In the unit control method in some embodiments of the present application, when operating the air conditioning unit 15, it is necessary to obtain the authorization code corresponding to the operation type. The type of operation (such as changing the configuration of the main controller 1511, etc.) can be executed successfully, which can prevent the user from arbitrarily replacing or changing the controller of the air conditioning unit 15 or some functional parts including the controller, and reduce the irregular operation of the air conditioning unit 15. risks of. At the same time, it can also reduce the loss rate of after-sales maintenance business of air-conditioning manufacturers.

图3是本申请的另一个实施例提供的机组控制方法的流程图。图3中的机组控制方法应用图1中的维护终端11,参见图1和图3,机组控制方法包括:Fig. 3 is a flow chart of a unit control method provided by another embodiment of the present application. The unit control method in Fig. 3 applies the maintenance terminal 11 in Fig. 1, referring to Fig. 1 and Fig. 3, the unit control method includes:

步骤S31,基于针对空调机组的操作类型,发送授权码获取请求给授权端,以使授权端生成与操作类型对应的授权码,授权码获取请求包括用于表示针对空调机组的操作类型的数据。具体可参见图2中对维护终端11的相关描述,此处不赘述。Step S31 , based on the operation type for the air-conditioning unit, send an authorization code acquisition request to the authorization end, so that the authorization end generates an authorization code corresponding to the operation type, and the authorization code acquisition request includes data indicating the operation type for the air-conditioning unit. For details, refer to the relevant description of the maintenance terminal 11 in FIG. 2 , which will not be repeated here.

步骤S32,接收授权端下发的与操作类型对应的授权码。具体可参见图2中对维护终端11的相关描述,此处不赘述。Step S32, receiving the authorization code corresponding to the operation type issued by the authorization terminal. For details, refer to the relevant description of the maintenance terminal 11 in FIG. 2 , which will not be repeated here.

步骤S33,校验授权码,以使授权码校验通过后,控制器151执行与操作类型对应的操作。在一些实施例中,维护终端11对授权码进行校验,可以是维护终端11发送授权码校验请求给服务器12。授权码校验请求包括待校验的授权码。若接收到服务器12返回的授权码校验通过的消息,维护终端11确定授权码校验通过。具体的原理可参见图2中的相关描述,此处不赘述。Step S33 , verifying the authorization code, so that after the verification of the authorization code passes, the controller 151 executes an operation corresponding to the operation type. In some embodiments, the maintenance terminal 11 verifies the authorization code, which may be that the maintenance terminal 11 sends an authorization code verification request to the server 12 . The authorization code verification request includes the authorization code to be verified. If receiving the message that the authorization code verification is passed returned by the server 12, the maintenance terminal 11 determines that the authorization code verification is passed. For specific principles, reference may be made to the related description in FIG. 2 , which will not be repeated here.

图4是本申请的另一个实施例提供的机组控制方法的流程图。图4中的机组控制方法可以应用于图1中的空调机组15的控制器151,参见图1和图4,机组控制方法包括:Fig. 4 is a flow chart of a unit control method provided by another embodiment of the present application. The unit control method in FIG. 4 can be applied to the controller 151 of the air-conditioning unit 15 in FIG. 1. Referring to FIGS. 1 and 4, the unit control method includes:

步骤S41,接收校验通过的授权码,授权码与针对空调机组15的操作类型对应。空调机组15的操作类型可以参见上述图2相关描述,此处不赘述。针对空调机组15的不同的操作类型,授权码可以不相同。Step S41 , receiving an authorization code that passes the verification, where the authorization code corresponds to the operation type for the air conditioning unit 15 . For the operation type of the air-conditioning unit 15, refer to the relevant description of FIG. 2 above, and details are not repeated here. For different operation types of the air conditioning unit 15, the authorization codes may be different.

步骤S42,基于授权码,针对空调机组15,执行与操作类型对应的操作。本实施例中,操作类型包括建立设备控制器1512与主控制器1511之间的关联的操作类型。需要说明的是,此处的设备控制器1512为授权通过的可以与主控制器1511建立关联的设备控制器1512,例如通过正规途径更换的设备控制器1512,又例如,第一次与主控制器1511建立关联的空调机组15的原装设备控制器1512。将主控制器1511与设备控制器1512关联,可以防止用户未经授权随意对设备控制器1512、对包括设备控制器1512的功能部件以及主控制器1511进行随意更换或更改,其原理参见图1中相关描述,此处不赘述。Step S42 , based on the authorization code, perform an operation corresponding to the operation type for the air conditioning unit 15 . In this embodiment, the operation type includes an operation type for establishing an association between the device controller 1512 and the main controller 1511 . It should be noted that the device controller 1512 here is an authorized device controller 1512 that can establish an association with the main controller 1511, for example, a device controller 1512 that is replaced through a regular channel, and for example, the The controller 1511 establishes an association with the original equipment controller 1512 of the air conditioning unit 15 . Associating the main controller 1511 with the device controller 1512 can prevent users from arbitrarily replacing or changing the device controller 1512, the functional components including the device controller 1512, and the main controller 1511 without authorization. The principle is shown in FIG. 1 Related descriptions are not repeated here.

在一些实施例中,可以基于授权码,为每个设备控制器1512生成并分配用于标识每个设备控制器1512的耦合码。基于耦合码建立主控制器1511与设备控制器1512之间的关联。具体的,授权码包括第一授权码,此处的第一授权码可以是基于第一机组耦合码生成的。可以基于第一授权码,生成用于标识设备控制器1512的第一耦合码。进而基于第一耦合码,建立设备控制器1512与主控制器1511之间的关联。若包括多个设备控制器1512,可以基于第一授权码,为每个设备控制器1512分别生成第一耦合码。每个设备控制器1512的第一耦合码不相同,也可以至少部分设备控制器1512的第一耦合码相同。In some embodiments, a coupling code identifying each device controller 1512 may be generated and assigned to each device controller 1512 based on the authorization code. The association between the master controller 1511 and the device controller 1512 is established based on the coupling code. Specifically, the authorization code includes a first authorization code, where the first authorization code may be generated based on the first group coupling code. A first coupling code identifying device controller 1512 may be generated based on the first authorization code. Furthermore, based on the first coupling code, an association between the device controller 1512 and the main controller 1511 is established. If multiple device controllers 1512 are included, a first coupling code may be generated for each device controller 1512 based on the first authorization code. The first coupling codes of each device controller 1512 are different, or the first coupling codes of at least some of the device controllers 1512 may be the same.

在一些实施例中,可以通过预设的耦合码加密算法,对第一授权码进行加密,得到设备控制器1512的第一耦合码。In some embodiments, the first authorization code may be encrypted by using a preset coupling code encryption algorithm to obtain the first coupling code of the device controller 1512 .

图5是图1中的设备控制器1512与主控制器1511建立关联的流程图。在本实施例中,由主控制器1511执行设备控制器1512与主控制器1511建立关联的方法。参见图5,建立设备控制器1512与主控制器1511之间的关联的方法可以包括:FIG. 5 is a flow chart of establishing an association between the device controller 1512 and the main controller 1511 in FIG. 1 . In this embodiment, the main controller 1511 executes the method for establishing an association between the device controller 1512 and the main controller 1511 . Referring to FIG. 5, the method for establishing an association between the device controller 1512 and the main controller 1511 may include:

步骤S51,主控制器1511通过第一加密算法加密第一耦合码,得到主加密耦合码。此处的第一加密算法可以是主控制器1511出厂前预先设置的。在一些实施例中,主控制器1511上可以包括多个对第一耦合码进行加密的加密算法。可以选择其中一个加密算法对第一耦合码进行加密。In step S51, the main controller 1511 encrypts the first coupling code through the first encryption algorithm to obtain the main encrypted coupling code. The first encryption algorithm here may be preset by the main controller 1511 before leaving the factory. In some embodiments, the main controller 1511 may include multiple encryption algorithms for encrypting the first coupling code. One of the encryption algorithms may be selected to encrypt the first coupling code.

步骤S52,主控制器1511发送主加密耦合码给设备控制器1512,以使设备控制器1512通过第一解密算法对主加密耦合码进行解密得到设备耦合码,并通过第二加密算法对设备耦合码进行加密得到设备加密耦合码。在一些实施例中,可以在设备控制器1512出厂前预先设置相应的加密算法和解密算法。Step S52, the main controller 1511 sends the main encryption coupling code to the device controller 1512, so that the device controller 1512 decrypts the main encryption coupling code through the first decryption algorithm to obtain the device coupling code, and uses the second encryption algorithm to couple the device The code is encrypted to obtain the device encryption coupling code. In some embodiments, corresponding encryption algorithms and decryption algorithms may be preset before the device controller 1512 leaves the factory.

步骤S53,主控制器1511接收设备控制器1512返回的设备加密耦合码。In step S53, the main controller 1511 receives the device encryption coupling code returned by the device controller 1512.

步骤S54,主控制器1511通过第二解密算法对设备加密耦合码进行解密,得到主耦合码。In step S54, the main controller 1511 decrypts the device encrypted coupling code through the second decryption algorithm to obtain the main coupling code.

步骤S55,若第一耦合码与主耦合码相同,主控制器1511建立设备控制器1512与主控制器1511之间的关联。Step S55 , if the first coupling code is the same as the main coupling code, the main controller 1511 establishes an association between the device controller 1512 and the main controller 1511 .

可以理解的是,与主控制器1511关联的设备控制器1512可以是基于授权码与主控制器1511建立关联的。若未进行授权的设备控制器1512,不能与主控制器1511建立关联。对于未关联的设备控制器1512,主控制器1511可以停止与该设备控制器1512之间的通信。It can be understood that the device controller 1512 associated with the main controller 1511 may be associated with the main controller 1511 based on the authorization code. If the device controller 1512 is not authorized, it cannot establish an association with the main controller 1511 . For an unassociated device controller 1512 , the master controller 1511 may stop communicating with the device controller 1512 .

在一些实施例中,设备控制器1512对主加密耦合码进行解密得到设备耦合码后,存储设备耦合码。在设备控制器1512与主控制器1511之间建立关联后的预设时间点,主控制器1511获取设备控制器1512上存储的设备耦合码。主控制器1511通过检测设备控制器1512上是否有设备耦合码,或者检测设备控制器1512上存储的设备耦合码是否与第一耦合码相同,来检测设备控制器1512包括设备控制器1512的功能部件是否被更换。其中,设备控制器1512与主控制器1511之间建立关联后的预设时间点可以为从设备控制器1512与主控制器1511之间建立关联时的时间开始,每隔预设时长(例如每隔30天)后得到的时间点。若第一耦合码与设备耦合码不相同,主控制器1511取消主控制器1511与设备控制器1512之间的关联。如此,可以防止用户随意更换空调机组15的设备控制器1512或者包括设备控制器1512的功能部件。In some embodiments, after the device controller 1512 decrypts the master encrypted coupling code to obtain the device coupling code, it stores the device coupling code. At a preset time point after the association between the device controller 1512 and the main controller 1511 is established, the main controller 1511 acquires the device coupling code stored on the device controller 1512 . The main controller 1511 detects that the device controller 1512 includes the function of the device controller 1512 by detecting whether there is a device coupling code on the device controller 1512, or whether the device coupling code stored on the device controller 1512 is the same as the first coupling code. Whether the part has been replaced. Wherein, the preset time point after the association is established between the device controller 1512 and the master controller 1511 may start from the time when the association is established between the device controller 1512 and the master controller 1511, every preset time period (for example, every The time point obtained after 30 days). If the first coupling code is different from the device coupling code, the master controller 1511 cancels the association between the master controller 1511 and the device controller 1512 . In this way, the user can be prevented from replacing the device controller 1512 of the air conditioning unit 15 or the functional components including the device controller 1512 at will.

在一些实施例中,通过上述相关描述可知,空调机组15的机组耦合码可以具有时效性,例如180天。保存机组耦合码的服务器可以定时对机组耦合码进行更新。基于更新后的机组耦合码,可以通过维护终端11重新发送授权请求,获取新的授权码来更新主控制器1511与设备控制器1512之间的关联,即重新为设备控制器1512生成新的用于标识设备控制器1512的耦合码。如此,用于标识设备控制器1512的耦合码处于动态变化的状态,可以防止设备控制器1512的耦合码被恶意破解,进而使得非授权的设备控制器1512可以与主控制器1511进行通信的问题。In some embodiments, it can be known from the above related description that the unit coupling code of the air conditioning unit 15 may have a timeliness, for example, 180 days. The server storing the unit coupling code can regularly update the unit coupling code. Based on the updated unit coupling code, the authorization request can be resent through the maintenance terminal 11 to obtain a new authorization code to update the association between the main controller 1511 and the device controller 1512, that is, to regenerate a new user ID for the device controller 1512. The coupling code used to identify the device controller 1512. In this way, the coupling code used to identify the device controller 1512 is in a dynamically changing state, which can prevent the coupling code of the device controller 1512 from being maliciously cracked, and thus allow unauthorized device controllers 1512 to communicate with the main controller 1511 .

在一些实施例中,授权码包括第二授权码。此处的第二授权码为根据第二机组耦合码生成的。第二机组耦合码可以是对第一机组耦合码进行更新后的机组耦合码。可以基于第二授权码,生成用于标识设备控制器1512的第二耦合码。同时,取消基于第一耦合码建立的设备控制器1512与主控制器1511之间的关联,并基于第二耦合码,建立设备控制器1512与主控制器1511之间的关联。In some embodiments, the authorization code includes a second authorization code. The second authorization code here is generated according to the second group coupling code. The second unit coupling code may be a unit coupling code after updating the first unit coupling code. A second coupling code identifying device controller 1512 may be generated based on the second authorization code. At the same time, the association between the device controller 1512 and the main controller 1511 established based on the first coupling code is canceled, and the association between the device controller 1512 and the main controller 1511 is established based on the second coupling code.

在一些实施例中,可以由主控制器1511基于第二授权码,更新设备控制器1512与主控制器1511之间的关联。主控制器1511可以定期进行更新授权码的提示,以使工作人员基于新的耦合码提交授权申请。In some embodiments, the association between the device controller 1512 and the master controller 1511 may be updated by the master controller 1511 based on the second authorization code. The main controller 1511 may regularly prompt to update the authorization code, so that the staff can submit an authorization application based on the new coupling code.

在一些实施例中,基于上述第二授权码可以更新主控制器1511与部分设备控制器1512之间的关联,未与主控制器1511进行关联更新的设备控制器1512可以继续基于第一授权码与主控制器1511进行关联。即允许空调机组15的部分设备控制器1512基于第一授权码进与主控制器1511进行关联,部分设备控制器1512基于第二授权码与主控制器1511进行关联。In some embodiments, the association between the main controller 1511 and some device controllers 1512 can be updated based on the above-mentioned second authorization code, and the device controllers 1512 that have not been associated with the main controller 1511 can continue to be based on the first authorization code. Associate with the master controller 1511. That is, some device controllers 1512 of the air-conditioning unit 15 are allowed to associate with the main controller 1511 based on the first authorization code, and some device controllers 1512 are allowed to associate with the main controller 1511 based on the second authorization code.

在一些实施例中,可以从设备控制器1512侧检测主控制器1511是否定期进行授权码更新。此处假设主控制器1511上最新的授权码为第一授权码,且已经基于第一授权码生成第一耦合码。设备控制器1512发送耦合码更新请求给主控制器1511。此处耦合码更新请求可以是设备控制器1512请求主控制器1511根据已经获取到的最新的授权码(即第一授权码),生成用于标识设备控制器1512的耦合码。主控制器1511接收到请求后,确定设备控制器1512发送耦合码更新请求的时间点是否在预设时间范围内。预设时间范围可以从设备控制器1512与主控制器1511建立关联的时间点开始,大于或等于预设时长(例如90天)后的时间。例如,设备控制器1512可以设置为在与主控制器1511建立关联后的第91天,发送耦合码更新请求给主控制器1511。若设备控制器1512发送耦合码更新请求的时间未在预设时间范围内,说明设备控制器1512或包括设备控制器1512的功能部件,已经在未经授权的情况下被替换,主控制器1511取消与设备控制器1512之间的关联。若设备控制器1512发送耦合码更新请求的时间在预设时间范围内,主控制器1511通过第一加密算法加密第一耦合码,得到主加密耦合码,并发送主加密耦合码给设备控制器1512,以使设备控制器1512通过第一解密算法对主加密耦合码进行解密得到设备耦合码。设备控制器1512可以将解密得到的设备耦合码与本地保存的设备耦合码进行比对,若解密得到的设备耦合码与设备控制器1512上存储的设备耦合码相同,表示主控制器1511已经超过预设时长(例如超过90天)未更新授权码,则可以由设备控制器1512取消主控制器1511与设备控制器1512之间的关联。In some embodiments, the slave device controller 1512 can detect whether the master controller 1511 regularly updates the authorization code. Here it is assumed that the latest authorization code on the main controller 1511 is the first authorization code, and the first coupling code has been generated based on the first authorization code. The device controller 1512 sends a coupling code update request to the main controller 1511 . Here, the coupling code update request may be that the device controller 1512 requests the main controller 1511 to generate a coupling code for identifying the device controller 1512 according to the acquired latest authorization code (ie, the first authorization code). After receiving the request, the main controller 1511 determines whether the time point at which the device controller 1512 sends the coupling code update request is within a preset time range. The preset time range may start from the time point when the device controller 1512 establishes association with the main controller 1511, which is greater than or equal to the time after a preset time period (for example, 90 days). For example, the device controller 1512 may be set to send a coupling code update request to the main controller 1511 on the 91st day after establishing association with the main controller 1511 . If the time when the device controller 1512 sends the coupling code update request is not within the preset time range, it means that the device controller 1512 or the functional parts including the device controller 1512 have been replaced without authorization, and the main controller 1511 Disassociate with device controller 1512 . If the time when the device controller 1512 sends the coupling code update request is within the preset time range, the main controller 1511 encrypts the first coupling code through the first encryption algorithm to obtain the main encrypted coupling code, and sends the main encrypted coupling code to the device controller 1512, so that the device controller 1512 decrypts the main encrypted coupling code through the first decryption algorithm to obtain the device coupling code. The device controller 1512 can compare the device coupling code obtained by decryption with the device coupling code stored locally. If the device coupling code obtained by decryption is the same as the device coupling code stored on the device controller 1512, it means that the main controller 1511 has exceeded If the authorization code is not updated for a preset period of time (for example, more than 90 days), the device controller 1512 may cancel the association between the main controller 1511 and the device controller 1512 .

在一些实施例中,也可以从主控制器1511侧检测设备控制器1512是否定期进行设备耦合码更新。In some embodiments, it may also be detected from the main controller 1511 whether the device controller 1512 regularly updates the device coupling code.

在其他一些实施例中,在设备控制器1512检测到主控制器1511未定时更新授权码时,也可不取消主控制器1511与设备控制器1512之间的关联,而是进行警报提示。In some other embodiments, when the device controller 1512 detects that the master controller 1511 does not regularly update the authorization code, it may not cancel the association between the master controller 1511 and the device controller 1512, but give an alarm prompt.

通过上述相关描述可以得知,本申请的机组控制方法通过将设备控制器1512与主控制器1511关联,可以有效防止用户在未经授权的情况下,对空调机组15的设备控制器1512或包括设备控制器1512的功能部件进行随意更换,降低了空调机组15非正规运行的风险。From the above related descriptions, it can be known that the unit control method of the present application can effectively prevent the user from unauthorized access to the equipment controller 1512 of the air conditioning unit 15 or including The functional components of the device controller 1512 are replaced at will, which reduces the risk of irregular operation of the air conditioning unit 15 .

在一些实施例中,通过本申请的机组控制方法还可以防止用户在未经授权的情况下,随意更改空调机组15的软件程序和/或软件配置,其中,空调机组15的软件程序和/或软件配置包括:主控制器1511的软件程序和/或软件配置,和/或,设备控制器1512的软件程序和/或软件配置。具体可参见上述对图1和图2的相关描述,此处不赘述。In some embodiments, the unit control method of the present application can also prevent users from arbitrarily changing the software program and/or software configuration of the air conditioning unit 15 without authorization, wherein the software program and/or software configuration of the air conditioning unit 15 The software configuration includes: the software program and/or software configuration of the main controller 1511 , and/or, the software program and/or software configuration of the device controller 1512 . For details, refer to the relevant descriptions of FIG. 1 and FIG. 2 above, and details are not repeated here.

图6是对图1中的主控制器1511对设备控制器1512进行非授权更换监控的流程交互图。参见图6和图1,设备控制器1512包括变频器控制器。设备控制器1512已从硬件上完成更换,但未经过授权与主控制器1511建立关联。在图6中,主控制器1511与更换后的设备控制器1512之间可以按照如下步骤进行交互:FIG. 6 is a flow interaction diagram of monitoring the unauthorized replacement of the device controller 1512 by the main controller 1511 in FIG. 1 . Referring to FIG. 6 and FIG. 1 , the device controller 1512 includes a frequency converter controller. The device controller 1512 has been replaced in hardware, but is not authorized to establish association with the main controller 1511 . In FIG. 6, the interaction between the main controller 1511 and the replaced device controller 1512 can be performed according to the following steps:

步骤S60,主控制器1511发送请求给更换后的设备控制器1512,以获取更换后的设备控制器1512上保存的耦合码。在一些实施例中,主控制器1511可以定时给设备控制器1512发送获取耦合码的请求,以定期监控设备控制器1512是否未被授权被更换。Step S60 , the main controller 1511 sends a request to the replaced device controller 1512 to obtain the coupling code saved on the replaced device controller 1512 . In some embodiments, the main controller 1511 may periodically send a request for obtaining a coupling code to the device controller 1512, so as to regularly monitor whether the device controller 1512 is not authorized to be replaced.

步骤S61,若主控制器1511未收到设备控制器1512返回的响应,或设备控制器1512返回的响应中没有耦合码,或设备控制器1512返回的耦合码与主控制器1511本地保存的耦合码不相同,主控制器1511确定未与设备控制器1512建立关联。Step S61, if the main controller 1511 does not receive the response returned by the device controller 1512, or there is no coupling code in the response returned by the device controller 1512, or the coupling code returned by the device controller 1512 is the same as the coupling code locally stored by the main controller 1511 If the codes are different, the main controller 1511 determines that no association with the device controller 1512 is established.

步骤S62,主控制器1511中断与更换后的设备控制器1512的通信,或发出警报,使得工作人员可以进行授权码申请。Step S62, the main controller 1511 interrupts the communication with the replaced device controller 1512, or sends out an alarm, so that the staff can apply for an authorization code.

步骤S63,主控制器1511接收校验通过的授权码。In step S63, the main controller 1511 receives the authorization code that passes the verification.

步骤S64,主控制器1511基于授权码,生成用于标识更换后的设备控制器1512的耦合码。In step S64, the main controller 1511 generates a coupling code for identifying the replaced device controller 1512 based on the authorization code.

步骤S65,主控制器1511通过第一加密算法加密耦合码,得到主加密耦合码。In step S65, the main controller 1511 encrypts the coupled code through the first encryption algorithm to obtain the main encrypted coupled code.

步骤S66,主控制器1511发送主加密耦合码给更换后的设备控制器。In step S66, the main controller 1511 sends the main encrypted coupling code to the replaced device controller.

步骤S67,主控制器1511接收更换后的设备控制器返回的设备加密耦合码。In step S67, the main controller 1511 receives the device encrypted coupling code returned by the replaced device controller.

步骤S68,主控制器1511通过第二解密算法对设备加密耦合码进行解密,得到主耦合码。In step S68, the main controller 1511 decrypts the device encrypted coupling code through the second decryption algorithm to obtain the main coupling code.

步骤S69,若耦合码与主耦合码相同,主控制器1511与更换后的设备控制器建立关联。Step S69, if the coupling code is the same as the main coupling code, the main controller 1511 establishes an association with the replaced device controller.

图7是图1中的对主控制器1511进行非授权更换监控的流程交互图。参见图7和图1,主控制器1511已从硬件上完成更新,但未经过授权与设备控制器1512建立关联。在图7中,更换后的主控制器1511与设备控制器1512之间可以按照如下步骤进行交互:FIG. 7 is an interaction flow diagram of monitoring the unauthorized replacement of the main controller 1511 in FIG. 1 . Referring to FIG. 7 and FIG. 1 , the main controller 1511 has been updated from the hardware, but is not authorized to establish an association with the device controller 1512 . In FIG. 7, the exchange between the main controller 1511 and the device controller 1512 can be performed according to the following steps:

步骤S70,更换后的主控制器1511发送请求给设备控制器1512,以获取设备控制器1512上保存的耦合码。Step S70 , the replaced main controller 1511 sends a request to the device controller 1512 to obtain the coupling code stored on the device controller 1512 .

步骤S71,设备控制器1512返回响应。图7中,由于设备控制器1512与更换前的主控制器1511建立的关联,因此,设备控制器1512返回的响应中的耦合码为更换前的主控制器1511分配的耦合码。In step S71, the device controller 1512 returns a response. In FIG. 7 , since the device controller 1512 establishes an association with the main controller 1511 before replacement, the coupling code in the response returned by the device controller 1512 is the coupling code assigned by the main controller 1511 before replacement.

步骤S72,更换后的主控制器1511根据返回响应,将本地保存的耦合码与设备控制器1512返回的耦合码进行比较,若在本地保存的耦合码不包括设备控制器1512返回的耦合码,确定未为设备控制器1512分配过耦合码。Step S72, the replaced main controller 1511 compares the coupling code stored locally with the coupling code returned by the device controller 1512 according to the returned response, if the coupling code stored locally does not include the coupling code returned by the device controller 1512, It is determined that the device controller 1512 has not been assigned an over-coupling code.

步骤S73,更换后的主控制器1511可以中断与设备控制器1512的通信,同时发出警报,使得工作人员可以进行授权码申请。In step S73, the replaced main controller 1511 can interrupt the communication with the device controller 1512, and at the same time send out an alarm, so that the staff can apply for an authorization code.

步骤S74,更换后的主控制器1511接收校验通过的授权码。In step S74, the replaced master controller 1511 receives the authorization code that passes the verification.

步骤S75,更换后的主控制器1511基于授权码,生成用于标识设备控制器1512的耦合码。In step S75, the replaced main controller 1511 generates a coupling code for identifying the device controller 1512 based on the authorization code.

步骤S76,更换后的主控制器1511通过第一加密算法加密耦合码,得到主加密耦合码。In step S76, the replaced main controller 1511 encrypts the coupling code through the first encryption algorithm to obtain the main encrypted coupling code.

步骤S77,更换后的主控制器1511发送主加密耦合码给设备控制器1512。In step S77 , the replaced main controller 1511 sends the main encrypted coupling code to the device controller 1512 .

步骤S78,更换后的主控制器1511接收设备控制器1512返回的设备加密耦合码。In step S78, the replaced main controller 1511 receives the device encryption coupling code returned by the device controller 1512.

步骤S79,更换后的主控制器1511通过第二解密算法对设备加密耦合码进行解密,得到主耦合码。In step S79, the replaced main controller 1511 decrypts the encrypted coupling code of the device through the second decryption algorithm to obtain the main coupling code.

步骤S80,若耦合码与主耦合码相同,更换后的主控制器1511与设备控制器1512建立关联。In step S80 , if the coupling code is the same as the main coupling code, the replaced main controller 1511 establishes an association with the device controller 1512 .

图8是对图1中的空调机组15进行授权码定时更新监控的流程交互图。图8中,设备控制器1512与主控制器1511之间可以按照如下步骤进行交互:FIG. 8 is an interaction flow diagram of the periodic update monitoring of the authorization code for the air-conditioning unit 15 in FIG. 1 . In FIG. 8, the interaction between the device controller 1512 and the main controller 1511 can be performed according to the following steps:

步骤S81,主控制器1511定期获取更新后的授权码。此处,可以是主控制器1511定期发送授权码更新的提示,使得工作人员可以基于新的机组耦合码,通过维护终端11重新发送授权码申请请求。In step S81, the main controller 1511 obtains the updated authorization code periodically. Here, it may be that the main controller 1511 periodically sends a prompt to update the authorization code, so that the staff can resend the authorization code application request through the maintenance terminal 11 based on the new unit coupling code.

步骤S82,设备控制器1512发送耦合码更新请求。In step S82, the device controller 1512 sends a coupling code update request.

步骤S83,主控制器1511检查耦合码更新请求的发送时间是否在预设时间范围内,若是,执行步骤S84,若否,执行步骤S87。In step S83, the main controller 1511 checks whether the sending time of the coupling code update request is within the preset time range, if yes, execute step S84, if not, execute step S87.

步骤S84,主控制器1511通过第一加密算法加密第一耦合码,得到主加密耦合码。In step S84, the main controller 1511 encrypts the first coupling code through the first encryption algorithm to obtain the main encrypted coupling code.

步骤S85,主控制器1511发送主加密耦合码给设备控制器1512,以使设备控制器1512通过第一解密算法对主加密耦合码进行解密得到设备耦合码。In step S85, the main controller 1511 sends the main encryption coupling code to the device controller 1512, so that the device controller 1512 decrypts the main encryption coupling code through the first decryption algorithm to obtain the device coupling code.

步骤S86,若解密得到的耦合码与本地保存的耦合码相同,表示主控制器未定期更新授权码,设备控制器1512取消主控制器1511与设备控制器1512之间的关联。Step S86 , if the decrypted coupling code is the same as the locally stored coupling code, it means that the main controller does not regularly update the authorization code, and the device controller 1512 cancels the association between the main controller 1511 and the device controller 1512 .

步骤S87,取消主控制器1511与设备控制器1512之间的关联。Step S87, cancel the association between the main controller 1511 and the device controller 1512.

图9是本申请一个实施例提供的空调机组系统100的模块框图。空调机组系统包括一个或多个处理器101,用于实现如上所述的方法。Fig. 9 is a module block diagram of an air conditioning unit system 100 provided by an embodiment of the present application. The air conditioning unit system includes one or more processors 101 for implementing the method as described above.

空调机组系统包括一个或多个处理器101,用于实现如上描述的机组控制方法。在一些实施例中,空调机组系统100可以包括存储介质109,存储介质109可以存储有可被处理器101调用的程序,可以包括非易失性存储介质。在一些实施例中,空调机组系统可以包括内存108和接口107。在一些实施例中,空调机组系统还可以根据实际应用包括其他硬件。The air conditioning unit system includes one or more processors 101 for implementing the unit control method described above. In some embodiments, the air conditioning unit system 100 may include a storage medium 109, which may store a program that can be invoked by the processor 101, and may include a non-volatile storage medium. In some embodiments, the air conditioning unit system may include memory 108 and interface 107 . In some embodiments, the air conditioning unit system may also include other hardware according to actual applications.

本申请实施例的存储介质109,其上存储有程序,该程序被处理器101执行时,用于实现如上描述的机组控制方法。The storage medium 109 in the embodiment of the present application stores a program thereon, and when the program is executed by the processor 101, it is used to realize the above-described unit control method.

本申请可采用在一个或多个其中包含有程序代码的存储介质109(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。存储介质109包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。存储介质109的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。This application may take the form of a computer program product embodied on one or more storage media 109 (including but not limited to disk storage, CD-ROM, optical storage, etc.) with program code embodied therein. The storage medium 109 includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media 109 include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory ( ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic A magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。The above descriptions are only preferred embodiments of this specification, and are not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification shall be included in this specification. within the scope of protection.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

Claims (20)

1. A unit control method is applied to a maintenance terminal and is characterized by comprising the following steps:
sending an authorization code acquisition request to an authorization terminal based on an operation type of an air conditioning unit, so that the authorization terminal generates an authorization code corresponding to the operation type, wherein the authorization code acquisition request includes data indicating the operation type of the air conditioning unit, the authorization code acquisition request further includes a unit coupling code, and the unit coupling code is used for identifying the air conditioning unit;
receiving an authorization code corresponding to the operation type and issued by the authorization terminal, wherein the authorization code corresponds to the operation type of the air conditioning unit;
the authorization code is verified, the authorization code which is verified to pass is sent to a controller of the air conditioning unit, and after the authorization code passes verification, the controller of the air conditioning unit executes operation corresponding to the operation type aiming at the air conditioning unit based on the authorization code;
the controller includes main control unit and equipment controller, air conditioning unit includes removable functional unit, the functional unit includes the equipment controller, the operation type includes: establishing an associated operation type between the device controller and the master controller.
2. The unit control method according to claim 1, characterized in that the type of operation comprises at least one of the following:
updating an operation type of a software program included in the main controller;
updating an operation type of a software configuration included in the main controller;
updating the operation type of a software program included in the equipment controller;
updating an operation type of a software configuration included by the device controller.
3. The unit control method according to claim 1, characterized in that the authorization code is derived at least on the basis of the unit coupling code and/or the data representing the type of operation for the air conditioning unit.
4. The unit control method according to claim 1, wherein the unit coupling code is derived based on at least one of a serial number of the air conditioning unit, a configuration of the air conditioning unit, a hardware serial number of the air conditioning unit, and time data indicating an age of the unit coupling code.
5. The unit control method according to claim 1, wherein after the authorization code is verified, the unit control method further includes: and at least sending the authorization code to the controller, so that the controller executes the operation corresponding to the operation type at least based on the authorization code.
6. The unit control method according to claim 1, wherein the verifying the authorization code includes:
sending an authorization code verification request to a server corresponding to the air conditioning unit, wherein the authorization code verification request comprises an authorization code to be verified;
and if receiving a message that the authorization code returned by the server passes the verification, determining that the authorization code passes the verification.
7. A unit control method is applied to a controller of an air conditioning unit and is characterized by comprising the following steps:
receiving at least an authorization code which passes the verification of the maintenance terminal, wherein the authorization code corresponds to the operation type of the air conditioning unit;
based on the authorization code, executing an operation corresponding to the operation type for the air conditioning unit;
the controller includes main control unit and equipment controller, air conditioning unit includes removable functional unit, the functional unit includes the equipment controller, the operation type includes: establishing an associated operation type between the device controller and the master controller;
the authorization code is obtained by the following method:
sending, by the maintenance terminal, an authorization code acquisition request to an authorization terminal based on an operation type for the air conditioning unit, so that the authorization terminal generates an authorization code corresponding to the operation type, where the authorization code acquisition request includes data indicating the operation type for the air conditioning unit, the authorization code acquisition request further includes a unit coupling code, and the unit coupling code is used to identify the air conditioning unit;
and receiving an authorization code corresponding to the operation type and issued by the authorization terminal.
8. The unit control method according to claim 7, wherein the authorization code includes a first authorization code, and the performing, for the air conditioning unit, an operation corresponding to the operation type based on the authorization code includes:
generating a first coupling code for identifying the device controller based on the first authorization code;
establishing an association between the device controller and the master controller based on the first coupling code.
9. The crew control method of claim 8, wherein said establishing an association between the device controller and the master controller based on the first coupling code comprises:
the main controller encrypts the first coupling code through a first encryption algorithm to obtain a main encryption coupling code;
the main controller sends the main encryption coupling code to the equipment controller, so that the equipment controller decrypts the main encryption coupling code through a first decryption algorithm to obtain an equipment coupling code, and encrypts the equipment coupling code through a second encryption algorithm to obtain an equipment encryption coupling code;
the main controller receives the equipment encryption coupling code returned by the equipment controller;
the main controller decrypts the equipment encryption coupling code through a second decryption algorithm to obtain a main coupling code;
and if the first coupling code is the same as the main coupling code, the main controller establishes association between the device controller and the main controller.
10. The plant control method according to claim 9, wherein after establishing the association between the equipment controller and the master controller, the plant control method further comprises:
the device controller storing the device coupling code;
at a preset time point after the association is established between the device controller and the master controller, the master controller acquires the device coupling code stored on the device controller;
and if the first coupling code is different from the equipment coupling code, the main controller cancels the association between the main controller and the equipment controller.
11. The plant control method according to claim 9, wherein after establishing the association between the equipment controller and the master controller, the plant control method further comprises:
the equipment controller sends a coupling code updating request to the main controller;
the main controller determines whether the time point when the device controller sends the coupled code update request is within a preset time range, if so,
the main controller encrypts the first coupling code through a first encryption algorithm to obtain a main encryption coupling code;
the main controller sends the main encryption coupling code to the device controller so that the device controller decrypts the main encryption coupling code through a first decryption algorithm to obtain a device coupling code, and if the device coupling code obtained through decryption is the same as the device coupling code stored on the device controller, the device controller cancels the association between the main controller and the device controller;
and if not, the main controller cancels the association with the equipment controller.
12. The unit control method according to claim 8, wherein the authorization code includes a second authorization code, and the performing, for the air conditioning unit, an operation corresponding to the operation type based on the authorization code includes:
generating a second coupling code for identifying the device controller based on the second authorization code;
canceling the association between the device controller and the master controller established based on the first coupling code;
establishing an association between the device controller and the master controller based on the second coupling code.
13. The unit control method according to claim 7, characterized in that the authorization code is derived at least on the basis of a unit coupling code and/or data representing the type of operation for the air conditioning unit.
14. The consist control method of claim 13, wherein the consist coupling code is derived based on at least one of a serial number of the air conditioning consist, a configuration of the air conditioning consist, a hardware serial number associated with the air conditioning consist, and time data indicating an age of the consist coupling code.
15. A unit control method is applied to an air conditioning unit system, the air conditioning unit system comprises a maintenance terminal, an authorization terminal and a controller, and is characterized by comprising the following steps:
the maintenance terminal sends an authorization code acquisition request to the authorization terminal, wherein the authorization code acquisition request comprises data used for representing the operation type of the air conditioning unit, the authorization code acquisition request also comprises a unit coupling code, and the unit coupling code is used for identifying the air conditioning unit;
the authorization end generates an authorization code corresponding to the operation type, wherein the authorization code corresponds to the operation type of the air conditioning unit;
the authorization terminal issues the authorization code so that the maintenance terminal receives the authorization code;
the maintenance terminal verifies the authorization code, and if the authorization code received by the maintenance terminal passes the verification, the maintenance terminal sends the authorization code passing the verification to the controller of the air conditioning unit, so that after the authorization code passes the verification, the controller of the air conditioning unit receives the authorization code passing the verification;
the controller of the air conditioning unit executes an operation corresponding to the operation type for the air conditioning unit based on the authorization code;
the controller includes main control unit and equipment controller, air conditioning unit includes removable functional unit, the functional unit includes the equipment controller, the operation type includes: establishing an associated operation type between the device controller and the master controller.
16. The unit control method according to claim 15, wherein the air-conditioning unit system includes a server, and after the authorization code is generated at the authorization side, the unit control method further includes:
the authorization end sends the authorization code to a server corresponding to the air conditioning unit;
the server stores the authorization code.
17. The unit control method according to claim 16, wherein after the maintenance terminal receives the authorization code, the unit control method further includes:
the maintenance terminal sends an authorization code verification request to the server, wherein the authorization code verification request comprises an authorization code to be verified;
the server verifies the authorization code to be verified in the authorization code verification request based on the stored authorization code;
and if the authorization code in the authorization code check request passes the verification, the server returns a message that the authorization code passes the verification to the maintenance terminal.
18. The unit control method according to claim 17, wherein the operation type includes at least one of:
updating the operation type of the software program included in the main controller;
updating an operation type of a software configuration included in the main controller;
updating an operation type of a software program included by the device controller;
updating an operation type of a software configuration included by the device controller.
19. An air conditioning unit system, comprising one or more processors for implementing the unit control method according to any one of claims 1-18.
20. A storage medium, having stored thereon a program which, when executed by a processor, carries out the method of any one of claims 1-18.
CN202010762355.XA 2020-07-31 2020-07-31 Unit control method, air conditioning unit system and storage medium Active CN111917775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762355.XA CN111917775B (en) 2020-07-31 2020-07-31 Unit control method, air conditioning unit system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762355.XA CN111917775B (en) 2020-07-31 2020-07-31 Unit control method, air conditioning unit system and storage medium

Publications (2)

Publication Number Publication Date
CN111917775A CN111917775A (en) 2020-11-10
CN111917775B true CN111917775B (en) 2023-03-24

Family

ID=73287494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762355.XA Active CN111917775B (en) 2020-07-31 2020-07-31 Unit control method, air conditioning unit system and storage medium

Country Status (1)

Country Link
CN (1) CN111917775B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099689B (en) * 2014-05-15 2019-12-10 比亚迪股份有限公司 replacement system and method for vehicle-mounted electronic equipment
JP6929181B2 (en) * 2017-09-27 2021-09-01 キヤノン株式会社 Devices and their control methods and programs
CN108548271B (en) * 2018-04-17 2020-04-21 奥克斯空调股份有限公司 Method and system for air conditioner monitoring and debugging software authorization
CN110233857B (en) * 2019-06-28 2022-04-15 深圳开立生物医疗科技股份有限公司 Ultrasonic equipment authorization method, system, equipment and computer storage medium
CN114674066B (en) * 2019-10-31 2023-12-29 广东美的制冷设备有限公司 Operation verification method and device, air conditioner and storage medium

Also Published As

Publication number Publication date
CN111917775A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US11076290B2 (en) Assigning an agent device from a first device registry to a second device registry
US10951630B2 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
US10911424B2 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
US9860235B2 (en) Method of establishing a trusted identity for an agent device
KR101741967B1 (en) Method for assigning an agent device from a first device registry to a second device registry
CN108376211B (en) Software authorization management method, server and system
KR102734043B1 (en) Anonymous device authentication
CN106249704A (en) For the method and apparatus controlling the communication of the end points in industrial undertaking's system based on integrity
CN111615172A (en) Network configuration method, device, equipment and system
JP4843320B2 (en) Method and system for securely authenticating a service user of a remote service interface to a storage medium
CN103620556A (en) Binding applications to device capabilities
US20190349347A1 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
CN109302501B (en) Industrial control data storage method, device and system based on block chain technology
US10911432B2 (en) Use of certificates using a positive list
CN112560051A (en) Industrial data security management method and device, electronic equipment and storage medium
CN111917775B (en) Unit control method, air conditioning unit system and storage medium
CN108616528B (en) A cloud storage method and system
CN106992996A (en) The access control method and system of a kind of storage device
CN114238868A (en) A microservice architecture software authorization management system and method
WO2015194050A1 (en) Industrial equipment production system, industrial equipment production method, program, and information storage medium
CN118282671B (en) Certificate self-adaptive switching method, system, electronic equipment and storage medium
CN117621056A (en) Robot control method, device, equipment and medium based on cloud platform management
WO2023175793A1 (en) Product managing system, product equipment, product managing method and non-transitory computer readable medium
JP6348072B2 (en) Cryptographic system, attribute management device, and key generation method
CN116301957A (en) Command white list upgrading method and device, management system, equipment and storage medium

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