WO2016127587A1 - Software version updating method and apparatus - Google Patents

Software version updating method and apparatus Download PDF

Info

Publication number
WO2016127587A1
WO2016127587A1 PCT/CN2015/084968 CN2015084968W WO2016127587A1 WO 2016127587 A1 WO2016127587 A1 WO 2016127587A1 CN 2015084968 W CN2015084968 W CN 2015084968W WO 2016127587 A1 WO2016127587 A1 WO 2016127587A1
Authority
WO
WIPO (PCT)
Prior art keywords
software version
upgraded
verification
extracted
upgrade
Prior art date
Application number
PCT/CN2015/084968
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 WO2016127587A1 publication Critical patent/WO2016127587A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • This document refers to, but is not limited to, software version management technology, especially a method and apparatus for implementing software version upgrade.
  • firmware is usually a programmable device such as a central processing unit (CPU) boot chip, a Complex Programmable Logic Device (CPLD), or a Field Program Gates Array (FPGA).
  • CPU central processing unit
  • CPLD Complex Programmable Logic Device
  • FPGA Field Program Gates Array
  • the software version upgrade method generally includes: obtaining the software version to be upgraded from a preset database in the communication network; loading the obtained software version to be upgraded into the firmware to upgrade the firmware function.
  • the data transmission error in the communication for obtaining the software version to be upgraded causes the obtained software version to be upgraded to be wrong by itself, the method of upgrading the related software version cannot find such a self-error, and thus the obtained software version to be upgraded is wrong by itself.
  • the upgraded firmware does not work normally, and the communication device cannot work normally or even down, thereby reducing the stability of the communication device and affecting the user experience of the communication device providing the service.
  • the embodiment of the invention provides a method and a device for implementing software version upgrade, which can improve the stability of the software version upgrade, thereby improving the stability of the communication device.
  • the embodiment of the invention discloses a method for implementing software version upgrade, which comprises:
  • the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
  • the method further includes: when receiving an upgrade request from a preset database in the communication network, obtaining a software version to be upgraded from the database, and saving the obtained software version to be upgraded to the storage.
  • the method further includes: if the verification fails, returning to the step of obtaining the software version to be upgraded.
  • the loading process of the extracted software version to be upgraded includes: if the extracted software version to be upgraded is used to upgrade firmware, loading the extracted software version to be upgraded into the firmware.
  • the performing the loading process on the extracted software version to be upgraded includes: if the extracted software version to be upgraded is used to upgrade the operating system, the operating system is upgraded by using the extracted software version to be upgraded.
  • the verification algorithm is an information digest algorithm 5MD5.
  • the embodiment of the invention further discloses an apparatus for implementing software version upgrade, which comprises a verification unit and a loading unit, wherein
  • the verification unit is configured to: when the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm;
  • the loading unit is configured to perform loading processing on the software version to be upgraded after the verification unit extracts when the verification unit indicates that the verification is successful.
  • the apparatus of the embodiment of the present invention further includes an obtaining unit, configured to: when receiving an upgrade request from a preset database in the communication network, or the verification unit indicates that the verification fails
  • the software version to be upgraded is obtained from the database, and the obtained software version to be upgraded is saved to the storage space.
  • the loading unit is specifically configured to: if the extracted software version to be upgraded is used to upgrade firmware, when the verification unit indicates that the verification is successful, the extracted software version to be upgraded is loaded into the firmware. . .
  • the loading unit is specifically configured to: if the extracted software version to be upgraded is used to upgrade an operating system, when the verification unit indicates that the verification is successful, the operating system is upgraded by using the extracted software version to be upgraded. .
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • the technical solution of the present application includes: when detecting a pre-set storage space and saving a software version to be upgraded, extracting the verification information in the detected software version to be upgraded, and performing the extracted verification according to a preset verification algorithm. Upgrade the software version for verification. If the verification is successful, load the extracted software version to be upgraded.
  • the technical solution of the present application by verifying the obtained software version to be upgraded, effectively avoids the situation that the software version to be upgraded has its own error, improves the stability of the software version upgrade, and improves the stability of the communication device, thereby ensuring the stability.
  • FIG. 1 is a flowchart of a method for implementing software version upgrade according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a device for implementing software version upgrade according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing software version upgrade according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • Step 101 When the communication device detects the pre-set storage space and saves the software version to be upgraded, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
  • the method further includes: when receiving the upgrade request from the preset database in the communication network, obtaining the software version to be upgraded from the database, and saving the obtained software version to be upgraded to the storage space.
  • the upgrade request from the preset database in the communication network
  • obtaining the software version to be upgraded from the database and saving the obtained software version to be upgraded to the storage space.
  • the software version to be upgraded is obtained from the database via the communication network, and the obtained software version to be upgraded is saved to the storage space.
  • the specific implementation of the information obtained from the database and saved by the communication network is a common technical means for those skilled in the art, and is not intended to limit the scope of protection of the present application, and details are not described herein again.
  • the verification algorithm in step 101 is a message digest algorithm 5 (MD5) known to those skilled in the art.
  • MD5 verification information also referred to as MD5 fingerprint information in the field
  • the verification algorithm is performed according to the extracted MD5 verification information. That is, MD5, verify the extracted software version to be upgraded.
  • step 101 the specific implementation of verifying the extracted software version to be upgraded according to the verification algorithm in step 101 belongs to the technical means of those skilled in the art, and is not intended to limit the scope of protection of the present application. .
  • Step 102 If the verification is successful, the communication device performs loading processing on the extracted software version to be upgraded.
  • the method of the embodiment of the present invention further includes: returning to continue to perform obtaining the soft to be upgraded
  • the step of the version that is, return to continue: obtain the software version to be upgraded from the database, and save the obtained software version to be upgraded to the storage space.
  • the extracted software version to be upgraded can be used to upgrade the firmware.
  • the specific implementation of loading the extracted software version to be upgraded in step 102 is as follows: loading the extracted software version to be upgraded into the firmware.
  • the extracted software version to be upgraded can also be used to upgrade the operating system.
  • the specific implementation of loading the extracted software version to be upgraded in step 102 is as follows: upgrading the operating system by using the extracted software version to be upgraded.
  • the software version to be upgraded is saved in the version file. At this time, it can be judged by the type represented by the extension of the version file whether the extracted software version to be upgraded is used for upgrading firmware or for upgrading the operating system.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • FIG. 2 is a schematic structural diagram of a device for implementing software version upgrade according to an embodiment of the present invention, where the device is disposed in a communication device.
  • the apparatus of the embodiment of the present invention includes a verification unit and a loading unit, where
  • the verification unit is configured to: when the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
  • the verification algorithm is the message digest algorithm 5 (MD5, Message Digest Algorithm 5).
  • the loading unit is configured to perform loading processing on the software version to be upgraded after the verification unit extracts when the verification unit indicates that the verification is successful.
  • the apparatus of the embodiment of the present invention further includes an obtaining unit configured to: when receiving an upgrade request from a preset database in the communication network, or when the verification unit indicates that the verification fails, obtain the software version to be upgraded from the database, and obtain the obtained The upgrade software version is saved to the storage space.
  • the loading unit is specifically configured to: when the verification unit indicates that the verification is successful, load the extracted software version to be upgraded into the firmware.
  • the loading unit is specifically configured to: when the verification unit indicates that the verification is successful, the operating system is upgraded by using the extracted software version to be upgraded.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the above technical solution effectively avoids the situation that the software version to be upgraded has its own error, improves the stability of the software version upgrade, and improves the stability of the communication device, thereby ensuring the user experience of the communication device providing the service.

