WO2016026329A1 - Terminal upgrade method and apparatus - Google Patents

Terminal upgrade method and apparatus Download PDF

Info

Publication number
WO2016026329A1
WO2016026329A1 PCT/CN2015/078615 CN2015078615W WO2016026329A1 WO 2016026329 A1 WO2016026329 A1 WO 2016026329A1 CN 2015078615 W CN2015078615 W CN 2015078615W WO 2016026329 A1 WO2016026329 A1 WO 2016026329A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
terminal
identifier
server
package
Prior art date
Application number
PCT/CN2015/078615
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 WO2016026329A1 publication Critical patent/WO2016026329A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of device upgrade management, and in particular to a method and device for upgrading a terminal.
  • OMA Open Mobile Alliance
  • DM Device Management
  • FOTA Firmware Over-The-Air
  • a standard set of FUMO (Firmware Upgrade) processes is provided for the FOTA DM protocol.
  • the server assigns the upgrade package download address to the Uniform Resource Locator (referred to as Uniform Resource Locator in the terminal x/Pkg file (that is, the installation package configuration file) by the Replace command. URL) node, then the server sends an Exec asynchronous execution command, the terminal downloads the upgrade package, and performs the upgrade. After the upgrade is completed, the upgrade result is reported.
  • Uniform Resource Locator Uniform Resource Locator in the terminal x/Pkg file (that is, the installation package configuration file) by the Replace command. URL) node
  • This standard process has the following drawbacks: For the same model terminal, either an optional upgrade (the user can confirm the upgrade or cancel the upgrade) or an enforcement (direct) upgrade is provided during the upgrade. Obviously, the standard process cannot meet the requirements in practical applications. For example, if a software version does not have a fatal bug, an optional upgrade is performed. If the software version has a fatal bug, a forced upgrade is performed.
  • the main purpose of the embodiments of the present invention is to provide a method and an apparatus for upgrading a terminal, so as to solve the problem that the upgrade type of the software upgrade is uncontrollable.
  • a method for upgrading a terminal including: receiving, by the terminal, an upgrade identifier sent by a server, where the upgrade identifier is used to indicate that an upgrade type of the current upgrade package is optional. Upgrade or force upgrade; the terminal upgrades according to the upgrade type indicated by the upgrade identifier.
  • the terminal receives the upgrade identifier sent by the server, and the method further includes: the terminal receiving the replacement replace command sent by the server, where the replace command carries the upgrade identifier, and the replace command The downloading address of the current upgrade package is sent; the terminal acquires the upgrade identifier from the replace command.
  • the method before the terminal receives the upgrade identifier sent by the server, the method further includes: the terminal defines a management object that can be used for the forced upgrade in the management tree.
  • the terminal performs the upgrade according to the upgrade type indicated by the upgrade identifier, and includes at least one of the following: when the upgrade identifier indicates an optional upgrade, the terminal prompts the user to select an upgrade or The selection interface is not upgraded; the selection instruction of the user is received on the selection interface; and the upgrade is performed according to the selection instruction; when the upgrade identifier indicates a forced upgrade, the terminal directly downloads the current upgrade package and performs the upgrade.
  • a method for upgrading a terminal including: obtaining, by the server, an upgrade identifier of a current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
  • the server sends the upgrade identifier to the terminal.
  • the server sends the upgrade identifier to the terminal, and the server sends a replace command to the terminal, where the replace command carries the upgrade identifier and The download address of the current upgrade package.
  • the method further includes: the terminal defines a management object that can be used for the forced upgrade in the management tree.
  • an apparatus for upgrading a terminal which is applied to a terminal, and includes: a receiving module, configured to receive an upgrade identifier delivered by a server, where the upgrade identifier is used to indicate an upgrade of the current upgrade package.
  • the type is optional upgrade or forced upgrade; the upgrade module is set to upgrade according to the upgrade type indicated by the upgrade ID.
  • the apparatus further includes: a configuration module, configured to define a management object that can be used for the forced upgrade in the management tree.
  • an apparatus for upgrading a terminal which is applied to a server, comprising: an obtaining module, configured to obtain an upgrade identifier of a current upgrade package, wherein the upgrade identifier is used to indicate an upgrade of the current upgrade package.
  • the type is an optional upgrade or a forced upgrade; the sending module is configured to deliver the upgrade identifier to the terminal.
  • the method for upgrading the upgrade type indicated by the upgrade identifier sent by the server solves the problem that the upgrade type of the software upgrade in the related technology is uncontrollable, and thus implements the upgrade type of the terminal on the server. control.
  • FIG. 1 is a flow chart of FOTA in a DM protocol according to the related art
  • FIG. 2 is a flowchart of a method for upgrading a terminal according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of an apparatus for upgrading a terminal according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing another structure of an apparatus for upgrading a terminal according to an embodiment of the present invention.
  • FIG. 5 is another flowchart of a method for upgrading a terminal according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an upgrading apparatus for a terminal for implementing the method shown in FIG. 5;
  • FIG. 7 is a flow chart of a method for upgrading a terminal in accordance with a preferred embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for upgrading a terminal according to an embodiment of the present invention. As shown in Figure 2, the method includes:
  • step S202 the terminal receives the upgrade identifier sent by the server, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
  • Step S204 The terminal performs the upgrade according to the upgrade type indicated by the upgrade identifier.
  • the server can control the terminal upgrade type.
  • the step S202 is implemented in various manners, for example, the above-mentioned upgrade identifier can be received by using a dedicated message or signaling.
  • the terminal can also be implemented by: receiving the replacement replace from the server.
  • the replacement command carries the upgrade identifier, and the replace command is used to deliver the download address of the current upgrade package.
  • the terminal obtains the upgrade identifier from the replace command.
  • the terminal In order to support the server to control the upgrade type of the terminal, before receiving the upgrade identifier sent by the server, the terminal needs to define a management object that can be used for the forced upgrade in the management tree.
  • step S204 may be at least one of the following:
  • the terminal prompts the user to select a selection interface for upgrading or not upgrading; receiving a selection instruction of the user on the selection interface; and performing an upgrade according to the above selection instruction;
  • an apparatus for upgrading a terminal is further provided, and is applied to the terminal.
  • the device includes:
  • the receiving module 30 is configured to receive an upgrade identifier sent by the server, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
  • the upgrade module 32 is configured to be upgraded according to the upgrade type indicated by the above upgrade identifier.
  • the upgrading apparatus of the foregoing terminal may further include: a configuration module 34 configured to define a management object that can be used for the forced upgrade in the management tree.
  • the server side is further improved.
  • another method for upgrading the terminal is provided in the embodiment. As shown in FIG. 5, the method includes:
  • Step S502 The server obtains an upgrade identifier of the current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
  • Step S504 the server sends the upgrade identifier to the terminal.
  • the step S504 is implemented in various manners, for example, the foregoing upgrade identifier may be sent by using a dedicated message.
  • the server may send the replacement replace command to the terminal, where the replace command carries the foregoing The upgrade ID and the download address of the current upgrade package.
  • the method for upgrading the terminal provided in this embodiment further includes: the terminal defines a management object that can be used for the forced upgrade in the management tree.
  • an apparatus for upgrading the terminal is further provided to the server for implementing the method shown in FIG. 5.
  • the apparatus includes:
  • the obtaining module 60 is configured to obtain an upgrade identifier of the current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
  • the sending module 62 is connected to the obtaining module 60, and configured to deliver the upgrade identifier to the terminal.
  • each of the above modules may be implemented by software or hardware.
  • the following forms may be implemented, but are not limited thereto: each of the above modules is located in the same processor, or each of the above modules is located Different processors.
  • Step 1 The DM terminal defines a management object that can be used for forced upgrade, and adds a corresponding definition./FOTA/Mandatory in the management tree (DDF), and sets an initial value (such as an initial value) 0).
  • Step 2 The server decides whether to issue the upgrade package address and whether to issue the mandatory upgrade ID.
  • Step 3. The terminal determines whether it is a forced upgrade or an optional upgrade according to the value of the forced upgrade node./FOTA/Mandatory (such as 0 for optional upgrade and 1 for forced upgrade).
  • Step 0 more than the original process
  • step 4 the server not only has to deliver the upgrade package address, but also issues the value of the upgrade option.
  • step 9 the terminal determines whether it is a forced upgrade or an optional upgrade according to the upgrade option value sent by the server.
  • Step 0 Add the corresponding definition ./FOTA/Mandatory node in the terminal management tree (can be set at the factory when the terminal is shipped);
  • Step 1 The terminal initiates a connection to the OMA DM Server request.
  • Step 2 The server initiates a Get command request for obtaining the terminal software version
  • Step 3 The terminal reports the current software version information of the terminal to the server.
  • Step 4 The server matches the upgrade package according to the version of the terminal software. After the upgrade package is matched, the upgrade package download address and the upgrade option node value are sent through the Replace command.
  • Upgrade option value 0 is optional upgrade 1 is mandatory upgrade, which can be defined separately in actual application.
  • Step 5 The terminal reports the result of the Replace command execution.
  • Step 6 The server sends an asynchronous execution command Exec
  • Step 7 The terminal reports the execution result of the Exec command.
  • Step 8 The server ends the session
  • Step 9 The terminal determines whether it is an optional upgrade or a mandatory upgrade according to the upgrade option identifier value. If the upgrade is optional, the terminal pops up a dialog box containing the “OK” and “Cancel” buttons for the user to select. If the upgrade is mandatory, the terminal directly Download the upgrade package;
  • the upgrade is performed after the end user's current task is completed;
  • Step 10 The terminal performs an upgrade after downloading the upgrade package.
  • Step 11 The terminal reports the upgrade result.
  • Step 12 The server ends the session.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing technical solution provided by the embodiment of the present invention solves the problem that the upgrade type of the software upgrade in the related technology is uncontrollable according to the technical means for upgrading the upgrade type indicated by the upgrade identifier sent by the server, thereby implementing the problem in the server. Control of the terminal upgrade type.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A terminal upgrade method and apparatus. The method comprises: a terminal receives an upgrade identifier delivered by a server, the upgrade identifier being used for indicating that an upgrade type of a current upgrade package is optional upgrade or mandatory upgrade (S202); and the terminal performs upgrade according to the upgrade type indicated by the upgrade identifier (S204). By means of the technical solution, the problem such as an uncontrollable upgrade type of software upgrade in the related art is solved, so as to realize control at the server over the upgrade type of the terminal.

