WO2015117527A1 - 升级方法及装置 - Google Patents

升级方法及装置 Download PDF

Info

Publication number
WO2015117527A1
WO2015117527A1 PCT/CN2014/095671 CN2014095671W WO2015117527A1 WO 2015117527 A1 WO2015117527 A1 WO 2015117527A1 CN 2014095671 W CN2014095671 W CN 2014095671W WO 2015117527 A1 WO2015117527 A1 WO 2015117527A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
terminal
verification
server
result
Prior art date
Application number
PCT/CN2014/095671
Other languages
English (en)
French (fr)
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 WO2015117527A1 publication Critical patent/WO2015117527A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Definitions

  • the present invention relates to the field of communications, and in particular to an upgrade method and apparatus.
  • the air interface upgrade technology is usually implemented by the OMA DA FUMO protocol, hereinafter referred to as the FUMO protocol.
  • the OMA DA FUMO protocol refers to management object information related to firmware upgrade of a mobile device based on OMA DA (Open Mobile Alliance Device Management) and processing behavior of a management object.
  • FIG. 1 is a flowchart of a method for upgrading a hollow port of the related art. As shown in FIG. 1 , the method includes the following steps:
  • Step S102 firmware update initialization; user, or network trigger initiates firmware update initialization, and the terminal initiates a DM session.
  • step S104 the device information is exchanged; the terminal reports the standard devinfo parameter to the server, and the server is based on the firmware version number (Firmware version, FwV for short), the software version number (SwV for short) or the hardware version number.
  • the hardware version abbreviated as HwV, determines whether the terminal currently has an upgrade package.
  • Step S106 the firmware downloads; if there is an upgrade package, the server informs the terminal to download the address, and the terminal downloads the corresponding upgrade package.
  • Step S108 the download completes the firmware installation
  • Step S110 The upgrade completes the firmware upgrade result notification.
  • the embodiment of the present invention provides an upgrade method and apparatus to solve at least the above problem, in view of the problem that the upgrade fails due to insufficient verification in the related art.
  • an upgrade method including: receiving verification information sent by a server for verifying a version of a terminal; and verifying a version of the terminal according to the verification information Perform verification; download an upgrade package that upgrades the version of the terminal according to the result of the verification.
  • the verifying the version of the terminal according to the verification information comprises: verifying, according to the verification information, whether the version of the terminal is consistent with a version stored in the server.
  • downloading the upgrade package for upgrading the version of the terminal according to the result of the verification comprises:
  • the result of the verification is that the version of the terminal is consistent with the version stored in the server, download the differential upgrade package delivered by the server; and the result of the verification is the version and server of the terminal. If the version stored in the file is inconsistent, download the full version package delivered by the server.
  • an upgrade method including: sending, to a terminal, verification information for verifying a version of the terminal; and receiving, by the terminal, the verification information according to the verification information. As a result of verifying the version of the terminal; providing an upgrade package for upgrading the version of the terminal to the terminal according to the result of the verification.
  • the receiving, by the terminal, the verification of the version of the terminal according to the verification information comprises: receiving, by the terminal, whether the version of the terminal is consistent with the version stored in the server according to the verification information. The result of the verification.
  • providing the terminal with an upgrade package for upgrading the version of the terminal according to the result of the verification comprises: if the result of the verification is that the version of the terminal is consistent with the version stored in the server The differential upgrade package is sent to the terminal. If the version of the terminal is inconsistent with the version stored in the server, the full version package is delivered to the terminal.
  • an apparatus for upgrading comprising: a receiving module, configured to receive verification information sent by a server for verifying a version of the terminal; a verification module, setting The verification of the version of the terminal is performed according to the verification information; and the downloading module is configured to download an upgrade package for upgrading the version of the terminal according to the result of the verification.
  • the verification module comprises: a verification unit, configured to check whether the version of the terminal is consistent with the version stored in the server according to the verification information.
  • the downloading module includes: a first downloading unit, configured to download the differential upgrade package delivered by the server if the result of the verification is that the version of the terminal is consistent with the version stored in the server
  • the second downloading unit is configured to download the full version package delivered by the server if the result of the verification is that the version of the terminal does not match the version stored in the server.
  • an apparatus for upgrading includes: a first sending module, configured to send, to the terminal, verification information for verifying a version of the terminal; and a receiving module, And the second sending module is configured to provide the terminal with the version of the terminal according to the result of the verification, and is configured to receive a result that the terminal checks the version of the terminal according to the verification information. Upgraded upgrade package.
  • the receiving module includes: a receiving unit, configured to receive a result of the terminal verifying whether the version of the terminal is consistent with a version stored in the server according to the verification information.
  • the second sending module includes: a first sending unit, configured to send a differential upgrade package to the terminal, where the result of the checking is that the version of the terminal is consistent with the version stored in the server;
  • the second sending unit is configured to send the full version package to the terminal if the result of the verification is that the version of the terminal does not match the version stored in the server.
  • the verification information sent by the server for verifying the version of the terminal is received; the version of the terminal is verified according to the verification information; and the verification is performed according to the result of the verification.
  • the upgrade package of the version of the terminal is upgraded, which solves the problem that the upgrade fails due to insufficient verification in the related art, and improves the upgrade efficiency.
  • FIG. 1 is a flow chart of a method for upgrading a hollow port of the related art
  • FIG. 2 is a flowchart 1 of an upgrade method according to an embodiment of the present invention.
  • FIG. 3 is a second flowchart of an upgrade method according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 1 of an upgrade apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block diagram 2 of an upgrading apparatus according to an embodiment of the present invention.
  • FIG. 6 is a flow chart of an upgrade method of a preferred embodiment of the present invention.
  • FIG. 2 is a flowchart 1 of an upgrade method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step S202 receiving verification information sent by the server for verifying the version of the terminal
  • Step S204 verifying the version of the terminal according to the verification information
  • Step S206 downloading an upgrade package for upgrading the version of the terminal according to the result of the verification.
  • the terminal receives the verification information sent by the server for verifying the version of the terminal, and verifies the version of the terminal according to the verification information, and downloads the upgrade package according to the result of the verification, and passes the upgrade package.
  • the version of the terminal is upgraded, which solves the problem that the upgrade fails due to insufficient verification in the related technology, thereby improving the efficiency of the upgrade.
  • the verification is performed according to whether the version of the terminal is consistent with the version stored in the server according to the verification information.
  • the differential upgrade package delivered by the server is downloaded; and the result of the verification is that the version of the terminal is inconsistent with the version stored in the server.
  • download the full version package delivered by the server is downloaded.
  • FIG. 3 is a flowchart 2 of an upgrade method according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step S302 the verification information for verifying the version of the terminal is sent to the terminal;
  • Step S304 receiving a result that the terminal verifies the version of the terminal according to the verification information
  • Step S306 according to the result of the verification, provide the terminal with an upgrade package for upgrading the version of the terminal.
  • the server sends the verification information to the terminal, and the terminal verifies the version of the terminal by using the verification information, and the server receives the result of verifying the version of the terminal according to the verification information, according to the result of the verification.
  • the terminal provides an upgrade package, and the terminal upgrades the version according to the upgrade package.
  • the problem that the upgrade fails due to insufficient verification is solved in the related art, thereby improving the efficiency of the upgrade.
  • the server may directly send the upgrade package to the terminal, or may send the address of the download upgrade package to the terminal. So that the terminal downloads the upgrade package through this address.
  • the receiving terminal checks whether the version of the terminal is consistent with the version stored in the server according to the verification information.
  • the differential upgrade package is sent to the terminal; if the result of the verification is that the version of the terminal is inconsistent with the version stored in the server, , the full version of the package is delivered to the terminal.
  • FIG. 4 is a block diagram of an upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
  • the receiving module 42 is configured to receive verification information that is sent by the server and used to verify the version of the terminal.
  • the verification module 44 is configured to verify the version of the terminal according to the verification information
  • the download module 46 is configured to download an upgrade package for upgrading the version of the terminal according to the result of the verification.
  • the verification module 44 includes: an verification unit configured to check whether the version of the terminal is consistent with the version stored in the server according to the verification information.
  • the downloading module 46 includes: a first downloading unit, configured to download a differential upgrade package delivered by the server if the version of the terminal is consistent with the version stored in the server; and the second download unit is configured In the case that the version of the terminal is inconsistent with the version stored in the server, the full version of the package delivered by the server is downloaded.
  • FIG. 5 is a block diagram 2 of an upgrade device according to an embodiment of the present invention. As shown in FIG. 5, the device includes:
  • the first sending module 52 is configured to send, to the terminal, verification information for verifying the version of the terminal;
  • the receiving module 54 is configured to receive a result that the terminal verifies the version of the terminal according to the verification information
  • the second sending module 56 is configured to provide the terminal with an upgrade package for upgrading the version of the terminal according to the result of the verification.
  • the receiving module 54 includes: a receiving unit, configured to receive a result of the terminal verifying whether the version of the terminal is consistent with the version stored in the server according to the verification information.
  • the second sending module 56 includes: a first sending unit, configured to send a differential upgrade package to the terminal if the version of the terminal is consistent with the version stored in the server; and the second sending unit, If the version of the terminal is inconsistent with the version stored in the server, the full version of the package is delivered to the terminal.
  • the preferred embodiment of the present invention is based on the prior art, and the FUMO protocol verification process is improved, which is proposed on the basis of the upgrade process shown in FIG. 1, and the security check is performed before the upgrade package is downloaded.
  • Matching information for better checking including but not limited to current terminal software, firmware, hardware and other upgrade related information to verify, to improve upgrade efficiency, improve user experience, and save network traffic.
  • Joint features of the full version and differential upgrade technology are further optimized in the FUMO protocol. Supports scenarios where all versions and differential package upgrade packages coexist, avoiding upgrade failures and more serious upgrade errors due to insufficient verification information in the prior art, thereby improving the efficiency and security of the upgrade method.
  • the verification process in the embodiment of the present invention mainly includes the following content: a local version verification module, which performs simple verification on the version of the terminal, for example, verifies whether the version of the terminal is root or the like; and the network version verification module: the server issues the same.
  • the verification information related to the upgrade of the terminal software, firmware, and hardware is required, and the version of the terminal is fully verified.
  • the version of the MD5 data is sent to the version integrity check, the compile time of the version is issued, the compile uniqueness check is performed, the signature key of the version is issued, and the signature check is performed.
  • the terminal verifies the version consistency according to the information sent by the server, and verifies that the version of the terminal is consistent with the version stored in the server; the terminal feeds back the verification result according to the verification information sent by the server to the server; the server according to the terminal
  • the result of the verification of the feedback determines whether the differential upgrade package or the full version upgrade package is delivered.
  • the verification module in the embodiment of the present invention implements the functions of the local version verification module and the network version verification module.
  • FIG. 6 is a flow chart of a method for upgrading a preferred embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
  • step S502 it is verified whether the version of the terminal is complete.
  • the local verification module Before the FUMO task is performed, the local verification module first checks the integrity of the version. If not, the full version upgrade package is delivered in step S518; if yes, continue. Step S504 is performed.
  • the user, or network trigger initiates a firmware update initialization, and the terminal initiates a DM session.
  • Step S504 firmware update initialization
  • Step S506 The device information is exchanged; the terminal reports the standard devinfo parameter to the server, and the server determines whether the terminal currently has an upgrade package according to the FwV, SwV or HwV information reported by the terminal.
  • step S508 the server issues “Exec”; if there is an upgrade package, and the terminal local verification module has insufficient verification information, or a new verification task has been added to the server, the server initiates a security verification process, and the upgrade is released.
  • the verification information related to the upgrade of the terminal software, firmware, and hardware of the package is sent to the terminal, and the terminal is required to perform an "Exec" verification operation flow.
  • the following example shows that the terminal executes the "Exec" command. This example is only a logical description. It is an example for the LocURI node value. However, it is not limited to this. You can also customize the execution command other than the new OMA DM. Can be a single or multiple command combinations. The process is as follows:
  • ⁇ data> dynamically generates check information according to the terminal, and can guarantee uniqueness by algorithms such as MD5 ⁇ /data>
  • step S510 the terminal performs "Exec"; the network version verification module performs version consistency verification according to the information delivered by the server, that is, whether the version of the terminal is consistent with the version stored in the server.
  • step S512 the terminal feeds back the "Exec” result to the server; the terminal feeds back the verification result according to the verification information sent by the server to the server in the manner of "Exec" execution result.
  • the following is the execution of the Exec command on the terminal, and the execution result is described.
  • the example is only a logical description. It is an example for the LocURI node value. However, it is not limited to this. You can also customize the new OMA DM. Excuting an order.
  • the following is an attempt to execute the "Exec" command on the terminal, and the execution result is described.
  • the example is only a logical description, and is an example for the LocURI node value, but is not limited thereto, and may be customized other than the new OMADM. Excuting an order.
  • step S514 the server determines the result of the "Exec”; if the terminal returns the "Exec” execution result as the verification, the server determines whether to perform the differential upgrade package according to the verification result fed back by the terminal; if the result is not passed, the process proceeds to step S516.
  • the server delivers the full version upgrade package. If the result is the result, the process proceeds to step S518, and the server sends the differential upgrade package.
  • Step S520 the firmware downloads; if there is an upgrade package, the server informs the terminal to download the address of the upgrade package, and the terminal downloads the corresponding upgrade package according to the download address provided by the server.
  • Step S522 the download completes the firmware installation
  • step S524 the upgrade is completed, and the upgrade result is notified.
  • 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 technical solution provided by the embodiment of the present invention can be applied to the field of communications, and solves the problem that the upgrade fails due to insufficient verification in the related art, and improves the upgrade efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种升级方法及装置,其中,该方法包括:接收来自服务器下发的用于对终端的版本进行校验的校验信息;依据该校验信息对该终端的版本进行校验;依据校验的结果下载对该终端的版本进行升级的升级包。通过本发明,解决了相关技术中由于校验不充分导致升级失败的问题,从而提高了升级的效率。