Landscapes

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

Abstract

A software version updating method and apparatus, the method comprising: extracting authentication information from a software version detected to be updated when a software version to be updated is detected in a preset storage space, and performing authentication on the extracted authentication information of the software version to be updated according to a preset authentication algorithm; and if the authentication is successful, downloading an update of the software version to be updated. The above technical solution improves stability in updating software versions, and correspondingly improves stability of a communication device, thereby ensuring user experience when a communication device provides a service.

Description

一种实现软件版本升级的方法和装置Method and device for implementing software version upgrade 技术领域Technical field
本文涉及但不限于软件版本管理技术,尤指一种实现软件版本升级的方法和装置。This document refers to, but is not limited to, software version management technology, especially a method and apparatus for implementing software version upgrade.
背景技术Background technique
目前,各种通信设备如移动终端、网络接入设备、或者网络交换设备等等通常支持软件版本升级,如固件版本升级和操作***软件版本升级等。其中,固件通常为可编程器件如中央处理单元(CPU)的引导芯片、复杂可编程逻辑器件(CPLD,Complex Programable Logic Device)、或现场可编程逻辑门阵列(FPGA,Field Program Gates Array)等。Currently, various communication devices such as mobile terminals, network access devices, or network switching devices and the like generally support software version upgrades, such as firmware version upgrades and operating system software version upgrades. The firmware is usually a programmable device such as a central processing unit (CPU) boot chip, a Complex Programmable Logic Device (CPLD), or a Field Program Gates Array (FPGA).
以固件版本升级为例来看,其软件版本升级的方法大致包括:从通信网络中的预先设置的数据库中获取待升级软件版本;将获得的待升级软件版本加载到固件,以升级固件的功能。当例如在获取待升级软件版本的通信中数据传输错误导致获得的待升级软件版本自身错误时,相关软件版本升级的方法由于无法发现这种自身错误,因此在获得的待升级软件版本自身错误的情况下仍然进行加载的步骤,这样导致升级后的固件不能正常工作,相应导致通信设备不能正常工作甚至宕机,从而降低了通信设备的稳定性,影响了通信设备提供服务的用户体验。Taking the firmware version upgrade as an example, the software version upgrade method generally includes: obtaining the software version to be upgraded from a preset database in the communication network; loading the obtained software version to be upgraded into the firmware to upgrade the firmware function. . When, for example, the data transmission error in the communication for obtaining the software version to be upgraded causes the obtained software version to be upgraded to be wrong by itself, the method of upgrading the related software version cannot find such a self-error, and thus the obtained software version to be upgraded is wrong by itself. In the case that the loading step is still performed, the upgraded firmware does not work normally, and the communication device cannot work normally or even down, thereby reducing the stability of the communication device and affecting the user experience of the communication device providing the service.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。(The following is a brief summary of subject matter that is described in greater detail herein.This summary is not intended to be limiting as to the scope of the claims.) The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims. (The following is a brief summary of subject matter that is described in greater detail herein. This summary is not intended to be limiting as to the scope of the claims.)
本发明实施例提供了一种实现软件版本升级的方法和装置,能够提高软件版本升级的稳定性,从而提高通信设备的稳定性。The embodiment of the invention provides a method and a device for implementing software version upgrade, which can improve the stability of the software version upgrade, thereby improving the stability of the communication device.
本发明实施例公开了一种实现软件版本升级的方法,包括:The embodiment of the invention discloses a method for implementing software version upgrade, which comprises:
检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证;When the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
如果验证成功,对提取后的待升级软件版本进行加载处理。If the verification is successful, load the extracted software version to be upgraded.
可选的,所述方法还包括::接收到来自通信网络中的预先设置的数据库的升级请求时,从所述数据库中获取待升级软件版本,并将获得的待升级软件版本保存到所述存储空间。Optionally, the method further includes: when receiving an upgrade request from a preset database in the communication network, obtaining a software version to be upgraded from the database, and saving the obtained software version to be upgraded to the storage.
可选的,所述方法还包括:如果验证失败,返回继续执行所述获取待升级软件版本的步骤。Optionally, the method further includes: if the verification fails, returning to the step of obtaining the software version to be upgraded.
可选的,,所述对提取后的待升级软件版本进行加载处理包括:若所述提取后的待升级软件版本用于升级固件,将所述提取后的待升级软件版本加载到固件中。Optionally, the loading process of the extracted software version to be upgraded includes: if the extracted software version to be upgraded is used to upgrade firmware, loading the extracted software version to be upgraded into the firmware.
可选的,所述对提取后的待升级软件版本进行加载处理包括:若所述提取后的待升级软件版本用于升级操作***,利用所述提取后的待升级软件版本升级操作***。Optionally, the performing the loading process on the extracted software version to be upgraded includes: if the extracted software version to be upgraded is used to upgrade the operating system, the operating system is upgraded by using the extracted software version to be upgraded.
可选的,所述验证算法为信息摘要算法5MD5。Optionally, the verification algorithm is an information digest algorithm 5MD5.
本发明实施例还公开了一种实现软件版本升级的装置,包括验证单元和加载单元,其中,The embodiment of the invention further discloses an apparatus for implementing software version upgrade, which comprises a verification unit and a loading unit, wherein
验证单元,设置为检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证;The verification unit is configured to: when the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm;
加载单元,设置为当验证单元指示验证成功时,对验证单元提取后的待升级软件版本进行加载处理。The loading unit is configured to perform loading processing on the software version to be upgraded after the verification unit extracts when the verification unit indicates that the verification is successful.
可选的,本发明实施例装置还包括获取单元,设置为在接收到来自通信网络中的预先设置的数据库的升级请求时,或者所述验证单元指示验证失败 时,从所述数据库中获取待升级软件版本,并将获得的待升级软件版本保存到所述存储空间。Optionally, the apparatus of the embodiment of the present invention further includes an obtaining unit, configured to: when receiving an upgrade request from a preset database in the communication network, or the verification unit indicates that the verification fails The software version to be upgraded is obtained from the database, and the obtained software version to be upgraded is saved to the storage space.
可选的,所述加载单元具体是设置为:若所述提取后的待升级软件版本用于升级固件,当验证单元指示验证成功时,将所述提取后的待升级软件版本加载到固件中。。Optionally, the loading unit is specifically configured to: if the extracted software version to be upgraded is used to upgrade firmware, when the verification unit indicates that the verification is successful, the extracted software version to be upgraded is loaded into the firmware. . .
可选的,所述加载单元具体是设置为:若所述提取后的待升级软件版本用于升级操作***,当验证单元指示验证成功时,利用所述提取后的待升级软件版本升级操作***。Optionally, the loading unit is specifically configured to: if the extracted software version to be upgraded is used to upgrade an operating system, when the verification unit indicates that the verification is successful, the operating system is upgraded by using the extracted software version to be upgraded. .
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
与相关技术相比,本申请技术方案包括检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证;如果验证成功,对提取后的待升级软件版本进行加载处理。本申请技术方案,通过对获得的待升级软件版本进行验证,有效避免了待升级软件版本出现自身错误的情况,提高了软件版本升级的稳定性,相应提高了通信设备的稳定性,从而保证了通信设备提供服务的用户体验。Compared with the related art, the technical solution of the present application includes: when detecting a pre-set storage space and saving a software version to be upgraded, extracting the verification information in the detected software version to be upgraded, and performing the extracted verification according to a preset verification algorithm. Upgrade the software version for verification. If the verification is successful, load the extracted software version to be upgraded. The technical solution of the present application, by verifying the obtained software version to be upgraded, effectively avoids the situation that the software version to be upgraded has its own error, improves the stability of the software version upgrade, and improves the stability of the communication device, thereby ensuring the stability. The user experience of the communication device providing the service.
在阅读并理解了附图和详细描述后,可以明白其他方面。(Other aspects will be appreciated upon reading and understanding the attached figures and detailed description)Other aspects will be apparent upon reading and understanding the drawings and detailed description. (Other aspects will be appreciated upon reading and understanding the attached figures and detailed description)
附图概述BRIEF abstract
图1为本发明实施例实现软件版本升级的方法的流程图;1 is a flowchart of a method for implementing software version upgrade according to an embodiment of the present invention;
图2为本发明实施例实现软件版本升级的装置的组成结构示意图。FIG. 2 is a schematic structural diagram of a device for implementing software version upgrade according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本发明实施例实现软件版本升级的方法的流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for implementing software version upgrade according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
步骤101:通信设备检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证。Step 101: When the communication device detects the pre-set storage space and saves the software version to be upgraded, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
本步骤之前还包括:接收到来自通信网络中的预先设置的数据库的升级请求时,从数据库中获取待升级软件版本,并将获得的待升级软件版本保存到存储空间。举例来看:Before the step, the method further includes: when receiving the upgrade request from the preset database in the communication network, obtaining the software version to be upgraded from the database, and saving the obtained software version to be upgraded to the storage space. For example:
通信设备接收到来自数据库的升级请求时,经由通信网络从数据库中获取待升级软件版本,并将获得的待升级软件版本保存到存储空间。其中,经由通信网络从数据库中获取信息并保存的具体实现,属于本领域技术人员的惯用技术手段,并不用于限定本申请的保护范围,此处不再赘述。When the communication device receives the upgrade request from the database, the software version to be upgraded is obtained from the database via the communication network, and the obtained software version to be upgraded is saved to the storage space. The specific implementation of the information obtained from the database and saved by the communication network is a common technical means for those skilled in the art, and is not intended to limit the scope of protection of the present application, and details are not described herein again.
在本发明实施例中,步骤101中的验证算法为本领域技术人员公知的信息摘要算法5(MD5,Message Digest Algorithm 5)。此时,检测出存储空间保存有待升级软件版本时,提取待升级软件版本中的验证信息即MD5验证信息(本领域中也称为MD5指纹信息),然后根据提取出的MD5验证信息按照验证算法即MD5,对提取后的待升级软件版本进行验证。In the embodiment of the present invention, the verification algorithm in step 101 is a message digest algorithm 5 (MD5) known to those skilled in the art. At this time, when the software version to be upgraded is saved, the verification information in the software version to be upgraded is extracted, that is, MD5 verification information (also referred to as MD5 fingerprint information in the field), and then the verification algorithm is performed according to the extracted MD5 verification information. That is, MD5, verify the extracted software version to be upgraded.
需要说明的是,步骤101中按照验证算法对提取后的待升级软件版本进行验证的具体实现,属于本领域技术人员的惯用技术手段,并不用于限定本申请的保护范围,此处不再赘述。It should be noted that the specific implementation of verifying the extracted software version to be upgraded according to the verification algorithm in step 101 belongs to the technical means of those skilled in the art, and is not intended to limit the scope of protection of the present application. .
步骤102:如果验证成功,通信设备对提取后的待升级软件版本进行加载处理。Step 102: If the verification is successful, the communication device performs loading processing on the extracted software version to be upgraded.
如果验证失败,本发明实施例方法还包括:返回继续执行获取待升级软 件版本的步骤,也就是说,返回继续执行:从数据库中获取待升级软件版本,并将获得的待升级软件版本保存到存储空间。这样,验证失败时支持重新进行软件版本升级,从而提高了实现软件版本升级的方法的稳定性。If the verification fails, the method of the embodiment of the present invention further includes: returning to continue to perform obtaining the soft to be upgraded The step of the version, that is, return to continue: obtain the software version to be upgraded from the database, and save the obtained software version to be upgraded to the storage space. In this way, when the verification fails, the software version upgrade is supported, thereby improving the stability of the method for implementing the software version upgrade.
提取后的待升级软件版本可以用于升级固件。此时,步骤102中对提取后的待升级软件版本进行加载处理的具体实现为:将提取后的待升级软件版本加载到固件。The extracted software version to be upgraded can be used to upgrade the firmware. At this time, the specific implementation of loading the extracted software version to be upgraded in step 102 is as follows: loading the extracted software version to be upgraded into the firmware.
提取后的待升级软件版本还可以用于升级操作***。此时,步骤102中对提取后的待升级软件版本进行加载处理的具体实现为:利用提取后的待升级软件版本升级操作***。The extracted software version to be upgraded can also be used to upgrade the operating system. At this time, the specific implementation of loading the extracted software version to be upgraded in step 102 is as follows: upgrading the operating system by using the extracted software version to be upgraded.
其中,利用提取后的待升级软件版本升级操作***的具体实现,属于本领域技术人员的惯用技术手段,并不用于限定本申请的保护范围,此处不再赘述。The specific implementation of upgrading the operating system by using the extracted software version to be upgraded is a common technical means for those skilled in the art, and is not intended to limit the scope of protection of the present application, and details are not described herein again.
在本发明的实施例中,待升级软件版本保存在版本文件中。此时,可以通过版本文件的扩展名代表的类型判断提取后的待升级软件版本是用于升级固件还是用于升级操作***。In an embodiment of the invention, the software version to be upgraded is saved in the version file. At this time, it can be judged by the type represented by the extension of the version file whether the extracted software version to be upgraded is used for upgrading firmware or for upgrading the operating system.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
图2为本发明实施例实现软件版本升级的装置的组成结构示意图,该装置设置在通信设备中。如图2所示,本发明实施例装置包括验证单元和加载单元,其中,FIG. 2 is a schematic structural diagram of a device for implementing software version upgrade according to an embodiment of the present invention, where the device is disposed in a communication device. As shown in FIG. 2, the apparatus of the embodiment of the present invention includes a verification unit and a loading unit, where
验证单元,设置为检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证。The verification unit is configured to: when the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
其中,验证算法为信息摘要算法5(MD5,Message Digest Algorithm 5)。The verification algorithm is the message digest algorithm 5 (MD5, Message Digest Algorithm 5).
加载单元,设置为当验证单元指示验证成功时,对验证单元提取后的待升级软件版本进行加载处理。The loading unit is configured to perform loading processing on the software version to be upgraded after the verification unit extracts when the verification unit indicates that the verification is successful.
可选地, Optionally,
本发明实施例装置还包括获取单元,设置为在接收到来自通信网络中的预先设置的数据库的升级请求,或者验证单元指示验证失败时,从数据库中获取待升级软件版本,并将获得的待升级软件版本保存到存储空间。The apparatus of the embodiment of the present invention further includes an obtaining unit configured to: when receiving an upgrade request from a preset database in the communication network, or when the verification unit indicates that the verification fails, obtain the software version to be upgraded from the database, and obtain the obtained The upgrade software version is saved to the storage space.
当提取后的待升级软件版本用于升级固件时,加载单元具体是设置为:当验证单元指示验证成功时,将提取后的待升级软件版本加载到固件中。When the extracted software version to be upgraded is used to upgrade the firmware, the loading unit is specifically configured to: when the verification unit indicates that the verification is successful, load the extracted software version to be upgraded into the firmware.
当提取后的待升级软件版本用于升级操作***时,加载单元具体是设置为:当验证单元指示验证成功时,利用提取后的待升级软件版本升级操作***。When the extracted software version to be upgraded is used to upgrade the operating system, the loading unit is specifically configured to: when the verification unit indicates that the verification is successful, the operating system is upgraded by using the extracted software version to be upgraded.
虽然本申请所揭露的实施方式如上所述,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。The embodiments disclosed in the present application are as described above, but the description is only for the purpose of understanding the present application, and is not intended to limit the present application.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
上述技术方案有效避免了待升级软件版本出现自身错误的情况,提高了软件版本升级的稳定性,相应提高了通信设备的稳定性,从而保证了通信设备提供服务的用户体验。 The above technical solution effectively avoids the situation that the software version to be upgraded has its own error, improves the stability of the software version upgrade, and improves the stability of the communication device, thereby ensuring the user experience of the communication device providing the service.