Description

终端的升级方法及装置Terminal upgrade method and device 技术领域Technical field
本发明涉及设备升级管理领域,具体而言,涉及一种终端的升级方法及装置。The present invention relates to the field of device upgrade management, and in particular to a method and device for upgrading a terminal.
背景技术Background technique
开放移动联盟(Open Mobile Alliance,简称为OMA)主要任务是收集市场需求并制定规范,清除互操作性发展的障碍,并加速各种全新的增强型移动信息、通信和娱乐服务及应用的开发和应用。设备管理(Device Management,简称为DM)是OMA组织中的一个小组,主要提供对分布、移动设备管理的机制,从而优化用户的经验数据,并减少运营商的成本。主要支持的业务功能包括:固件升级,诊断,安全管理,软件补丁修复和功能升级,终端参数收集以及终端参数配置等。The Open Mobile Alliance (OMA) mission is to collect market requirements and develop specifications, remove barriers to interoperability development, and accelerate the development of new and enhanced mobile information, communication and entertainment services and applications. application. Device Management (DM) is a group in the OMA organization that provides mechanisms for distribution and mobile device management to optimize user experience data and reduce operator costs. The main supported business functions include firmware upgrade, diagnosis, security management, software patch repair and function upgrade, terminal parameter collection and terminal parameter configuration.
随着终端设备日益广泛流行,其竞争也日趋激烈,各终端厂商都把基于DM协议应用作为提升其产品用户满意度,降低运营成本的一种有效手段。其中空中固件升级(Firmware Over-The-Air,简称为FOTA)就是重要一项应用。As terminal devices become more and more popular, their competition is becoming increasingly fierce. Terminal manufacturers have adopted DM-based applications as an effective means to improve user satisfaction and reduce operating costs. Among them, Firmware Over-The-Air (FOTA) is an important application.
针对FOTA DM协议中提供一套标准FUMO(固件升级)流程。如图1所示,在标准流程中,服务器通过替换(Replace)命令将升级包下载地址赋值给终端x/Pkg文件(即安装包配置文件)中的统一资源定位符(Uniform Resource Locator,简称为URL)结点,然后服务器端下发Exec异步执行命令,终端去下载升级包,并执行升级,升级完成后上报升级结果。A standard set of FUMO (Firmware Upgrade) processes is provided for the FOTA DM protocol. As shown in Figure 1, in the standard process, the server assigns the upgrade package download address to the Uniform Resource Locator (referred to as Uniform Resource Locator in the terminal x/Pkg file (that is, the installation package configuration file) by the Replace command. URL) node, then the server sends an Exec asynchronous execution command, the terminal downloads the upgrade package, and performs the upgrade. After the upgrade is completed, the upgrade result is reported.
此标准流程存在以下缺陷,对同一型号终端来说,在执行升级过程中要么提供用可选升级(用户可以确认升级,也可以取消升级),要么强制(直接)执行升级。显然,标准流程在实际应用中不能满足需求,如对某一型终端来说,如果软件版本不存在致命Bug,则执行可选升级;如果软件版本存在致命缺陷(Bug),则执行强制升级。This standard process has the following drawbacks: For the same model terminal, either an optional upgrade (the user can confirm the upgrade or cancel the upgrade) or an enforcement (direct) upgrade is provided during the upgrade. Obviously, the standard process cannot meet the requirements in practical applications. For example, if a software version does not have a fatal bug, an optional upgrade is performed. If the software version has a fatal bug, a forced upgrade is performed.
针对现有技术中软件升级的升级类型不可控等问题,目前尚未提出有效的解决方案。In view of the uncontrollable types of upgrades of software upgrades in the prior art, no effective solution has been proposed yet.
发明内容Summary of the invention
本发明实施例的主要目的在于提供一种终端的升级方法及装置,以解决软件升级的升级类型不可控等问题。 The main purpose of the embodiments of the present invention is to provide a method and an apparatus for upgrading a terminal, so as to solve the problem that the upgrade type of the software upgrade is uncontrollable.
为了实现上述目的,根据本发明的一个实施例,提供了一种终端的升级方法,包括:终端接收服务器下发的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;所述终端按照所述升级标识所指示的升级类型进行升级。In order to achieve the above object, according to an embodiment of the present invention, a method for upgrading a terminal is provided, including: receiving, by the terminal, an upgrade identifier sent by a server, where the upgrade identifier is used to indicate that an upgrade type of the current upgrade package is optional. Upgrade or force upgrade; the terminal upgrades according to the upgrade type indicated by the upgrade identifier.
在本发明实施例中,终端接收服务器下发的升级标识,还包括:所述终端接收来自所述服务器下发的替换replace命令,所述replace命令中携带有所述升级标识,所述replace命令用于下发当前升级包的下载地址;所述终端从所述replace命令中获取所述升级标识。In the embodiment of the present invention, the terminal receives the upgrade identifier sent by the server, and the method further includes: the terminal receiving the replacement replace command sent by the server, where the replace command carries the upgrade identifier, and the replace command The downloading address of the current upgrade package is sent; the terminal acquires the upgrade identifier from the replace command.
在本发明实施例中,终端接收服务器下发的升级标识之前,所述方法还包括:所述终端在管理树中定义可用于强制升级的管理对象。In the embodiment of the present invention, before the terminal receives the upgrade identifier sent by the server, the method further includes: the terminal defines a management object that can be used for the forced upgrade in the management tree.
在本发明实施例中,所述终端按照所述升级标识所指示的升级类型进行升级,包括以下至少之一:在所述升级标识指示为可选升级时,所述终端向用户提示选择升级或不升级的选择界面;在所述选择界面上接收用户的选择指令;根据所述选择指令进行升级;在所述升级标识指示为强制升级时,所述终端直接下载当前的升级包,进行升级。In the embodiment of the present invention, the terminal performs the upgrade according to the upgrade type indicated by the upgrade identifier, and includes at least one of the following: when the upgrade identifier indicates an optional upgrade, the terminal prompts the user to select an upgrade or The selection interface is not upgraded; the selection instruction of the user is received on the selection interface; and the upgrade is performed according to the selection instruction; when the upgrade identifier indicates a forced upgrade, the terminal directly downloads the current upgrade package and performs the upgrade.
根据本发明的另一个实施例,提供了一种终端的升级方法,包括:服务器获取当前升级包的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;所述服务器向所述终端下发所述升级标识。According to another embodiment of the present invention, a method for upgrading a terminal is provided, including: obtaining, by the server, an upgrade identifier of a current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade. The server sends the upgrade identifier to the terminal.
在本发明实施例中,所述服务器向所述终端下发所述升级标识,包括:所述服务器向所述终端下发替换(replace)命令,所述replace命令中携带有所述升级标识和当前升级包的下载地址。In the embodiment of the present invention, the server sends the upgrade identifier to the terminal, and the server sends a replace command to the terminal, where the replace command carries the upgrade identifier and The download address of the current upgrade package.
在本发明实施例中,所述方法还包括:所述终端在管理树中定义可用于强制升级的管理对象。In the embodiment of the present invention, the method further includes: the terminal defines a management object that can be used for the forced upgrade in the management tree.
根据本发明的又一个实施例,提供了一种终端的升级装置,应用于终端,包括:接收模块,设置为接收服务器下发的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;升级模块,设置为按照所述升级标识所指示的升级类型进行升级。According to still another embodiment of the present invention, an apparatus for upgrading a terminal is provided, which is applied to a terminal, and includes: a receiving module, configured to receive an upgrade identifier delivered by a server, where the upgrade identifier is used to indicate an upgrade of the current upgrade package. The type is optional upgrade or forced upgrade; the upgrade module is set to upgrade according to the upgrade type indicated by the upgrade ID.
在本发明实施例中,上述装置还包括:配置模块,设置为在管理树中定义可用于强制升级的管理对象。 In the embodiment of the present invention, the apparatus further includes: a configuration module, configured to define a management object that can be used for the forced upgrade in the management tree.
根据本发明的再一个实施例,提供了一种终端的升级装置,应用于服务器,包括:获取模块,设置为获取当前升级包的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;发送模块,设置为向所述终端下发所述升级标识。According to still another embodiment of the present invention, there is provided an apparatus for upgrading a terminal, which is applied to a server, comprising: an obtaining module, configured to obtain an upgrade identifier of a current upgrade package, wherein the upgrade identifier is used to indicate an upgrade of the current upgrade package. The type is an optional upgrade or a forced upgrade; the sending module is configured to deliver the upgrade identifier to the terminal.
通过本发明实施例,采用终端根据服务器下发的升级标识所指示的升级类型进行升级的技术手段,解决了相关技术中软件升级的升级类型不可控等问题,从而在服务器实现了对终端升级类型的控制。The method for upgrading the upgrade type indicated by the upgrade identifier sent by the server according to the embodiment of the present invention solves the problem that the upgrade type of the software upgrade in the related technology is uncontrollable, and thus implements the upgrade type of the terminal on the server. control.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为根据相关技术的DM协议中FOTA的流程图;1 is a flow chart of FOTA in a DM protocol according to the related art;
图2为根据本发明实施例的终端的升级方法的流程图;2 is a flowchart of a method for upgrading a terminal according to an embodiment of the present invention;
图3为根据本发明实施例的终端的升级装置的结构框图;3 is a structural block diagram of an apparatus for upgrading a terminal according to an embodiment of the present invention;
图4为根据本发明实施例的终端的升级装置的另一结构框图;4 is a block diagram showing another structure of an apparatus for upgrading a terminal according to an embodiment of the present invention;
图5为根据本发明实施例的终端的升级方法的另一流程图;FIG. 5 is another flowchart of a method for upgrading a terminal according to an embodiment of the present invention; FIG.
图6为用于实现图5所示方法的终端的升级装置的结构框图;6 is a structural block diagram of an upgrading apparatus for a terminal for implementing the method shown in FIG. 5;
图7为根据本发明优选实施例的终端的升级方法的流程图。7 is a flow chart of a method for upgrading a terminal in accordance with a preferred embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
图2为根据本发明实施例的终端的升级方法的流程图。如图2所示,该方法包括:FIG. 2 is a flowchart of a method for upgrading a terminal according to an embodiment of the present invention. As shown in Figure 2, the method includes:
步骤S202,终端接收服务器下发的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;In step S202, the terminal receives the upgrade identifier sent by the server, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
步骤S204,终端按照上述升级标识所指示的升级类型进行升级。 Step S204: The terminal performs the upgrade according to the upgrade type indicated by the upgrade identifier.
通过上述处理步骤,由于可以根据服务器下发的升级标识所指示的升级类型进行升级,因此,可以实现服务器对终端升级类型的控制。Through the above processing steps, since the upgrade can be performed according to the upgrade type indicated by the upgrade identifier delivered by the server, the server can control the terminal upgrade type.
步骤S202的实现方式有多种,例如可以通过专用消息或信令接收上述升级标识,在本实施例的一个优选实施方式中,还可以通过以下方式实现:终端接收来自上述服务器下发的替换replace命令,上述replace命令中携带有上述升级标识,上述replace命令用于下发当前升级包的下载地址;上述终端从上述replace命令中获取上述升级标识。The step S202 is implemented in various manners, for example, the above-mentioned upgrade identifier can be received by using a dedicated message or signaling. In a preferred embodiment of the embodiment, the terminal can also be implemented by: receiving the replacement replace from the server. The replacement command carries the upgrade identifier, and the replace command is used to deliver the download address of the current upgrade package. The terminal obtains the upgrade identifier from the replace command.
为了支持服务器对终端的升级类型的控制,在接收服务器下发的升级标识之前,终端在管理树中需要定义可用于强制升级的管理对象。In order to support the server to control the upgrade type of the terminal, before receiving the upgrade identifier sent by the server, the terminal needs to define a management object that can be used for the forced upgrade in the management tree.
步骤S204的表现形式可以为以下至少之一:The representation of step S204 may be at least one of the following:
(1)在上述升级标识指示为可选升级时,终端向用户提示选择升级或不升级的选择界面;在上述选择界面上接收用户的选择指令;根据上述选择指令进行升级;(1) When the upgrade indicator indicates that the upgrade is an optional upgrade, the terminal prompts the user to select a selection interface for upgrading or not upgrading; receiving a selection instruction of the user on the selection interface; and performing an upgrade according to the above selection instruction;
(2)在上述升级标识指示为强制升级时,上述终端直接下载当前的升级包,进行升级。(2) When the above upgrade flag indicates a mandatory upgrade, the terminal directly downloads the current upgrade package and performs the upgrade.
在本实施例中,还提供一种终端的升级装置,应用于终端,如图3所示,该装置包括:In this embodiment, an apparatus for upgrading a terminal is further provided, and is applied to the terminal. As shown in FIG. 3, the device includes:
接收模块30,设置为接收服务器下发的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;The receiving module 30 is configured to receive an upgrade identifier sent by the server, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
升级模块32,设置为按照上述升级标识所指示的升级类型进行升级。The upgrade module 32 is configured to be upgraded according to the upgrade type indicated by the above upgrade identifier.
在一个优选实施例中,如图4所示,上述终端的升级装置还可以包括:配置模块34,设置为在管理树中定义可用于强制升级的管理对象。In a preferred embodiment, as shown in FIG. 4, the upgrading apparatus of the foregoing terminal may further include: a configuration module 34 configured to define a management object that can be used for the forced upgrade in the management tree.
在本实施例中,还对服务器侧进行了改进,具体地,在本实施例中还提供另外一种终端的升级方法,如图5所示,该方法包括:In this embodiment, the server side is further improved. Specifically, another method for upgrading the terminal is provided in the embodiment. As shown in FIG. 5, the method includes:
步骤S502,服务器获取当前升级包的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;Step S502: The server obtains an upgrade identifier of the current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
步骤S504,服务器向上述终端下发上述升级标识。 Step S504, the server sends the upgrade identifier to the terminal.
步骤S504的实现方式有多种,例如可以通过专用消息下发上述升级标识,在一个优选实施例中,可以通过以下方式实现:服务器向上述终端下发替换replace命令,上述replace命令中携带有上述升级标识和当前升级包的下载地址。The step S504 is implemented in various manners, for example, the foregoing upgrade identifier may be sent by using a dedicated message. In a preferred embodiment, the server may send the replacement replace command to the terminal, where the replace command carries the foregoing The upgrade ID and the download address of the current upgrade package.
本实施例中提供的终端的升级方法还包括:终端在管理树中定义可用于强制升级的管理对象。The method for upgrading the terminal provided in this embodiment further includes: the terminal defines a management object that can be used for the forced upgrade in the management tree.
在本实施例中,还提供一种终端的升级装置,应用于服务器,用于实现图5所示方法,如图6所示,该装置包括:In this embodiment, an apparatus for upgrading the terminal is further provided to the server for implementing the method shown in FIG. 5. As shown in FIG. 6, the apparatus includes:
获取模块60,设置为获取当前升级包的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;The obtaining module 60 is configured to obtain an upgrade identifier of the current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
发送模块62,连接至获取模块60,设置为向上述终端下发上述升级标识The sending module 62 is connected to the obtaining module 60, and configured to deliver the upgrade identifier to the terminal.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下形式实现,但不限于此:上述各个模块均位于同一处理器中,或者,上述各个模块分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the following forms may be implemented, but are not limited thereto: each of the above modules is located in the same processor, or each of the above modules is located Different processors.
为了更好地理解上述实施例,以下结合优选实施例详细说明。In order to better understand the above embodiments, the following detailed description will be given in conjunction with the preferred embodiments.
以下优选实施例的设计思想在于:步骤1.DM终端定义可用于强制升级的管理对象,并在管理树(DDF)中添加对应定义./FOTA/Mandatory,并设定初始值(如初始值为0)。步骤2,服务器根据实际需要决定在下发升级包地址同时,是否下发强制升级标识。步骤3,.终端根据强制升级结点./FOTA/Mandatory的值(如0表示可选升级,1表示强制升级)来决定是强制升级,还是可选升级。The design idea of the following preferred embodiment is as follows: Step 1. The DM terminal defines a management object that can be used for forced upgrade, and adds a corresponding definition./FOTA/Mandatory in the management tree (DDF), and sets an initial value (such as an initial value) 0). Step 2: The server decides whether to issue the upgrade package address and whether to issue the mandatory upgrade ID. Step 3. The terminal determines whether it is a forced upgrade or an optional upgrade according to the value of the forced upgrade node./FOTA/Mandatory (such as 0 for optional upgrade and 1 for forced upgrade).
从图7中可以看出改进后流程与图1所示流程区别为:It can be seen from Figure 7 that the improved process differs from the process shown in Figure 1 as:
1.比原流程多出步骤0;1. Step 0 more than the original process;
2.在步骤4中,服务器不止要下发升级包地址,还要下发升级选项的值;2. In step 4, the server not only has to deliver the upgrade package address, but also issues the value of the upgrade option.
3.在步骤9中,终端要根据服务器下发的升级选项值来决定是强制升级还是可选升级;3. In step 9, the terminal determines whether it is a forced upgrade or an optional upgrade according to the upgrade option value sent by the server.
下面以图7来说明具体实施方法: The specific implementation method will be described below with reference to FIG. 7:
步骤0:在终端管理树中添加对应定义./FOTA/Mandatory结点(可在终端出厂时设置);Step 0: Add the corresponding definition ./FOTA/Mandatory node in the terminal management tree (can be set at the factory when the terminal is shipped);
步骤1:终端发起连接OMA DM Server请求;Step 1: The terminal initiates a connection to the OMA DM Server request.
步骤2:服务器发起获取终端软件版本的Get命令请求;Step 2: The server initiates a Get command request for obtaining the terminal software version;
步骤3:终端向服务器上报终端当前软件版本信息;Step 3: The terminal reports the current software version information of the terminal to the server.
步骤4:服务器根据终端软件版本匹配升级包,匹配到升级包后通过Replace命令下发升级包下载地址和升级选项结点值;Step 4: The server matches the upgrade package according to the version of the terminal software. After the upgrade package is matched, the upgrade package download address and the upgrade option node value are sent through the Replace command.
升级选项值0为可选升级1为强制升级,在实际应用中可根据需要另行定义 Upgrade option value 0 is optional upgrade 1 is mandatory upgrade, which can be defined separately in actual application.
步骤5:终端上报Replace命令执行结果;Step 5: The terminal reports the result of the Replace command execution.
步骤6:服务器下发异步执行命令Exec;Step 6: The server sends an asynchronous execution command Exec;
步骤7:终端上报Exec命令执行结果;Step 7: The terminal reports the execution result of the Exec command.
步骤8:服务器结束会话;Step 8: The server ends the session;
步骤9:终端根据升级选项标识值判断是可选升级还是强制升级,如果为可选升级,终端弹出包含“确定”和“取消”按钮的对话框供用户选择,如果为强制升级,则终端直接下载升级包;Step 9: The terminal determines whether it is an optional upgrade or a mandatory upgrade according to the upgrade option identifier value. If the upgrade is optional, the terminal pops up a dialog box containing the “OK” and “Cancel” buttons for the user to select. If the upgrade is mandatory, the terminal directly Download the upgrade package;
如果是强制升级,则在终端用户当前任务完成之后再执行升级;If it is a forced upgrade, the upgrade is performed after the end user's current task is completed;
步骤10:终端下载升级包后执行升级;Step 10: The terminal performs an upgrade after downloading the upgrade package.
步骤11:终端上报本次升级结果;Step 11: The terminal reports the upgrade result.
步骤12:服务器结束会话。Step 12: The server ends the session.
本发明实施例只通过扩展OMA DM中FUMO协议就可以从服务器控制终端是强制升级还是可选升级的要求,对快速修复终端软件致命Bug有非常重要的作用,同时DDF树中<FOTA>结点的引入,对后续FOTA业务的扩展有重要意义。In the embodiment of the present invention, only by extending the FUMO protocol in the OMA DM, it is possible to control whether the terminal is forced or optional from the server, and has a very important role in quickly repairing the fatal bug of the terminal software, and the <FOTA> node in the DDF tree. The introduction of this is of great significance to the expansion of the subsequent FOTA business.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。 In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的上述技术方案,采用终端根据服务器下发的升级标识所指示的升级类型进行升级的技术手段,解决了相关技术中软件升级的升级类型不可控等问题,从而在服务器实现了对终端升级类型的控制。 The foregoing technical solution provided by the embodiment of the present invention solves the problem that the upgrade type of the software upgrade in the related technology is uncontrollable according to the technical means for upgrading the upgrade type indicated by the upgrade identifier sent by the server, thereby implementing the problem in the server. Control of the terminal upgrade type.

