CN107733674A - Component upgrade method and terminal - Google Patents

Component upgrade method and terminal Download PDF

Info

Publication number
CN107733674A
CN107733674A CN201610666197.1A CN201610666197A CN107733674A CN 107733674 A CN107733674 A CN 107733674A CN 201610666197 A CN201610666197 A CN 201610666197A CN 107733674 A CN107733674 A CN 107733674A
Authority
CN
China
Prior art keywords
module
target element
aku
updating
management module
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201610666197.1A
Other languages
Chinese (zh)
Other versions
CN107733674B (en
Inventor
张洋
张虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aiqi Technology Co Ltd
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Aiqi Technology Co Ltd
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Aiqi Technology Co Ltd, Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Aiqi Technology Co Ltd
Priority to CN201610666197.1A priority Critical patent/CN107733674B/en
Publication of CN107733674A publication Critical patent/CN107733674A/en
Application granted granted Critical
Publication of CN107733674B publication Critical patent/CN107733674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure is directed to a kind of component upgrade method and terminal, belong to embedded system field.This method includes:When it is determined that the target element in target peripheral module meets promotion condition, updating and management module receives the target element AKU that radio access module is sent, and target element AKU is stored in into flash module;When target element AKU finishes receiving, updating and management module obtains target element AKU from flash module, and target element AKU is sent to target peripheral module;Target element AKU is stored in the specified partition of flash units by target peripheral module, and target element is upgraded by operational objective component upgrade bag.The disclosure is used as intermediary using flash module, by the storage of target element AKU into flash module, the flash units that the target element AKU in flash module is sent to target peripheral module again are upgraded, avoid the difference for the upgrading mode that different components are brought, resource is saved, is easy to be managed collectively component.

Description

Component upgrade method and terminal
Technical field
This disclosure relates to field of embedded technology, more particularly to a kind of component upgrade method and terminal.
Background technology
In field of computer technology, component is the application for realizing certain function.In order to meet user's use demand, eventually Multiple assembly is installed, for example, multimedia component, web page browsing component, communication component, sensor cluster etc. in end. When being managed to these components, often it is related to upgrade problem.
At present, when upgrading to component, terminal system can first download component upgrade bag from network, and then by component AKU sends to the peripheral module where component to be upgraded, peripheral module and realized by operating component AKU to the component Upgrading.However, because the communication mode between different components and terminal system is different, therefore, terminal is to different groups , it is necessary in different ways send component upgrade bag to different peripheral modules when part is upgraded.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of component upgrade method and terminal.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of component upgrade method, methods described are applied in terminal, The terminal includes radio access module, updating and management module, flash module and multiple peripheral modules, each peripheral module bag At least one component and a flash unit are included, methods described includes:
When it is determined that the target element in target peripheral module meets promotion condition, described in the updating and management module reception The target element AKU that radio access module is sent, and the target element AKU is stored in the flash module;
When the target element AKU finishes receiving, the updating and management module obtains from the flash module The target element AKU, and the target element AKU is sent to the target peripheral module;
The target element AKU is stored in the specified partition of flash units by the target peripheral module, and is passed through The target element AKU run in the specified partition upgrades to the target element.
In another embodiment of the disclosure, methods described also includes:
The updating and management module sends solicited message message to the radio access module;
When receiving the solicited message message, the radio access module is sent to the updating and management module to be upgraded Query message, it is described to upgrade the version number that the target element AKU is at least carried in query message;
When receiving the upgrading query message, the updating and management module judges whether the target element meets to rise Level condition;
If the voltage at the target peripheral module both ends is higher than predeterminated voltage, and the version number of the target element is less than The version number of the target element AKU, the updating and management module determine that the target element meets promotion condition.
In another embodiment of the disclosure, the updating and management module judges whether the target element meets to upgrade After condition, in addition to:
If the target element is unsatisfactory for promotion condition, the updating and management module is sent to the radio access module Reminder message, user is reminded by radio access module.
In another embodiment of the disclosure, the terminal also includes multi-media module, the multi-media module and institute State updating and management module and share the flash module;
Before the updating and management module receives the target element AKU that the radio access module is sent, in addition to:
The use that the updating and management module is sent to the flash module to the multi-media module is asked;
When receive it is described using request when, the multi-media module stops using the flash module, and to the liter Level management module sends the first response message;
When receiving first response message, the updating and management module initializes to the flash module, And the step of performing the target element AKU for receiving the radio access module transmission.
In another embodiment of the disclosure, the updating and management module receives the mesh that the radio access module is sent Component upgrade bag is marked, including:
The radio access module predefines AES and decipherment algorithm with the updating and management module;
The target element AKU is encrypted using the AES for the radio access module, and to described Updating and management module sends the target element AKU after encryption;
The updating and management module receives the target element AKU after the encryption;
It is described that the target element AKU is stored in the flash module, including:
The target element AKU after the encryption is decrypted using the decipherment algorithm for the updating and management module;
Target element AKU after decryption is stored in the flash module by the updating and management module.
It is described that the target element AKU is stored in the flash module in another embodiment of the disclosure, Including:
In the receive process of the target element AKU, the updating and management module will receive byte be stored in it is slow In depositing, and the byte in the caching is write into the flash module in units of page.
In another embodiment of the disclosure, it is described in units of page by the caching byte write-in described in Flash module, including:
If it is 0 not receive byte number, the updating and management module carries out the byte in the caching and predetermined number Compare;
If the byte in the caching is less than the predetermined number, the updating and management module is by the word in the caching One page that section is write in the flash module;
If the byte in the caching is more than or equal to the predetermined number, the updating and management module is by the caching One page that the preceding predetermined number byte is write in the flash module, and remainder bytes are write in the flash module Another page.
In another embodiment of the disclosure, it is described in units of page by the caching byte write-in described in Flash module, including:
If it is not 0 not receive byte number, the updating and management module enters the byte in the caching with predetermined number Row compares;
If the byte in the caching is less than the predetermined number, the updating and management module continues to the target Component upgrade bag, until finishing receiving;
If the byte in the caching is more than or equal to the predetermined number, the updating and management module is by the caching One page that the preceding predetermined number byte is write in the flash module, and remainder bytes are write to the starting of the caching Position, the target element AKU is continued to, until finishing receiving.
In another embodiment of the disclosure, the updating and management module obtains the mesh from the flash module Before marking component upgrade bag, in addition to:
When receiving the end message that the radio access module is sent, the updating and management module is to outside the target If module, which is sent, starts data message, the byte length for starting at least to carry the target element AKU in data message Information;
When receiving the beginning data message, the target peripheral module records the word of the target element AKU Length information is saved, and the second response message is sent to the updating and management module;
When receiving second response message, the updating and management module is performed and obtained from the flash module The operation of the target element AKU.
In another embodiment of the disclosure, the target element AKU is stored in by the target peripheral module The specified partition of flash units, including:
When receiving the target element AKU, the target peripheral module is according to specified partition one page institute energy The byte number of receiving, the target element AKU is stored in the specified partition of flash units.
It is described by running the target element AKU to the target element in another embodiment of the disclosure Upgraded, including:
When receiving the end of data message that the updating and management module is sent, the target peripheral module opens again It is dynamic, run the target element AKU in the specified partition;
If the target element AKU successful operation, the target peripheral module will upgrade flag on mark Upgrading mark is arranged to, to complete the upgrading to the target element.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of terminal, the terminal include radio access module, upgrading Management module, flash module and multiple peripheral modules, each peripheral module include at least one component and a flash unit;
The updating and management module, for when it is determined that the target element in target peripheral module meets promotion condition, connecing The target element AKU that the radio access module is sent is received, and the target element AKU is stored in the flash Module;
The updating and management module, for when the target element AKU finishes receiving, from the flash module The target element AKU is obtained, and the target element AKU is sent to the target peripheral module;
The target peripheral module, for the target element AKU to be stored in the specified partition of flash units, and The target element is upgraded by the target element AKU run in the specified partition.
In another embodiment of the disclosure, the updating and management module, it is additionally operable to send out to the radio access module Send solicited message message;
The radio access module, it is additionally operable to when receiving the solicited message message, to the updating and management module Upgrading query message is sent, the version number of the target element AKU is at least carried in the upgrading query message;
The updating and management module, it is additionally operable to, when receiving the upgrading query message, judge that the target element is It is no to meet promotion condition;
The updating and management module, it is additionally operable to when the voltage at the target peripheral module both ends is higher than predeterminated voltage, and institute When stating the version number of target element and being less than the version number of the target element AKU, determine that the target element meets upgrading bar Part.
In another embodiment of the disclosure, the updating and management module, it is additionally operable to when the target element is unsatisfactory for During promotion condition, reminder message is sent to the radio access module, user is reminded by radio access module.
In another embodiment of the disclosure, the terminal also includes multi-media module, the multi-media module and institute State updating and management module and share the flash module;
The updating and management module, before being additionally operable to receive the target element AKU that the radio access module is sent, Also include:
The updating and management module, it is additionally operable to ask to the use that the multi-media module is sent to the flash module;
The multi-media module, it is additionally operable to, when receiving the use request, stop using the flash module, and The first response message is sent to the updating and management module;
The updating and management module, it is additionally operable to when receiving first response message, the flash module is carried out Initialization, and receive the target element AKU that the radio access module is sent.
In another embodiment of the disclosure, the radio access module, it is additionally operable to pre- with the updating and management module First determine AES and decipherment algorithm;
The radio access module, it is also used for the AES and the target element AKU is encrypted, And send the target element AKU after encryption to the updating and management module;
The updating and management module, it is additionally operable to receive the target element AKU after the encryption;
The updating and management module, it is also used for the decipherment algorithm and the target element AKU after the encryption is entered Row decryption;
The updating and management module, it is additionally operable to the target element AKU after decryption being stored in the flash module.
In another embodiment of the disclosure, the updating and management module, it is additionally operable in the target element AKU Receive process in, will receive byte storage in the buffer, and in units of page by the caching byte write-in described in Flash module.
In another embodiment of the disclosure, the updating and management module, it is additionally operable to when it is 0 not receive byte number, By the byte in the caching compared with predetermined number;
The updating and management module, it is additionally operable to when the byte in the caching is less than the predetermined number, will be described slow One page that the byte deposited is write in the flash module;
The updating and management module, it is additionally operable to when the byte in the caching is more than or equal to the predetermined number, by institute State one page in the preceding predetermined number byte write-in flash module in caching, and described in remainder bytes are write Another page in flash module.
In another embodiment of the disclosure, the updating and management module, it is not 0 that byte number ought not be received by, which being additionally operable to, By the byte in the caching compared with predetermined number;
The updating and management module, it is additionally operable to, when the byte in the caching is less than the predetermined number, continue to The target element AKU, until finishing receiving;
The updating and management module, it is additionally operable to when the byte in the caching is more than or equal to the predetermined number, by institute One page that the preceding predetermined number byte is write in the flash module in caching is stated, and remainder bytes are write into described delay The original position deposited, the target element AKU is continued to, until finishing receiving.
In another embodiment of the disclosure, the updating and management module, it is additionally operable to that the wireless access ought be received During the end message that module is sent, sent to the target peripheral module and start data message, in the beginning data message extremely The byte length information of the target element AKU is carried less;
The target peripheral module, it is additionally operable to, when receiving the beginning data message, record the target element liter The byte length information of level bag, and send the second response message to the updating and management module;
The updating and management module, it is additionally operable to, when receiving second response message, obtain from the flash module Take the target element AKU.
In another embodiment of the disclosure, the target peripheral module, it is additionally operable to that the target element ought be received AKU, the byte number that can be accommodated according to described specified partition one page, it is mono- that the target element AKU is stored in flash The specified partition of member.
In another embodiment of the disclosure, the target peripheral module, it is additionally operable to that the updating and management ought be received The end of data message that module is sent, restarting, runs the target element AKU in the specified partition;
The target peripheral module, it is additionally operable to when the target element AKU successful operation, by upgrading flag Mark be arranged to upgrading mark, to complete upgrading to the target element.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Using flash module as intermediary, by the storage of target element AKU into flash module, then by flash module Target element AKU send to the flash units of target peripheral module and upgraded, avoid the liter that different components are brought The difference of level mode, saves resource, is easy to be managed collectively component.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of component upgrade method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of component upgrade method according to an exemplary embodiment.
Fig. 3 is that target element AKU is stored in flash module by a kind of according to an exemplary embodiment The schematic diagram of storing process.
Fig. 4 is a kind of structural representation of terminal according to an exemplary embodiment.
A kind of block diagram of devices for component upgrade of the Fig. 5 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of component upgrade method according to an exemplary embodiment, as shown in figure 1, component Upgrade method is used in terminal, and terminal includes radio access module, updating and management module, flash module and multiple peripheral modules, Each peripheral module includes at least one component and a flash unit, component upgrade method comprise the following steps.
In a step 101, when it is determined that the target element in target peripheral module meets promotion condition, updating and management module The target element AKU that radio access module is sent is received, and target element AKU is stored in flash module.
In a step 102, when target element AKU finishes receiving, updating and management module obtains from flash module Target element AKU, and target element AKU is sent to target peripheral module.
In step 103, target element AKU is stored in the specified partition of flash units by target peripheral module, and Target element is upgraded by the target element AKU run in specified partition.
The method that the embodiment of the present disclosure provides, using flash module as intermediary, target element AKU storage is arrived In flash module, then the flash units that the target element AKU in flash module is sent to target peripheral module are carried out Upgrading, avoids the difference for the upgrading mode that different components are brought, saves resource, be easy to be managed collectively component.
In another embodiment of the disclosure, this method also includes:
Updating and management module sends solicited message message to radio access module;
When receiving solicited message message, radio access module sends upgrading query message to updating and management module, rises The version number of target element AKU is at least carried in level query message;
When receiving upgrading query message, updating and management module judges whether target element meets promotion condition;
If the voltage at target peripheral module both ends is higher than predeterminated voltage, and the version number of target element is less than target element The version number of AKU, updating and management module determine that target element meets promotion condition.
In another embodiment of the disclosure, updating and management module judge target element whether meet promotion condition it Afterwards, in addition to:
If target element is unsatisfactory for promotion condition, updating and management module sends reminder message to radio access module, by Radio access module is reminded user.
In another embodiment of the disclosure, terminal also includes multi-media module, multi-media module and updating and management mould Block shares flash module;
Before updating and management module receives the target element AKU that radio access module is sent, in addition to:
The use that updating and management module is sent to flash module to multi-media module is asked;
When receiving using request, multi-media module stops using flash module, and sends the to updating and management module One response message;
When receiving the first response message, updating and management module initializes to flash module, and performs reception nothing The step of target element AKU that line AM access module is sent.
In another embodiment of the disclosure, updating and management module receives the target element liter that radio access module is sent Level bag, including:
Radio access module predefines AES and decipherment algorithm with updating and management module;
Target element AKU is encrypted using AES for radio access module, and is sent to updating and management module Target element AKU after encryption;
Updating and management module receives the target element AKU after encryption;
Target element AKU is stored in flash module, including:
The target element AKU after encryption is decrypted using decipherment algorithm for updating and management module;
Target element AKU after decryption is stored in flash module by updating and management module.
In another embodiment of the disclosure, target element AKU is stored in flash module, including:
In the receive process of target element AKU, updating and management module will receive byte storage in the buffer, and The byte in caching is write into flash module in units of page.
In another embodiment of the disclosure, the byte in caching is write into flash module in units of page, including:
If it is 0 not receive byte number, updating and management module is by the byte in caching compared with predetermined number;
If the byte in caching is less than predetermined number, the byte in caching is write flash module by updating and management module In one page;
If the byte in caching is more than or equal to predetermined number, preceding predetermined number byte during updating and management module will cache The one page write in flash module, and another page that remainder bytes are write in the flash module.
In another embodiment of the disclosure, the byte in caching is write into flash module in units of page, including:
If it is not 0 not receive byte number, updating and management module is by the byte in caching compared with predetermined number;
If the byte in caching is less than predetermined number, updating and management module continues to target element AKU, until Finish receiving;
If the byte in caching is more than or equal to predetermined number, preceding predetermined number byte during updating and management module will cache The one page write in flash module, and remainder bytes are write to the original position cached, target element AKU is continued to, Until finishing receiving.
In another embodiment of the disclosure, updating and management module obtains target element AKU from flash module Before, in addition to:
When receiving the end message of radio access module transmission, updating and management module sends to target peripheral module and opened Beginning data message, start at least to carry the byte length information of target element AKU in data message;
When receiving beginning data message, target peripheral module records the byte length information of target element AKU, And send the second response message to updating and management module;
When receiving the second response message, updating and management module performs obtains target element upgrading from flash module The operation of bag.
In another embodiment of the disclosure, target element AKU is stored in flash units by target peripheral module Specified partition, including:
When receiving target element AKU, byte that target peripheral module can accommodate according to specified partition one page Number, target element AKU is stored in the specified partition of flash units.
In another embodiment of the disclosure, target element is upgraded by operational objective component upgrade bag, wrapped Include:
When receiving the end of data message of updating and management module transmission, target peripheral module restarting, operation refers to Determine the target element AKU in subregion;
If target element AKU successful operation, the mark upgraded in flag is arranged to rise by target peripheral module Level mark, to complete the upgrading to target element.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the disclosure, herein no longer Repeat one by one.
Fig. 2 is a kind of flow chart of component upgrade method according to an exemplary embodiment, as shown in Fig. 2 component Upgrade method is used in terminal, and terminal includes radio access module, updating and management module, flash module and multiple peripheral modules.
Wherein, radio access module can obtain different component upgrade bags and its information from network, the wireless access mould Block can be WiFi module, bluetooth module etc..Radio upgrade management module can be with radio access module, flash module and more Individual peripheral module is connected, and is responsible for the upgrading to managing multiple peripheral module inner assemblies, and the updating and management module can be in terminal CPU (Central Processing Unit, central processing unit), MCU (Microcontroller Unit, micro-control processing are single Member) etc..Peripheral module is used to realizing the difference in functionality of terminal, and the peripheral module can be sensor assembly, multi-media module etc., And each peripheral module includes at least one component and a flash unit, the component in peripheral module include peripheral module oneself The firmware of body and various application programs etc., the upgrading upgraded to the firmware in peripheral module described in the present embodiment, and To the sound bank of application program, maneuver library, expression storehouse database upgrading.
Referring to Fig. 2, the component upgrade method that the embodiment of the present disclosure provides comprises the following steps.
In step 201, updating and management module chooses a target peripheral module from multiple peripheral modules, and judges mesh Whether the target element in mark peripheral module meets promotion condition.
The component of general lowest version can have some leaks with respect to the component of highest version, and these leaks can reduce terminal system Performance, or even influence normal operation of terminal.In order to repair leak present in component, systematic function is improved, it is ensured that eventually Trouble-free operation is held, it is necessary to upgrade to each component in each peripheral module.
In the present embodiment, radio access module can receive the component upgrade notice that different server is pushed, to connect Exemplified by the component upgrade notice for receiving the target element in target peripheral module, when the component upgrade for receiving target element notifies When, radio access module sends solicited message message to updating and management module, judges target peripheral to trigger updating and management module Whether the target element in module meets promotion condition, and specific deterministic process is referring to step 2011~2013:
2011st, updating and management module sends solicited message message to radio access module.
Wherein, target element mark is at least carried in solicited message message.
2012nd, when receiving solicited message message, radio access module sends upgrading inquiry report to updating and management module Text.
Wherein, the version number that target element AKU is at least carried in query message, target element mark etc. are upgraded.
2013rd, when receiving upgrading query message, updating and management module judges whether target element meets promotion condition.
In the present embodiment, updating and management module safeguards a peripheral module list, is stored with the peripheral module list The attribute information of at least one component included by each peripheral module and the peripheral module, such as version component version number.When connecing When receiving upgrading query message, updating and management module obtains the attribute information of target element from peripheral module list, according to obtaining The attribute information of the target element taken, whether the voltage at inquiry target peripheral module both ends is higher than predeterminated voltage, and inquires about target Whether the version number of component is less than the version number of target element AKU.
In one embodiment of the disclosure, if the voltage at target peripheral module both ends is higher than predeterminated voltage, and target The version number of component is less than the version number of target element AKU, and updating and management module determines that target element meets promotion condition, And then by following step to complete the upgrading to target element.
In another embodiment of the disclosure, if the voltage at peripheral module both ends is less than predeterminated voltage, or target The version number of component is higher than the version number of target element AKU, and updating and management module determines that target element is unsatisfactory for upgrading bar Part.When it is determined that target element is unsatisfactory for promotion condition, updating and management module can send reminder message to radio access module, by nothing Line AM access module is reminded user.For the ungratified promotion condition of target element, updating and management module is to wirelessly connecing When entering module transmission reminder message, corresponding processing scheme can be also carried in reminder message, if target element is because of the electricity at both ends Pressure value is unsatisfactory for promotion condition less than predeterminated voltage, then user can be reminded to improve target peripheral module in the reminder message of transmission Voltage etc..
In step 202, updating and management module upgrade management module receives the target element liter that radio access module is sent Level bag, and target element AKU is stored in flash module.
In addition to radio access module, updating and management module, flash module and multiple peripheral modules, terminal also includes one Individual multi-media module, the multi-media module and updating and management module share flash module, and multi-media module normal operation should It is stored in program in flash module.Generally, because updating and management module itself also has certain storage empty Between, updating and management module can't use flash module, and flash module is used by multi-media module.
However, because target element AKU is larger, and the updating and management module limited storage space of itself, and upgrade pipe The most of operating system by inside of memory space for managing module itself takes, and therefore, updating and management module is from wireless access mould The target element AKU that block is received can only be stored in flash module.To avoid multiple modules while using flash module Conflict is produced, before it is determined that target element meets promotion condition, starting to receive the target element that radio access module is sent, is risen The use that level management module can be sent to flash module to multi-media module is asked, when receiving using request, multimedia mould Block stops using flash module, and sends the first response message to updating and management module, when receiving the first response message, Updating and management module can send data acquisition request to radio access module, and target element liter is sent to trigger radio access module Level bag.
Wherein, the form such as table of the data in the target element AKU that radio access module is sent to updating and management module Shown in 1.As shown in table 1.
Table 1
Wherein, target assembly data bag includes header, type, subclass, multiple data, verification, telegram end etc..First data Item represents that firmware and database are data files.Filename 1 represents that object of this upgrading is firmware, 2 in filename ... For the label more than or equal to 2, the object for representing upgrading is database.Length represents AKU size.School is carried out to target element The method used is tested as exclusive or check, is correspondingly the result that above all bytes are carried out with exclusive or check in check bit.
In order to improve Information Security, radio access module can be supported before carrying out data transmission according to local terminal AES and decipherment algorithm, and the AES and decipherment algorithm that updating and management module is supported, consult to determine that this enters AES and decipherment algorithm used in row data transfer.Based on identified AES, radio access module, which uses, to be added Target element AKU is encrypted close algorithm, and sends the target element AKU after encryption to updating and management module.Base In identified decipherment algorithm, target element AKU after encryption is received, updating and management module uses decipherment algorithm pair Target element AKU after encryption is decrypted, and then the target element AKU after decryption is stored in into flash module.
The limitation of radio access module own hardware is limited to, radio access module is every time to updating and management module transfer Effective word joint number is up to specified quantity, and such updating and management module is receiving the target element liter of radio access module transmission During level bag, at most it is only capable of receiving specified quantity byte every time.Wherein, specified quantity can be 12,13,14 Individual etc., the present embodiment is so that specified quantity is 14 as an example.
The attribute limitation of flash module in itself is limited to, updating and management module need to be with when writing data to flash module Page is write for unit, and every page of flash module at most can be only written predetermined number byte, therefore, in order to smooth Target element AKU is successfully written flash module, byte storage can will have first been received in the buffer, to ensure that data are deposited The actual effect of storage, in the receive process to target element AKU, during updating and management module will will also be cached in units of page Byte write-in flash module.Wherein, predetermined number can be 256,300,500 etc., and the present embodiment is with predetermined number Exemplified by 256.
In the present embodiment, in the receive process to target element AKU, updating and management module will in units of page When byte in caching writes flash module, whether it is 0 according to the byte number not received after this reception, can be divided into as follows Two kinds of situations.Wherein, this byte number not received after receiving can tentatively be judged by the byte number that this is received, If this byte number received is less than 14, it may be determined that the byte number not received after this reception is 0, if this connects The byte number received is more than or equal to 14, also needs the byte number not received after last receive subtracting 14, if equal to 0, Also it can determine that the byte number not received after this reception is 0, if greater than 0, it is determined that the word not received after this reception Joint number is not 0.
The byte number not received after the first situation, this reception is 0.
If the byte number not received be 0, illustrate that the data in target element AKU all receive, now without By being how many by the byte number in caching, it is required for all being written in flash module.Due in every page of flash module at most It can only write 256 bytes, and original byte number sum is likely larger than and is equal in byte number and caching after this reception 256, it is also possible to less than 256, whether be more than or equal to for original byte number sum in the byte number and caching after this reception 256, updating and management module is difference, therefore, updating and management mould in the mode that the data in caching are written in flash module Block is needed the byte in caching compared with predetermined number.If the byte number in caching is less than 256, updating and management mould Block can be by one page in byte write-in flash module in caching;If the byte number in caching is more than or equal to 256, updating and management Module is by one page that preceding 256 bytes are write in flash module in caching, and another page that remainder bytes are write in flash.
The byte number not received after second of situation, this reception is not 0.
If do not receive byte number not be 0, illustrate that the data in target element AKU do not receive all, this needs after Target element AKU is received in continued access, until finishing receiving.By at most can only write 256 bytes in every page of flash module, And original byte number sum is likely larger than equal to 256 in the byte number and caching after this reception, it is also possible to less than 256, for Whether original byte sum is more than or equal to 256 in byte and caching after this reception, and updating and management module is by caching The mode that data are written in flash module is different, and therefore, updating and management module is needed the byte and present count in caching Amount is compared.If the byte number in caching is less than 256, updating and management module continues to target element AKU, directly To finishing receiving;If the byte number in caching is more than or equal to 256, updating and management module writes preceding 256 bytes in caching Enter one page in flash module, and remainder bytes are write to the original position of caching, continue to target element AKU, and During data in the target element AKU for receiving radio access module transmission every time, judge that the byte number that does not receive is No is 0, and then using corresponding writing mode write-in flash module, until finishing receiving.
Target element AKU is stored in the process of flash module for updating and management module, in order to make it easy to understand, under Face will illustrate by taking Fig. 3 as an example.
Referring to Fig. 3, in the receive process to target element AKU, updating and management module judges this word received Whether joint number is more than or equal to 14, if the byte number received is less than 14, the byte that updating and management module receives this is deposited Storage judges whether the byte number in Buf is more than or equal to 256 in Buf (caching), if the byte number in Buf is more than or equal to 256, then by one page in preceding 256 bytes write-in flash module in Buf, remaining byte writes another in flash module One page;If the byte number in Buf is less than 256, by one page in the byte number write-in flash module in Buf.
If this byte number received is more than or equal to 14, the byte that updating and management module receives this is stored in In Buf, and the byte number that the last time is not received subtracts 14, obtains the byte number not received after this reception.If this connects The byte number not received after receipts is 0, and updating and management module judges whether the byte number in Buf is more than or equal to 256, if in Buf Byte number be more than or equal to 256, then by Buf preceding 256 bytes write-in flash module in one page, remainder bytes are write Enter flash another page, if the byte number in Buf is less than 256, by one in the byte number write-in flash module in Buf Page;If the byte number not received after this reception is not 0, updating and management module judges whether the byte number in Buf is more than In 256, if the byte number in Buf is more than or equal to 256, by one in preceding 256 bytes write-in flash module in Buf Page, remaining byte is write to the original position of caching, continues to target element AKU, until finishing receiving;If Buf In byte number be less than 256, target element AKU is continued to, until finish receiving.
In step 203, when target element AKU finishes receiving, updating and management module obtains from flash module Target element AKU, and target element AKU is sent to target peripheral module.
When target element AKU is sent completely, radio access module can send to updating and management module and receive message, when When receiving the end message of radio access module transmission, updating and management module is sent to target peripheral module starts datagram Text, this starts the byte length information that target element AKU is at least carried in data message.When receiving beginning data message When, target peripheral module records the byte length information of target element AKU, and sends the second response to updating and management module Information, when receiving the second response message, updating and management module obtains target element AKU from flash module, and will Target element AKU is sent to target peripheral module.Due to the data in target element AKU in flash module with page Stored for unit, therefore, updating and management module from flash module when obtaining target element AKU, using page to be single Obtained, and be transmitted in units of page to target peripheral module.
In step 204, target element AKU is stored in the specified partition of flash units by target peripheral module, and Target element is upgraded by the target element AKU run in specified partition.
In the present embodiment, the flash units of target peripheral module comprise at least specified partition, and the specified partition is used to deposit Store up the target element AKU received.One page can accommodate in the flash units specified partition of usual target peripheral module Byte number is different from the byte number that one page in flash module can accommodate, and therefore, is receiving target element AKU During, target element AKU is stored in by byte number that target peripheral module can accommodate according to specified partition one page The specified partition of flash units.For example, the byte number that one page can accommodate in flash module is 256 bytes, flash units Specified partition in the byte number that can accommodate of one page be 500 bytes, during target element AKU is received, whenever When receiving 500 bytes, target peripheral module writes the byte received the specified partition of flash units.
When updating and management module all sends the data in target element AKU to target peripheral module, updating and management Unit will send end of data message to target peripheral module, when the end of data message for receiving the transmission of updating and management module When, target peripheral module carries out warm reset, restarting, the target element AKU in specified partition is run, if target group Part AKU successful operation, then target peripheral module by upgrade flag on mark be arranged to upgrading mark, with complete to mesh Mark the upgrading of component.
Further, after the upgrading to target element is completed, target peripheral module is sent to updating and management module to be upgraded Successful information, information will be upgraded successfully by updating and management module and sent to radio access module, radio access module receives liter After level successful information, the current information of storage target element, and other assemblies are carried out according to the upgrade method to target element Upgrading.Certainly, if not completing the upgrading to target element, target peripheral module will send upgrading failure to updating and management module Information, sent by updating and management module by failure information is upgraded to radio access module, radio access module receives upgrading and lost After losing information, target element is upgraded again.
The method that the embodiment of the present disclosure provides, using flash module as intermediary, target element AKU storage is arrived In flash module, then the flash units that the target element AKU in flash module is sent to target peripheral module are carried out Upgrading, avoids the difference for the upgrading mode that different components are brought, saves resource, be easy to be managed collectively component.
Fig. 4 is a kind of schematic diagram of terminal according to an exemplary embodiment.Reference picture 4, terminal include wirelessly connecing Enter module 401, updating and management module 402, flash module 403 and multiple peripheral modules 404, each peripheral module 404 is included extremely A few component 4041 and a flash unit 4042;Wherein, target peripheral module is one in multiple peripheral modules 404;
Updating and management module 402, for when it is determined that the target element in target peripheral module 402 meets promotion condition, The target element AKU that radio access module 401 is sent is received, and target element AKU is stored in flash module 403;
Updating and management module 402, for when target element AKU finishes receiving, mesh to be obtained from flash module 403 Component upgrade bag is marked, and target element AKU is sent to target peripheral module 402;
Target peripheral module 404, for target element AKU to be stored in the specified partition of flash units, and pass through Target element AKU in operation specified partition upgrades to target element.
In another embodiment of the disclosure, updating and management module 402, it is additionally operable to send to radio access module and asks Infomational message;
Radio access module 401, it is additionally operable to when receiving solicited message message, sending upgrading to updating and management module looks into Message is ask, upgrades the version number that target element AKU is at least carried in query message;
Updating and management module 402, it is additionally operable to, when receiving upgrading query message, judge whether target element meets to upgrade Condition;
Updating and management module 402, it is additionally operable to when the voltage at target peripheral module both ends is higher than predeterminated voltage, and target element Version number be less than target element AKU version number when, determine that target element meets promotion condition.
In another embodiment of the disclosure, updating and management module 402, it is additionally operable to when target element is unsatisfactory for upgrading bar During part, reminder message is sent to radio access module 401, user is reminded by radio access module 401.
In another embodiment of the disclosure, terminal also includes multi-media module, multi-media module and updating and management mould Block 402 shares flash module 403;
Updating and management module 402, before being additionally operable to receive the target element AKU that radio access module 401 is sent, also Including:
Updating and management module 402, it is additionally operable to ask to the use that multi-media module is sent to flash module 403;
Multi-media module, it is additionally operable to, when receiving using request, stop using flash module, and to updating and management mould Block sends the first response message;
Updating and management module 402, it is additionally operable to when receiving the first response message, flash module 403 is carried out initially Change, and receive the target element AKU of the transmission of radio access module 401.
In another embodiment of the disclosure, radio access module 401, it is additionally operable to advance with updating and management module 402 Determine AES and decipherment algorithm;
Radio access module 401, it is also used for AES and target element AKU is encrypted, and is managed to upgrading Manage module and send the target element AKU after encryption;
Updating and management module 402, it is additionally operable to receive the target element AKU after encryption;
Updating and management module 402, it is also used for decipherment algorithm and the target element AKU after encryption is decrypted;
Updating and management module 402, it is additionally operable to the target element AKU after decryption being stored in flash module.
In another embodiment of the disclosure, updating and management module 402, the reception in target element AKU is additionally operable to During, byte storage will be received in the buffer, and the byte in caching is write into flash module 403 in units of page.
In another implementation of the disclosure, updating and management module 402, it is additionally operable to when it is 0 not receive byte number, will be slow Byte in depositing is compared with predetermined number;
Updating and management module 402, it is additionally operable to when the byte in caching is less than predetermined number, the byte in caching is write One page in flash module;
Updating and management module 402, it is additionally operable to when the byte in caching is more than or equal to predetermined number, will be preceding default in caching One page in quantity byte write-in flash module, and another page that remainder bytes are write in the flash module.
In another implementation of the disclosure, updating and management module 402, it is not 0 that byte number ought not be received by, which being additionally operable to, will be slow Byte in depositing is compared with predetermined number;
Updating and management module 402, it is additionally operable to, when the byte in caching is less than predetermined number, continue to target element liter Level bag, until finishing receiving;
Updating and management module 402, it is additionally operable to when the byte in caching is more than or equal to predetermined number, will be preceding default in caching One page in quantity byte write-in flash module, and remainder bytes are write to the original position cached, continue to target group Part AKU, until finishing receiving.
In another embodiment of the disclosure, updating and management module 402, it is additionally operable to that radio access module hair ought be received During the end message sent, sent to target peripheral module and start data message, start at least to carry target element in data message The byte length information of AKU;
Target peripheral module 404, it is additionally operable to, when receiving beginning data message, record the byte of target element AKU Length information, and send the second response message to updating and management module;
Updating and management module 402, it is additionally operable to when receiving the second response message, target group is obtained from flash module Part AKU.
In another embodiment of the disclosure, target peripheral module 404, it is additionally operable to that target element upgrading ought be received Bag, the byte number that can be accommodated according to specified partition one page, target element AKU is stored in specifying for flash units and divided Area.
In another embodiment of the disclosure, target peripheral module 404, it is additionally operable to that updating and management module hair ought be received The end of data message sent, restarting, run the target element AKU in specified partition;
Target peripheral module 404, it is additionally operable to when target element AKU successful operation, the mark in flag will be upgraded Upgrading mark is arranged to, to complete the upgrading to target element.
The terminal that the embodiment of the present disclosure provides, using flash module as intermediary, target element AKU storage is arrived In flash module, then the flash units that the target element AKU in flash module is sent to target peripheral module are carried out Upgrading, avoids the difference for the upgrading mode that different components are brought, saves resource, be easy to be managed collectively component.
On the terminal in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of device 500 for component upgrade according to an exemplary embodiment.For example, dress It can be mobile phone to put 500, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Reference picture 5, device 500 can include following one or more assemblies:Processing component 502, memory 504, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, input/output (I/O) interface 512, sensor cluster 514, Yi Jitong Believe component 516.
The integrated operation of the usual control device 500 of processing component 502, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 502 can refer to including one or more processors 520 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 502 can include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application program or method for operating on device 500, contact data, telephone book data, disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 504 or via communication set Part 516 is sent.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor cluster 514 can detect opening/closed mode of device 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor cluster 514 can be with 500 1 components of detection means 500 or device Position change, the existence or non-existence that user contacts with device 500, the orientation of device 500 or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 514 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 520 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device performs so that mobile terminal is able to carry out a kind of component upgrade method.
The disclosure implements the non-transitorycomputer readable storage medium provided, using flash module as intermediary, by target The storage of component upgrade bag is sent to target peripheral module into flash module, then by the target element AKU in flash module Flash units upgraded, avoid the difference for the upgrading mode that different components are brought, save resource, be easy to component It is managed collectively.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (22)

  1. A kind of 1. component upgrade method, it is characterised in that methods described is applied in terminal, and the terminal includes wireless access mould Block, updating and management module, flash module and multiple peripheral modules, each peripheral module include at least one component and one Flash units, methods described include:
    When it is determined that the target element in target peripheral module meets promotion condition, the updating and management module receives described wireless The target element AKU that AM access module is sent, and the target element AKU is stored in the flash module;
    When the target element AKU finishes receiving, described in the updating and management module obtains from the flash module Target element AKU, and the target element AKU is sent to the target peripheral module;
    The target element AKU is stored in the specified partition of flash units by the target peripheral module, and passes through operation Target element AKU in the specified partition upgrades to the target element.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    The updating and management module sends solicited message message to the radio access module;
    When receiving the solicited message message, the radio access module sends upgrading inquiry to the updating and management module Message, it is described to upgrade the version number that the target element AKU is at least carried in query message;
    When receiving the upgrading query message, the updating and management module judges whether the target element meets to upgrade bar Part;
    If the voltage at the target peripheral module both ends is higher than predeterminated voltage, and the version number of the target element is less than described The version number of target element AKU, the updating and management module determine that the target element meets promotion condition.
  3. 3. according to the method for claim 2, it is characterised in that whether the updating and management module judges the target element After meeting promotion condition, in addition to:
    If the target element is unsatisfactory for promotion condition, the updating and management module sends to the radio access module and reminded Message, user is reminded by radio access module.
  4. 4. according to the method for claim 1, it is characterised in that the terminal also includes multi-media module, the multimedia Module shares the flash module with the updating and management module;
    Before the updating and management module receives the target element AKU that the radio access module is sent, in addition to:
    The use that the updating and management module is sent to the flash module to the multi-media module is asked;
    When receiving the use request, the multi-media module stops using the flash module, and is managed to the upgrading Manage module and send the first response message;
    When receiving first response message, the updating and management module initializes to the flash module, and holds Row receives the step of target element AKU that the radio access module is sent.
  5. 5. according to the method for claim 1, it is characterised in that the updating and management module receives the radio access module The target element AKU of transmission, including:
    The radio access module predefines AES and decipherment algorithm with the updating and management module;
    The target element AKU is encrypted using the AES for the radio access module, and to the upgrading Management module sends the target element AKU after encryption;
    The updating and management module receives the target element AKU after the encryption;
    It is described that the target element AKU is stored in the flash module, including:
    The target element AKU after the encryption is decrypted using the decipherment algorithm for the updating and management module;
    Target element AKU after decryption is stored in the flash module by the updating and management module.
  6. 6. according to the method for claim 1, it is characterised in that it is described the target element AKU is stored in it is described Flash module, including:
    In the receive process of the target element AKU, the updating and management module will receive byte and be stored in caching In, and the byte in the caching is write into the flash module in units of page.
  7. 7. according to the method for claim 6, it is characterised in that described to be write the byte in the caching in units of page The flash module, including:
    If it is 0 not receive byte number, the updating and management module is by the byte in the caching compared with predetermined number;
    If the byte in the caching is less than the predetermined number, the updating and management module writes the byte in the caching Enter one page in the flash module;
    If the byte in the caching is more than or equal to the predetermined number, the updating and management module is by preceding institute in the caching One page that predetermined number byte is write in the flash module is stated, and remainder bytes are write another in the flash module One page.
  8. 8. according to the method for claim 6, it is characterised in that described to be write the byte in the caching in units of page The flash module, including:
    If it is not 0 not receive byte number, the updating and management module is compared the byte in the caching with predetermined number Compared with;
    If the byte in the caching is less than the predetermined number, the updating and management module continues to the target element AKU, until finishing receiving;
    If the byte in the caching is more than or equal to the predetermined number, the updating and management module is by preceding institute in the caching One page that predetermined number byte is write in the flash module is stated, and remainder bytes are write to the original position of the caching, The target element AKU is continued to, until finishing receiving.
  9. 9. according to the method for claim 1, it is characterised in that the updating and management module obtains from the flash module Before taking the target element AKU, in addition to:
    When receiving the end message that the radio access module is sent, the updating and management module is to the target peripheral mould Block, which is sent, starts data message, the byte length letter for starting at least to carry the target element AKU in data message Breath;
    When receiving the beginning data message, the target peripheral module records the byte long of the target element AKU Information is spent, and the second response message is sent to the updating and management module;
    When receiving second response message, the updating and management module is performed from the flash module described in acquisition The operation of target element AKU.
  10. 10. according to the method for claim 1, it is characterised in that the target peripheral module upgrades the target element Bag is stored in the specified partition of flash units, including:
    When receiving the target element AKU, the target peripheral module can accommodate according to described specified partition one page Byte number, the target element AKU is stored in the specified partitions of flash units.
  11. 11. according to the method for claim 1, it is characterised in that described by running the target element AKU to institute Target element is stated to be upgraded, including:
    When receiving the end of data message that the updating and management module is sent, the target peripheral module restarting, fortune The target element AKU in the row specified partition;
    If the target element AKU successful operation, the target peripheral module sets the mark upgraded in flag Identified for upgrading, to complete the upgrading to the target element.
  12. A kind of 12. terminal, it is characterised in that the terminal include radio access module, updating and management module, flash module and Multiple peripheral modules, each peripheral module include at least one component and a flash unit;
    The updating and management module, for when it is determined that the target element in target peripheral module meets promotion condition, receiving institute The target element AKU of radio access module transmission is stated, and the target element AKU is stored in the flash module;
    The updating and management module, for when the target element AKU finishes receiving, being obtained from the flash module The target element AKU, and the target element AKU is sent to the target peripheral module;
    The target peripheral module, for the target element AKU to be stored in into the specified partition of flash units, and pass through The target element AKU run in the specified partition upgrades to the target element.
  13. 13. terminal according to claim 12, it is characterised in that the updating and management module, be additionally operable to described wireless AM access module sends solicited message message;
    The radio access module, it is additionally operable to when receiving the solicited message message, is sent to the updating and management module Upgrade query message, the version number of the target element AKU is at least carried in the upgrading query message;
    The updating and management module, it is additionally operable to, when receiving the upgrading query message, judge whether the target element is full Sufficient promotion condition;
    The updating and management module, it is additionally operable to when the voltage at the target peripheral module both ends is higher than predeterminated voltage, and the mesh When the version number of mark component is less than the version number of the target element AKU, determine that the target element meets promotion condition.
  14. 14. terminal according to claim 13, it is characterised in that the updating and management module, be additionally operable to work as the target When component is unsatisfactory for promotion condition, reminder message is sent to the radio access module, user is carried out by radio access module Remind.
  15. 15. terminal according to claim 12, it is characterised in that the terminal also includes multi-media module, more matchmakers Module shares the flash module with the updating and management module;
    The updating and management module, before being additionally operable to receive the target element AKU that the radio access module is sent, also wrap Include:
    The updating and management module, it is additionally operable to ask to the use that the multi-media module is sent to the flash module;
    The multi-media module, be additionally operable to when receive it is described using request when, stop using the flash module, and to institute State updating and management module and send the first response message;
    The updating and management module, it is additionally operable to when receiving first response message, the flash module is carried out initial Change, and receive the target element AKU that the radio access module is sent.
  16. 16. terminal according to claim 12, it is characterised in that the radio access module, be additionally operable to and the upgrading Management module predefines AES and decipherment algorithm;
    The radio access module, it is also used for the AES and the target element AKU is encrypted, and to The updating and management module sends the target element AKU after encryption;
    The updating and management module, it is additionally operable to receive the target element AKU after the encryption;
    The updating and management module, it is also used for the decipherment algorithm and the target element AKU after the encryption is solved It is close;
    The updating and management module, it is additionally operable to the target element AKU after decryption being stored in the flash module.
  17. 17. terminal according to claim 12, it is characterised in that the updating and management module, be additionally operable in the target In the receive process of component upgrade bag, byte storage will have been received in the buffer, and by the word in the caching in units of page Section writes the flash module.
  18. 18. terminal according to claim 17, it is characterised in that the updating and management module, be additionally operable to receive word When joint number is 0, by the byte in the caching compared with predetermined number;
    The updating and management module, it is additionally operable to when the byte in the caching is less than the predetermined number, by the caching One page for writing in the flash module of byte;
    The updating and management module, it is additionally operable to when the byte in the caching is more than or equal to the predetermined number, will be described slow One page that the preceding predetermined number byte is write in the flash module is deposited, and remainder bytes are write into the flash moulds Another page in block.
  19. 19. terminal according to claim 17, it is characterised in that the updating and management module, be additionally operable to receive word Joint number is not 0, by the byte in the caching compared with predetermined number;
    The updating and management module, it is additionally operable to when the byte in the caching is less than the predetermined number, continues to described Target element AKU, until finishing receiving;
    The updating and management module, it is additionally operable to when the byte in the caching is more than or equal to the predetermined number, will be described slow One page that the preceding predetermined number byte is write in the flash module is deposited, and remainder bytes are write into the caching Original position, the target element AKU is continued to, until finishing receiving.
  20. 20. terminal according to claim 12, it is characterised in that the updating and management module, be additionally operable to that institute ought be received When stating the end message of radio access module transmission, sent to the target peripheral module and start data message, it is described to start to count According to the byte length information that the target element AKU is at least carried in message;
    The target peripheral module, it is additionally operable to, when receiving the beginning data message, record the target element AKU Byte length information, and to the updating and management module send the second response message;
    The updating and management module, it is additionally operable to, when receiving second response message, institute be obtained from the flash module State target element AKU.
  21. 21. terminal according to claim 12, it is characterised in that the target peripheral module, be additionally operable to that institute ought be received Target element AKU is stated, the byte number that can be accommodated according to described specified partition one page, the target element AKU is deposited Storage is in the specified partition of flash units.
  22. 22. terminal according to claim 12, it is characterised in that the target peripheral module, be additionally operable to that institute ought be received The end of data message of updating and management module transmission is stated, restarting, runs the target element liter in the specified partition Level bag;
    The target peripheral module, it is additionally operable to when the target element AKU successful operation, the mark in flag will be upgraded Knowledge is arranged to upgrading mark, to complete the upgrading to the target element.
CN201610666197.1A 2016-08-12 2016-08-12 Component upgrading method and terminal Active CN107733674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610666197.1A CN107733674B (en) 2016-08-12 2016-08-12 Component upgrading method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610666197.1A CN107733674B (en) 2016-08-12 2016-08-12 Component upgrading method and terminal

Publications (2)

Publication Number Publication Date
CN107733674A true CN107733674A (en) 2018-02-23
CN107733674B CN107733674B (en) 2021-03-09

Family

ID=61201478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610666197.1A Active CN107733674B (en) 2016-08-12 2016-08-12 Component upgrading method and terminal

Country Status (1)

Country Link
CN (1) CN107733674B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626060A (en) * 2021-08-06 2021-11-09 天津津航计算技术研究所 Online upgrade method based on separated storage under vxworks system
CN114125902A (en) * 2021-11-30 2022-03-01 上海移远通信技术股份有限公司 WWAN equipment and configuration method, device and storage medium thereof
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577901A (en) * 2009-06-19 2009-11-11 中兴通讯股份有限公司 Wireless access platform and equipment upgrading management system and method thereof
US20100135164A1 (en) * 2008-12-02 2010-06-03 Broadcom Corporation Millimeter wave probing of components via a probe device and methods for use therewith
CN103392174A (en) * 2012-11-29 2013-11-13 华为技术有限公司 System based on flash storage, partitioning method and apparatus
CN104967497A (en) * 2015-06-09 2015-10-07 武汉数字派特科技有限公司 Network communication protocol-based reliable data transmission method and upgrading method
CN105278998A (en) * 2015-11-17 2016-01-27 北京联合众为科技发展有限公司 Single-chip microcomputer hardware upgrading method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100135164A1 (en) * 2008-12-02 2010-06-03 Broadcom Corporation Millimeter wave probing of components via a probe device and methods for use therewith
CN101577901A (en) * 2009-06-19 2009-11-11 中兴通讯股份有限公司 Wireless access platform and equipment upgrading management system and method thereof
CN103392174A (en) * 2012-11-29 2013-11-13 华为技术有限公司 System based on flash storage, partitioning method and apparatus
CN104967497A (en) * 2015-06-09 2015-10-07 武汉数字派特科技有限公司 Network communication protocol-based reliable data transmission method and upgrading method
CN105278998A (en) * 2015-11-17 2016-01-27 北京联合众为科技发展有限公司 Single-chip microcomputer hardware upgrading method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium
CN113626060A (en) * 2021-08-06 2021-11-09 天津津航计算技术研究所 Online upgrade method based on separated storage under vxworks system
CN113626060B (en) * 2021-08-06 2023-08-01 天津津航计算技术研究所 Online upgrade method based on separate storage under vxworks system
CN114125902A (en) * 2021-11-30 2022-03-01 上海移远通信技术股份有限公司 WWAN equipment and configuration method, device and storage medium thereof
CN114125902B (en) * 2021-11-30 2024-09-20 上海移远通信技术股份有限公司 WWAN (wireless network access network) equipment, configuration method, device and storage medium thereof

Also Published As

Publication number Publication date
CN107733674B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN104536848B (en) Firmware restoration method, apparatus and terminal
CN105607927A (en) Page display method and apparatus
CN104156236A (en) Storage space saving method and device
CN106293507A (en) There is electronic equipment and the method for operation electronic equipment of external memory storage
CN107122135A (en) Data processing method and device
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN104020990B (en) Date selects control display methods and device
CN106598395A (en) Method and device for executing task
CN103984664B (en) Access the method, apparatus and system in cloud space
CN106126685A (en) Page loading method and device
CN105553963A (en) Control method and device of positioning services
CN107357613A (en) Using update method, device and computer-readable recording medium
CN106528249A (en) Storage method and device of upgrade package, and terminal
CN106951280A (en) Mobile terminal and apply restorative procedure
CN104038537A (en) Contact list information management method and device and mobile terminal
CN104219378A (en) Information processing method and device
CN107733674A (en) Component upgrade method and terminal
CN104111829A (en) Data storage method and device
CN107423059A (en) Display methods, device and the terminal of the page
CN104503786A (en) Method and device for refreshing firmware
CN106708967A (en) Page display method and device
CN107577810A (en) Method for writing data, device and computer-readable recording medium
CN107239771A (en) Fingerprint calibration method and device
CN104951337B (en) File increment update method and device
CN107632835A (en) Using installation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant