WO2016145798A1 - 一种嵌入式系统的应用程序的升级方法及升级装置 - Google Patents

一种嵌入式系统的应用程序的升级方法及升级装置 Download PDF

Info

Publication number
WO2016145798A1
WO2016145798A1 PCT/CN2015/088995 CN2015088995W WO2016145798A1 WO 2016145798 A1 WO2016145798 A1 WO 2016145798A1 CN 2015088995 W CN2015088995 W CN 2015088995W WO 2016145798 A1 WO2016145798 A1 WO 2016145798A1
Authority
WO
WIPO (PCT)
Prior art keywords
reset
embedded system
random access
access memory
dynamic random
Prior art date
Application number
PCT/CN2015/088995
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 WO2016145798A1 publication Critical patent/WO2016145798A1/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

  • This paper relates to the field of upgrade technology for embedded system applications, and in particular to an upgrade method and an upgrade device for an embedded system application.
  • a PTN (Packet Transport Network) device running on the core network requires a stable service and a long online running time.
  • a hardware design defect is found, it needs to be circumvented by upgrading the system, or the software itself needs to be solved. If the system version is upgraded, it is better to do so without affecting the normal service forwarding function of the current embedded device.
  • the system upgrade steps under normal conditions include:
  • the technical problem to be solved by the present invention is to provide an upgrade method and an upgrade device for an embedded system, which can solve the problem that the external service chip data is damaged during the application upgrade process of the embedded system.
  • An upgrade method for an application of an embedded system including:
  • the data information is extracted and restored from the designated area of the dynamic random access memory.
  • the method further includes:
  • the data information includes: external service chip data;
  • the step of saving the data information in the embedded system reset process to the designated area of the dynamic random access memory according to the upgrade mode flag information includes:
  • the step of resetting the embedded system according to the reset instruction comprises:
  • the step of extracting and restoring the data information from the designated area of the dynamic random access memory after the resetting of the embedded system includes:
  • the external service chip data is restored.
  • An apparatus for upgrading an application of an embedded system comprising an acquisition module, a first save module, a reset module, and a data recovery module, wherein:
  • the obtaining module is configured to: obtain a lossless service reset request, where the reset request carries a lossless service upgrade mode flag information of an application to be upgraded;
  • the first saving module is configured to: save the data information in the reset process of the embedded system to a designated area of the dynamic random access memory according to the upgrade mode flag information, to generate a reset instruction;
  • the reset module is configured to: reset the embedded system according to the reset instruction;
  • the data recovery module is configured to extract and restore the data information from the designated area of the dynamic random access memory after the embedded system is reset.
  • the upgrading apparatus further includes a second saving module, where:
  • the second saving module is configured to: save the lossless service upgrade mode flag information in the designated area of the dynamic random access memory.
  • the data information includes: external service chip data;
  • the first saving module includes a first saving submodule and a second saving submodule, wherein:
  • the first saving submodule is configured to: save the external service chip data into a designated area of the dynamic random access memory according to the upgrade mode flag information;
  • the second saving submodule is configured to: obtain a first check value according to the external service chip data, and save the first check value into the designated area.
  • the reset module includes a reset submodule, wherein:
  • the reset submodule is configured to perform pre-reset processing and reset post-restart processing on the embedded system according to the reset instruction.
  • the data recovery module includes an extraction submodule, an acquisition submodule, a comparison submodule, a verification submodule, and a recovery submodule, where:
  • the extraction submodule is configured to: after the reset of the embedded system, extract the external service chip data and the first check value from the designated area of the dynamic random access memory;
  • the obtaining submodule is configured to: obtain a second check value according to the external service chip data;
  • the comparison submodule is configured to compare the first check value and the second check value to obtain a comparison result
  • the syndrome module is configured to: when the comparison result indicates that the first check value and the second check value are the same, the upgrade mode flag saved in the designated area of the dynamic random access memory Information is verified;
  • the recovery sub-module is configured to: restore the external service chip data when the verification result indicates that the upgrade mode flag information is lossless service upgrade flag information.
  • a computer program comprising program instructions that, when executed by a computer, cause the computer to perform an upgrade method of an application of any of the embedded systems described above.
  • the external service chip data is first saved, and then the external service chip data is restored after the embedded system is reset.
  • the embedded system does not damage the external service chip data during the upgrade process, thereby improving the reliability of the system; in addition, since the external service chip data is saved in the dynamic random access memory of the embedded system itself during the reset process, the cost is reduced. Reduced system access time and improved efficiency.
  • FIG. 1 is a flow chart showing an upgrade method of an application program of an embedded system according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of an embedded system according to a specific embodiment of the present invention.
  • FIG. 3 is a schematic diagram showing the spatial division of a dynamic random access memory of an embedded system according to a specific embodiment of the present invention
  • FIG. 4 is a schematic diagram 1 showing a resetting process of an embedded system according to a specific embodiment of the present invention
  • FIG. 5 is a second schematic diagram showing a resetting process of an embedded system according to a specific embodiment of the present invention.
  • FIG. 6 is a schematic diagram showing a initialization process of a dynamic random access memory after power-on of an embedded system according to a specific embodiment of the present invention
  • FIG. 7 is a schematic structural diagram 1 of an apparatus for upgrading an application of an embedded system according to an embodiment of the present invention
  • FIG. 8 is a second schematic structural diagram of an apparatus for upgrading an application of an embedded system according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram 3 of an apparatus for upgrading an application of an embedded system according to an embodiment of the present invention.
  • FIG. 10 is a fourth structural diagram showing an apparatus for upgrading an application of an embedded system according to an embodiment of the present invention.
  • an application upgrade method of an embedded system includes:
  • Step 11 Acquire a lossless service reset request, where the reset request carries a lossless service upgrade mode flag information of an application to be upgraded;
  • Step 12 according to the upgrade mode flag information, save the data information in the embedded system reset process to a designated area of the dynamic random access memory, and generate a reset instruction;
  • Step 13 resetting the embedded system according to the reset instruction
  • Step 14 After the embedded system is reset, extract and recover the data information from the designated area of the dynamic random access memory.
  • an embedded system includes: a reset circuit, a central processing system, a dynamic random access memory, and an external service chip; wherein the dynamic random access memory is as shown in FIG. Divided into two areas, respectively, used to save embedded systems Area 1 of the data in the process and area 2 for saving data information during the reset of the embedded system.
  • the reset circuit When it is necessary to upgrade an application of the embedded system, first performing step 400, the reset circuit generates a reset request, wherein the reset request carries a lossless service upgrade mode identification information A of an application to be upgraded;
  • the reset signal processing program receives the reset request from the reset circuit
  • step 402 the central processor system determines whether the upgrade mode flag information is the lossless service upgrade mode identification information A; if not, executing step 408, the central processor system generates a reset command, and the reset signal processing program notifies the central processing The system performs a reset operation of the embedded system; if yes, the lossless service upgrade mode identification information A in the reset request is saved to the area 2 specified by the dynamic random access memory, and step 403 is performed;
  • the step 403 notifies the central processor system of the lossless service reset operation of the embedded system for the reset signal processing program
  • step 404 the central processor system notifies the data save/restore program, and the embedded system needs to be reset;
  • step 405 the data save/restore program saves the external service chip data to the area 2 specified by the dynamic random access memory, and completes the data saving;
  • step 406 the central processing system acquires the first check value B according to the external service chip data, and writes the check value B to the designated position of the area 2;
  • step 407 the central processing system notifies that the data information in the reset system processing system reset process is completed; wherein the data information in the embedded system reset process includes: external service chip data and/or a check value;
  • step 408 the central processor system generates a reset instruction, and the reset signal processing program notifies the central processing system to perform an execution reset operation of the embedded system (the reset includes the system reset pre-processing and the reset restart post-processing, the embodiment of the present invention During the reset of the embedded system according to the reset command, the data in the reset process stored in the designated area 2 of the dynamic random access memory is not lost.
  • the embedded system After the execution of the above step 408 is completed, the embedded system performs a reset operation according to the reset instruction.
  • Step 501 is performed to complete the dynamic random access memory related operation process.
  • the specific execution process of the step 501 is as shown in FIG. 6 and includes:
  • Step 601 the central processing system detects the size of the dynamic random access memory space area
  • Step 602 The central processor system initializes the area 1 of the dynamic random access memory.
  • Step 603 notifying the central processor system that the size of the spatial area of the dynamic random access memory is the size of the area 1;
  • step 604 the dynamic random access memory initialization ends.
  • step 502 is executed, after the embedded system is powered on again, the central processing system notifies the data save/restore program to extract the embedded system reset process from the area 2 specified by the dynamic random access memory.
  • Data information (external service chip data and/or first check value B);
  • step 503 the central processor system acquires a second check value C according to the extracted external service chip data
  • step 504 the central processing system compares the first check value B and the second check value C, and determines whether the first check value B and the second check value C are the same; If the same, the external service chip is reset, and the external service chip is initialized and the external service chip data is sent. Step 508 is executed, and the process ends; if they are the same, step 505 is performed;
  • step 505 the central processing unit determines the upgrade mode identification information stored in the area 2, and determines whether it is the lossless service upgrade mode flag A. If not, the current process ends; if yes, step 506 is performed;
  • step 506 the central processing system notifies the data save/restore program to restore the external service chip data
  • step 507 is performed to clear the lossless service upgrade mode flag information A
  • step 508 is executed, and the process ends.
  • the solution of the embodiment of the present invention can complete the application upgrade of the embedded system, does not affect the operation of the related service, and improves the reliability of the embedded system; and the additional solution is not used in the technical solution of the present invention. Instead, it uses the dynamic random access memory of the embedded system itself, which has the advantages of fast access speed and low cost.
  • an embodiment of the present invention further provides an apparatus for upgrading an application of an embedded system, including:
  • the obtaining module 71 is configured to: obtain a lossless service reset request, where the reset request carries a lossless service upgrade mode flag information of an application to be upgraded;
  • the first saving module 72 is configured to: save the data information in the embedded system reset process to the designated area of the dynamic random access memory according to the upgrade mode flag information, to generate a reset instruction;
  • the reset module 73 is configured to: reset the embedded system according to the reset instruction
  • the data recovery module 74 is configured to extract and restore the data information from the designated area of the dynamic random access memory after the embedded system is reset.
  • the upgrade device further includes:
  • the second saving module is configured to: save the lossless service upgrade mode flag information in the designated area of the dynamic random access memory.
  • the data information includes: external service chip data.
  • the first save module 72 as shown in FIG. 8, includes:
  • the first saving submodule 81 is configured to: save the external service chip data to the designated area of the dynamic random access memory according to the upgrade mode flag information;
  • the second saving submodule 82 is configured to: obtain the first check value according to the external service chip data, and save the first check value into the designated area.
  • the reset module 73 as shown in FIG. 9, includes:
  • the reset sub-module 91 is configured to: perform pre-reset processing and post-reset post-processing on the embedded system according to the reset instruction.
  • the data recovery module 74 includes:
  • the extraction submodule 101 is configured to: after the reset of the embedded system, extract the external service chip data and the first check value from the designated area of the dynamic random access memory;
  • the obtaining submodule 102 is configured to: obtain a second check value according to the external service chip data;
  • the comparison sub-module 103 is configured to compare the first check value and the second check value to obtain a comparison result
  • the verification sub-module 104 is configured to: when the comparison result indicates that the first verification value and the second verification value are the same, the upgrade mode flag saved in the designated area of the dynamic random access memory Information is verified;
  • the recovery sub-module 105 is configured to: restore the external service chip data when the verification result indicates that the upgrade mode flag information is lossless service upgrade flag information.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to execute an upgrade method of an application of any of the embedded systems described above.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • the upgrade device is a device including the above upgrade method, and the implementation method of the upgrade method is applicable to the embodiment of the upgrade device, and the same technical effect can be achieved.
  • the external service chip data in the process of upgrading the embedded system, in the process of resetting the embedded system, the external service chip data is first saved, and then reset in the embedded system. After that, the external service chip data is restored, so that the embedded system does not damage the external service chip data during the upgrade process, and the reliability of the system is improved; in addition, the external service chip data is saved to the embedded system itself during the reset process.
  • the dynamic random access memory the cost is reduced, the access time of the system is reduced, and the efficiency is improved. Therefore, the present invention has strong industrial applicability.

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)

