WO2016058188A1 - 一种应用于终端的软件升级方法、装置及终端 - Google Patents

一种应用于终端的软件升级方法、装置及终端 Download PDF

Info

Publication number
WO2016058188A1
WO2016058188A1 PCT/CN2014/088869 CN2014088869W WO2016058188A1 WO 2016058188 A1 WO2016058188 A1 WO 2016058188A1 CN 2014088869 W CN2014088869 W CN 2014088869W WO 2016058188 A1 WO2016058188 A1 WO 2016058188A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade file
upgrade
terminal
file
memory
Prior art date
Application number
PCT/CN2014/088869
Other languages
English (en)
French (fr)
Inventor
马晓伟
郝志明
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/088869 priority Critical patent/WO2016058188A1/zh
Publication of WO2016058188A1 publication Critical patent/WO2016058188A1/zh

Links

Images

Classifications

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

Definitions

  • the embodiments of the present invention relate to the field of electronic information technologies, and in particular, to a software upgrade method, device, and terminal applied to a terminal.
  • the mobile phone can upgrade the software and system in the mobile phone through a USB (Universal Serial Bus) or an SD card (Secure Digital Memory Card).
  • USB Universal Serial Bus
  • SD card Secure Digital Memory Card
  • the PC needs to download a PC (personal computer) tool, install the mobile phone driver, and connect to the mobile phone through the data cable, and download the upgrade package to the mobile phone for local upgrade;
  • PC personal computer
  • the mobile phone driver needs to be installed on the computer, and the upgrade package between the computer and the mobile phone can be completed through the data line, so the mobile phone upgrade depends on the data line and the mobile phone driver;
  • the SD card needs to match the mobile phone, and the SD card needs to be able to store the complete upgrade package, that is, the capacity of the SD card must be greater than or equal to the size of the upgrade package, so the mobile phone upgrade depends on the SD.
  • Conditions such as the capacity of the card, the compatibility of the SD card and the mobile phone. Therefore, the mobile phone upgrade depends on external conditions such as the data cable, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, so that the mobile phone upgrade is limited by external conditions.
  • the embodiment of the invention provides a software upgrade method, device and terminal applied to the terminal, which can enable the terminal upgrade to get rid of the external conditions such as the data line, the mobile phone driver, the SD card capacity and the compatibility of the SD card and the mobile phone.
  • the embodiment of the present invention adopts the following technical solutions:
  • an embodiment of the present invention provides a software upgrade method applied to a terminal, where the method includes:
  • the terminal downloads an upgrade file required for software upgrade from a storage space corresponding to the terminal on the network side, where the upgrade file is stored in the storage space;
  • the terminal upgrades the software according to the downloaded upgrade file.
  • the terminal includes a memory and an embedded multimedia card; and the terminal downloads a software upgrade required from the storage space corresponding to the terminal located on the network side Upgrade files, including:
  • the terminal downloads the upgrade file to the memory from the storage space corresponding to the terminal located on the network side;
  • the terminal acquires the upgrade file from the memory, and stores the upgrade file to the embedded multimedia card.
  • the upgrade file is divided into N upgrade file slices, and the N upgrade file slices are the first upgrade file slice to The Nth upgrade file, N is an integer, and N>1;
  • the terminal downloads the upgrade file to the memory from the storage space corresponding to the terminal located on the network side; the terminal acquires the upgrade file from the memory, and stores the upgrade file to
  • the embedded multimedia card includes:
  • the terminal downloads the first upgrade file to the i1th upgrade file to the memory from the storage space;
  • the terminal acquires the first upgrade file to the i1th upgrade file from the memory, and stores the first upgrade file to the i1th upgrade file to the embedded multimedia card;
  • the first upgrade file to the i1th upgrade file are stored in the embedded multimedia After the card, the terminal downloads the i1+1+1 upgrade file to the i1+i2 upgrade file from the storage space to the memory;
  • the terminal acquires the i3+1+1 upgrade file to the Nth upgrade file from the memory, and stores the i3+1 upgrade file to the Nth upgrade file to the embedded multimedia card;
  • i1, i2, and i3 are integers, and 1 ⁇ i1 ⁇ N, i1+1 ⁇ i1+i2 ⁇ N, i1+i2 ⁇ i3+1 ⁇ N.
  • the upgrade file is divided into N upgrade files, and the N upgrade files are the first upgrade file to The Nth upgrade file, N is an integer, and N>1;
  • the terminal downloads the upgrade file to the memory from the storage space corresponding to the terminal located on the network side, the terminal acquires the upgrade file from the memory, and stores the upgrade file to
  • the embedded multimedia card includes:
  • the terminal downloads the first upgrade file piece to the Nth upgrade file piece from the storage space to the memory;
  • the terminal acquires the first upgrade file piece to the Nth upgrade file piece from the memory, and stores the first upgrade file piece to the Nth upgrade file piece to the embedded multimedia card.
  • the terminal upgrades the software according to the downloaded upgrade file, including:
  • the partial upgrade file piece begins to upgrade the software
  • the terminal continues to upgrade the software according to other parts of the embedded file that are subsequently stored in the embedded multimedia card.
  • the method further includes:
  • the terminal When the terminal downloads the k1th upgrade file from the storage space to the memory, the terminal adds first identifier information to the k1th upgrade file, and the first identifier information is used to identify that the file is being downloaded.
  • the k1th upgrade file to the memory; and/or
  • the terminal When the terminal acquires the k2th upgrade file from the memory and stores the k2th upgrade file to the embedded multimedia card, the terminal adds second identifier information to the k2th upgrade file slice.
  • the second identifier information is used to identify the kth upgrade file slice being stored to the embedded multimedia card;
  • k1 and k2 are integers, and 1 ⁇ k1 ⁇ N, 1 ⁇ k2 ⁇ N.
  • the terminal is located from the network side Before the storage space corresponding to the terminal is downloaded, the method further includes:
  • the method further includes:
  • the k3th upgrade file slice is re-downloaded from the storage space, where k3 is an integer, and 1 ⁇ k3 ⁇ N.
  • an embodiment of the present invention provides a software upgrade apparatus applied to a terminal, where the apparatus includes:
  • a file downloading module configured to download an upgrade file required for a software upgrade from a storage space corresponding to the terminal located on the network side, where the upgrade file is stored in the storage space;
  • the upgrade module is configured to upgrade the software according to the downloaded upgrade file.
  • the device includes a memory and an embedded multimedia card; and the file downloading module includes:
  • a downloading unit configured to download the upgrade file to the memory from the storage space corresponding to the terminal located on a network side;
  • a storage unit configured to acquire the upgrade file from the memory, and store the upgrade file to the embedded multimedia card.
  • the upgrade file is divided into N upgrade files, and the N upgrade files are the first upgrade file to The Nth upgrade file, N is an integer, and N>1;
  • the downloading unit is further configured to download, from the storage space, the first upgrade file to the i1th upgrade file to the memory;
  • the storage unit is further configured to acquire the first upgrade file to the i1th upgrade file from the memory, and store the first upgrade file to the i1th upgrade file to the embedded multimedia card. ;
  • the downloading unit is further configured to: after the first upgrade file to the i1th upgrade file are stored in the embedded multimedia card, upgrade the i1+1 upgrade file from the storage space to the i1+ The i2 upgrade file is downloaded to the memory;
  • the storage unit is further configured to obtain the i1+1+1 upgrade file from the memory to the i1+i2 upgrade file, and slice the i1+1 upgrade file to the i1+i2 upgrade file. Storing to the embedded multimedia card;
  • the downloading unit is further configured to download the i3+1th upgrade file to the Nth upgrade file to the memory from the storage space;
  • the storage unit is further configured to acquire the i3+1th upgrade file to the Nth upgrade file from the memory, and store the i3+1 upgrade file to the Nth upgrade file to the Embedded multimedia card;
  • i1, i2, and i3 are integers, and 1 ⁇ i1 ⁇ N, i1+1 ⁇ i1+i2 ⁇ N, i1+i2 ⁇ i3+1 ⁇ N.
  • the upgrade file is divided into N upgrade file slices, and the N upgrade file slices are the first upgrade file slice to The Nth upgrade file, N is an integer, and N>1;
  • the downloading unit is further configured to download the first upgrade file piece to the Nth upgrade file piece from the storage space to the memory;
  • the downloading unit is further configured to acquire the first upgrade file piece to the Nth upgrade file piece from the memory, and store the first upgrade file piece to the Nth upgrade file piece to the embedded multimedia card.
  • the upgrading module is further configured to: after the partial upgrade file is stored to the embedded multimedia card, The terminal starts to upgrade the software according to the partially upgraded file piece;
  • the terminal continues to upgrade the software according to other parts of the embedded multimedia card that are subsequently upgraded to the file.
  • the downloading unit includes:
  • a first identifier adding subunit configured to add first identifier information, where the first identifier information is used, to the k1th upgrade file slice when downloading the k1th upgrade file from the storage space to the memory Identifying the k1th upgrade file slice being downloaded to the memory;
  • the storage unit further includes:
  • a second identifier adding a subunit for obtaining a k2th upgrade file piece from the memory, and
  • the second identifier information is added to the k2th upgrade file, and the second identifier information is used to identify that the embedded multimedia card is being stored.
  • k1 and k2 are integers, and 1 ⁇ k1 ⁇ N, 1 ⁇ k2 ⁇ N.
  • the method further includes:
  • a message sending module configured to send an upgrade request message to the storage space
  • a list obtaining module configured to receive an upgrade version list sent by the storage space, where the upgrade version list includes at least two upgrade file versions corresponding to the upgrade request message stored in the storage space;
  • a version determining module configured to receive a selection instruction of the user, and determine, in the upgrade version list, an upgrade file version corresponding to the upgrade file to be downloaded according to the selection instruction.
  • the downloading unit further includes:
  • a detecting subunit configured to perform integrity detection on the k3th upgrade file slice downloaded to the memory when downloading the k3th upgrade file from the storage space to the memory;
  • a re-downloading sub-unit configured to re-download the k3th upgrade file slice from the storage space when detecting that the k3th upgrade file slice is incomplete, wherein k3 is an integer, and 1 ⁇ k3 ⁇ N.
  • an embodiment of the present invention provides a terminal, where the terminal includes at least a network interface and a processor, where the network interface is used for data interaction with a network side;
  • the processor is configured to download, by using the network interface, an upgrade file required for software upgrade from a storage space corresponding to the terminal located on the network side, where the upgrade file is stored in the storage space;
  • the processor is further configured to upgrade the software according to the downloaded upgrade file.
  • the terminal includes a memory and an embedded multimedia card
  • the processor is further configured to download, by using the network interface, the upgrade file to the memory from the storage space corresponding to the terminal located on a network side;
  • the processor is further configured to acquire the upgrade file from the memory, and store the upgrade file to the embedded multimedia card.
  • the upgrade file is divided into N upgrade file slices, and the N upgrade file slices are the first upgrade file slice to The Nth upgrade file, N is an integer, and N>1;
  • the processor is further configured to download, by using the network interface, the first upgrade file to the i1th upgrade file to the memory from the storage space;
  • the processor is further configured to acquire the first upgrade file to the i1th upgrade file from the memory, and store the first upgrade file to the i1th upgrade file to the embedded multimedia card;
  • the processor is further configured to use the network interface to save the i1+1 upgrade file from the storage space after the first upgrade file to the i1th upgrade file are stored in the embedded multimedia card. Up to the i1+i2 upgrade file to download to the memory;
  • the processor is further configured to acquire the i1+1+1 upgrade file to the i1+i2 upgrade file from the memory, and save the i1+1 upgrade file to the i1+i2 upgrade file storage.
  • i1, i2, and i3 are integers, and 1 ⁇ i1 ⁇ N, i1+1 ⁇ i1+i2 ⁇ N, i1+i2 ⁇ i3+1 ⁇ N.
  • the upgrade file is divided into N upgrade file slices, and the N upgrade file slices are the first upgrade.
  • File to Nth upgrade file N is an integer, and N>1;
  • the processor is further configured to download the first upgrade file piece to the Nth upgrade file piece to the memory through the network interface;
  • the processor is further configured to acquire the first upgrade file to the Nth upgrade file from the memory, and store the first upgrade file to the Nth upgrade file to the embedded multimedia card.
  • the processor is further configured to: after the partial upgrade file is stored to the embedded multimedia card, According to the partial upgrade file, the software is upgraded;
  • the software is further upgraded according to the subsequent upgrade file fragments stored to other parts of the embedded multimedia card.
  • the processor is further configured to: when When the k1th upgrade file is downloaded to the memory, the first identifier information is added to the k1th upgrade file, and the first identifier information is used to identify the k1th upgrade file that is being downloaded to the memory; and / or
  • the k2th upgrade file is obtained from the memory, and the k2th upgrade file is stored in the embedded multimedia card, adding second identification information, the second identifier, to the k2th upgrade file
  • the information is used to identify the kth upgrade file slice being stored to the embedded multimedia card
  • k1 and k2 are integers, and 1 ⁇ k1 ⁇ N, 1 ⁇ k2 ⁇ N.
  • the processor is further configured to send an upgrade to the storage space by using the network interface Request message
  • the processor is further configured to receive, by using the network interface, an upgrade version list sent by the storage space, where the upgrade version list includes at least two upgrade file versions corresponding to the upgrade request message stored in the storage space. ;
  • the processor is configured to receive a selection instruction of the user, and determine, in the upgrade version list, an upgrade file version corresponding to the upgrade file to be downloaded according to the selection instruction.
  • the processor is further configured to: when the terminal is When the storage space downloads the k3th upgrade file to the memory, performing integrity detection on the k3th upgrade file downloaded to the memory;
  • the k3 upgrade file slice is re-downloaded from the storage space, where k3 is an integer, and 1 ⁇ k3 ⁇ N.
  • the terminal downloads the upgrade file required for the upgrade from the storage space located on the network side, and the terminal performs the upgrade according to the downloaded upgrade file.
  • the terminal in the present invention is connected to the storage space through the communication network, and the software in the terminal is upgraded.
  • the required upgrade file comes from the storage space, and can directly download the upgrade file required for the software upgrade from the storage space to the terminal, so there is no need to use the data cable and the SD card, so that the terminal upgrade can be freed from the data line and the mobile phone driver.
  • the dependence of the external conditions such as the program, the SD card capacity, and the compatibility of the SD card and the mobile phone removes the limitation of external conditions on the terminal upgrade.
  • FIG. 1 is a flowchart of a software upgrade method applied to a terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an implementation manner of a software upgrade method applied to a terminal according to an embodiment of the present invention
  • FIG. 3 is another schematic diagram of a software upgrade method applied to a terminal according to an embodiment of the present invention. Flow chart of implementation;
  • FIG. 4 is a flowchart of still another implementation manner of a software upgrade method applied to a terminal according to an embodiment of the present disclosure
  • FIG. 5a and FIG. 5b are flowcharts of still another implementation manner of a software upgrade method applied to a terminal according to an embodiment of the present invention
  • FIG. 6 is a flowchart of still another implementation manner of a software upgrade method applied to a terminal according to an embodiment of the present disclosure
  • FIG. 7 is a flowchart of another software upgrade method applied to a terminal according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of still another implementation manner of a software upgrade method applied to a terminal according to an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of a software upgrade apparatus applied to a terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of an implementation manner of a software upgrading apparatus applied to a terminal according to an embodiment of the present disclosure
  • FIG. 11 is a schematic structural diagram of another implementation manner of a software upgrading apparatus applied to a terminal according to an embodiment of the present disclosure
  • FIG. 12 is a schematic structural diagram of another software upgrade apparatus applied to a terminal according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of still another implementation manner of a software upgrading apparatus applied to a terminal according to an embodiment of the present disclosure
  • FIG. 14 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the technical solution provided by the embodiment of the present invention is applied to a terminal, and the terminal is equipped with a storage space corresponding to the terminal on the network side, and the terminal downloads an upgrade file required for upgrading the software in the terminal from the storage space on the network side, and then the terminal downloads according to the software. Upgrade files to upgrade the software.
  • the terminal mainly refers to terminals such as mobile phones and tablet computers.
  • the network side here may be a data network or a wireless network, and the terminal can perform data interaction with the network side by opening data traffic or connecting to the wireless data network.
  • the storage space on the network side may be, for example, a cloud disk, a mobile phone network disk, or the like.
  • An embodiment of the present invention provides a software upgrade method applied to a terminal, as shown in FIG. 1 , including:
  • the terminal downloads an upgrade file required for upgrading the software from a storage space corresponding to the terminal located on the network side.
  • the storage space stores the upgrade file required for the software upgrade in the terminal, and the software may be system software, for example, an android (Android) system installed in the terminal, an ios system, etc., or an application software, for example, installed in the terminal. Navigation software, chat software, reading software, etc.
  • the storage space corresponding to the terminal on the network side decompresses the compressed package where the upgrade file is located, and obtains the decompressed upgrade file, so that the terminal does not need to perform the decompression process.
  • the storage space on the network side can be divided into multiple independent intervals.
  • the upgrade file can be placed in a separate interval of the storage space, so that all upgrade files required for software upgrade are downloaded from the independent interval in the storage space, thereby avoiding Download files unrelated to the software upgrade to the terminal.
  • the mobile phone is equipped with a dedicated mobile phone network disk on the network side.
  • the mobile phone network disk is divided into C area, D area and E area.
  • the Android system of the mobile phone is waiting for the upgrade, and the upgrade files required for upgrading the Android system of the mobile phone are all placed with the mobile phone.
  • the C area of the network disk when the mobile phone downloads the upgrade file from the mobile phone network disk, it can establish a data transmission channel with the C area in the mobile phone network disk.
  • the terminal and the storage space located on the network side are connected through a communication network
  • the communication network may be, for example, WiFi (Wireless Fidelity), 3G (3rd-Generation, 3rd generation mobile communication technology) network, 4G (4rd-Generation, Four generations of mobile communication technology) networks and so on.
  • the terminal upgrades the software according to the downloaded upgrade file.
  • the terminal can install the upgrade program in the upgrade file after the upgrade file is downloaded to implement the upgrade of the software.
  • the terminal can also install the upgrade file in the downloaded upgrade file while downloading the upgrade file.
  • the software upgrade may be an upgrade of the operating system software in the terminal, or an upgrade of the software of the application installed in the terminal.
  • the present invention is not limited to the use of a storage space located on the network side for upgrading system software, application software, etc., and may also store data generally stored in the terminal in a storage space on the network side, and when the terminal is powered on, through networking.
  • the method is connected to the storage space on the network side, and data interaction between the terminal and the storage space on the network side enables the terminal to directly use the data stored on the network side, thereby saving storage resources of the terminal.
  • the data stored in the storage space on the network side may be an address book, a short message information, an APK (Android Package, an Android installation package), or the like.
  • the embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the terminal downloads an upgrade file required for the upgrade from a storage space located on the network side, and performs an upgrade according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, it is not necessary to use data lines and SD cards, etc., so that the terminal upgrade can be freed from dependence on external conditions such as data lines, mobile phone drivers, and SD cards, and the limitation of external conditions on terminal upgrades is removed.
  • the embodiment of the present invention further provides a specific solution for the software upgrade method applied to the terminal, and further refines the execution process of the 101 shown in FIG.
  • the specific implementation is 1011-1012, as shown in Figure 2, including:
  • the terminal downloads the upgrade file to the memory from the storage space corresponding to the terminal located on a network side.
  • the memory is a storage space for temporarily storing data in the terminal, that is, a storage space for buffering data in the terminal, such as: DDR (Double Data Rate), SDRAM (Synchronous Dynamic Random Access Memory) Access memory) and so on.
  • DDR Double Data Rate
  • SDRAM Synchronous Dynamic Random Access Memory
  • the terminal acquires the upgrade file from the memory, and stores the upgrade file to the embedded multimedia card.
  • Embedded Multi Media Card is also known as an embedded fixed storage area, which is a storage space for storing data in a terminal. After the upgrade file is stored in the embedded multimedia card, the terminal can use the upgrade file to upgrade the software.
  • EMMC Embedded Multi Media Card
  • the embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the upgrade file required for software upgrade is downloaded from the storage space located on the network side to the memory of the terminal, and the upgrade file is obtained from the memory.
  • the terminal upgrades the software according to the upgrade file stored in the embedded multimedia card.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal.
  • the terminal downloads the upgrade file
  • the embodiment of the present invention further provides a specific solution for the software upgrade method applied to the terminal, and the upgrade file is Divided into N upgrade files, N upgrade files are the first upgrade file to the Nth upgrade file, N is an integer, and N>1; 1011-1012 can also be specifically implemented as 1011a, 1012a, 1011b, 1012b , 1011c, 1012c, as shown in Figure 3, including:
  • the terminal downloads the first upgrade file piece to the i1-th upgrade file piece from the storage space to the memory.
  • the upgrade file can be divided into multiple upgrade files, that is, the first file to the Nth file.
  • the size of each upgrade file is less than or equal to the memory in the terminal. Size; the terminal downloads the upgrade file in the storage space in units of upgrade files.
  • the terminal downloads the first upgrade file to the i1th upgrade file to the memory from the storage space, i1 is an integer, and 1 ⁇ i1 ⁇ N; that is, the terminal downloads at least one upgrade file into the memory, and then proceeds in the subsequent process.
  • the at least one upgrade file is stored to the embedded multimedia card, and the terminal upgrades the software by using the at least one upgrade file that has been stored in the embedded multimedia card.
  • the terminal acquires the first upgrade file to the i1th upgrade file from the memory, and stores the first upgrade file to the i1th upgrade file to the embedded multimedia card.
  • the content of storing the first upgrade file to the i1th upgrade file to the embedded multimedia card is described in 1011a, and details are not described herein again.
  • the terminal obtains the first upgrade file piece from the memory to the i1th upgrade file piece, and stores the first upgrade file piece to the i1th upgrade file piece to the embedded multimedia card, the memory will release the original storage first. Upgrade the file to the space of the i1 upgrade file to avoid the lack of free memory capacity when upgrading the software.
  • the terminal sends the i1+1 upgrade file to the i1+i2 upgrade file from the storage space.
  • the slice is downloaded to the memory.
  • i2 is an integer and i1+1 ⁇ i1+i2 ⁇ N.
  • the process of downloading the i1+1+1 file from the storage space to the i1+i2 upgrade file to the memory is basically the same as that of the 1011a, and is not described here.
  • the terminal acquires the i1+1+1 upgrade file from the memory to the i1+i2 upgrade file, and stores the i1+1 upgrade file to the i1+i2 upgrade file.
  • Embedded multimedia card Embedded multimedia card.
  • the terminal obtains the i1+1+1 upgrade file from the memory to the i1+i2 upgrade file.
  • the process of storing the i1+1 upgrade file to the i1+i2 upgrade file to the embedded multimedia card is basically the same as that of 1011b, and details are not described herein again.
  • i3 is an integer and i1+i2 ⁇ i3+1 ⁇ N.
  • the terminal downloads at least one upgrade file piece from the storage space to the memory, and obtains the at least one upgrade file piece from the memory, and stores the at least one upgrade file piece to the embedded multimedia card until the terminal upgrades the file. All the upgraded file pieces obtained by the segmentation are downloaded into the memory and stored in the embedded multimedia card, and the terminal upgrades the software by using the upgrade file slice stored in the embedded multimedia card until the software upgrade is completed.
  • the terminal acquires the i3+1th upgrade file to the Nth upgrade file from the memory, and stores the i3+1 upgrade file to the Nth upgrade file to the embedded multimedia card.
  • the mobile phone is configured with a dedicated mobile phone network disk on the network side.
  • the network disk stores upgrade files.
  • the upgrade file is divided into three upgrade files, which are the first upgrade file to the third upgrade file. 1Upload the file from the mobile phone network disk to the phone memory, and then obtain the first upgrade file from the memory, and store the first upgrade file to the embedded multimedia card, then the mobile phone will upgrade the second file from the mobile phone network.
  • the upgrade file is stored in the network disk, and the upgrade file is divided into 6 upgrade files, which are the first upgrade file to the sixth upgrade file.
  • the mobile phone downloads the first upgrade file from the mobile phone network disk to the mobile phone memory. Then, the first upgrade file is obtained from the memory, and the first upgrade file is stored in the embedded multimedia card, and then the mobile phone selects the second upgrade file, the third upgrade file, and the fourth upgrade file from the mobile phone.
  • the network disk is downloaded to the phone memory, and the second upgrade file is obtained from the memory.
  • the piece of the piece, the third upgrade file piece, the fourth upgrade file piece, and the second upgrade file piece, the third upgrade file piece, and the fourth upgrade file piece are stored in the embedded multimedia card, and then the mobile phone will upgrade the fifth upgrade file piece.
  • the sixth upgrade file is downloaded from the mobile phone network disk to the mobile phone memory, and then the fifth upgrade file piece and the sixth upgrade file piece are obtained from the memory, and the fifth upgrade file piece and the sixth upgrade file piece are stored in the embedded multimedia file.
  • the embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the upgrade file required for software upgrade is downloaded from the storage space located on the network side to the memory of the terminal, and the upgrade file is obtained from the memory.
  • the terminal upgrades the software according to the upgrade file stored in the embedded multimedia card.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal.
  • the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the upgrade file located in the storage space on the network side is divided into multiple upgrade file slices, ensuring that the size of each upgrade file slice is less than or equal to the memory size in the terminal, thereby avoiding free memory space in the terminal when downloading the upgrade file slice.
  • the terminal can download at least one upgrade file from the storage space located on the network side, and after storing the at least one upgrade file to the embedded multimedia card, the memory is released.
  • the space for storing at least one upgrade file piece further avoids the problem of lack of free memory space in the terminal when downloading the upgrade file.
  • the embodiment of the present invention further provides a specific solution for the method for upgrading the terminal, where the terminal includes a memory and an EMMC (Embedded Multi Media Card),
  • the upgrade file can be downloaded from the virtual storage space on the network side to the terminal.
  • the execution process of 1011-1012 shown in Figure 1 is further refined. 1011 can be implemented as 1011d, and 1012 can be implemented as 1012d, as shown in Figure 4. ,include:
  • the terminal downloads the first upgrade file piece to the Nth upgrade file piece from the storage space to the memory.
  • the upgrade file located in the storage space on the network side is divided into N upgrade files, that is, the first upgrade file to the Nth upgrade file, and the fragment is segmented and upgraded.
  • N is a positive integer.
  • the memory may be a memory such as a DDR (Double Data Rate) or a SDRAM (Synchronous Dynamic Random Access Memory).
  • DDR Double Data Rate
  • SDRAM Synchronous Dynamic Random Access Memory
  • the terminal acquires the first upgrade file to the Nth upgrade file from the memory, and stores the first upgrade file to the Nth upgrade file to the embedded multimedia card.
  • the first upgrade file slice to the Nth upgrade file slice may be downloaded from the storage space located on the network side to the memory of the terminal, and then The memory acquires the first upgrade file to the Nth upgrade file, and stores the first upgrade file to the Nth upgrade file to the embedded multimedia card.
  • the terminal may obtain the file information of the upgrade file, and the file information of the upgrade file includes the name of the upgrade file, because the software is used.
  • the process of upgrading is the original process of the software.
  • the sequence file is replaced with a new program file corresponding to the version after the software update, so the terminal can store the upgrade file piece to the appropriate address of the embedded multimedia card according to the file information of the upgrade file piece, so that the terminal can upgrade the software.
  • An embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the terminal downloads an upgrade file required for the upgrade from a storage space located on the network side, and the terminal upgrades according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, there is no need to use data lines and SD cards, etc., so that the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the terminal can also obtain file information of the upgraded file piece, and store the upgraded file piece according to the file information to an appropriate address in the embedded multimedia card.
  • the embodiment of the present invention further provides a specific solution for the software upgrade method applied to the terminal, and performs the execution of 102 shown in FIG.
  • the process is further refined, and 102 can be specifically implemented as 1021-1022, as shown in FIG. 5a, including:
  • the terminal After the partial upgrade file is stored in the embedded multimedia card, the terminal starts to upgrade the software according to the partially upgraded file.
  • the terminal can upgrade the software according to the upgrade file of the part, and upgrade the file according to the upgrade file of the part.
  • the terminal can simultaneously download the upgrade file pieces located in other parts of the network side to the memory, so as to reduce the time taken by the terminal to upgrade the software.
  • the terminal continues to upgrade the software according to other parts of the embedded file that are subsequently stored in the embedded multimedia card.
  • the terminal continues to upgrade the software according to other parts of the upgrade file that are subsequently stored in the embedded multimedia card.
  • the execution process of 102 shown in FIG. 4 is further refined, and 102 may also be specifically implemented as 1021-1022, as shown in FIG. 5b.
  • An embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the terminal downloads an upgrade file required for the upgrade from a storage space located on the network side, and the terminal upgrades according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, there is no need to use data lines and SD cards, etc., so that the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the terminal can upgrade the software by using the upgraded file piece, and does not need to wait for all the upgraded file pieces to be stored in the embedded multimedia card.
  • the software upgrade was started, which saved the time spent by the terminal on upgrading the software and improved the speed at which the terminal upgraded.
  • the embodiment of the present invention further provides a terminal upgrade method based on the solution shown in FIG.
  • the execution process of 1011-1012 shown in FIG. 2 is further refined.
  • 1011 may further include 1011e
  • 1012 may further include 1012e, as shown in FIG. 6, including:
  • the terminal when the terminal downloads the k1th upgrade file from the storage space to the memory, the terminal adds first identification information to the k1th upgrade file.
  • the first identifier information is used to identify the k1th upgrade file slice that is being downloaded to the memory, where k1 is an integer and 1 ⁇ k1 ⁇ N, that is, the k1th upgrade file slice is the first upgrade file slice to the Nth upgrade. Any one of the upgrade files in the file.
  • the first identifier information may be added at the end of the k1th upgrade file slice. After the current upgrade file is downloaded to the memory, the first identification information is removed from the current upgrade file, and the first identification information is added to the end of the next upgrade file when the next upgrade file is downloaded. At the end, the next upgrade file is identified as being downloaded into the terminal's memory.
  • an interruption occurs, such as a download interruption caused by a sudden power failure.
  • the upgrade file slice identified by the first identification information may continue to be used. Download, to achieve the function of breakpoint resume.
  • the terminal when the terminal acquires the k2th upgrade file from the memory, and stores the k2 upgrade file to the embedded multimedia card, the terminal adds a second to the k2 upgrade file Identification information.
  • the second identifier information is used to identify the k2th upgrade file that is being stored to the embedded multimedia card, where k2 is an integer and 1 ⁇ k2 ⁇ N, that is, the k2th upgrade file is the first upgrade file to the Nth upgrade file. Any one of the slices is upgraded.
  • the first identifier information may be added at the end of the k2th upgrade file.
  • the second identification information is removed from the current upgrade file, and the second identification information is added to the end of the next upgrade file when the next upgrade file is downloaded.
  • the next upgrade file is identified as being stored in the embedded multimedia card.
  • an interruption occurs, such as a download interruption caused by a sudden power failure.
  • the second identification information may continue to be used.
  • the identified upgrade file is stored in the embedded multimedia card, and the function of resuming the breakpoint is realized.
  • An embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the terminal downloads an upgrade file required for the upgrade from a storage space located on the network side, and the terminal upgrades according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, there is no need to use data lines and SD cards, etc., so that the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the terminal adds the first identification information and/or the second identification information to the upgrade file to identify the upgrade file slice currently being downloaded to the memory and/or the upgrade file slice currently being stored in the embedded multimedia card, when the download is interrupted.
  • the function of the resume transmission of the breakpoint can be used to continue downloading the upgrade file with the first identification information, and the downloading from the first upgrade file is avoided, and the interruption will occur.
  • the upgrade file with the second identification information is stored to the embedded multimedia card, which avoids the case of re-storing from the first upgrade file to the embedded multimedia card, saving the time for the terminal to upgrade the software.
  • the embodiment of the present invention further provides a specific solution for the method for upgrading the terminal, and adds 101a before 101 in FIG. 1 . , 101b, 101c, as shown in Figure 7, including:
  • the terminal sends an upgrade request message to the storage space.
  • the upgrade request message includes at least the model of the terminal, and may also include information such as the current version of the terminal and the size of the current version.
  • the model number 1 mobile phone sends an upgrade request message to the network disk mounted in the mobile phone cloud, and the upgrade request message includes information such as model 1, version 1.0, and the like.
  • the terminal receives an upgrade version list sent by the storage space.
  • the upgrade version list includes an upgrade file version corresponding to the upgrade request message stored in the storage space on the network side.
  • the upgrade version list may include a name, a type, and a check information, and the check information is, for example, MD5 (Message Digest Algorithm 5, message digest algorithm fifth edition).
  • MD5 Message Digest Algorithm 5, message digest algorithm fifth edition
  • the mobile phone with the model number 1 and the current version of version 1.0 sends an upgrade request message containing the mobile phone model to the cloud disk.
  • the cloud disk will be composed of the version information of the mobile phone model number 1 As shown in Table 1, the list of upgraded versions is sent to the mobile phone.
  • the mobile phone can select any version higher than the original version 1.0, such as version 2.0 or version 4.0.
  • the terminal sends an upgrade request message including the terminal model to the virtual storage space on the network side.
  • the virtual storage space on the network side sends the list of the upgraded version to the terminal.
  • the terminal receives the upgrade version list, and receives the user's selection instruction, and selects the upgrade file version corresponding to the upgrade file to be downloaded from the upgrade version list according to the selection instruction.
  • An embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the terminal downloads an upgrade file required for the upgrade from a storage space located on the network side, and the terminal upgrades according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, there is no need to use data lines and SD cards, etc., so that the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the terminal can also upgrade the software through OTA (Over The Air), and when the old version is complete, directly compare the difference between the old version and the new version higher than the old version. Upgrade, without any upgrades to the same, to achieve the purpose of rapid upgrade, but the use of OTA upgrades can not be upgraded across levels; when the old version is incomplete, the terminal can not complete the upgrade of the software. Therefore, the upgrade package is software upgraded through OTA. There is a limitation. Compared with the prior art described above, the present invention can select any upgrade package of any version required from the list of upgraded versions, and perform software upgrades to expand the selection space of the software upgrade version, thereby eliminating the software upgrade. Upgrade package restrictions.
  • the embodiment of the present invention further provides a terminal on the basis of the solution shown in FIG.
  • the specific scheme of the upgrade method adds 1013-1014 after 1011d as shown in FIG. 4, as shown in FIG. 8, including:
  • k3 is an integer and 1 ⁇ k3 ⁇ N, that is, the k3th upgrade file is any one of the first upgrade file to the Nth upgrade file.
  • the integrity check of the upgraded file may be performed by using the message digest algorithm, the fifth version of the MD5 detection, and the SHA (Secure Hash Algorithm).
  • the k3th upgrade file is re-downloaded from the storage space.
  • the k3th upgrade file slice downloaded to the memory is incomplete, the k3th upgrade file slice is re-downloaded from the storage space located on the network side.
  • the process of downloading the upgrade file from the memory to the embedded multimedia card can also perform integrity detection.
  • the integrity of the upgrade file downloaded from the memory to the embedded multimedia card is checked, the integrity of the upgrade file is further ensured; the process of downloading the upgrade file from the memory to the embedded multimedia card may not be completed.
  • Sex detection since the integrity of the upgrade file is downloaded from the storage space on the network side to the memory, the integrity of the upgrade file is basically guaranteed, and the upgrade file is downloaded from the memory to the embedded multimedia card.
  • An embodiment of the present invention provides a software upgrade method applied to a terminal.
  • the terminal downloads an upgrade file required for the upgrade from a storage space located on the network side, and the terminal upgrades according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, there is no need to use data lines and SD cards, etc., so that the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the upgrade file slice downloaded from the storage space located on the network side to the memory is detected.
  • the upgrade file piece is re-downloaded until the upgrade file piece is completely downloaded before proceeding to the next upgrade file.
  • the download of the film ensures the integrity of the downloaded upgrade file, thus ensuring the integrity of the upgrade file composed of the upgrade file.
  • the embodiment of the present invention further provides a software upgrading apparatus 200 applied to a terminal. As shown in FIG. 9, the method includes:
  • the file downloading module 201 is configured to download an upgrade file required for software upgrade from a storage space corresponding to the terminal located on the network side.
  • the upgrade file is stored in the storage space.
  • the upgrade module 202 is configured to upgrade the software according to the downloaded upgrade file.
  • the embodiment of the invention provides a software upgrade device applied to the terminal, and the device upgrades the upgrade file required for the upgrade from the storage space located on the network side, and the device upgrades according to the downloaded upgrade file.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the file downloading module 201 includes:
  • a downloading unit 2011, configured to: from the storage space corresponding to the terminal located on a network side Download the upgrade file to the memory.
  • the device 200 includes a memory and an embedded multimedia card.
  • the storage unit 2012 is configured to acquire the upgrade file from the memory, and store the upgrade file to the embedded multimedia card.
  • An embodiment of the present invention provides a software upgrade apparatus applied to a terminal, which downloads an upgrade file required for software upgrade from a storage space located on a network side to a memory of the device, and obtains an upgrade file from the memory, and the upgrade file is upgraded.
  • the file is stored in an embedded multimedia card, and the device upgrades the software according to the upgrade file stored in the embedded multimedia card.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the upgrade file is divided into N upgrade file slices, and the N upgrade file slices are the first upgrade file slice to the Nth upgrade file slice, where N is an integer and N>1.
  • the download unit 2011 is further configured to download the first upgrade file piece to the i1-th upgrade file piece from the storage space to the memory.
  • the storage unit 2012 is further configured to acquire the first upgrade file to the i1th upgrade file from the memory, and store the first upgrade file to the i1th upgrade file to the embedded multimedia. card.
  • the download unit 2011 is further configured to: after the first upgrade file to the i1th upgrade file are stored in the embedded multimedia card, upgrade the i1+1 upgrade file to the i1 from the storage space.
  • the +i2 upgrade file is downloaded to the memory.
  • the storage unit 2012 is further configured to acquire the i1+1+1 upgrade file from the memory to the i1+i2 upgrade file, and slice the i1+1 upgrade file to the i1+i2 upgrade file.
  • the slice is stored to the embedded multimedia card.
  • the download unit 2011 is further used to push the i3+1 from the storage space
  • the upgrade file to the Nth upgrade file is downloaded to the memory.
  • the storage unit 2012 is further configured to acquire the i3+1+1 upgrade file to the Nth upgrade file from the memory, and store the i3+1 upgrade file to the Nth upgrade file to the storage unit.
  • Embedded multimedia card is further configured to acquire the i3+1+1 upgrade file to the Nth upgrade file from the memory, and store the i3+1 upgrade file to the Nth upgrade file to the storage unit.
  • i1, i2, and i3 are integers, and 1 ⁇ i1 ⁇ N, i1+1 ⁇ i1+i2 ⁇ N, i1+i2 ⁇ i3+1 ⁇ N.
  • An embodiment of the present invention provides a software upgrade apparatus applied to a terminal, which downloads an upgrade file required for software upgrade from a storage space located on a network side to a memory of the device, and obtains an upgrade file from the memory, and the upgrade file is upgraded.
  • the file is stored in an embedded multimedia card, and the device upgrades the software according to the upgrade file stored in the embedded multimedia card.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the upgrade file located in the storage space on the network side is divided into multiple upgrade file slices, ensuring that the size of each upgrade file slice is less than or equal to the size of the memory in the device, and the device is free from downloading and upgrading the file slice.
  • the problem of lack of memory space the device can download at least one upgrade file piece from the storage space located on the network side, and after storing the at least one upgrade file piece to the embedded multimedia card, the memory release is originally used to store the at least one upgrade.
  • the space of the file slice further avoids the problem of lack of free memory space in the device when downloading the upgrade file.
  • the upgrade file is divided into N upgrade file slices, and the N upgrade file slices are the first upgrade file slice to the Nth upgrade file slice, where N is an integer and N>1.
  • the download unit 2011 is further configured to download the first upgrade file piece to the Nth upgrade file piece from the storage space to the memory.
  • the download unit 2011 is further configured to acquire the first upgrade file to the Nth upgrade file from the memory, and store the first upgrade file to the Nth upgrade file to the embedded Multimedia card.
  • the embodiment of the invention provides a software upgrade device applied to the terminal, and the device upgrades the upgrade file required for the upgrade from the storage space located on the network side, and the device upgrades according to the downloaded upgrade file.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the device is also capable of obtaining file information of the upgraded file piece, and storing the upgraded file piece according to the file information to an appropriate address in the embedded multimedia card.
  • the upgrading module 202 is further configured to: after the partially upgraded file piece is stored to the embedded multimedia card, the terminal starts to upgrade the software according to the partially upgraded file piece.
  • the upgrade module 202 is further configured to: during the upgrading of the software, the terminal continues to upgrade the software according to the other parts of the embedded multimedia card that are subsequently upgraded to the embedded multimedia card.
  • the embodiment of the invention provides a software upgrade device applied to the terminal, and the device upgrades the upgrade file required for the upgrade from the storage space located on the network side, and the device upgrades according to the downloaded upgrade file.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the device can upgrade the software by using the upgraded file, and does not need to wait for all the upgraded files to be stored in the embedded multimedia card. Only began to upgrade the software, saving the time it takes for the device to upgrade the software, and improving the device. The speed of the upgrade.
  • the download unit 2011 further includes:
  • the first identifier adding subunit 20111 is configured to add first identifier information to the k1th upgrade file slice when the k1th upgrade file slice is downloaded from the storage space to the memory.
  • the first identifier information is used to identify the k1th upgrade file slice being downloaded to the memory, where k1 is an integer and 1 ⁇ k1 ⁇ N.
  • the storage unit 2012 further includes:
  • a second identifier adding subunit 20121 configured to add, when the k2th upgrade file slice is obtained from the memory, and store the k2th upgrade file slice to the embedded multimedia card, add the k2th upgrade file slice Second identification information.
  • the second identifier information is used to identify the k2th upgrade file slice being stored to the embedded multimedia card, where k2 is an integer and 1 ⁇ k2 ⁇ N.
  • the embodiment of the invention provides a software upgrade device applied to the terminal, and the device upgrades the upgrade file required for the upgrade from the storage space located on the network side, and the device upgrades according to the downloaded upgrade file.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the device adds first identification information and/or second identification information to the upgrade file to identify the upgrade file piece currently being downloaded to the memory and/or the upgrade file piece currently being stored in the embedded multimedia card, when the download occurs After the device is restored, the device can continue to download the upgrade file with the first identification information after the interruption, and avoid the restart of the download from the first upgrade file, and will occur.
  • the upgraded file piece interrupted and having the second identification information is stored to the embedded multimedia card, thereby avoiding the situation of restarting the storage from the first upgrade file to the embedded multimedia card, saving the time for the device to upgrade the software.
  • the apparatus 200 further includes:
  • the message sending module 203 is configured to send an upgrade request message to the storage space.
  • the list obtaining module 204 is configured to receive an upgrade version list sent by the storage space.
  • the upgrade version list includes at least two upgrade file versions corresponding to the upgrade request message stored in the storage space.
  • the version determining module 205 is configured to receive a selection instruction of the user, and determine, in the upgrade version list, an upgrade file version corresponding to the upgrade file to be downloaded according to the selection instruction.
  • the embodiment of the invention provides a software upgrade device applied to the terminal, and the device upgrades the upgrade file required for the upgrade from the storage space located on the network side, and the device upgrades according to the downloaded upgrade file.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the device can also upgrade the software through OTA (Over The Air), and when the old version is complete, directly different from the old version and the new version higher than the old version. Upgrades, without any upgrades to the same, to achieve the purpose of rapid upgrades, but the use of OTA upgrades can not be upgraded across levels; when the old version is incomplete, the device can not complete the upgrade of the software. Therefore, the upgrade package has a limitation on software upgrade through the OTA. Compared with the above prior art, the present invention can select any upgrade package of any version required from the upgrade version list, and perform software upgrade to expand the selection of the software upgrade version. Space, thus getting rid of the limitations of the upgrade package when the software is upgraded.
  • OTA Over The Air
  • the download unit 2011 further includes:
  • the detecting subunit 20112 is configured to perform integrity detection on the k3th upgrade file slice downloaded to the memory when the k3th upgrade file slice is downloaded from the storage space to the memory.
  • k3 is an integer and 1 ⁇ k3 ⁇ N.
  • the embodiment of the invention provides a software upgrade device applied to the terminal, and the device upgrades the upgrade file required for the upgrade from the storage space located on the network side, and the device upgrades according to the downloaded upgrade file.
  • the device is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the device is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space.
  • the device there is no need to use a data cable and an SD card, etc., thereby freeing the device from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the externality is released. Conditions limit the upgrade of the device.
  • the upgrade file slice downloaded from the storage space located on the network side to the memory is detected.
  • the upgrade file piece is re-downloaded until the upgrade file piece is completely downloaded before proceeding to the next upgrade file.
  • the download of the film ensures the integrity of the downloaded upgrade file, thus ensuring the integrity of the upgrade file composed of the upgrade file.
  • the embodiment of the present invention further provides a terminal 300, as shown in FIG. 14, comprising: at least one processor 301, such as a CPU, at least one network interface 302 or other user interface 303, a memory 304, and at least one communication bus 305.
  • Communication bus 305 is used to implement connection communication between these components.
  • a user interface 303, a display, an input device eg, a mouse, a trackball, a touchpad, or a touch sensitive display
  • Memory 304 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the memory 304 can optionally include at least one storage device located remotely from the aforementioned processor 301.
  • the network interface 302 is used for data interaction with the network side.
  • the memory 304 stores elements, executable modules or data structures, or a subset thereof, or their extension set:
  • An operating system 3041 including various system programs for implementing various basic services and processing hardware-based tasks;
  • the application 3042 includes various applications for implementing various application services.
  • the application 3042 includes, but is not limited to, a file downloading module 201, an upgrade module 202, a message sending module 203, a list obtaining module 204, a version determining module 205, a downloading unit 2011, a storage unit 2012, a first identifier adding subunit 20111, and a second The identification addition subunit 20121, the detection subunit 20113, and the redownload subunit 20114.
  • each module, unit and sub-unit in the application 3042 refer to the corresponding modules, units and sub-units in the embodiment shown in FIG. 9 to FIG. 13 , and details are not described herein again.
  • the processor 301 is configured to download, by using the network interface 302, an upgrade file required for software upgrade from a storage space corresponding to the terminal located on the network side, where the upgrade file is stored in the storage space.
  • the processor 301 is further configured to upgrade the software according to the downloaded upgrade file.
  • the terminal 300 includes a memory and an embedded multimedia card.
  • the processor 301 is further configured to download the upgrade file to the memory from the storage space corresponding to the terminal located on the network side through the network interface 302.
  • the processor 301 is further configured to acquire the upgrade file from the memory, and store the upgrade file to the embedded multimedia card.
  • the upgrade file is divided into N upgrade files, and the N upgrade files are the first upgrade file to the Nth upgrade file, N is an integer, and N>1.
  • the processor 301 is further configured to download, from the storage space, the first upgrade file to the i1th upgrade file to the memory through the network interface 302.
  • the processor 301 is further configured to acquire the first upgrade file piece to the i-th upgrade file piece from the memory, and store the first upgrade file piece to the i-th upgrade file piece to the embedded multimedia card.
  • the processor 301 is further configured to: after the first upgrade file to the i1th upgrade file are stored in the embedded multimedia card through the network interface 302, the i1+1 upgrade file is sent from the storage space to the first The i1+i2 upgrade file is downloaded to the memory.
  • the processor 301 is further configured to acquire the i1+1+1 upgrade file to the i1+i2 upgrade file from the memory, and store the i1+1 upgrade file to the i1+i2 upgrade file to The inlay Incoming multimedia card.
  • the processor 301 acquires the i3+1+1 upgrade file to the Nth upgrade file from the memory, and stores the i3+1 upgrade file to the Nth upgrade file to the embedded multimedia card.
  • i1, i2, and i3 are integers, and 1 ⁇ i1 ⁇ N, i1+1 ⁇ i1+i2 ⁇ N, i1+i2 ⁇ i3+1 ⁇ N.
  • the upgrade file is divided into N upgrade files, and the N upgrade files are the first upgrade file to the Nth upgrade file, N is an integer, and N>1.
  • the processor 301 is further configured to download the first upgrade file to the Nth upgrade file to the memory through the network interface 302.
  • the processor 301 is further configured to acquire the first upgrade file to the Nth upgrade file from the memory, and store the first upgrade file to the Nth upgrade file to the embedded multimedia card.
  • the processor 301 is further configured to: after the partially upgraded file piece is stored to the embedded multimedia card, start to upgrade the software according to the partially upgraded file piece; and further, in the process of upgrading the software.
  • the software is further upgraded according to the subsequent upgrade of the file to other parts of the embedded multimedia card.
  • the processor 301 is further configured to: when downloading the k1th upgrade file from the storage space to the memory, add first identifier information for the k1th upgrade file, where the first identifier information is used to identify that the file is being downloaded.
  • the k1th upgrade file to the memory; and/or, when the k2th upgrade file is obtained from the memory, and the k2th upgrade file is stored to the embedded multimedia card, Adding second identification information for the k2th upgrade file, where the second identification information is used to identify the kth upgrade file slice being stored to the embedded multimedia card.
  • k1 and k2 are integers, and 1 ⁇ k1 ⁇ N, 1 ⁇ k2 ⁇ N.
  • the processor 301 is further configured to send an upgrade request to the storage space through the network interface 302. interest;
  • the processor 301 is further configured to receive, by using the network interface 302, an upgrade version list sent by the storage space, where the upgrade version list includes at least two upgrade file versions corresponding to the upgrade request message stored in the storage space.
  • the processor 301 is configured to receive a selection instruction of the user, and determine, in the upgrade version list, an upgrade file version corresponding to the upgrade file to be downloaded according to the selection instruction.
  • the processor 301 is further configured to perform integrity detection on the k3th upgrade file slice downloaded to the memory when the terminal downloads the k3th upgrade file from the storage space to the memory.
  • the processor 301 is further configured to re-download the k3th upgrade file slice from the storage space when detecting that the k3th upgrade file slice is incomplete.
  • k3 is an integer and 1 ⁇ k3 ⁇ N.
  • the embodiment of the present invention provides a terminal, which downloads an upgrade file required for upgrading from a storage space located on the network side, and the terminal performs upgrade according to the downloaded upgrade file.
  • the terminal is connected to the storage space through the communication network, and the upgrade file required for the software upgrade in the terminal is derived from the storage space, and the upgrade file required for the software upgrade can be directly downloaded from the storage space to the terminal. Therefore, there is no need to use data lines and SD cards, etc., so that the terminal upgrade can be freed from the external conditions such as the data line, the mobile phone driver, the SD card capacity, and the compatibility of the SD card and the mobile phone, and the external conditions are lifted. limits.
  • the upgrade file located in the storage space on the network side is divided into multiple upgrade file slices, ensuring that the size of each upgrade file slice is less than or equal to the memory size in the terminal, thereby avoiding free memory space in the terminal when downloading the upgrade file slice.
  • the problem is that the terminal can download at least one upgrade file piece from the storage space located on the network side, and after storing the at least one upgrade file piece to the embedded multimedia card, the memory release is used to store the at least one upgrade file piece. Space, further avoiding the problem of lack of free memory space in the terminal when downloading upgrade files.
  • the terminal can also obtain file information of the upgraded file piece, and store the upgraded file piece according to the file information to an appropriate address in the embedded multimedia card.
  • the terminal can upgrade the software by using the upgraded file piece, and does not need to wait for all the upgraded file pieces to be stored in the embedded multimedia card.
  • the software upgrade was started, which saved the time spent by the terminal on upgrading the software and improved the speed at which the terminal upgraded.
  • the terminal adds the first identification information and/or the second identification information to the upgrade file to identify the upgrade file piece currently being downloaded to the memory and/or the upgrade file piece currently being stored in the embedded multimedia card, when downloading After the interruption occurs, after the terminal is restored, the function of the resume transmission of the breakpoint can be used to continue the download of the upgrade file with the first identification information, thereby avoiding the restart of the download from the first upgrade file and will occur.
  • the upgraded file piece interrupted and having the second identification information is stored to the embedded multimedia card, which avoids the case of restarting the storage from the first upgrade file to the embedded multimedia card, thereby saving the time for the terminal to upgrade the software.
  • the terminal can also upgrade the software through OTA (Over The Air), and when the old version is complete, directly compare the difference between the old version and the new version higher than the old version. Upgrade, without any upgrades to the same, to achieve the purpose of rapid upgrade, but the use of OTA upgrades can not be upgraded across levels; when the old version is incomplete, the terminal can not complete the upgrade of the software. Therefore, the upgrade package has a limitation on software upgrade through the OTA. Compared with the above prior art, the present invention can select any upgrade package of any version required from the upgrade version list, and perform software upgrade to expand the selection of the software upgrade version. Space, thus getting rid of the limitations of the upgrade package when the software is upgraded.
  • OTA Over The Air
  • the upgrade file slice downloaded from the storage space located on the network side to the memory is detected.
  • the upgrade file piece is re-downloaded until the upgrade file piece is completely downloaded.
  • the download of an upgrade file ensures the integrity of the downloaded upgrade file, thus ensuring the integrity of the upgrade file consisting of the upgrade file.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

