WO2012048490A1 - Method and device for supporting software version downloads of multiple mobile terminals by one computer - Google Patents

Method and device for supporting software version downloads of multiple mobile terminals by one computer Download PDF

Info

Publication number
WO2012048490A1
WO2012048490A1 PCT/CN2010/079138 CN2010079138W WO2012048490A1 WO 2012048490 A1 WO2012048490 A1 WO 2012048490A1 CN 2010079138 W CN2010079138 W CN 2010079138W WO 2012048490 A1 WO2012048490 A1 WO 2012048490A1
Authority
WO
WIPO (PCT)
Prior art keywords
cpu
module
frequency
download
downloading
Prior art date
Application number
PCT/CN2010/079138
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 WO2012048490A1 publication Critical patent/WO2012048490A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the invention relates to a version software downloading technology, in particular to a method and a device for supporting a plurality of mobile terminals to download software versions by one computer. Background technique
  • the production process of a smartphone can be divided into two parts, one is the general structural assembly, and the other is the download of the version software; wherein the structure assembly takes a long time, but the download of the version software also takes a lot of time.
  • mobile phones need to be upgraded once in production, from the production to the delivery.
  • a version of the software contains files ranging from 130MB to 160MB. It takes about 5 minutes to download the version software via Universal Serial Bus (USB).
  • USB Universal Serial Bus
  • USB Universal Serial Bus
  • the number of phones supported by a computer depends on two conditions:
  • USB Host has a power supply capacity of only 500 mA
  • the current Qualcomm platform downloads currents of around 100 mA to 120 mA, that is, when 4 to 5 mobile phones are simultaneously downloaded, sudden current consumption. It may exceed 500mA, which causes two serious problems: First, excessive current causes the computer to blue screen or restart; Second, excessive current causes the USB transmission to fail, ie: The software version download is unsuccessful.
  • the main object of the present invention is to provide a method and a device for supporting a plurality of mobile terminals to download a software version, so as to solve the current when a computer simultaneously downloads software versions of multiple mobile terminals. Too large causes the software version to fail to download, which in turn increases productivity.
  • the present invention provides a method for a computer to support a plurality of mobile terminals to download a software version, the method comprising:
  • the frequency parameter of the central processing unit is configured. After the mobile terminal is powered on, it is determined whether the booting reason is downloading and booting, and after determining that the downloading is started, the frequency of the CPU is adjusted according to the configured frequency parameter of the CPU, and then the downloading process is entered. .
  • the frequency parameter of the configuration CPU is:
  • the frequency parameters of the CPU are configured according to the power supply capability of the USB Host of the computer used, the number of USB interfaces, the number of mobile terminals that need to simultaneously download the software version, the frequency range of the CPU of the mobile terminal, and the download speed.
  • the frequency parameter of the CPU includes: The value of the global clock divider register, the value of the output source clock divider register, the value of the phase-locked loop mode register, the value of the phase-locked loop division factor L, the value of the phase-locked loop division factor M, and the phase-locked loop The value of the frequency factor N.
  • the determining whether the booting cause is downloading and booting is:
  • the mobile terminal is equipped with a battery
  • the method further includes:
  • the frequency parameter of the configured CPU is stored in a memory of the mobile terminal; and the frequency of the CPU is adjusted according to the configured frequency parameter of the CPU, which is:
  • the present invention further provides a device for supporting a plurality of mobile terminals to download a software version, the device comprising: a configuration module, a determination module, an adjustment module, and a download module; wherein, the configuration module is configured to configure a frequency parameter of the CPU;
  • the judging module is configured to determine whether the booting reason is a downloading and starting after the mobile terminal is powered on, and determining to trigger the adjusting module after the downloading is started;
  • the adjusting module is configured to: after receiving the triggering information of the determining module, adjust the frequency of the CPU according to the configured frequency parameter of the CPU, and then trigger the downloading module;
  • the download module is configured to enter the download process after receiving the trigger information of the adjustment module.
  • the device further includes a storage module, configured to save the configuration module configuration.
  • the frequency parameter of the CPU is the frequency parameter of the CPU.
  • the device further includes an execution module, configured to execute a ROM program for internal curing of the chip of the mobile terminal, and then trigger the determining module;
  • the judging module is configured to: after receiving the trigger information of the execution module, determine whether the booting reason is downloading and starting, and determining to trigger the adjusting module after the downloading is started.
  • the invention provides a computer that supports a program for downloading a software version of a plurality of mobile terminals. After the mobile terminal is powered on, it is determined whether the booting cause is a downloading start, and after determining that the downloading is started, the CPU frequency is adjusted according to the configured frequency parameter of the CPU, and then Into the download process, in this way, when the mobile terminal downloads the software version, the current consumption can be reduced by reducing the frequency of the CPU, thereby enabling multiple mobile terminals to simultaneously download the software version through one computer, thereby improving the mobile terminal.
  • the number of USB interfaces, the number of mobile terminals that need to download the software version at the same time, the frequency range of the CPU of the mobile terminal, and the download speed, the frequency parameters of the CPU are configured, so that It not only supports multiple mobile terminals to download software versions at the same time, but also does not affect the download speed, and further improves the production efficiency of mobile terminals.
  • FIG. 1 is a schematic flowchart of a method for a computer to support a plurality of mobile terminals to download a software version according to the present invention
  • FIG. 2 is a schematic diagram showing the structure of a device for supporting a plurality of mobile terminals to download a software version according to the present invention. detailed description
  • a method for supporting a plurality of mobile terminals to download a software version by a computer of the present invention, as shown in FIG. 1, includes the following steps:
  • Step 101 Configure a frequency parameter of the CPU, and then perform step 102;
  • the screen of the mobile terminal It does not light up.
  • Various peripheral devices such as touch screen, keyboard, wireless module, etc. are not activated.
  • the frequency parameter of the CPU can be changed, that is, by adjusting the operation of the CPU. Frequency, to achieve the purpose of reducing current consumption;
  • the frequency parameter of the CPU is configured according to the power supply capability of the USB Host of the computer, the number of USB interfaces, the number of mobile terminals that need to simultaneously download the software version, and the downloading speed of the CPU of the mobile terminal;
  • the number of mobile terminals for downloading the software version is less than or equal to the number of USB interfaces;
  • the USB Host of the computer has a power supply capacity of 500 mA, and the number of USB interfaces is 8, in progress.
  • the number of mobile terminals that need to download the software version at the same time is 8 , and 500 mA is evenly distributed to 8 mobile terminals.
  • the current of each mobile terminal is 62.5 mA, and then the frequency parameter of the CPU is configured according to the frequency range of the CPU of the mobile terminal of 62.5 mA and the download speed; wherein, the frequency range of the CPU of the mobile terminal is provided in the chip manual ; the combined download speed, configure the frequency of the CPU
  • the number refers to: According to the frequency parameter of the CPU, after adjusting the frequency of the CPU of the mobile terminal, when downloading the software version of multiple mobile terminals simultaneously by one computer, the download speed of each mobile terminal has little effect, namely: After adjusting the frequency of the CPU of the mobile terminal, it is supported to simultaneously download a software version of a plurality of mobile terminals by using one computer, and has basically no influence on the download speed;
  • the frequency parameters of the CPU include: a value of a global clock frequency division register, a value of an output source clock frequency division register, a value of a phase locked loop mode register, a value of a phase locked loop frequency division factor L, and a phase locked loop frequency division factor M. Value, the value of the phase-locked loop division factor N;
  • the frequency parameter of the configured CPU may be formed into a new configuration file, and the content of the new configuration file is a list of registers and their corresponding values, that is, the following content may be obtained:
  • Phase-locked loop mode register 0x2
  • Phase-locked loop division factor M 0x0;
  • the phase-locked loop frequency division factor phase-locked loop frequency division factor M and the phase-locked loop frequency division factor N are also registers.
  • the mobile terminal first enters the chip-cured read-only memory (ROM) , Read-Only Memory program, because this program is pre-configured before the chip of the mobile terminal is shipped, therefore, no modification can be made, ie: the mobile terminal will run according to the configured frequency parameter of the CPU after booting, if The new configuration file is directly added to the configuration file that has been pre-configured before leaving the factory. Since the ROM cannot recognize the configuration file that has been pre-configured before leaving the factory or the new configuration file, it will appear pre-configured according to the factory.
  • ROM read-only memory
  • the configuration file and the new one that have been pre-configured before the factory can be A free register is added in the middle of the configuration file, and the number of the free register needs to be carefully designed, that is, in the ROM startup phase, the free register is an empty register that does not actually exist, and the number of the free register is taken.
  • OxFFFFFFFF since OxFFFFFFFF is a maximum address value, it is also a reserved value.
  • Step 102 After the mobile terminal is powered on, determine whether the booting reason is downloading and booting, determining that after downloading and starting, adjusting the frequency of the CPU according to the configured frequency parameter of the CPU, and then entering the downloading process;
  • the method may further include: before determining whether the booting cause is downloading and booting, the method further includes:
  • the ROM program reads, from the flash memory (Flash), the frequency parameter of the CPU that has been pre-configured before the chip of the mobile terminal is shipped, and obtains the frequency of the CPU when the chip is used normally according to the frequency parameter of the CPU;
  • the determining whether the booting reason is a downloading booting is specifically:
  • the button used at the time of power-on it is determined whether the booting reason is downloading and booting; or, when the mobile terminal is powered on, determining whether the mobile terminal is equipped with a battery; or
  • buttons when the mobile terminal is in normal use, only the power button is used to turn on the power, and in the production process, when directly entering the download and booting, different button modes can be set, for example: setting the volume up button and the volume down button simultaneously Then press the power button again to directly enter the download and boot;
  • the mobile terminal directly enters the download and start, after connecting with the USB interface of the computer, the power supply capability of the USB interface enables the mobile terminal to directly enter the download and start, and at this time, the mobile terminal is not equipped with the battery, and When the mobile terminal is in normal use, it needs to be powered by the battery. Therefore, whether the mobile terminal is installed or not can be determined whether the mobile terminal is powered on or not.
  • an identifier bit may be set in advance in the memory of the mobile terminal. After the mobile terminal is powered on, it will search for the identifier bit. If it can be found, it means that the download is started, if not found, The description is normal use boot; after the download is completed, delete the flag, so as not to affect the normal use of the mobile terminal;
  • the adjusting the frequency of the CPU according to the frequency parameter of the configured CPU specifically:
  • the operation of writing or writing refers to reading the contents of the register or writing the content in the register; determining whether to read or write the register according to the attribute of the register, and the attributes of the register have been specified in the prior art.
  • the code for adjusting the frequency of the CPU can be placed in the internal buffer (IMEM) to ensure that the CPU of the mobile terminal is double-rate synchronous dynamic random access (DDR SDRAM, Double Data Rate Synchronous Dynamic Random Access).
  • DDR SDRAM Double Data Rate Synchronous Dynamic Random Access
  • Memory Not available, ie: Cannot affect the execution of the code;
  • the application scenario of this embodiment is as follows:
  • the chip used by the mobile terminal is a Qualcomm platform 7x25, or 7x27.
  • the CPU frequency is 400 MHz.
  • the current needs to be adjusted to between 60 and 80 mA, so that one computer simultaneously supports multiple mobile terminals to download the software version, and the download speed has little effect. Therefore, the content of the new configuration file is specifically:
  • Phase-locked loop mode register 0x2
  • Phase-locked loop division factor M 0x0;
  • the new configuration file needs to conform to the definition of Qualcomm, save the new configuration file to the memory of the mobile terminal, and the pre-configured configuration file and the new configuration at the factory. Add an idle register in the middle of the file, and the number of the free register is taken as
  • OxFFFFFFFFFF Qualcomm can not use any register in any chip produced in the past, present or future. When this register is executed, the return value of the configuration result will be "false”, so it will not Affects the frequency of the CPU when booting to the normal interface; After using the frequency parameter of the CPU configured above, the frequency of the CPU can be reduced to
  • CPU frequency clock source I (global division ratio * output source division ratio) (1)
  • the clock source is derived from the phase-locked loop according to this example:
  • the sixth bit of the global divider register determines whether the CPU frequency comes from global src or axi_marm_src, where global_src and axi_marm_src are the two clock sources inside the chip, with different The division ratio is the subclock of the phase-locked loop.
  • the internal module of the chip can select which clock source the working clock comes from through the register, ie: from global src or axi-marm-src, for example,
  • the clock of the AXI is configured to come from axi marm src, and the operating frequency of the CPU can be selected from global src or axi-marm_src through the memory, in this embodiment,
  • the sixth bit of 0x15 is 0, so it comes from axi_marm_src.
  • the 0th to the 1st bits of the global divider register determine the division ratio of axi_marm_src, which is 0x1 in this embodiment. Check the Qualcomm platform manual to see that the division ratio is 2.
  • the ROM program of the internal firmware of the mobile terminal is first executed, and then it is determined whether the booting reason is downloading and booting, and after determining that the downloading is started, the code for adjusting the frequency of the CPU is placed in the IMEM to adjust the frequency of the CPU.
  • the code reads the frequency parameter of the CPU in the new configuration file from the memory, and performs adjustment of the CPU frequency; specifically, reads the frequency parameter of the configured CPU from the memory, and reads the register in the frequency parameter or Write operation;
  • the button used at the time of power-on it is determined whether the booting reason is downloading and booting, specifically, setting the button used for downloading and booting is to simultaneously press the volume up key and the volume down key, and then Press the power button, when it is judged that the button used for power-on is to press the volume up button and the volume down button at the same time, and then press the power button, it means that the mobile terminal is powered on for downloading.
  • the present invention further provides a device for supporting a plurality of mobile terminals to download a software version.
  • the device includes: a configuration module 21, a determination module 22, an adjustment module 23, and a download module. 24; Among them,
  • a configuration module 21 configured to configure a frequency parameter of the CPU
  • the determining module 22 is configured to: after the mobile terminal is powered on, determine whether the booting cause is downloading and booting, and determining to download the booting, triggering the adjusting module 23;
  • the adjusting module 23 is configured to: after receiving the trigger information of the determining module 22, adjust the frequency of the CPU according to the configured frequency parameter of the CPU, and then trigger the downloading module 24;
  • the downloading module 24 is configured to enter the downloading process after receiving the triggering information of the adjusting module 23.
  • the device may further include a storage module 25 for storing the frequency parameter of the CPU configured by the configuration module 21; in actual use, the storage module 25 is specifically a memory of the mobile terminal.
  • the device may further include an execution module, a ROM program for performing internal chip curing of the mobile terminal, and then triggering the determining module 22;
  • the determining module 22 is configured to: after receiving the trigger information of the execution module 22, determine whether the power-on reason is the downloading and starting, and determine that the downloading module 23 is triggered after the downloading is started.
  • the determining module 22 is further configured to perform no operation after determining that the download is not started.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A method for supporting software version downloads of multiple mobile terminals by one computer is provided. The method comprises: configuring the frequency parameter of a Central Processing Unit (CPU); after the mobile terminal starts up, judging whether the reason for the start-up is a download start-up, adjusting the frequency of the CPU based on the configured frequency parameter of the CPU after the download start-up is determined, then entering a download flow. A device for supporting software version downloads of multiple mobile terminals by one computer is provided. With the method and the device, it is possible to realize simultaneous software version downloads of multiple mobile terminals by one computer, so as to improve the production efficiency of the mobile terminals.