Claims (11)

  1. 一种实现软件版本升级的方法,包括:A method for implementing software version upgrades, including:
    检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证;When the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm.
    如果验证成功,对提取后的待升级软件版本进行加载处理。If the verification is successful, load the extracted software version to be upgraded.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    接收到来自通信网络中的预先设置的数据库的升级请求时,从所述数据库中获取待升级软件版本,并将获得的待升级软件版本保存到所述存储空间。When receiving an upgrade request from a preset database in the communication network, the software version to be upgraded is obtained from the database, and the obtained software version to be upgraded is saved to the storage space.
  3. 根据权利要求2所述的方法,所述方法还包括:The method of claim 2, the method further comprising:
    如果验证失败,返回继续执行所述获取待升级软件版本的步骤。If the verification fails, return to the step of obtaining the software version to be upgraded.
  4. 根据权利要求1、2或3所述的方法,其中,所述对提取后的待升级软件版本进行加载处理包括:The method according to claim 1, 2 or 3, wherein the loading processing of the extracted software version to be upgraded comprises:
    若所述提取后的待升级软件版本用于升级固件,将所述提取后的待升级软件版本加载到固件中。If the extracted software version to be upgraded is used to upgrade firmware, the extracted software version to be upgraded is loaded into the firmware.
  5. 根据权利要求1、2或3所述的方法,其中,所述对提取后的待升级软件版本进行加载处理包括:The method according to claim 1, 2 or 3, wherein the loading processing of the extracted software version to be upgraded comprises:
    若所述提取后的待升级软件版本用于升级操作***,利用所述提取后的待升级软件版本升级操作***。If the extracted version of the software to be upgraded is used to upgrade the operating system, the operating system is upgraded by using the extracted software version to be upgraded.
  6. 根据权利要求1、2或3所述的方法,其中,所述验证算法包括信息摘要算法5MD5。The method of claim 1, 2 or 3, wherein the verification algorithm comprises a message digest algorithm 5MD5.
  7. 一种实现软件版本升级的装置,包括验证单元和加载单元,其中,A device for implementing software version upgrade, comprising a verification unit and a loading unit, wherein
    验证单元,设置为检测出预先设置的存储空间保存有待升级软件版本时,提取检测出的待升级软件版本中的验证信息,并按照预先设置的验证算法对提取后的待升级软件版本进行验证;The verification unit is configured to: when the software version to be upgraded is saved, the verification information in the detected software version to be upgraded is extracted, and the extracted software version to be upgraded is verified according to a preset verification algorithm;
    加载单元,设置为当验证单元指示验证成功时,对验证单元提取后的待 升级软件版本进行加载处理。Loading unit, set to wait for the verification unit to be extracted when the verification unit indicates that the verification is successful Upgrade the software version for loading processing.
  8. 根据权利要求7所述的装置,该装置还包括获取单元,设置为在接收到来自通信网络中的预先设置的数据库的升级请求时,或者所述验证单元指示验证失败时,从所述数据库中获取待升级软件版本,并将获得的待升级软件版本保存到所述存储空间。The apparatus according to claim 7, further comprising an acquisition unit configured to, when receiving an upgrade request from a preset database in the communication network, or when the verification unit indicates that the verification failed, from the database Obtain the software version to be upgraded, and save the obtained software version to be upgraded to the storage space.
  9. 根据权利要求7或8所述的装置,其中,The apparatus according to claim 7 or 8, wherein
    所述加载单元是设置为:若所述提取后的待升级软件版本用于升级固件,当验证单元指示验证成功时,将所述提取后的待升级软件版本加载到固件中。The loading unit is configured to: if the extracted software version to be upgraded is used to upgrade firmware, when the verification unit indicates that the verification is successful, the extracted software version to be upgraded is loaded into the firmware.
  10. 根据权利要求7或8所述的装置,其中,The apparatus according to claim 7 or 8, wherein
    所述加载单元具体是设置为:若所述提取后的待升级软件版本用于升级操作***,当验证单元指示验证成功时,利用所述提取后的待升级软件版本升级操作***。The loading unit is specifically configured to: if the extracted software version to be upgraded is used to upgrade the operating system, when the verification unit indicates that the verification is successful, the operating system is upgraded by using the extracted software version to be upgraded.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~6中任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 6.
