WO2015131488A1 - 终端固件升级方法、装置及计算机存储介质 - Google Patents

终端固件升级方法、装置及计算机存储介质 Download PDF

Info

Publication number
WO2015131488A1
WO2015131488A1 PCT/CN2014/083822 CN2014083822W WO2015131488A1 WO 2015131488 A1 WO2015131488 A1 WO 2015131488A1 CN 2014083822 W CN2014083822 W CN 2014083822W WO 2015131488 A1 WO2015131488 A1 WO 2015131488A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
terminal
operation result
identification
firmware
Prior art date
Application number
PCT/CN2014/083822
Other languages
English (en)
French (fr)
Inventor
刘明辉
张静
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131488A1 publication Critical patent/WO2015131488A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Definitions

  • Terminal firmware upgrade method Terminal firmware upgrade method, device and computer storage medium
  • the present invention relates to communication technologies, and in particular, to a terminal firmware upgrade method, a device, and a computer storage medium. Background technique
  • a mobile terminal refers to a portable mobile computer device, which may include a mobile phone, a data card, a tablet computer, and the like.
  • the firmware of a mobile terminal refers to the software that functions as the most basic and lowest level of a mobile terminal.
  • the firmware is usually stored in the EEPROM (Electrically Erasable Programmable Read - Only Memory) or FLASH (Flash) chip of the terminal device and can be upgraded with a specific upgrade tool. Upgrading the firmware of multiple mobile terminals in batches can greatly improve the operation efficiency.
  • the firmware upgrade process of the mobile terminal needs to be implemented by means of an upgrade tool on the computer side, and the upgrade process is a series of ordered instructions of the upgrade tool and the terminal. Interaction.
  • the mobile terminal presents various types of devices in the computer operating system, such as a USB flash drive, a Remote Network Driver Interface Specification (RNDIS) device, a MODEM (modem) device, and a virtual serial port.
  • RNDIS Remote Network Driver Interface Specification
  • modem MODEM
  • virtual serial port Normally, the mobile terminal needs to undergo multiple mode switching to complete the firmware upgrade process. For example, during the firmware upgrade, the mobile terminal needs to switch from the parameter backup mode to the firmware upgrade mode. Therefore, if multiple mobile terminals are upgraded in batches at the same time, the serial port number of each terminal device may change in different modes during the mode switching of each terminal. Therefore, it is easy to cause the device before and after mode switching of the device. The related information is mismatched, so that the backup information of one mobile terminal is mistakenly written into another mobile terminal during the upgrade process. Summary of the invention
  • the embodiment of the invention provides a terminal firmware upgrade method, a device and a computer storage medium, which solve the problem that when the multiple terminals are upgraded at the same time, the related information of the terminal is easily mismatched.
  • a terminal firmware upgrade method including: setting an upgrade identifier in a terminal; corresponding an upgrade identifier, recording an upgrade operation result when the terminal is in different modes during the upgrade process; obtaining an upgrade according to the upgrade identifier The operation result, and the terminal is upgraded in the current mode according to the obtained upgrade operation result.
  • the upgrade operation result includes the service operation result of the terminal, and performing the upgrade of the terminal in the current mode according to the obtained upgrade operation result includes: performing the service operation in the current mode according to the obtained service operation result.
  • the upgrade operation result also includes the upgrade progress information of the terminal, and performing the upgrade of the terminal in the current mode according to the obtained upgrade operation result includes: performing service operation of the terminal or performing mode switching on the terminal according to the obtained upgrade progress information.
  • the upgrade identifier is a unique identifier obtained from the terminal, or a unique identifier generated according to a preset algorithm.
  • the upgrade is identified as an international mobile equipment identity (the IMEI), mobile equipment identity (the MEID) or global upgrade code (GUID) 0
  • the obtaining the upgrade operation result according to the upgrade identifier includes: obtaining a list of the terminal to be upgraded, establishing a data channel with the terminal to be upgraded, obtaining an upgrade identifier of the terminal to be upgraded through the data channel, and searching for the service operation result in the service operation result list according to the upgrade identifier Or terminal upgrade progress information.
  • a terminal firmware upgrading apparatus including: a setting module configured to set an upgrade identifier in a terminal; a recording module configured to correspond to an upgrade identifier, where the recording terminal is different in the upgrade process The result of the upgrade operation in the mode; the acquisition module is configured to obtain the upgrade operation result according to the upgrade identifier, and perform the upgrade of the terminal in the current mode according to the obtained upgrade operation result.
  • the result of the upgrade operation includes the service operation result of the terminal, and the obtaining module is further configured to perform the service operation in the current mode according to the obtained service operation result.
  • the upgrade operation result further includes the upgrade progress information of the terminal, and the obtaining module is further configured to perform a service operation of the terminal or perform mode switching by the terminal according to the obtained upgrade progress information.
  • the upgrade identifier is a unique identifier obtained from the terminal, or a unique identifier generated according to a preset algorithm.
  • the upgrade is identified as an international mobile equipment identity (the IMEI), mobile equipment identity (the MEID) or global upgrade code (GUID) 0
  • the obtaining module is further configured to: obtain a list of the terminal to be upgraded, establish a data channel with the terminal to be upgraded, obtain an upgrade identifier of the terminal to be upgraded through the data channel, and search for a service operation result or a terminal in the service operation result list according to the upgrade identifier. Upgrade progress information.
  • a computer storage medium wherein computer executable instructions are stored in the computer storage medium, and the computer executable instructions are configured to perform the terminal firmware upgrade method described above.
  • the solution provided by the embodiment of the present invention allocates an upgrade identifier to each terminal to be upgraded, and records the upgrade operation result by using the upgrade identifier in the process of upgrading the terminal firmware, so as to obtain each terminal according to the upgrade identifier when the terminal is in different modes.
  • the result of the upgrade operation is to implement an upgrade in which the terminal is in a different mode according to the result of the upgrade operation.
  • FIG. 1 is a flowchart of a method for upgrading a terminal firmware according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a firmware upgrade of a terminal according to an embodiment of the present invention
  • FIG. 3 is a flowchart of batch upgrading RNDIS device firmware according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a terminal firmware upgrading apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a firmware upgrade tool located on a mobile terminal side according to an embodiment of the present invention. detailed description
  • FIG. 1 is a flowchart of a method for upgrading a terminal firmware according to an embodiment of the present invention. As shown in Figure 1, the method includes the following steps:
  • Step 101 Set an upgrade identifier in the terminal
  • the terminal may be a mobile terminal;
  • the upgrade identifier may be a character string or a value, and the unique identifier code may be obtained from the terminal device to be upgraded as an upgrade identifier of the terminal, such as an international mobile device identifier of the terminal.
  • IMEI International Mobile Equipment Identification Number
  • MEID Mobile Equipment Identifier
  • It can also generate a unique identification code through a certain algorithm, such as generating a Globally Unique Identifier (GUID).
  • the upgrade ID of the terminal After the upgrade ID is assigned to the terminal to be upgraded, the upgrade ID of the terminal is written into the reserved storage area of the terminal.
  • Step 102 Corresponding to the upgrade identifier, recording the result of the upgrade operation when the terminal is in different modes during the upgrade process;
  • the result of the upgrade operation may include a service operation result of the terminal. Based on this, the step 102 may include: performing a service operation in the current mode according to the obtained service operation result.
  • the upgrade operation result may include the upgrade progress information of the terminal.
  • the step 102 may include: performing a service operation of the terminal or performing mode switching on the terminal according to the obtained upgrade progress information.
  • the service operation result may include: path information of the target firmware of the terminal, and/or information that the terminal needs to back up.
  • the step 102 may include: performing a service operation in the current mode, and performing a service operation in the current mode, if the service operation needs to be performed in the current mode in which the terminal is located. If the upgrade operation identifier of the terminal is used as an index, the service operation result of the terminal in the current mode and the upgrade progress of the terminal are stored in the service operation result list; if the service operation is not required in the current mode, the mode switching instruction is sent to the terminal, Instructing the terminal to perform mode switching.
  • Step 103 Obtain an upgrade operation result according to the upgrade identifier, and perform an upgrade of the terminal in the current mode according to the obtained upgrade operation result.
  • Step 103 may include: obtaining a list of all terminals after the mode switching, and establishing a data channel with all the terminals; if the service operation in the current mode needs to obtain the service operation result of each terminal before the mode switching, acquiring each terminal through the data channel Upgrade ID; Find the business operation result in the business operation result list according to the upgrade ID of each terminal.
  • FIG. 2 is a flowchart of the firmware upgrade of the terminal according to the embodiment of the present invention.
  • the terminal firmware upgrade method of the embodiment of the present invention is briefly described below with reference to FIG. 2 through the entire process of batch upgrading the terminal firmware.
  • the method for batch upgrading terminal firmware includes the following steps. The following steps may be performed by an upgrade tool on the PC side:
  • Step 201 Acquire a list of terminals connected to a specified type (in the first state or the first mode) on the personal computer (PC), at which time the terminal is in the first state or the first mode, and establishes a data channel with each terminal.
  • PC personal computer
  • Step 202 Assign an upgrade identifier to each terminal, and write the identifier into the reserved storage area of the device.
  • the upgrade identifier of the upgrade tool cooperates with the identifier read/write module of the terminal to write the upgrade identifier assigned to each terminal into the reserved storage area of the terminal.
  • Step 203 Perform a service operation that needs to be performed by each terminal in the first state, and record an operation result obtained by performing the service operation by using an upgrade identifier of each terminal as an index.
  • Step 204 Notify each terminal to perform mode switching.
  • the mode switching in this embodiment is to switch from a certain state or a certain mode of the terminal to another state or mode of the terminal, for example, to switch the terminal from the parameter backup mode to the firmware upgrade mode.
  • Step 205 Obtain a list of all terminals to be upgraded in the second state, and establish a data channel with all terminals in the second state.
  • Step 206 Read the upgrade identifier information obtained by each terminal.
  • Step 207 Search for the service operation result corresponding to the read upgrade identifier in the list of service operation results in the pre-recorded first state according to the read upgrade identifier information.
  • the matching of the same device before and after the state switching with the result of the operation is completed that is, the matching between the service operation result of each terminal in the first state and the terminal in the second state is realized.
  • Step 208 The upgrade service operation of each terminal is completed, and the upgrade tool notifies each terminal to switch to the initial first state, and the entire upgrade process ends.
  • the steps of the above mode switching may be repeated. For example, if each terminal is switched back to the first state due to the firmware upgrade, the switch to the first state does not need to be performed.
  • the step of storing the result of the operation of the service that is, in the process of upgrading the firmware of the terminal, the service operation result of each terminal in a certain state is stored only once. If the service operation result of each mode in which the terminal is located is used in the service operation in each mode, the upgrade identification information read from the terminal can be used for searching and obtaining, thereby ensuring that the same identifier is obtained in each mode.
  • the information is the result of the service operation on the same device, that is, the matching between the service operation result and the terminal when the same device switches in multiple modes is completed.
  • the foregoing steps 201 to 208 describe the process of storing the service operation result in the different mode of the upgrade process according to the upgrade identifier and the process of obtaining the service operation result according to the upgrade identifier, and the following describes the batch process in detail.
  • a USB flash drive an RNDIS device
  • a MODEM device a virtual serial port
  • a virtual serial port an example of the device type that the terminal presents in the computer operating system is an RNDIS device, as shown in FIG. The method for upgrading the terminal firmware in the embodiment of the present invention is described in detail.
  • FIG. 3 is a flowchart of batch upgrading RNDIS device firmware according to an embodiment of the present invention. As shown in FIG. 3, the entire process of batch upgrading RNDIS terminal firmware includes the following steps:
  • Step 301 The upgrade tool obtains all RNDIS terminals to be upgraded.
  • Step 302 Because the IP address of each RNDIS terminal is different, the upgrade tool can obtain the IMEI number of each terminal by sending a pre-agreed HTTP (HTTP-Hypertext Transfer Protocol) request to the specified IP address. Then, the upgrade tool uses it as the upgrade identifier of the terminal and writes it to the reserved storage area of each terminal through a pre-agreed HTTP command.
  • HTTP-Hypertext Transfer Protocol HTTP-Hypertext Transfer Protocol
  • the IMEI number itself is the upgrade identifier of the terminal, the uniqueness can be guaranteed. Therefore, the IMEI number can be directly used as the upgrade identifier of the terminal in this step.
  • Step 303 The user selects the path of the target firmware to be upgraded for each terminal to be upgraded through the firmware path selection function of the upgrade tool.
  • the upgrade tool stores the path of the target firmware specified by the user to each terminal, with the upgrade identifier (ie, IMEI number) of each terminal as an index.
  • Step 304 The upgrade tool sends a mode switching instruction to each terminal that needs to be upgraded by using the IP address of each terminal in a pre-agreed HTTP command, and notifies the terminal to switch to the parameter backup state. In this state, the terminal can upgrade through the serial port and the PC side. Tool communication.
  • Step 305 The upgrade tool acquires the serial port information of each terminal, and reads the upgrade identification information written in step 302 from each terminal. Then, through the serial port, the information to be backed up is read from the terminal by a pre-agreed diagnostic (DIAG) instruction, that is, a diagnostic instruction (NV item, ie, nonvolatile random access memory (NVRAM, Nonvolatile random access) Memory ), Bluetooth address, media access control (MAC, Medium/Media Access Control) address, network configuration, etc., and the upgrade identification information of each terminal is used as the file name, and the information that each terminal needs to back up is stored in the data backup file on the PC side. in.
  • DIG pre-agreed diagnostic
  • Step 306 The upgrade tool notifies each terminal to switch to the firmware upgrade state by using a pre-agreed DIAG command through each COM port. In this state, the upgrade tool still communicates with each terminal through the serial port.
  • the serial port number corresponding to the same terminal may change before and after the state switch, so the same serial port number does not necessarily correspond to the same terminal.
  • Step 307 The upgrade tool obtains the serial port information of each terminal again, and reads the upgrade identification information corresponding to each terminal. Then, the upgrade tool finds the target firmware path corresponding to each terminal from the list of target firmware paths specified by the previous user, and obtains the firmware file to be downloaded from the target firmware path. Finally, the upgrade tool sends the firmware file to each terminal through the serial port in a pre-agreed DIAG command to implement firmware upgrade.
  • Step 308 The upgrade tool notifies each terminal to switch to the data recovery state by using a pre-agreed DIAG command through the serial port. In this state, the upgrade tool and the terminal can also communicate through the serial port.
  • Step 309 The upgrade tool obtains the serial port information of each terminal, and reads the upgrade identification information corresponding to each terminal. The upgrade tool then finds the appropriate data backup file from the data backup file set that was previously indexed by the upgrade ID. Finally, the upgrade tool parses the data backup file and restores the backed up information to the corresponding terminal through the serial port in a pre-agreed DIAG command.
  • Step 310 The upgrade tool notifies each terminal to switch to the RNDIS state through a pre-agreed DIAG command through each serial port, that is, the terminal works normally, and the upgrade process is completed.
  • FIG. 4 is a structural block diagram of a terminal firmware upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes the following components:
  • the setting module 41 is configured to set an upgrade identifier in the terminal
  • the upgrade identifier is a unique identifier obtained from the terminal, or a unique identifier generated according to a preset algorithm, and the upgrade identifier may be an IMEI, a MEID, or a GUID.
  • the recording module 42 is configured to correspond to an upgrade identifier, and records an upgrade operation result when the terminal is in different modes during the upgrade process;
  • the result of the upgrade operation may include the service operation result of the terminal.
  • the record module 42 may be configured to perform the service operation in the current mode according to the obtained service operation result.
  • the upgrade operation result may include the upgrade progress information of the terminal.
  • the record module 42 may be configured to perform the service operation of the terminal or perform the mode switch of the terminal according to the obtained upgrade progress information.
  • the service operation result may include: path information of the target firmware of each terminal and/or information that each terminal needs to back up.
  • the recording module 42 may be configured to perform a service operation in the current mode, and obtain a service operation result of each terminal in the current mode, in the current mode in which the terminal is located, and obtain an upgrade operation index of each terminal. And storing the service operation result of the terminal in the current mode and the upgrade progress of the terminal in the service operation result list; if the current mode does not need to perform the service operation, sending a mode switching instruction to each terminal, instructing the terminal to perform mode switching .
  • the obtaining module is configured to obtain the upgrade operation result according to the upgrade identifier, and perform the upgrade of the terminal in the current mode according to the obtained upgrade operation result.
  • the obtaining module 43 may be configured to: obtain a list of all the terminals after the mode switching, and establish a data channel with all the terminals; if the service operation in the current mode needs to obtain the service operation result of each terminal before the mode switching, obtain the data channel through the data channel.
  • the upgrade identifier of each terminal finds the service operation result in the service operation result list according to the upgrade identifier of each terminal.
  • the embodiment of the present invention further relates to a terminal firmware upgrade tool, where a part of the upgrade tool mainly implements a terminal upgrade function on the PC side, that is, the terminal firmware upgrade device 40, and another part is located on each terminal side that needs to be upgraded, that is, an upgrade tool on the terminal side, And the auxiliary upgrade tool to implement the terminal Upgrade.
  • the firmware upgrade process of the terminal specifically involves the master device, the upgrade tool, the mobile terminal, and the firmware version.
  • the master device usually a PC
  • the upgrade tool on the PC side runs on the master device and is responsible for establishing a data channel with the terminal, notifying the terminal to perform state switching, generating terminal identification information, reading and writing identification information in the terminal, and performing various service actions.
  • the firmware version may be multiple.
  • the file composition is a binary data file that can control the normal operation of the terminal after being written to the terminal.
  • FIG. 5 is a structural block diagram of a firmware upgrade tool on the mobile terminal side according to an embodiment of the present invention.
  • the device includes an identifier reading and writing module 51, a service execution module 53, and a command transceiver module 52.
  • the function of the command transceiver module 52 can be separately executed by each module of the module terminal having the function of transmitting and receiving functions, and is responsible for the PC side.
  • the upgrade tool establishes a data channel, sends the read and write identification information stored in the reserved storage area to the PC side, and performs a business action.
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the terminal firmware upgrade method shown in FIG.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, that is, may be located in one place or distributed to multiple network units; You can choose some of them according to your actual needs. Or all of the units to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing storage medium includes: a mobile storage device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk or an optical disk, and the like.
  • RAM random access memory
  • ROM read-only memory
  • magnetic disk or an optical disk and the like.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in a contribution to the related art.
  • the computer software product is stored in a storage medium and includes a plurality of instructions for making A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

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