Abstract

一种嵌入式系统的应用程序的升级方法及升级装置,其中,该升级方法包括:获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息(11);根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令(12);根据所述复位指令对所述嵌入式系统进行复位(13);在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息(14)。嵌入式系统在升级过程中不损伤外部业务芯片数据,提高了系统的可靠性,且由于在复位过程中将外部业务芯片数据保存至系统自身的动态随机存储器中,降低了成本,降低了系统的访问时间,提升了效率。

Description

一种嵌入式系统的应用程序的升级方法及升级装置 技术领域
本文涉及嵌入式系统的应用程序的升级技术领域,特别是涉及一种嵌入式系统的应用程序的升级方法及升级装置。
背景技术
目前,在通信领域中的很多嵌入式装置,特别是长期运行的高可靠性系统及设备对硬件系统和软件系统的可靠性和稳定性要求苛刻。例如运行在核心网的PTN(Packet Transport Network,分组传送网)设备,要求业务稳定且在线运行时间长,在设备运行过程中,如发现硬件设计缺陷需要通过升级系统进行规避,或者软件本身问题需要进行系统版本升级,则最好能在不影响当前嵌入式设备的正常业务转发功能的前提下进行。在正常情况下的系统升级步骤包括:
1)重启;
2)重新加载新应用程序;
3)重新进行芯片配置。
在这个过程中,一般情况下会造成嵌入式系统及外部需要配置的芯片功能无法使用,对转发的数据造成损伤。
发明内容
本发明要解决的技术问题是提供一种嵌入式系统的应用程序的升级方法及升级装置,能够解决目前嵌入式系统的应用程序升级过程中会损伤外部业务芯片数据的问题。
为了解决上述技术问题,采用如下技术方案:
一种嵌入式系统的应用程序的升级方法,包括:
获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息;
根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令;
根据所述复位指令对所述嵌入式系统进行复位;
在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息。
可选地,所述获取一无损业务复位请求的步骤之后,该方法还包括:
将所述无损业务升级方式标志信息保存在所述动态随机存储器的所述指定区域中。
可选地,所述数据信息包括:外部业务芯片数据;
其中,所述根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中的步骤包括:
根据所述升级方式标志信息,将所述外部业务芯片数据保存至所述动态随机存储器的指定区域中;
根据所述外部业务芯片数据,获取第一校验值,并将所述第一校验值保存至所述指定区域中。
可选地,所述根据所述复位指令对所述嵌入式系统进行复位的步骤包括:
根据所述复位指令对所述嵌入式系统进行复位前处理和复位重启后处理。
可选地,所述在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息的步骤包括:
在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取所述外部业务芯片数据以及所述第一校验值;
根据所述外部业务芯片数据,获取第二校验值;
对所述第一校验值和所述第二校验值进行比较,获取比较结果;
在比较结果指示所述第一校验值和所述第二校验值相同时,对所述动态随机存储器的所述指定区域中保存的所述升级方式标志信息进行校验;
在校验结果指示所述升级方式标志信息为无损业务升级标志信息时,恢复所述外部业务芯片数据。
一种嵌入式系统的应用程序的升级装置,包括获取模块、第一保存模块、复位模块和数据恢复模块,其中:
所述获取模块设置成:获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息;
所述第一保存模块设置成:根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令;
所述复位模块设置成:根据所述复位指令对所述嵌入式系统进行复位;
所述数据恢复模块设置成:在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息。
可选地,所述升级装置还包括第二保存模块,其中:
所述第二保存模块设置成:将所述无损业务升级方式标志信息保存在所述动态随机存储器的所述指定区域中。
可选地,所述数据信息包括:外部业务芯片数据;
其中,所述第一保存模块包括第一保存子模块和第二保存子模块,其中:
所述第一保存子模块设置成:根据所述升级方式标志信息,将所述外部业务芯片数据保存至动态随机存储器的指定区域中;
所述第二保存子模块设置成:根据所述外部业务芯片数据,获取第一校验值,并将所述第一校验值保存至所述指定区域中。
可选地,所述复位模块包括复位子模块,其中:
所述复位子模块设置成:根据所述复位指令对所述嵌入式系统进行复位前处理和复位重启后处理。
可选地,所述数据恢复模块包括提取子模块、获取子模块、比较子模块、校验子模块和恢复子模块,其中:
所述提取子模块设置成:在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取所述外部业务芯片数据以及所述第一校验值;
所述获取子模块设置成:根据所述外部业务芯片数据,获取第二校验值;
所述比较子模块设置成:对所述第一校验值和所述第二校验值进行比较,获取比较结果;
所述校验子模块设置成:在比较结果指示所述第一校验值和所述第二校验值相同时,对所述动态随机存储器的所述指定区域中保存的所述升级方式标志信息进行校验;
所述恢复子模块设置成:在校验结果指示所述升级方式标志信息为无损业务升级标志信息时,恢复所述外部业务芯片数据。
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的嵌入式系统的应用程序的升级方法。
一种载有所述的计算机程序的载体。
本发明的上述技术方案的有益效果如下:
本发明的技术方案,在对嵌入式系统的应用程序升级时,在嵌入式系统复位过程中,首先将外部业务芯片数据进行保存,然后在嵌入式系统复位之后,将外部业务芯片数据进行恢复,使得嵌入式系统在升级过程中不损伤外部业务芯片数据,提高了系统的可靠性;另外,由于在复位过程中将外部业务芯片数据保存至嵌入式系统自身的动态随机存储器中,降低了成本,降低了系统的访问时间,提升了效率。
附图概述
图1表示本发明实施例的嵌入式系统的应用程序的升级方法流程示意图;
图2表示本发明的具体实施例的嵌入式系统的结构示意图;
图3表示本发明的具体实施例的嵌入式系统的动态随机存储器的空间划分示意图;
图4表示本发明的具体实施例的嵌入式系统的复位流程示意图一;
图5表示本发明的具体实施例的嵌入式系统的复位流程示意图二;
图6表示发明的具体实施例的嵌入式系统的重新上电后动态随机存储器初始化流程示意图;
图7表示本发明实施例的嵌入式系统的应用程序的升级装置结构示意图一;
图8表示本发明实施例的嵌入式系统的应用程序的升级装置结构示意图二;
图9表示本发明实施例的嵌入式系统的应用程序的升级装置结构示意图三;
图10表示本发明实施例的嵌入式系统的应用程序的升级装置结构示意图四。
本发明的较佳实施方式
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
下面将结合附图及具体实施例进行详细描述。
如图1所示,本发明实施例的嵌入式系统的应用程序的升级方法包括:
步骤11,获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息;
步骤12,根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令;
步骤13,根据所述复位指令对所述嵌入式系统进行复位;
步骤14,在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息。
下面结合附图以及具体的实施例,对上述步骤11至步骤14做详细说明。
如图2所示,在本发明的具体实施例中,嵌入式系统包括:一复位电路,一中央处理器系统,动态随机存储器以及外部业务芯片;其中,该动态随机存储器如图3所示,被划分为两个区域,分别为用于保存嵌入式系统运行过 程中的数据的区域1和用于保存嵌入式系统复位过程中的数据信息的区域2。
下面结合图2和图4对上述步骤11至步骤13作详细描述:
在需要对该嵌入式系统的一应用程序进行升级时,首先执行步骤400,该复位电路产生一复位请求,其中,该复位请求携带有一待升级的应用程序的无损业务升级方式标识信息A;
然后执行步骤401,复位信号处理程序接收来自该复位电路的该复位请求;
然后执行步骤402,该中央处理器系统判断该升级方式标志信息是否为无损业务升级方式标识信息A;若否,则执行步骤408,中央处理器系统产生复位指令,复位信号处理程序通知该中央处理器系统执行嵌入式系统的复位操作;若是,则将该复位请求中的无损业务升级方式标识信息A保存至该动态随机存储器指定的区域2中,并执行步骤403;
该步骤403为复位信号处理程序通知该中央处理器系统进行嵌入式系统的无损业务复位操作;
然后执行步骤404,该中央处理器系统通知数据保存/恢复程序,该嵌入式系统需要复位;
然后执行步骤405,该数据保存/恢复程序将外部业务芯片数据保存至该动态随机存储器指定的区域2中,完成数据保存;
然后执行步骤406,该中央处理器系统根据该外部业务芯片数据,获取第一校验值B,并将该校验值B写入区域2的指定位置;
然后执行步骤407,该中央处理系统通知该复位信号处理程序嵌入式系统复位过程中的数据信息已完成保存;其中,该嵌入式系统复位过程中的数据信息包括:外部业务芯片数据和/或第一校验值;
然后执行步骤408,中央处理器系统产生复位指令,复位信号处理程序通知该中央处理器系统执行嵌入式系统的执行复位操作(该复位包括,系统复位前处理和复位重启后处理,本发明实施例在嵌入式系统根据该复位指令进行复位的过程中,保存于动态随机存储器的指定的区域2中的复位过程中的数据不会丢失)。
下面结合图2、图5和图6,对上述步骤13和步骤14进行详细说明:
在上述步骤408执行完毕后,该嵌入式系统根据该复位指令执行复位操作。
本次复位操作中,复位重启后处理流程如下:
执行步骤501,完成动态随机存储器相关操作流程;其中,该步骤501具体的执行流程,如图6所示,包括:
步骤601,中央处理器系统探测动态随机存储器空间区域大小;
步骤602,中央处理器系统对该动态随机存储器的区域1进行初始化;
步骤603,通知该中央处理器系统该动态随机存储器的空间区域大小为区域1的大小;
步骤604,动态随机存储器初始化结束。
在执行完步骤501后,执行步骤502,嵌入式系统重新上电运行后,该中央处理器系统通知数据保存/恢复程序从该动态随机存储器指定的区域2中提取该嵌入式系统复位过程中的数据信息(外部业务芯片数据和/或第一校验值B);
然后执行步骤503,该中央处理器系统根据该提取出来的外部业务芯片数据,获取第二校验值C;
然后执行步骤504,该中央处理器系统对该第一校验值B和该第二校验值C进行比较,判断该第一校验值B和该第二校验值C是否相同;若不相同,则重新复位外部业务芯片,并执行外部业务芯片的初始化和下发外部业务芯片数据,执行步骤508,本次流程结束;若相同,则执行步骤505;
该步骤505,该中央处理器系统对存储于该区域2中的升级方式标识信息进行判断,判断是否为无损业务升级方式标志A,若不是,则本次流程结束;若是,则执行步骤506;
该步骤506,该中央处理器系统通知数据保存/恢复程序恢复外部业务芯片数据;
然后执行步骤507,清除该无损业务升级方式标志信息A;
然后执行步骤508,本次流程结束。
综上,本发明实施例的方案可以完成嵌入式系统的应用程序升级的前提下,不影响相关业务的运行,提高了嵌入式系统的可靠性;而且本发明的技术方案中没有使用额外的存储器,而是使用嵌入式系统本身的动态随机存储器,具有访问速度快,成本低的优势。
如图7所示,本发明的实施例还提供一种嵌入式系统的应用程序的升级装置,包括:
获取模块71,设置成:获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息;
第一保存模块72,设置成:根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令;
复位模块73,设置成:根据所述复位指令对所述嵌入式系统进行复位;
数据恢复模块74,设置成:在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息。
其中,所述升级装置还包括:
第二保存模块,设置成:将所述无损业务升级方式标志信息保存在所述动态随机存储器的所述指定区域中。
其中,所述数据信息包括:外部业务芯片数据;其中,所述第一保存模块72,如图8所示,包括:
第一保存子模块81,设置成:根据所述升级方式标志信息,将外部业务芯片数据保存至动态随机存储器的指定区域中;
第二保存子模块82,设置成:根据所述外部业务芯片数据,获取第一校验值,并将所述第一校验值保存至所述指定区域中。
其中,所述复位模块73,如图9所示,包括:
复位子模块91,设置成:根据所述复位指令对所述嵌入式系统进行复位前处理和复位重启后处理。
其中,所述数据恢复模块74,如图10所示,包括:
提取子模块101,设置成:在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取所述外部业务芯片数据以及所述第一校验值;
获取子模块102,设置成:根据所述外部业务芯片数据,获取第二校验值;
比较子模块103,设置成:对所述第一校验值和所述第二校验值进行比较,获取比较结果;
校验子模块104,设置成:在比较结果指示所述第一校验值和所述第二校验值相同时,对所述动态随机存储器的所述指定区域中保存的所述升级方式标志信息进行校验;
恢复子模块105,设置成:在校验结果指示所述升级方式标志信息为无损业务升级标志信息时,恢复所述外部业务芯片数据。
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的嵌入式系统的应用程序的升级方法。
本发明实施例还公开了一种载有所述的计算机程序的载体。
需要说明的是,该升级装置是包括上述升级方法的装置,上述升级方法的实现方式适用于该升级装置的实施例中,也能达到相同的技术效果。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
在阅读并理解了附图和详细描述后,可以明白其他方面。
工业实用性
本发明的技术方案,在对嵌入式系统的应用程序升级时,在嵌入式系统复位过程中,首先将外部业务芯片数据进行保存,然后在嵌入式系统复位之 后,将外部业务芯片数据进行恢复,使得嵌入式系统在升级过程中不损伤外部业务芯片数据,提高了系统的可靠性;另外,由于在复位过程中将外部业务芯片数据保存至嵌入式系统自身的动态随机存储器中,降低了成本,降低了系统的访问时间,提升了效率。因此本发明具有很强的工业实用性。

