WO2012016409A1 - Terminal upgrade method, terminal upgrade downgrade method and upgrade management center - Google Patents

Terminal upgrade method, terminal upgrade downgrade method and upgrade management center Download PDF

Info

Publication number
WO2012016409A1
WO2012016409A1 PCT/CN2010/079826 CN2010079826W WO2012016409A1 WO 2012016409 A1 WO2012016409 A1 WO 2012016409A1 CN 2010079826 W CN2010079826 W CN 2010079826W WO 2012016409 A1 WO2012016409 A1 WO 2012016409A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
terminal
service
management center
upgraded
Prior art date
Application number
PCT/CN2010/079826
Other languages
French (fr)
Chinese (zh)
Inventor
李光勇
喻红宇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012016409A1 publication Critical patent/WO2012016409A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • Terminal upgrade method terminal upgrade rollback method, and upgrade management center
  • the present invention relates to the field of communications technologies, and in particular, to a terminal upgrade method, a terminal upgrade rollback method, and an upgrade management center. Background technique
  • Smart home is a residential, platform that combines architecture, network communication, information appliances, equipment automation and sensor networks. It integrates systems, structures, services and management into an efficient, comfortable, safe, convenient and environmentally friendly living environment.
  • the goal of smart homes is to connect to a variety of ubiquitous services through a converged network environment and access a variety of services through standardized service interfaces provided by a unified business support platform.
  • the smart home system includes a single business and a combined business.
  • the single service is a service completed by a type of terminal device;
  • the combined service is a service completed by a plurality of types of terminal devices.
  • the software upgrade of the combined service is performed by simultaneously upgrading all the terminal devices corresponding to the service, but the process of upgrading the software of each terminal device and the upgrade result are not related to each other.
  • This upgrade method is easy to cause some terminal device software upgrades to be successful, and some terminal device software upgrades fail, resulting in the combined services being unable to be used normally. Summary of the invention
  • the main purpose of the present invention is to provide a terminal upgrade method, a terminal upgrade rollback method, and an upgrade management center to ensure that all terminal software versions corresponding to the same service are consistent.
  • the invention provides a method for upgrading a terminal, which comprises the steps of:
  • the upgrade management center obtains a correspondence between the service and at least one terminal;
  • the upgrade management center sends an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship; the terminal performs an upgrade operation according to the upgrade file.
  • the upgrade management center acquires a correspondence between the service and the at least one terminal, and uses the following methods:
  • the upgrade management center analyzes the service logic of the service, and obtains a correspondence between the service and the at least one terminal; or
  • the upgrade management center acquires a correspondence between the service and the at least one terminal according to a pre-configuration.
  • the upgrade management center analyzes the service logic or acquires an upgrade sequence between the at least one terminal according to the pre-configuration;
  • the upgrade management center sends the upgrade file one by one to the at least one terminal according to the upgrade sequence.
  • the method further includes: the upgrade management center determining at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and retired, and the terminal that needs to be upgraded and rolled back Send a rollback instruction;
  • the terminal that needs to be upgraded and rolled back performs the upgrade and fallback operation according to the back-off instruction; the upgrade management center re-sends the upgrade file to the terminal that fails to be upgraded.
  • the upgrade management center analyzes the service logic or obtains an upgrade rollback sequence of the at least one terminal that needs to be upgraded and rolled back according to the pre-configuration;
  • the upgrade management center sends an upgrade rollback instruction one by one to the at least one terminal that needs to be upgraded and rolled back according to the upgrade fallback order.
  • the invention further provides a method for terminal upgrade rollback, which comprises the steps of:
  • the upgrade management center obtains a correspondence between the service and at least one terminal
  • the upgrade management center sends a back-off instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship;
  • the terminal performs an upgrade rollback operation according to the backoff instruction.
  • the upgrade management center acquires a correspondence between the service and the at least one terminal, and uses the following methods:
  • the upgrade management center analyzes the service logic of the service, and obtains a correspondence between the service and the at least one terminal; or
  • the upgrade management center acquires a correspondence between the service and the at least one terminal according to a pre-configuration.
  • the method for upgrading the rollback of the terminal includes: before the sending, by the upgrade management center, the retracting command to the terminal that needs to be upgraded and rolled back, the method further includes:
  • the upgrade management center determines whether all the terminals corresponding to the service are successfully upgraded according to the corresponding relationship, and if the determination is no, sends a back-off instruction to the terminal.
  • the method for upgrading the rollback of the terminal is performed, and before the terminal performs the upgrade operation, the upgrade management center determines that the terminal capability is insufficient to back up the file that is run before the upgrade, and obtains the file and stores the file;
  • the terminal performs an upgrade rollback operation according to the backoff instruction, specifically:
  • the terminal acquires the file, and runs the file to perform an upgrade rollback operation.
  • the invention also proposes an upgrade management center, which comprises:
  • An obtaining module configured to acquire a correspondence between a service and at least one terminal
  • an upgrade management module configured to send an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship, where the terminal performs an upgrade operation.
  • the acquiring module includes at least the following units:
  • An analysis unit configured to analyze business logic of the service, and obtain a correspondence between the service and the at least one terminal;
  • the foregoing upgrade management center further includes:
  • the fallback management module is configured to send a backoff instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship, where the terminal performs an upgrade rollback operation.
  • the foregoing upgrade management center further includes:
  • the determining module is configured to determine, according to the correspondence, whether all the terminals corresponding to the service are upgraded successfully. If the determination is no, the notification back-off management module sends a back-off instruction to the terminal that needs to be upgraded and rolled back.
  • the acquiring module is further configured to acquire an upgrade sequence between the at least one terminal;
  • the fallback management module is further configured to determine at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and retired;
  • the upgrade management module is further configured to: after the upgrade rollback operation is performed on the terminal that needs to be upgraded and rolled back, send the upgrade file to the terminal that fails to be upgraded.
  • the terminal upgrade method, the terminal upgrade rollback method, and the upgrade management center provided by the present invention ensure the consistency of the software versions of all terminals corresponding to the same service, and ensure the normal operation of the service.
  • FIG. 1 is a flow chart of an embodiment of a method for upgrading a terminal according to the present invention
  • FIG. 2 is a flow chart of another embodiment of a method for upgrading a terminal of the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of an upgrade management center of the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of an acquisition module of an upgrade management center according to the present invention
  • FIG. 5 is a schematic structural diagram of another embodiment of an acquisition module of an upgrade management center of the present invention
  • FIG. 6 is another diagram of an upgrade management center of the present invention.
  • FIG. 7 is a block diagram showing another embodiment of the upgrade management center of the present invention. detailed description
  • an embodiment of a method for upgrading a terminal of the present invention which includes:
  • Step S101 The upgrade management center acquires a correspondence between the service and the at least one terminal.
  • Step S103 The terminal performs an upgrade operation according to the upgrade file.
  • the service needs to be completed by at least one terminal, so the service corresponds to at least one terminal, and the service establishes a corresponding relationship with the terminal. If the service is running properly, you need to ensure that the software versions of all the terminals that are corresponding to the service are consistent. If the versions are inconsistent, you need to send the upgrade file to the terminal with low software version to upgrade the software. The software version is consistent.
  • the upgrade files are also sent to all the terminals, so that the software of all the terminals is upgraded to the same high version.
  • this embodiment ensures the consistency of the software versions of all terminals corresponding to the same service, and ensures the normal operation of the service.
  • the upgrade management center of the foregoing embodiment obtains the correspondence between the service and the at least one terminal, and uses the following methods:
  • the upgrade management center analyzes the business logic of the service, and obtains a correspondence between the service and at least one terminal; or
  • the upgrade management center obtains the correspondence between the service and the at least one terminal according to the pre-configuration.
  • the above business logic contains information about all terminals corresponding to the service, and therefore is based on the business logic.
  • the analysis of the series can obtain the correspondence between the service and all the terminals, and all the terminals are at least one terminal.
  • the correspondence between the service and the terminal can also be set in advance according to actual needs.
  • the upgrade management center analyzes the service logic or obtains an upgrade sequence between the at least one terminal according to the pre-configuration; the upgrade management center sends the upgrade file to the at least one terminal one by one according to the upgrade sequence, that is, the upgrade management After sending the upgrade file to a terminal, the center waits for the upgrade of the terminal, sends the upgrade file to the next terminal, and so on, until the transmission is completed to the at least one terminal.
  • the method further includes:
  • the upgrade management center determines at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and rolls back, and sends a back-off instruction to the terminal that needs to be upgraded and rolled back;
  • the terminal that needs to be upgraded and rolled back performs an upgrade rollback operation according to the back instruction
  • the upgrade management center resends the upgrade file to the terminal that failed to upgrade.
  • the upgrade management center determines which terminal upgrade fails according to the upgrade result of each terminal, and which upgrade failed terminal needs to perform the upgrade rollback operation.
  • the upgrade management center analyzes the service logic or obtains an upgrade rollback sequence of at least one terminal that needs to be upgraded and rolled back according to the pre-configuration; the upgrade management center ranks the upgrade rollback sequence to at least one terminal that needs to be upgraded and rolled back one by one. After the upgrade management center sends an upgrade rollback command to the terminal, the upgrade management center waits for the upgrade to roll back, and then sends the upgrade rollback command to the next terminal, and so on.
  • the above business logic includes a logical sequence in which all terminals corresponding to the service perform services.
  • the upgrade rollback order of the terminal that needs to be upgraded and rolled back can also be pre-configured according to the user's wishes or actual needs.
  • the terminals corresponding to the service are: A, B, C, D, E, and F.
  • the upgrade rewind sequence is: A—B—C— D ⁇ E ⁇ F.
  • the upgrade retreat sequence is: A ⁇ C ⁇ E, and so on.
  • Step S201 The upgrade management center obtains a correspondence between the service and the at least one terminal.
  • Step S202 The upgrade management center sends a rollback instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship.
  • Step S203 The terminal performs an upgrade rollback operation according to the backoff instruction.
  • the service needs to be completed by at least one terminal, so the service corresponds to at least one terminal, and the service establishes a corresponding relationship with the terminal.
  • the service can be operated normally, firstly, it is required to ensure that the software versions of all the terminals corresponding to the service are consistent. If the versions are inconsistent, the upgrade file needs to be sent to the terminal with a low software version, so that the software is upgraded, so that all the services are upgraded. The software version of the terminal remains the same.
  • the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back to perform the upgrade rollback operation, and prepares the terminal to perform the upgrade operation again, so that all terminal software corresponding to the service is upgraded to the same version.
  • the upgrade management center of the foregoing embodiment obtains the correspondence between the service and the at least one terminal, and uses the following methods:
  • the upgrade management center analyzes the business logic of the service, and obtains a correspondence between the service and at least one terminal; or
  • the upgrade management center obtains the correspondence between the service and the at least one terminal according to the pre-configuration.
  • the foregoing service logic includes the information of all the terminals corresponding to the service. Therefore, the correspondence between the service and all the terminals can be obtained according to the analysis of the service logic, and all the terminals are at least one terminal. In addition, the correspondence between the service and the terminal can also be set in advance according to actual needs.
  • the method further includes:
  • the upgrade management center determines whether all the terminals corresponding to the service are successfully upgraded according to the corresponding relationship. If the determination is no, the terminal sends a backoff command to the terminal; if the determination is yes, the process is not performed.
  • the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back.
  • the ultimate purpose of sending a fallback command to the terminal to perform the upgrade rollback operation is as follows: All the terminals corresponding to the service are successfully upgraded. After the terminal performs the upgrade rollback operation, the upgrade management center sends the upgrade file to the upgraded terminal again to perform the upgrade operation until all the terminals are successfully upgraded.
  • the upgrade management center determines that the terminal capability is insufficient to back up the file that is run before the upgrade, and obtains the file and stores the file; the terminal performs the upgrade rollback operation according to the rollback instruction, specifically For:
  • the terminal acquires the file, and runs the file to perform an upgrade rollback operation.
  • the upgrade management center obtains the file when the terminal capability is insufficient to back up the file that is run before the upgrade, and the file is obtained for performing the upgrade rollback operation for the terminal that needs to be upgraded and rolled back.
  • the terminal When the terminal that needs to be upgraded and rolled back performs the upgrade rollback, it first determines whether it has a backup. The file, if any, directly replaces the file with the current file, and runs the file to complete the upgrade rollback operation; if not, the file is obtained from the upgrade management center, and the file is replaced with the current file. And run the file to complete the upgrade rollback operation.
  • an upgrade management center 100 of an embodiment of the present invention which includes: an acquisition module 10 and an upgrade management module 20.
  • the obtaining module 10 is configured to obtain a correspondence between the service and the at least one terminal.
  • the upgrade management module 20 is configured to send an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship, and the terminal performs an upgrade operation.
  • the service needs to be completed by at least one terminal, so the service corresponds to at least one terminal, and the service establishes a corresponding relationship with the terminal. If the service is running properly, you need to ensure that the software versions of all the terminals that are corresponding to the service are consistent. If the versions are inconsistent, you need to send the upgrade file to the terminal with low software version to upgrade the software. The software version is consistent.
  • the upgrade files are also sent to all the terminals, so that the software of all the terminals is upgraded to the same high version.
  • this embodiment ensures the consistency of the software versions of all terminals corresponding to the same service, and ensures the normal operation of the service.
  • the above obtaining module 10 includes at least the following units: an analyzing unit 11 or a configuration unit 12.
  • the analyzing unit 11 is configured to analyze the service logic of the service, and obtain a correspondence between the service and the at least one terminal.
  • the configuration unit 12 is configured to configure a correspondence between the service and at least one terminal.
  • the foregoing service logic includes information about all the terminals corresponding to the service. Therefore, the correspondence between the service and all the terminals can be obtained according to the analysis of the service logic, and all the terminals are at least one terminal. In addition, the correspondence between the service and the terminal can also be set in advance according to actual needs.
  • the upgrade management center 200 of the present invention includes: an acquisition module 30, an upgrade management module 40, and a fallback management module 50.
  • the obtaining module 30 and the upgrade management module 40 are the obtaining module 10 and the upgrade management module 20 in the foregoing embodiment, and details are not described herein again.
  • the fallback management module 50 is configured to send a backoff instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship, where the terminal performs an upgrade rollback operation.
  • the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back to perform the upgrade rollback operation, and prepares the terminal to perform the upgrade operation again, so that all terminal software corresponding to the service is upgraded to the same version.
  • an obtaining module 60 an upgrade management module 70, a fallback management module 80, and a judging module 90.
  • the obtaining module 60, the upgrade management module 70, and the fallback management module 80 are the above-mentioned obtaining module 30, the upgrade management module 40, and the fallback management module 50, and details are not described herein again.
  • the determining module 90 is configured to determine, according to the correspondence, whether all the terminals corresponding to the service are upgraded successfully. If the determination is negative, the notification back-off management module 80 sends a back-off instruction to the terminal that needs to be upgraded and rolled back.
  • the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back.
  • the ultimate purpose of sending a fallback command to the terminal to perform the upgrade rollback operation is as follows: All the terminals corresponding to the service are successfully upgraded. After the terminal performs the upgrade rollback operation, the upgrade management center sends the upgrade file to the upgraded terminal again to perform the upgrade operation until all the terminals are successfully upgraded.
  • the obtaining module 60 is further configured to acquire an upgrade sequence between the at least one terminal;
  • the fallback management module 80 is further configured to determine at least one terminal that fails to be upgraded and needs to be upgraded and rolled back. At least one terminal;
  • the upgrade management module 70 is further configured to send the upgrade file to the terminal that fails to be upgraded after the upgrade rollback operation is performed on the terminal that needs to be upgraded and rolled back.
  • the upgrade management center determines which terminal upgrade fails according to the upgrade result of each terminal, and which upgrade failed terminal needs to perform the upgrade rollback operation.

