WO2013004175A1 - Software upgrading method and apparatus for electronic devices - Google Patents

Software upgrading method and apparatus for electronic devices Download PDF

Info

Publication number
WO2013004175A1
WO2013004175A1 PCT/CN2012/078110 CN2012078110W WO2013004175A1 WO 2013004175 A1 WO2013004175 A1 WO 2013004175A1 CN 2012078110 W CN2012078110 W CN 2012078110W WO 2013004175 A1 WO2013004175 A1 WO 2013004175A1
Authority
WO
WIPO (PCT)
Prior art keywords
program data
electronic device
port
program
data transmission
Prior art date
Application number
PCT/CN2012/078110
Other languages
French (fr)
Chinese (zh)
Inventor
涂四华
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2013004175A1 publication Critical patent/WO2013004175A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Definitions

  • the invention relates to a software upgrade method and device for an electronic device.
  • the application is submitted to the Chinese Patent Office on July 5, 2011, and the application number is CN 201110186864. 3.
  • the invention is entitled "A software upgrade method and device for an electronic device". Priority of the patent application, the entire contents of which is incorporated herein by reference.
  • TECHNICAL FIELD The present invention relates to a software upgrade method and apparatus for an electronic device, and belongs to the technical field of data transmission.
  • Embodiments of the present invention provide a software upgrade method and apparatus for an electronic device, which enable a user to complete a software upgrade of an electronic device by only one data transmission line, without having to master the operation knowledge of the upgrade program, and need not It is carried out under the condition of having a network, and has the characteristics of fast upgrade speed and easy operation.
  • An embodiment of the present invention provides a software upgrade method for an electronic device, including:
  • the program data marked in software storage stored in the storage space of the electronic device A connected through the port is transferred to the storage space of the electronic device B according to a predetermined control command and a predetermined communication protocol.
  • An embodiment of the present invention provides a software upgrade apparatus for an electronic device, including:
  • a program data transmission module configured to transmit program data marked in software storage stored in the storage space of the electronic device A connected through the port to the storage space of the electronic device B according to a predetermined control command and a predetermined communication protocol.
  • the electronic devices connected through the ports are The program data stored in the storage space is transmitted, so that the user only needs one data transmission line to complete the software upgrade of the electronic device, without having to master the operation knowledge of the upgrade program, and does not need to be carried out under the condition of having a network, and has an upgrade. Fast, easy to operate features.
  • FIG. 1 is a schematic flowchart of a software upgrade method of an electronic device according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a software upgrade apparatus of an electronic device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a software upgrade method for an electronic device, including transmitting, according to a predetermined control command and a predetermined communication protocol, program data stored in a storage space of an electronic device A connected through a port as a software upgrade. Go to the storage space of the electronic device B.
  • the method can be applied to various types of electronic devices such as existing mobile phones, PDAs, MP3/4, digital cameras, tablets, etc., and the principle is to perform program data stored in a storage space between electronic devices connected by ports. Transmission, so that users can complete software upgrades to electronic devices through a data transmission line.
  • the following is a specific description of the mobile phone upgrade process in conjunction with the drawings of the specification. As shown in FIG. 1, the method includes:
  • Step 11 Connect the ports of mobile phone A and mobile phone B through the data transmission line.
  • the mobile phone B is not required to be powered on normally, or the FLASH is specially segmented. That is to say, this design scheme does not need to upgrade like a normal F0TA, requires the mobile phone to be fully booted, and does not upgrade like a T card.
  • the mobile phone needs a B00TL0ADER on the FLASH to support the mobile phone for code upgrade.
  • the phone B can be a completely empty FLASH.
  • Mobile phone A needs to be a mobile phone that can be turned on normally. In the process of losing, the code segment of the mobile phone A is sent to the mobile phone B, and the mobile phone B is overlaid on the FLASH of the mobile phone B.
  • Program data for other mobile phones to be upgraded is stored in the mobile phone A, and the mobile phone A can be turned on normally, and the upgrade mode is supported.
  • the current mobile phone mode can be selected as a software update mode through a specific menu option, because in this mode, the mobile phone A can not transfer all the content on the FLASH to the mobile phone B, the mobile phone A can no longer Run the application stored on the FLASH on the mobile phone A.
  • the mobile phone A will keep all applications closed (it can tell the network side that the mobile phone A has entered the shutdown state) and no longer input any corresponding buttons. Until the program data transmission is completed or failed, the mobile phone A can re-enter the normal usage mode by restarting or unplugging the battery.
  • the mobile phone B is used as the mobile phone to be upgraded, and may be a mobile phone that has previously upgraded the program data, or a bare metal that has not run any program data before.
  • a specific key operation of the mobile phone B (such as long pressing the power on key) enters the program data transmission process.
  • press the power button on the mobile phone B to trigger the hardware to boot, and the mobile phone B to power on the hardware.
  • the firmware of the mobile phone B is activated in the downloading and upgrading program of the CPU for the first time, when it is detected that the communication protocol is met. After the string is sent, it will enter the program download mode. Otherwise, the phone B will boot normally.
  • Step 12 The program data marked in the software upgrade stored in the storage space of the electronic device A connected through the port is transmitted to the storage space of the electronic device B according to the predetermined control command and the predetermined communication protocol.
  • the mobile phone A and the mobile phone B communicate with each other through a data transmission line and based on a serial communication protocol.
  • the specific upgrade method, through the serial port, or USB depends on the firmware upgrade of the mobile phone B in the CPU download upgrade program, if the download upgrade program, support serial port download, use the serial port to download, if you support USB download, you can use the USB download .
  • phone A stops responding to normal incoming calls, text messages, and other network operations.
  • Phone B stop responding to any buttons, charging, phone, SMS and other peripherals and network operations.
  • the mobile phone B upgrades the mobile phone B by fixing the downloading and upgrading program in the CPU.
  • the transmission process is equivalent to the mobile phone A emulating the storage space into the PC end, and the mobile phone B is equivalent to downloading the corresponding program data from the PC end through the download tool.
  • the storage medium of the storage space of the mobile phone A is divided into two parts: a program section and a user section, and the mobile phone A transfers the program data of the program section of the storage space to the storage space of the mobile phone B.
  • the software upgrade of the mobile phone B is completed, the battery of the mobile phone B is unplugged and then reinserted, and the power button is pressed for a long time.
  • the software of mobile phone B has been upgraded to the same version as mobile phone A.
  • the mobile phone A stops the program data transmission, and at this time, the battery of the mobile phone A can be unplugged and reinserted, and then turned on or eliminated. After that, the program data transmission is again performed on the mobile phone B.
  • the electronic device A and the electronic device B may be the same type of electronic device.
  • the device can recognize each other after connecting through the port, and the electronic device A transmits the upgrade program to the electronic device B.
  • the electronic device B can be installed and upgraded.
  • the predetermined control command is used to enable the electronic device A and the electronic device B to enter the upgrade mode, wherein the entering the upgrade mode may be that the user pops up the predetermined after the electronic device A and the electronic device B establish a connection through the port.
  • the control command enters the upgrade mode after being confirmed by the user, and can also automatically execute the predetermined control command to enter the upgrade mode.
  • the electronic device A sends the electronic device B the program data stored in the storage space and marked as software upgrade.
  • the device is transferred to the storage space of the electronic device B.
  • the electronic device B can directly run the upgrade, and may also prompt the user to perform data backup and complete the upgrade.
  • the existing smart phone program generally has the function of recording user information
  • the user's mobile phone is directly upgraded for other mobile phones, the user's information may also be transmitted to other mobile phones at the same time, resulting in the user.
  • the privacy of the leak. Therefore, the user's authority can be verified by prompting the user to input a password. If the entered password is the same as the pre-saved password, the user is allowed to perform software upgrade for other mobile phones, and triggers the program data transmission operation of the program data transmission module, if input The password is different from the pre-saved password, and the software upgrade request is rejected to ensure that the user's privacy is not obtained by other mobile phones.
  • the program data stored in the storage space between the electronic devices connected by the port is transmitted, so that the user only needs one data transmission line to complete the software upgrade of the electronic device, and no account upgrade is needed.
  • the operation knowledge of the program does not need to be carried out under the condition of having a network, and has the characteristics of fast upgrade speed and easy operation.
  • An embodiment of the present invention further provides a software upgrading apparatus for an electronic device, including a program data transmission module, configured to store in a storage space of the electronic device A connected through the port according to a predetermined control command and a predetermined communication protocol.
  • the program data marked as software upgrade is transferred to the storage space of the electronic device B.
  • the apparatus may further include: an authority determining module 21, configured to prompt the user to input a password, and if the input password is the same as the pre-saved password, determine that the user has the right to use the transmission program data, and The program data transfer operation of the trigger program data transfer module 22.
  • an authority determining module 21 configured to prompt the user to input a password, and if the input password is the same as the pre-saved password, determine that the user has the right to use the transmission program data, and The program data transfer operation of the trigger program data transfer module 22.
  • Both the authority determination module 21 and the program data transmission module 22 can be stored in the storage space of the electronic device as a program running in the electronic device, and can be started according to a specific operation, and the electronic device is turned off or automatically restarted after the execution is completed.
  • the corresponding program includes at least one of a system program or an application, and the corresponding port includes a charging port or a data transmission port.
  • the program data transmission module 22 further includes a program shutdown sub-module for transmitting the program data. Keeps all applications closed and does not respond to the status of any key input operations before or after failure.
  • the program data stored in the storage space between the electronic devices connected by the port is transmitted, so that the user only needs one data transmission line to complete the software upgrade of the electronic device, and no account upgrade is needed.
  • the operation knowledge of the program does not need to be carried out under the condition of having a network, and has the characteristics of fast upgrade speed and easy operation.
  • each module included is only divided according to functional logic, but is not limited to the foregoing division, as long as the corresponding function can be implemented;
  • the specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • An embodiment of the present invention further provides an electronic device, where the electronic device may include the software upgrade device, where the software upgrade device may be a program or code stored in a memory of the electronic device, and executed by a processor of the electronic device.
  • the program transmits the program data stored in the electronic device memory and marked as software upgrade to the storage space of the upgraded electronic device, thereby implementing software upgrade of the upgraded electronic device.
  • the electronic device also includes a port, wherein the port can be a charging port and a data transmission port for connecting to the upgraded electronic device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed are a software upgrading method and apparatus for electronic devices, wherein the method comprises: according to a predetermined control command and a predetermined communication protocol, transmitting the program data which are marked as software upgrading data and are stored in the storage space of an electronic device A to the storage space of an electronic device B, wherein the electronic device A is connected with the electronic device B via a port. By transmitting the program data stored in the storage space between the electronic devices which are connected via the port, the present invention enables a user to implement software upgrading for electronic devices using only one data transmission line, with neither operation knowledge of upgrading program, nor use of network, thereby having the features of rapid upgrading speed and easy operation.