本发明实施例公开了一种应用于终端的软件升级方法、装置及终端,涉及电子信息技术领域,能够使终端升级摆脱对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖。本发明的方法包括:终端从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,存储空间中的升级文件为解压缩后的升级文件;终端根据下载的升级文件,对软件进行升级。本发明适用于终端对软件进行升级的场景。

Description

一种应用于终端的软件升级方法、装置及终端 技术领域
本发明实施例涉及电子信息技术领域,尤其涉及一种应用于终端的软件升级方法、装置及终端。
背景技术
随着终端、电子信息技术的不断发展,手机中的软件、系统等通常要通过升级来进一步完善功能。
目前,手机可通过USB(Universal Serial Bus,通用串行总线)或SD卡(Secure Digital Memory Card,安全数字存储卡)等方式对手机中的软件、系统等进行升级。其中,手机通过USB连接电脑进行升级时,电脑上需要下载PC(personal computer,个人计算机)工具,安装手机驱动程序,并通过数据线与手机相连,将升级包下载到手机本地再进行升级;手机通过SD卡进行升级时,需要将升级包下载到SD卡中,并将SD卡插入手机,通过SD卡中的升级包对手机进行升级。
现有技术中,手机通过USB升级时,电脑上需要安装手机驱动程序,并且通过数据线才能完成电脑与手机之间升级包的传送,所以手机升级依赖于数据线和手机驱动程序;通过SD卡升级时,因为需要将SD卡插入手机,所以SD卡需要与手机匹配,并且SD卡需要能够存储完整的升级包,即SD卡的容量必须大于或者等于升级包的大小,所以手机升级依赖于SD卡的容量、SD卡与手机的兼容性等条件。因此手机升级依赖于数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件,从而使得手机升级受到外部条件的限制。
发明内容
本发明实施例提供一种应用于终端的软件升级方法、装置及终端,能够使终端升级摆脱对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖。
为达到上述目的,本发明实施例采用如下技术方案:
第一方面,本发明实施例提供一种应用于终端的软件升级方法,所述方法包括:
所述终端从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件;
所述终端根据下载的所述升级文件,对软件进行升级。
结合第一方面,在第一种可能的实现方式中,所述终端包括内存和嵌入式多媒体卡;所述终端从位于网络侧的与所述终端对应的所述存储空间下载软件升级所需的升级文件,包括:
所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;
所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡,包括:
所述终端从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存;
所述终端从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡;
在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体 卡之后,所述终端从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存;
所述终端从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡;
以此类推,直至
所述终端从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存;
所述终端从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡;
其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存,所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡,包括:
所述终端从所述存储空间将所述第1升级文件片至第N升级文件片下载到所述内存;
所述终端从所述内存获取所述第1升级文件片至第N升级文件片,并将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
结合第一方面的第二种可能的实现方式或第三种可能的实现方式,在第四种可能的实现方式中,所述终端根据下载的所述升级文件,对软件进行升级,包括:
当部分升级文件片被存储到所述嵌入式多媒体卡之后,所述终端根据 所述部分升级文件片,开始对软件进行升级;
在对所述软件进行升级的过程中,所述终端根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
结合第一方面的第二种至第四种可能的实现方式中的任意一种可能的实现方式,在第五种可能的实现方式中,所述方法还包括:
当所述终端从所述存储空间将第k1升级文件片下载到所述内存时,所述终端为所述第k1升级文件片添加第一标识信息,所述第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片;和/或
当所述终端从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,所述终端为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片;
其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
结合第一方面或第一方面的第一种至第五种可能的实现方式中的任意一种可能的实现方式,在第六种可能的实现方式中,在所述终端从位于网络侧的与所述终端对应的所述存储空间下载软件升级所需的升级文件之前,所述方法还包括:
所述终端向所述存储空间发送升级请求消息;
所述终端接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本;
接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
结合第一方面的第二种至第五种可能的实现方式中的任意一种可能的实现方式,在第七种可能的实现方式中,所述方法还包括:
当所述终端从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测;
当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片,其中,k3为整数,且1≤k3≤N。
第二方面,本发明实施例提供一种应用于终端的软件升级装置,所述装置包括:
文件下载模块,用于从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件;
升级模块,用于根据下载的所述升级文件,对软件进行升级。
结合第二方面,在第一种可能的实现方式中,所述装置包括内存和嵌入式多媒体卡;所述文件下载模块,包括:
下载单元,用于从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;
存储单元,用于从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
所述下载单元,还用于从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存;
所述存储单元,还用于从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡;
所述下载单元,还用于在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存;
所述存储单元,还用于从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡;
所述下载单元,还用于以此类推,直至从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存;
所述存储单元,还用于从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡;
其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
结合第二方面的第一种可能的实现方式,在第三种可能的实现方式中,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
所述下载单元,还用于从所述存储空间将所述第1升级文件片至第N升级文件片下载到所述内存;
所述下载单元,还用于从所述内存获取所述第1升级文件片至第N升级文件片,将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
结合第二方面的第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述升级模块还用于当部分升级文件片被存储到所述嵌入式多媒体卡之后,所述终端根据所述部分升级文件片,开始对软件进行升级;
并用于在对所述软件进行升级的过程中,所述终端根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
结合第二方面的第二种至第四种可能的实现方式中的任意一种可能的实现方式,在第五种可能的实现方式中,所述下载单元,包括:
第一标识添加子单元,用于当从所述存储空间将第k1升级文件片下载到所述内存时,为所述第k1升级文件片添加第一标识信息,所述第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片;
所述存储单元还包括:
第二标识添加子单元,用于当从所述内存获取第k2升级文件片,并将 所述第k2升级文件片存储到所述嵌入式多媒体卡时,为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片;
其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
结合第二方面或第二方面的第一种至第五种可能的实现方式中的任意一种可能的实现方式,在第六种可能的实现方式中,还包括:
消息发送模块,用于向所述存储空间发送升级请求消息;
列表获取模块,用于接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本;
版本确定模块,用于接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
结合第二方面的第二种至第五种可能的实现方式中的任意一种可能的实现方式,在第七种可能的实现方式中,所述下载单元还包括:
检测子单元,用于当从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测;
重下载子单元,用于当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片,其中,k3为整数,且1≤k3≤N。
第三方面,本发明实施例提供一种终端,所述终端至少包括网络接口、处理器,所述网络接口用于与网络侧进行数据交互;
所述处理器用于通过所述网络接口从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件;
所述处理器,还用于根据下载的所述升级文件,对软件进行升级。
结合第三方面,在第一种可能的实现方式中,所述终端包括内存和嵌入式多媒体卡;
所述处理器还用于通过所述网络接口从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;
所述处理器还用于从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
所述处理器还用于通过所述网络接口从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存;
所述处理器还用于从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡;
所述处理器还用于通过所述网络接口在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存;
所述处理器还用于从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡;
以此类推,直至所述处理器通过所述网络接口从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存;
所述处理器从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡;
其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
结合第三方面的第一种可能的实现方式,在第三种可能的实现方式中,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级 文件片至第N升级文件片,N为整数,且N>1;
所述处理器还用于通过所述网络接口将所述第1升级文件片至第N升级文件片下载至所述内存;
所述处理器还用于从所述内存获取所述第1升级文件片至第N升级文件片,并将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
结合第三方面的第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述处理器还用于当部分升级文件片被存储到所述嵌入式多媒体卡之后,根据所述部分升级文件片,开始对软件进行升级;
并用于在对所述软件进行升级的过程中,根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
结合第三方面的第二种至第四种可能的实现方式中的任意一种可能的实现方式,在第五种可能的实现方式中,所述处理器还用于当从所述存储空间将第k1升级文件片下载到所述内存时,为所述第k1升级文件片添加第一标识信息,所述第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片;和/或
当从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片;
其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
结合第三方面或第三方面的第一种至第五种可能的实现方式,在第六种可能的实现方式中,所述处理器还用于通过所述网络接口向所述存储空间发送升级请求消息;
所述处理器还用于通过所述网络接口接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本;
所述处理器用于接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
结合第三方面的第二种至第五种可能的实现方式中的任意一种可能的实现方式,在第七种可能的实现方式中,所述处理器还用于当所述终端从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测;
并用于当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片,其中,k3为整数,且1≤k3≤N。
本发明实施例,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与手机升级对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件依赖的现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本发明实施例提供的一种应用于终端的软件升级方法的流程图;
图2为本发明实施例提供的一种应用于终端的软件升级方法的一种实现方式的流程图;
图3为本发明实施例提供的一种应用于终端的软件升级方法的另一种 实现方式的流程图;
图4为本发明实施例提供的一种应用于终端的软件升级方法的又一种实现方式的流程图;
图5a、图5b为本发明实施例提供的一种应用于终端的软件升级方法的再一种实现方式的流程图;
图6为本发明实施例提供的一种应用于终端的软件升级方法的又一种实现方式的流程图;
图7为本发明实施例提供的另一种应用于终端的软件升级方法的流程图;
图8为本发明实施例提供的一种应用于终端的软件升级方法的再一种实现方式的流程图;
图9为本发明实施例提供的一种应用于终端的软件升级装置的结构示意图;
图10为本发明实施例提供的一种应用于终端的软件升级装置的一种实现方式的结构示意图;
图11为本发明实施例提供的一种应用于终端的软件升级装置的另一种实现方式的结构示意图;
图12为本发明实施例提供的另一种应用于终端的软件升级装置的结构示意图;
图13为本发明实施例提供的一种应用于终端的软件升级装置的又一种实现方式的结构示意图;
图14为本发明实施例提供的一种终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明实施例提供的技术方案应用于终端,并且终端在网络侧配备有与终端对应的存储空间,终端从网络侧的存储空间下载升级终端内的软件所需要的升级文件,之后终端再根据下载的升级文件,对软件进行升级。其中,终端主要指手机,平板电脑等终端。需要说明的是,这里的网络侧可以是数据网络,也可以是无线网络,终端通过开启数据流量或连接无线数据网络,能够与网络侧进行数据交互。网络侧的存储空间例如可以是云盘、手机网盘等。
本发明实施例提供了一种应用于终端的软件升级方法,如图1所示,包括:
101,所述终端从位于网络侧与所述终端对应的存储空间下载升级软件所需的升级文件。
其中,存储空间中存储有终端中软件升级所需要的升级文件,软件可以是系统软件,例如:安装在终端中的android(安卓)系统、ios系统等;也可以是应用软件,例如安装在终端中的导航软件、聊天软件、阅读软件等等。网络侧与终端对应的存储空间会将升级文件所在的压缩包解压缩,得到解压缩后的升级文件,使得终端无需进行解压缩的流程。网络侧的存储空间中可以分为多个独立区间,可以将升级文件放置于存储空间的一个独立区间中,从而使软件升级所需的所有升级文件都从存储空间中的该独立区间下载,避免将与软件升级无关的文件下载到终端中。比如:手机在网络侧配置有专用的手机网盘,手机网盘中共分为C区、D区和E区,手机的安卓系统等待升级,将手机的安卓系统升级需要的升级文件全部放置与手机网盘中的C区,当手机从手机网盘中下载升级文件时,与手机网盘中的C区建立数据传输通道即可。终端与位于网络侧的存储空间通过通信网络连接,通信网络例如可以是WiFi(Wireless Fidelity,无线宽带)、3G(3rd-Generation,第三代移动通信技术)网络、4G(4rd-Generation,第 四代移动通信技术)网络等等。
102,所述终端根据下载的所述升级文件,对软件进行升级。
其中,终端可以在升级文件下载完成之后,在对升级文件中的升级程序进行安装,实现对软件的升级。或者,终端也可以边下载升级文件,边对已下载的升级文件中的升级程序进行安装。当所有的升级文件下载完成并且所有的升级文件对应的升级程序运行安装完成时,即完成了软件的升级。其中,软件升级可以是终端中操作系统软件的升级,也可以是终端中安装的应用程序的软件的升级。
此外,本发明不限于利用位于网络侧的存储空间进行系统软件、应用程序软件等的升级,还可以将一般存储在终端中的数据存储在网络侧的存储空间中,当终端开机时,通过联网方式与网络侧的存储空间连接,终端与网络侧的存储空间之间能够进行数据交互,从而使得终端可以直接利用存储在网络侧的数据,节省了终端的存储资源。其中,存储在网络侧的存储空间的数据可以为通讯录、短信信息、APK(Android Package,安卓安装包)等。
本发明实施例提供了一种应用于终端的软件升级方法,终端从位于网络侧的存储空间下载升级所需的升级文件,并根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡等外部条件的依赖,解除了外部条件对终端升级的限制。
进一步的,在图1所示方案的基础上,本发明实施例还提供了一种应用于终端的软件升级方法的具体方案,对图1所示的101的执行过程进行进一步细化,101可以具体实现为1011-1012,如图2所示,包括:
1011,所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存。
其中,内存为终端中暂时存储数据的存储空间,即终端中缓存数据的存储空间,比如:DDR(Double Data Rate,双倍速率同步动态随机存储器)、SDRAM(Synchronous Dynamic Random Access Memory,同步动态随机存取存储器)等。
1012,所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
其中,嵌入式多媒体卡(EMMC,Embedded Multi Media Card)又名内嵌式固定存储区,为终端中固定存储数据的存储空间。升级文件存储到嵌入式多媒体卡之后,终端可以利用升级文件对软件进行升级。
本发明实施例提供了一种应用于终端的软件升级方法,通过从位于网络侧的存储空间将软件升级所需的升级文件下载到终端的内存中,在从内存中获取升级文件,将升级文件存储到嵌入式多媒体卡中,终端根据存储在嵌入式多媒体卡中的升级文件,对软件进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。
进一步的,在图2所示方案的基础上,为了避免终端内存空间大小限制终端对升级文件的下载,本发明实施例还提供了一种应用于终端的软件升级方法的具体方案,升级文件被分为N个升级文件片,N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;1011-1012还可以具体实现为1011a、1012a、1011b、1012b、1011c、1012c,如图3所示,包括:
1011a,所述终端从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存。
其中,因为终端中可使用的空闲内存空间有限,在当升级文件的大小 较大时,位于网络侧的存储空间可以将升级文件分割为多个升级文件片,即分割为第1文件片至第N文件片,每个升级文件片的大小均小于或等于终端中内存的大小;终端以升级文件片为单位,对存储空间中的升级文件进行下载。终端从存储空间将第1升级文件片至第i1升级文件片下载到内存,i1为整数,且1≤i1≤N;即终端将至少一个升级文件片下载至内存中,在后续的流程中再将这至少一个升级文件片存储到嵌入式多媒体卡,终端利用已经存储到嵌入式多媒体卡中的这至少一个升级文件片,对软件进行升级。
1012a,所述终端从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡。
其中,将第1升级文件片至第i1升级文件片存储到嵌入式多媒体卡的内容已在1011a中说明,在此不再赘述。
需要说明的是,在终端从内存获取第1升级文件片至第i1升级文件片,并将第1升级文件片至第i1升级文件片存储到嵌入式多媒体卡后,内存将释放原存储第1升级文件片至第i1升级文件片的空间,以避免出现在对软件进行升级时,缺少空闲内存容量的现象。
1011b,在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,所述终端从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存。
其中,i2为整数,且i1+1≤i1+i2≤N。终端从存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到内存的流程与1011 a基本相同,在此不再赘述。
1012b,所述终端从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡。
其中,终端从内存获取所述第i1+1升级文件片至第i1+i2升级文件片, 并将第i1+1升级文件片至第i1+i2升级文件片存储到嵌入式多媒体卡的流程与1011b基本相同,在此不再赘述。
1011c,以此类推,直至所述终端从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存。
其中,i3为整数且i1+i2≤i3+1≤N。
其中,终端每次从存储空间将至少一个升级文件片下载到内存,并从内存中获取这至少一个升级文件片,并将这至少一个升级文件片存储至嵌入式多媒体卡,直至终端将升级文件所分割得到的所有升级文件片下载到内存,并存储到嵌入式多媒体卡中,终端利用存储在嵌入式多媒体卡中的升级文件片对软件进行升级,直至完成软件升级。
1012c,所述终端从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
比如:手机在位于网络侧配置有专用的手机网盘,网盘中存储有升级文件,升级文件被分为3个升级文件片,为第1升级文件片至第3升级文件片,手机将第1升级文件片从手机网盘下载到手机内存中,再从内存获取第1升级文件片,并将第1升级文件片存储到嵌入式多媒体卡中,然后手机将第2升级文件片从手机网盘下载到手机内存中,再从内存获取第2升级文件片,并将第2升级文件片存储到嵌入式多媒体卡中,然后手机将第3升级文件片从手机网盘下载到手机内存中,再从内存获取第3升级文件片,并将第3升级文件片存储到嵌入式多媒体卡中;即i1=1,i1+i2=i1+1=2,i3+1=N=3。
又比如:网盘中存储有升级文件,升级文件被分为6个升级文件片,为第1升级文件片至第6升级文件片,手机将第1升级文件片从手机网盘下载到手机内存中,再从内存获取第1升级文件片,并将第1升级文件片存储到嵌入式多媒体卡中,然后手机将第2升级文件片、第3升级文件片、第4升级文件片依次从手机网盘下载到手机内存中,再从内存获取第2升级文 件片、第3升级文件片、第4升级文件片,并将第2升级文件片、第3升级文件片、第4升级文件片存储到嵌入式多媒体卡中,然后手机将第5升级文件片、第6升级文件片从手机网盘下载到手机内存中,再从内存获取第5升级文件片、第6升级文件片,并将第5升级文件片、第6升级文件片存储到嵌入式多媒体卡中;即i1=1,i1+i2=4,i3+1=5,N=6。
需要说明的是,升级文件在位于网络侧的存储空间中被分为N个升级文件片,其中,N可以为2,当N=2时,手机可以将第1升级文件片从手机网盘下载到手机内存中,再从内存获取第1升级文件片,并将第1升级文件片存储到嵌入式多媒体卡中,然后手机将第2升级文件片从手机网盘下载到手机内存中,再从内存获取第2升级文件片,并将第2升级文件片存储到嵌入式多媒体卡中,即i1=1,i2=1,i3+1=2;或者,手机将第1升级文件片、第2升级文件片依次从手机网盘中下载到手机内存,再从内存获取第1升级文件片、第2升级文件片,将第1升级文件片、第2升级文件片存储到嵌入式多媒体卡。
本发明实施例提供了一种应用于终端的软件升级方法,通过从位于网络侧的存储空间将软件升级所需的升级文件下载到终端的内存中,在从内存中获取升级文件,将升级文件存储到嵌入式多媒体卡中,终端根据存储在嵌入式多媒体卡中的升级文件,对软件进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。而且,位于网络侧的存储空间中的升级文件被分为多个升级文件片,保证每一个升级文件片的大小小于或等于终端中内存的大小,避免了下载升级文件片时终端中空闲内存空间缺乏的问题;终端能够在从位于网络侧的存储空间下载至少一个升级文件片,在将这至少一个升级文件片存储到嵌入式多媒体卡后,内存释放原 用于存储这至少一个升级文件片的空间,进一步避免了下载升级文件片时终端中空闲内存空间缺乏的问题。
进一步的,在图2所示的方案的基础上,本发明实施例还提供了一种终端升级的方法的具体方案,终端包括内存和EMMC(Embedded Multi Media Card,嵌入式多媒体卡),为了使升级文件能够从网络侧的虚拟存储空间下载至终端,对图1所示的1011-1012的执行过程进行进一步细化,1011可以具体实现为1011d,1012可以具体实现为1012d,如图4所示,包括:
1011d,所述终端从所述存储空间将所述第1升级文件片至第N升级文件片下载到所述内存。
其中,当升级文件的大小较大时,位于网络侧的存储空间中的升级文件被分为N个升级文件片,即第1升级文件片至第N升级文件片,分片即分段,升级文件越大,划分的升级文件片的数目越多。若某升级文件非常小,不进行分片也很容易下载,则可以不对其进行分片。此外,N为正整数。
其中,需要说明的是,内存可以是DDR(Double Data Rate,双倍速率同步动态随机存储器)、SDRAM(Synchronous Dynamic Random Access Memory,同步动态随机存取存储器)等存储器。
1012d,所述终端从所述内存获取所述第1升级文件片至第N升级文件片,并将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
其中,当N个升级文件片的大小小于终端中可使用的内存空间时,可以先将第1升级文件片至第N升级文件片从位于网络侧的存储空间下载至终端的内存中,再从内存获取第1升级文件片至第N升级文件片,并将第1升级文件片至第N升级文件片存储到嵌入式多媒体卡中。
需要说明的是,终端在将位于网络侧的存储空间中的升级文件片下载到内存之前,可以先获取升级文件片的文件信息,升级文件片的文件信息包括升级文件片名称,因为对软件进行升级的过程就是将软件对应的原程 序文件替换为软件更新后的版本对应的新程序文件,所以终端能够根据升级文件片的文件信息,将升级文件片存储到嵌入式多媒体卡合适的地址中,便于终端对软件进行升级。
本发明实施例提供了一种应用于终端的软件升级方法,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。终端还能够获取升级文件片的文件信息,根据文件信息将升级文件片存储到嵌入式多媒体卡中合适的地址。
进一步的,为了加快终端对软件的升级速度,结合图3所示的方案,本发明实施例还提供了一种应用于终端的软件升级方法的具体方案,对图3中所示的102的执行过程进行进一步细化,102可以具体实现为1021-1022,如图5a所示,包括:
1021,当部分升级文件片被存储到所述嵌入式多媒体卡之后,所述终端根据所述部分升级文件片,开始对软件进行升级。
其中,为了加快终端对软件升级的速度,但部分升级文件片被存储到嵌入式多媒体卡后,终端就可以根据这一部分升级文件片对软件进行升级,在终端根据这一部分升级文件片进行升级的过程中,终端可以同时将位于网络侧其他部分的升级文件片下载到内存,以减少终端对软件进行升级的整个过程花费的时间。
1022,在对所述软件进行升级的过程中,所述终端根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
其中,终端根据后续被存储到嵌入式多媒体卡的其他部分升级文件,继续对软件进行升级。
结合图4的方案,对图4中所示的102的执行过程进行进一步细化,102也可以具体实现为1021-1022,如图5b所示。
本发明实施例提供了一种应用于终端的软件升级方法,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。而且,在终端将部分升级文件片存储到嵌入式多媒体卡中后,终端就可以更具这部分升级文件片对软件进行升级,不需要等待所有升级文件片都存储到嵌入式多媒体卡中后,才开始对软件进行升级,节省了终端对软件进行升级花费的时间,提高了终端对然间进行升级的速度。
进一步的,为了避免下载中断后,要从第1升级文件片重新开始下载所有升级文件片的情况,在图2所示的方案的基础上,本发明实施例还提供了一种终端升级的方法的具体方案,对图2所示的1011-1012的执行过程进行进一步细化,1011还可以包括1011e,1012还可以包括1012e,如图6所示,包括:
1011e,当所述终端从所述存储空间将第k1升级文件片下载到所述内存时,所述终端为所述第k1升级文件片添加第一标识信息。
其中,第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片,k1为整数且1≤k1≤N,即第k1升级文件片为第1升级文件片至第N升级文件片中的任意一个升级文件片。
需要说明的是,在将第k1升级文件片从位于网络侧的存储空间下载至终端内存时,第一标识信息可以添加在第k1升级文件片的末尾。当当前升级文件片下载到内存完成后,将第一标识信息从当前升级文件片去掉,并在下一升级文件片下载时,将第一标识信息添加到下一升级文件片的末 尾,标识下一升级文件片正在下载到终端内存中。
当从位于网络侧的存储空间将某一升级文件片下载到内存时发生中断,例如突然断电导致的下载中断,在终端恢复正常后,可以继续从第一标识信息所标识的升级文件片开始下载,实现了断点续传的功能。
1012e,当所述终端从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,所述终端为所述第k2升级文件片添加第二标识信息。
其中,第二标识信息用于标识正在存储至嵌入式多媒体卡的第k2升级文件片,k2为整数且1≤k2≤N,即第k2升级文件片为第1升级文件片至第N升级文件片中的任意一个升级文件片。
需要说明的是,需要说明的是,在从内存获取第k2升级文件片,并将第k2升级文件片存储到嵌入式多媒体卡中时,第一标识信息可以添加在第k2升级文件片的末尾。当当前升级文件片存储到嵌入式多媒体卡完成后,将第二标识信息从当前升级文件片去掉,并在下一升级文件片下载时,将第二标识信息添加到下一升级文件片的末尾,标识下一升级文件片正在存储到嵌入式多媒体卡中。
当从内存获取某一升级文件片,并将这一升级文件片存储到嵌入式多媒体卡时发生中断,例如突然断电导致的下载中断,在终端恢复正常后,可以继续将第二标识信息所标识的升级文件片存储到嵌入式多媒体卡,实现了断点续传的功能。
本发明实施例提供了一种应用于终端的软件升级方法,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级 的限制。终端为升级文件片添加第一标识信息和/或第二标识信息,来标识当前正在下载到内存的升级文件片和/或当前正在存储到嵌入式多媒体卡中的升级文件片,当下载发生中断,终端恢复后,可以通过采用断点续传的功能,继续对发生中断具有第一标识信息的升级文件片进行下载,避免了从第1升级文件片重新开始下载的情况,并将发生中断并具有第二标识信息的升级文件片存储至嵌入式多媒体卡,避免了重新将从第1升级文件片开始存储到嵌入式多媒体卡的情况,节省了终端对软件进行升级的时间。
进一步的,为了扩大终端对升级版本的选择空间,在图1所示的方案的基础上,本发明实施例还提供了一种终端升级的方法的具体方案,在图1中的101之前添加101a、101b、101c,如图7所示,包括:
101a,所述终端向所述存储空间发送升级请求消息。
其中,升级请求消息至少包括终端的型号,还可以包括终端的当前版本、当前版本的大小等信息。例如:型号为型号1的手机向手机云端挂载的网盘发送升级请求消息,升级请求消息中包括型号1、版本1.0等信息。
101b,所述终端接收所述存储空间发送的升级版本列表。
其中,升级版本列表包括位于网络侧的存储空间内存储的与升级请求消息对应的升级文件版本。具体的,升级版本列表中可以包含名称(name)、型号(type)和校验信息,校验信息例如为MD5(Message Digest Algorithm 5,消息摘要算法第五版)。根据升级列表中的版本的名称和型号可以选择待下载的升级包,即升级所需的所有升级文件。根据MD5,在下载升级文件时可以验证升级文件的完整性。
例如,型号为型号1且当前版本为版本1.0的手机向云盘发送包含有手机型号的升级请求消息,云盘接收到升级请求消息后,将符合型号为型号1的手机的版本信息所组成的如表1所示的列表,即升级版本列表发送给该手机,该手机收到升级版本列表后,可以选择比原版本1.0高任意等级的版本,如可以选择版本2.0或版本4.0等等。
表1
版本 手机型号 校验信息 其他
版本2.0 型号1 MD5(1) ...
版本3.0 型号1 MD5(2) ...
版本4.0 型号1 MD5(3) ...
版本5.0 型号1 MD5(4)
... ... ... ...
101c,接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
其中,终端向网络侧的虚拟存储空间发送包含有终端型号的升级请求消息,网络侧的虚拟存储空间接收到升级请求消息后,将符合终端型号所组成的列表,即升级版本列表发送给终端,终端接收升级版本列表,并接收用户的选择指令,根据选择指令从升级版本列表中选取待下载的升级文件对应的升级文件版本。
本发明实施例提供了一种应用于终端的软件升级方法,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。
在现有技术中,终端还可以通过OTA(Over The Air,空中下载)实现对软件进行升级,当旧版本完整时,直接对旧版本与比旧版本高一等级的新版本的不同之处进行升级,而无需对相同之处进行任何升级,进而达到快速升级的目的,但是利用OTA升级不能跨等级升级;当旧版本不完整时,终端也无法完成对软件的升级。因此升级包对通过OTA进行软件升级 有所限制,与上述现有技术相比,本发明能够从升级版本列表中选择需要的任意版本的升级包,并进行软件升级,扩大了软件升级版本的选择空间,从而摆脱了软件升级时对升级包的限制。
进一步的,为了保证所下载的升级文件片的完整性,进而保证由升级文件片组成的升级文件的完整性,在图4所示的方案的基础上,本发明实施例还提供了一种终端升级的方法的具体方案,在图4所示的1011d之后添加1013-1014,如图8所示,包括:
1013,当所述终端从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测。
其中,k3为整数,且1≤k3≤N,即第k3升级文件片为第1升级文件片至第N升级文件片中的任意一个升级文件片。
需要说明的是,对升级文件片进行完整性检测,可以采用消息摘要算法第五版MD5检测、SHA(Secure Hash Algorithm,安全散列算法)等方法进行检测。
1014,当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片。
其中,当检测到下载至内存的第k3升级文件片不完整时,从位于网络侧的存储空间重新下载第k3升级文件片。
需要说明的是,将升级文件片从内存下载至嵌入式多媒体卡的过程同样可以进行完整性检测。当对从内存下载至嵌入式多媒体卡的升级文件片进行完整性检测时,进一步保证了升级文件片的完整性;将升级文件片从内存下载至嵌入式多媒体卡的过程中也可以不进行完整性检测,由于将升级文件片从位于网络侧的存储空间下载至内存时已经进行了完整性检测,基本能够保证升级文件片的完整性,且将升级文件片从内存下载至嵌入式多媒体卡时不需要使用通信网络,不存在通信网络不稳定造成的升级文件片部分内容缺失的现象,所以可以不进行完整性检测,从而可以加快升级文件片的下载速度,进而加快了终端的升级。
本发明实施例提供了一种应用于终端的软件升级方法,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。对从位于网络侧的存储空间下载至内存的升级文件片进行检测,当检测到该升级文件片不完整时,重新下载该升级文件片,直至将该升级文件片下载完整才进行下一个升级文件片的下载,从而保证了所下载的升级文件片的完整性,进而保证了由升级文件片组成的升级文件的完整性。
本发明实施例还提供了一种应用于终端的软件升级装置200,如图9所示,包括:
文件下载模块201,用于从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件。
其中,存储空间中存储有所述升级文件。
升级模块202,用于根据下载的所述升级文件,对软件进行升级。
本发明实施例提供了一种应用于终端的软件升级装置,通过该装置从位于网络侧的存储空间下载升级所需的升级文件,该装置根据下载的升级文件,进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。
进一步的,如图10所示,文件下载模块201,包括:
下载单元2011,用于从位于网络侧的与所述终端对应的所述存储空间 将所述升级文件下载到所述内存。
其中,装置200包括内存和嵌入式多媒体卡。
存储单元2012,用于从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
本发明实施例提供了一种应用于终端的软件升级装置,通过从位于网络侧的存储空间将软件升级所需的升级文件下载到该装置的内存中,在从内存中获取升级文件,将升级文件存储到嵌入式多媒体卡中,该装置根据存储在嵌入式多媒体卡中的升级文件,对软件进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。
进一步的,升级文件被分为N个升级文件片,N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1。
下载单元2011,还用于从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存。
所述存储单元2012,还用于从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡。
所述下载单元2011,还用于在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存。
所述存储单元2012,还用于从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡。
所述下载单元2011,还用于以此类推,直至从所述存储空间将第i3+1 升级文件片至第N升级文件片下载到所述内存。
所述存储单元2012,还用于从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
本发明实施例提供了一种应用于终端的软件升级装置,通过从位于网络侧的存储空间将软件升级所需的升级文件下载到该装置的内存中,在从内存中获取升级文件,将升级文件存储到嵌入式多媒体卡中,该装置根据存储在嵌入式多媒体卡中的升级文件,对软件进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。而且,位于网络侧的存储空间中的升级文件被分为多个升级文件片,保证每一个升级文件片的大小小于或等于该装置中内存的大小,避免了下载升级文件片时该装置中空闲内存空间缺乏的问题;该装置能够在从位于网络侧的存储空间下载至少一个升级文件片,在将这至少一个升级文件片存储到嵌入式多媒体卡后,内存释放原用于存储这至少一个升级文件片的空间,进一步避免了下载升级文件片时该装置中空闲内存空间缺乏的问题。
进一步的,升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1。
所述下载单元2011,还用于从所述存储空间将所述第1升级文件片至第N升级文件片下载到所述内存。
所述下载单元2011,还用于从所述内存获取所述第1升级文件片至第N升级文件片,将所述第1升级文件片至第N升级文件片存储到所述嵌入式 多媒体卡。
本发明实施例提供了一种应用于终端的软件升级装置,通过该装置从位于网络侧的存储空间下载升级所需的升级文件,该装置根据下载的升级文件,进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。该装置还能够获取升级文件片的文件信息,根据文件信息将升级文件片存储到嵌入式多媒体卡中合适的地址。
进一步的,升级模块202,还用于当部分升级文件片被存储到所述嵌入式多媒体卡之后,所述终端根据所述部分升级文件片,开始对软件进行升级。
升级模块202,还用于在对所述软件进行升级的过程中,所述终端根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
本发明实施例提供了一种应用于终端的软件升级装置,通过该装置从位于网络侧的存储空间下载升级所需的升级文件,该装置根据下载的升级文件,进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。而且在该装置将部分升级文件片存储到嵌入式多媒体卡中后,该装置就可以更具这部分升级文件片对软件进行升级,不需要等待所有升级文件片都存储到嵌入式多媒体卡中后,才开始对软件进行升级,节省了该装置对软件进行升级花费的时间,提高了该装置对然间进行 升级的速度。
进一步的,如图11所示,下载单元2011还包括:
第一标识添加子单元20111,用于当从所述存储空间将第k1升级文件片下载到所述内存时,为所述第k1升级文件片添加第一标识信息。
其中,第一标识信息用于标识正在下载至内存的第k1升级文件片,k1为整数且1≤k1≤N。
存储单元2012还包括:
第二标识添加子单元20121,用于当从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,为所述第k2升级文件片添加第二标识信息。
其中,第二标识信息用于标识正在存储至嵌入式多媒体卡的第k2升级文件片,其中,k2为整数且1≤k2≤N。
本发明实施例提供了一种应用于终端的软件升级装置,通过该装置从位于网络侧的存储空间下载升级所需的升级文件,该装置根据下载的升级文件,进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。该装置为升级文件片添加第一标识信息和/或第二标识信息,来标识当前正在下载到内存的升级文件片和/或当前正在存储到嵌入式多媒体卡中的升级文件片,当下载发生中断,该装置恢复后,可以通过采用断点续传的功能,继续对发生中断具有第一标识信息的升级文件片进行下载,避免了从第1升级文件片重新开始下载的情况,并将发生中断并具有第二标识信息的升级文件片存储至嵌入式多媒体卡,避免了重新将从第1升级文件片开始存储到嵌入式多媒体卡的情况,节省了该装置对软件进行升级的时间。
此外,如图12所示,所述装置200,还包括:
消息发送模块203,用于向所述存储空间发送升级请求消息。
列表获取模块204,用于接收所述存储空间发送的升级版本列表。
其中,升级版本列表包括所述存储空间内存储的与升级请求消息对应的至少两个升级文件版本。
版本确定模块205,用于接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
本发明实施例提供了一种应用于终端的软件升级装置,通过该装置从位于网络侧的存储空间下载升级所需的升级文件,该装置根据下载的升级文件,进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。
在现有技术中,该装置还可以通过OTA(Over The Air,空中下载)实现对软件进行升级,当旧版本完整时,直接对旧版本与比旧版本高一等级的新版本的不同之处进行升级,而无需对相同之处进行任何升级,进而达到快速升级的目的,但是利用OTA升级不能跨等级升级;当旧版本不完整时,该装置也无法完成对软件的升级。因此升级包对通过OTA进行软件升级有所限制,与上述现有技术相比,本发明能够从升级版本列表中选择需要的任意版本的升级包,并进行软件升级,扩大了软件升级版本的选择空间,从而摆脱了软件升级时对升级包的限制。
进一步的,如图13所示,下载单元2011,还包括:
检测子单元20112,用于当从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测。
重下载子单元20113,用于当检测到所述第k3升级文件片不完整时, 从所述存储空间中重新下载所述第k3升级文件片。
其中,k3为整数,且1≤k3≤N。
本发明实施例提供了一种应用于终端的软件升级装置,通过该装置从位于网络侧的存储空间下载升级所需的升级文件,该装置根据下载的升级文件,进行升级。与现有技术相比,本发明中该装置通过通信网络与存储空间相连,并且该装置中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至该装置,所以不需要使用数据线和SD卡等,进而使该装置升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对该装置升级的限制。对从位于网络侧的存储空间下载至内存的升级文件片进行检测,当检测到该升级文件片不完整时,重新下载该升级文件片,直至将该升级文件片下载完整才进行下一个升级文件片的下载,从而保证了所下载的升级文件片的完整性,进而保证了由升级文件片组成的升级文件的完整性。
本发明实施例还提供了一种终端300,如图14所示,包括:至少一个处理器301,例如CPU,至少一个网络接口302或者其他用户接口303,存储器304,至少一个通信总线305。通信总线305用于实现这些组件之间的连接通信。可选的,还包含用户接口303、显示器、输入设备(例如,鼠标,轨迹球(trackball),触感板或者触感显示屏)。存储器304可能包含高速RAM存储器,也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器304可选的可以包含至少一个位于远离前述处理器301的存储装置。网络接口302用于与网络侧进行数据交互。
在一些实施方式中,存储器304存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:
操作系统3041,包含各种系统程序,用于实现各种基础业务以及处理基于硬件的任务;
应用程序3042,包含各种应用程序,用于实现各种应用业务。
应用程序3042中包括但不限于文件下载模块201、升级模块202、消息发送模块203、列表获取模块204、版本确定模块205、下载单元2011、存储单元2012、第一标识添加子单元20111、第二标识添加子单元20121、检测子单元20113、重下载子单元20114。
应用程序3042中各模块、单元和子单元的具体实现参见图9至图13所示实施例中的相应模块、单元和子单元,在此不再赘述。
具体地,所述处理器301用于通过所述网络接口302从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件。
处理器301,还用于根据下载的所述升级文件,对软件进行升级。
终端300包括内存和嵌入式多媒体卡。
处理器301还用于通过网络接口302从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存。
所述处理器301还用于从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
升级文件被分为N个升级文件片,N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1。
处理器301还用于通过网络接口302从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存。
处理器301还用于从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡。
处理器301还用于通过网络接口302在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存。
处理器301还用于从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌 入式多媒体卡。
以此类推,直至处理器301通过网络接口302从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存。
处理器301从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
升级文件被分为N个升级文件片,N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1。
处理器301还用于通过网络接口302将所述第1升级文件片至第N升级文件片下载至所述内存。
处理器301还用于从所述内存获取所述第1升级文件片至第N升级文件片,并将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
处理器301还用于当部分升级文件片被存储到所述嵌入式多媒体卡之后,根据所述部分升级文件片,开始对软件进行升级;以及,还用于在对所述软件进行升级的过程中,根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
处理器301还用于当从所述存储空间将第k1升级文件片下载到所述内存时,为所述第k1升级文件片添加第一标识信息,所述第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片;和/或,用于当从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片。
其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
处理器301还用于通过网络接口302向所述存储空间发送升级请求消 息;
处理器301还用于通过网络接口302接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本。
处理器301用于接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
处理器301还用于当所述终端从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测。
处理器301还用于当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片。
其中,k3为整数,且1≤k3≤N。
本发明实施例提供了一种终端,通过终端从位于网络侧的存储空间下载升级所需的升级文件,终端根据下载的升级文件,进行升级。与现有技术相比,本发明中终端通过通信网络与存储空间相连,并且终端中软件升级所需的升级文件来源于存储空间,能够直接将软件升级所需的升级文件从存储空间下载至终端,所以不需要使用数据线和SD卡等,进而使终端升级摆脱了对数据线、手机驱动程序、SD卡容量及SD卡与手机的兼容性等外部条件的依赖,解除了外部条件对终端升级的限制。
而且,位于网络侧的存储空间中的升级文件被分为多个升级文件片,保证每一个升级文件片的大小小于或等于终端中内存的大小,避免了下载升级文件片时终端中空闲内存空间缺乏的问题;终端能够在从位于网络侧的存储空间下载至少一个升级文件片,在将这至少一个升级文件片存储到嵌入式多媒体卡后,内存释放原用于存储这至少一个升级文件片的空间,进一步避免了下载升级文件片时终端中空闲内存空间缺乏的问题。终端还能够获取升级文件片的文件信息,根据文件信息将升级文件片存储到嵌入式多媒体卡中合适的地址。
而且,在终端将部分升级文件片存储到嵌入式多媒体卡中后,终端就可以更具这部分升级文件片对软件进行升级,不需要等待所有升级文件片都存储到嵌入式多媒体卡中后,才开始对软件进行升级,节省了终端对软件进行升级花费的时间,提高了终端对然间进行升级的速度。
而且,终端为升级文件片添加第一标识信息和/或第二标识信息,来标识当前正在下载到内存的升级文件片和/或当前正在存储到嵌入式多媒体卡中的升级文件片,当下载发生中断,终端恢复后,可以通过采用断点续传的功能,继续对发生中断具有第一标识信息的升级文件片进行下载,避免了从第1升级文件片重新开始下载的情况,并将发生中断并具有第二标识信息的升级文件片存储至嵌入式多媒体卡,避免了重新将从第1升级文件片开始存储到嵌入式多媒体卡的情况,节省了终端对软件进行升级的时间。
在现有技术中,终端还可以通过OTA(Over The Air,空中下载)实现对软件进行升级,当旧版本完整时,直接对旧版本与比旧版本高一等级的新版本的不同之处进行升级,而无需对相同之处进行任何升级,进而达到快速升级的目的,但是利用OTA升级不能跨等级升级;当旧版本不完整时,终端也无法完成对软件的升级。因此升级包对通过OTA进行软件升级有所限制,与上述现有技术相比,本发明能够从升级版本列表中选择需要的任意版本的升级包,并进行软件升级,扩大了软件升级版本的选择空间,从而摆脱了软件升级时对升级包的限制。
进一步的,对从位于网络侧的存储空间下载至内存的升级文件片进行检测,当检测到该升级文件片不完整时,重新下载该升级文件片,直至将该升级文件片下载完整才进行下一个升级文件片的下载,从而保证了所下载的升级文件片的完整性,进而保证了由升级文件片组成的升级文件的完整性。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的 不同之处。尤其,对于设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (24)

  1. 一种应用于终端的软件升级方法,其特征在于,所述方法包括:
    所述终端从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件;
    所述终端根据下载的所述升级文件,对软件进行升级。
  2. 根据权利要求1所述的方法,其特征在于,所述终端包括内存和嵌入式多媒体卡;所述终端从位于网络侧的与所述终端对应的所述存储空间下载软件升级所需的升级文件,包括:
    所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;
    所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
  3. 根据权利要求2所述的方法,其特征在于,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
    所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡,包括:
    所述终端从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存;
    所述终端从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡;
    在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,所述终端从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存;
    所述终端从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多 媒体卡;
    以此类推,直至
    所述终端从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存;
    所述终端从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡;
    其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
  4. 根据权利要求2所述的方法,其特征在于,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
    所述终端从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存,所述终端从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡,包括:
    所述终端从所述存储空间将所述第1升级文件片至第N升级文件片下载到所述内存;
    所述终端从所述内存获取所述第1升级文件片至第N升级文件片,并将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
  5. 根据权利要求3或4所述的方法,其特征在于,所述终端根据下载的所述升级文件,对软件进行升级,包括:
    当部分升级文件片被存储到所述嵌入式多媒体卡之后,所述终端根据所述部分升级文件片,开始对软件进行升级;
    在对所述软件进行升级的过程中,所述终端根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
  6. 根据权利要求3-5任一所述的方法,其特征在于,所述方法还包括:
    当所述终端从所述存储空间将第k1升级文件片下载到所述内存时,所述终端为所述第k1升级文件片添加第一标识信息,所述第一标识信息用于 标识正在下载至所述内存的所述第k1升级文件片;和/或
    当所述终端从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,所述终端为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片;
    其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
  7. 根据权利要求1-6任一所述的方法,其特征在于,在所述终端从位于网络侧的与所述终端对应的所述存储空间下载软件升级所需的升级文件之前,所述方法还包括:
    所述终端向所述存储空间发送升级请求消息;
    所述终端接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本;
    接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
  8. 根据权利要求3-6任一所述的方法,其特征在于,所述方法还包括:
    当所述终端从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测;
    当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片,其中,k3为整数,且1≤k3≤N。
  9. 一种应用于终端的软件升级装置,其特征在于,所述装置包括:
    文件下载模块,用于从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件;
    升级模块,用于根据下载的所述升级文件,对软件进行升级。
  10. 根据权利要求9所述的装置,其特征在于,所述装置包括内存和嵌入式多媒体卡;所述文件下载模块,包括:
    下载单元,用于从位于网络侧的与所述终端对应的所述存储空间将所 述升级文件下载到所述内存;
    存储单元,用于从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
  11. 根据权利要求10所述的装置,其特征在于,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
    所述下载单元,还用于从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存;
    所述存储单元,还用于从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡;
    所述下载单元,还用于在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存;
    所述存储单元,还用于从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡;
    所述下载单元,还用于以此类推,直至从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存;
    所述存储单元,还用于从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡;
    其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
  12. 根据权利要求10所述的装置,其特征在于,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
    所述下载单元,还用于从所述存储空间将所述第1升级文件片至第N升级文件片下载到所述内存;
    所述下载单元,还用于从所述内存获取所述第1升级文件片至第N升级文件片,将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
  13. 根据权利要求11或12所述的装置,其特征在于,所述升级模块还用于当部分升级文件片被存储到所述嵌入式多媒体卡之后,所述终端根据所述部分升级文件片,开始对软件进行升级;
    并用于在对所述软件进行升级的过程中,所述终端根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
  14. 根据权利要求11-13任一所述的装置,其特征在于,所述下载单元,包括:
    第一标识添加子单元,用于当从所述存储空间将第k1升级文件片下载到所述内存时,为所述第k1升级文件片添加第一标识信息,所述第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片;
    第二标识添加子单元,用于当从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片;
    其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
  15. 根据权利要求9-14任一所述的装置,其特征在于,还包括:
    消息发送模块,用于向所述存储空间发送升级请求消息;
    列表获取模块,用于接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本;
    版本确定模块,用于接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
  16. 根据权利要求11-14任一所述的装置,其特征在于,所述下载单元还包括:
    检测子单元,用于当从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测;
    所述存储单元还包括:
    重下载子单元,用于当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片,其中,k3为整数,且1≤k3≤N。
  17. 一种终端,其特征在于,所述终端至少包括网络接口、处理器,所述网络接口用于与网络侧进行数据交互;
    所述处理器用于通过所述网络接口从位于网络侧的与所述终端对应的存储空间下载软件升级所需的升级文件,所述存储空间中存储有所述升级文件;
    所述处理器,还用于根据下载的所述升级文件,对软件进行升级。
  18. 根据权利要求17所述的终端,其特征在于,所述终端还包括内存和嵌入式多媒体卡;
    所述处理器还用于通过所述网络接口从位于网络侧的与所述终端对应的所述存储空间将所述升级文件下载到所述内存;
    所述处理器还用于从所述内存获取所述升级文件,并将所述升级文件存储到所述嵌入式多媒体卡。
  19. 根据权利要求18所述的终端,其特征在于,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
    所述处理器还用于通过所述网络接口从所述存储空间将第1升级文件片至第i1升级文件片下载到所述内存;
    所述处理器还用于从所述内存获取所述第1升级文件片至第i1升级文件片,并将所述第1升级文件片至第i1升级文件片存储到所述嵌入式多媒体卡;
    所述处理器还用于通过所述网络接口在所述第1升级文件片至第i1升级文件片被存储到所述嵌入式多媒体卡之后,从所述存储空间将第i1+1升级文件片至第i1+i2升级文件片下载到所述内存;
    所述处理器还用于从所述内存获取所述第i1+1升级文件片至第i1+i2升级文件片,并将所述第i1+1升级文件片至第i1+i2升级文件片存储到所述嵌入式多媒体卡;
    以此类推,直至所述处理器通过所述网络接口从所述存储空间将第i3+1升级文件片至第N升级文件片下载到所述内存;
    所述处理器从所述内存获取所述第i3+1升级文件片至第N升级文件片,并将所述第i3+1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡;
    其中,i1、i2、i3为整数,且1≤i1<N,i1+1≤i1+i2≤N,i1+i2≤i3+1≤N。
  20. 根据权利要求18所述的终端,其特征在于,所述升级文件被分为N个升级文件片,所述N个升级文件片为第1升级文件片至第N升级文件片,N为整数,且N>1;
    所述处理器还用于通过所述网络接口将所述第1升级文件片至第N升级文件片下载至所述内存;
    所述处理器还用于从所述内存获取所述第1升级文件片至第N升级文件片,并将所述第1升级文件片至第N升级文件片存储到所述嵌入式多媒体卡。
  21. 根据权利要求19或20所述的终端,其特征在于,所述处理器还用于当部分升级文件片被存储到所述嵌入式多媒体卡之后,根据所述部分升级文件片,开始对软件进行升级;
    并用于在对所述软件进行升级的过程中,根据后续被存储到所述嵌入式多媒体卡的其它部分升级文件片,继续对所述软件进行升级。
  22. 根据权利要求19-21任一所述的终端,其特征在于,所述处理器还用于当从所述存储空间将第k1升级文件片下载到所述内存时,为所述第k1 升级文件片添加第一标识信息,所述第一标识信息用于标识正在下载至所述内存的所述第k1升级文件片;和/或
    当从所述内存获取第k2升级文件片,并将所述第k2升级文件片存储到所述嵌入式多媒体卡时,为所述第k2升级文件片添加第二标识信息,所述第二标识信息用于标识正在存储至所述嵌入式多媒体卡的所述第k2升级文件片;
    其中,k1、k2为整数,且1≤k1≤N,1≤k2≤N。
  23. 根据权利要求17-22任一所述的终端,其特征在于,所述处理器还用于通过所述网络接口向所述存储空间发送升级请求消息;
    所述处理器还用于通过所述网络接口接收所述存储空间发送的升级版本列表,所述升级版本列表包括所述存储空间内存储的与所述升级请求消息对应的至少两个升级文件版本;
    所述处理器用于接收用户的选择指令,并根据所述选择指令在所述升级版本列表中确定待下载的所述升级文件对应的升级文件版本。
  24. 根据权利要求19-22任一所述的终端,其特征在于,所述处理器还用于当所述终端从所述存储空间将第k3升级文件片下载到所述内存时,对下载至所述内存的所述第k3升级文件片进行完整性检测;
    并用于当检测到所述第k3升级文件片不完整时,从所述存储空间中重新下载所述第k3升级文件片,其中,k3为整数,且1≤k3≤N。