Abstract

A terminal upgrade method, a terminal upgrade downgrade method and an upgrade management center are provided. The method comprises: the upgrade management center obtains the corresponding relationship between a service and at least one of the terminals (S101); the upgrade management center sends an upgrade file to the terminal which needs to be upgraded according to the corresponding relationship (S102); the terminal executes the upgrade operation according to the upgrade file (S103). The terminal upgrade method, the terminal upgrade downgrade method and the upgrade management center provided by the present invention ensure the consistency of the software versions of all terminals corresponding to the same service so as to ensure the normal operation of the service.

Description

终端升级的方法、 终端升级回退的方法和升级管理中心 技术领域  Terminal upgrade method, terminal upgrade rollback method, and upgrade management center
本发明涉及通讯技术领域, 尤其涉及一种终端升级的方法、 终端升级 回退的方法和升级管理中心。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a terminal upgrade method, a terminal upgrade rollback method, and an upgrade management center. Background technique
智能家居是以住宅为平台, 兼备建筑、 网络通信、 信息家电、 设备自 动化和传感网络, 集系统、 结构、 服务、 管理为一体的高效、 舒适、 安全、 便利、 环保的居住环境。 智能家居的目标是通过融合的网络环境与各种泛 在服务建立连接, 通过统一的业务支持平台提供的标准化业务接口获取各 种服务。 提供多种终端设备, 如触摸屏、 多功能遥控器、 手机等, 其操作 简单可靠, 可以有效地完成家居内部管理和对外的交流。  Smart home is a residential, platform that combines architecture, network communication, information appliances, equipment automation and sensor networks. It integrates systems, structures, services and management into an efficient, comfortable, safe, convenient and environmentally friendly living environment. The goal of smart homes is to connect to a variety of ubiquitous services through a converged network environment and access a variety of services through standardized service interfaces provided by a unified business support platform. Provide a variety of terminal equipment, such as touch screen, multi-function remote control, mobile phone, etc., its operation is simple and reliable, can effectively complete the internal management of the home and external communication.
智能家居系统中包括单一业务和组合业务。 其中, 单一业务为由一类 终端设备完成的业务; 组合业务为由多类终端设备共同完成的业务。 现有 技术中, 对组合业务进行软件升级是通过对该业务对应的所有终端设备同 时进行软件升级, 但每个终端设备软件升级的过程和升级结果互不相关。 这种升级的方式容易造成某些终端设备软件升级成功, 某些终端设备软件 升级失败, 从而导致组合业务无法正常使用。 发明内容  The smart home system includes a single business and a combined business. The single service is a service completed by a type of terminal device; the combined service is a service completed by a plurality of types of terminal devices. In the prior art, the software upgrade of the combined service is performed by simultaneously upgrading all the terminal devices corresponding to the service, but the process of upgrading the software of each terminal device and the upgrade result are not related to each other. This upgrade method is easy to cause some terminal device software upgrades to be successful, and some terminal device software upgrades fail, resulting in the combined services being unable to be used normally. Summary of the invention
本发明的主要目的在于提供一种终端升级的方法、 终端升级回退的方 法和升级管理中心, 以保证同一业务对应的所有终端软件版本一致。  The main purpose of the present invention is to provide a terminal upgrade method, a terminal upgrade rollback method, and an upgrade management center to ensure that all terminal software versions corresponding to the same service are consistent.
本发明提出一种终端升级的方法, 其包括步骤:  The invention provides a method for upgrading a terminal, which comprises the steps of:
升级管理中心获取业务与至少一个终端之间的对应关系; 升级管理中心根据所述对应关系向需升级的所述终端发送升级文件; 所述终端根据所述升级文件执行升级操作。 The upgrade management center obtains a correspondence between the service and at least one terminal; The upgrade management center sends an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship; the terminal performs an upgrade operation according to the upgrade file.
优选地, 所述升级管理中心获取业务与至少一个终端之间的对应关系, 釆用以下方式:  Preferably, the upgrade management center acquires a correspondence between the service and the at least one terminal, and uses the following methods:
所述升级管理中心分析所述业务的业务逻辑, 获取所述业务与所述至 少一个终端之间的对应关系; 或  The upgrade management center analyzes the service logic of the service, and obtains a correspondence between the service and the at least one terminal; or
所述升级管理中心根据预先配置, 获取所述业务与所述至少一个终端 之间的对应关系。  The upgrade management center acquires a correspondence between the service and the at least one terminal according to a pre-configuration.
优选地, 所述升级管理中心分析所述业务逻辑或根据所述预先配置, 还获取所述至少一个终端之间的升级顺序;  Preferably, the upgrade management center analyzes the service logic or acquires an upgrade sequence between the at least one terminal according to the pre-configuration;
所述升级管理中心根据所述升级顺序向所述至少一个终端逐个发送升 级文件。  And the upgrade management center sends the upgrade file one by one to the at least one terminal according to the upgrade sequence.
优选地, 在所述终端根据所述升级文件执行升级操作之后, 还包括: 所述升级管理中心确定升级失败的至少一个终端和需升级回退的至少 一个终端, 并向需升级回退的终端发送回退指令;  Preferably, after the terminal performs the upgrade operation according to the upgrade file, the method further includes: the upgrade management center determining at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and retired, and the terminal that needs to be upgraded and rolled back Send a rollback instruction;
所述需升级回退的终端根据所述回退指令执行升级回退操作; 所述升级管理中心重新将所述升级文件发送给升级失败的终端。  The terminal that needs to be upgraded and rolled back performs the upgrade and fallback operation according to the back-off instruction; the upgrade management center re-sends the upgrade file to the terminal that fails to be upgraded.
优选地, 升级管理中心分析业务逻辑或根据预先配置, 获取所述需升 级回退的至少一个终端的升级回退顺序;  Preferably, the upgrade management center analyzes the service logic or obtains an upgrade rollback sequence of the at least one terminal that needs to be upgraded and rolled back according to the pre-configuration;
所述升级管理中心根据所述升级回退顺序向所述需升级回退的至少一 个终端逐个发送升级回退指令。  The upgrade management center sends an upgrade rollback instruction one by one to the at least one terminal that needs to be upgraded and rolled back according to the upgrade fallback order.
本发明另提出一种终端升级回退的方法, 其包括步骤:  The invention further provides a method for terminal upgrade rollback, which comprises the steps of:
升级管理中心获取业务与至少一个终端之间的对应关系;  The upgrade management center obtains a correspondence between the service and at least one terminal;
升级管理中心根据所述对应关系向需升级回退的所述终端发送回退指 令; 所述终端根据所述回退指令执行升级回退操作。 The upgrade management center sends a back-off instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship; The terminal performs an upgrade rollback operation according to the backoff instruction.
优选地, 所述升级管理中心获取业务与至少一个终端之间的对应关系, 釆用以下方式:  Preferably, the upgrade management center acquires a correspondence between the service and the at least one terminal, and uses the following methods:
所述升级管理中心分析所述业务的业务逻辑, 获取所述业务与所述至 少一个终端之间的对应关系; 或  The upgrade management center analyzes the service logic of the service, and obtains a correspondence between the service and the at least one terminal; or
所述升级管理中心根据预先配置, 获取所述业务与所述至少一个终端 之间的对应关系。  The upgrade management center acquires a correspondence between the service and the at least one terminal according to a pre-configuration.
优选地, 上述终端升级回退的方法, 在所述升级管理中心 居所述对 应关系向需升级回退的所述终端发送回退指令之前, 还包括:  Preferably, the method for upgrading the rollback of the terminal includes: before the sending, by the upgrade management center, the retracting command to the terminal that needs to be upgraded and rolled back, the method further includes:
所述升级管理中心根据所述对应关系判断所述业务对应的所有终端是 否都升级成功, 如果判断为否, 则向所述终端发送回退指令。  The upgrade management center determines whether all the terminals corresponding to the service are successfully upgraded according to the corresponding relationship, and if the determination is no, sends a back-off instruction to the terminal.
优选地, 上述终端升级回退的方法, 在所述终端执行升级操作之前, 所述升级管理中心判断终端能力不足以备份升级前运行的文件时, 获取所 述文件并存储;  Preferably, the method for upgrading the rollback of the terminal is performed, and before the terminal performs the upgrade operation, the upgrade management center determines that the terminal capability is insufficient to back up the file that is run before the upgrade, and obtains the file and stores the file;
所述终端根据所述回退指令执行升级回退操作, 具体为:  The terminal performs an upgrade rollback operation according to the backoff instruction, specifically:
所述终端获取所述文件, 运行所述文件执行升级回退操作。  The terminal acquires the file, and runs the file to perform an upgrade rollback operation.
本发明还提出一种升级管理中心, 其包括:  The invention also proposes an upgrade management center, which comprises:
获取模块, 用于获取业务与至少一个终端之间的对应关系;  An obtaining module, configured to acquire a correspondence between a service and at least one terminal;
升级管理模块, 用于根据所述对应关系向需升级的所述终端发送升级 文件, 供所述终端执行升级操作。  And an upgrade management module, configured to send an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship, where the terminal performs an upgrade operation.
优选地, 所述获取模块至少包括以下单元:  Preferably, the acquiring module includes at least the following units:
分析单元, 用于分析所述业务的业务逻辑, 获取所述业务与所述至少 一个终端之间的对应关系; 或  An analysis unit, configured to analyze business logic of the service, and obtain a correspondence between the service and the at least one terminal; or
配置单元, 用于配置所述业务与所述至少一个终端之间的对应关系。 优选地, 上述升级管理中心还包括: 回退管理模块, 用于根据所述对应关系向需升级回退的所述终端发送 回退指令, 供所述终端执行升级回退操作。 And a configuration unit, configured to configure a correspondence between the service and the at least one terminal. Preferably, the foregoing upgrade management center further includes: The fallback management module is configured to send a backoff instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship, where the terminal performs an upgrade rollback operation.
优选地, 上述升级管理中心还包括:  Preferably, the foregoing upgrade management center further includes:
判断模块, 用于根据所述对应关系判断所述业务对应的所有终端是否 都升级成功, 如果判断为否, 则通知回退管理模块向需升级回退的所述终 端发送回退指令。  The determining module is configured to determine, according to the correspondence, whether all the terminals corresponding to the service are upgraded successfully. If the determination is no, the notification back-off management module sends a back-off instruction to the terminal that needs to be upgraded and rolled back.
优选地, 所述获取模块, 还用于获取所述至少一个终端之间的升级顺 序;  Preferably, the acquiring module is further configured to acquire an upgrade sequence between the at least one terminal;
所述回退管理模块, 还用于确定升级失败的至少一个终端和需升级回 退的至少一个终端;  The fallback management module is further configured to determine at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and retired;
所述升级管理模块, 还用于在需升级回退的终端执行升级回退操作之 后, 重新将所述升级文件发送给升级失败的终端。  The upgrade management module is further configured to: after the upgrade rollback operation is performed on the terminal that needs to be upgraded and rolled back, send the upgrade file to the terminal that fails to be upgraded.
本发明提供的终端升级的方法、 终端升级回退的方法和升级管理中心, 保证了与同一业务对应的所有终端的软件版本的一致性, 确保了业务的正 常运行。 附图说明  The terminal upgrade method, the terminal upgrade rollback method, and the upgrade management center provided by the present invention ensure the consistency of the software versions of all terminals corresponding to the same service, and ensure the normal operation of the service. DRAWINGS
图 1是本发明的终端升级的方法一实施例的流程图;  1 is a flow chart of an embodiment of a method for upgrading a terminal according to the present invention;
图 2是本发明的终端升级的方法另一实施例的流程图;  2 is a flow chart of another embodiment of a method for upgrading a terminal of the present invention;
图 3 是本发明的升级管理中心的一实施例的结构示意图;  3 is a schematic structural diagram of an embodiment of an upgrade management center of the present invention;
图 4是本发明的升级管理中心的获取模块一实施例的结构示意图; 图 5是本发明的升级管理中心的获取模块另一实施例的结构示意图; 图 6是本发明的升级管理中心的另一实施例的结构示意图;  4 is a schematic structural diagram of an embodiment of an acquisition module of an upgrade management center according to the present invention; FIG. 5 is a schematic structural diagram of another embodiment of an acquisition module of an upgrade management center of the present invention; and FIG. 6 is another diagram of an upgrade management center of the present invention. A schematic structural view of an embodiment;
图 7是本发明的升级管理中心的另一实施例的结构示意图。 具体实施方式 Figure 7 is a block diagram showing another embodiment of the upgrade management center of the present invention. detailed description
应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于 限定本发明。  It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参见图 1 , 提出本发明的终端升级的方法一实施例, 其包括:  Referring to FIG. 1 , an embodiment of a method for upgrading a terminal of the present invention is provided, which includes:
步骤 S 101、 升级管理中心获取业务与至少一个终端之间的对应关系。 步骤 S102、 升级管理中心根据所述对应关系向需升级的终端发送升级 文件。  Step S101: The upgrade management center acquires a correspondence between the service and the at least one terminal. Step S102: The upgrade management center sends an upgrade file to the terminal to be upgraded according to the corresponding relationship.
步骤 S103、 终端根据升级文件执行升级操作。  Step S103: The terminal performs an upgrade operation according to the upgrade file.
本实施例中, 所述业务需要至少一个终端执行完成, 因此所述业务对 应有至少一个终端, 所述业务与终端建立有对应关系。 所述业务是否能够 正常运行, 首先需要确保与所述业务对应的所有终端的软件版本一致, 若 版本不一致, 则需向软件版本低的终端发送升级文件, 使之进行软件升级, 使所有的终端的软件版本保持一致。  In this embodiment, the service needs to be completed by at least one terminal, so the service corresponds to at least one terminal, and the service establishes a corresponding relationship with the terminal. If the service is running properly, you need to ensure that the software versions of all the terminals that are corresponding to the service are consistent. If the versions are inconsistent, you need to send the upgrade file to the terminal with low software version to upgrade the software. The software version is consistent.
另外, 根据业务需要, 与所述业务对应的所有终端的软件版本一致时, 也需向该所有的终端发送升级文件, 使该所有的终端的软件升级到同一高 版本。  In addition, when the software versions of all the terminals corresponding to the service are consistent according to the service requirements, the upgrade files are also sent to all the terminals, so that the software of all the terminals is upgraded to the same high version.
由上可知, 本实施例保证了与同一业务对应的所有终端的软件版本的 一致性, 确保了业务的正常运行。  It can be seen from the above that this embodiment ensures the consistency of the software versions of all terminals corresponding to the same service, and ensures the normal operation of the service.
进一步地, 上述实施例的升级管理中心获取业务与至少一个终端之间 的对应关系, 釆用以下方式:  Further, the upgrade management center of the foregoing embodiment obtains the correspondence between the service and the at least one terminal, and uses the following methods:
升级管理中心分析所述业务的业务逻辑, 获取所述业务与至少一个终 端之间的对应关系; 或  The upgrade management center analyzes the business logic of the service, and obtains a correspondence between the service and at least one terminal; or
升级管理中心根据预先配置, 获取所述业务与至少一个终端之间的对 应关系。  The upgrade management center obtains the correspondence between the service and the at least one terminal according to the pre-configuration.
上述业务逻辑包含与业务对应的所有终端的信息, 因此根据对业务逻 辑的分析可以获取到业务与所有终端的对应关系, 该所有终端至少为一个 终端。 另外, 业务与终端的对应关系也可以根据实际需要预先设置好。 The above business logic contains information about all terminals corresponding to the service, and therefore is based on the business logic. The analysis of the series can obtain the correspondence between the service and all the terminals, and all the terminals are at least one terminal. In addition, the correspondence between the service and the terminal can also be set in advance according to actual needs.
进一步地, 上述升级管理中心分析业务逻辑或根据预先配置, 还获取 所述至少一个终端之间的升级顺序; 升级管理中心根据所述升级顺序向所 述至少一个终端逐个发送升级文件, 即升级管理中心向一个终端发送升级 文件后, 等待该终端升级完毕, 在再向下一个终端发送升级文件, 依此类 推, 直至向所述至少一个终端发送完毕。  Further, the upgrade management center analyzes the service logic or obtains an upgrade sequence between the at least one terminal according to the pre-configuration; the upgrade management center sends the upgrade file to the at least one terminal one by one according to the upgrade sequence, that is, the upgrade management After sending the upgrade file to a terminal, the center waits for the upgrade of the terminal, sends the upgrade file to the next terminal, and so on, until the transmission is completed to the at least one terminal.
进一步地, 上述实施例中, 在终端根据升级文件执行升级操作之后, 还包括:  Further, in the foregoing embodiment, after the terminal performs the upgrade operation according to the upgrade file, the method further includes:
升级管理中心确定升级失败的至少一个终端和需升级回退的至少一个 终端, 并向需升级回退的终端发送回退指令;  The upgrade management center determines at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and rolls back, and sends a back-off instruction to the terminal that needs to be upgraded and rolled back;
所述需升级回退的终端根据回退指令执行升级回退操作;  The terminal that needs to be upgraded and rolled back performs an upgrade rollback operation according to the back instruction;
升级管理中心重新将升级文件发送给升级失败的终端。  The upgrade management center resends the upgrade file to the terminal that failed to upgrade.
本实施例中, 在终端根据升级文件执行升级操作之后, 升级管理中心 根据每个终端的升级结果确定哪个终端升级失败, 哪个升级失败的终端需 要执行升级回退操作。  In this embodiment, after the terminal performs the upgrade operation according to the upgrade file, the upgrade management center determines which terminal upgrade fails according to the upgrade result of each terminal, and which upgrade failed terminal needs to perform the upgrade rollback operation.
升级失败的终端包括两种: 一种是升级后该终端的文件与升级前的文 件一致, 无需执行升级回退操作; 另一种是升级后该终端的文件与升级前 的文件不一致, 同时也与升级文件不一致, 需要执行升级回退操作。  There are two types of terminals that fail to be upgraded. One is that the files of the terminal are the same as those before the upgrade, and the upgrade and rollback operations are not required. The other is that the files of the terminal are inconsistent with the files before the upgrade. Inconsistent with the upgrade file, you need to perform an upgrade rollback operation.
进一步地, 上述升级管理中心分析业务逻辑或根据预先配置, 获取需 升级回退的至少一个终端的升级回退顺序; 升级管理中心 居所述升级回 退顺序向需升级回退的至少一个终端逐个发送升级回退指令, 即升级管理 中心向一个终端发送升级回退指令后, 等待该终端升级回退完毕, 在再向 下一个终端发送升级回退指令, 依此类推。  Further, the upgrade management center analyzes the service logic or obtains an upgrade rollback sequence of at least one terminal that needs to be upgraded and rolled back according to the pre-configuration; the upgrade management center ranks the upgrade rollback sequence to at least one terminal that needs to be upgraded and rolled back one by one. After the upgrade management center sends an upgrade rollback command to the terminal, the upgrade management center waits for the upgrade to roll back, and then sends the upgrade rollback command to the next terminal, and so on.
上述业务逻辑中包含有与业务对应的所有终端执行业务的逻辑顺序, 根据该执行业务的逻辑顺序, 获取需升级回退的终端的升级回退顺序。 另 外, 需升级回退的终端的升级回退顺序也可以根据用户意愿或实际需要预 先配置好。 例如, 与业务对应的终端为: A、 B、 C、 D、 E和 F, 其中, 可 以设置当这六个终端都需升级回退时, 其升级回退顺序为: A— B— C— D →E→F。 则当只有 、 C和 E三个终端需升级回退时, 其升级回退顺序为: A→C→E, 依次类推。 The above business logic includes a logical sequence in which all terminals corresponding to the service perform services. Obtain the upgrade rollback sequence of the terminal that needs to be upgraded and rolled back according to the logical sequence of the execution service. In addition, the upgrade rollback order of the terminal that needs to be upgraded and rolled back can also be pre-configured according to the user's wishes or actual needs. For example, the terminals corresponding to the service are: A, B, C, D, E, and F. In this case, when the six terminals need to be upgraded and rolled back, the upgrade rewind sequence is: A—B—C— D → E → F. Then, when only three terminals, C and E need to be upgraded and rolled back, the upgrade retreat sequence is: A→C→E, and so on.
参见图 2, 提出本发明的终端升级回退的方法一实施例, 其包括: 步骤 S201、 升级管理中心获取业务与至少一个终端之间的对应关系。 步骤 S202、 升级管理中心根据所述对应关系向需升级回退的终端发送 回退指令。  Referring to FIG. 2, an embodiment of the method for the terminal to upgrade the rollback of the present invention is provided. The method includes the following steps: Step S201: The upgrade management center obtains a correspondence between the service and the at least one terminal. Step S202: The upgrade management center sends a rollback instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship.
步骤 S203、 终端根据回退指令执行升级回退操作。  Step S203: The terminal performs an upgrade rollback operation according to the backoff instruction.
本实施例中, 所述业务需要至少一个终端执行完成, 因此所述业务对 应有至少一个终端, 所述业务与终端建立有对应关系。 所述业务是否能够 正常运行, 首先需要确保执行与所述业务对应的所有终端的软件版本一致, 若版本不一致, 则需向软件版本低的终端发送升级文件, 使之进行软件升 级, 使所有的终端的软件版本保持一致。  In this embodiment, the service needs to be completed by at least one terminal, so the service corresponds to at least one terminal, and the service establishes a corresponding relationship with the terminal. Whether the service can be operated normally, firstly, it is required to ensure that the software versions of all the terminals corresponding to the service are consistent. If the versions are inconsistent, the upgrade file needs to be sent to the terminal with a low software version, so that the software is upgraded, so that all the services are upgraded. The software version of the terminal remains the same.
本实例中升级管理中心向需升级回退的终端发送回退指令, 使其执行 升级回退操作, 为该终端再次执行升级操作做准备, 使业务对应的所有终 端软件升级至同一版本。  In this example, the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back to perform the upgrade rollback operation, and prepares the terminal to perform the upgrade operation again, so that all terminal software corresponding to the service is upgraded to the same version.
进一步地, 上述实施例的升级管理中心获取业务与至少一个终端之间 的对应关系, 釆用以下方式:  Further, the upgrade management center of the foregoing embodiment obtains the correspondence between the service and the at least one terminal, and uses the following methods:
升级管理中心分析所述业务的业务逻辑, 获取所述业务与至少一个终 端之间的对应关系; 或  The upgrade management center analyzes the business logic of the service, and obtains a correspondence between the service and at least one terminal; or
升级管理中心根据预先配置, 获取所述业务与至少一个终端之间的对 应关系。 上述业务逻辑包含与业务对应的所有终端的信息, 因此根据对业务逻 辑的分析可以获取到业务与所有终端的对应关系, 该所有终端至少为一个 终端。 另外, 业务与终端的对应关系也可以根据实际需要预先设置好。 The upgrade management center obtains the correspondence between the service and the at least one terminal according to the pre-configuration. The foregoing service logic includes the information of all the terminals corresponding to the service. Therefore, the correspondence between the service and all the terminals can be obtained according to the analysis of the service logic, and all the terminals are at least one terminal. In addition, the correspondence between the service and the terminal can also be set in advance according to actual needs.
进一步地, 上述实施例中升级管理中心根据所述对应关系向需升级回 退的终端发送回退指令之前, 还包括:  Further, before the sending, by the upgrade management center, the redirection instruction to the terminal that needs to be upgraded and retired according to the corresponding relationship, the method further includes:
升级管理中心根据所述对应关系判断所述业务对应的所有终端是否都 升级成功, 如果判断为否, 则向终端发送回退指令; 如果判断为是, 则不 做处理。  The upgrade management center determines whether all the terminals corresponding to the service are successfully upgraded according to the corresponding relationship. If the determination is no, the terminal sends a backoff command to the terminal; if the determination is yes, the process is not performed.
本实施例, 升级管理中心向需升级回退的终端发送回退指令的前提是: 所述业务对应的终端中有部分终端升级失败, 且升级失败的终端中有部分 终端需升级回退。 向终端发送回退指令使之执行升级回退操作的最终目的 是: 业务对应的所有终端升级成功。 终端执行升级回退操作后, 升级管理 中心再次向升级失败的终端发送升级文件, 使之执行升级操作, 直至所有 终端升级成功。  In this embodiment, the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back. The premise that some of the terminals corresponding to the service fail to be upgraded, and some of the terminals that fail to upgrade need to be upgraded and rolled back. The ultimate purpose of sending a fallback command to the terminal to perform the upgrade rollback operation is as follows: All the terminals corresponding to the service are successfully upgraded. After the terminal performs the upgrade rollback operation, the upgrade management center sends the upgrade file to the upgraded terminal again to perform the upgrade operation until all the terminals are successfully upgraded.
其中, 升级失败的终端包括两种: 一种是升级后该终端的文件与升级 前的文件一致, 无需执行升级回退操作; 另一种是升级后该终端的文件与 升级前的文件不一致, 同时也与升级文件不一致, 需要执行升级回退操作。  There are two types of terminals that fail to be upgraded. One is that the files of the terminal are the same as those before the upgrade, and the upgrade and rollback operations are not required. The other is that the files of the terminal are inconsistent with the files before the upgrade. It is also inconsistent with the upgrade file and needs to perform the upgrade rollback operation.
进一步地, 上述实施例中, 在终端执行升级操作之前, 升级管理中心 判断终端能力不足以备份升级前运行的文件时, 获取所述文件并存储; 终端根据回退指令执行升级回退操作, 具体为:  Further, in the foregoing embodiment, before the terminal performs the upgrade operation, the upgrade management center determines that the terminal capability is insufficient to back up the file that is run before the upgrade, and obtains the file and stores the file; the terminal performs the upgrade rollback operation according to the rollback instruction, specifically For:
终端获取所述文件, 运行所述文件执行升级回退操作。  The terminal acquires the file, and runs the file to perform an upgrade rollback operation.
本实施中, 升级管理中心在终端能力不足以备份升级前运行的文件时, 获取所述文件并存储, 是为需升级回退的终端执行升级回退操作提供所述 文件。  In this implementation, the upgrade management center obtains the file when the terminal capability is insufficient to back up the file that is run before the upgrade, and the file is obtained for performing the upgrade rollback operation for the terminal that needs to be upgraded and rolled back.
所述需升级回退的终端在执行升级回退时, 首先判断自身是否备份有 所述文件, 若有则直接将所述文件替换当前文件, 并运行所述文件, 从而 完成升级回退操作; 若没有, 则从升级管理中心获取所述文件, 并将所述 文件替换当前文件, 并运行所述文件, 以完成升级回退操作。 When the terminal that needs to be upgraded and rolled back performs the upgrade rollback, it first determines whether it has a backup. The file, if any, directly replaces the file with the current file, and runs the file to complete the upgrade rollback operation; if not, the file is obtained from the upgrade management center, and the file is replaced with the current file. And run the file to complete the upgrade rollback operation.
参见图 3 , 提出本发明的升级管理中心 100—实施例, 其包括: 获取模 块 10和升级管理模块 20。 其中, 获取模块 10, 用于获取业务与至少一个 终端之间的对应关系。 升级管理模块 20, 用于根据所述对应关系向需升级 的终端发送升级文件, 供终端执行升级操作。  Referring to FIG. 3, an upgrade management center 100 of an embodiment of the present invention is provided, which includes: an acquisition module 10 and an upgrade management module 20. The obtaining module 10 is configured to obtain a correspondence between the service and the at least one terminal. The upgrade management module 20 is configured to send an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship, and the terminal performs an upgrade operation.
本实施例中, 所述业务需要至少一个终端执行完成, 因此所述业务对 应有至少一个终端, 所述业务与终端建立有对应关系。 所述业务是否能够 正常运行, 首先需要确保与所述业务对应的所有终端的软件版本一致, 若 版本不一致, 则需向软件版本低的终端发送升级文件, 使之进行软件升级, 使所有的终端的软件版本保持一致。  In this embodiment, the service needs to be completed by at least one terminal, so the service corresponds to at least one terminal, and the service establishes a corresponding relationship with the terminal. If the service is running properly, you need to ensure that the software versions of all the terminals that are corresponding to the service are consistent. If the versions are inconsistent, you need to send the upgrade file to the terminal with low software version to upgrade the software. The software version is consistent.
另外, 根据业务需要, 与所述业务对应的所有终端的软件版本一致时, 也需向该所有的终端发送升级文件, 使该所有的终端的软件升级到同一高 版本。  In addition, when the software versions of all the terminals corresponding to the service are consistent according to the service requirements, the upgrade files are also sent to all the terminals, so that the software of all the terminals is upgraded to the same high version.
由上可知, 本实施例保证了与同一业务对应的所有终端的软件版本的 一致性, 确保了业务的正常运行。  It can be seen from the above that this embodiment ensures the consistency of the software versions of all terminals corresponding to the same service, and ensures the normal operation of the service.
进一步地, 参见图 4和图 5 , 上述获取模块 10至少包括以下单元: 分 析单元 11或配置单元 12。 其中, 分析单元 11 , 用于分析所述业务的业务 逻辑, 获取所述业务与至少一个终端之间的对应关系。 配置单元 12, 用于 配置所述业务与至少一个终端之间的对应关系。  Further, referring to FIG. 4 and FIG. 5, the above obtaining module 10 includes at least the following units: an analyzing unit 11 or a configuration unit 12. The analyzing unit 11 is configured to analyze the service logic of the service, and obtain a correspondence between the service and the at least one terminal. The configuration unit 12 is configured to configure a correspondence between the service and at least one terminal.
上述业务逻辑包含与业务对应的所有终端的信息, 因此根据对业务逻 辑的分析可以获取到业务与所有终端的对应关系, 该所有终端至少为一个 终端。 另外, 业务与终端的对应关系也可以根据实际需要预先设置好。  The foregoing service logic includes information about all the terminals corresponding to the service. Therefore, the correspondence between the service and all the terminals can be obtained according to the analysis of the service logic, and all the terminals are at least one terminal. In addition, the correspondence between the service and the terminal can also be set in advance according to actual needs.
进一步地, 参见图 6提出本发明的升级管理中心 200的另一实施例, 其包括: 获取模块 30、 升级管理模块 40和回退管理模块 50。 其中, 获取 模块 30和升级管理模块 40为上述实施例中的获取模块 10和升级管理模块 20, 在此不再赘述。 回退管理模块 50, 用于根据所述对应关系向需升级回 退的所述终端发送回退指令, 供所述终端执行升级回退操作。 Further, another embodiment of the upgrade management center 200 of the present invention is presented with reference to FIG. It includes: an acquisition module 30, an upgrade management module 40, and a fallback management module 50. The obtaining module 30 and the upgrade management module 40 are the obtaining module 10 and the upgrade management module 20 in the foregoing embodiment, and details are not described herein again. The fallback management module 50 is configured to send a backoff instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship, where the terminal performs an upgrade rollback operation.
本实例中升级管理中心向需升级回退的终端发送回退指令, 使其执行 升级回退操作, 为该终端再次执行升级操作做准备, 使与业务对应的所有 终端软件升级至同一版本。  In this example, the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back to perform the upgrade rollback operation, and prepares the terminal to perform the upgrade operation again, so that all terminal software corresponding to the service is upgraded to the same version.
进一步地, 参见图 7 , 提出本发明的升级管理中心 300的另一实施例, 其包括: 获取模块 60、 升级管理模块 70、 回退管理模块 80和判断模块 90。 其中, 获取模块 60、 升级管理模块 70和回退管理模块 80为上述的获取模 块 30、 升级管理模块 40和回退管理模块 50, 在此不再赘述。 判断模块 90, 用于根据所述对应关系判断所述业务对应的所有终端是否都升级成功, 如 果判断为否, 则通知回退管理模块 80向需升级回退的终端发送回退指令。  Further, referring to FIG. 7, another embodiment of the upgrade management center 300 of the present invention is provided, which includes: an obtaining module 60, an upgrade management module 70, a fallback management module 80, and a judging module 90. The obtaining module 60, the upgrade management module 70, and the fallback management module 80 are the above-mentioned obtaining module 30, the upgrade management module 40, and the fallback management module 50, and details are not described herein again. The determining module 90 is configured to determine, according to the correspondence, whether all the terminals corresponding to the service are upgraded successfully. If the determination is negative, the notification back-off management module 80 sends a back-off instruction to the terminal that needs to be upgraded and rolled back.
本实施例, 升级管理中心向需升级回退的终端发送回退指令的前提是: 所述业务对应的终端中有部分终端升级失败, 且升级失败的终端中有部分 终端需升级回退。 向终端发送回退指令使之执行升级回退操作的最终目的 是: 业务对应的所有终端升级成功。 终端执行升级回退操作后, 升级管理 中心再次向升级失败的终端发送升级文件, 使之执行升级操作, 直至所有 终端升级成功。  In this embodiment, the upgrade management center sends a rollback command to the terminal that needs to be upgraded and rolled back. The premise that some of the terminals corresponding to the service fail to be upgraded, and some of the terminals that fail to upgrade need to be upgraded and rolled back. The ultimate purpose of sending a fallback command to the terminal to perform the upgrade rollback operation is as follows: All the terminals corresponding to the service are successfully upgraded. After the terminal performs the upgrade rollback operation, the upgrade management center sends the upgrade file to the upgraded terminal again to perform the upgrade operation until all the terminals are successfully upgraded.
其中, 升级失败的终端包括两种: 一种是升级后该终端的文件与升级 前的文件一致, 无需执行升级回退操作; 另一种是升级后该终端的文件与 升级前的文件不一致, 同时也与升级文件不一致, 需要执行升级回退操作。  There are two types of terminals that fail to be upgraded. One is that the files of the terminal are the same as those before the upgrade, and the upgrade and rollback operations are not required. The other is that the files of the terminal are inconsistent with the files before the upgrade. It is also inconsistent with the upgrade file and needs to perform the upgrade rollback operation.
进一步地, 上述获取模块 60, 还用于获取所述至少一个终端之间的升 级顺序;  Further, the obtaining module 60 is further configured to acquire an upgrade sequence between the at least one terminal;
回退管理模块 80, 还用于确定升级失败的至少一个终端和需升级回退 的至少一个终端; The fallback management module 80 is further configured to determine at least one terminal that fails to be upgraded and needs to be upgraded and rolled back. At least one terminal;
升级管理模块 70,还用于在需升级回退的终端执行升级回退操作之后, 重新将升级文件发送给升级失败的终端。  The upgrade management module 70 is further configured to send the upgrade file to the terminal that fails to be upgraded after the upgrade rollback operation is performed on the terminal that needs to be upgraded and rolled back.
本实施例中, 在终端根据升级文件执行升级操作之后, 升级管理中心 根据每个终端的升级结果确定哪个终端升级失败, 哪个升级失败的终端需 要执行升级回退操作。  In this embodiment, after the terminal performs the upgrade operation according to the upgrade file, the upgrade management center determines which terminal upgrade fails according to the upgrade result of each terminal, and which upgrade failed terminal needs to perform the upgrade rollback operation.
升级失败的终端包括两种: 一种是升级后该终端的文件与升级前的文 件一致, 无需执行升级回退操作; 另一种是升级后该终端的文件与升级前 的文件不一致, 同时也与升级文件不一致, 需要执行升级回退操作。  There are two types of terminals that fail to be upgraded. One is that the files of the terminal are the same as those before the upgrade, and the upgrade and rollback operations are not required. The other is that the files of the terminal are inconsistent with the files before the upgrade. Inconsistent with the upgrade file, you need to perform an upgrade rollback operation.
应当理解的是, 以上仅为本发明的优选实施例, 不能因此限制本发明 的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流 程变换, 或直接或间接运用在其他相关的技术领域, 均同理包括在本发明 的专利保护范围内。  It should be understood that the above is only a preferred embodiment of the present invention, and thus the scope of the invention is not limited thereby, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are used directly or indirectly. Other related technical fields are equally included in the scope of patent protection of the present invention.

