WO2016078263A1 - 升级控制设备、终端、终端升级方法及***、存储介质 - Google Patents

升级控制设备、终端、终端升级方法及***、存储介质 Download PDF

Info

Publication number
WO2016078263A1
WO2016078263A1 PCT/CN2015/074303 CN2015074303W WO2016078263A1 WO 2016078263 A1 WO2016078263 A1 WO 2016078263A1 CN 2015074303 W CN2015074303 W CN 2015074303W WO 2016078263 A1 WO2016078263 A1 WO 2016078263A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgraded
terminal
data
upgrade
software version
Prior art date
Application number
PCT/CN2015/074303
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 WO2016078263A1 publication Critical patent/WO2016078263A1/zh

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of communications, and in particular, to an upgrade control device, a terminal, a terminal upgrade method and system, and a storage medium.
  • the speed of upgrading the terminal device can be improved from two aspects.
  • the first way is to use a multi-threaded upgrade, that is, to connect multiple terminal devices for parallel upgrade on the same computer, which is connected simultaneously on one computer.
  • the method for upgrading a plurality of terminal devices has the disadvantages of low stability performance and poor redundancy performance; the second method is to reduce the time consumed by the terminal itself to upgrade, and to reduce the time required for upgrading a device, and to upgrade in batches. It saves production costs. Therefore, how to reduce the time required for terminal upgrade as much as possible becomes an urgent problem to be solved.
  • the main technical problem to be solved by the present invention is to provide an upgrade control device, a terminal, and a terminal End upgrade method and system, storage medium, solve the problem of how to reduce the time required for terminal upgrade.
  • an embodiment of the present invention provides a method for upgrading a terminal, including:
  • the upgrade control device obtains the current software version currently running in the terminal to be upgraded
  • the upgrade control device compares the current software version with a new software version to be upgraded to obtain a comparison result
  • the upgrade control device controls the to-be-upgraded terminal to complete the upgrade according to the comparison result and the corresponding data to be upgraded.
  • comparing, by the upgrade control device, the difference between the current software version and the new software version comprises: comparing the current software version with the new software version according to an address to the same address The data is compared for differences; the comparison results include: addresses where the data differs.
  • the upgrade control device controls the to-be-upgraded terminal to complete the upgrade according to the comparison result and the corresponding data to be upgraded, including:
  • the upgrade control device sends the comparison result and the corresponding data to be upgraded control to the to-be-upgraded terminal;
  • the upgrade control device extracts data to be upgraded corresponding to each address with different data from the corresponding data to be upgraded according to the comparison result, and sends an update instruction to the terminal to be upgraded to be used in the terminal to be upgraded.
  • the original data of each address with different data is updated to the corresponding data to be upgraded.
  • the corresponding data to be upgraded is all data corresponding to the new software version, or data of a new software version corresponding to each address where the data has a difference.
  • the embodiment of the present invention further provides a terminal upgrade method, including:
  • the terminal to be upgraded provides the current software version currently running to the upgrade control device
  • the comparison result obtained by comparing the difference between the current software version and the new software version to be upgraded, and the corresponding data to be upgraded are upgraded according to the upgrade control device.
  • the comparison result includes each address in which the data is different.
  • the upgrade of the to-be-upgraded terminal according to the comparison result and the corresponding data to be upgraded includes:
  • the to-be-upgraded terminal receives the comparison result and the corresponding data to be upgraded sent by the upgrade control device, and extracts data to be upgraded corresponding to each address with different data from the corresponding data to be upgraded, and the data is to be upgraded.
  • the original data of each address with a difference is updated to the corresponding data to be upgraded;
  • the terminal to be upgraded receives the update instruction of the upgrade control device, and updates the original data of each address with different data to the corresponding data to be upgraded.
  • the embodiment of the present invention further provides a terminal upgrade method, including:
  • the terminal to be upgraded provides the current software version currently running to the upgrade control device
  • the upgrade control device compares the current software version with a new software version to be upgraded to obtain a comparison result
  • the upgrade control device controls the to-be-upgraded terminal to complete the upgrade according to the comparison result and the corresponding data to be upgraded.
  • an embodiment of the present invention further provides an upgrade control device, including a version acquisition module, a comparison module, and a control module;
  • the version obtaining module is configured to obtain a current software version currently running in the terminal to be upgraded
  • the comparing module is configured to compare the current software version with a new software version to be upgraded to obtain a comparison result
  • the control module is configured to control the terminal to be upgraded to complete the upgrade according to the comparison result and the corresponding data to be upgraded.
  • the comparison module includes a bitwise comparison submodule configured to compare the difference between the current software version and the new software version according to an address corresponding to the same address; the comparison The results include: addresses where the data differs.
  • control module includes a sending submodule configured to send the comparison result and the corresponding data to be upgraded control to the to-be-upgraded terminal;
  • the control module includes a first extraction sub-module and a first update sub-module, and the first extraction sub-module is configured to extract, according to the comparison result, each address corresponding to the difference in data from the corresponding data to be upgraded.
  • the embodiment of the present invention further provides a terminal, including a version providing module and an upgrade module;
  • the version providing module is configured to provide a current software version currently running by the terminal to the upgrade control device;
  • the upgrade module performs the comparison result obtained by comparing the current software version with the new software version to be upgraded by the upgrade control device, and the corresponding data to be upgraded is upgraded.
  • the comparison result includes each address where the data has a difference;
  • the upgrade module includes a receiving submodule, a second extracting submodule, and a second update submodule, and the receiving submodule is configured.
  • the second extraction sub-module is configured to extract, from the corresponding data to be upgrade, each address where the data is different according to the comparison result, in order to receive the comparison result sent by the upgrade control device and the corresponding data to be upgraded.
  • the second more The new sub-module is configured to update the original data of each address with different data to the corresponding data to be upgraded;
  • the upgrade module includes an instruction processing submodule configured to receive an update instruction of the upgrade control device, and update original data of each address with different data to corresponding data to be upgraded.
  • the embodiment of the present invention further provides a terminal upgrade system, including a terminal to be upgraded and an upgrade control device;
  • the upgrade control device is configured to obtain a current software version currently running in the terminal to be upgraded, and compare the difference between the current software version and the new software version to be upgraded to obtain a comparison result, according to the comparison result and the corresponding upgrade to be upgraded.
  • the data is controlled to complete the upgrade by the terminal to be upgraded;
  • the terminal to be upgraded is configured to provide a current software version that is currently running to the upgrade control device, and compare the difference between the current software version and the new software version to be upgraded according to the upgrade control device. The result, and the corresponding data to be upgraded, are upgraded.
  • the upgrade control device, the terminal, the terminal upgrade method, the system, and the storage medium provided by the embodiment of the present invention acquires the current software version currently running in the terminal to be upgraded, and the current software version and the standby
  • the new software version of the upgraded terminal is upgraded to obtain a comparison result
  • the upgraded terminal is controlled according to the differentiated comparison result and the corresponding data to be upgraded. That is, the terminal to be upgraded in the embodiment of the present invention can be selectively upgraded according to the difference between the currently running software version and the new software version to be upgraded in the upgrade process, and does not need to be directly compared to the existing terminal upgrade.
  • the entire original software version is upgraded, so that the number of times the Flash of the terminal to be upgraded can be erased during the upgrade process can be significantly reduced, thereby reducing the time required for the terminal to be upgraded, improving the terminal upgrade efficiency, shortening the terminal production cycle, and reducing the production cost.
  • FIG. 1 is a schematic flowchart of a method for upgrading a terminal according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for upgrading a mobile phone according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic structural diagram of a terminal upgrade system according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic structural diagram of an upgrade control device according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal to be upgraded according to Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • An embodiment of the present invention provides a terminal upgrade method, where the method is applied to an upgrade control device.
  • the method includes:
  • Step 101 The upgrade control device acquires a current software version currently running in the terminal to be upgraded.
  • the upgrade control device in this step refers to the device used to cooperate with/control the terminal to be upgraded to complete the upgrade. It can be a variety of computer devices.
  • the terminal to be upgraded in this step may be various mobile terminals such as a mobile phone and a PAD.
  • Step 102 The upgrade control device compares the obtained current software version with the new software version of the to-be-upgraded terminal to be compared to obtain a comparison result; that is, the comparison result is a differentiated comparison result;
  • Step 103 The upgrade control device controls the to-be-upgraded terminal to perform upgrade according to the comparison result and the corresponding data to be upgraded.
  • the new software version to be upgraded in the foregoing step 102 may be pre-built into the upgrade control device, or may be obtained by the upgrade control device from other platforms by means of communication.
  • the upgrade control device may specifically compare the obtained current software version with the new software version according to the data corresponding to the address and the same address, that is, whether the data corresponding to each address is different; the corresponding comparison result includes: Each address where the data differs. Specifically, in this embodiment, each address in which data differs can be stored by a linear table. It should be understood that the comparison result in this embodiment may also be set to include each address with the same data; in this case, after the addresses with the same data are excluded by the exclusion method, the remaining addresses are addresses with different data.
  • the corresponding data to be upgraded is all the data corresponding to the new software version, that is, the entire new software version; or the data of the new software version corresponding to each address where the data is different.
  • the manner in which the upgrade control device controls the upgrade to be upgraded according to the comparison result and the corresponding data to be upgraded includes, but is not limited to, the following two types:
  • the upgrade control device sends the obtained comparison result and the corresponding data to be upgraded to the terminal to be upgraded; in this manner, the terminal to be upgraded itself performs data extraction, address search, and subsequent data erasure and write update.
  • the upgrade control device extracts data to be upgraded corresponding to each address with different data from the corresponding data to be upgraded according to the obtained comparison result, and sends an update instruction (erase, write command) to the terminal to be upgraded to be upgraded in the terminal to be upgraded.
  • the original data of each address with different data is updated to the corresponding data to be upgraded.
  • the corresponding data to be upgraded is all data corresponding to the new software version, or data of a new software version corresponding to each address where the data has a difference.
  • the above two methods can be selected according to actual needs. It can be seen that in the embodiment, when upgrading the terminal to be upgraded, the difference between the currently running software version and the new software version to be upgraded can be obtained. Differently selective upgrades to where the data differs do not require an upgrade to the entire original software version directly when the existing terminal is upgraded. Because the terminal needs to erase and write the Flash when the data is updated during the upgrade process, the operation is the most time-consuming operation; if the existing terminal directly upgrades the entire original software version, it needs more data of all locations. The update is performed, and the corresponding Flash erase and write operations are very numerous, which results in a large amount of time for terminal upgrade. The terminal to be upgraded in this embodiment selectively upgrades the location of the new and old data. Therefore, the number of erasing and flashing of the Flash in the upgrade process can be significantly reduced, thereby reducing the terminal upgrade requirement. Time, improve terminal upgrade efficiency, shorten terminal production cycle, and reduce production costs.
  • a process of establishing a communication connection between the terminal to be upgraded and the upgrade control device is further included.
  • the terminal to be upgraded in this embodiment may establish a communication connection with the upgrade control device in a serial manner, or may establish a communication connection with the upgrade control device in a parallel manner.
  • an interface for downloading and upgrading software and terminal software interaction is established on the upgrade control device, and the establishment of the communication connection and the subsequent data interaction are realized through the interface.
  • the upgrade control device may send a version acquisition instruction to the terminal to be upgraded, and after the upgrade terminal receives the instruction, perform verification on the data packet integrity, etc., and then parse the corresponding instruction, and feed back the instruction according to the instruction.
  • Existing software version may be sent to the terminal to be upgraded.
  • the embodiment of the invention further provides a first computer storage medium, wherein the first computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the terminal upgrade method shown in FIG. 1 .
  • the embodiment of the invention further provides a terminal upgrade method, which is applied to the terminal to be upgraded; the method includes:
  • Step A The terminal to be upgraded provides the current software version currently running to the upgrade control device.
  • Step B The terminal to be upgraded will use the current software version according to the upgrade control device.
  • the comparison result obtained by comparing the difference with the new software version to be upgraded, and the corresponding data to be upgraded are upgraded.
  • the comparison result includes each address where the data differs
  • the upgrade of the terminal to be upgraded according to the comparison result and the corresponding data to be upgraded includes but is not limited to the following two modes:
  • the upgraded terminal receives the comparison result sent by the upgrade control device and the corresponding data to be upgraded, and extracts, according to the comparison result, the data to be upgraded corresponding to each address with different data from the corresponding data to be upgraded, and each address with different data
  • the original data is updated to the corresponding data to be upgraded.
  • the upgraded terminal simply receives the update command sent by the upgrade control device, and updates the original data of each address with different data to the corresponding data to be upgraded, and does not need to perform data extraction and data search.
  • the location where the data differs can be selectively selected according to the difference between the currently running software version and the new software version to be upgraded, and does not need to be directly updated when the existing terminal is upgraded. Upgrade the entire original software version. Because the terminal needs to erase and write the Flash when the data is updated during the upgrade process, the operation is the most time-consuming operation; if the existing terminal directly upgrades the entire original software version, it needs more data of all locations. The update is performed, and the corresponding Flash erase and write operations are very numerous, which results in a large amount of time for terminal upgrade.
  • the terminal to be upgraded in this embodiment selectively upgrades the location of the new and old data. Therefore, the number of erasing and flashing of the Flash in the upgrade process can be significantly reduced, thereby reducing the terminal upgrade requirement. Time, improve terminal upgrade efficiency, shorten terminal production cycle, and reduce production costs.
  • the embodiment of the present invention further provides a second computer storage medium, where the second computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a terminal upgrade method corresponding to the terminal to be upgraded.
  • An embodiment of the present invention further provides a terminal upgrade method, where the method includes:
  • Step a The terminal to be upgraded provides the current software version currently running to the upgrade control device
  • Step b The upgrade control device compares the current software version with a new software version to be upgraded to obtain a comparison result
  • Step c The upgrade control device controls the to-be-upgraded terminal to complete the upgrade according to the comparison result and the corresponding data to be upgraded.
  • the embodiment of the present invention further provides a third computer storage medium, where the third computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the end upgrade method corresponding to steps a to c above. .
  • FIG. 2 For a better understanding of the embodiments of the present invention, the following is a further description of the embodiment of the present invention, which is shown in FIG. 2, including:
  • Step 201 The mobile phone is connected to a computer (notebook) through a serial or parallel device port, such as a UART, USB, PCMCIA port;
  • a serial or parallel device port such as a UART, USB, PCMCIA port;
  • Step 202 The computer initializes each module to check whether each module is normal. If it is normal, go to step 203; otherwise, go to step 207;
  • Step 203 The computer obtains the current software version currently running by the mobile phone and the new software version to be upgraded;
  • Step 204 The computer compares the binary data according to the address. If the data of the current location is the same, the comparison of the next location is performed; if the data is different, the unit structure of the linear table is applied, Save the current position, then add the current table unit to the end of the linear table, and then compare the next position until the end of the entire version comparison;
  • Step 205 The computer completes data erasing and writing operations at corresponding positions in the terminal to be upgraded according to the linear table and the new software version data, and implements data update; in the process, the mobile phone jumps the PC pointer to the FLASH read/write plug-in. Position, the computer writes a node as follows: first obtain the current location to be written to the Flash, then calculate the block to update the address in the Flash, issue an instruction to erase the block, and then read the corresponding location data from the new version , write to Flash, repeat the above operation until the entire linear table update is completed;
  • Step 206 After completing the above operation, the computer sends an instruction to restart the mobile device, and ends the entire upgrade process.
  • Step 207 Give an exception report, set the mapping of the device port, and then check whether the communication is valid. You can check by obtaining the version number of the device and then displaying the version number.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the device includes an upgraded device 1 and an upgrade control device 2, and the upgrade control device 2 is a device for supporting/controlling the upgrade of the terminal to be upgraded.
  • the upgrade control device 2 is a device for supporting/controlling the upgrade of the terminal to be upgraded.
  • the terminal 1 to be upgraded may be various mobile terminals such as a mobile phone and a PAD.
  • the control device 2 is configured to obtain the current software version currently running in the terminal to be upgraded, compare the difference between the current software version and the new software version to be upgraded, and obtain a comparison result according to the obtained comparison result and the corresponding data to be upgraded. Upgrade the terminal to upgrade;
  • the terminal 1 to be upgraded is configured to provide the current software version of the current running to the upgrade control device, and complete the upgrade according to the comparison result obtained by the upgrade control device and the corresponding data to be upgraded.
  • the upgrade control device 2 includes a version acquisition module 21, a comparison module 22, and a control module 23;
  • the version obtaining module 21 is configured to obtain a current software version currently running in the terminal to be upgraded
  • the comparison module 22 is configured to compare the current software version acquired by the version obtaining module 21 with the new software version to be upgraded to obtain a comparison result;
  • the control module 23 is configured to control the terminal to be upgraded 1 to complete the upgrade according to the comparison result obtained by the comparison module 22 and the corresponding data to be upgraded.
  • the new software version to be upgraded in this embodiment may be pre-built into the upgrade control device, or may be obtained by the upgrade control device from other platforms by means of communication.
  • the comparison module 22 in this embodiment includes a bitwise comparison submodule configured to compare the current software version with the new software version according to the address corresponding to the same address, and the comparison result includes: each address where the data is different. Specifically, in this embodiment, each address in which data differs can be stored by a linear table. It should be understood that the comparison result in this embodiment may also be set to include each address with the same data; in this case, after the addresses with the same data are excluded by the exclusion method, the remaining addresses are addresses with different data.
  • the corresponding data to be upgraded in this embodiment is all the data corresponding to the new software version, that is, the entire new software version; or the data of the new software version corresponding to each address where the data is different.
  • the manner in which the upgrade control device 2 in this embodiment controls the upgrade of the terminal to be upgraded 1 according to the comparison result and the corresponding data to be upgraded includes, but is not limited to, the following two types:
  • the upgrade control device 2 sends the obtained comparison result and the corresponding data to be upgraded to the terminal to be upgraded; in this manner, the terminal to be upgraded 1 performs data extraction, address search, and subsequent data erasure and write update.
  • the control module 23 includes a sending submodule configured to send the comparison result and the corresponding data to be upgraded control to the to-be-upgraded terminal.
  • the upgrade control device 2 extracts the number from the corresponding data to be upgraded according to the obtained comparison result. Update the original data of each address in which the data in the terminal to be upgraded differs to the corresponding data to be upgraded according to the data to be upgraded corresponding to each address that is different, and send an update command (erase, write command) to the terminal 1 to be upgraded. .
  • the extraction of data in this manner, the search of addresses, and the like can be performed by the upgrade control device.
  • the control module 23 includes a first extraction sub-module and a first update sub-module, and the first extraction sub-module is configured to extract data to be upgraded corresponding to each address with different data from the corresponding data to be upgraded according to the comparison result;
  • the first update sub-module is configured to send an update command to the terminal to be upgraded to update the original data of each address in which the data in the terminal to be upgraded differs to the corresponding data to be upgraded.
  • the receiving module 301, the version obtaining module 21, the comparing module 22, and the control module 23 may be configured by a central processing unit (CPU, Central Processing Unit) or digital signal processing (DSP) in the upgrade control device 2. (Digital Signal Processor), or Field Programmable Gate Array (FPGA), etc.; the CPU, DSP, and FPGA can be built in the data query system.
  • CPU Central Processing Unit
  • DSP digital signal processing
  • FPGA Field Programmable Gate Array
  • the terminal to be upgraded in this embodiment includes a version providing module 11 and an upgrade module 12;
  • the version providing module 11 is configured to provide the current software version currently running by the terminal to the upgrade control device 2;
  • the upgrade module 12 performs the comparison result obtained by comparing the current software version with the new software version to be upgraded by the upgrade control device 2, and the corresponding data to be upgraded is upgraded.
  • the terminal in this embodiment also has the following two upgrade modes: the two upgrade modes are adopted by the upgrade control device 2 according to the comparison result and the corresponding data to be upgraded.
  • the to-be-upgraded terminal 1 receives the comparison result sent by the upgrade control device 2 and the corresponding data to be upgraded, and extracts data to be upgraded corresponding to each address with different data from the corresponding data to be upgraded according to the comparison result, and the data is different.
  • the original data of each address is updated to the corresponding pending Level data.
  • the upgrade module 12 includes a receiving submodule, a second extracting submodule, and a second updating submodule, and the receiving submodule is configured to receive the comparison result sent by the upgrade control device 2 and the corresponding data to be upgraded, and the second extracting submodule.
  • the second update sub-module is configured to update the original data of each address with different data to be corresponding to be upgraded, according to the comparison result, and the data to be upgraded corresponding to each address with different data is extracted from the corresponding data to be upgraded. data.
  • the upgraded terminal simply receives the update command sent by the upgrade control device, and updates the original data of each address with different data to the corresponding data to be upgraded, and does not need to perform data extraction and data search.
  • the upgrade module 12 includes an instruction processing sub-module configured to receive an update instruction of the upgrade control device 2, and update the original data of each address with different data to the corresponding data to be upgraded.
  • the version providing module 11 and the upgrading module 12 can be both a central processing unit (CPU) in the device to be upgraded, a digital signal processing (DSP), or a field programmable device.
  • CPU central processing unit
  • DSP digital signal processing
  • FPGA Field Programmable Gate Array
  • the CPU, DSP, and FPGA can be built in the data query system.
  • both the terminal to be upgraded 1 and the upgrade control device 2 in this embodiment further include a corresponding connection module for establishing a communication connection.
  • the communication connection can be established in a serial manner or in a parallel manner.
  • an interface for downloading and upgrading software and terminal software interaction is established on the upgrade control device, and the establishment of the communication connection and the subsequent data interaction are realized through the interface.
  • the upgrade control device may send a version acquisition instruction to the terminal to be upgraded, and after the upgrade terminal receives the instruction, perform verification on the data packet integrity, etc., and then parse the corresponding instruction, and feed back the instruction according to the instruction. Existing software version.
  • the above two methods can be selected according to actual needs. Regardless of which method is used, When you upgrade a terminal, you can upgrade the location where the data differs according to the difference between the currently running software version and the new software version to be upgraded. You do not need to directly access the entire original software when upgrading the existing terminal.
  • the version is upgraded.
  • the number of times the Flash of the terminal to be upgraded can be erased during the upgrade process can be significantly reduced, thereby reducing the time required for the terminal to be upgraded, improving the terminal upgrade efficiency, shortening the terminal production cycle, and reducing the production cost.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
  • the upgrade control device obtains the current software version currently running in the terminal to be upgraded, and compares the current software version with the new software version to be upgraded of the terminal to be upgraded to obtain a comparison result.
  • the upgraded terminal is controlled according to the differentiated comparison result and the corresponding data to be upgraded. That is, the terminal to be upgraded in the embodiment of the present invention can be selectively upgraded according to the difference between the currently running software version and the new software version to be upgraded in the upgrade process, and does not need to be directly compared to the existing terminal upgrade.
  • the entire original software version is upgraded, so that the number of times the Flash of the terminal to be upgraded can be erased during the upgrade process can be significantly reduced, thereby reducing the time required for the terminal to be upgraded, improving the terminal upgrade efficiency, shortening the terminal production cycle, and reducing the production cost.

