[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2016078263A1 - Upgrading control device and terminal, terminal upgrading method and system, and storage medium - Google Patents

Upgrading control device and terminal, terminal upgrading method and system, and storage medium 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
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 WO2016078263A1 publication Critical patent/WO2016078263A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of 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)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed are an upgrading control device and terminal, a terminal upgrading method and system, and a storage medium. During the upgrading process of a terminal, an upgrading control device acquires a current software version currently running in the terminal to be upgraded, compares the difference between the current software version and a new software version to be upgraded of the terminal to be upgraded to obtain a comparison result and controls the terminal to be upgraded to complete the upgrading according to the difference comparison result and corresponding data to be upgraded. The terminal to be upgraded in the embodiments 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 upgrading process, thus being different from an existing terminal which is required to directly upgrade the whole original software version when upgrading, hence, the number of erasing times of the terminal to be upgraded on a flash in the upgrading process can be markedly decreased, thus the time required for upgrading the terminal can be reduced, the terminal upgrading efficiency is increased, the production period of the terminal is shortened, and the production costs are decreased.

Description

升级控制设备、终端、终端升级方法及系统、存储介质Upgrade control device, terminal, terminal upgrade method and system, storage medium 技术领域Technical field
本发明涉及通讯领域,具体涉及一种升级控制设备、终端、终端升级方法及系统、存储介质。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.
背景技术Background technique
去年全球手机的发货量首次超过了10亿部,全世界移动用户数量超过31亿,而且预期在5年内全球的移动用户的数量将增长到50亿。由于移动终端设备的需求量急剧增涨,移动终端厂商的供货竞争也越来越激烈。为了应对终端设备供货压力,不仅要求不断缩短研发周期,而且需要提高移动终端设备的升级软件速度与兼容性,以满足客户不断提出的新需求。升级软件时终端与计算机等升级设备的物理连接方式大多采用串行设备接口或采用USB口设备接口与计算机进行数据通信,而升级软件的升级速度一直以来是制约生产周期的重要因素。Last year, global mobile phone shipments exceeded 1 billion for the first time, and the number of mobile users worldwide exceeded 3.1 billion. It is expected that the number of mobile users worldwide will increase to 5 billion within five years. As the demand for mobile terminal equipment has risen sharply, the competition for the supply of mobile terminal manufacturers has become increasingly fierce. In order to cope with the pressure of terminal equipment supply, it is not only required to shorten the development cycle, but also to improve the speed and compatibility of the upgrade software of mobile terminal equipment to meet the new demands that customers are constantly proposing. When the software is upgraded, the physical connection mode between the terminal and the computer, such as the upgraded device, mostly uses the serial device interface or uses the USB port device interface to communicate with the computer, and the upgrade speed of the upgrade software has always been an important factor restricting the production cycle.
提高终端设备升级的速度可以从两方面提高,第一种方式是使用多线程升级,即在同一部计算机上,同时连接多部终端设备进行并行的升级,这种在一台计算机上面通过同时连接多部终端设备进行升级的方法,其缺点是稳定性能不高,冗余性能较差;第二种方式是降低终端自身升级所消耗时间,通过减少一部设备升级需要花费的时间,在批量升级时就能节省生产成本。因此如何尽可能的减少终端升级所需要的时间就成为一个亟需解决的问题。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.
发明内容Summary of the invention
本发明要解决的主要技术问题是,提供一种升级控制设备、终端、终 端升级方法及系统、存储介质,解决如何减少终端升级所需时间的问题。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.
为解决上述技术问题,本发明实施例提供一种终端升级方法,包括:To solve the above technical problem, 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.
在本发明的一种实施例中,所述升级控制设备将所述当前软件版本与所述新软件版本进行差异比较包括:将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。In an embodiment of the present invention, 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.
在本发明的一种实施例中,所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级包括:In an embodiment of the present invention, 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;
或,or,
所述升级控制设备根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。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.
在本发明的一种实施例中,所述对应的待升级数据为所述新软件版本对应的所有数据,或所述数据存在差异的各地址所对应的新软件版本的数据。In an embodiment of the present invention, 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.
为了解决上述问题,本发明实施例还提供了一种终端升级方法,包括:In order to solve the above problem, 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.
在本发明的一种实施例中,所述比较结果包括数据存在差异的各地址;所述待升级终端根据所述比较结果和所述对应的待升级数据完成升级包括:In an embodiment of the present invention, 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;
或,or,
所述待升级终端接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。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.
为了解决上述问题,本发明实施例还提供了一种终端升级方法,包括:In order to solve the above problem, 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.
为了解决上述问题,本发明实施例还提供了一种升级控制设备,包括版本获取模块、比较模块以及控制模块;In order to solve the above problem, 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.
在本发明的一种实施例中,所述比较模块包括按位比较子模块,配置为将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。In an embodiment of the present invention, 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.
在本发明的一种实施例中,所述控制模块包括发送子模块,配置为将所述比较结果和对应的待升级数据控制发送给所述待升级终端;In an embodiment of the present invention, the 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;
或,or,
所述控制模块包括第一提取子模块和第一更新子模块,所述第一提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,所述第一更新子模块,配置为向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。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 data to be upgraded, the first update sub-module, configured to send an update instruction to the to-be-upgraded terminal to update original data of each address in the data to be upgraded to a corresponding data to be upgraded.
为了解决上述问题,本发明实施例还提供了一种终端,包括版本提供模块、升级模块;In order to solve the above problem, 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.
在本发明的一种实施例中,所述比较结果包括数据存在差异的各地址;所述升级模块包括接收子模块、第二提取子模块和第二更新子模块,所述接收子模块,配置为接收升级控制设备发送的所述比较结果和对应的待升级数据,所述第二提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,所述第二更 新子模块,配置为将数据存在差异的各地址的原数据更新为对应的待升级数据;In an embodiment of the present invention, 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. 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;
或,or,
所述升级模块包括指令处理子模块,配置为接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。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.
为了解决上述问题,本发明实施例还提供了一种终端升级系统,包括待升级终端和升级控制设备;In order to solve the above problem, 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 beneficial effects of the embodiments of the present invention are:
本发明实施例提供的升级控制设备、终端、终端升级方法及系统、存储介质,在终端升级过程中,升级控制设备获取待升级终端中当前运行的当前软件版本,并将当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果,并根据该差异化比较结果和对应的待升级数据控制待升级终端完成升级。也即本发明实施例中的待升级终端在升级过程中可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。 The upgrade control device, the terminal, the terminal upgrade method, the system, and the storage medium provided by the embodiment of the present invention, the upgrade control device 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, and 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.
附图说明DRAWINGS
图1为本发明实施例一提供的终端升级方法流程示意图;1 is a schematic flowchart of a method for upgrading a terminal according to Embodiment 1 of the present invention;
图2为本发明实施例一提供的手机升级方法流程示意图;2 is a schematic flowchart of a method for upgrading a mobile phone according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的终端升级系统结构示意图;3 is a schematic structural diagram of a terminal upgrade system according to Embodiment 2 of the present invention;
图4为本发明实施例二提供的升级控制设备结构示意图;4 is a schematic structural diagram of an upgrade control device according to Embodiment 2 of the present invention;
图5为本发明实施例二提供的待升级终端结构示意图。FIG. 5 is a schematic structural diagram of a terminal to be upgraded according to Embodiment 2 of the present invention.
具体实施方式detailed description
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。The embodiments of the present invention are described in detail with reference to the accompanying drawings.
实施例一:Embodiment 1:
本发明实施例提供了一种终端升级方法,所述方法应用于升级控制设备;请参见图1所示,所述方法包括:An embodiment of the present invention provides a terminal upgrade method, where the method is applied to an upgrade control device. Referring to FIG. 1, the method includes:
步骤101:升级控制设备获取待升级终端中当前运行的当前软件版本;Step 101: The upgrade control device acquires a current software version currently running in the terminal to be upgraded.
该步骤中的升级控制设备是指用于配合/控制待升级终端完成升级的设备。其可以是各种的计算机设备。该步骤中的待升级终端可以是手机、PAD等各种移动终端。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.
步骤102:升级控制设备将获取的当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果;也即该比较结果为差异化比较结果;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;
步骤103:升级控制设备根据比较结果和对应的待升级数据控制待升级终端进行升级。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.
应当理解的是,上述步骤102中的待升级的新软件版本可以是预先内置到升级控制设备中的,也可以是升级控制设备通过通信的方式从其他平台获取的。 It should be understood that 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.
上述步骤102中,升级控制设备具体可以将获取的当前软件版本与新软件版本按照地址对相同地址对应的数据进行差异比较,也即比较各地址对应的数据是否存在不同;对应的比较结果包括:数据存在差异的各地址。本实施例中具体可以通过线性表来存储数据存在差异的各地址。应当理解的是,本实施例中的比较结果也可以设置为包含数据相同的各地址;此时可采用排除法将数据相同的各地址进行排除后,剩余的地址则是数据存在差异的地址。In the above step 102, 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.
上述步骤103中,对应的待升级数据为新软件版本对应的所有数据,也即整个新软件版本;也可以为数据存在差异的各地址所对应的新软件版本的数据。上述步骤103中,升级控制设备根据比较结果和对应的待升级数据控制待升级终端进行升级的方式包括但不限于以下两种:In the above step 103, 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. In the foregoing step 103, 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:
方式一:method one:
升级控制设备将得到的比较结果和对应的待升级数据控制发送给待升级终端;这种方式由待升级终端自己进行数据的提取、地址的查找以及后续数据的擦除和写入更新。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.
方式二:Method 2:
升级控制设备根据得到的比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并向待升级终端发送更新指令(擦除、写入指令)将待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。这种方式的数据的提取、地址的查找等可以由升级控制设备完成。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 extraction of data in this manner, the search of addresses, and the like can be performed by the upgrade control device.
其中,所述对应的待升级数据为所述新软件版本对应的所有数据,或所述数据存在差异的各地址所对应的新软件版本的数据。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.
上述两种方式具体可根据实际需要选择。可见本实施例中对待升级终端升级时可以根据当前运行的软件版本以及待升级的新软件版本之间的差 异选择性的对数据存在差异的位置进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级。由于终端在升级过程中进行数据更新时需要对Flash进行擦除和写入操作,而该操作时最耗费时间的操作;现有终端直接对整个原有软件版本进行升级就需要多所有位置的数据进行更新,对应的其进行Flash擦除和写入操作就非常之多,从而导致终端升级需耗费大量的时间。而本实施例中的待升级终端则选择性的对新、旧数据不同的位置才进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。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.
应当理解的是,在上述步骤101之前,还包括待升级终端与升级控制设备建立通信连接的过程。本实施例中的待升级终端可以采用串行的方式与升级控制设备建立通信连接,也可采用并行的方式与升级控制设备建立通信连接。在建立通信连接过程中,在升级控制设备上制定好下载升级软件与终端软件交互的接口,通过该接口实现通信连接的建立以及后续数据的交互。在建立通信连接后,升级控制设备可以向待升级终端发送版本获取指令,待升级终端接收到该指令后进行数据包完整性等验证后对其进行解析得到对应的指令,并根据该指令反馈其现有的软件版本。It should be understood that, before the foregoing step 101, 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. In the process of establishing a communication connection, 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. After the communication connection is established, 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.
本发明实施例还提供了一种第一计算机存储介质,所述第一计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行图1所示的终端升级方法。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:
步骤A:待升级终端将其当前运行的当前软件版本提供给升级控制设备;Step A: The terminal to be upgraded provides the current software version currently running to the upgrade control device.
步骤B:所述待升级终端根据所述升级控制设备将所述当前软件版本 与待升级的新软件版本进行差异比较得到的比较结果、以及对应的待升级数据完成升级。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.
这里,所述比较结果包括数据存在差异的各地址;Here, the comparison result includes each address where the data differs;
对应的,上述步骤B中,待升级终端根据所述比较结果和对应的待升级数据完成升级也包括但不限于以下两种方式:Correspondingly, in the foregoing step B, 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:
方式一:method one:
待升级终端接收升级控制设备发送的比较结果和对应的待升级数据,根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并将数据存在差异的各地址的原数据更新为对应的待升级数据。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.
方式二:Method 2:
待升级终端单纯接收升级控制设备发送的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据即可,并不需要进行数据的提取和数据的查找等。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.
上述两种方式具体可根据实际需要选择。可见本实施例中对待升级终端升级时可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的对数据存在差异的位置进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级。由于终端在升级过程中进行数据更新时需要对Flash进行擦除和写入操作,而该操作时最耗费时间的操作;现有终端直接对整个原有软件版本进行升级就需要多所有位置的数据进行更新,对应的其进行Flash擦除和写入操作就非常之多,从而导致终端升级需耗费大量的时间。而本实施例中的待升级终端则选择性的对新、旧数据不同的位置才进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。 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 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:
步骤a:待升级终端将其当前运行的当前软件版本提供给升级控制设备;Step a: The terminal to be upgraded provides the current software version currently running to the upgrade control device;
步骤b:所述升级控制设备将所述当前软件版本与待升级的新软件版本进行差异比较得到比较结果;Step b: The upgrade control device compares the current software version with a new software version to be upgraded to obtain a comparison result;
步骤c:所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级。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.
本发明实施还提供了一种第三计算机存储介质,所述第三计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述步骤a至步骤c所对应的端升级方法。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. .
为了更好的理解本发明实施例,下面以待升级终端为手机,升级控制设备为计算机为例,对本发明实施例做进一步的示例性说明,请参见图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:
步骤201:手机通过串行或并行设备端口连接到计算机(笔记本)上,如UART、USB、PCMCIA口;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;
步骤202:计算机初始化各个模块,检查各个模块是否正常,若正常,转至步骤203;否则,转至步骤207;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;
步骤203:计算机获取手机当前运行的当前软件版本和待升级的新软件版本;Step 203: The computer obtains the current software version currently running by the mobile phone and the new software version to be upgraded;
步骤204:计算机按照地址二进制数据进行比较,如果当前位置的数据相同,进行下一位置的比较;如果数据不同,申请线性表的单元结构体, 保存当前的位置,然后将当前的表单元添加到线性表的结尾,再进行下一位置的比较,直到整个版本比较结束为止;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;
步骤205:计算机根据线性表以及新软件版本数据完成待升级终端中相应位置的数据擦除和写入操作,实现数据的更新;在该过程中手机将PC指针跳转到FLASH读写插件起始位置,计算机写入一个节点的方法如下:先获取当前要写入Flash的位置,然后计算要更新地址在Flash中对应的block,下发指令擦除该block,然后从新版本中读取对应位置数据,写入Flash中,重复上述操作直到整个线性表更新完成;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;
步骤206:完成上述操作后,计算机发送指令将手机设备重启,并结束整个升级过程。Step 206: After completing the above operation, the computer sends an instruction to restart the mobile device, and ends the entire upgrade process.
步骤207:则给出异常报告,设置设备端口的映射,然后检查通讯是否有效,可以通过得到设备的版本号,然后显示版本号来检查。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:
本实施例提供了终端升级系统,请参见图3所示,包括待升级终端1和升级控制设备2;升级控制设备2是指用于配合/控制待升级终端完成升级的设备,其可以是各种的计算机设备。待升级终端1可以是手机、PAD等各种移动终端。This embodiment provides a terminal upgrade system. As shown in FIG. 3, 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. Kind of computer equipment. The terminal 1 to be upgraded may be various mobile terminals such as a mobile phone and a PAD.
升级控制设备2,配置为获取待升级终端中当前运行的当前软件版本,将当前软件版本与待升级的新软件版本进行差异比较得到比较结果,根据得到的比较结果和对应的待升级数据控制待升级终端进行升级;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;
待升级终端1,配置为将其当前运行的当前软件版本提供给所述升级控制设备,以及根据升级控制设备得到的比较结果和对应的待升级数据完成升级。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.
具体的,请参见图4所示,升级控制设备2包括版本获取模块21、比较模块22以及控制模块23; Specifically, as shown in FIG. 4, the upgrade control device 2 includes a version acquisition module 21, a comparison module 22, and a control module 23;
版本获取模块21,配置为获取待升级终端中当前运行的当前软件版本;The version obtaining module 21 is configured to obtain a current software version currently running in the terminal to be upgraded;
比较模块22,配置为将版本获取模块21获取的当前软件版本与待升级的新软件版本进行差异比较得到比较结果;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;
控制模块23,配置为根据比较模块22得到的比较结果和对应的待升级数据控制待升级终端1完成升级。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.
本实施例中的比较模块22包括按位比较子模块,配置为将当前软件版本与新软件版本按照地址对相同地址对应的数据进行差异比较,得到的比较结果包括:数据存在差异的各地址。本实施例中具体可以通过线性表来存储数据存在差异的各地址。应当理解的是,本实施例中的比较结果也可以设置为包含数据相同的各地址;此时可采用排除法将数据相同的各地址进行排除后,剩余的地址则是数据存在差异的地址。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.
本实施例中的升级控制设备2根据比较结果和对应的待升级数据控制待升级终端1进行升级的方式包括但不限于以下两种: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:
方式一:method one:
升级控制设备2将得到的比较结果和对应的待升级数据控制发送给待升级终端;这种方式由待升级终端1自己进行数据的提取、地址的查找以及后续数据的擦除和写入更新。此时控制模块23包括发送子模块,配置为将比较结果和对应的待升级数据控制发送给所述待升级终端;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.
方式二:Method 2:
升级控制设备2根据得到的比较结果从对应的待升级数据中提取出数 据存在差异的各地址对应的待升级数据,并向待升级终端1发送更新指令(擦除、写入指令)将待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。这种方式的数据的提取、地址的查找等可以由升级控制设备完成。此时控制模块23包括第一提取子模块和第一更新子模块,第一提取子模块,配置为根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据;第一更新子模块,配置为向待升级终端发送更新指令将待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。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. At this time, 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.
在实际应用中,所述接收模块301、所述版本获取模块21、比较模块22以及控制模块23均可由升级控制设备2中的中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现;所述CPU、DSP、FPGA均可内置于数据查询系统中。In an actual application, 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.
请参见图5所示,本实施例中的待升级终端1包括版本提供模块11和升级模块12;Referring to FIG. 5, the terminal to be upgraded in this embodiment includes a version providing module 11 and an upgrade module 12;
版本提供模块11,配置为将终端当前运行的当前软件版本提供给升级控制设备2;The version providing module 11 is configured to provide the current software version currently running by the terminal to the upgrade control device 2;
升级模块12根据升级控制设备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.
对应升级控制设备2在根据比较结果和对应的待升级数据采用的两种升级方式,本实施例中的终端也具备以下两种升级方式: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.
方式一:method one:
待升级终端1接收升级控制设备2发送的比较结果和对应的待升级数据,根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并将数据存在差异的各地址的原数据更新为对应的待升 级数据。此时升级模块12包括接收子模块、第二提取子模块和第二更新子模块,接收子模块,配置为接收升级控制设备2发送的比较结果和对应的待升级数据,第二提取子模块,配置为根据比较结果从对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,第二更新子模块,配置为将数据存在差异的各地址的原数据更新为对应的待升级数据。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.
方式二:Method 2:
待升级终端单纯接收升级控制设备发送的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据即可,并不需要进行数据的提取和数据的查找等。此时升级模块12包括指令处理子模块,配置为接收升级控制设备2的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。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. At this time, 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.
在实际应用中,所述版本提供模块11和升级模块12均可由待升级设备1中的中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现;所述CPU、DSP、FPGA均可内置于数据查询系统中。In practical applications, 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. The Field Programmable Gate Array (FPGA) is implemented; the CPU, DSP, and FPGA can be built in the data query system.
应当理解的是,本实施例中的待升级终端1和升级控制设备2中都还包括对应的用于建立通信连接的连接模块。本实施例中可以采用串行的方式或并行的方式建立通信连接。在建立通信连接过程中,在升级控制设备上制定好下载升级软件与终端软件交互的接口,通过该接口实现通信连接的建立以及后续数据的交互。在建立通信连接后,升级控制设备可以向待升级终端发送版本获取指令,待升级终端接收到该指令后进行数据包完整性等验证后对其进行解析得到对应的指令,并根据该指令反馈其现有的软件版本。It should be understood that 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. In this embodiment, the communication connection can be established in a serial manner or in a parallel manner. In the process of establishing a communication connection, 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. After the communication connection is established, 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.
上述两种方式具体可根据实际需要选择。不管采用哪种方式,在对待 升级终端升级时都可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的对数据存在差异的位置进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级。可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。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.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that 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 present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。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 above is only an embodiment of the embodiments of the present invention, and it should be noted that those skilled in the art can make some improvements and refinements without departing from the principles of the embodiments of the present invention. Retouching should also be considered as the scope of protection of the embodiments of the present invention.
工业实用性Industrial applicability
本发明实施例在终端升级过程中,升级控制设备获取待升级终端中当前运行的当前软件版本,并将当前软件版本与该待升级终端的待升级的新软件版本进行差异比较得到比较结果,并根据该差异化比较结果和对应的待升级数据控制待升级终端完成升级。也即本发明实施例中的待升级终端在升级过程中可以根据当前运行的软件版本以及待升级的新软件版本之间的差异选择性的进行升级,并不需要像现有终端升级时直接对整个原有软件版本进行升级,因此可以明显降低待升级终端在升级过程中对Flash的擦写次数,从而可以减少终端升级所需的时间,提升终端升级效率,缩短终端生产周期,降低生产成本。 In the embodiment of the present invention, 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.