Claims

权利要求书 Claim
1、 一种终端升级的方法, 其特征在于, 包括步骤:  A method for upgrading a terminal, comprising the steps of:
升级管理中心获取业务与至少一个终端之间的对应关系;  The upgrade management center obtains a correspondence between the service and at least one terminal;
升级管理中心根据所述对应关系向需升级的所述终端发送升级文件; 所述终端根据所述升级文件执行升级操作。  The upgrade management center sends an upgrade file to the terminal that needs to be upgraded according to the corresponding relationship; the terminal performs an upgrade operation according to the upgrade file.
2、 根据权利要求 1所述的方法, 其特征在于, 所述升级管理中心获取 业务与至少一个终端之间的对应关系, 釆用以下方式:  The method according to claim 1, wherein the upgrade management center obtains a correspondence between the service and the at least one terminal, and uses the following method:
所述升级管理中心分析所述业务的业务逻辑, 获取所述业务与所述至 少一个终端之间的对应关系; 或  The upgrade management center analyzes the service logic of the service, and obtains a correspondence between the service and the at least one terminal; or
所述升级管理中心根据预先配置, 获取所述业务与所述至少一个终端 之间的对应关系。  The upgrade management center acquires a correspondence between the service and the at least one terminal according to a pre-configuration.
3、 根据权利要求 2所述的方法, 其特征在于, 所述升级管理中心分析 所述业务逻辑或根据所述预先配置, 还获取所述至少一个终端之间的升级 顺序;  The method according to claim 2, wherein the upgrade management center analyzes the service logic or acquires an upgrade sequence between the at least one terminal according to the pre-configuration;
所述升级管理中心根据所述升级顺序向所述至少一个终端逐个发送升 级文件。  And the upgrade management center sends the upgrade file one by one to the at least one terminal according to the upgrade sequence.
4、 根据权利要求 3所述的方法, 其特征在于, 在所述终端根据所述升 级文件执行升级操作之后, 还包括:  The method according to claim 3, further comprising: after the terminal performs an upgrade operation according to the upgrade file,
所述升级管理中心确定升级失败的至少一个终端和需升级回退的至少 一个终端, 并向需升级回退的终端发送回退指令;  The upgrade management center determines at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and rolled back, and sends a back-off instruction to the terminal that needs to be upgraded and rolled back;
所述需升级回退的终端根据所述回退指令执行升级回退操作; 所述升级管理中心重新将所述升级文件发送给升级失败的终端。  The terminal that needs to be upgraded and rolled back performs the upgrade and fallback operation according to the back-off instruction; the upgrade management center re-sends the upgrade file to the terminal that fails to be upgraded.
5、 根据权利要求 4所述的方法, 其特征在于,  5. The method of claim 4, wherein
升级管理中心分析业务逻辑或根据预先配置, 获取所述需升级回退的 至少一个终端的升级回退顺序; 所述升级管理中心根据所述升级回退顺序向所述需升级回退的至少一 个终端逐个发送升级回退指令。 The upgrade management center analyzes the service logic or obtains the upgrade rollback sequence of the at least one terminal that needs to be upgraded and rolled back according to the pre-configuration; The upgrade management center sends an upgrade rollback instruction one by one to the at least one terminal that needs to be upgraded and rolled back according to the upgrade fallback order.
6、 一种终端升级回退的方法, 其特征在于, 包括步骤:  6. A method for upgrading a terminal to roll back, characterized in that the method comprises the following steps:
升级管理中心获取业务与至少一个终端之间的对应关系;  The upgrade management center obtains a correspondence between the service and at least one terminal;
升级管理中心根据所述对应关系向需升级回退的所述终端发送回退指 令;  The upgrade management center sends a fallback instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship;
所述终端根据所述回退指令执行升级回退操作。  The terminal performs an upgrade rollback operation according to the backoff instruction.
7、 根据权利要求 6所述的方法, 其特征在于, 所述升级管理中心获取 业务与至少一个终端之间的对应关系, 釆用以下方式:  The method according to claim 6, wherein the upgrade management center acquires a correspondence between the service and the at least one terminal, and uses the following method:
所述升级管理中心分析所述业务的业务逻辑, 获取所述业务与所述至 少一个终端之间的对应关系; 或  The upgrade management center analyzes the service logic of the service, and obtains a correspondence between the service and the at least one terminal; or
所述升级管理中心根据预先配置, 获取所述业务与所述至少一个终端 之间的对应关系。  The upgrade management center acquires a correspondence between the service and the at least one terminal according to a pre-configuration.
8、 根据权利要求 6所述的方法, 其特征在于, 在所述升级管理中心根 据所述对应关系向需升级回退的所述终端发送回退指令之前, 还包括: 所述升级管理中心根据所述对应关系判断所述业务对应的所有终端是 否都升级成功, 如果判断为否, 则向所述终端发送回退指令。  The method according to claim 6, wherein before the upgrade management center sends a back-off instruction to the terminal that needs to be upgraded and rolled back according to the corresponding relationship, the method further includes: The corresponding relationship determines whether all the terminals corresponding to the service are successfully upgraded. If the determination is no, the device sends a back-off instruction to the terminal.
9、 根据权利要求 6至 8任一项所述的方法, 其特征在于,  9. A method according to any one of claims 6 to 8, characterized in that
在所述终端执行升级操作之前, 所述升级管理中心判断终端能力不足 以备份升级前运行的文件时, 获取所述文件并存储;  Before the terminal performs the upgrade operation, the upgrade management center determines that the terminal capability is insufficient to backup the file that is run before the upgrade, and acquires the file and stores the file;
所述终端根据所述回退指令执行升级回退操作, 具体为:  The terminal performs an upgrade rollback operation according to the backoff instruction, specifically:
所述终端获取所述文件, 运行所述文件执行升级回退操作。  The terminal acquires the file, and runs the file to perform an upgrade rollback operation.
10、 一种升级管理中心, 其特征在于, 包括:  10. An upgrade management center, which is characterized by comprising:
获取模块, 用于获取业务与至少一个终端之间的对应关系;  An obtaining module, configured to acquire a correspondence between a service and at least one terminal;
升级管理模块, 用于根据所述对应关系向需升级的所述终端发送升级 文件, 供所述终端执行升级操作。 An upgrade management module, configured to send an upgrade to the terminal that needs to be upgraded according to the corresponding relationship a file for the terminal to perform an upgrade operation.
11、 根据权利要求 10所述的升级管理中心, 其特征在于,  11. The upgrade management center according to claim 10, wherein:
所述获取模块至少包括以下单元:  The obtaining module includes at least the following units:
分析单元, 用于分析所述业务的业务逻辑, 获取所述业务与所述至少 一个终端之间的对应关系; 或  An analysis unit, configured to analyze business logic of the service, and obtain a correspondence between the service and the at least one terminal; or
配置单元, 用于配置所述业务与所述至少一个终端之间的对应关系。 And a configuration unit, configured to configure a correspondence between the service and the at least one terminal.
12、 根据权利要求 10或 11所述的升级管理中心, 其特征在于, 还包 括: The upgrade management center according to claim 10 or 11, further comprising:
回退管理模块, 用于根据所述对应关系向需升级回退的所述终端发送 回退指令, 供所述终端执行升级回退操作。  The fallback management module is configured to send a backoff command to the terminal that needs to be upgraded and rolled back according to the corresponding relationship, where the terminal performs an upgrade rollback operation.
13、 根据权利要求 12所述的升级管理中心, 其特征在于, 还包括: 判断模块, 用于根据所述对应关系判断所述业务对应的所有终端是否 都升级成功, 如果判断为否, 则通知回退管理模块向需升级回退的所述终 端发送回退指令。  The upgrade management center according to claim 12, further comprising: a determining module, configured to determine, according to the correspondence, whether all terminals corresponding to the service are upgraded successfully, and if the determination is negative, notify The fallback management module sends a backoff command to the terminal that needs to be upgraded and rolled back.
14、 根据权利要求 12所述的升级管理中心, 其特征在于,  14. The upgrade management center according to claim 12, wherein:
所述获取模块, 还用于获取所述至少一个终端之间的升级顺序; 所述回退管理模块, 还用于确定升级失败的至少一个终端和需升级回 退的至少一个终端;  The obtaining module is further configured to obtain an upgrade sequence between the at least one terminal; the fallback management module is further configured to determine at least one terminal that fails to be upgraded and at least one terminal that needs to be upgraded and retired;
所述升级管理模块, 还用于在需升级回退的终端执行升级回退操作之 后, 重新将所述升级文件发送给升级失败的终端。  The upgrade management module is further configured to: after the upgrade rollback operation is performed on the terminal that needs to be upgraded and rolled back, send the upgrade file to the terminal that fails to be upgraded.
PCT/CN2010/079826 2010-08-03 2010-12-15 Terminal upgrade method, terminal upgrade downgrade method and upgrade management center WO2012016409A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010243986.7A CN101916200B (en) 2010-08-03 2010-08-03 The method of terminal staging, the method for backoff of terminal upgrading and upgrading management center
CN201010243986.7 2010-08-03