Description

升级方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种升级方法及装置。
背景技术
空口升级技术,通常采用OMA DA FUMO协议来实现,以下简称为FUMO协议。其中,OMA DA FUMO协议指的是基于OMA DA(Open Mobile Alliance Device Management)的移动设备的固件升级相关的管理对象信息和管理对象的处理行为。
现有技术中,FUMO协议约定了空口升级的方法,图1是相关技术中空口升级的方法流程图,如图1所示,该方法包括以下步骤:
步骤S102,固件更新初始化;用户、或者网络触发发起固件更新初始化,终端发起DM会话。
步骤S104,设备信息交换;终端将标准的devinfo参数上报给服务器,服务器根据终端上报的固件版本号(Firmware version,简称为FwV)、软件版本号(Software version,简称为SwV)或者硬件版本号(Hardware version,简称为HwV)信息判断终端当前是否有升级包。
步骤S106,固件下载;如果有升级包,服务器告知终端下载地址,终端下载对应的升级包。
步骤S108,下载完成固件安装;
步骤S110:升级完成固件升级结果通知。
现有技术存在以下不足:
(1)只凭借FwV、SwV或者HwV信息判断当前终端在服务器侧是否有升级包,下载升级包之后进行升级的过程中才能进行校验。
(2)无法做到在下发升级包之前完成对终端版本是否可以升级的可靠性校验,例如终端固件、软件信息是否完整,是否被ROOT,出厂版本中的软件是否被替换,版 本的编译时间是否一致,版本的分区是否正确,版本中涉及的各个分区中保存的信息是否完整等。
(3)而上述条件会直接影响到本次FUMO任务是否可以正常的升级成功,当前技术已经无法满足需求,一旦出现升级失败等无法升级的情况,会给终端升级带来了流量浪费,以及升级失败、或者终端无法开机等风险,急需要更新技术。
针对相关技术中由于校验不充分导致升级失败的问题,目前尚未提出有效的解决方案。
发明内容
针对相关技术中由于校验不充分导致升级失败的问题,本发明实施例提供了一种升级方法及装置,以至少解决上述问题。
根据本发明实施例的一个方面,提供了一种升级方法,包括:接收来自服务器下发的用于对终端的版本进行校验的校验信息;依据所述校验信息对所述终端的版本进行校验;依据校验的结果下载对所述终端的版本进行升级的升级包。
优选地,依据所述校验信息对所述终端的版本进行校验包括:依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验。
优选地,依据校验的结果下载对所述终端的版本进行升级的升级包包括:
在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,下载所述服务器下发的差分升级包;在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,下载所述服务器下发的全版本包。
根据本发明实施例的另一方面,还提供了一种升级方法,包括:向终端下发用于对所述终端的版本进行校验的校验信息;接收所述终端依据所述校验信息对所述终端的版本进行校验的结果;依据所述校验的结果向所述终端提供对所述终端的版本进行升级的升级包。
优选地,接收所述终端依据所述校验信息对所述终端的版本进行校验的结果包括:接收所述终端依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验的结果。
优选地,依据所述校验的结果向所述终端提供对所述终端的版本进行升级的升级包包括:在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,向终端下发差分升级包;在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,向终端下发全版本包。
根据本发明实施例的另一方面,还提供了一种升级装置,包括:接收模块,设置为接收来自服务器下发的用于对终端的版本进行校验的校验信息;校验模块,设置为依据所述校验信息对所述终端的版本进行校验;下载模块,设置为依据校验的结果下载对所述终端的版本进行升级的升级包。
优选地,所述校验模块包括:检验单元,设置为依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验。
优选地,所述下载模块包括:第一下载单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,下载所述服务器下发的差分升级包;第二下载单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,下载所述服务器下发的全版本包。
根据本发明实施例的再一方面,还提供了一种升级装置,包括:第一发送模块,设置为向终端下发用于对所述终端的版本进行校验的校验信息;接收模块,设置为接收所述终端依据所述校验信息对所述终端的版本进行校验的结果;第二发送模块,设置为依据所述校验的结果向所述终端提供对所述终端的版本进行升级的升级包。
优选地,所述接收模块包括:接收单元,设置为接收所述终端依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验的结果。
优选地,所述第二发送模块包括:第一发送单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,向终端下发差分升级包;第二发送单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,向终端下发全版本包。
通过本发明实施例,接收来自服务器下发的用于对终端的版本进行校验的校验信息;依据所述校验信息对所述终端的版本进行校验;依据校验的结果下载对所述终端的版本进行升级的升级包,解决了相关技术中由于校验不充分导致升级失败的问题,提高了升级效率。
附图说明
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术中空口升级的方法流程图;
图2是根据本发明实施例的一种升级方法的流程图一;
图3是根据本发明实施例的一种升级方法的流程图二;
图4是根据本发明实施例的一种升级装置的框图一;
图5是根据本发明实施例的一种升级装置的框图二;
图6是本发明优选实施例的升级方法的流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本发明实施例中的一种升级方法,图2是根据本发明实施例的一种升级方法的流程图一,如图2所示,该方法包括以下步骤:
步骤S202,接收来自服务器下发的用于对终端的版本进行校验的校验信息;
步骤S204,依据该校验信息对该终端的版本进行校验;
步骤S206,依据校验的结果下载对该终端的版本进行升级的升级包。
通过上述步骤,终端接收服务器下发的用于对终端的版本进行校验的校验信息,根据校验信息对终端的版本进行校验,根据校验的结果下载升级包,通过该升级包对终端的版本进行升级,解决了相关技术中由于校验不充分导致升级失败的问题,从而提高了升级的效率。
优选地,依据校验信息对终端的版本与服务器中存储的版本是否一致进行校验。
优选地,在校验的结果为终端的版本与服务器中存储的版本一致的情况下,下载服务器下发的差分升级包;在校验的结果为终端的版本与服务器中存储的版本不一致的情况下,下载服务器下发的全版本包。
本发明实施中还提供了一种升级方法,图3是根据本发明实施例的一种升级方法的流程图二,如图3所示,该方法包括以下步骤:
步骤S302,向终端下发用于对该终端的版本进行校验的校验信息;
步骤S304,接收该终端依据该校验信息对该终端的版本进行校验的结果;
步骤S306,依据该校验的结果向该终端提供对该终端的版本进行升级的升级包。
通过上述步骤,服务器向终端下发校验信息,终端通过该校验信息对终端的版本进行校验,服务器接收终端依据校验信息对终端的版本进行校验的结果,根据校验的结果向终端提供升级包,终端根据该升级包对版本进行升级。解决了相关技术中由于校验不充分导致升级失败的问题,从而提高了升级的效率,作为优选的实施方式,服务器可以直接将升级包发送给终端,也可以将下载升级包的地址发送给终端,使得终端通过该地址下载升级包。
优选地,接收终端依据校验信息对该终端的版本与服务器中存储的版本是否一致进行校验的结果。
优选地,在校验的结果为终端的版本与服务器中存储的版本一致的情况下,向终端下发差分升级包;在校验的结果为终端的版本与服务器中存储的版本不一致的情况下,向终端下发全版本包。
本发明实施例中的一种升级装置,图4是根据本发明实施例的一种升级装置的框图一,如图4所示,该装置包括:
接收模块42,设置为接收来自服务器下发的用于对终端的版本进行校验的校验信息;
校验模块44,设置为依据该校验信息对该终端的版本进行校验;
下载模块46,设置为依据校验的结果下载对该终端的版本进行升级的升级包。
优选地,校验模块44包括:检验单元,设置为依据该校验信息对该终端的版本与服务器中存储的版本是否一致进行校验。
优选地,下载模块46包括:第一下载单元,设置为在校验的结果为终端的版本与服务器中存储的版本一致的情况下,下载服务器下发的差分升级包;第二下载单元,设置为在校验的结果为终端的版本与服务器中存储的版本不一致的情况下,下载服务器下发的全版本包。
本发明实施例中还提供了一种升级装置,图5是根据本发明实施例的一种升级装置的框图二,如图5所示,该装置包括:
第一发送模块52,设置为向终端下发用于对该终端的版本进行校验的校验信息;
接收模块54,设置为接收该终端依据该校验信息对该终端的版本进行校验的结果;
第二发送模块56,设置为依据该校验的结果向该终端提供对该终端的版本进行升级的升级包。
优选地,接收模块54包括:接收单元,设置为接收终端依据校验信息对该终端的版本与服务器中存储的版本是否一致进行校验的结果。
优选地,第二发送模块56包括:第一发送单元,设置为在校验的结果为终端的版本与服务器中存储的版本一致的情况下,向终端下发差分升级包;第二发送单元,设置为在校验的结果为终端的版本与服务器中存储的版本不一致的情况下,向终端下发全版本包。
下面结合优选实施例进行说明,以下优选实施例结合了上述实施例及其优选实施方式。
本发明优选实施例是在现有技术的基础上,完善了FUMO协议校验流程,是在图1所示的升级流程的基础上提出的,在下载升级包之前进行安全校验,对升级包匹配信息进行更优检查,包括但不限于当前终端软件、固件、硬件的等升级相关信息进行校验,以提高升级效率,改进用户体验,节约网络流量。接合全版本、差分升级技术要点,在FUMO协议中做进一步优化。支持全版本、差分包升级包并存的场景,避免由于现有技术中校验信息不足导致的升级失败以及更严重升级错误,从而提高升级方法的效率和安全性。
本发明实施例中的校验流程主要包括以下内容:本地版本校验模块,对终端的版本做简单的校验,例如,校验终端的版本是否root等;网络版本校验模块:服务器下发要求终端软件、固件、硬件的等升级相关的校验信息,对终端的版本进行全面校验。 例如,下发版本整体的MD5数据进行版本完整性校验,下发版本的编译时间,进行编译唯一性校验,下发版本的签名密钥,进行签名性校验等等。
终端按照服务器下发信息进行版本一致性的校验,校验终端的版本与服务器中存储的版本是否一致;终端将根据服务器下发的校验信息进行的校验结果反馈给服务器;服务器根据终端反馈的校验结果判断下发差分升级包、或者全版本升级包。其中,本发明实施例中校验模块实现上述本地版本校验模块和网络版本校验模块的功能。
下面结合具体实施方式对本发明优选实施例进行进一步说明。
图6是本发明优选实施例的升级方法的流程图,如图6所示,该方法包括以下步骤:
步骤S502,校验终端的版本是否完整;在进行FUMO任务之前,本地校验模块先对版本的完整性进行校验,如果不通过,在步骤S518中下发全版本升级包;如果通过,继续执行步骤S504。用户、或者网络触发发起固件更新初始化,终端发起DM会话。
步骤S504,固件更新初始化;
步骤S506,设备信息交换;终端将标准的devinfo参数上报给服务器,服务器根据终端上报的FwV、SwV或者HwV信息判断终端当前是否有升级包。
步骤S508,服务器下发执行“Exec”;如果存在升级包,并且终端本地校验模块校验信息不足,或者服务器上已经添加了新的校验任务,则服务器启动安全校验流程,将发布升级包对应的终端软件、固件、硬件的等升级相关的校验信息下发到终端,并要求终端执行“Exec”校验操作流程。
以下举例说明终端执行“Exec”命令,该示例只是逻辑说明,是针对LocURI节点值进行的举例,但不限制于此,也可以自定义新的OMA DM之外的执行命令,其中,该执行命令可以是单个或者多个命令组合。流程如下所示:
<Exec>
<CmdID>x</CmdID>
<Item>
<Target>
<LocURI>./Securitycheck/checkFirmwareversion</LocURI>
<data>根据终端动态生成校验信息,可以MD5等算法保证唯一性</data>
</Target>
</Item>
</Exec>
步骤S510,终端执行“Exec”;网络版本校验模块按照服务器下发信息进行版本一致性的校验,即校验终端的版本与服务器中存储的版本是否一致。
步骤S512,终端反馈“Exec”结果给服务器;终端将根据服务器下发的校验信息进行的校验结果以“Exec”执行结果的方式反馈给服务器。
下面对终端执行“Exec”命令成功,对上报执行结果进行说明,该示例只是逻辑说明,是针对LocURI节点值进行的举例,但不限制于此,也可以自定义新的OMA DM之外的执行命令。
<Status>
<CmdID>x</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>2</CmdRef>
<Cmd>Exec</Cmd>
<LocURI>./Securitycheck/checkFirmwareversion</LocURI>
<Data>200</Data>
</Status>
下面对终端执行“Exec”命令成失败,对上报执行结果进行说明,该示例只是逻辑说明,是针对LocURI节点值进行的举例,但不限制于此,也可以自定义新的OMADM之外的执行命令。
<Status>
<CmdID>x</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>2</CmdRef>
<Cmd>Exec</Cmd>
<LocURI>./Securitycheck/checkFirmwareversion</LocURI>
<Data>4xx</Data>
</Status>
步骤S514,服务器判断“Exec”结果;如果终端反馈“Exec”执行结果为校验通过,服务器根据终端反馈的校验结果判断是否下差分升级包;在结果为不通过的情况下,执行步骤S516,服务器下发全版本升级包;在结果为通过的情况下,则执行步骤S518,服务器下发差分升级包。
步骤S520,固件下载;如果有升级包,服务器告知终端下载升级包的地址,终端根据服务器提供的下载地址下载对应的升级包。
步骤S522,下载完成固件安装;
步骤S524,升级完成,通知升级结果。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上该仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例提供的技术方案可以应用于通信领域,解决了相关技术中由于校验不充分导致升级失败的问题,提高了升级效率。