Claims (12)

  1. 一种嵌入式系统的应用程序的升级方法,包括:
    获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息;
    根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令;
    根据所述复位指令对所述嵌入式系统进行复位;
    在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息。
  2. 根据权利要求1所述的升级方法,其中,所述获取一无损业务复位请求的步骤之后,该方法还包括:
    将所述无损业务升级方式标志信息保存在所述动态随机存储器的所述指定区域中。
  3. 根据权利要求1所述的升级方法,其中,
    所述数据信息包括:外部业务芯片数据;
    其中,所述根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中的步骤包括:
    根据所述升级方式标志信息,将所述外部业务芯片数据保存至所述动态随机存储器的指定区域中;
    根据所述外部业务芯片数据,获取第一校验值,并将所述第一校验值保存至所述指定区域中。
  4. 根据权利要求1所述的升级方法,其中,所述根据所述复位指令对所述嵌入式系统进行复位的步骤包括:
    根据所述复位指令对所述嵌入式系统进行复位前处理和复位重启后处理。
  5. 根据权利要求3所述的升级方法,其中,所述在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息的步骤包括:
    在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取所述外部业务芯片数据以及所述第一校验值;
    根据所述外部业务芯片数据,获取第二校验值;
    对所述第一校验值和所述第二校验值进行比较,获取比较结果;
    在比较结果指示所述第一校验值和所述第二校验值相同时,对所述动态随机存储器的所述指定区域中保存的所述升级方式标志信息进行校验;
    在校验结果指示所述升级方式标志信息为无损业务升级标志信息时,恢复所述外部业务芯片数据。
  6. 一种嵌入式系统的应用程序的升级装置,包括获取模块、第一保存模块、复位模块和数据恢复模块,其中:
    所述获取模块设置成:获取一无损业务复位请求,所述复位请求携带有一待升级的应用程序的无损业务升级方式标志信息;
    所述第一保存模块设置成:根据所述升级方式标志信息,将嵌入式系统复位过程中的数据信息保存至动态随机存储器的指定区域中,产生一复位指令;
    所述复位模块设置成:根据所述复位指令对所述嵌入式系统进行复位;
    所述数据恢复模块设置成:在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取并恢复所述数据信息。
  7. 根据权利要求6所述的升级装置,其中,所述升级装置还包括第二保存模块,其中:
    所述第二保存模块设置成:将所述无损业务升级方式标志信息保存在所述动态随机存储器的所述指定区域中。
  8. 根据权利要求6所述的升级装置,其中,
    所述数据信息包括:外部业务芯片数据;
    其中,所述第一保存模块包括第一保存子模块和第二保存子模块,其中:
    所述第一保存子模块设置成:根据所述升级方式标志信息,将所述外部业务芯片数据保存至动态随机存储器的指定区域中;
    所述第二保存子模块设置成:根据所述外部业务芯片数据,获取第一校验值,并将所述第一校验值保存至所述指定区域中。
  9. 根据权利要求6所述的升级装置,其中,所述复位模块包括复位子模块,其中:
    所述复位子模块设置成:根据所述复位指令对所述嵌入式系统进行复位前处理和复位重启后处理。
  10. 根据权利要求8所述的升级装置,其中,所述数据恢复模块包括提取子模块、获取子模块、比较子模块、校验子模块和恢复子模块,其中:
    所述提取子模块设置成:在所述嵌入式系统复位后,从所述动态随机存储器的所述指定区域中提取所述外部业务芯片数据以及所述第一校验值;
    所述获取子模块设置成:根据所述外部业务芯片数据,获取第二校验值;
    所述比较子模块设置成:对所述第一校验值和所述第二校验值进行比较,获取比较结果;
    所述校验子模块设置成:在比较结果指示所述第一校验值和所述第二校验值相同时,对所述动态随机存储器的所述指定区域中保存的所述升级方式标志信息进行校验;
    所述恢复子模块设置成:在校验结果指示所述升级方式标志信息为无损业务升级标志信息时,恢复所述外部业务芯片数据。
  11. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行如权利要求1-5中任一项所述的嵌入式系统的应用程序的升级方法。
  12. 一种载有如权利要求11所述的计算机程序的载体。