Publications (1)

Publication Number Publication Date
WO2012016409A1 true WO2012016409A1 (en) 2012-02-09

Family

ID=43323717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079826 WO2012016409A1 (en) 2010-08-03 2010-12-15 Terminal upgrade method, terminal upgrade downgrade method and upgrade management center

Country Status (2)

Country Link
CN (1) CN101916200B (en)
WO (1) WO2012016409A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811322A (en) * 2013-12-17 2015-07-29 深圳市伊爱高新技术开发有限公司 Method for remotely upgrading GPS vehicle-mounted terminals in batch mode
CN104239109A (en) * 2014-09-30 2014-12-24 上海瑞猫自动化控制技术有限公司 Method for on-line management of embedded system firmware
CN105511898A (en) * 2014-10-14 2016-04-20 中兴通讯股份有限公司 Method, device and equipment for upgrade management of cloud terminal
CN105677375A (en) * 2014-11-18 2016-06-15 中兴通讯股份有限公司 Update control device, terminal, terminal update method and system
US11726764B2 (en) 2020-11-11 2023-08-15 Nutanix, Inc. Upgrade systems for service domains
US11665221B2 (en) 2020-11-13 2023-05-30 Nutanix, Inc. Common services model for multi-cloud platform
US11736585B2 (en) 2021-02-26 2023-08-22 Nutanix, Inc. Generic proxy endpoints using protocol tunnels including life cycle management and examples for distributed cloud native services and applications
CN114443105B (en) * 2022-04-11 2022-08-02 深圳市帝迈生物技术有限公司 Method, apparatus, medium, and program product for upgrading pipeline system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6966058B2 (en) * 2002-06-12 2005-11-15 Agami Systems, Inc. System and method for managing software upgrades in a distributed computing system
CN101442688A (en) * 2008-12-31 2009-05-27 中兴通讯股份有限公司 Method and system for updating intelligent network platform, controller and intelligent network platform equipment
CN101635643A (en) * 2009-08-31 2010-01-27 中国联合网络通信集团有限公司 Method and system for changing terminal service and network management platform

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442901C (en) * 2005-10-25 2008-12-10 华为技术有限公司 Method and apparatus for monitoring and updating software in apparatus management
CN100505640C (en) * 2006-01-26 2009-06-24 腾讯科技(深圳)有限公司 A method and system for software upgrade
CN101136770B (en) * 2006-10-13 2010-12-29 中兴通讯股份有限公司 Automatically upgrading method and apparatus for telecom multi-branch network management system
CN101593119B (en) * 2009-05-26 2013-07-03 中兴通讯股份有限公司 Method and device for firmware over-the-air of exclusive flash memory combined equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6966058B2 (en) * 2002-06-12 2005-11-15 Agami Systems, Inc. System and method for managing software upgrades in a distributed computing system
CN101442688A (en) * 2008-12-31 2009-05-27 中兴通讯股份有限公司 Method and system for updating intelligent network platform, controller and intelligent network platform equipment
CN101635643A (en) * 2009-08-31 2010-01-27 中国联合网络通信集团有限公司 Method and system for changing terminal service and network management platform