Abstract

一种终端固件升级方法、装置及计算机存储介质,所述方法包括:在终端设置升级标识;对应升级标识,记录终端在升级过程中处于不同模式时的升级操作结果;根据升级标识获取升级操作结果,并根据获取到的升级操作结果执行终端在当前模式下的升级。

Description

终端固件升级方法、 装置及计算机存储介质 技术领域
本发明涉及通信技术, 尤其涉及一种终端固件升级方法; 装置及计算 机存储介质。 背景技术
移动终端指便携的移动计算机设备, 可以包括手机、 数据卡、 平板电 脑等。 移动终端的固件是指担任一个移动终端最基础、 最底层工作的软件。 固件一般存储于终端设备的 EEPROM ( Electrically Erasable Programmable Read - Only Memory, 电可擦只读存储器)或 FLASH (闪存) 芯片中, 可 通过特定的升级工具进行升级。 批量地对多个移动终端的固件进行升级可 以大大提升操作效率, 一般情况下, 移动终端的固件升级过程需要借助计 算机侧的升级工具实现, 升级过程为升级工具与终端的一系列有序指令的 交互。 移动终端在计算机操作系统中呈现的设备类型有多种, 如 U盘、 远 程网络驱动接口 (RNDIS, Remote Network Driver Interface Specification, 规范)设备、 MODEM (调制解调器)设备和虚拟串口等。 通常情况下, 移 动终端需要经过多次模式切换, 才能完成固件升级过程, 例如在固件升级 的过程中, 移动终端需要从参数备份模式切换到固件升级模式。 因此, 如 果同时批量升级多个移动终端, 在各终端进行多次模式切换的过程中, 由 于各终端设备在不同模式下的串口号可能会发生变化, 因此, 容易造成设 备的模式切换前后设备的相关信息匹配错误, 使得升级过程中出现一个移 动终端的备份信息误写入另一移动终端的问题。 发明内容
本发明实施例提供一种终端固件升级方法; 装置及计算机存储介质, 解决在同时升级多个终端时, 容易导致终端的相关信息匹配错误的问题。 根据本发明实施例的一个方面, 提供了一种终端固件升级方法, 包括: 在终端设置升级标识; 对应升级标识, 记录终端在升级过程中处于不同模 式时的升级操作结果; 根据升级标识获取升级操作结果, 并根据获取到的 升级操作结果执行终端在当前模式下的升级。
其中, 升级操作结果包括终端的业务操作结果, 根据获取到的升级操 作结果执行终端在当前模式下的升级包括: 根据获取到的业务操作结果执 行当前模式下的业务操作。
升级操作结果还包括终端的升级进度信息, 根据获取到的升级操作结 果执行终端在当前模式下的升级包括: 根据获取到的升级进度信息, 执行 终端的业务操作或使终端进行模式切换。
其中, 升级标识为从终端中获取的唯一标识, 或按照预设算法生成的 唯一的标识。
优选地, 升级标识为国际移动设备识别码 (IMEI )、 移动设备识别码 ( MEID )或全球升级标识码 ( GUID )0
其中, 根据升级标识获取升级操作结果包括: 获取待升级终端的列表, 与待升级终端建立数据通道; 通过数据通道获取待升级终端的升级标识; 根据升级标识在业务操作结果列表中查找业务操作结果或终端的升级进度 信息。
根据本发明的实施例另一个方面, 还提供了一种终端固件升级装置, 包括: 设置模块, 配置为在终端设置升级标识; 记录模块, 配置为对应升 级标识, 记录终端在升级过程中处于不同模式时的升级操作结果; 获取模 块, 配置为根据升级标识获取升级操作结果, 并根据获取到的升级操作结 果执行终端在当前模式下的升级。
其中, 升级操作结果包括终端的业务操作结果, 获取模块还配置为, 根据获取到的业务操作结果执行当前模式下的业务操作。 升级操作结果还包括终端的升级进度信息, 所述获取模块还配置为, 根据获取到的升级进度信息, 执行终端的业务操作或使终端进行模式切换。
其中, 升级标识为从终端中获取的唯一标识, 或按照预设算法生成的 唯一的标识。
优选地, 升级标识为国际移动设备识别码 (IMEI )、 移动设备识别码 ( MEID )或全球升级标识码 ( GUID )0
其中, 获取模块还配置为, 获取待升级终端的列表, 与待升级终端建 立数据通道; 通过数据通道获取待升级终端的升级标识; 根据升级标识在 业务操作结果列表中查找业务操作结果或终端的升级进度信息。
根据本发明实施例的一个方面, 提供了一种计算机存储介质, 所述计 算机存储介质中存储有计算机可执行指令, 所述计算机可执行指令配置为 执行以上所述的终端固件升级方法。
本发明实施例提供的方案, 通过为待升级的各终端分配升级标识, 在 终端固件升级的过程中以该升级标识存记录升级操作结果, 以便在终端处 于不同模式时根据该升级标识获取各终端的升级操作结果, 以实现根据该 升级操作结果执行终端处于不同模式的升级。 避免了在同时升级多个终端 时, 终端信息匹配错误的问题, 提高了终端固件升级的效率。 附图说明
图 1是本发明实施例的终端固件升级方法的流程图;
图 2是本发明实施例的终端固件升级的流程图;
图 3是本发明实施例的批量升级 RNDIS设备固件的流程图;
图 4是本发明实施例的终端固件升级装置的结构框图;
图 5是本发明实施例的位于移动终端侧的固件升级工具的结构框图。 具体实施方式
下结合附图及较佳实施例, 对本发明进行详细说明如后。
图 1是本发明实施例的终端固件升级方法的流程图。 如图 1所示, 该 方法包括以下步骤:
步骤 101 : 在终端设置升级标识;
这里, 所述终端可以为移动终端; 该升级标识可以是字符串, 也可以 是数值, 可从待升级的终端设备中获取唯一标识码来作为终端的升级标识, 如终端的国际移动设备识别码 ( IMEI , International Mobile Equipment Identification Number ) 或移动设备只另 ll码 ( MEID , Mobile Equipment Identifier ), 也可以通过一定的算法生成唯一标识码, 如生成一个全局升级 标识符(GUID, Globally Unique Identifier )作为终端的升级标识。 在为待 升级的终端分配升级标识之后, 将终端的升级标识分别写入终端的保留存 储区中。
步骤 102: 对应升级标识, 记录终端在升级过程中处于不同模式时的升 级操作结果;
其中, 升级操作结果中可以包括终端的业务操作结果, 基于此, 步骤 102可以包括: 根据获取到的业务操作结果执行当前模式下的业务操作。
其中, 升级操作结果中可以包括终端的升级进度信息, 基于此, 步骤 102可以包括: 根据获取到的升级进度信息,执行终端的业务操作或使终端 进行模式切换。
其中, 业务操作结果可以包括: 终端的目标固件的路径信息、 和 /或终 端需备份的信息。
其中, 步骤 102 可以包括: 如果终端所处的当前模式下需执行业务操 作, 则执行当前模式下的业务操作, 得到终端在当前模式下的业务操作结 果; 以终端的升级标识为索引, 将终端在当前模式下的业务操作结果以及 终端的升级进度存储在业务操作结果列表中; 如果当前模式下无需执行业 务操作, 则向终端发送模式切换指令, 指示所述终端进行模式切换。
步骤 103: 根据升级标识获取升级操作结果, 并根据获取到的升级操作 结果执行终端在当前模式下的升级。 步骤 103 可以包括: 获取执行模式切换后的所有终端的列表, 与所有 终端建立数据通道; 如果当前模式下的业务操作需获取各终端在模式切换 之前的业务操作结果, 则通过数据通道获取各终端的升级标识; 根据各终 端的升级标识在业务操作结果列表中查找业务操作结果。
图 2是本发明实施例的终端固件升级的流程图, 以下结合该图 2通过 在批量升级终端固件的整个流程来简要描述本发明实施例的终端固件升级 方法。
如图 2所示, 批量升级终端固件的方法包括以下步骤, 以下步骤可由 PC侧的升级工具来执行:
步骤 201 : 获取连接到个人电脑 (PC )上的指定类型 (处于第一状态 或第一模式) 的终端的列表, 此时终端处于第一状态或第一模式, 并与各 终端建立数据通道。
步骤 202: 为每一个终端分配一个升级标识, 将该标识写入到设备的保 留存储区中。
例如, 通过升级工具的标识读写模块与终端的标识读写模块配合来将 为各终端分配的升级标识写入终端的保留存储区中。
步骤 203: 执行各终端在第一状态下需要执行的业务操作, 并以各终端 的升级标识为索引记录下该执行该业务操作得到的业务操作结果。
如果各终端在第一状态下不需要业务操作, 则可略过该步骤。
步骤 204: 通知各终端进行模式切换。 需要说明的是, 本实施例中的模式切换即从终端的某一状态或某一模 式切换到终端的另一状态或模式, 例如, 使终端从参数备份模式切换到固 件升级模式。
步骤 205: 获取第二状态下的所有待升级终端的列表, 并与第二状态下 的所有终端建立数据通道。
步骤 206: 读各终端取的升级标识信息。
步骤 207: 根据读取到升级标识信息, 在预先记录的第一状态下的业务 操作结果的列表中, 查找与该读取到的升级标识对应的业务操作结果。
此处完成了一次状态切换前后的同一设备与其操作结果的匹配, 即实 现了在第一状态下的各个终端的业务操作结果与第二状态下的各终端的匹 配。
步骤 208: 各终端的升级业务操作执行完成, 升级工具通知各终端切换 到初始的第一状态, 整个升级过程结束。
如果各终端固件升级的过程需要多次模式切换, 则可以重复上述模式 切换的步骤, 例如, 如果由于固件升级的需要使各个终端重新切换到第一 状态, 则切换到第一状态后则无需再执行存储业务操作结果的步骤, 即在 终端固件升级的过程中, 各终端处于某一状态的业务操作结果只存储一次。 各模式下的业务操作过程中如果需要用到之前终端所处的各模式的业务操 作结果, 均可通过从终端中读取的升级标识信息进行查找获取, 从而保证 各模式中通过同一标识获取的信息均为对同一设备的业务操作结果, 即完 成了同一设备在多次模式切换时业务操作结果与终端的匹配。
上述步骤 201至步骤 208对终端固件升级过程中根据升级标识存储其 在不升级过程中的不同模式下的业务操作结果以及根据升级标识获取业务 操作结果的过程进行了简要描述, 以下将详细描述批量升级多个终端固件 的过程中, 需执行的具体业务操作内容以及在各模式下根据业务操作结果 完成当前模式下的升级操作的详细流程。
终端在计算机操作系统中呈现的设备类型有多种, 如 U盘、 RNDIS设 备、 MODEM设备和虚拟串口等, 以下以终端在计算机操作系统中呈现的 设备类型为 RNDIS设备为例, 结合图 3来对本发明实施例的在终端固件升 级方法进行详细阐述。
图 3是本发明实施例的批量升级 RNDIS设备固件的流程图, 如图 3所 示, 批量升级 RNDIS终端固件的整个流程包括如下步骤:
步骤 301 : 升级工具获取所有待升级的 RNDIS终端。
步骤 302: 因为每个 RNDIS终端的 IP地址不同, 所以升级工具通过向 指定的 IP地址发送预先约定的 HTTP ( HTTP-Hypertext transfer protocol, 超文本传输协议) 请求可获取各个终端的 IMEI 号。 然后, 升级工具将其 作为终端的升级标识, 通过预先约定的 HTTP指令写入到各个终端的保留 存储区中。
由于 IMEI号本身就是终端的升级标识, 可保证唯一性, 所以该步骤中 可以直接使用 IMEI号作为终端的升级标识。
步骤 303: 用户通过升级工具的固件路径选择功能, 为每个待升级的终 端选择要升级的目标固件的路径。升级工具以各个终端的升级标识(即 IMEI 号) 为索引, 存储用户给各个终端指定的目标固件的路径。
步骤 304: 升级工具通过各终端的 IP地址以预先约定的 HTTP指令的 方式给各需要升级的终端发送模式切换指令, 通知终端切换到参数备份状 态, 该状态下终端可以通过串口与 PC侧的升级工具通信。
步骤 305: 升级工具获取各终端的串口信息, 并从各终端中读取步骤 302中写入的升级标识信息。 然后, 通过各串口以预先约定的诊断(DIAG ) 指令, 即诊断(diagnostic )指令的方式从终端中读取需要备份的信息(NV 项, 即非易失性随机访问存储器 ( NVRAM , Nonvolatile random access memory )、蓝牙地址、介质访问控制( MAC, Medium/MediaAccess Control ) 地址、 网络配置等, 并以各终端的升级标识信息为文件名, 将各终端需要 备份的信息存储到 PC侧的数据备份文件中。
步骤 306: 升级工具通过各 COM端口以预先约定的 DIAG指令的方式 通知各终端切换到固件升级状态。 该状态下升级工具仍通过串口与各终端 进行通信。 但同一终端对应的串口端口号在状态切换前后可能发生变化, 所以同一串口号不一定对应同一终端。
步骤 307: 升级工具再次获取各终端的串口信息, 并读取各终端对应的 升级标识信息。 然后, 升级工具从先前用户指定的目标固件路径列表中, 找到各终端对应的目标固件路径, 并从目标固件路径中获得要下载的固件 文件。 最后, 升级工具通过串口以预先约定的 DIAG指令的方式将固件文 件下发给各终端, 实现固件升级。
步骤 308:升级工具通过串口以预先约定的 DIAG指令的方式通知各终 端切换到数据恢复状态。 该状态下升级工具与终端也可以通过串口通讯。
步骤 309: 升级工具获取各终端的串口信息, 并读取各终端对应的升级 标识信息。 然后, 升级工具从先前以升级标识为索引的数据备份文件集中 找到相应的数据备份文件。 最后, 升级工具解析该数据备份文件, 并通过 串口以预先约定的 DIAG指令的方式将备份的信息恢复到对应的终端中。
步骤 310:升级工具通过各个串口以预先约定的 DIAG指令的方式通知 各终端切换到 RNDIS状态, 即终端正常工作的状态, 升级过程完成。
图 4是本发明实施例的终端固件升级装置的结构框图, 如图 4所示, 该装置包括以下组成部件:
设置模块 41, 配置为在终端设置升级标识;
升级标识为从终端中获取的唯一标识, 或按照预设算法生成的唯一的 标识, 升级标识可以为 IMEI、 MEID或 GUID。 记录模块 42, 配置为对应升级标识, 记录终端在升级过程中处于不同 模式时的升级操作结果;
其中, 升级操作结果中可以包括终端的业务操作结果, 基于此, 记录 模块 42可以配置为, 根据获取到的业务操作结果执行当前模式下的业务操 作。
其中, 升级操作结果中可以包括终端的升级进度信息, 基于此, 记录 模块 42还可以配置为, 根据获取到的升级进度信息, 执行终端的业务操作 或使终端进行模式切换。
其中, 该业务操作结果可以包括: 各终端的目标固件的路径信息和 /或 各终端需备份的信息。
记录模块 42可以配置为, 如果各终端所处的当前模式下需执行业务操 作, 则执行当前模式下的业务操作, 得到各终端在当前模式下的业务操作 结果; 以各终端的升级标识为索引, 将各终端在当前模式下的业务操作结 果存储以及终端的升级进度在业务操作结果列表中; 如果当前模式下无需 执行业务操作, 则向各终端发送模式切换指令, 指示所述终端进行模式切 换。
获取模块 43, 配置为根据升级标识获取升级操作结果, 并根据获取到 的升级操作结果执行终端在当前模式下的升级。 获取模块 43可以配置为, 获取执行模式切换后的所有终端的列表, 与所有终端建立数据通道; 如果 当前模式下的业务操作需获取各终端在模式切换之前的业务操作结果, 则 通过数据通道获取各终端的升级标识; 根据各终端的升级标识在业务操作 结果列表中查找业务操作结果。
本发明实施例还涉及终端固件升级工具, 该升级工具的一部分主要在 PC侧实现终端升级功能即上述终端固件升级装置 40,另一部分位于各个需 要升级的终端侧, 即终端侧的升级工具, 用于与辅助升级工具, 实现终端 的升级。
终端的固件升级过程中具体涉及主控设备、 升级工具、 移动终端、 固 件版本; 主控设备(通常为 PC ) 负责提供升级工具的运行环境及主控设备 与终端交互的数据通道, 并与移动终端进行数据交互。 PC侧的升级工具运 行在主控设备上, 负责与终端建立数据通道, 通知终端进行状态切换, 生 成终端标识信息, 读写终端里的标识信息, 以及执行各种业务动作, 固件 版本可由多个文件组成, 是写入终端后能够控制所述终端正常工作的二进 制数据文件。 图 5是本发明实施例位于移动终端侧的固件升级工具的结构 框图。 如图 5所示, 该装置包括, 标识读写模块 51、 业务执行模块 53, 指 令收发模块 52;指令收发模块 52的功能可以由模块终端有指令收发功能的 各模块分别执行, 负责与 PC侧升级工具建立数据通道, 将读写到的存储在 保留存储区中的标识信息发送至 PC侧, 以及执行业务动作。
本发明实施例还记载一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令配置为执行图 1 所示的终 端固件升级方法。
在本发明所提供的几个实施例中, 应该理解到, 所揭露的设备和方法, 可以通过其它的方式实现。 以上所描述的设备实施例仅仅是示意性的, 例 如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外 的划分方式, 如: 多个单元或组件可以结合, 或可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的各组成部分相互 之间的耦合、 或直接耦合、 或通信连接可以是通过一些接口, 设备或单元 的间接耦合或通信连接, 可以是电性的、 机械的或其它形式的。
上述作为分离部件说明的单元可以是、 或也可以不是物理上分开的, 作为单元显示的部件可以是、 或也可以不是物理单元, 即可以位于一个地 方, 也可以分布到多个网络单元上; 可以根据实际的需要选择其中的部分 或全部单元来实现本实施例方案的目的。
另外, 在本发明各实施例中的各功能单元可以全部集成在一个处理单 元中, 也可以是各单元分别单独作为一个单元, 也可以两个或两个以上单 元集成在一个单元中; 上述集成的单元既可以釆用硬件的形式实现, 也可 以釆用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: 移动存储设备、 随机存取存储器(RAM, Random Access Memory )、 只读存储器(ROM, Read-Only Memory ),磁碟或者光盘 等各种可以存储程序代码的介质。
或者, 本发明上述集成的单元如果以软件功能模块的形式实现并作为 独立的产品销售或使用时, 也可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明实施例的技术方案本质上或者说对相关技术做出 贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一 个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算 机、 服务器、 或者网络设备等)执行本发明各个实施例所述方法的全部或 部分。 而前述的存储介质包括: 移动存储设备、 RAM、 ROM, 磁碟或者光 盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应以所述权利要求的保护范围为准。