PCT/CN2015/088995 2015-03-16 2015-09-06 一种嵌入式系统的应用程序的升级方法及升级装置 WO2016145798A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510114037.1A CN106033363B (zh) 2015-03-16 2015-03-16 一种嵌入式系统的应用程序的升级方法及升级装置
CN201510114037.1 2015-03-16

Publications (1)

Publication Number Publication Date
WO2016145798A1 true WO2016145798A1 (zh) 2016-09-22

Family

ID=56918321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088995 WO2016145798A1 (zh) 2015-03-16 2015-09-06 一种嵌入式系统的应用程序的升级方法及升级装置

Country Status (2)

Country Link
CN (1) CN106033363B (zh)
WO (1) WO2016145798A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536462A (zh) * 2018-04-28 2018-09-14 四川虹美智能科技有限公司 一种更新eeprom中参数的方法、装置及电子控制器
CN110647339A (zh) * 2019-09-19 2020-01-03 中国兵器工业集团第二一四研究所苏州研发中心 一种嵌入式产品软件在线升级方法
CN110737453A (zh) * 2019-10-17 2020-01-31 北京智芯微电子科技有限公司 安全芯片的升级方法、装置及安全芯片

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407020B (zh) * 2021-06-09 2024-03-22 北京集创北方科技股份有限公司 组件启动方法及装置、触控芯片和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697128A (zh) * 2009-10-10 2010-04-21 中兴通讯股份有限公司 版本升级方法和装置
CN101841431A (zh) * 2010-05-11 2010-09-22 北京星网锐捷网络技术有限公司 通信设备升级方法及通信设备
CN102265256A (zh) * 2011-06-03 2011-11-30 华为技术有限公司 通信设备升级控制方法、芯片及通信设备
CN103946800A (zh) * 2012-10-12 2014-07-23 华为技术有限公司 系统软件升级期间的无损耗不间断报文处理方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100340989C (zh) * 2004-04-14 2007-10-03 华为技术有限公司 随机存储器的数据保存方法
CN102364891B (zh) * 2011-09-13 2014-08-27 杭州华三通信技术有限公司 嵌入式以太网设备升级软件的方法及嵌入式以太网设备
CN103530146B (zh) * 2013-09-16 2016-09-07 成都交大光芒科技股份有限公司 低功耗嵌入式设备远程无线升级方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697128A (zh) * 2009-10-10 2010-04-21 中兴通讯股份有限公司 版本升级方法和装置
CN101841431A (zh) * 2010-05-11 2010-09-22 北京星网锐捷网络技术有限公司 通信设备升级方法及通信设备
CN102265256A (zh) * 2011-06-03 2011-11-30 华为技术有限公司 通信设备升级控制方法、芯片及通信设备
CN103946800A (zh) * 2012-10-12 2014-07-23 华为技术有限公司 系统软件升级期间的无损耗不间断报文处理方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536462A (zh) * 2018-04-28 2018-09-14 四川虹美智能科技有限公司 一种更新eeprom中参数的方法、装置及电子控制器
CN110647339A (zh) * 2019-09-19 2020-01-03 中国兵器工业集团第二一四研究所苏州研发中心 一种嵌入式产品软件在线升级方法
CN110737453A (zh) * 2019-10-17 2020-01-31 北京智芯微电子科技有限公司 安全芯片的升级方法、装置及安全芯片