Claims (12)

  1. 一种升级方法,包括:
    接收来自服务器下发的用于对终端的版本进行校验的校验信息;
    依据所述校验信息对所述终端的版本进行校验;
    依据校验的结果下载对所述终端的版本进行升级的升级包。
  2. 根据权利要求1所述的方法,其中,依据所述校验信息对所述终端的版本进行校验包括:
    依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验。
  3. 根据权利要求1所述的方法,其中,依据校验的结果下载对所述终端的版本进行升级的升级包包括:
    在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,下载所述服务器下发的差分升级包;
    在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,下载所述服务器下发的全版本包。
  4. 一种升级方法,包括:
    向终端下发用于对所述终端的版本进行校验的校验信息;
    接收所述终端依据所述校验信息对所述终端的版本进行校验的结果;
    依据所述校验的结果向所述终端提供对所述终端的版本进行升级的升级包。
  5. 根据权利要求4所述的方法,其中,接收所述终端依据所述校验信息对所述终端的版本进行校验的结果包括:
    接收所述终端依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验的结果。
  6. 根据权利要求4所述的方法,其中,依据所述校验的结果向所述终端提供对所述终端的版本进行升级的升级包包括:
    在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,向终端下发差分升级包;
    在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,向终端下发全版本包。
  7. 一种升级装置,包括:
    接收模块,设置为接收来自服务器下发的用于对终端的版本进行校验的校验信息;
    校验模块,设置为依据所述校验信息对所述终端的版本进行校验;
    下载模块,设置为依据校验的结果下载对所述终端的版本进行升级的升级包。
  8. 根据权利要求7所述的装置,其中,所述校验模块包括:
    检验单元,设置为依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验。
  9. 根据权利要求7所述的装置,其中,所述下载模块包括:
    第一下载单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,下载所述服务器下发的差分升级包;
    第二下载单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,下载所述服务器下发的全版本包。
  10. 一种升级装置,包括:
    第一发送模块,设置为向终端下发用于对所述终端的版本进行校验的校验信息;
    接收模块,设置为接收所述终端依据所述校验信息对所述终端的版本进行校验的结果;
    第二发送模块,设置为依据所述校验的结果向所述终端提供对所述终端的版本进行升级的升级包。
  11. 根据权利要求10所述的装置,其中,所述接收模块包括:
    接收单元,设置为接收所述终端依据所述校验信息对所述终端的版本与服务器中存储的版本是否一致进行校验的结果。
  12. 根据权利要求10所述的装置,其中,所述第二发送模块包括:
    第一发送单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本一致的情况下,向终端下发差分升级包;
    第二发送单元,设置为在所述校验的结果为所述终端的版本与服务器中存储的版本不一致的情况下,向终端下发全版本包。