Claims (10)

  1. 一种终端的升级方法,包括:A method for upgrading a terminal, including:
    终端接收服务器下发的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;The terminal receives the upgrade identifier sent by the server, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
    所述终端按照所述升级标识所指示的升级类型进行升级。The terminal upgrades according to the upgrade type indicated by the upgrade identifier.
  2. 根据权利要求1所述的方法,其中,终端接收服务器下发的升级标识,还包括:The method of claim 1, wherein the terminal receives the upgrade identifier sent by the server, and further includes:
    所述终端接收来自所述服务器下发的替换replace命令,所述replace命令中携带有所述升级标识,所述replace命令用于下发当前升级包的下载地址;The terminal receives the replacement replace command sent by the server, where the replace command carries the upgrade identifier, and the replace command is used to deliver the download address of the current upgrade package.
    所述终端从所述replace命令中获取所述升级标识。The terminal acquires the upgrade identifier from the replace command.
  3. 根据权利要求1所述的方法,其中,终端接收服务器下发的升级标识之前,所述方法还包括:The method of claim 1, wherein before the terminal receives the upgrade identifier sent by the server, the method further includes:
    所述终端在管理树中定义可用于强制升级的管理对象。The terminal defines a management object that can be used to force an upgrade in the management tree.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述终端按照所述升级标识所指示的升级类型进行升级,包括以下至少之一:The method according to any one of claims 1 to 3, wherein the terminal upgrades according to the upgrade type indicated by the upgrade identifier, including at least one of the following:
    在所述升级标识指示为可选升级时,所述终端向用户提示选择升级或不升级的选择界面;在所述选择界面上接收用户的选择指令;根据所述选择指令进行升级;When the upgrade identifier indicates an optional upgrade, the terminal prompts the user to select a selection interface for upgrading or not upgrading; receiving a selection instruction of the user on the selection interface; and performing an upgrade according to the selection instruction;
    在所述升级标识指示为强制升级时,所述终端直接下载当前的升级包,进行升级。When the upgrade identifier is indicated as a mandatory upgrade, the terminal directly downloads the current upgrade package and performs the upgrade.
  5. 一种终端的升级方法,包括:A method for upgrading a terminal, including:
    服务器获取当前升级包的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;The server obtains an upgrade identifier of the current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
    所述服务器向所述终端下发所述升级标识。The server sends the upgrade identifier to the terminal.
  6. 根据权利要求5所述的方法,其中,所述服务器向所述终端下发所述升级标识,包括: The method of claim 5, wherein the server sends the upgrade identifier to the terminal, including:
    所述服务器向所述终端下发替换replace命令,所述replace命令中携带有所述升级标识和当前升级包的下载地址。The server sends a replacement replace command to the terminal, where the replace command carries the upgrade identifier and a download address of the current upgrade package.
  7. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5 wherein the method further comprises:
    所述终端在管理树中定义可用于强制升级的管理对象。The terminal defines a management object that can be used to force an upgrade in the management tree.
  8. 一种终端的升级装置,应用于终端,所述装置包括:An upgrade device for a terminal is applied to a terminal, and the device includes:
    接收模块,设置为接收服务器下发的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;The receiving module is configured to receive an upgrade identifier sent by the server, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade.
    升级模块,设置为按照所述升级标识所指示的升级类型进行升级。The upgrade module is set to be upgraded according to the upgrade type indicated by the upgrade identifier.
  9. 根据权利要求8所述的装置,还包括:The apparatus of claim 8 further comprising:
    配置模块,设置为在管理树中定义可用于强制升级的管理对象。A configuration module that is set up to define management objects that can be used to force an upgrade in the management tree.
  10. 一种终端的升级装置,应用于服务器,所述装置包括:An upgrade device for a terminal is applied to a server, and the device includes:
    获取模块,设置为获取当前升级包的升级标识,其中,该升级标识用于指示当前升级包的升级类型为可选升级或强制升级;The obtaining module is configured to obtain an upgrade identifier of the current upgrade package, where the upgrade identifier is used to indicate that the upgrade type of the current upgrade package is an optional upgrade or a mandatory upgrade;
    发送模块,设置为向所述终端下发所述升级标识。 The sending module is configured to send the upgrade identifier to the terminal.