Description

一种电子设备的软件升级方法及装置 本申请要求于 2011年 07月 05日提交中国专利局、 申请号为 CN 201110186864. 3、 发明名称为 "一种电子设备的软件升级方法及装置"的中国专利申请的优先权, 其全部 内容通过引用结合在本申请中。 技术领域 本发明涉及一种电子设备的软件升级方法及装置, 属于数据传输技术领域。  The invention relates to a software upgrade method and device for an electronic device. The application is submitted to the Chinese Patent Office on July 5, 2011, and the application number is CN 201110186864. 3. The invention is entitled "A software upgrade method and device for an electronic device". Priority of the patent application, the entire contents of which is incorporated herein by reference. TECHNICAL FIELD The present invention relates to a software upgrade method and apparatus for an electronic device, and belongs to the technical field of data transmission.
背景技术 在现有的电子设备中, 如果用户需要对软件进行更新, 一般需要通过在 PC侧升级 程序数据、 通过网络侧下载升级程序数据或者通过 FOTA (Firmware Over-the-Air, 移动 终端空中下载软件升级)的方式进行软件的更新。 但是如果采用通过 PC侧升级程序数据 的方法, 则需要相应的升级软件及相应的升级程序操作知识, 一般的用户不具备相应的 技能; 通过网络侧或者 F0TA下载升级程序数据的方法, 需要用户在具有网络的条件下进 行, 并且由于下载速度的限制导致耗费的时间也比较长。 BACKGROUND In an existing electronic device, if a user needs to update software, it is generally required to upgrade program data on the PC side, download upgrade program data through the network side, or pass FOTA (Firmware Over-the-Air, mobile terminal over-the-air download). Software upgrade) to update the software. However, if the method of upgrading the program data through the PC side is adopted, the corresponding upgrade software and the corresponding upgrade program operation knowledge are required, and the general user does not have the corresponding skill; the method of downloading the upgrade program data through the network side or F0TA requires the user to It is carried out under the conditions of a network, and it takes a long time due to the limitation of the download speed.
发明内容 本发明的实施例提供了一种电子设备的软件升级方法及装置, 能够使用户只需要一 根数据传输线即可完成对电子设备的软件升级, 无需掌握升级程序的操作知识, 也不需 要在具有网络的条件下进行, 具有升级速度快, 容易操作的特点。 SUMMARY OF THE INVENTION Embodiments of the present invention provide a software upgrade method and apparatus for an electronic device, which enable a user to complete a software upgrade of an electronic device by only one data transmission line, without having to master the operation knowledge of the upgrade program, and need not It is carried out under the condition of having a network, and has the characteristics of fast upgrade speed and easy operation.
本发明的实施例提供了一种电子设备的软件升级方法, 包括:  An embodiment of the present invention provides a software upgrade method for an electronic device, including:
根据预定的控制命令及预定的通讯协议, 将通过端口连接的电子设备 A的存储空间 中存储的标记为软件升级的程序数据传输到电子设备 B的存储空间中。  The program data marked in software storage stored in the storage space of the electronic device A connected through the port is transferred to the storage space of the electronic device B according to a predetermined control command and a predetermined communication protocol.
本发明的实施例提供了一种电子设备的软件升级装置, 包括:  An embodiment of the present invention provides a software upgrade apparatus for an electronic device, including:
程序数据传输模块, 用于根据预定的控制命令及预定的通讯协议, 将通过端口连接 的电子设备 A的存储空间中存储的标记为软件升级的程序数据传输到电子设备 B的存储 空间中。  And a program data transmission module, configured to transmit program data marked in software storage stored in the storage space of the electronic device A connected through the port to the storage space of the electronic device B according to a predetermined control command and a predetermined communication protocol.
由上述本发明的实施例提供的技术方案可以看出,通过端口连接的电子设备之间的 存储空间中存储的程序数据进行传输, 能够使用户只需要一根数据传输线即可完成对电 子设备的软件升级,无需掌握升级程序的操作知识,也不需要在具有网络的条件下进行, 具有升级速度快, 容易操作的特点。 It can be seen from the technical solutions provided by the embodiments of the present invention that the electronic devices connected through the ports are The program data stored in the storage space is transmitted, so that the user only needs one data transmission line to complete the software upgrade of the electronic device, without having to master the operation knowledge of the upgrade program, and does not need to be carried out under the condition of having a network, and has an upgrade. Fast, easy to operate features.
附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于 本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得 其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some implementations of the present invention. For example, other drawings may be obtained from those skilled in the art without any inventive labor.
图 1为本发明的实施例提供的电子设备的软件升级方法的流程示意图;  1 is a schematic flowchart of a software upgrade method of an electronic device according to an embodiment of the present invention;
图 2为本发明的实施例提供的电子设备的软件升级装置的结构示意图。  FIG. 2 is a schematic structural diagram of a software upgrade apparatus of an electronic device according to an embodiment of the present invention.
具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整 地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基 于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有 其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的实施例提供了一种电子设备的软件升级方法,包括根据预定的控制命令及 预定的通讯协议, 将通过端口连接的电子设备 A的存储空间中存储的标记为软件升级的 程序数据传输到电子设备 B的存储空间中。 该方法可应用在现有的手机、 PDA、 MP3/4、 数码相机、 平板电脑等各种类型的电子设备中, 其原理是通过端口连接的电子设备之间 的存储空间中存储的程序数据进行传输, 从而使用户能够通过一根数据传输线即可完成 对电子设备的软件升级。 下面以手机的升级过程结合说明书附图对本实施例作具体说 明, 如图 1所示, 该方法包括:  Embodiments of the present invention provide a software upgrade method for an electronic device, including transmitting, according to a predetermined control command and a predetermined communication protocol, program data stored in a storage space of an electronic device A connected through a port as a software upgrade. Go to the storage space of the electronic device B. The method can be applied to various types of electronic devices such as existing mobile phones, PDAs, MP3/4, digital cameras, tablets, etc., and the principle is to perform program data stored in a storage space between electronic devices connected by ports. Transmission, so that users can complete software upgrades to electronic devices through a data transmission line. The following is a specific description of the mobile phone upgrade process in conjunction with the drawings of the specification. As shown in FIG. 1, the method includes:
步骤 11、 将手机 A与手机 B的端口通过数据传输线连接。  Step 11. Connect the ports of mobile phone A and mobile phone B through the data transmission line.
具体的, 在本实施例中, 不需要手机 B能够正常开机, 或者对 FLASH进行特别分段。 也就是说此设计方案, 不需要像正常的 F0TA升级, 需要手机能够完全开机, 也不像 T卡 升级, 需要手机在 FLASH上有一个 B00TL0ADER来支持手机进行代码升级。 也就是说, 手 机 B里面可以是一个完全空的 FLASH。 手机 A需要是一个完全能够正常开机的手机, 在传 输过程中, 是把手机 A的代码段发给手机 B, 覆盖到手机 B的 FLASH上。 在手机 A中存储有 可供其它手机升级的程序数据, 并且手机 A可以正常开机, 并且支持这种升级模式。 在 手机 A上可以通过一个特定的菜单选项, 选择当前的手机模式为软件更新模式, 由于在 这种模式下, 手机 A为了能够把 FLASH上的所有内容传输到手机 B上, 手机 A是不能再运行 手机 A存放在 FLASH上的应用程序,手机 A将保持关闭所有应用程序 (可以告知网络侧手机 A已进入关机状态)并且不再相应任何按键的输入操作。 直到程序数据传输完成或失败 后, 手机 A可以通过重启或拔下电池的方式重新进入常规的使用模式。 手机 B作为待升级 程序数据的手机, 可以是之前升级过程序数据的手机, 也可以是之前没有运行过任何程 序数据的裸机。 将手机 A和手机 B的充电端口或者数据传输端口通过数据传输线连接后, 再将手机 B关机后,通过手机 B的一个特定按键操作 (如长按开机键)进入程序数据传输过 程, 在这种情况下, 对手机 B按下开机键, 触发硬件开机, 手机 B进行硬件上电, 这个时 候手机 B的固化在 CPU的下载升级程序会第一次时间运行起来, 当检测到有符合通讯协议 的字符串发送过来后, 会进入到程序下载模式, 否则的话, 手机 B会正常开机的。 Specifically, in this embodiment, the mobile phone B is not required to be powered on normally, or the FLASH is specially segmented. That is to say, this design scheme does not need to upgrade like a normal F0TA, requires the mobile phone to be fully booted, and does not upgrade like a T card. The mobile phone needs a B00TL0ADER on the FLASH to support the mobile phone for code upgrade. In other words, the phone B can be a completely empty FLASH. Mobile phone A needs to be a mobile phone that can be turned on normally. In the process of losing, the code segment of the mobile phone A is sent to the mobile phone B, and the mobile phone B is overlaid on the FLASH of the mobile phone B. Program data for other mobile phones to be upgraded is stored in the mobile phone A, and the mobile phone A can be turned on normally, and the upgrade mode is supported. On the mobile phone A, the current mobile phone mode can be selected as a software update mode through a specific menu option, because in this mode, the mobile phone A can not transfer all the content on the FLASH to the mobile phone B, the mobile phone A can no longer Run the application stored on the FLASH on the mobile phone A. The mobile phone A will keep all applications closed (it can tell the network side that the mobile phone A has entered the shutdown state) and no longer input any corresponding buttons. Until the program data transmission is completed or failed, the mobile phone A can re-enter the normal usage mode by restarting or unplugging the battery. The mobile phone B is used as the mobile phone to be upgraded, and may be a mobile phone that has previously upgraded the program data, or a bare metal that has not run any program data before. After the charging port or the data transmission port of the mobile phone A and the mobile phone B are connected through the data transmission line, after the mobile phone B is turned off, a specific key operation of the mobile phone B (such as long pressing the power on key) enters the program data transmission process. In the case, press the power button on the mobile phone B to trigger the hardware to boot, and the mobile phone B to power on the hardware. At this time, the firmware of the mobile phone B is activated in the downloading and upgrading program of the CPU for the first time, when it is detected that the communication protocol is met. After the string is sent, it will enter the program download mode. Otherwise, the phone B will boot normally.
步骤 12、 根据预定的控制命令及预定的通讯协议, 将通过端口连接的电子设备 A的 存储空间中存储的标记为软件升级的程序数据传输到电子设备 B的存储空间中。  Step 12: The program data marked in the software upgrade stored in the storage space of the electronic device A connected through the port is transmitted to the storage space of the electronic device B according to the predetermined control command and the predetermined communication protocol.
具体的, 手机 A和手机 B之间通过数据传输线, 并基于串口通讯协议进行通讯。 具体 的升级方式, 通过串口, 还是 USB, 其依赖于手机 B的固化在 CPU的下载升级程序, 如果 该下载升级程序, 支持串口下载, 就使用串口下载, 如果支持 USB下载, 就可以使用 USB 下载。 在升级模式下, 手机 A, 停止响应正常的来电, 短信等网络操作。 手机 B, 停止响 应任何按键, 充电, 电话, 短信等外设以及网络操作。 在传输过程中, 手机 B是通过固 化在 CPU的下载升级程序, 对手机 B进行代码升级的。 传输的过程相当于手机 A将存储空 间模拟成 PC端, 而手机 B相当于通过下载工具从 PC端下载相应的程序数据。 手机 A的存储 空间的存储介质分为两部分: 程序区段和用户区段, 手机 A将存储空间的程序区段的程 序数据都传输到手机 B的存储空间中。当手机 A将存储空间的程序区段的全部程序数据都 传输到手机 B的存储空间中以后, 手机 B的软件升级完成, 将手机 B的电池拔下再重新插 入, 长按开机键开机, 此时手机 B的软件已经升级到了与手机 A相同的版本。 当由于手机 B的存储空间不足或者手机 B的电量不足而导致程序数据传输中断时, 手机 A停止程序数 据传输, 此时可以选择将手机 A的电池拔下再重新插入, 然后开机或者在排除故障后重 新对手机 B进行程序数据传输。  Specifically, the mobile phone A and the mobile phone B communicate with each other through a data transmission line and based on a serial communication protocol. The specific upgrade method, through the serial port, or USB, depends on the firmware upgrade of the mobile phone B in the CPU download upgrade program, if the download upgrade program, support serial port download, use the serial port to download, if you support USB download, you can use the USB download . In upgrade mode, phone A stops responding to normal incoming calls, text messages, and other network operations. Phone B, stop responding to any buttons, charging, phone, SMS and other peripherals and network operations. During the transmission process, the mobile phone B upgrades the mobile phone B by fixing the downloading and upgrading program in the CPU. The transmission process is equivalent to the mobile phone A emulating the storage space into the PC end, and the mobile phone B is equivalent to downloading the corresponding program data from the PC end through the download tool. The storage medium of the storage space of the mobile phone A is divided into two parts: a program section and a user section, and the mobile phone A transfers the program data of the program section of the storage space to the storage space of the mobile phone B. After the mobile phone A transfers all the program data of the program section of the storage space to the storage space of the mobile phone B, the software upgrade of the mobile phone B is completed, the battery of the mobile phone B is unplugged and then reinserted, and the power button is pressed for a long time. The software of mobile phone B has been upgraded to the same version as mobile phone A. When the program data transmission is interrupted due to insufficient storage space of the mobile phone B or insufficient power of the mobile phone B, the mobile phone A stops the program data transmission, and at this time, the battery of the mobile phone A can be unplugged and reinserted, and then turned on or eliminated. After that, the program data transmission is again performed on the mobile phone B.
需要说明的是, 在本发明实施例中, 电子设备 A及电子设备 B可以是相同型号的电子 设备, 两个设备之间通过端口连接后可以互相识别, 电子设备 A传输至电子设备 B的升级 程序, 电子设备 B可以进行安装, 完成升级。 在本发明实施例中, 预定的控制命令用于 使电子设备 A及电子设备 B进入升级模式, 其中, 进入升级模式可以是用户在电子设备 A 与电子设备 B通过端口建立连接后, 弹出预定的控制命令, 经用户确认后进入升级模式, 也可以自动执行预定的控制命令, 进入升级模式, 在升级模式下, 电子设备 A向电子设 备 B发送其存储空间中存储的标记为软件升级的程序数据传输到电子设备 B的存储空间 中, 电子设备 B接收到该软件升级程序数据后可以直接运行完成升级, 也可以弹出相关 提示用户进行数据备份后完成升级。 It should be noted that, in the embodiment of the present invention, the electronic device A and the electronic device B may be the same type of electronic device. The device can recognize each other after connecting through the port, and the electronic device A transmits the upgrade program to the electronic device B. The electronic device B can be installed and upgraded. In the embodiment of the present invention, the predetermined control command is used to enable the electronic device A and the electronic device B to enter the upgrade mode, wherein the entering the upgrade mode may be that the user pops up the predetermined after the electronic device A and the electronic device B establish a connection through the port. The control command enters the upgrade mode after being confirmed by the user, and can also automatically execute the predetermined control command to enter the upgrade mode. In the upgrade mode, the electronic device A sends the electronic device B the program data stored in the storage space and marked as software upgrade. The device is transferred to the storage space of the electronic device B. After receiving the data of the software upgrade program, the electronic device B can directly run the upgrade, and may also prompt the user to perform data backup and complete the upgrade.
可选的, 由于现有的智能手机的程序普遍具有记录用户信息的功能, 如果直接将用 户的手机为其它的手机进行软件升级, 可能同时将该用户的信息也传输到其它手机上, 导致用户的隐私泄露。 因此可以通过提示用户输入密码的方法验证使用者的权限, 如果 输入的密码与预先保存的密码相同, 则允许用户为其它手机进行软件升级, 并触发程序 数据传输模块的程序数据传输操作, 如果输入的密码与预先保存的密码不同, 则拒绝软 件升级请求, 以保证用户的隐私不会被其它手机获得。  Optionally, since the existing smart phone program generally has the function of recording user information, if the user's mobile phone is directly upgraded for other mobile phones, the user's information may also be transmitted to other mobile phones at the same time, resulting in the user. The privacy of the leak. Therefore, the user's authority can be verified by prompting the user to input a password. If the entered password is the same as the pre-saved password, the user is allowed to perform software upgrade for other mobile phones, and triggers the program data transmission operation of the program data transmission module, if input The password is different from the pre-saved password, and the software upgrade request is rejected to ensure that the user's privacy is not obtained by other mobile phones.
采用本实施例的技术方案,通过端口连接的电子设备之间的存储空间中存储的程序 数据进行传输, 能够使用户只需要一根数据传输线即可完成对电子设备的软件升级, 无 需账务升级程序的操作知识, 也不需要在具有网络的条件下进行, 具有升级速度快, 容 易操作的特点。  With the technical solution of the embodiment, the program data stored in the storage space between the electronic devices connected by the port is transmitted, so that the user only needs one data transmission line to complete the software upgrade of the electronic device, and no account upgrade is needed. The operation knowledge of the program does not need to be carried out under the condition of having a network, and has the characteristics of fast upgrade speed and easy operation.
本发明的实施例还提供了一种电子设备的软件升级装置, 包括程序数据传输模块, 用于根据预定的控制命令及预定的通讯协议, 将通过端口连接的电子设备 A的存储空间 中存储的标记为软件升级的程序数据传输到电子设备 B的存储空间中。  An embodiment of the present invention further provides a software upgrading apparatus for an electronic device, including a program data transmission module, configured to store in a storage space of the electronic device A connected through the port according to a predetermined control command and a predetermined communication protocol. The program data marked as software upgrade is transferred to the storage space of the electronic device B.
可选的, 如图 2所示, 该装置还可以包括权限确定模块 21, 用于提示用户输入密码, 若输入的密码与预先保存的密码相同, 则确定用户具有传输程序数据的使用权限, 并触 发程序数据传输模块 22的程序数据传输操作。  Optionally, as shown in FIG. 2, the apparatus may further include: an authority determining module 21, configured to prompt the user to input a password, and if the input password is the same as the pre-saved password, determine that the user has the right to use the transmission program data, and The program data transfer operation of the trigger program data transfer module 22.
权限确定模块 21与程序数据传输模块 22都可以作为在电子设备中运行的程序存储 在电子设备的存储空间中, 并根据特定的操作启动, 执行完毕后关闭或自动重启电子设 备。  Both the authority determination module 21 and the program data transmission module 22 can be stored in the storage space of the electronic device as a program running in the electronic device, and can be started according to a specific operation, and the electronic device is turned off or automatically restarted after the execution is completed.
可选的, 在程序数据传输模块 22中, 相应的程序包括系统程序或应用程序中的至少 一种, 相应的端口包括充电端口或数据传输端口。  Optionally, in the program data transmission module 22, the corresponding program includes at least one of a system program or an application, and the corresponding port includes a charging port or a data transmission port.
可选的, 在程序数据传输模块中 22还包括程序关闭子模块, 用于在程序数据传输完 成或失败之前, 保持关闭所有应用程序且不响应任何按键的输入操作的状态。 Optionally, the program data transmission module 22 further includes a program shutdown sub-module for transmitting the program data. Keeps all applications closed and does not respond to the status of any key input operations before or after failure.
采用本实施例的技术方案,通过端口连接的电子设备之间的存储空间中存储的程序 数据进行传输, 能够使用户只需要一根数据传输线即可完成对电子设备的软件升级, 无 需账务升级程序的操作知识, 也不需要在具有网络的条件下进行, 具有升级速度快, 容 易操作的特点。  With the technical solution of the embodiment, the program data stored in the storage space between the electronic devices connected by the port is transmitted, so that the user only needs one data transmission line to complete the software upgrade of the electronic device, and no account upgrade is needed. The operation knowledge of the program does not need to be carried out under the condition of having a network, and has the characteristics of fast upgrade speed and easy operation.
上述电子设备的软件升级装置中包含的各模块的处理功能的具体实施方式在之前 的方法实施方式中已经描述, 在此不再重复描述。  The specific implementation of the processing functions of the modules included in the software upgrading apparatus of the above electronic device has been described in the previous method embodiments, and the description thereof will not be repeated here.
需要注意的是, 在上述装置及系统实施例中, 所包括的各个模块只是按照功能逻辑 进行划分的, 但并不局限于上述的划分, 只要能够实现相应的功能即可; 另外, 各功能 模块的具体名称也只是为了便于相互区分, 并不用于限制本发明的保护范围。  It should be noted that, in the foregoing apparatus and system embodiment, each module included is only divided according to functional logic, but is not limited to the foregoing division, as long as the corresponding function can be implemented; The specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
本发明的实施例还提供了一种电子设备, 所述电子设备可以包括上述软件升级装 置, 上述软件升级装置可以是一段程序或代码存储于电子设备的存储器中, 并通过电 子设备的处理器进行运行,将电子设备存储器中存储的标记为软件升级的程序数据传输 到被升级电子设备的存储空间中, 实现被升级电子设备的软件升级。 所述电子设备还包 括端口,其中,端口可以是充电端口及数据传输端口,用于与被升级电子设备进行连接。  An embodiment of the present invention further provides an electronic device, where the electronic device may include the software upgrade device, where the software upgrade device may be a program or code stored in a memory of the electronic device, and executed by a processor of the electronic device. The program transmits the program data stored in the electronic device memory and marked as software upgrade to the storage space of the upgraded electronic device, thereby implementing software upgrade of the upgraded electronic device. The electronic device also includes a port, wherein the port can be a charging port and a data transmission port for connecting to the upgraded electronic device.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替 换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保 护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种电子设备的软件升级方法, 其特征在于, 包括- 根据预定的控制命令及预定的通讯协议,将通过端口连接的电子设备 A的存储空间 中存储的标记为软件升级的程序数据传输到电子设备 B的存储空间中。 A software upgrade method for an electronic device, comprising: - transmitting, according to a predetermined control command and a predetermined communication protocol, program data stored in a storage space of the electronic device A connected through the port as a software upgrade Go to the storage space of the electronic device B.
2、 根据权利要求 1所述的方法, 其特征在于, 所述程序数据包括系统程序或应用 程序中的至少一种。  2. The method of claim 1, wherein the program data comprises at least one of a system program or an application.
3、 根据权利要求 1所述的方法, 其特征在于, 所述端口包括充电端口或数据传输 端口。  3. The method of claim 1, wherein the port comprises a charging port or a data transmission port.
4、 根据权利要求 1所述的方法, 其特征在于, 电子设备 A在所述程序数据传输完 成或失败之前, 保持关闭所有应用程序且不响应任何按键的输入操作的状态。  4. The method of claim 1, wherein the electronic device A maintains a state in which all applications are closed and does not respond to input operations of any of the keys before the program data transfer is completed or failed.
5、 根据权利要求 1至 4任意一项所述的方法, 其特征在于, 在程序数据传输之前 还包括:  The method according to any one of claims 1 to 4, characterized in that before the transmission of the program data, the method further comprises:
提示用户输入密码, 若输入的密码与预先保存的密码相同, 则确定用户具有传输程 序数据的使用权限, 并触发程序数据传输模块的程序数据传输操作。  The user is prompted to enter a password. If the entered password is the same as the pre-stored password, it is determined that the user has the usage right of the transmission program data, and triggers the program data transmission operation of the program data transmission module.
6、 一种电子设备的软件升级装置, 其特征在于, 包括- 程序数据传输模块, 用于根据预定的控制命令及预定的通讯协议, 将通过端口连接 的电子设备 A的存储空间中存储的标记为软件升级的程序数据传输到电子设备 B的存储 空间中。  6. A software upgrade apparatus for an electronic device, comprising: a program data transmission module, configured to store a mark stored in a storage space of an electronic device A connected through a port according to a predetermined control command and a predetermined communication protocol The program data for the software upgrade is transferred to the storage space of the electronic device B.
7、 根据权利要求 6所述的装置, 其特征在于, 在程序数据传输模块中, 所述程序 数据包括系统程序或应用程序中的至少一种。  7. The apparatus according to claim 6, wherein in the program data transmission module, the program data comprises at least one of a system program or an application.
8、 根据权利要求 6所述的装置, 其特征在于, 在程序数据传输模块中, 所述端口 包括充电端口或数据传输端口。  8. The apparatus according to claim 6, wherein in the program data transmission module, the port comprises a charging port or a data transmission port.
9、 根据权利要求 6所述的电子气压计, 其特征在于, 在程序数据传输模块中还包 括:  The electronic barometer according to claim 6, wherein the program data transmission module further comprises:
程序关闭子模块, 用于在所述程序数据传输完成或失败之前, 保持关闭所有应用程 序且不响应任何按键的输入操作的状态。  The program closes the sub-module for maintaining the state of closing all applications and not responding to input operations of any of the keys before the program data transfer is completed or failed.
10、 根据权利要求 6至 9任意一项所述的装置, 其特征在于, 该装置还包括: 权限确定模块, 用于提示用户输入密码, 若输入的密码与预先保存的密码相同, 则 确定用户具有传输程序数据的使用权限, 并触发程序数据传输模块的程序数据传输操 作。 The device according to any one of claims 6 to 9, characterized in that the device further comprises: a permission determining module, configured to prompt the user to input a password, and if the input password is the same as the pre-saved password, the user is determined It has the use permission to transfer program data and triggers the program data transfer operation of the program data transfer module.
11、 一种电子设备, 包括端口、 存储器及如权利要求 6-10任一项权利要求所述的 软件升级装置, 所述端口用于与被升级电子设备建立连接, 所述存储器用于存储的标记 为软件升级的程序数据,所述标记为软件升级的程序数据通过所述端口由所述软件升级 装置传输至所述被升级电子设备。 An electronic device, comprising: a port, a memory, and a software upgrading device according to any one of claims 6 to 10, wherein the port is used to establish a connection with the upgraded electronic device, and the memory is used for storage. Program data marked as software upgrades, the program data marked as software upgrades being transmitted by the software upgrade device to the upgraded electronic device through the port.
PCT/CN2012/078110 2011-07-05 2012-07-03 Software upgrading method and apparatus for electronic devices WO2013004175A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110186864.3 2011-07-05
CN2011101868643A CN102231758A (en) 2011-07-05 2011-07-05 Software upgrading method and device of electronic equipment