PCT/CN2014/095671 2014-07-21 2014-12-30 升级方法及装置 WO2015117527A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410347009.XA CN104125276A (zh) 2014-07-21 2014-07-21 升级方法及装置
CN201410347009.X 2014-07-21

Publications (1)

Publication Number Publication Date
WO2015117527A1 true WO2015117527A1 (zh) 2015-08-13

Family

ID=51770540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095671 WO2015117527A1 (zh) 2014-07-21 2014-12-30 升级方法及装置

Country Status (2)

Country Link
CN (1) CN104125276A (zh)
WO (1) WO2015117527A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729043A (zh) * 2017-11-10 2018-02-23 深圳Tcl新技术有限公司 增量升级包的校验方法、装置和计算机可读存储介质
CN109976784A (zh) * 2019-01-24 2019-07-05 金卡智能集团股份有限公司 智能物联网计量仪表远程固件升级方法及系统
CN114866525A (zh) * 2022-05-19 2022-08-05 深圳市艾迪思特信息技术有限公司 一种一主多从模式嵌入式设备远程在线固件升级方法及系统

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125276A (zh) * 2014-07-21 2014-10-29 中兴通讯股份有限公司 升级方法及装置
CN104503789B (zh) * 2014-12-17 2017-11-17 华为技术有限公司 版本更新的控制方法和ict设备
CN104572082A (zh) * 2014-12-19 2015-04-29 龙凤娇 一种产品升级方法及装置
CN106161336A (zh) * 2015-03-25 2016-11-23 阿里巴巴集团控股有限公司 一种信息更新方法、装置及系统
CN106487539B (zh) * 2015-08-25 2020-06-16 中兴通讯股份有限公司 一种基于fumo协议的升级方法及系统
CN106484453B (zh) * 2015-09-02 2021-04-20 中兴通讯股份有限公司 一种实现系统升级的方法及装置
CN105446768B (zh) * 2015-11-05 2019-07-05 小米科技有限责任公司 系统升级方法及装置
CN105912937A (zh) * 2016-04-28 2016-08-31 宇龙计算机通信科技(深圳)有限公司 一种Root检测处理的方法、装置以及终端
CN106445584B (zh) * 2016-08-31 2019-01-04 福建联迪商用设备有限公司 软件模块的管理方法及系统
CN107483524A (zh) * 2016-12-23 2017-12-15 宝沃汽车(中国)有限公司 车辆控制器的远程升级方法及升级系统
CN107122207A (zh) * 2017-04-12 2017-09-01 青岛海信移动通信技术股份有限公司 软件升级方法、客户端设备及服务器
CN107404535B (zh) * 2017-08-03 2020-07-31 特瓦特能源科技有限公司 设备的远端升级方法和装置
CN109002319B (zh) * 2018-07-25 2022-07-08 东信和平科技股份有限公司 一种基于lora协议的补丁升级方法、装置和系统
CN110086885A (zh) * 2019-05-10 2019-08-02 上海擎感智能科技有限公司 空间下载技术的升级包下载方法及装置、存储介质和终端
CN110764807B (zh) 2019-10-29 2021-10-29 京东方科技集团股份有限公司 一种升级方法、系统、服务器及终端设备
CN112988201A (zh) * 2021-04-27 2021-06-18 上海飞斯信息科技有限公司 程序更新方法、装置以及电子设备
CN113794583B (zh) * 2021-08-15 2023-12-29 新华三信息安全技术有限公司 配置方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617496A (zh) * 2003-11-11 2005-05-18 华为技术有限公司 下一代网络终端自动升级配置的方法
CN102902555A (zh) * 2012-09-06 2013-01-30 华为终端有限公司 一种升级方法、装置及升级设备
CN104125276A (zh) * 2014-07-21 2014-10-29 中兴通讯股份有限公司 升级方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1533695B1 (en) * 2003-11-19 2013-08-07 TELEFONAKTIEBOLAGET LM ERICSSON (publ) Updating data in a mobile terminal
WO2012007039A1 (en) * 2010-07-15 2012-01-19 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for updating a user terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617496A (zh) * 2003-11-11 2005-05-18 华为技术有限公司 下一代网络终端自动升级配置的方法
CN102902555A (zh) * 2012-09-06 2013-01-30 华为终端有限公司 一种升级方法、装置及升级设备
CN104125276A (zh) * 2014-07-21 2014-10-29 中兴通讯股份有限公司 升级方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729043A (zh) * 2017-11-10 2018-02-23 深圳Tcl新技术有限公司 增量升级包的校验方法、装置和计算机可读存储介质
CN109976784A (zh) * 2019-01-24 2019-07-05 金卡智能集团股份有限公司 智能物联网计量仪表远程固件升级方法及系统
CN114866525A (zh) * 2022-05-19 2022-08-05 深圳市艾迪思特信息技术有限公司 一种一主多从模式嵌入式设备远程在线固件升级方法及系统
CN114866525B (zh) * 2022-05-19 2024-04-12 深圳市艾迪思特信息技术有限公司 一种一主多从模式嵌入式设备远程在线固件升级方法及系统