PCT/CN2015/084968 2015-02-13 2015-07-23 Software version updating method and apparatus WO2016127587A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510082662.2 2015-02-13
CN201510082662.2A CN105989293A (en) 2015-02-13 2015-02-13 Method and apparatus for implementing upgrade of software version

Publications (1)

Publication Number Publication Date
WO2016127587A1 true WO2016127587A1 (en) 2016-08-18

Family

ID=56614205

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084968 WO2016127587A1 (en) 2015-02-13 2015-07-23 Software version updating method and apparatus

Country Status (2)

Country Link
CN (1) CN105989293A (en)
WO (1) WO2016127587A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716727A (en) * 2019-09-02 2020-01-21 领翌技术(横琴)有限公司 Software upgrading method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069272B (en) * 2019-04-29 2023-07-25 新华三技术有限公司 Logic file upgrading method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791859A (en) * 2003-05-19 2006-06-21 索尼爱立信移动通讯股份有限公司 Methods and apparatus for generating upgraded software from initial software and software upgrade packages
CN101425114A (en) * 2008-12-12 2009-05-06 四川长虹电器股份有限公司 Software upgrading bag packaging method and software upgrading method
CN104063656A (en) * 2014-07-07 2014-09-24 浪潮软件集团有限公司 Method for realizing application program management and control under Android platform
CN104166565A (en) * 2014-08-11 2014-11-26 成都瑞博慧窗信息技术有限公司 Intelligent display terminal firmware updating method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454250C (en) * 2005-10-25 2009-01-21 北京飞天诚信科技有限公司 Long-distance updating method of fixed programm of information safety apparatus
CN101373440B (en) * 2008-10-09 2011-12-28 飞天诚信科技股份有限公司 Method and device for processing firmware upgrading data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791859A (en) * 2003-05-19 2006-06-21 索尼爱立信移动通讯股份有限公司 Methods and apparatus for generating upgraded software from initial software and software upgrade packages
CN101425114A (en) * 2008-12-12 2009-05-06 四川长虹电器股份有限公司 Software upgrading bag packaging method and software upgrading method
CN104063656A (en) * 2014-07-07 2014-09-24 浪潮软件集团有限公司 Method for realizing application program management and control under Android platform
CN104166565A (en) * 2014-08-11 2014-11-26 成都瑞博慧窗信息技术有限公司 Intelligent display terminal firmware updating method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716727A (en) * 2019-09-02 2020-01-21 领翌技术(横琴)有限公司 Software upgrading method and system