PCT/CN2014/088869 2014-10-17 2014-10-17 一种应用于终端的软件升级方法、装置及终端 WO2016058188A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/088869 WO2016058188A1 (zh) 2014-10-17 2014-10-17 一种应用于终端的软件升级方法、装置及终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/088869 WO2016058188A1 (zh) 2014-10-17 2014-10-17 一种应用于终端的软件升级方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2016058188A1 true WO2016058188A1 (zh) 2016-04-21

Family

ID=55745996

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088869 WO2016058188A1 (zh) 2014-10-17 2014-10-17 一种应用于终端的软件升级方法、装置及终端

Country Status (1)

Country Link
WO (1) WO2016058188A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242276A (zh) * 2021-04-13 2021-08-10 东风汽车集团股份有限公司 车载系统在线升级方法、装置、设备及存储介质
CN113495745A (zh) * 2020-04-01 2021-10-12 杭州萤石软件有限公司 电子设备的升级方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876A (zh) * 2009-09-14 2011-04-20 漳州科能电器有限公司 一种可软件在线升级的嵌入式系统及在线升级方法
CN102761653A (zh) * 2011-04-29 2012-10-31 晨讯科技(沈阳)有限公司 手持终端设备软件在线升级的方法
CN103150193A (zh) * 2013-04-10 2013-06-12 天津三星光电子有限公司 一种移动终端的软件升级方法
US20130311599A1 (en) * 2012-05-17 2013-11-21 International Business Machines Corporation Updating Web Resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876A (zh) * 2009-09-14 2011-04-20 漳州科能电器有限公司 一种可软件在线升级的嵌入式系统及在线升级方法
CN102761653A (zh) * 2011-04-29 2012-10-31 晨讯科技(沈阳)有限公司 手持终端设备软件在线升级的方法
US20130311599A1 (en) * 2012-05-17 2013-11-21 International Business Machines Corporation Updating Web Resources
CN103150193A (zh) * 2013-04-10 2013-06-12 天津三星光电子有限公司 一种移动终端的软件升级方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495745A (zh) * 2020-04-01 2021-10-12 杭州萤石软件有限公司 电子设备的升级方法和装置
CN113242276A (zh) * 2021-04-13 2021-08-10 东风汽车集团股份有限公司 车载系统在线升级方法、装置、设备及存储介质
CN113242276B (zh) * 2021-04-13 2023-03-24 东风汽车集团股份有限公司 车载系统在线升级方法、装置、设备及存储介质