Landscapes

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

Abstract

本发明实施例公开了一种升级控制设备、终端、终端升级方法及***、存储介质,在终端升级过程中,升级控制设备获取待升级终端中当前运行的当前软件版本,并将当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果,并根据该差异化比较结果和对应的待升级数据控制待升级终端完成升级。也即本发明实施例中的待升级终端在升级过程中可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。

Description

升级控制设备、终端、终端升级方法及***、存储介质 技术领域
本发明涉及通讯领域,具体涉及一种升级控制设备、终端、终端升级方法及***、存储介质。
背景技术
去年全球手机的发货量首次超过了10亿部,全世界移动用户数量超过31亿,而且预期在5年内全球的移动用户的数量将增长到50亿。由于移动终端设备的需求量急剧增涨,移动终端厂商的供货竞争也越来越激烈。为了应对终端设备供货压力,不仅要求不断缩短研发周期,而且需要提高移动终端设备的升级软件速度与兼容性,以满足客户不断提出的新需求。升级软件时终端与计算机等升级设备的物理连接方式大多采用串行设备接口或采用USB口设备接口与计算机进行数据通信,而升级软件的升级速度一直以来是制约生产周期的重要因素。
提高终端设备升级的速度可以从两方面提高,第一种方式是使用多线程升级,即在同一部计算机上,同时连接多部终端设备进行并行的升级,这种在一台计算机上面通过同时连接多部终端设备进行升级的方法,其缺点是稳定性能不高,冗余性能较差;第二种方式是降低终端自身升级所消耗时间,通过减少一部设备升级需要花费的时间,在批量升级时就能节省生产成本。因此如何尽可能的减少终端升级所需要的时间就成为一个亟需解决的问题。
发明内容
本发明要解决的主要技术问题是,提供一种升级控制设备、终端、终 端升级方法及***、存储介质,解决如何减少终端升级所需时间的问题。
为解决上述技术问题,本发明实施例提供一种终端升级方法,包括:
升级控制设备获取待升级终端中当前运行的当前软件版本;
所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。
在本发明的一种实施例中,所述升级控制设备将所述当前软件版本与所述新软件版本进行差异比较包括:将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。
在本发明的一种实施例中,所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级包括:
所述升级控制设备将所述比较结果和对应的待升级数据控制发送给所述待升级终端;
或,
所述升级控制设备根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。
在本发明的一种实施例中,所述对应的待升级数据为所述新软件版本对应的所有数据,或所述数据存在差异的各地址所对应的新软件版本的数据。
为了解决上述问题,本发明实施例还提供了一种终端升级方法,包括:
待升级终端将其当前运行的当前软件版本提供给升级控制设备;
所述待升级终端根据所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
在本发明的一种实施例中,所述比较结果包括数据存在差异的各地址;所述待升级终端根据所述比较结果和所述对应的待升级数据完成升级包括:
所述待升级终端接收所述升级控制设备发送的所述比较结果和对应的待升级数据,从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并将数据存在差异的各地址的原数据更新为对应的待升级数据;
或,
所述待升级终端接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。
为了解决上述问题,本发明实施例还提供了一种终端升级方法,包括:
待升级终端将其当前运行的当前软件版本提供给升级控制设备;
所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。
为了解决上述问题,本发明实施例还提供了一种升级控制设备,包括版本获取模块、比较模块以及控制模块;
所述版本获取模块,配置为获取待升级终端中当前运行的当前软件版本;
所述比较模块,配置为将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
所述控制模块,配置为根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。
在本发明的一种实施例中,所述比较模块包括按位比较子模块,配置为将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。
在本发明的一种实施例中,所述控制模块包括发送子模块,配置为将所述比较结果和对应的待升级数据控制发送给所述待升级终端;
或,
所述控制模块包括第一提取子模块和第一更新子模块,所述第一提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,所述第一更新子模块,配置为向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。
为了解决上述问题,本发明实施例还提供了一种终端,包括版本提供模块、升级模块;
所述版本提供模块,配置为将所述终端当前运行的当前软件版本提供给升级控制设备;
所述升级模块根据所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
在本发明的一种实施例中,所述比较结果包括数据存在差异的各地址;所述升级模块包括接收子模块、第二提取子模块和第二更新子模块,所述接收子模块,配置为接收升级控制设备发送的所述比较结果和对应的待升级数据,所述第二提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,所述第二更 新子模块,配置为将数据存在差异的各地址的原数据更新为对应的待升级数据;
或,
所述升级模块包括指令处理子模块,配置为接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。
为了解决上述问题,本发明实施例还提供了一种终端升级***,包括待升级终端和升级控制设备;
所述升级控制设备,配置为获取待升级终端中当前运行的当前软件版本,将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果,根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级;
所述待升级终端,配置为将其当前运行的当前软件版本提供给所述升级控制设备,以及根据所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
本发明实施例的有益效果是:
本发明实施例提供的升级控制设备、终端、终端升级方法及***、存储介质,在终端升级过程中,升级控制设备获取待升级终端中当前运行的当前软件版本,并将当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果,并根据该差异化比较结果和对应的待升级数据控制待升级终端完成升级。也即本发明实施例中的待升级终端在升级过程中可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。
附图说明
图1为本发明实施例一提供的终端升级方法流程示意图;
图2为本发明实施例一提供的手机升级方法流程示意图;
图3为本发明实施例二提供的终端升级***结构示意图;
图4为本发明实施例二提供的升级控制设备结构示意图;
图5为本发明实施例二提供的待升级终端结构示意图。
具体实施方式
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。
实施例一:
本发明实施例提供了一种终端升级方法,所述方法应用于升级控制设备;请参见图1所示,所述方法包括:
步骤101:升级控制设备获取待升级终端中当前运行的当前软件版本;
该步骤中的升级控制设备是指用于配合/控制待升级终端完成升级的设备。其可以是各种的计算机设备。该步骤中的待升级终端可以是手机、PAD等各种移动终端。
步骤102:升级控制设备将获取的当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果;也即该比较结果为差异化比较结果;
步骤103:升级控制设备根据比较结果和对应的待升级数据控制待升级终端进行升级。
应当理解的是,上述步骤102中的待升级的新软件版本可以是预先内置到升级控制设备中的,也可以是升级控制设备通过通信的方式从其他平台获取的。
上述步骤102中,升级控制设备具体可以将获取的当前软件版本与新软件版本按照地址对相同地址对应的数据进行差异比较,也即比较各地址对应的数据是否存在不同;对应的比较结果包括:数据存在差异的各地址。本实施例中具体可以通过线性表来存储数据存在差异的各地址。应当理解的是,本实施例中的比较结果也可以设置为包含数据相同的各地址;此时可采用排除法将数据相同的各地址进行排除后,剩余的地址则是数据存在差异的地址。
上述步骤103中,对应的待升级数据为新软件版本对应的所有数据,也即整个新软件版本;也可以为数据存在差异的各地址所对应的新软件版本的数据。上述步骤103中,升级控制设备根据比较结果和对应的待升级数据控制待升级终端进行升级的方式包括但不限于以下两种:
方式一:
升级控制设备将得到的比较结果和对应的待升级数据控制发送给待升级终端;这种方式由待升级终端自己进行数据的提取、地址的查找以及后续数据的擦除和写入更新。
方式二:
升级控制设备根据得到的比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并向待升级终端发送更新指令(擦除、写入指令)将待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。这种方式的数据的提取、地址的查找等可以由升级控制设备完成。
其中,所述对应的待升级数据为所述新软件版本对应的所有数据,或所述数据存在差异的各地址所对应的新软件版本的数据。
上述两种方式具体可根据实际需要选择。可见本实施例中对待升级终端升级时可以根据当前运行的软件版本以及待升级的新软件版本之间的差 异选择性的对数据存在差异的位置进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级。由于终端在升级过程中进行数据更新时需要对Flash进行擦除和写入操作,而该操作时最耗费时间的操作;现有终端直接对整个原有软件版本进行升级就需要多所有位置的数据进行更新,对应的其进行Flash擦除和写入操作就非常之多,从而导致终端升级需耗费大量的时间。而本实施例中的待升级终端则选择性的对新、旧数据不同的位置才进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。
应当理解的是,在上述步骤101之前,还包括待升级终端与升级控制设备建立通信连接的过程。本实施例中的待升级终端可以采用串行的方式与升级控制设备建立通信连接,也可采用并行的方式与升级控制设备建立通信连接。在建立通信连接过程中,在升级控制设备上制定好下载升级软件与终端软件交互的接口,通过该接口实现通信连接的建立以及后续数据的交互。在建立通信连接后,升级控制设备可以向待升级终端发送版本获取指令,待升级终端接收到该指令后进行数据包完整性等验证后对其进行解析得到对应的指令,并根据该指令反馈其现有的软件版本。
本发明实施例还提供了一种第一计算机存储介质,所述第一计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行图1所示的终端升级方法。
本发明实施例还提供了一种终端升级方法,应用于待升级终端;所述方法包括:
步骤A:待升级终端将其当前运行的当前软件版本提供给升级控制设备;
步骤B:所述待升级终端根据所述升级控制设备将所述当前软件版本 与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
这里,所述比较结果包括数据存在差异的各地址;
对应的,上述步骤B中,待升级终端根据所述比较结果和对应的待升级数据完成升级也包括但不限于以下两种方式:
方式一:
待升级终端接收升级控制设备发送的比较结果和对应的待升级数据,根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并将数据存在差异的各地址的原数据更新为对应的待升级数据。
方式二:
待升级终端单纯接收升级控制设备发送的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据即可,并不需要进行数据的提取和数据的查找等。
上述两种方式具体可根据实际需要选择。可见本实施例中对待升级终端升级时可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的对数据存在差异的位置进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级。由于终端在升级过程中进行数据更新时需要对Flash进行擦除和写入操作,而该操作时最耗费时间的操作;现有终端直接对整个原有软件版本进行升级就需要多所有位置的数据进行更新,对应的其进行Flash擦除和写入操作就非常之多,从而导致终端升级需耗费大量的时间。而本实施例中的待升级终端则选择性的对新、旧数据不同的位置才进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。
本发明实施例还提供了一种第二计算机存储介质,所述第二计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行与待升级终端对应的终端升级方法。
本发明实施例还提供了一种终端升级方法,所述方法包括:
步骤a:待升级终端将其当前运行的当前软件版本提供给升级控制设备;
步骤b:所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
步骤c:所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。
本发明实施还提供了一种第三计算机存储介质,所述第三计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述步骤a至步骤c所对应的端升级方法。
为了更好的理解本发明实施例,下面以待升级终端为手机,升级控制设备为计算机为例,对本发明实施例做进一步的示例性说明,请参见图2所示,包括:
步骤201:手机通过串行或并行设备端口连接到计算机(笔记本)上,如UART、USB、PCMCIA口;
步骤202:计算机初始化各个模块,检查各个模块是否正常,若正常,转至步骤203;否则,转至步骤207;
步骤203:计算机获取手机当前运行的当前软件版本和待升级的新软件版本;
步骤204:计算机按照地址二进制数据进行比较,如果当前位置的数据相同,进行下一位置的比较;如果数据不同,申请线性表的单元结构体, 保存当前的位置,然后将当前的表单元添加到线性表的结尾,再进行下一位置的比较,直到整个版本比较结束为止;
步骤205:计算机根据线性表以及新软件版本数据完成待升级终端中相应位置的数据擦除和写入操作,实现数据的更新;在该过程中手机将PC指针跳转到FLASH读写插件起始位置,计算机写入一个节点的方法如下:先获取当前要写入Flash的位置,然后计算要更新地址在Flash中对应的block,下发指令擦除该block,然后从新版本中读取对应位置数据,写入Flash中,重复上述操作直到整个线性表更新完成;
步骤206:完成上述操作后,计算机发送指令将手机设备重启,并结束整个升级过程。
步骤207:则给出异常报告,设置设备端口的映射,然后检查通讯是否有效,可以通过得到设备的版本号,然后显示版本号来检查。
实施例二:
本实施例提供了终端升级***,请参见图3所示,包括待升级终端1和升级控制设备2;升级控制设备2是指用于配合/控制待升级终端完成升级的设备,其可以是各种的计算机设备。待升级终端1可以是手机、PAD等各种移动终端。
升级控制设备2,配置为获取待升级终端中当前运行的当前软件版本,将当前软件版本与待升级的新软件版本进行差异比较得到比较结果,根据得到的比较结果和对应的待升级数据控制待升级终端进行升级;
待升级终端1,配置为将其当前运行的当前软件版本提供给所述升级控制设备,以及根据升级控制设备得到的比较结果和对应的待升级数据完成升级。
具体的,请参见图4所示,升级控制设备2包括版本获取模块21、比较模块22以及控制模块23;
版本获取模块21,配置为获取待升级终端中当前运行的当前软件版本;
比较模块22,配置为将版本获取模块21获取的当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
控制模块23,配置为根据比较模块22得到的比较结果和对应的待升级数据控制待升级终端1完成升级。
本实施例中待升级的新软件版本可以是预先内置到升级控制设备中的,也可以是升级控制设备通过通信的方式从其他平台获取的。
本实施例中的比较模块22包括按位比较子模块,配置为将当前软件版本与新软件版本按照地址对相同地址对应的数据进行差异比较,得到的比较结果包括:数据存在差异的各地址。本实施例中具体可以通过线性表来存储数据存在差异的各地址。应当理解的是,本实施例中的比较结果也可以设置为包含数据相同的各地址;此时可采用排除法将数据相同的各地址进行排除后,剩余的地址则是数据存在差异的地址。
本实施例中对应的待升级数据为新软件版本对应的所有数据,也即整个新软件版本;也可以为数据存在差异的各地址所对应的新软件版本的数据。
本实施例中的升级控制设备2根据比较结果和对应的待升级数据控制待升级终端1进行升级的方式包括但不限于以下两种:
方式一:
升级控制设备2将得到的比较结果和对应的待升级数据控制发送给待升级终端;这种方式由待升级终端1自己进行数据的提取、地址的查找以及后续数据的擦除和写入更新。此时控制模块23包括发送子模块,配置为将比较结果和对应的待升级数据控制发送给所述待升级终端;
方式二:
升级控制设备2根据得到的比较结果从对应的待升级数据中提取出数 据存在差异的各地址对应的待升级数据,并向待升级终端1发送更新指令(擦除、写入指令)将待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。这种方式的数据的提取、地址的查找等可以由升级控制设备完成。此时控制模块23包括第一提取子模块和第一更新子模块,第一提取子模块,配置为根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据;第一更新子模块,配置为向待升级终端发送更新指令将待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。
在实际应用中,所述接收模块301、所述版本获取模块21、比较模块22以及控制模块23均可由升级控制设备2中的中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现;所述CPU、DSP、FPGA均可内置于数据查询***中。
请参见图5所示,本实施例中的待升级终端1包括版本提供模块11和升级模块12;
版本提供模块11,配置为将终端当前运行的当前软件版本提供给升级控制设备2;
升级模块12根据升级控制设备2将当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
对应升级控制设备2在根据比较结果和对应的待升级数据采用的两种升级方式,本实施例中的终端也具备以下两种升级方式:
方式一:
待升级终端1接收升级控制设备2发送的比较结果和对应的待升级数据,根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并将数据存在差异的各地址的原数据更新为对应的待升 级数据。此时升级模块12包括接收子模块、第二提取子模块和第二更新子模块,接收子模块,配置为接收升级控制设备2发送的比较结果和对应的待升级数据,第二提取子模块,配置为根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,第二更新子模块,配置为将数据存在差异的各地址的原数据更新为对应的待升级数据。
方式二:
待升级终端单纯接收升级控制设备发送的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据即可,并不需要进行数据的提取和数据的查找等。此时升级模块12包括指令处理子模块,配置为接收升级控制设备2的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。
在实际应用中,所述版本提供模块11和升级模块12均可由待升级设备1中的中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现;所述CPU、DSP、FPGA均可内置于数据查询***中。
应当理解的是,本实施例中的待升级终端1和升级控制设备2中都还包括对应的用于建立通信连接的连接模块。本实施例中可以采用串行的方式或并行的方式建立通信连接。在建立通信连接过程中,在升级控制设备上制定好下载升级软件与终端软件交互的接口,通过该接口实现通信连接的建立以及后续数据的交互。在建立通信连接后,升级控制设备可以向待升级终端发送版本获取指令,待升级终端接收到该指令后进行数据包完整性等验证后对其进行解析得到对应的指令,并根据该指令反馈其现有的软件版本。
上述两种方式具体可根据实际需要选择。不管采用哪种方式,在对待 升级终端升级时都可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的对数据存在差异的位置进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级。可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。
本领域内的技术人员应明白,本发明的实施例可提供为方法、***、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述仅是本发明实施例的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明实施例原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明实施例的保护范围。
工业实用性
本发明实施例在终端升级过程中,升级控制设备获取待升级终端中当前运行的当前软件版本,并将当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果,并根据该差异化比较结果和对应的待升级数据控制待升级终端完成升级。也即本发明实施例中的待升级终端在升级过程中可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。

