


技术领域technical field
本发明涉及程序升级更新的技术领域,尤其涉及一种不需要中止设备正常运行的程序在线升级方法及系统。The present invention relates to the technical field of program upgrade and update, in particular to an online program upgrade method and system that does not need to suspend the normal operation of equipment.
背景技术Background technique
为了使硬件产品能够不断满足用户更新的需求,设备的程序升级是绝大多数设备都需要考虑的事情。In order to enable hardware products to continuously meet the updated needs of users, program upgrades of devices are something that most devices need to consider.
以空调设备为例,随着消费者服务意识的提升,空调产品的售后服务变得越来越重要,而有些售后问题的解决是通过升级室内机和/或室外机的控制器的程序来实现。现有的空调的室内机控制器、室外机控制器中的程序基本上都是嵌入式控制器程序。Taking air-conditioning equipment as an example, with the improvement of consumers' service awareness, the after-sales service of air-conditioning products has become more and more important, and some after-sales problems are solved by upgrading the program of the controller of the indoor unit and/or outdoor unit. . The programs in the existing indoor unit controller and outdoor unit controller of the air conditioner are basically embedded controller programs.
现有的嵌入式控制器程序的升级通常有以下几种方式:There are usually the following ways to upgrade the existing embedded controller program:
一种是直接更换新的室内机控制器或室外机控制器,这种方式的缺点是涉及到控制器的更换,更新成本高;One is to directly replace the new indoor unit controller or outdoor unit controller. The disadvantage of this method is that it involves the replacement of the controller, and the update cost is high;
二是通过厂家IDE(Integrated Drive Electronics,电子集成驱动器或集成设备电路)和仿真器更新程序,这种方式的缺点是操作十分复杂,烧写质量不稳定;The second is to update the program through the manufacturer's IDE (Integrated Drive Electronics, electronic integrated drive or integrated device circuit) and emulator. The disadvantage of this method is that the operation is very complicated and the programming quality is unstable;
三是利用控制器芯片的在线升级功能,通过通讯数据交互实现自动升级。The third is to use the online upgrade function of the controller chip to realize automatic upgrade through communication and data interaction.
在线升级相比较前两种方式而言是最为便捷的方案,但是在线升级通常需要机组先执行停机,对于空调这种特殊的产品来说,一旦执行停机,就会对用户的日常生活造成较大的困扰,而且随着空调产品的推广应用,很多产品都会应用在商用场合,有些重要的商用场合对机组的运行有较高的要求,若是机组停机可能会造成用户的损失。这Compared with the first two methods, online upgrade is the most convenient solution, but online upgrade usually requires the unit to be shut down first. For a special product such as an air conditioner, once the shutdown is executed, it will cause great harm to the user's daily life. With the popularization and application of air-conditioning products, many products will be used in commercial occasions. Some important commercial occasions have higher requirements on the operation of the unit. If the unit is shut down, it may cause losses to users. This
因此,如何提出一种成本较低且设备可以正常运行的程序在线升级方法及系统是业界亟待解决的技术问题。Therefore, how to propose an online program upgrade method and system with low cost and equipment that can run normally is a technical problem to be solved urgently in the industry.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术中成本高、设备需要停机升级的技术问题,本发明提出了程序在线升级方法及系统、空调。In order to solve the technical problems in the prior art that the cost is high and the equipment needs to be shut down to upgrade, the present invention proposes an online program upgrade method and system, and an air conditioner.
本发明提出的程序在线升级方法,包括:The program online upgrade method proposed by the present invention includes:
将需要进行程序升级的设备控制器的物理存储地址至少分为常规应用程序区和升级处理程序区;Divide the physical storage address of the device controller that needs to be upgraded into at least a regular application program area and an upgrade handler area;
当所述设备控制器与外界的在线升级装置建立通信连接准备升级时,所述设备控制器从所述常规应用程序区切换至升级处理程序区进行升级,同时与所述在线升级装置交互逻辑数据和升级数据,由在线升级装置替代所述设备控制器对设备进行控制。When the device controller establishes a communication connection with an external online upgrade device to prepare for upgrade, the device controller switches from the regular application program area to the upgrade processing program area for upgrade, and at the same time exchanges logical data with the online upgrade device and upgrade data, and the online upgrade device replaces the device controller to control the device.
进一步,还包括:Further, it also includes:
当所述设备控制器升级结束时,所述设备控制器从所述升级处理程序区切换至常规应用程序区对设备进行控制,并通知所述在线升级装置升级完成。When the upgrade of the device controller is completed, the device controller switches from the upgrade processing program area to the regular application program area to control the device, and notifies the online upgrade device that the upgrade is completed.
进一步,所述设备控制器从所述常规应用程序区切换至升级处理程序区进行升级是由所述在线升级装置发送在线升级指令触发。Further, the switching of the device controller from the regular application program area to the upgrade processing program area to perform the upgrade is triggered by the online upgrade device sending an online upgrade instruction.
进一步,所述在线升级指令通过按键触发发送。Further, the online upgrade instruction is triggered and sent by pressing a button.
进一步,所述逻辑数据包括设备的运行参数以及设备的控制参数。Further, the logic data includes operating parameters of the device and control parameters of the device.
进一步,所述在线升级装置的物理存储地址也至少分为与所述设备控制器相同的常规应用程序区和升级处理程序区;当所述在线升级装置或所述设备控制器上电时,对其自身的身份进行识别。Further, the physical storage address of the online upgrade device is also at least divided into a conventional application program area and an upgrade processing program area that are the same as the device controller; when the online upgrade device or the device controller is powered on, its own identity.
进一步,所述设备控制器和/或在线升级装置通过上下拉电阻选择接口电路或拨码开关对其自身的身份进行识别。Further, the device controller and/or the online upgrade device identify its own identity by selecting an interface circuit or a DIP switch through a pull-up and pull-down resistor.
进一步,所述在线升级装置的物理存储地址不进行分区,所述在线升级装置具有能实现常规应用程序区和升级处理程序区中程序相同功能的程序。Further, the physical storage address of the online upgrade device is not partitioned, and the online upgrade device has a program that can realize the same functions of the programs in the regular application program area and the upgrade processing program area.
本发明提出的程序在线升级系统,包括设备控制器和在线升级装置,所述设备控制器和在线升级装置采用上述技术方案所述的程序在线升级方法进行升级。The program online upgrade system proposed by the present invention includes an equipment controller and an online upgrade device, and the device controller and the online upgrade device are upgraded by using the program online upgrade method described in the above technical solution.
本发明提出的空调,采用了上述技术方案的程序在线升级系统,所述设备控制器包括室内机控制器和室外控制器当中的至少一种。The air conditioner proposed by the present invention adopts the program online upgrade system of the above technical solution, and the device controller includes at least one of an indoor unit controller and an outdoor controller.
进一步,所述设备控制器包括与机组的其余节点进行通信的第一通信接口,以及与所述在线升级装置进行通信的第二通信接口。Further, the equipment controller includes a first communication interface for communicating with the remaining nodes of the group, and a second communication interface for communicating with the online upgrade device.
进一步,所述第一通信接口和/或第二通信接口为UART接口。Further, the first communication interface and/or the second communication interface is a UART interface.
本发明通过将设备控制器进行分区,并将常规控制的程序和升级的程序分别烧录在不同的分区,同时准备一个在线升级装置,使得该在线升级装置也拥有对应的程序,该程序可以实现常规控制和升级的功能。当设备升级时,可以通过在线升级装置与设备的控制器的升级程序所在的分区进行通信,通过在线升级装置来发送控制的指令,并通过设备的控制器转发给各个被控制的负载,从而实现了设备不停机实现升级。The present invention divides the equipment controller into partitions, burns the routine control program and the upgraded program respectively in different partitions, and prepares an online upgrade device at the same time, so that the online upgrade device also has a corresponding program, and the program can realize General controls and upgraded features. When the equipment is upgraded, it can communicate with the partition where the upgrade program of the controller of the equipment is located through the online upgrade device, send the control instructions through the online upgrade device, and forward it to each controlled load through the controller of the equipment, so as to realize The equipment can be upgraded without downtime.
本发明的该技术方案利用了较少的芯片资源就实现了控制器程序的不停机在线升级,既节省了芯片资源,同时还降低了不停机升级的成本。The technical solution of the present invention utilizes less chip resources to realize the non-stop online upgrade of the controller program, which not only saves the chip resources, but also reduces the cost of the non-stop upgrade.
附图说明Description of drawings
下面结合实施例和附图对本发明进行详细说明,其中:Below in conjunction with embodiment and accompanying drawing, the present invention is described in detail, wherein:
图1是本发明的主要流程图。Fig. 1 is the main flow chart of the present invention.
图2是本发明的一个实施例的整体流程图。Figure 2 is an overall flow diagram of one embodiment of the present invention.
图3是本发明的一个实施例的结构拓扑图。FIG. 3 is a structural topology diagram of an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
由此,本说明书中所指出的一个特征将用于说明本发明的一个实施方式的其中一个特征,而不是暗示本发明的每个实施方式必须具有所说明的特征。此外,应当注意的是本说明书描述了许多特征。尽管某些特征可以组合在一起以示出可能的系统设计,但是这些特征也可用于其他的未明确说明的组合。由此,除非另有说明,所说明的组合并非旨在限制。Thus, a reference to a feature in this specification will be used to describe one of the features of an embodiment of the invention and not to imply that every embodiment of the invention must have the described feature. Furthermore, it should be noted that this specification describes a number of features. Although certain features may be combined together to illustrate possible system designs, these features may also be used in other combinations not explicitly stated. Thus, unless otherwise stated, the combinations described are not intended to be limiting.
如图1、图2所示,本发明的程序在线升级方法,将需要进行程序升级的设备控制器的物理存储地址至少分为常规应用程序区和升级处理程序区。例如,将设备控制器的物理存储地址分为两个分区,分别为常规应用程序区和升级处理程序区。其中常规应用程序区内的程序是用来实现设备的正常运行,升级处理程序区内的程序则用来实现设备的升级,升级处理程序区仅仅只涉及到升级以及一些配合功能,因而所占用的芯片资源较少。As shown in FIG. 1 and FIG. 2 , the online program upgrade method of the present invention divides the physical storage address of the device controller for program upgrade into at least a conventional application program area and an upgrade processing program area. For example, the physical storage address of the device controller is divided into two partitions, the regular application area and the upgrade handler area. Among them, the programs in the regular application program area are used to realize the normal operation of the device, and the programs in the upgrade handler area are used to realize the device upgrade. The upgrade handler area only involves the upgrade and some cooperation functions, so the occupied Chip resources are less.
正常情况下,设备控制器运行在常规应用程序区,当设备控制器需要升级时,可以准备一个能够与设备控制器建立通信连接的外界的在线升级装置。例如该外界的在线升级装置可以通过有线通信的方式与设备控制器建立通信连接。Normally, the device controller runs in the regular application program area. When the device controller needs to be upgraded, an external online upgrade device that can establish a communication connection with the device controller can be prepared. For example, the external online upgrade apparatus may establish a communication connection with the device controller by means of wired communication.
设备控制器与外界的在线升级装置建立通信连接准备升级时,设备控制器从常规应用程序区切换至升级处理程序区进行升级,同时设备控制器与在线升级装置彼此之间相互交互逻辑数据和升级数据,由在线升级装置替代设备控制器对设备进行控制,这里在线升级装置是可以重复复用的一个设备,即对于相同的设备而言,多台设备可以共用同一个在线升级装置,从而降低了升级的硬件成本,而且设备控制器依旧负责原本的正常运行功能和升级功能,仅仅只是在物理存储地址上进行了分区,没有增加设备控制器芯片的开销,而在线升级装置在设备控制器升级期间,替代了设备控制器控制设备正常运行的功能,从而使得设备可以不停机地进行在线升级,整体技术方案成本低,控制简单,而且实现了设备不停机地在线升级。When the device controller establishes a communication connection with the external online upgrade device and prepares to upgrade, the device controller switches from the regular application program area to the upgrade processing program area to perform the upgrade, and at the same time, the device controller and the online upgrade device exchange logical data and upgrade with each other. The data is controlled by the online upgrade device instead of the device controller. Here, the online upgrade device is a device that can be reused repeatedly, that is, for the same device, multiple devices can share the same online upgrade device, thereby reducing the cost of The hardware cost of the upgrade, and the device controller is still responsible for the original normal operation and upgrade functions. It just partitions the physical storage address without increasing the overhead of the device controller chip, and the online upgrade device is used during the device controller upgrade. , which replaces the function of the equipment controller to control the normal operation of the equipment, so that the equipment can be upgraded online without stopping.
当设备控制器升级结束时,设备控制器又从升级处理程序区切换至常规应用程序区,恢复对设备的控制,同时通知在线升级装置升级结束,在线升级装置收到升级结束的信号之后,会停止对设备的控制,回复到最初始的准备升级状态中。When the upgrade of the device controller is completed, the device controller switches from the upgrade processing program area to the normal application program area, restores the control of the device, and informs the online upgrade device that the upgrade is over. After the online upgrade device receives the upgrade end signal, it will Stop the control of the device and return to the initial state of preparation for upgrading.
在一个实施例中,设备控制器从常规应用程序区切换至升级处理程序区进行升级,这个切换动作可以由在线升级装置发送在线升级指令触发,具体的在线升级指令可以通过按键触发发送,也可以通过计数延时等方式来发送,例如在在线升级装置与设备控制器建立通信连接之后,在线升级装置延时几秒发送在线升级指令等,本领域内技术人员还可以采用其他的触发指令的方式来触发在线升级指令,这些均属于本发明的保护范围之内。In one embodiment, the device controller switches from the conventional application program area to the upgrade processing program area to perform the upgrade. This switching action can be triggered by the online upgrade device sending an online upgrade instruction. The specific online upgrade instruction can be triggered and sent by pressing a button, or It is sent by means of counting delay. For example, after the online upgrade device establishes a communication connection with the device controller, the online upgrade device delays sending the online upgrade command for a few seconds. Those skilled in the art can also use other methods of triggering the command. to trigger the online upgrade instruction, all of which fall within the protection scope of the present invention.
设备控制器运行在升级处理程序区时,设备控制器与在线升级装置之间交互的逻辑数据主要包括逻辑数据包括设备的运行参数以及设备的控制参数,由于设备控制器控制的所有负载是与设备控制器进行通信连接的,因而设备控制器需要把设备的一些运行参数,如工作状态参数等采集到,然后发送给在线升级装置,以便在线升级装置对应的程序可以依据获取到的运行参数来给出正确的控制参数,控制参数将由在线升级装置传递给设备控制器,再对设备的对应负载或者对应部分进行控制。When the device controller runs in the upgrade processing program area, the logical data interacted between the device controller and the online upgrade device mainly includes the logical data including the operating parameters of the device and the control parameters of the device. Since all the loads controlled by the device controller are related to the device. The controller is connected by communication, so the equipment controller needs to collect some operating parameters of the equipment, such as working state parameters, etc., and then send it to the online upgrade device, so that the program corresponding to the online upgrade device can be based on the obtained operating parameters. After the correct control parameters are obtained, the control parameters will be transmitted by the online upgrade device to the equipment controller, and then the corresponding load or corresponding part of the equipment will be controlled.
本发明的在线升级装置有两种实现方式。The online upgrade device of the present invention has two implementation modes.
在一个实施例中,在线升级装置可以是设备控制器的一个复制版,即在线升级装置的物理存储地址也至少分为与设备控制器相同的常规应用程序区和升级处理程序区。例如在线升级装置的物理存储地址分为两个分区,分别为常规应用程序区和升级处理程序区。此时,由于设备控制器和在线升级装置所运行的程序完全相同,因而当设备控制器上电时,设备控制器要对其自身的身份进行识别。同样的,在线升级装置上电时,也需要对其自身的身份进行识别。In one embodiment, the online upgrade device may be a duplicate version of the device controller, that is, the physical storage address of the online upgrade device is also divided into at least the same conventional application program area and upgrade processing program area as the device controller. For example, the physical storage address of the online upgrade device is divided into two partitions, which are a regular application program area and an upgrade processing program area. At this time, since the programs run by the device controller and the online upgrade device are exactly the same, when the device controller is powered on, the device controller needs to identify its own identity. Similarly, when the online upgrade device is powered on, its own identity needs to be identified.
身份识别的方式有很多种,设备控制器和/或在线升级装置可以通过上下拉电阻选择接口电路或拨码开关对其自身的身份进行识别。本领域内技术人员还可以采用其他的一些身份识别方式来让程序识别此时是运行在设备控制器上,还是运行在在线升级装置上。There are many ways of identification. The device controller and/or the online upgrade device can identify its own identity by selecting an interface circuit or a DIP switch through a pull-up and pull-down resistor. Those skilled in the art can also use some other identification methods to allow the program to identify whether it is running on the device controller or the online upgrade device at this time.
在另一个实施例中,在线升级装置的物理存储地址也可以不进行分区,只要在线升级装置具有能实现常规应用程序区和升级处理程序区中程序相同功能的程序即可,实现相同功能的程序可以是一套整体的程序通过不同的模块来实现设备控制器的常规应用程序区所烧录的程序功能,以及升级处理程序区所烧录的程序的功能。由于此时,在线升级装置内的程序烧录方式以及代码都与设备处理器中的程序不同,因而在该实施例中,设备处理器和在线升级装置在上电时不需要对自身的身份进行识别,在相互通信交互的情况下,各自运行各自的程序即可。In another embodiment, the physical storage address of the online upgrade device may not be partitioned, as long as the online upgrade device has a program that can realize the same functions of the programs in the conventional application program area and the upgrade processing program area, and the programs that realize the same function It can be a whole set of programs to realize the program functions burned in the conventional application program area of the device controller and the program functions burned in the upgrade processing program area through different modules. At this time, the programming method and code in the online upgrade device are different from those in the device processor, so in this embodiment, the device processor and the online upgrade device do not need to perform their own identity verification when powered on. Identify, in the case of mutual communication and interaction, each can run its own program.
本发明还保护对应的程序在线升级系统,该程序在线升级系统包括设备控制器和在线升级装置,设备控制器和在线升级装置就是采用上述技术方案的任意一个实施例所描述的程序在线升级方法进行升级。The present invention also protects a corresponding program online upgrade system. The program online upgrade system includes an equipment controller and an online upgrade device. The equipment controller and the online upgrade device are performed by using the program online upgrade method described in any one of the embodiments of the above technical solutions. upgrade.
本发明还保护空调,采用了本发明的程序在线升级系统,当设备具体为空调时,本发明的设备控制器包括室内机控制器和室外控制器当中的至少一种。The present invention also protects the air conditioner. The program online upgrade system of the present invention is adopted. When the device is an air conditioner, the device controller of the present invention includes at least one of an indoor unit controller and an outdoor controller.
如图3所示,设备控制器至少具有两个通信接口,包括与机组的其余节点进行通信的第一通信接口,以及与所述在线升级装置进行通信的第二通信接口,剩余接口则用于系统负载控制和检测。在一个实施例中,第一通信接口和/或第二通信接口为UART接口。设备控制器内的常规应用程序区主要是采用机组通信协议,同样的,若是在线升级装置采用设备控制器复制版时,其常规应用程序区内也是采用机组通信协议,设备控制器的升级处理程序区主要是采用升级处理协议,对应的图中在线升级装置的升级处理程序区也是采用升级处理协议。As shown in FIG. 3 , the equipment controller has at least two communication interfaces, including a first communication interface for communicating with other nodes of the unit, and a second communication interface for communicating with the online upgrade device, and the remaining interfaces are used for System load control and detection. In one embodiment, the first communication interface and/or the second communication interface is a UART interface. The general application program area in the equipment controller mainly adopts the unit communication protocol. Similarly, if the online upgrade device adopts the copy version of the equipment controller, the general application program area also adopts the unit communication protocol, and the upgrade processing program of the equipment controller The area mainly adopts the upgrade processing protocol, and the corresponding upgrade processing program area of the online upgrade device in the figure also adopts the upgrade processing protocol.
下面以空调为具体示例,对本发明的程序在线升级方法的一个具体实施例进行详细说明。Taking an air conditioner as a specific example, a specific embodiment of the online program upgrade method of the present invention will be described in detail below.
在该实施例中,所需升级的控制器(可以是室内控制器,也可以是室外控制)与在线升级装置采用相同的主控芯片、IO口配置以及程序代码。In this embodiment, the controller to be upgraded (it may be an indoor controller or an outdoor control) and the online upgrade device use the same main control chip, IO port configuration and program code.
其中所需升级的控制器需要包含两路及以上UART或类似的通讯接口,其中一路负责与机组其余节点(其余节点)进行通讯,另外一路用于在线升级处理,剩余接口则用于系统负载控制和检测。The controller to be upgraded needs to include two or more UART or similar communication interfaces, one of which is responsible for communicating with the rest of the nodes of the unit (the remaining nodes), the other is used for online upgrade processing, and the remaining interfaces are used for system load control and detection.
在线升级装置则是在所需升级的控制器的基础上,仅保留最小控制系统以及通讯接口,同步增加存储模块。控制系统用于执行系统逻辑处理以及在线升级功能,通讯接口用于与所需升级的控制器进行数据交互,存储模块用于存储所需升级的程序。The online upgrade device is based on the controller to be upgraded, only the minimum control system and communication interface are retained, and the storage module is added synchronously. The control system is used for executing system logic processing and online upgrade function, the communication interface is used for data interaction with the controller to be upgraded, and the storage module is used to store the program to be upgraded.
由于所需升级的控制器和在线升级装置采用了相同的程序代码,因此需要它们在上电时先识别各自身份。具体身份识别的实现方式可通过上下拉电阻选择口电路或拨码开关等方式实现。Since the controller to be upgraded and the online upgrade device use the same program code, they need to identify their identities first when powered on. The specific identification can be realized by means of up-down resistor selection port circuit or DIP switch.
所需升级的控制器和在线升级装置需要进行程序分区,程序代码划分为常规应用程序区和升级处理程序区两个大区。机组的所需升级的控制器在未进入在线升级模式时,运行在常规应用程序区,当进入在线升级模式时则运行在升级处理程序区。而在线升级装置所运行的具体的程序区则与所需升级的控制器完全相反。The controller and the online upgrade device to be upgraded need to be partitioned, and the program code is divided into two large areas: the conventional application area and the upgrade processing program area. The controller of the unit that needs to be upgraded runs in the general application program area when it is not in the online upgrade mode, and runs in the upgrade processing program area when it enters the online upgrade mode. The specific program area run by the online upgrade device is completely opposite to the controller that needs to be upgraded.
不同的分区具有不同的职能,常规应用程序区主要负责机组的逻辑运行,第一通信接口负责与机组其余节点进行通讯,第二通信接口负责与在线升级装置通讯,当第二通信接口接收到在线升级装置进入升级的相应指令后,就会切换至升级处理程序区运行。升级处理程序区则完全删除了机组的运行逻辑,只保留了机组负载控制以及通讯部分功能,以便节省芯片资源。Different partitions have different functions. The conventional application area is mainly responsible for the logical operation of the unit. The first communication interface is responsible for communicating with other nodes of the unit, and the second communication interface is responsible for communicating with the online upgrade device. After the upgrade device enters the corresponding command for upgrade, it will switch to the upgrade processing program area to run. In the upgrade processing program area, the operation logic of the unit is completely deleted, and only the load control and communication functions of the unit are retained to save chip resources.
具体的机组的控制器的升级模式进入方式可以通过按键等操作进入。The upgrade mode entry mode of the controller of the specific unit can be entered through operations such as buttons.
机组的所需升级的控制器所用到的交互协议主要有两种,第一通信接口中交互的是机组常规运行协议;第二通信接口则采用的是升级处理协议。There are mainly two kinds of interaction protocols used by the controller of the unit to be upgraded. The first communication interface interacts with the unit's normal operation protocol; the second communication interface uses the upgrade processing protocol.
该升级处理协议所涉及到的数据主要包含以下的内容。The data involved in the upgrade processing protocol mainly includes the following contents.
1、机组控制器自身以及其余节点检测的系统所必需的运行参数,如机组的环境温度、机组的用户设定温度、系统压力等;1. The operating parameters necessary for the system detected by the unit controller itself and other nodes, such as the ambient temperature of the unit, the user-set temperature of the unit, and the system pressure;
2、在线升级装置按常规应用程序运行计算出的系统负载控制参数,如压缩机频率、风机转速、电子膨胀阀步数等;2. The system load control parameters calculated by the online upgrade device according to the operation of the conventional application program, such as compressor frequency, fan speed, electronic expansion valve steps, etc.;
3、在线升级程序数据,即升级的程序代码。3. Online upgrade program data, namely upgraded program code.
机组的控制器通过常规应用程序区运行机组控制逻辑,第一通信接口与其余节点保持通讯,第二通信接口等待在线升级指令。The controller of the unit runs the unit control logic through the conventional application program area, the first communication interface maintains communication with the remaining nodes, and the second communication interface waits for an online upgrade command.
在线升级装置按升级处理程序区运行,等待用户发出的在线升级指令,在线升级装置通过按键等方式触发在线升级指令,通过第二通信接口传递给机组所需升级的控制器。The online upgrade device operates in the upgrade processing program area, waiting for the online upgrade command issued by the user, the online upgrade device triggers the online upgrade command by pressing a button, etc., and transmits it to the controller of the unit to be upgraded through the second communication interface.
机组所需升级的控制器切换至升级处理程序区运行,返回进入升级状态以及机组当前运行状态以及系统运行参数,此过程维持原有负载输出不变。The controller that the unit needs to be upgraded switches to the upgrade processing program area to run, and returns to the upgrade state, the current operating state of the unit and the system operating parameters, and the original load output remains unchanged during this process.
在线升级装置切换至常规应用程序区运行,按机组所需升级的控制器返回的运行参数(如系统参数)运行控制逻辑,并返回最新计算的负载控制参数。同步地,在线升级装置会读取自身存储设备或者通过其余外接设备获取所需升级的程序代码,与负载控制参数分帧发给机组所需升级的控制器。The online upgrade device switches to the normal application area to run, runs the control logic according to the operating parameters (such as system parameters) returned by the controller that needs to be upgraded for the unit, and returns the latest calculated load control parameters. Simultaneously, the online upgrade device will read its own storage device or obtain the program code that needs to be upgraded through other external devices, and send it to the controller that the unit needs to upgrade in frames with the load control parameters.
机组所需升级的控制器按在线升级装置计算的结果控制负载运行,并通过第一通信接口按机组协议维持与其余节点交互。同步地,机组所需升级的控制器会根据接收到的程序代码对自身的常规应用程序区进行升级。机组所需升级的控制器的常规应用程序区的程序升级完成后,返回完成标志给在线升级装置。在线升级装置恢复到初始状态,等待下一次的升级,返回升级结束标志给机组所需升级的控制器。The controller to be upgraded by the unit controls the load operation according to the result calculated by the online upgrade device, and maintains interaction with other nodes through the first communication interface according to the unit protocol. Simultaneously, the controller that the unit needs to upgrade will upgrade its own regular application program area according to the received program code. After the program upgrade in the general application program area of the controller to be upgraded by the unit is completed, the completion sign is returned to the online upgrade device. The online upgrade device returns to the initial state, waits for the next upgrade, and returns the upgrade end sign to the controller that the unit needs to upgrade.
机组控制器切换回常规应用程序区,并根据当前的运行参数继续按逻辑计算运行。The unit controller switches back to the regular application area and continues to operate logically according to the current operating parameters.
本发明的在线升级装置之所以运行常规应用程序,是为了让机组在升级过程中不停机,如果机组的控制器直接运行升级程序,那么机组的控制在升级过程中就必须要停止。The reason why the online upgrade device of the present invention runs the conventional application program is to keep the unit from stopping during the upgrade process. If the controller of the unit directly runs the upgrade program, the control of the unit must be stopped during the upgrade process.
另外,由于在线升级装置只是一个临时升级的设备,升级完成以后就需要拆掉的,因此不会一直放在机组里面替代机组的控制器运行。In addition, since the online upgrade device is only a temporary upgrade device, it needs to be removed after the upgrade is completed, so it will not always be placed in the unit to replace the controller of the unit.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210498725.2ACN114741107A (en) | 2022-05-09 | 2022-05-09 | Program online upgrading method and system and air conditioner |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210498725.2ACN114741107A (en) | 2022-05-09 | 2022-05-09 | Program online upgrading method and system and air conditioner |
| Publication Number | Publication Date |
|---|---|
| CN114741107Atrue CN114741107A (en) | 2022-07-12 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210498725.2APendingCN114741107A (en) | 2022-05-09 | 2022-05-09 | Program online upgrading method and system and air conditioner |
| Country | Link |
|---|---|
| CN (1) | CN114741107A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115509553A (en)* | 2022-08-26 | 2022-12-23 | 中国航空工业集团公司洛阳电光设备研究所 | Logic online upgrade test method based on UART |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1908934A (en)* | 2006-08-02 | 2007-02-07 | 华为技术有限公司 | Online updating control method and device of embedded database |
| CN106648726A (en)* | 2016-09-13 | 2017-05-10 | 武汉海翼科技有限公司 | Software online upgrading method for variable-air-volume air conditioning terminal devices |
| CN107506208A (en)* | 2017-07-14 | 2017-12-22 | 广州慧睿思通信息科技有限公司 | A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment |
| CN108536458A (en)* | 2018-04-13 | 2018-09-14 | 北京和普威视科技股份有限公司 | A kind of FPGA online upgradings method, apparatus, equipment and storage medium |
| CN108632328A (en)* | 2017-03-26 | 2018-10-09 | 广州市联奥信息科技有限公司 | The method and apparatus of ADAS system codes and data online upgrading |
| CN108874422A (en)* | 2018-06-15 | 2018-11-23 | 合肥美的电冰箱有限公司 | A kind of on-line software updating method of refrigerator electric control plate, refrigerator electric control plate and refrigerator |
| CN109240730A (en)* | 2018-08-29 | 2019-01-18 | 武汉光迅科技股份有限公司 | A kind of single-chip microcontroller online upgrading method and system |
| CN111651179A (en)* | 2020-05-29 | 2020-09-11 | 歌尔科技有限公司 | Earphone, program upgrading method thereof, control device and readable storage medium |
| CN113515296A (en)* | 2021-07-28 | 2021-10-19 | 特灵空调系统(中国)有限公司 | Online upgrading method, controller, air conditioning unit and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1908934A (en)* | 2006-08-02 | 2007-02-07 | 华为技术有限公司 | Online updating control method and device of embedded database |
| CN106648726A (en)* | 2016-09-13 | 2017-05-10 | 武汉海翼科技有限公司 | Software online upgrading method for variable-air-volume air conditioning terminal devices |
| CN108632328A (en)* | 2017-03-26 | 2018-10-09 | 广州市联奥信息科技有限公司 | The method and apparatus of ADAS system codes and data online upgrading |
| CN107506208A (en)* | 2017-07-14 | 2017-12-22 | 广州慧睿思通信息科技有限公司 | A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment |
| CN108536458A (en)* | 2018-04-13 | 2018-09-14 | 北京和普威视科技股份有限公司 | A kind of FPGA online upgradings method, apparatus, equipment and storage medium |
| CN108874422A (en)* | 2018-06-15 | 2018-11-23 | 合肥美的电冰箱有限公司 | A kind of on-line software updating method of refrigerator electric control plate, refrigerator electric control plate and refrigerator |
| CN109240730A (en)* | 2018-08-29 | 2019-01-18 | 武汉光迅科技股份有限公司 | A kind of single-chip microcontroller online upgrading method and system |
| CN111651179A (en)* | 2020-05-29 | 2020-09-11 | 歌尔科技有限公司 | Earphone, program upgrading method thereof, control device and readable storage medium |
| CN113515296A (en)* | 2021-07-28 | 2021-10-19 | 特灵空调系统(中国)有限公司 | Online upgrading method, controller, air conditioning unit and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115509553A (en)* | 2022-08-26 | 2022-12-23 | 中国航空工业集团公司洛阳电光设备研究所 | Logic online upgrade test method based on UART |
| Publication | Publication Date | Title |
|---|---|---|
| KR100991873B1 (en) | Smart card operating system and method | |
| JP4606589B2 (en) | Apparatus and method for dynamically reconfiguring input / output devices | |
| JPH04367963A (en) | Shared memory communication method | |
| JP7493871B2 (en) | Electronic device and method for responding to a wake-up trigger - Patents.com | |
| CN117896204B (en) | Microwave power supply communication method, device, electronic device and storage medium based on CAN | |
| CN114185603B (en) | Control method of intelligent accelerator card, server and intelligent accelerator card | |
| CN104932329A (en) | Frequency converter control method and system, and frequency converter | |
| CN114741107A (en) | Program online upgrading method and system and air conditioner | |
| WO2025092341A1 (en) | Nas-based cluster management method and apparatus, and computer device and nonvolatile readable storage medium | |
| US7191275B2 (en) | System and method for the management of hardware triggered hotplug operations of input/output cards | |
| JP2000299691A (en) | Redundant lan system and active/reserve system switching method | |
| JP4122725B2 (en) | Real-time control system | |
| CN110417581A (en) | A kind of RapidIO exchange network Configuration Online and upgrade method based on Ethernet | |
| CN118740957A (en) | A method and communication system compatible with I2C communication | |
| JPH1069470A (en) | Multiprocessor system | |
| CN114942613B (en) | A method for quickly taking effect of shared IP of dual CPU redundant PLC after master-slave switching | |
| TWI881478B (en) | System power synchronization control method | |
| CN115183380B (en) | Method, device, controller and storage medium for multi-terminal control of air conditioning system | |
| CN116052614A (en) | Cloud platform-based large-screen power supply control method, device and equipment | |
| CN117472440B (en) | Chip control method and device, storage medium and electronic equipment | |
| JP2000132210A (en) | Controller and cooperation controlling method | |
| JPS6239789B2 (en) | ||
| CN112600679A (en) | Intelligent network card | |
| KR100440578B1 (en) | The Method of Operator Message Process between the Internal Functional Processors in High Speed Router | |
| CN117997658A (en) | Communication method and device and electronic equipment |
| 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 |