Claims (16)

  1. 一种终端升级方法,包括:A terminal upgrade method includes:
    升级控制设备获取待升级终端中当前运行的当前软件版本;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.
  2. 如权利要求1所述的终端升级方法,其中,所述升级控制设备将所述当前软件版本与所述新软件版本进行差异比较包括:将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。The method for upgrading a terminal according to claim 1, wherein the 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 pair The data corresponding to the same address is compared for difference; the comparison result includes: each address where the data has a difference.
  3. 如权利要求2所述的终端升级方法,其中,所述升级控制设备根据所述比较结果和对应的待升级数据控制所述待升级终端完成升级包括:The method for upgrading a terminal according to claim 2, wherein the upgrading control device controls the terminal to be upgraded 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;
    或,or,
    所述升级控制设备根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,并向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。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.
  4. 如权利要求2或3所述的终端升级方法,其中,所述对应的待升级数据为所述新软件版本对应的所有数据,或所述数据存在差异的各地址所对应的新软件版本的数据。The method for upgrading a terminal according to claim 2 or 3, wherein 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 .
  5. 一种终端升级方法,包括:A terminal upgrade method includes:
    待升级终端将其当前运行的当前软件版本提供给升级控制设备; 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.
  6. 如权利要求5所述的终端升级方法,其中,所述比较结果包括数据存在差异的各地址;所述待升级终端根据所述比较结果和所述对应的待升级数据完成升级包括:The method for upgrading a terminal according to claim 5, wherein the comparison result includes each address in which the data is different; and the upgrading of the terminal to be upgraded 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;
    或,or,
    所述待升级终端接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。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.
  7. 一种终端升级方法,包括:A terminal upgrade method includes:
    待升级终端将其当前运行的当前软件版本提供给升级控制设备;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.
  8. 一种升级控制设备,包括版本获取模块、比较模块以及控制模块;An upgrade control device includes 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 location according to the comparison result and the corresponding data to be upgraded The upgrade terminal is mentioned to complete the upgrade.
  9. 如权利要求8所述的升级控制设备,其中,所述比较模块包括按位比较子模块,配置为将所述当前软件版本与所述新软件版本按照地址对相同地址对应的数据进行差异比较;所述比较结果包括:数据存在差异的各地址。The upgrade control device according to claim 8, wherein the comparison module comprises 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 result includes: each address where the data differs.
  10. 如权利要求9所述的升级控制设备,其中,所述控制模块包括发送子模块,配置为将所述比较结果和对应的待升级数据控制发送给所述待升级终端;The upgrade control device according to claim 9, wherein the 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;
    或,or,
    所述控制模块包括第一提取子模块和第一更新子模块,所述第一提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数据,所述第一更新子模块,配置为向所述待升级终端发送更新指令将所述待升级终端中数据存在差异的各地址的原数据更新为对应的待升级数据。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 data to be upgraded, the first update sub-module, configured to send an update instruction to the to-be-upgraded terminal to update original data of each address in the data to be upgraded to a corresponding data to be upgraded.
  11. 一种终端,包括版本提供模块、升级模块;A terminal includes 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.
  12. 如权利要求11所述的终端,其中,所述比较结果包括数据存在差异的各地址;所述升级模块包括接收子模块、第二提取子模块和第二更新子模块,所述接收子模块,配置为接收升级控制设备发送的所述比较结果和对应的待升级数据,所述第二提取子模块,配置为根据所述比较结果从所述对应的待升级数据中提取出数据存在差异的各地址对应的待升级数 据,所述第二更新子模块,配置为将数据存在差异的各地址的原数据更新为对应的待升级数据;The terminal according to claim 11, wherein 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 updating submodule, and the receiving submodule, The second extraction sub-module is configured to extract, according to the comparison result, the data difference from the corresponding data to be upgraded, according to the comparison result sent by the upgrade control device and the corresponding data to be upgraded. Number of upgrades corresponding to the address According to the second update submodule, the original data of each address with different data is configured to be updated to corresponding data to be upgraded;
    或,or,
    所述升级模块包括指令处理子模块,,配置为接收所述升级控制设备的更新指令,将数据存在差异的各地址的原数据更新为对应的待升级数据。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 be corresponding data to be upgraded.
  13. 一种终端升级系统,包括待升级终端和升级控制设备;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.
  14. 一种第一计算机存储介质,所述第一计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的方法。A first computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 4.
  15. 一种第二计算机存储介质,所述第二计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求5或6所述的方法。A second computer storage medium having stored therein computer executable instructions for performing the method of claim 5 or 6.
  16. 一种第三计算机存储介质,所述第三计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求7所述的方法。 A third computer storage medium having stored therein computer executable instructions for performing the method of claim 7.