PCT/CN2015/078615 2014-08-20 2015-05-08 Terminal upgrade method and apparatus WO2016026329A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410413700.3A CN105354043A (en) 2014-08-20 2014-08-20 Terminal upgrading method and apparatus
CN201410413700.3 2014-08-20

Publications (1)

Publication Number Publication Date
WO2016026329A1 true WO2016026329A1 (en) 2016-02-25

Family

ID=55330019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078615 WO2016026329A1 (en) 2014-08-20 2015-05-08 Terminal upgrade method and apparatus

Country Status (2)

Country Link
CN (1) CN105354043A (en)
WO (1) WO2016026329A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648769A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Application upgrading method, server and user device
CN107391207A (en) * 2017-08-01 2017-11-24 深信服科技股份有限公司 A kind of terminal renewal system and method based on cloud platform
CN109526017B (en) * 2018-12-31 2022-06-03 超讯通信股份有限公司 Distributed small base station upgrading method and system
CN112085604A (en) * 2020-09-10 2020-12-15 北京金山云网络技术有限公司 Method and device for upgrading intelligent contract
CN112527363A (en) * 2021-02-10 2021-03-19 北京声智科技有限公司 Software package version updating method, device, system, equipment and medium
CN115794185B (en) * 2021-09-10 2023-11-07 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082965A (en) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 Method for ensuring success in upgrading set-top box
CN102932778A (en) * 2012-10-29 2013-02-13 东莞宇龙通信科技有限公司 Method and system for wirelessly upgrading mobile phone terminal
US20130247023A1 (en) * 2002-09-12 2013-09-19 Harry Aderton System and Method for Updating Network Computer Systems
CN103945264A (en) * 2014-04-29 2014-07-23 丹阳市广播电视台 Set top box application program upgrading method

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
CN101778376A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing wireless firmware update
CN102215118B (en) * 2010-04-01 2013-08-28 华为技术有限公司 Method, device and system for realizing device management services
CN102136934B (en) * 2010-10-21 2015-01-21 华为技术有限公司 Method, device and network system for realizing remote upgrading of Zigbee equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130247023A1 (en) * 2002-09-12 2013-09-19 Harry Aderton System and Method for Updating Network Computer Systems
CN102082965A (en) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 Method for ensuring success in upgrading set-top box
CN102932778A (en) * 2012-10-29 2013-02-13 东莞宇龙通信科技有限公司 Method and system for wirelessly upgrading mobile phone terminal
CN103945264A (en) * 2014-04-29 2014-07-23 丹阳市广播电视台 Set top box application program upgrading method