Claims

权利要求书
1、 一种终端固件升级方法, 包括:
在终端设置升级标识;
对应所述升级标识, 记录所述终端在升级过程中处于不同模式时的升 级操作结果;
根据所述升级标识获取所述升级操作结果, 并根据获取到的升级操作 结果执行所述终端在当前模式下的升级。
2、 根据权利要求 1所述的方法, 其中, 所述升级操作结果包括终端的 业务操作结果, 所述根据获取到的升级操作结果执行所述终端在当前模式 下的升级包括:
根据获取到的业务操作结果执行当前模式下的业务操作。
3、 根据权利要求 1所述的方法, 其中, 所述升级操作结果包括终端的 升级进度信息, 所述根据获取到的升级操作结果执行所述终端在当前模式 下的升级包括:
根据获取到的升级进度信息, 执行所述终端的业务操作或使所述终端 进行模式切换。
4、 根据权利要求 1所述的方法, 其中,
所述升级标识为从所述终端中获取的唯一标识, 或按照预设算法生成 的唯一的标 i只。
5、 根据权利要求 4所述的方法, 其中,
所述升级标识为国际移动设备识别码 IMEI、 移动设备识别码 MEID或 全球升级标识码 GUID0
6、 根据权利要求 1至 5任一项所述的方法, 其中, 所述根据所述升级 标识获取所述升级操作结果包括:
获取待升级终端的列表, 与所述待升级终端建立数据通道; 通过所述数据通道获取待升级终端的升级标识;
根据所述升级标识在业务操作结果列表中查找业务操作结果或终端的 升级进度信息。
7、 一种终端固件升级装置, 包括:
设置模块, 配置为在终端设置升级标识;
记录模块, 配置为对应所述升级标识, 记录所述终端在升级过程中处 于不同模式时的升级操作结果;
获取模块, 配置为根据所述升级标识获取所述升级操作结果, 并根据 获取到的升级操作结果执行所述终端在当前模式下的升级。
8、 根据权利要求 7所述的装置, 其中, 所述升级操作结果包括终端的 业务操作结果, 所述获取模块还配置为,
根据获取到的业务操作结果执行当前模式下的业务操作。
9、 根据权利要求 7所述的装置, 其中, 所述升级操作结果包括终端的 升级进度信息, 所述获取模块还配置为,
根据获取到的升级进度信息, 执行所述终端的业务操作或使所述终端 进行模式切换。
10、 根据权利要求 7所述的装置, 其中,
所述升级标识为从所述终端中获取的唯一标识, 或按照预设算法生成 的唯一的标 i只。
11、 根据权利要求 10所述的装置, 其中,
所述升级标识为国际移动设备识别码 IMEI、 移动设备识别码 MEID或 全球升级标识码 GUID0
12、 根据权利要求 7所述的装置, 其中, 所述获取模块还配置为, 获取待升级终端的列表, 与所述待升级终端建立数据通道;
通过所述数据通道获取待升级终端的升级标识; 根据所述升级标识在业务操作结果列表中查找业务操作结果或终端的 升级进度信息。
13、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于权利要求 1至 6任一项所述的终端固 件升级方法。
PCT/CN2014/083822 2014-06-18 2014-08-06 终端固件升级方法、装置及计算机存储介质 WO2015131488A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410272363.0A CN105204877B (zh) 2014-06-18 2014-06-18 一种终端固件升级方法及装置
CN201410272363.0 2014-06-18