Claims (16)

  1. 一种终端升级方法,包括:
    升级控制设备获取待升级终端中当前运行的当前软件版本;
    所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
    所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。
  2. 如权利要求1所述的终端升级方法,其中,所述升级控制设备将所述当前软件版本与所述新软件版本进行差异比较包括:将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。
  3. 如权利要求2所述的终端升级方法,其中,所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级包括:
    所述升级控制设备将所述比较结果和对应的待升级数据控制发送给所述待升级终端;
    或,
    所述升级控制设备根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。
  4. 如权利要求2或3所述的终端升级方法,其中,所述对应的待升级数据为所述新软件版本对应的所有数据,或所述数据存在差异的各地址所对应的新软件版本的数据。
  5. 一种终端升级方法,包括:
    待升级终端将其当前运行的当前软件版本提供给升级控制设备;
    所述待升级终端根据所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
  6. 如权利要求5所述的终端升级方法,其中,所述比较结果包括数据存在差异的各地址;所述待升级终端根据所述比较结果和所述对应的待升级数据完成升级包括:
    所述待升级终端接收所述升级控制设备发送的所述比较结果和对应的待升级数据,从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并将数据存在差异的各地址的原数据更新为对应的待升级数据;
    或,
    所述待升级终端接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。
  7. 一种终端升级方法,包括:
    待升级终端将其当前运行的当前软件版本提供给升级控制设备;
    所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
    所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。
  8. 一种升级控制设备,包括版本获取模块、比较模块以及控制模块;
    所述版本获取模块,配置为获取待升级终端中当前运行的当前软件版本;
    所述比较模块,配置为将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;
    所述控制模块,配置为根据所述比较结果和对应的待升级数据控制所 述待升级终端完成升级。
  9. 如权利要求8所述的升级控制设备,其中,所述比较模块包括按位比较子模块,配置为将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。
  10. 如权利要求9所述的升级控制设备,其中,所述控制模块包括发送子模块,配置为将所述比较结果和对应的待升级数据控制发送给所述待升级终端;
    或,
    所述控制模块包括第一提取子模块和第一更新子模块,所述第一提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,所述第一更新子模块,配置为向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。
  11. 一种终端,包括版本提供模块、升级模块;
    所述版本提供模块,配置为将所述终端当前运行的当前软件版本提供给升级控制设备;
    所述升级模块根据所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
  12. 如权利要求11所述的终端,其中,所述比较结果包括数据存在差异的各地址;所述升级模块包括接收子模块、第二提取子模块和第二更新子模块,所述接收子模块,配置为接收升级控制设备发送的所述比较结果和对应的待升级数据,所述第二提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数 据,所述第二更新子模块,配置为将数据存在差异的各地址的原数据更新为对应的待升级数据;
    或,
    所述升级模块包括指令处理子模块,,配置为接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。
  13. 一种终端升级***,包括待升级终端和升级控制设备;
    所述升级控制设备,配置为获取待升级终端中当前运行的当前软件版本,将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果,根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级;
    所述待升级终端,配置为将其当前运行的当前软件版本提供给所述升级控制设备,以及根据所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。
  14. 一种第一计算机存储介质,所述第一计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的方法。
  15. 一种第二计算机存储介质,所述第二计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求5或6所述的方法。
  16. 一种第三计算机存储介质,所述第三计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求7所述的方法。