Also Published As

Publication number Publication date
CN105354043A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
WO2016026329A1 (en) Terminal upgrade method and apparatus
US8285864B2 (en) Service delivery system using intermediary application management subsystem for managing setup provisioning delivery and updating of services
JP6834033B2 (en) Network slice management methods, units, and systems
WO2015117527A1 (en) Upgrade method and device
CN102006333B (en) Method, system and device for installing software component
WO2016015558A1 (en) Method and apparatus for applying for license
EP2696532A2 (en) Method, server and system for starting application
EP2156317B1 (en) Method and system for allocating id of software component
WO2017121153A1 (en) Software upgrading method and device
WO2017049550A1 (en) Adapter and adapter upgrade method
CN109495433A (en) Data download method and device, storage medium and electronic device
CN104852971B (en) Plug-in protocol device and data communication method based on plug-in protocol
CN110716734B (en) Method, device, electronic equipment and medium for upgrading software
CN105072398B (en) A kind of device updating method and device
CN110098952A (en) A kind of management method and device of server
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
WO2017124741A1 (en) Method and device for synchronizing apparatus version
WO2016029774A1 (en) Virtualization based application storage method and execution method, device and system
US11379561B2 (en) License usage management
CN104104701A (en) Online service configuration updating method and system
KR101587030B1 (en) System and method for api call policy management of m2m application
CN111399866B (en) Updating method and device of VNF (virtual network function) package
WO2023020071A1 (en) Upgrade package acquisition method and smart device
WO2016206437A1 (en) Rom package generation method and device
CN109922482B (en) OMC system deployment method, OMC system, electronic device and storage medium

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: 15834581

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: 15834581

Country of ref document: EP

Kind code of ref document: A1