Publications (1)

Publication Number Publication Date
WO2013004175A1 true WO2013004175A1 (en) 2013-01-10

Family

ID=44844290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078110 WO2013004175A1 (en) 2011-07-05 2012-07-03 Software upgrading method and apparatus for electronic devices

Country Status (2)

Country Link
CN (1) CN102231758A (en)
WO (1) WO2013004175A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231758A (en) * 2011-07-05 2011-11-02 华为终端有限公司 Software upgrading method and device of electronic equipment
CN103517448B (en) * 2012-07-16 2016-12-21 Tcl集团股份有限公司 A kind of method for upgrading software based on WiFi Direct and system
CN104657161A (en) * 2013-11-21 2015-05-27 中兴通讯股份有限公司 Method and device for updating firmware of mobile terminal
CN105208200A (en) * 2015-08-25 2015-12-30 维沃移动通信有限公司 Mobile terminal system upgrading method and mobile terminal thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135976A (en) * 2006-08-30 2008-03-05 扬智科技股份有限公司 Software update method and system
CN101303684A (en) * 2007-05-08 2008-11-12 中兴通讯股份有限公司 Method for upgrading software edition of a plurality of mobile terminal
CN101325513A (en) * 2007-11-26 2008-12-17 华为技术有限公司 Method, equipment and system for upgrading software
CN102231758A (en) * 2011-07-05 2011-11-02 华为终端有限公司 Software upgrading method and device of electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6401239B1 (en) * 1999-03-22 2002-06-04 B.I.S. Advanced Software Systems Ltd. System and method for quick downloading of electronic files
CN101196822B (en) * 2007-07-02 2012-01-04 深圳创维-Rgb电子有限公司 Code upgrading device, method and system
CN101500330A (en) * 2008-02-02 2009-08-05 德信智能手机技术(北京)有限公司 Tool for fast and safely updating operation system of smart phone
CN101753787A (en) * 2008-12-22 2010-06-23 康佳集团股份有限公司 Method for upgrading software of set top box with assistance of another set top box

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135976A (en) * 2006-08-30 2008-03-05 扬智科技股份有限公司 Software update method and system
CN101303684A (en) * 2007-05-08 2008-11-12 中兴通讯股份有限公司 Method for upgrading software edition of a plurality of mobile terminal
CN101325513A (en) * 2007-11-26 2008-12-17 华为技术有限公司 Method, equipment and system for upgrading software
CN102231758A (en) * 2011-07-05 2011-11-02 华为终端有限公司 Software upgrading method and device of electronic equipment