PCT/CN2015/074303 2014-11-18 2015-03-16 升级控制设备、终端、终端升级方法及***、存储介质 WO2016078263A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410658612.X 2014-11-18
CN201410658612.XA CN105677375A (zh) 2014-11-18 2014-11-18 升级控制设备、终端、终端升级方法及***

Publications (1)

Publication Number Publication Date
WO2016078263A1 true WO2016078263A1 (zh) 2016-05-26

Family

ID=56013163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074303 WO2016078263A1 (zh) 2014-11-18 2015-03-16 升级控制设备、终端、终端升级方法及***、存储介质

Country Status (2)

Country Link
CN (1) CN105677375A (zh)
WO (1) WO2016078263A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112289431A (zh) * 2020-09-30 2021-01-29 音数汇元(上海)智能科技有限公司 居家护理终端的升级方法、装置、计算机设备和存储介质
CN112540782A (zh) * 2020-12-16 2021-03-23 歌尔光学科技有限公司 设备组件升级方法、装置、设备及存储介质
CN112685053A (zh) * 2019-10-18 2021-04-20 航天科工惯性技术有限公司 单片机程序远程升级控制方法
CN114201320A (zh) * 2022-02-18 2022-03-18 深圳佰维存储科技股份有限公司 ***块升级方法、装置、可读存储介质及电子设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383726B (zh) * 2016-08-30 2019-06-18 武汉精测电子集团股份有限公司 一种基于图像视频传输接口的讯号适配器升级方法
CN109358892B (zh) * 2018-09-26 2022-04-05 潍柴动力股份有限公司 一种软件版本升级方法及装置
CN112423290B (zh) * 2020-11-05 2022-10-18 歌尔科技有限公司 无线升级方法、终端设备、待升级装置及介质
CN114489742B (zh) * 2021-12-31 2023-09-05 杭州加速科技有限公司 一种提升ate设备中fpga在线升级效率的升级方法及***

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1246057A2 (en) * 2001-03-30 2002-10-02 Matsushita Electric Industrial Co., Ltd. Remote program downloading system
CN101127961A (zh) * 2007-09-19 2008-02-20 中兴通讯股份有限公司 电子业务指南的差异性更新***及其方法
CN101567741A (zh) * 2008-04-23 2009-10-28 中兴通讯股份有限公司 一种电子业务指南的发送、接收方法及***
US20100205638A1 (en) * 2007-09-20 2010-08-12 Zte Corporation System and method for difference update of electronic service guide
CN101945135A (zh) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 一种widget***的升级方法及***
CN103095838A (zh) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 一种通过下载增量升级包来升级安卓智能手机软件的方法
CN103136013A (zh) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 软件升级方法和***
CN103200219A (zh) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 数据包更新方法、装置、终端设备和服务器

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100440950B1 (ko) * 2001-06-30 2004-07-21 삼성전자주식회사 네트워크 환경에 있어서 소프트웨어 업그레이드 방법 및그에 따른 네트워크 디바이스
EP1533695B1 (en) * 2003-11-19 2013-08-07 TELEFONAKTIEBOLAGET LM ERICSSON (publ) Updating data in a mobile terminal
CN101377744B (zh) * 2008-09-24 2012-02-15 华为终端有限公司 一种终端设备软件升级恢复方法及装置
CN101668081A (zh) * 2009-09-24 2010-03-10 宇龙计算机通信科技(深圳)有限公司 一种移动终端及其自动升级方法
CN101916200B (zh) * 2010-08-03 2015-08-26 中兴通讯股份有限公司 终端升级的方法、终端升级回退的方法和升级管理中心

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1246057A2 (en) * 2001-03-30 2002-10-02 Matsushita Electric Industrial Co., Ltd. Remote program downloading system
CN101127961A (zh) * 2007-09-19 2008-02-20 中兴通讯股份有限公司 电子业务指南的差异性更新***及其方法
US20100205638A1 (en) * 2007-09-20 2010-08-12 Zte Corporation System and method for difference update of electronic service guide
CN101567741A (zh) * 2008-04-23 2009-10-28 中兴通讯股份有限公司 一种电子业务指南的发送、接收方法及***
CN101945135A (zh) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 一种widget***的升级方法及***
CN103136013A (zh) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 软件升级方法和***
CN103095838A (zh) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 一种通过下载增量升级包来升级安卓智能手机软件的方法
CN103200219A (zh) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 数据包更新方法、装置、终端设备和服务器

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685053A (zh) * 2019-10-18 2021-04-20 航天科工惯性技术有限公司 单片机程序远程升级控制方法
CN112685053B (zh) * 2019-10-18 2024-05-14 航天科工惯性技术有限公司 单片机程序远程升级控制方法
CN112289431A (zh) * 2020-09-30 2021-01-29 音数汇元(上海)智能科技有限公司 居家护理终端的升级方法、装置、计算机设备和存储介质
CN112540782A (zh) * 2020-12-16 2021-03-23 歌尔光学科技有限公司 设备组件升级方法、装置、设备及存储介质
CN114201320A (zh) * 2022-02-18 2022-03-18 深圳佰维存储科技股份有限公司 ***块升级方法、装置、可读存储介质及电子设备