Similar Documents

Publication Publication Date Title
US20180349129A1 (en) Apparatus for supporting firmware update and method for the same
WO2019201039A1 (zh) 一种更新应用程序的方法、系统及应用服务器
WO2018049888A1 (zh) 应用数据的迁移方法及装置
WO2019062635A1 (zh) 升级方法和装置
US9983791B2 (en) System management controller and method of configuration file backup and recovery
US8924704B2 (en) Apparatus and method for downloading contents using an interior mass storage in a portable terminal
CN108650287B (zh) 物联网中的终端设备的升级方法、设备及计算机可读介质
WO2014089734A1 (zh) 终端和应用程序恢复方法
JP6316978B2 (ja) ファウンテンコードを用いる管理情報のブロードキャスト
US8515732B2 (en) Opening a message catalog file for a language that is not installed
WO2015176468A1 (zh) 一种智能终端的系统软件恢复的方法及装置
TW201428613A (zh) 無盤工作站啟動系統及方法
US10365910B2 (en) Systems and methods for uninstalling or upgrading software if package cache is removed or corrupted
WO2018006884A1 (zh) 一种软件安装方法及装置、用户终端
WO2015117356A1 (zh) 一种开机方法及通信终端
WO2016058188A1 (zh) 一种应用于终端的软件升级方法、装置及终端
RU2009105127A (ru) Изменения состояния среды для изменения функциональных возможностей
WO2013167010A2 (zh) 一种移动终端及其开机方法
WO2024041283A1 (zh) 一种客户端升级方法、装置、终端设备及存储介质
KR102116096B1 (ko) 다중시스템 및 이의 부팅 방법
WO2023226720A1 (zh) 资源文件的传输方法、装置、设备及存储介质
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
WO2017121077A1 (zh) 一种双引导文件的切换方法及装置
EP2813947B1 (en) Electronic device and method for mounting file system using virtual block device
US20080082826A1 (en) Method and apparatus for updating non-volatile memories

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

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

Country of ref document: EP

Kind code of ref document: A1