Description

一台计算机支持多部移动终端下载软件版本的方法及装置 技术领域  Method and device for supporting multiple mobile terminals to download software version by one computer
本发明涉及版本软件下载技术, 特别是指一种一台计算机支持多部移 动终端下载软件版本的方法及装置。 背景技术  The invention relates to a version software downloading technology, in particular to a method and a device for supporting a plurality of mobile terminals to download software versions by one computer. Background technique
随着手机科技的飞速发展, 人们对手机终端的功能要求越来越高, 尤 其是有着强大多媒体功能的智能手机终端更是得到了大力追捧。 各个手机 厂商为了占领市场, 针对不同人群适时地推出了各种价位的智能手机。 而 且, 高德纳 (Gartner )咨询公司的市场调研分析: 在未来 10年内, 智能手 机市场将会保持一个高速稳定的增长。 因此, 各个手机厂商都致力于智能 手机的研发和生产。 但是, 对手机厂商来说, 现在面临的一个重大问题是 如何提高生产效率, 以满足消费者不断扩大的需求。  With the rapid development of mobile phone technology, people's functional requirements for mobile phone terminals are getting higher and higher, especially smart phone terminals with powerful multimedia functions are highly sought after. In order to occupy the market, various mobile phone manufacturers have launched smart phones of various price points in a timely manner for different groups of people. Moreover, Gartner Consulting's market research analysis: In the next 10 years, the smart phone market will maintain a high-speed and stable growth. Therefore, each mobile phone manufacturer is committed to the development and production of smart phones. However, for mobile phone manufacturers, one of the major issues now is how to improve production efficiency to meet the expanding needs of consumers.
智能手机的生产流程可以分为两部分, 一部分是一般的结构组装, 另 一部分是版本软件的下载; 其中, 结构组装花费的时间较长, 但是版本软 件的下载也需要不少的时间。 一般, 手机从生产出来到发货, 中间会需要 升级一次版本软件, 以现下流行的 Windows Mobile平台和 Android平台为 例, 一个版本软件大约包含总共 130MB至 160MB不等的文件。 通过通用 串行总线 (USB, Universal Serial BUS ) 下载版本软件, 大概需要 5分钟, 但是, 如果一台计算机只对一部手机进行下载, 那么产量是远远不能满足 需求的, 于是, 一台计算机一次对多部手机进行下载版本软件的需求呼之 欲出。  The production process of a smartphone can be divided into two parts, one is the general structural assembly, and the other is the download of the version software; wherein the structure assembly takes a long time, but the download of the version software also takes a lot of time. Generally, mobile phones need to be upgraded once in production, from the production to the delivery. In the current popular Windows Mobile platform and Android platform, a version of the software contains files ranging from 130MB to 160MB. It takes about 5 minutes to download the version software via Universal Serial Bus (USB). However, if a computer downloads only one mobile phone, the output is far from satisfactory, so one computer The need to download software for multiple mobile phones at a time is on the horizon.
一台计算机所支持下载的手机数目取决于以下两个条件:  The number of phones supported by a computer depends on two conditions:
第一, 计算机上的 USB接口数目; 第二, 计算机 USB 主设备(Host ) 的供电能力。 First, the number of USB interfaces on the computer; Second, the power supply capability of the computer USB host device (Host).
其中, 一般, 一台计算机上至少会有 8个 USB接口, 因此, 已经可以 满足第一个条件。但是, 标准的 USB Host的供电能力只有 500mA, 而一般 高通( Qualcomm )平台下载时的电流都在 100mA- 120mA左右, 也就是说, 当有 4到 5部手机同时下载时, 突发的电流消耗可能会超过 500mA, 如此, 会引起两个严重的问题: 第一, 过大的电流导致计算机蓝屏或重启; 第二, 过大的电流使得 USB的传输失败, 即: 软件版本下载不成功。  Among them, in general, there will be at least 8 USB interfaces on one computer, so the first condition can be satisfied. However, the standard USB Host has a power supply capacity of only 500 mA, while the current Qualcomm platform downloads currents of around 100 mA to 120 mA, that is, when 4 to 5 mobile phones are simultaneously downloaded, sudden current consumption. It may exceed 500mA, which causes two serious problems: First, excessive current causes the computer to blue screen or restart; Second, excessive current causes the USB transmission to fail, ie: The software version download is unsuccessful.
综上所述, 以上两个问题都会造成手机生产的停滞, 进而影响手机厂 商的利益。 发明内容  In summary, the above two problems will cause the stagnation of mobile phone production, which will affect the interests of mobile phone manufacturers. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种一台计算机支持多部移动 终端下载软件版本的方法及装置, 以解决现有技术中一台计算机同时进行 多部移动终端下载软件版本时出现电流过大导致软件版本下载失败的问 题, 进而提高生产效率。  In view of the above, the main object of the present invention is to provide a method and a device for supporting a plurality of mobile terminals to download a software version, so as to solve the current when a computer simultaneously downloads software versions of multiple mobile terminals. Too large causes the software version to fail to download, which in turn increases productivity.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种一台计算机支持多部移动终端下载软件版本的方 法, 该方法包括:  The present invention provides a method for a computer to support a plurality of mobile terminals to download a software version, the method comprising:
配置中央处理器 (CPU, Central Processing Unit ) 的频率参数; 移动终端开机后, 判断开机原因是否是下载开机, 确定为下载开机后, 根据配置的 CPU的频率参数调整 CPU的频率, 之后进入下载流程。  The frequency parameter of the central processing unit (CPU) is configured. After the mobile terminal is powered on, it is determined whether the booting reason is downloading and booting, and after determining that the downloading is started, the frequency of the CPU is adjusted according to the configured frequency parameter of the CPU, and then the downloading process is entered. .
上述方案中, 所述配置 CPU的频率参数, 为:  In the above solution, the frequency parameter of the configuration CPU is:
依据所使用的计算机的 USB Host的供电能力、 USB接口的数目、需要 同时进行软件版本下载的移动终端的数目、 移动终端的 CPU的频率范围、 以及下载速度, 配置 CPU的频率参数。  The frequency parameters of the CPU are configured according to the power supply capability of the USB Host of the computer used, the number of USB interfaces, the number of mobile terminals that need to simultaneously download the software version, the frequency range of the CPU of the mobile terminal, and the download speed.
上述方案中, 所述 CPU的频率参数包括: 全局时钟分频寄存器的值、 输出源时钟分频寄存器的值、 锁相环模式 寄存器的值、 锁相环分频因子 L的值、 锁相环分频因子 M的值、 以及锁相 环分频因子 N的值。 In the above solution, the frequency parameter of the CPU includes: The value of the global clock divider register, the value of the output source clock divider register, the value of the phase-locked loop mode register, the value of the phase-locked loop division factor L, the value of the phase-locked loop division factor M, and the phase-locked loop The value of the frequency factor N.
上述方案中, 所述判断开机原因是否是下载开机, 为:  In the above solution, the determining whether the booting cause is downloading and booting is:
通过开机时使用的按键, 或者,  By using the button when booting, or,
移动终端是否装有电池, 或者,  Whether the mobile terminal is equipped with a battery, or
是否能找到设置的标识位, 判断开机原因是否是下载开机。  Whether you can find the set flag, determine whether the boot cause is download boot.
上述方案中, 该方法进一步包括:  In the above solution, the method further includes:
确定不是下载开机时, 不进行任何操作。  Make sure that no action is taken when the download is not powered on.
上述方案中, 所述配置的 CPU的频率参数保存于移动终端的内存中; 所述根据配置的 CPU的频率参数调整 CPU的频率, 为:  In the above solution, the frequency parameter of the configured CPU is stored in a memory of the mobile terminal; and the frequency of the CPU is adjusted according to the configured frequency parameter of the CPU, which is:
从内存中读取所述配置的 CPU 的频率参数, 并依据所述配置的 CPU 的频率参数, 对频率参数对应的寄存器进行读或写的操作。  Reading the frequency parameter of the configured CPU from the memory, and performing a read or write operation on the register corresponding to the frequency parameter according to the configured frequency parameter of the CPU.
本发明还提供了一种一台计算机支持多部移动终端下载软件版本的装 置, 该装置包括: 配置模块、 判断模块、 调整模块、 下载模块; 其中, 配置模块, 用于配置 CPU的频率参数;  The present invention further provides a device for supporting a plurality of mobile terminals to download a software version, the device comprising: a configuration module, a determination module, an adjustment module, and a download module; wherein, the configuration module is configured to configure a frequency parameter of the CPU;
判断模块, 用于移动终端开机后, 判断开机原因是否是下载开机, 确 定为下载开机后, 触发调整模块;  The judging module is configured to determine whether the booting reason is a downloading and starting after the mobile terminal is powered on, and determining to trigger the adjusting module after the downloading is started;
调整模块, 用于在收到判断模块的触发信息后, 根据配置的 CPU的频 率参数调整 CPU的频率, 之后触发下载模块;  The adjusting module is configured to: after receiving the triggering information of the determining module, adjust the frequency of the CPU according to the configured frequency parameter of the CPU, and then trigger the downloading module;
下载模块, 用于在收到调整模块的触发信息后, 进入下载流程。  The download module is configured to enter the download process after receiving the trigger information of the adjustment module.
上述方案中, 该装置进一步包括存储模块, 用于保存配置模块配置的 In the above solution, the device further includes a storage module, configured to save the configuration module configuration.
CPU的频率参数。 The frequency parameter of the CPU.
上述方案中, 该装置进一步包括执行模块, 用于执行移动终端的芯片 内部固化的 ROM程序, 之后触发判断模块; 判断模块, 用于在收到执行模块的触发信息后, 判断开机原因是否是 下载开机, 确定为下载开机后, 触发调整模块。 In the above solution, the device further includes an execution module, configured to execute a ROM program for internal curing of the chip of the mobile terminal, and then trigger the determining module; The judging module is configured to: after receiving the trigger information of the execution module, determine whether the booting reason is downloading and starting, and determining to trigger the adjusting module after the downloading is started.
本发明提供的一台计算机支持多部移动终端下载软件版本的方案, 移 动终端开机后, 判断开机原因是否是下载开机, 确定为下载开机后, 根据 配置的 CPU的频率参数调整 CPU的频率,之后进入下载流程, 如此, 在移 动终端进行下载软件版本时, 能通过降低 CPU的频率的方式实现降低电流 消耗, 进而能通过一台计算机实现多部移动终端同时下载软件版本, 从而 能提高移动终端的生产效率。  The invention provides a computer that supports a program for downloading a software version of a plurality of mobile terminals. After the mobile terminal is powered on, it is determined whether the booting cause is a downloading start, and after determining that the downloading is started, the CPU frequency is adjusted according to the configured frequency parameter of the CPU, and then Into the download process, in this way, when the mobile terminal downloads the software version, the current consumption can be reduced by reducing the frequency of the CPU, thereby enabling multiple mobile terminals to simultaneously download the software version through one computer, thereby improving the mobile terminal. Productivity.
依据所使用的计算机的 USB Host的供电能力、 USB接口的数目、需要 同时进行软件版本下载的移动终端的数目、 移动终端的 CPU的频率范围及 下载速度, 配置 CPU的频率参数, 如此, 能实现不仅支持多部移动终端同 时下载软件版本, 而且基本不影响下载速度, 进一步提高移动终端的生产 效率。 附图说明  According to the power supply capability of the USB Host of the computer used, the number of USB interfaces, the number of mobile terminals that need to download the software version at the same time, the frequency range of the CPU of the mobile terminal, and the download speed, the frequency parameters of the CPU are configured, so that It not only supports multiple mobile terminals to download software versions at the same time, but also does not affect the download speed, and further improves the production efficiency of mobile terminals. DRAWINGS
图 1 为本发明一台计算机支持多部移动终端下载软件版本的方法流程 示意图;  1 is a schematic flowchart of a method for a computer to support a plurality of mobile terminals to download a software version according to the present invention;
图 2为本发明一台计算机支持多部移动终端下载软件版本的装置结构 示意图。 具体实施方式  2 is a schematic diagram showing the structure of a device for supporting a plurality of mobile terminals to download a software version according to the present invention. detailed description
下面结合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明的一台计算机支持多部移动终端下载软件版本的方法, 如图 1 所示, 包括以下步骤:  A method for supporting a plurality of mobile terminals to download a software version by a computer of the present invention, as shown in FIG. 1, includes the following steps:
步骤 101 : 配置 CPU的频率参数, 之后执行步骤 102;  Step 101: Configure a frequency parameter of the CPU, and then perform step 102;
这里, 由于移动终端在生产过程中下载软件版本时, 移动终端的屏幕 并不点亮, 各种外围设备例如触摸屏、 键盘、 无线模块等, 都没有启动, 此时, 电流大部分消耗在 CPU上, 因此, 可以通过改变 CPU的频率参数, 即: 通过调整 CPU的运行频率, 达到降低电流消耗的目的; Here, since the mobile terminal downloads the software version during the production process, the screen of the mobile terminal It does not light up. Various peripheral devices such as touch screen, keyboard, wireless module, etc. are not activated. At this time, most of the current is consumed on the CPU. Therefore, the frequency parameter of the CPU can be changed, that is, by adjusting the operation of the CPU. Frequency, to achieve the purpose of reducing current consumption;
依据所使用的计算机的 USB Host的供电能力、 USB接口的数目、需要 同时进行软件版本下载的移动终端的数目、 移动终端的 CPU的频率范围及 下载速度, 配置 CPU的频率参数; 其中, 需要同时进行软件版本下载的移 动终端的数目小于等于 USB接口的数目;对于配置 CPU的频率参数,举个 例子来说, 一般, 计算机的 USB Host的供电能力为 500mA, USB接口的 数目为 8, 在进行移动终端生产时, 为了加快移动终端的生产速度, 需要将 8个 USB接口同时使用, 此时, 需要同时进行软件版本下载的移动终端的 数目为 8 , 将 500mA平均分配到 8个移动终端上, 则每个移动终端的电流 为 62.5mA, 之后根据 62.5mA、 移动终端的 CPU的频率范围, 并结合下载 速度, 配置 CPU的频率参数; 其中, 在芯片手册上提供有移动终端的 CPU 的频率范围; 所述结合下载速度, 配置 CPU 的频率参数是指: 根据 CPU 的频率参数, 调整移动终端的 CPU的频率后, 在用一台计算机同时进行多 部移动终端下载软件版本时, 每部移动终端的下载速度的影响不大, 即: 在调整移动终端的 CPU的频率后, 既支持用一台计算机同时进行多部移动 终端下载软件版本, 而且对下载速度基本没有影响;  Configuring the frequency parameter of the CPU according to the power supply capability of the USB Host of the computer, the number of USB interfaces, the number of mobile terminals that need to simultaneously download the software version, and the downloading speed of the CPU of the mobile terminal; The number of mobile terminals for downloading the software version is less than or equal to the number of USB interfaces; for configuring the frequency parameters of the CPU, for example, generally, the USB Host of the computer has a power supply capacity of 500 mA, and the number of USB interfaces is 8, in progress. When the mobile terminal is produced, in order to speed up the production speed of the mobile terminal, eight USB interfaces need to be used at the same time. At this time, the number of mobile terminals that need to download the software version at the same time is 8 , and 500 mA is evenly distributed to 8 mobile terminals. Then, the current of each mobile terminal is 62.5 mA, and then the frequency parameter of the CPU is configured according to the frequency range of the CPU of the mobile terminal of 62.5 mA and the download speed; wherein, the frequency range of the CPU of the mobile terminal is provided in the chip manual ; the combined download speed, configure the frequency of the CPU The number refers to: According to the frequency parameter of the CPU, after adjusting the frequency of the CPU of the mobile terminal, when downloading the software version of multiple mobile terminals simultaneously by one computer, the download speed of each mobile terminal has little effect, namely: After adjusting the frequency of the CPU of the mobile terminal, it is supported to simultaneously download a software version of a plurality of mobile terminals by using one computer, and has basically no influence on the download speed;
所述 CPU的频率参数包括: 全局时钟分频寄存器的值、 输出源时钟分 频寄存器的值、 锁相环模式寄存器的值、 锁相环分频因子 L的值、 锁相环 分频因子 M的值、 锁相环分频因子 N的值;  The frequency parameters of the CPU include: a value of a global clock frequency division register, a value of an output source clock frequency division register, a value of a phase locked loop mode register, a value of a phase locked loop frequency division factor L, and a phase locked loop frequency division factor M. Value, the value of the phase-locked loop division factor N;
在实际应用过程中, 可以将所述配置的 CPU的频率参数形成一个新的 配置文件, 所述新的配置文件的内容是寄存器与其对应值的列表, 即可以 得到如下所示的内容:  In the actual application process, the frequency parameter of the configured CPU may be formed into a new configuration file, and the content of the new configuration file is a list of registers and their corresponding values, that is, the following content may be obtained:
1. 全局时钟分频寄存器, 0x15; 2. 输出源时钟分频寄存器, 0x5200; 1. Global clock divider register, 0x15; 2. Output source clock divider register, 0x5200;
3. 锁相环模式寄存器, 0x2;  3. Phase-locked loop mode register, 0x2;
4. 锁相环分频因子 L, 0x32;  4. Phase-locked loop division factor L, 0x32;
5. 锁相环分频因子 M, 0x0;  5. Phase-locked loop division factor M, 0x0;
6. 锁相环分频因子 N, 0x6;  6. Phase-locked loop division factor N, 0x6;
其中, 锁相环分频因子 锁相环分频因子 M及锁相环分频因子 N也 都是寄存器, 在实际使用过程中, 移动终端开机后会首先进入芯片内部固 化的只读内存 ( ROM, Read-Only Memory )程序, 由于此程序在移动终端 的芯片出厂前已经预先配置好, 因此, 不能做任何修改, 即: 移动终端开 机后会按照配置好的 CPU的频率参数运行, 如果所述新的配置文件直接加 在出厂前已经预先配置好的配置文件后面,由于 ROM不能识别出是出厂前 已经预先配置好的配置文件还是所述新的配置文件, 会出现先按照出厂前 已经预先配置好的配置文件配置成功后, 再按照所述新的配置文件再配置 一次, 此时, CPU的频率为所述新的配置文件的 CPU的频率, CPU的频率 低于正常使用时的频率, 如此, 会影响移动终端的正常使用, 因此, 可以 在所述出厂前已经预先配置好的配置文件和所述新的配置文件中间加入一 个空闲的寄存器,所述空闲的寄存器的编号需要经过仔细设计,即:在 ROM 启动阶段, 所述空闲的寄存器是实际不存在的一个空寄存器, 所述空闲的 寄存器的编号取为 OxFFFFFFFF, 由于 OxFFFFFFFF是一个最大的地址值, 也是一个保留值, 因此, 任意一款芯片都不可能会有寄存器用到这个地址。 所以, 当执行该寄存器时, 配置结果的返回值一定会为 "假", 如此, 所述新 的配置文件就不会被配置,从而不会影响开机到正常界面时的 CPU的频率; 在下载开机时, 调整 CPU的频率的代码中包含区分所述新的配置文件和所 述出厂前已经预先配置好的配置文件的相关信息, 据此, 能读取到所述新 的配置文件。 步骤 102: 移动终端开机后, 判断开机原因是否是下载开机, 确定为下 载开机后,根据配置的 CPU的频率参数调整 CPU的频率,之后进入下载流 程; The phase-locked loop frequency division factor phase-locked loop frequency division factor M and the phase-locked loop frequency division factor N are also registers. In actual use, the mobile terminal first enters the chip-cured read-only memory (ROM) , Read-Only Memory program, because this program is pre-configured before the chip of the mobile terminal is shipped, therefore, no modification can be made, ie: the mobile terminal will run according to the configured frequency parameter of the CPU after booting, if The new configuration file is directly added to the configuration file that has been pre-configured before leaving the factory. Since the ROM cannot recognize the configuration file that has been pre-configured before leaving the factory or the new configuration file, it will appear pre-configured according to the factory. After the configuration of the good configuration file is successful, it is configured again according to the new configuration file. At this time, the frequency of the CPU is the frequency of the CPU of the new configuration file, and the frequency of the CPU is lower than the frequency of normal use. , which will affect the normal use of the mobile terminal. Therefore, the configuration file and the new one that have been pre-configured before the factory can be A free register is added in the middle of the configuration file, and the number of the free register needs to be carefully designed, that is, in the ROM startup phase, the free register is an empty register that does not actually exist, and the number of the free register is taken. For OxFFFFFFFF, since OxFFFFFFFF is a maximum address value, it is also a reserved value. Therefore, it is impossible for any chip to have a register to use this address. Therefore, when the register is executed, the return value of the configuration result will be "false". Thus, the new configuration file will not be configured, so that the frequency of the CPU when booting to the normal interface will not be affected; At the time of power-on, the code for adjusting the frequency of the CPU includes information for distinguishing the new configuration file from the configuration file that has been pre-configured at the factory, whereby the new configuration file can be read. Step 102: After the mobile terminal is powered on, determine whether the booting reason is downloading and booting, determining that after downloading and starting, adjusting the frequency of the CPU according to the configured frequency parameter of the CPU, and then entering the downloading process;
这里, 在判断开机原因是否是下载开机之前, 该方法还可以进一步包 括:  Here, the method may further include: before determining whether the booting cause is downloading and booting, the method further includes:
执行移动终端的芯片内部固化的 ROM程序;  Executing a ROM program that is internally solidified by the chip of the mobile terminal;
具体地, ROM程序从闪存( Flash )中读取在移动终端的芯片出厂前已 经预先配置好的 CPU的频率参数,根据 CPU的频率参数得到正常使用时的 CPU的频率;  Specifically, the ROM program reads, from the flash memory (Flash), the frequency parameter of the CPU that has been pre-configured before the chip of the mobile terminal is shipped, and obtains the frequency of the CPU when the chip is used normally according to the frequency parameter of the CPU;
所述判断开机原因是否是下载开机, 具体为:  The determining whether the booting reason is a downloading booting is specifically:
根据开机时使用的按键, 判断开机原因是否是下载开机; 或者, 移动终端开机时, 判断移动终端是否装有电池; 或者,  According to the button used at the time of power-on, it is determined whether the booting reason is downloading and booting; or, when the mobile terminal is powered on, determining whether the mobile terminal is equipped with a battery; or
移动终端开机后, 是否能找到设置的标识位;  After the mobile terminal is powered on, can it find the set identification bit;
其中, 移动终端在正常使用时, 只会使用电源键开机, 而在生产过程 中, 直接进入下载开机时, 可以设置不同的按键方式, 比如: 设置同时按 下音量上键和音量下键后, 之后再按下电源键, 直接进入下载开机;  Among them, when the mobile terminal is in normal use, only the power button is used to turn on the power, and in the production process, when directly entering the download and booting, different button modes can be set, for example: setting the volume up button and the volume down button simultaneously Then press the power button again to directly enter the download and boot;
在实际应用过程中, 如果移动终端直接进入下载开机时, 可以在与计 算机的 USB接口连接后,通过 USB接口的供电能力使移动终端直接进入下 载开机, 此时, 移动终端未装有电池, 而移动终端在正常使用时, 需要借 助电池才能开机, 因此, 可以通过移动终端开机时是否装有电池, 判断移 动终端是否是进入下载开机;  In the actual application process, if the mobile terminal directly enters the download and start, after connecting with the USB interface of the computer, the power supply capability of the USB interface enables the mobile terminal to directly enter the download and start, and at this time, the mobile terminal is not equipped with the battery, and When the mobile terminal is in normal use, it needs to be powered by the battery. Therefore, whether the mobile terminal is installed or not can be determined whether the mobile terminal is powered on or not.
在移动终端的生产过程中, 还可以在移动终端的内存中事先设置一个 标识位, 移动终端开机后, 会去寻找所述标识位, 如果能找到, 则说明是 下载开机, 如果没有找到, 则说明是正常使用开机; 下载完成之后, 删除 该标识位, 以免影响移动终端的正常使用开机; 所述根据配置的 CPU的频率参数调整 CPU的频率, 具体为: In the production process of the mobile terminal, an identifier bit may be set in advance in the memory of the mobile terminal. After the mobile terminal is powered on, it will search for the identifier bit. If it can be found, it means that the download is started, if not found, The description is normal use boot; after the download is completed, delete the flag, so as not to affect the normal use of the mobile terminal; The adjusting the frequency of the CPU according to the frequency parameter of the configured CPU, specifically:
从内存中读取所述配置的 CPU 的频率参数, 并依据所述配置的 CPU 的频率参数, 对频率参数对应的寄存器进行读或写的操作; 其中, 所述对 频率参数对应的寄存器进行读或写的操作是指读取寄存器的内容、 或在寄 存器中写入内容; 根据寄存器的属性确定是对寄存器进行读操作还是写操 作, 现有技术已对寄存器的属性进行了详细规定。  Reading the frequency parameter of the configured CPU from the memory, and performing a read or write operation on the register corresponding to the frequency parameter according to the configured frequency parameter of the CPU; wherein, the register corresponding to the frequency parameter is read The operation of writing or writing refers to reading the contents of the register or writing the content in the register; determining whether to read or write the register according to the attribute of the register, and the attributes of the register have been specified in the prior art.
在实际应用时, 可以将调整 CPU的频率的代码放在内部緩存 ( IMEM ) 中运行, 确保移动终端的 CPU在进行切换时双倍速率同步动态随机存储器 ( DDR SDRAM , Double Data Rate Synchronous Dynamic Random Access Memory ) 不可用, 即: 不能影响到代码的执行;  In practical applications, the code for adjusting the frequency of the CPU can be placed in the internal buffer (IMEM) to ensure that the CPU of the mobile terminal is double-rate synchronous dynamic random access (DDR SDRAM, Double Data Rate Synchronous Dynamic Random Access). Memory ) Not available, ie: Cannot affect the execution of the code;
确定不是下载开机时, 不进行任何操作。  Make sure that no action is taken when the download is not powered on.
下面结合实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the embodiments.
本实施例的应用场景是: 移动终端所釆用的芯片为 Qualcomm平台 7x25、 或 7x27, 在正常使用时, CPU的频率为 400MHz。  The application scenario of this embodiment is as follows: The chip used by the mobile terminal is a Qualcomm platform 7x25, or 7x27. In normal use, the CPU frequency is 400 MHz.
本实施例中需要将电流调整到 60到 80mA之间, 进而实现一台计算机 同时支持多部移动终端下载软件版本, 且下载速度影响不大的目的, 因此, 新的配置文件的内容具体为:  In this embodiment, the current needs to be adjusted to between 60 and 80 mA, so that one computer simultaneously supports multiple mobile terminals to download the software version, and the download speed has little effect. Therefore, the content of the new configuration file is specifically:
1. 全局时钟分频寄存器, 0x15;  1. Global clock divider register, 0x15;
2. 输出源时钟分频寄存器, 0x5200;  2. Output source clock divider register, 0x5200;
3. 锁相环模式寄存器, 0x2;  3. Phase-locked loop mode register, 0x2;
4. 锁相环分频因子 L, 0x32;  4. Phase-locked loop division factor L, 0x32;
5. 锁相环分频因子 M, 0x0;  5. Phase-locked loop division factor M, 0x0;
6. 锁相环分频因子 N, 0x6;  6. Phase-locked loop division factor N, 0x6;
新的配置文件需要符合 Qualcomm的定义, 将新的配置文件保存到移 动终端的内存中, 且在出厂前已经预先配置好的配置文件和所述新的配置 文件中间加入一个空闲的寄存器, 所述空闲的寄存器的编号取为The new configuration file needs to conform to the definition of Qualcomm, save the new configuration file to the memory of the mobile terminal, and the pre-configured configuration file and the new configuration at the factory. Add an idle register in the middle of the file, and the number of the free register is taken as
OxFFFFFFFF, Qualcomm公司无论是在过去、 现在还是将来生产的任意一 款芯片都不可能会有寄存器用到这个地址, 当执行该寄存器时, 配置结果 的返回值一定会为"假", 从而不会影响开机到正常界面时的 CPU的频率; 釆用以上配置的 CPU 的频率参数后, 则可以使 CPU 的频率降为OxFFFFFFFF, Qualcomm can not use any register in any chip produced in the past, present or future. When this register is executed, the return value of the configuration result will be "false", so it will not Affects the frequency of the CPU when booting to the normal interface; After using the frequency parameter of the CPU configured above, the frequency of the CPU can be reduced to
80MHz, 具体计算过程如下: 80MHz, the specific calculation process is as follows:
Qualcomm平台手册中 CPU的频率计算公式为:  The frequency calculation formula for the CPU in the Qualcomm Platform Manual is:
CPU频率 = 时钟源 I (全局分频比 *输出源分频比) ( 1 ) 而时钟源才艮据本例来自于锁相环, 为:  CPU frequency = clock source I (global division ratio * output source division ratio) (1) The clock source is derived from the phase-locked loop according to this example:
时钟源 =锁相环频率 = TCXO * (L + M/N) ( 2 ) 其中, TCXO表示是外部固定晶振, 其值为 19.2MHz, 将设置的 L、 M 及 N值带入代入公式(2 ), 则可得, 锁相环频率为 19.2*50 = 960MHz。 按 照 Qualcomm平台手册, 全局分频寄存器的第六位决定了 CPU的频率来自 global src还是 axi— marm— src , 其中, global— src和 axi— marm— src为芯片内 部的两个时钟源, 拥有不同的分频比, 都是锁相环的子时钟, 芯片内部的 模块可以通过寄存器来选择工作时钟来自于哪个时钟源, 即: 来自于 global src还是 axi— marm— src,举个例子来说 ,芯片内的总线 ( AXI, Advanced extensible Interface )的时钟被配置为来自 axi marm src, 而 CPU的工作频 率可以通过哥存器选择是来自于 global src还是 axi— marm— src ,在本实施例 中, 0x15第六位为 0, 所以来自 axi— marm— src。 全局分频寄存器第 0到第 1 位决定了 axi— marm— src的分频比, 本实施例中为 0x1 , 查 Qualcomm平台 手册可知分频比为 2。输出源分频寄存器第 3位到第 6位决定输出源分频比 , 本实施例中为二进制的 101 , 也就是十进制的 5 , 查 Qualcomm平台手册可 知分频比为 6 , 将得到的全局分频比和输出源分频比的值带入公式( 1 ), 则 可以得出: CPU频率 = 960 / (2 * 6) = 80Mhz Clock source = phase-locked loop frequency = TCXO * (L + M/N) ( 2 ) where TCXO is an external fixed crystal with a value of 19.2MHz and the set L, M and N values are substituted into the formula (2) ), then, the phase-locked loop frequency is 19.2*50 = 960MHz. According to the Qualcomm platform manual, the sixth bit of the global divider register determines whether the CPU frequency comes from global src or axi_marm_src, where global_src and axi_marm_src are the two clock sources inside the chip, with different The division ratio is the subclock of the phase-locked loop. The internal module of the chip can select which clock source the working clock comes from through the register, ie: from global src or axi-marm-src, for example, The clock of the AXI (Advanced Extensible Interface) is configured to come from axi marm src, and the operating frequency of the CPU can be selected from global src or axi-marm_src through the memory, in this embodiment, The sixth bit of 0x15 is 0, so it comes from axi_marm_src. The 0th to the 1st bits of the global divider register determine the division ratio of axi_marm_src, which is 0x1 in this embodiment. Check the Qualcomm platform manual to see that the division ratio is 2. The output source divider register bits 3 to 6 determine the output source division ratio. In this embodiment, it is a binary 101, which is a decimal 5. Check the Qualcomm platform manual to know that the division ratio is 6, and the global score will be obtained. The ratio of the frequency ratio and the output source division ratio is brought into the formula (1), which leads to: CPU frequency = 960 / (2 * 6) = 80Mhz
另外,还可以将运行中的 CPU连接到 Trace仪器上,可以直接看出 CPU 的频率降低了。  In addition, you can connect the running CPU to the Trace instrument, you can directly see that the CPU frequency is reduced.
移动终端开机后, 先执行移动终端的芯片内部固化的 ROM程序,之后 判断开机原因是否是下载开机, 确定为下载开机后, 将调整 CPU的频率的 代码放在 IMEM中运行,调整 CPU的频率的代码从内存中读取新的配置文 件中的 CPU的频率参数,执行 CPU频率的调整; 具体地,从内存中读取所 述配置的 CPU的频率参数, 并对频率参数中的寄存器进行读或写的操作; 这里, 本实施例中根据开机时使用的按键, 判断开机原因是否是下载 开机, 具体地, 设置下载开机时使用的按键为同时按下音量上键和音量下 键后, 之后再按下电源键, 当判断出开机时使用的按键为同时按下音量上 键和音量下键后, 之后再按下电源键, 则说明移动终端的开机为下载开机。  After the mobile terminal is powered on, the ROM program of the internal firmware of the mobile terminal is first executed, and then it is determined whether the booting reason is downloading and booting, and after determining that the downloading is started, the code for adjusting the frequency of the CPU is placed in the IMEM to adjust the frequency of the CPU. The code reads the frequency parameter of the CPU in the new configuration file from the memory, and performs adjustment of the CPU frequency; specifically, reads the frequency parameter of the configured CPU from the memory, and reads the register in the frequency parameter or Write operation; Here, in this embodiment, according to the button used at the time of power-on, it is determined whether the booting reason is downloading and booting, specifically, setting the button used for downloading and booting is to simultaneously press the volume up key and the volume down key, and then Press the power button, when it is judged that the button used for power-on is to press the volume up button and the volume down button at the same time, and then press the power button, it means that the mobile terminal is powered on for downloading.
调整 CPU的频率后, 进入下载流程。  After adjusting the frequency of the CPU, enter the download process.
为实现上述方法, 本发明还提供了一种一台计算机支持多部移动终端 下载软件版本的装置, 如图 2所示, 该装置包括: 配置模块 21、 判断模块 22、 调整模块 23、 下载模块 24; 其中,  In order to implement the above method, the present invention further provides a device for supporting a plurality of mobile terminals to download a software version. As shown in FIG. 2, the device includes: a configuration module 21, a determination module 22, an adjustment module 23, and a download module. 24; Among them,
配置模块 21 , 用于配置 CPU的频率参数;  a configuration module 21, configured to configure a frequency parameter of the CPU;
判断模块 22, 用于移动终端开机后, 判断开机原因是否是下载开机, 确定为下载开机后, 触发调整模块 23;  The determining module 22 is configured to: after the mobile terminal is powered on, determine whether the booting cause is downloading and booting, and determining to download the booting, triggering the adjusting module 23;
调整模块 23 ,用于在收到判断模块 22的触发信息后,根据配置的 CPU 的频率参数调整 CPU的频率, 之后触发下载模块 24;  The adjusting module 23 is configured to: after receiving the trigger information of the determining module 22, adjust the frequency of the CPU according to the configured frequency parameter of the CPU, and then trigger the downloading module 24;
下载模块 24, 用于在收到调整模块 23的触发信息后, 进入下载流程。 其中, 该装置还可以进一步包括存储模块 25 , 用于保存配置模块 21配 置的 CPU的频率参数; 在实际使用过程中, 所述存储模块 25具体为移动 终端的内存。 该装置还可以进一步包括执行模块, 用于执行移动终端的芯片内部固 化的 ROM程序, 之后触发判断模块 22; The downloading module 24 is configured to enter the downloading process after receiving the triggering information of the adjusting module 23. The device may further include a storage module 25 for storing the frequency parameter of the CPU configured by the configuration module 21; in actual use, the storage module 25 is specifically a memory of the mobile terminal. The device may further include an execution module, a ROM program for performing internal chip curing of the mobile terminal, and then triggering the determining module 22;
所述判断模块 22, 用于在收到执行模块 22的触发信息后, 判断开机原 因是否是下载开机, 确定为下载开机后, 触发调整模块 23。  The determining module 22 is configured to: after receiving the trigger information of the execution module 22, determine whether the power-on reason is the downloading and starting, and determine that the downloading module 23 is triggered after the downloading is started.
所述判断模块 22, 还用于在确定不是下载开机后, 不进行任何操作。 以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The determining module 22 is further configured to perform no operation after determining that the download is not started. The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim
1、 一种一台计算机支持多部移动终端下载软件版本的方法, 其特征在 于, 该方法包括:  A method for a plurality of mobile terminals to download a software version, wherein the method comprises:
配置中央处理器 (CPU ) 的频率参数;  Configure the frequency parameters of the central processing unit (CPU);
移动终端开机后, 判断开机原因是否是下载开机, 确定为下载开机后, 根据配置的 CPU的频率参数调整 CPU的频率, 之后进入下载流程。  After the mobile terminal is powered on, it is determined whether the booting reason is downloading and booting, and after determining that the downloading is started, the frequency of the CPU is adjusted according to the configured frequency parameter of the CPU, and then the downloading process is entered.
2、 根据权利要求 1所述的方法, 其特征在于, 所述配置 CPU的频率 参数, 为:  2. The method according to claim 1, wherein the frequency parameter of the configuration CPU is:
依据所使用的计算机的通用串行总线(USB )主设备(Host )的供电能 力、 USB接口的数目、 需要同时进行软件版本下载的移动终端的数目、 移 动终端的 CPU的频率范围、 以及下载速度, 配置 CPU的频率参数。  The power supply capability of the Universal Serial Bus (USB) host (Host) of the computer used, the number of USB interfaces, the number of mobile terminals that need to simultaneously download the software version, the frequency range of the CPU of the mobile terminal, and the download speed , configure the frequency parameters of the CPU.
3、 根据权利要求 2所述的方法, 其特征在于, 所述 CPU的频率参数 包括:  3. The method according to claim 2, wherein the frequency parameter of the CPU comprises:
全局时钟分频寄存器的值、 输出源时钟分频寄存器的值、 锁相环模式 寄存器的值、 锁相环分频因子 L的值、 锁相环分频因子 M的值、 以及锁相 环分频因子 N的值。  The value of the global clock divider register, the value of the output source clock divider register, the value of the phase-locked loop mode register, the value of the phase-locked loop division factor L, the value of the phase-locked loop division factor M, and the phase-locked loop The value of the frequency factor N.
4、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述判断开机 原因是否是下载开机, 为:  The method according to claim 1, 2 or 3, wherein the determining whether the booting cause is downloading and booting is:
通过开机时使用的按键, 或者,  By using the button when booting, or,
移动终端是否装有电池, 或者,  Whether the mobile terminal is equipped with a battery, or
是否能找到设置的标识位, 判断开机原因是否是下载开机。  Whether you can find the set flag, determine whether the boot cause is download boot.
5、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 该方法进一步 包括:  5. The method of claim 1, 2 or 3, wherein the method further comprises:
确定不是下载开机时, 不进行任何操作。  Make sure that no action is taken when the download is not powered on.
6、根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述配置的 CPU 的频率参数保存于移动终端的内存中; The method according to claim 1, 2 or 3, characterized in that said configured CPU The frequency parameter is stored in the memory of the mobile terminal;
所述根据配置的 CPU的频率参数调整 CPU的频率, 为:  The adjusting the frequency of the CPU according to the configured frequency parameter of the CPU is:
从内存中读取所述配置的 CPU 的频率参数, 并依据所述配置的 CPU 的频率参数, 对频率参数对应的寄存器进行读或写的操作。  Reading the frequency parameter of the configured CPU from the memory, and performing a read or write operation on the register corresponding to the frequency parameter according to the configured frequency parameter of the CPU.
7、 一种一台计算机支持多部移动终端下载软件版本的装置, 其特征在 于, 该装置包括: 配置模块、 判断模块、 调整模块、 下载模块; 其中, 配置模块, 用于配置 CPU的频率参数;  7. A device for supporting a plurality of mobile terminals to download a software version, wherein the device comprises: a configuration module, a determination module, an adjustment module, and a download module; wherein, the configuration module is configured to configure a frequency parameter of the CPU ;
判断模块, 用于移动终端开机后, 判断开机原因是否是下载开机, 确 定为下载开机后, 触发调整模块;  The judging module is configured to determine whether the booting reason is a downloading and starting after the mobile terminal is powered on, and determining to trigger the adjusting module after the downloading is started;
调整模块, 用于在收到判断模块的触发信息后, 根据配置的 CPU的频 率参数调整 CPU的频率, 之后触发下载模块;  The adjusting module is configured to: after receiving the triggering information of the determining module, adjust the frequency of the CPU according to the configured frequency parameter of the CPU, and then trigger the downloading module;
下载模块, 用于在收到调整模块的触发信息后, 进入下载流程。  The download module is configured to enter the download process after receiving the trigger information of the adjustment module.
8、 根据权利要求 7所述的装置, 其特征在于, 该装置进一步包括存储 模块, 用于保存配置模块配置的 CPU的频率参数。  8. The apparatus according to claim 7, wherein the apparatus further comprises a storage module for saving a frequency parameter of a CPU configured by the configuration module.
9、 根据权利要求 7或 8所述的装置, 其特征在于, 该装置进一步包括 执行模块, 用于执行移动终端的芯片内部固化的 ROM程序,之后触发判断 模块;  The device according to claim 7 or 8, wherein the device further comprises an execution module, configured to execute a ROM program that is internally solidified by the chip of the mobile terminal, and then triggers the determining module;
判断模块, 用于在收到执行模块的触发信息后, 判断开机原因是否是 下载开机, 确定为下载开机后, 触发调整模块。  The judging module is configured to: after receiving the trigger information of the execution module, determine whether the booting reason is downloading and starting, and determining to trigger the adjusting module after the downloading is started.
PCT/CN2010/079138 2010-10-11 2010-11-25 Method and device for supporting software version downloads of multiple mobile terminals by one computer WO2012048490A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010505478.1A CN101963946B (en) 2010-10-11 2010-10-11 A computer supported multi-section mobile terminal downloads method and the device of software version
CN201010505478.1 2010-10-11