Also Published As

Publication number Publication date
CN105677375A (zh) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2016078263A1 (zh) 升级控制设备、终端、终端升级方法及***、存储介质
US8423991B2 (en) Embedded network device and firmware upgrading method
CN106708543B (zh) 一种操作***的ota升级方法及装置
US9152428B2 (en) Alternative boot path support for utilizing non-volatile memory devices
CN104199706A (zh) 一种eMMC的固件升级方法及其设备
EP3001309A1 (en) Application migration method, device and system for mobile terminal
CN105718281B (zh) 一种触摸屏固件升级方法及装置
WO2016058350A1 (zh) 一种基站软件版本管理方法和设备
CN105335181A (zh) 一种实现ota升级的方法和终端
CN102880495A (zh) 移动终端及其软件升级方法
WO2016101503A1 (zh) 一种热补丁的实现方法和装置
CN105988843A (zh) 移动终端固件升级方法及固件升级装置
TWI489466B (zh) 記憶體抹除方法、記憶體控制器與記憶體儲存裝置
WO2016165597A1 (zh) 数据存储的处理方法及装置
WO2018054060A1 (zh) 一种处理器及BootLoader程序的更新方法、存储介质
CN102693144B (zh) 一种Android移动终端的电容屏固件升级的方法
WO2017045491A1 (zh) 一种对 sqlite3 型嵌入式数据库进行升级的方法及***
CN102163155A (zh) 存储设备的升级方法及升级控制装置
CN102650949A (zh) 一种存储设备的固件升级的方法及装置
CN103123605A (zh) 一种Android平台自动化集成测试方法和装置
KR20100088210A (ko) 휴대용 단말기에서 내장 대용량 메모리를 이용한 컨텐츠 다운로드 방법 및 장치
CN102004657A (zh) 一种电子设备及其升级方法
CN104461621A (zh) 一种更新属性信息的方法及装置
CN104063284B (zh) 运行应用程序的方法和装置
CN108153548A (zh) 一种emmc固件升级方法和装置

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

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

Country of ref document: EP

Kind code of ref document: A1