PCT/CN2015/074303 2014-11-18 2015-03-16 Upgrading control device and terminal, terminal upgrading method and system, and storage medium WO2016078263A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410658612.XA CN105677375A (en) 2014-11-18 2014-11-18 Update control device, terminal, terminal update method and system
CN201410658612.X 2014-11-18

Publications (1)

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

Family

ID=56013163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074303 WO2016078263A1 (en) 2014-11-18 2015-03-16 Upgrading control device and terminal, terminal upgrading method and system, and storage medium

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112289431A (en) * 2020-09-30 2021-01-29 音数汇元(上海)智能科技有限公司 Home care terminal upgrading method and device, computer equipment and storage medium
CN112540782A (en) * 2020-12-16 2021-03-23 歌尔光学科技有限公司 Equipment component upgrading method, device, equipment and storage medium
CN112685053A (en) * 2019-10-18 2021-04-20 航天科工惯性技术有限公司 Remote upgrading control method for single chip microcomputer program
CN114064065A (en) * 2020-07-31 2022-02-18 北京嗨动视觉科技有限公司 Program upgrading method and program upgrading system
CN114201320A (en) * 2022-02-18 2022-03-18 深圳佰维存储科技股份有限公司 System block upgrading method and device, readable storage medium and electronic equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383726B (en) * 2016-08-30 2019-06-18 武汉精测电子集团股份有限公司 A kind of signal adapter upgrade method based on image/video coffret
CN109358892B (en) * 2018-09-26 2022-04-05 潍柴动力股份有限公司 Software version upgrading method and device
CN112423290B (en) * 2020-11-05 2022-10-18 歌尔科技有限公司 Wireless upgrading method, terminal equipment, device to be upgraded and medium
CN114489742B (en) * 2021-12-31 2023-09-05 杭州加速科技有限公司 Upgrading method and system for improving FPGA online upgrading efficiency in ATE equipment

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 (en) * 2007-09-19 2008-02-20 中兴通讯股份有限公司 Differential update system and method for electronic service guidance
CN101567741A (en) * 2008-04-23 2009-10-28 中兴通讯股份有限公司 Methods and system for transmitting and receiving electronic service instructions
US20100205638A1 (en) * 2007-09-20 2010-08-12 Zte Corporation System and method for difference update of electronic service guide
CN101945135A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method and system for upgrading widget system
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
CN103200219A (en) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 Data package updating method, device, terminal equipment and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100440950B1 (en) * 2001-06-30 2004-07-21 삼성전자주식회사 Method for upgrading software in network environment and network device thereof
EP1533695B1 (en) * 2003-11-19 2013-08-07 TELEFONAKTIEBOLAGET LM ERICSSON (publ) Updating data in a mobile terminal
CN101377744B (en) * 2008-09-24 2012-02-15 华为终端有限公司 Method and apparatus for recovering terminal equipment software upgrade
CN101668081A (en) * 2009-09-24 2010-03-10 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and automatic upgrading method thereof
CN101916200B (en) * 2010-08-03 2015-08-26 中兴通讯股份有限公司 The method of terminal staging, the method for backoff of terminal upgrading and upgrading management center

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 (en) * 2007-09-19 2008-02-20 中兴通讯股份有限公司 Differential update system and method for electronic service guidance
US20100205638A1 (en) * 2007-09-20 2010-08-12 Zte Corporation System and method for difference update of electronic service guide
CN101567741A (en) * 2008-04-23 2009-10-28 中兴通讯股份有限公司 Methods and system for transmitting and receiving electronic service instructions
CN101945135A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method and system for upgrading widget system
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN103200219A (en) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 Data package updating method, device, terminal equipment and server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685053A (en) * 2019-10-18 2021-04-20 航天科工惯性技术有限公司 Remote upgrading control method for single chip microcomputer program
CN112685053B (en) * 2019-10-18 2024-05-14 航天科工惯性技术有限公司 Remote upgrade control method for singlechip program
CN114064065A (en) * 2020-07-31 2022-02-18 北京嗨动视觉科技有限公司 Program upgrading method and program upgrading system
CN112289431A (en) * 2020-09-30 2021-01-29 音数汇元(上海)智能科技有限公司 Home care terminal upgrading method and device, computer equipment and storage medium
CN112540782A (en) * 2020-12-16 2021-03-23 歌尔光学科技有限公司 Equipment component upgrading method, device, equipment and storage medium
CN114201320A (en) * 2022-02-18 2022-03-18 深圳佰维存储科技股份有限公司 System block upgrading method and device, readable storage medium and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2016078263A1 (en) Upgrading control device and terminal, terminal upgrading method and system, and storage medium
US8423991B2 (en) Embedded network device and firmware upgrading method
CN106708543B (en) OTA (over the air) upgrading method and device of operating system
US9152428B2 (en) Alternative boot path support for utilizing non-volatile memory devices
CN104199706A (en) Firmware upgrade method and device for eMMC
WO2016058350A1 (en) Base station software version management method and device
CN105335181A (en) OTA upgrade realization method and terminal
WO2016101503A1 (en) Hot patching realization method and apparatus
CN102129375A (en) Method and equipment for system upgrade of mobile terminal
CN102426531A (en) Intelligent terminal, application program updating system and updating method thereof
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
WO2018054060A1 (en) Processor and bootloader program update method, and storage medium
CN102163155A (en) Upgrade controlling device and method for upgrading memory device
WO2017045491A1 (en) Method and system for upgrading sqlite3 embedded database
CN104503922B (en) The method that loading WindowsCE systems are guided based on uboot
CN102650949A (en) Method and device for upgrading firmware of storage equipment
WO2019041891A1 (en) Method and device for generating upgrade package
KR20100088210A (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN105404536A (en) Terminal software upgrade method and terminal software upgrade apparatus
CN104461621A (en) Attribute information updating method and device
CN106303707A (en) A kind of version method for burn-recording, system and terminal
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN103019789B (en) A kind of sign software upgrade method, device and mobile terminal
CN102004657A (en) Electronic equipment and updating method thereof
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 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