Publications (1)

Publication Number Publication Date
WO2012048490A1 true WO2012048490A1 (en) 2012-04-19

Family

ID=43516819

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079138 WO2012048490A1 (en) 2010-10-11 2010-11-25 Method and device for supporting software version downloads of multiple mobile terminals by one computer

Country Status (2)

Country Link
CN (1) CN101963946B (en)
WO (1) WO2012048490A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869235B (en) * 2015-04-27 2017-08-18 广东欧珀移动通信有限公司 It is a kind of to prevent from opening by mistake the method for machine, device, system and a kind of mobile terminal
CN108388451B (en) * 2018-03-02 2021-08-31 深圳市知赢科技有限公司 Mobile terminal starting method and device and mobile terminal
CN113596125B (en) * 2021-07-21 2023-11-14 咪咕互动娱乐有限公司 Resource downloading method, device, data system and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1406096A (en) * 2001-07-27 2003-03-26 三星电子株式会社 Method for reducing current consumption of mobile communication terminals
US6963986B1 (en) * 2002-06-21 2005-11-08 Cypress Semiconductor Corp. Device enumeration current reduction
US20080034149A1 (en) * 2006-08-02 2008-02-07 Feringo, Inc. High capacity USB or 1394 memory device with internal hub
US7415626B2 (en) * 2004-10-01 2008-08-19 Sony Ericsson Mobile Communications Ab Methods, devices and circuits for activating a communication device connected to an external bus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2857476B1 (en) * 2003-07-10 2005-09-23 Open Plug SYSTEM FOR OPTIMIZING THE MANAGEMENT OF INTEGRATED SOFTWARE COMPONENTS IN AN ONBOARD SYSTEM, IN PARTICULAR IN A MOBILE PHONE
CN1306428C (en) * 2004-07-13 2007-03-21 海信集团有限公司 High-speed program downloading system and method for mobile station in communication network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1406096A (en) * 2001-07-27 2003-03-26 三星电子株式会社 Method for reducing current consumption of mobile communication terminals
US6963986B1 (en) * 2002-06-21 2005-11-08 Cypress Semiconductor Corp. Device enumeration current reduction
US7415626B2 (en) * 2004-10-01 2008-08-19 Sony Ericsson Mobile Communications Ab Methods, devices and circuits for activating a communication device connected to an external bus
US20080034149A1 (en) * 2006-08-02 2008-02-07 Feringo, Inc. High capacity USB or 1394 memory device with internal hub