Publications (1)

Publication Number Publication Date
WO2015131488A1 true WO2015131488A1 (zh) 2015-09-11

Family

ID=54054420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083822 WO2015131488A1 (zh) 2014-06-18 2014-08-06 终端固件升级方法、装置及计算机存储介质

Country Status (2)

Country Link
CN (1) CN105204877B (zh)
WO (1) WO2015131488A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189424A (zh) * 2018-08-21 2019-01-11 杭州嘉楠耘智信息科技有限公司 一种固件升级方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289418A (zh) * 2011-09-05 2011-12-21 深圳芯智汇科技有限公司 嵌入式设备烧写系统及方法
US20120124567A1 (en) * 2009-12-18 2012-05-17 Hewlett-Packard Development Company, L.P. Methods and devices for updating firmware of a component using a firmware update application
CN102830988A (zh) * 2011-06-13 2012-12-19 纬创资通股份有限公司 固件更新的方法及其相关计算机系统
CN103530142A (zh) * 2013-05-08 2014-01-22 Tcl集团股份有限公司 一种基于存储设备的Android系统升级方法和系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123170A (zh) * 2011-01-21 2011-07-13 中兴通讯股份有限公司 固件版本的升级方法及装置
CN102546804B (zh) * 2012-01-13 2014-06-04 深圳市朗赛尔科技有限公司 塔吊gps终端远程升级方法
CN103823723B (zh) * 2014-02-19 2017-08-08 惠州Tcl移动通信有限公司 一种移动终端的触摸屏固件修复方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124567A1 (en) * 2009-12-18 2012-05-17 Hewlett-Packard Development Company, L.P. Methods and devices for updating firmware of a component using a firmware update application
CN102830988A (zh) * 2011-06-13 2012-12-19 纬创资通股份有限公司 固件更新的方法及其相关计算机系统
CN102289418A (zh) * 2011-09-05 2011-12-21 深圳芯智汇科技有限公司 嵌入式设备烧写系统及方法
CN103530142A (zh) * 2013-05-08 2014-01-22 Tcl集团股份有限公司 一种基于存储设备的Android系统升级方法和系统