Also Published As

Publication number Publication date
CN106033363B (zh) 2020-02-14
CN106033363A (zh) 2016-10-19

Similar Documents

Publication Publication Date Title
US10719400B2 (en) System and method for self-healing basic input/output system boot image and secure recovery
CN107122289B (zh) 系统回归测试的方法、装置及系统
US8468389B2 (en) Firmware recovery system and method of baseboard management controller of computing device
US9146839B2 (en) Method for pre-testing software compatibility and system thereof
WO2016145798A1 (zh) 一种嵌入式系统的应用程序的升级方法及升级装置
US20200310933A1 (en) Device fault processing method, apparatus, and system
US9026629B2 (en) Graceful out-of-band power control of remotely-managed computer systems
WO2016202000A1 (zh) 差分回退升级方法及装置
CN104461594A (zh) 嵌入式操作系统的升级方法及装置
WO2016101519A1 (zh) 一种实现操作系统重启的方法和装置
EP2854032B1 (en) Method and apparatus for restoring exception data in internal memory
US9703651B2 (en) Providing availability of an agent virtual computing instance during a storage failure
WO2023109880A1 (zh) 一种业务恢复方法、数据处理单元及相关设备
US10915624B2 (en) Method and apparatus for determining behavior information corresponding to a dangerous file
CN106997313B (zh) 一种应用程序的信号处理方法、系统及终端设备
WO2020233001A1 (zh) 双控构架分布式存储系统、数据读取方法、装置和存储介质
CN112100060A (zh) 运行环境自适应方法、装置和计算机可读存储介质
JP6599725B2 (ja) 情報処理装置およびログ管理方法、並びにコンピュータ・プログラム
CN105549985A (zh) 一种增强Linux应用系统可靠性的方法与系统
CN105279011A (zh) 一种虚拟机可根据镜像进行系统还原的方法
US11740969B2 (en) Detecting and recovering a corrupted non-volatile random-access memory
WO2018028410A1 (zh) intel平台检测Flash Rom中参数的方法
WO2012097761A1 (zh) 数据卡与主机间通信异常的修复方法及数据卡
CN103793283A (zh) 一种终端故障处理方法及相关装置
TWI554876B (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: 15885173

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

Country of ref document: EP

Kind code of ref document: A1