Also Published As

Publication number Publication date
CN101963946A (en) 2011-02-02
CN101963946B (en) 2015-12-16

Similar Documents

Publication Publication Date Title
US20200233483A1 (en) System on chip for reducing wake-up time, method of operating same, and computer system including same
US9996142B2 (en) Selective power management for pre-boot firmware updates
EP2581826B1 (en) Method and device for cold starting android mobile terminal
US8972966B2 (en) Updating firmware in a hybrid computing environment
KR101832953B1 (en) Remote wakeup of application processor of mobile device
CN106293832B (en) SOC chip boot starting method and system
US8943232B2 (en) System method for enumerating client devices embedded in a user device during reboot, wake up or restart of user device
US20140057620A1 (en) Method, system, and terminal for performing system update between mobile communication terminals
TWI622933B (en) Client update method and device
WO2011116621A1 (en) Electronic device, configurable component and configuration information storage method thereof
WO2017215088A1 (en) Ota start-up acceleration method and system
CN109284136B (en) Method and device for realizing quick restart of switch system
CN105335178B (en) Starting control method and device
TW201227516A (en) System and method for facilitating wireless communication during a pre-boot phase of a computing device
KR20180048993A (en) Systems and methods for dynamically adjusting memory state transition timers
CN106663016A (en) Upgrade method, apparatus and device for terminal device
GB2463809A (en) Peripheral device operation method, peripheral device and host
US9965292B2 (en) Method of bluetooth pairing with UEFI firmware and computer system thereof
WO2012048490A1 (en) Method and device for supporting software version downloads of multiple mobile terminals by one computer
WO2018210063A1 (en) Terminal system startup method and terminal
WO2023087696A1 (en) Communication module and external interface configuration method and configuration apparatus therefor, and storage medium
WO2019100704A1 (en) Starting method for multi-mode iot device, multi-mode iot device, and storage medium
CN110956455A (en) Working method of virtual coin portable operation terminal based on block chain
WO2022053062A1 (en) Method and terminal for managing iot device
US11387867B2 (en) Distributed microcontroller

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

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

Country of ref document: EP

Kind code of ref document: A1