Also Published As

Publication number Publication date
CN105204877B (zh) 2019-11-15
CN105204877A (zh) 2015-12-30

Similar Documents

Publication Publication Date Title
JP5838527B2 (ja) ファームウェアを更新するための方法、装置、および通信デバイス
CN104199706A (zh) 一种eMMC的固件升级方法及其设备
CN104360883A (zh) 一种配置Raid的方法及系统
US20150106914A1 (en) Remote control system, and method thereof
CN104518910B (zh) 用于配置以太网设备的装置和用于配置以太网设备的方法
CN106612192A (zh) 设备的升级方法、装置和系统
CN105721534A (zh) 因特网小型计算机系统接口启动参数部署系统及其方法
CN104657161A (zh) 移动终端固件更新方法及装置
US8230162B2 (en) Block management method for flash memory, and flash memory controller and flash memory storage device using the same
CN101957765A (zh) 一种实现设备固件更新的方法及系统、设备
CN112083972A (zh) 一种bmc系统配置方法、装置、设备及可读存储介质
WO2015196479A1 (zh) 程序数据的更新方法及设备
CN104158709A (zh) 一种光模块识别的方法及端口扩展设备
CN107169053A (zh) 日志信息导出方法及装置
CN108234174B (zh) 虚拟网络功能的管理方法和装置
US10474472B2 (en) Operating system establishing method and apparatus
CN111104075B (zh) Usb设备模拟装置及方法
WO2015131488A1 (zh) 终端固件升级方法、装置及计算机存储介质
JP2009193358A (ja) 情報処理装置
CN106371942B (zh) 存储器错误处理方法和相关装置和系统
US20150134944A1 (en) Data terminal running mode switching method, device, and data terminal
JP2013513874A (ja) データカードのアップグレーディング方法およびデバイス
CN107168768B (zh) 设备与虚拟机的映射方法和装置
CN110716733A (zh) 一种ont产品软件互升级方法
CN107659621B (zh) 一种raid控制卡配置方法及装置

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

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

Country of ref document: EP

Kind code of ref document: A1