Also Published As

Publication number Publication date
CN105989293A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US9436827B2 (en) Attesting a component of a system during a boot process
CN102736978B (en) A kind of method and device detecting the installment state of application program
US8607330B2 (en) Orderly change between new and old passwords
US20170322796A1 (en) Device and method for updating firmware and firmware update system
WO2017166446A1 (en) Vulnerability-fixing method and device
US20130138934A1 (en) Loading configuration information
US9959125B2 (en) Field update of boot loader using regular device firmware update procedure
US10437580B2 (en) Software updating methods and systems
CN101504704B (en) Star trust chain supporting embedded platform application program integrality verification method
US8725995B1 (en) Systems and methods for updating system-level services within read-only system images
KR20120052406A (en) Firmware image update and management
US10212034B1 (en) Automated network change management
WO2016183951A1 (en) System upgrade method and terminal
WO2018032757A1 (en) Method and device for updating component
CN110225078B (en) Application service updating method, system and terminal equipment
US10235048B2 (en) Data processing method and smart device
CN107844306B (en) Application program repairing method and device, storage medium and terminal
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
US11347494B2 (en) Installing patches during upgrades
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
WO2016127587A1 (en) Software version updating method and apparatus
WO2021012170A1 (en) Firmware booting method and device, and computer-readable storage medium
KR101461319B1 (en) Methods and device for upgrading firmware of set-top box
US20110185353A1 (en) Mitigating Problems Arising From Incompatible Software
US20150112940A1 (en) System, information processing apparatus, acquisition method, and recording 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: 15881747

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

Country of ref document: EP

Kind code of ref document: A1