Also Published As

Publication number Publication date
CN101916200B (en) 2015-08-26
CN101916200A (en) 2010-12-15

Similar Documents

Publication Publication Date Title
WO2012016409A1 (en) Terminal upgrade method, terminal upgrade downgrade method and upgrade management center
CN105791387B (en) Vehicle control updating method and system
CN100391291C (en) Data backing-up and recovering method and system
WO2020107905A1 (en) Monitoring and managing methods for device, and terminal device
US9471300B2 (en) Wireless firmware upgrades to an alarm security panel
RU2628429C2 (en) Vehicle software update system
CN102665123B (en) A kind of TV control method, handheld device, TV and TV control system
WO2014180388A1 (en) Differential upgrade package production method and device, system differential upgrade method and device
CN107357571B (en) Maintenance method and system for equipment component program
WO2016090846A1 (en) Network version upgrade method and apparatus
WO2010135897A1 (en) Firmware over the air upgrade method and apparatus for exclusive flash compound device
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN104765621A (en) Method and system for deploying program on cluster node
CN112650520A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN102223380A (en) Client terminal automatic updating frame based on Webservice and application thereof
CN110324193A (en) A kind of terminal upgrade management method and device
CN109614131A (en) A kind of broadcasting equipment upgrading control system
CN103399795A (en) Address book synchronizing method and device
WO2014169589A1 (en) Intelligent terminal synchronous operation method and device
CN110045969B (en) Application program installation method, server, system, device and storage medium
WO2020019816A1 (en) Engineering information collection method and apparatus, and intelligent terminal and cloud server
JP2007288579A (en) Base station log collection apparatus, collection method of log of base station, and computer program
CN111752577A (en) System version upgrading method and device
CN103096137A (en) Smart television application program remote boot method and system
CN101515251A (en) Board-level platform debugging method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10855547

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10855547

Country of ref document: EP

Kind code of ref document: A1