Also Published As

Publication number Publication date
CN104125276A (zh) 2014-10-29

Similar Documents

Publication Publication Date Title
WO2015117527A1 (zh) 升级方法及装置
CN102006333B (zh) 安装软件组件的方法、系统及装置
US20120198434A1 (en) Virtual bundling of remote device firmware upgrade
CN109905256A (zh) 一种固件更新方法和装置
TWI533216B (zh) 作業系統更新方法
EP2755412A1 (en) Method and system for upgrading firmware of user side device
CN104915220A (zh) 一种客户端应用程序的升级方法和系统、客户端
US20080301640A1 (en) Method and system for allocating id of software component
WO2016026329A1 (zh) 终端的升级方法及装置
CN109391673A (zh) 一种管理更新文件的方法、系统及终端设备
CN105100021A (zh) 一种设备管理会话的触发方法、设备及系统
CN110532009A (zh) 一种智能设备升级管理系统及方法
CN104811979A (zh) 基于fota升级的压力测试方法和装置
WO2022142153A1 (zh) 电表升级方法、系统、智能电表及存储介质
JP7279899B2 (ja) データ収集方法、データ収集装置、データ収集デバイスおよびコンピュータ可読記憶媒体
CN110808847B (zh) 管理das系统的方法和设备、电子设备、存储介质
WO2022110645A1 (zh) 软件升级方法、装置、存储介质及电子装置
WO2017124741A1 (zh) 一种设备版本同步方法及装置
US20130117425A1 (en) Method and apparatus for updating a user terminal
WO2010124571A1 (zh) 节点信息获取方法、客户端、服务器
CN103491557A (zh) 基站升级数据的处理方法及装置
CN114928541A (zh) 一种版本升级方法、装置及升级规则的配置方法
US20140122437A1 (en) Dynamically provisioned storage server operating on a data communications network
JP6259919B2 (ja) サーバとセキュアエレメント間の通信方法
CN113986289A (zh) 边缘计算网关的固件升级方法及装置

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

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

Country of ref document: EP

Kind code of ref document: A1