Also Published As

Publication number Publication date
CN102231758A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
CN102232304B (en) Method, system and terminal for system update between mobile communication terminals
CN101452435B (en) USB terminal mode switching method and terminal
CN102830984B (en) Method, chip and the communication terminal that firmware updates
WO2017071207A1 (en) Application installation method, corresponding apparatus, and application installation system
JP5873571B2 (en) Method and compute node for processing application data
CN106020875B (en) Firmware update management method and device of embedded terminal
WO2019037724A1 (en) Method for upgrading application of mobile terminal, storage device, and mobile terminal
WO2019062635A1 (en) Update method and device
CN101578609A (en) Secure booting a computing device
KR20130119377A (en) Apparatus and method for determining a wireless device's location after shutdown
EP2825956B1 (en) Method, apparatus and system of recovering an operating system on a portable communication device
CN104572564A (en) Method for realizing communication of Android mobile equipment and USB OTG (On-The-Go) host computer
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN103309712A (en) Mobile phone software upgrade method and system
CN108090345B (en) Linux system external command execution method and device
WO2024078218A1 (en) System booting method and electronic device
WO2013004175A1 (en) Software upgrading method and apparatus for electronic devices
WO2023124328A1 (en) Wireless communication module and function recovery method thereof, electronic device, and storage medium
CN107332589A (en) A kind of device for upgrading firmware based on bluetooth
CN103577204A (en) Software upgrading method and software upgrading system for mobile devices
CN111610995B (en) Device firmware upgrading method and device, electronic device and storage medium
WO2015081678A1 (en) User interface loading method and apparatus and thin terminal
TWI839841B (en) Docking station, method for docking station, and usb storage device
TWI791316B (en) Method and system for implementing inter-process communications

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

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

Country of ref document: EP

Kind code of ref document: A1