CN101790252B - Method and system for updating firmware - Google Patents

Method and system for updating firmware Download PDF

Info

Publication number
CN101790252B
CN101790252B CN200910045919.1A CN200910045919A CN101790252B CN 101790252 B CN101790252 B CN 101790252B CN 200910045919 A CN200910045919 A CN 200910045919A CN 101790252 B CN101790252 B CN 101790252B
Authority
CN
China
Prior art keywords
module
application
communication module
communication
firmware
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.)
Active
Application number
CN200910045919.1A
Other languages
Chinese (zh)
Other versions
CN101790252A (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.)
Inventec Appliances Shanghai Corp
Original Assignee
Inventec Appliances Shanghai Corp
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 Inventec Appliances Shanghai Corp filed Critical Inventec Appliances Shanghai Corp
Priority to CN200910045919.1A priority Critical patent/CN101790252B/en
Publication of CN101790252A publication Critical patent/CN101790252A/en
Application granted granted Critical
Publication of CN101790252B publication Critical patent/CN101790252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for updating a firmware, comprising the following steps: downloading and storing the update file of the firmware of a communication module, a preset application program and the update file of the firmware of an application module to the application module in the process of updating the firmware of the application module; acquiring the application program by the communication module; building a data transmission channel for the application module by utilizing the application program; and then downloading the update file of the firmware of the communication module from the application module through the data transmission channel, and storing the update file of the firmware of the communication module into the storage of the communication module so as to finish updating the firmware of the communication module. The invention also provides a system for updating the firmware. The method and the system for updating the firmware provided by the invention combine the firmware update of the application module and the firmware update of the communication module which are needed to be respectively and independently carried out in the prior art into one process, the operation is more convenient, and the speed and the efficiency of updating the firmware of a smart phone can be greatly improved.

Description

The method and system that a kind of firmware upgrades
Technical field
The present invention relates to computer communication technology, be specifically related to the method and system that a kind of firmware upgrades.
Background technology
Along with the development of integrated circuit technique, cost was but in continuous reduction when the disposal ability of integrated circuit (IC) chip constantly strengthened.Under the drive of hardware technology progress, mobile communication terminal upgrades to the smart mobile phone (Smartphone) with various application disposal abilities gradually from traditional mobile phone that only has the single phone function gradually.Exist at present on the market miscellaneous smart mobile phone, the maximum difference of the mobile phone that they and traditional function are comparatively single is: the common hardware handles ability of smart mobile phone is stronger and memory space is larger, thereby have the ability to use more application software resources, portioned product can also the operation system; Because have powerful hardware handles ability and abundant software resource, smart mobile phone not only can be realized telephony feature, generally can also carry out various application such as word processing, mail, network application, multi-media recording and broadcast.
Traditional mobile phone terminal generally only comprises be used to the single processor chips of finishing the telephony feature application and (correspondingly comprises the functional circuit that some are peripheral, be arranged in the middle of the circuit board with described processor chips are integrated, be commonly referred to communication module or Modem module), and why smart mobile phone can realize telephony feature numerous other functions in addition, depending on its different hardware structure is achieved, the hardware structure of described smart mobile phone usually as shown in Figure 1, by the Modem module 110 of main realization telephony feature with mainly carry out the additional function (word processing of for example mentioning in the preamble, mail, the application such as multimedia) application module 120 (usually being also referred to as the Application module) forms, Modem module 110 and application module 120 be independent the setting respectively, for convenience of description, the below will only describe the circuit unit relevant with the firmware renewal process, and other functional unit well known to those skilled in the art will omit in narration:
Described Modem module 110 further comprises first processor unit 111, or non-memory cell 112 and the first communication port 113; Described the first communication port 113 links to each other with application module 120 and communicates;
Described application module 120 further comprises the second processor unit 121, with non-memory cell 122, the second communication ports 123 and external series communication port 124; Described the second communication port 123 links to each other with Modem module 110 and communicates, and external series communication port 124 then is used for being connected with other equipment (for example upper PC or other handheld device) of smart mobile phone outside.
Because present mobile phone production is an industry that the Collaborative degree is very high, described Modem module 110 usually solves the merchant by different Integrated Solutions respectively with application module 120 and provides respectively, is integrated connection and is formed final products by mobile phone development manufacturer again.Because described two modules are generally from different production firms, thus its firmware separately more new tool usually be self-existent, they are carried out just need to carrying out respectively when firmware upgrades.Below introduce in detail respectively:
Because described the first communication port is linking to each other with the second communication port that application module carries out being used as when integrated with in the application module, therefore the firmware for the Modem module upgrades, whether take according to described the first communication port and to be divided into dual mode, the first is (to be that the Modem module is not yet integrated with application module and is connected in the situation of described the first communication port free time, this moment, described the first communication port was idle), the Modem module linked to each other with host computer by this first communication port carry out the firmware renewal; Another kind of then be that (to be the Modem module with application module finish to integrate is connected in the situation that described the first communication port takies, this moment, described the first communication port was occupied), the Modem module linked to each other with host computer by this first communication port carry out firmware renewal.More new technological process is basic identical for concrete firmware in two kinds of situations, and difference only is:
Described the first communication port is in idle condition in the first situation, therefore can directly be connected with host computer (being generally PC), by host computer it is carried out firmware and upgrades; Be that described the first communication port arranges a state and switches pin and need in advance Modem module and application module being integrated when being connected in the second situation, when needs carry out the firmware renewal to the Modem module, then this pin is made as firmware and upgrades effective state, this moment described the first communication port and application module the disconnection that is connected, thereby can be according to the identical method of the first situation described Modem module being carried out the firmware renewal; And when this pin was in firmware and upgrades invalid state, described the first communication port was used for communicating with application module and is connected, and then can't carry out firmware to this Modem module this moment and upgrade.
Described the Modem module is carried out method that firmware upgrades as shown in Figure 2, idiographic flow comprises:
After step 201:Modem module powers on, send sync byte to host computer and confirm request;
Step 202: if the Modem module receives the affirmation message that host computer returns in setting-up time, then enter firmware and upgrade downloading mode;
Step 203:Modem module is downloaded the configuration code of pre-save on host computer, according to described configuration code configuration and set up data transmission channel between Modem module and the host computer;
Step 204: the data transmission channel that utilizes described foundation is further downloaded the firmware transaction file of Modem module from the host computer, with described firmware transaction file download be saved in or non-memory in the middle of.
So far, to the firmware of Modem module more new technological process finish.
More new technological process as for application module, itself and step 201~204 are identical, difference only is that the executive agent in step 201~204 correspondingly should be application module, and the communication of described application module and host computer is undertaken by the external series communication port.
Seen from the above description, in the prior art, no matter be development and testing or mobile phone application developers the debugging setting in secondary development process of mobile phone development manufacturer in producing integration process, when carrying out the firmware renewal at every turn, all need to more carry out respectively more new technological process of above-mentioned firmware to two modules in the new tool at two different firmwares, this is obviously also inconvenient.Especially when the mobile phone quantity that need to carry out the firmware renewal was more, this firmware update of prior art must require a great deal of time, thereby seriously reduces operating efficiency, so that the process time and effort consuming that whole firmware upgrades.
Summary of the invention
The invention provides the method and system that a kind of firmware upgrades, can integrate the more new technological process of application module and Modem module, improve speed and efficient that firmware upgrades.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
The method that a kind of firmware upgrades, the method comprises:
In application modules is carried out process that firmware upgrades, the firmware transaction file of communication module, the application program that sets in advance are downloaded to application module together with the firmware transaction file of application module and preserve;
Communication module is obtained described application program, utilize the data transmission channel of described application program foundation and application module, again by the firmware transaction file of described data transmission channel from application module download communication module, and be saved in the middle of the memory of communication module self, the firmware of finishing communication module upgrades.
Described communication module is obtained described application program, utilizes described application program foundation and the method for the data transmission channel of application module to comprise:
Application module powers on to communication module according to the indication of described application program, after receiving sync byte that communication module returns and confirming request, returns acknowledge message according to the indication of described application program to communication module again;
If communication module receives described acknowledge message in setting-up time, then communication module is downloaded the configuration code that comprises in the described application program, according to the configuration of described configuration code and set up data transmission channel between communication module and application module.
Described firmware transaction file with communication module, the application program that sets in advance download to application module together with the firmware transaction file of application module and the method for preserving comprises:
The firmware transaction file of described communication module, the application program that sets in advance are included in the middle of the firmware transaction file of application module, after downloading to simultaneously the random access memory RAM of application module, the more described content among the RAM is write in the middle of the memory of application module.
Described firmware transaction file with communication module, the application program that sets in advance download to application module together with the firmware transaction file of application module and the method for preserving comprises:
With the application program that the sets in advance firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to the RAM of application module after, the described content among the RAM is write in the middle of the memory of application module again;
Application module moves described application program, and the firmware transaction file of download communication module writes the content among the RAM in the middle of the memory of application module behind the RAM of application module again.
Utilize described data transmission channel from the firmware transaction file of application module download communication module, and be saved in the middle of the memory of communication module self, the method for finishing the firmware renewal of communication module comprises:
Utilize the firmware transaction file of data transmission channel download communication module from the memory of application module of described foundation, described firmware transaction file is downloaded be saved in the middle of the memory of communication module.
Described firmware transaction file with communication module, the application program that sets in advance download to application module together with the firmware transaction file of application module and the method for preserving comprises:
With the application program that the sets in advance firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to the RAM of application module after, the described content among the RAM is write in the middle of the memory of application module again;
Application module moves described application program, and the firmware transaction file of download communication module also is saved in the middle of the RAM of application module.
Utilize described data transmission channel from the firmware transaction file of application module download communication module and be saved in the middle of the memory of communication module, finish the method that the firmware of communication module upgrades and comprise:
Utilize the firmware transaction file of data transmission channel download communication module from the RAM of application module of described foundation, described firmware transaction file is downloaded be saved in the middle of the memory of communication module.
The system that a kind of firmware upgrades, this system comprises: application module and communication module;
Application module is used for from the outside firmware transaction file of communication module, the application program that sets in advance being downloaded to application module together with the firmware transaction file of application module and preserving; Also be used for sending described application program to communication module, and utilize data transmission channel that communication module sets up that the firmware transaction file of described communication module is sent to communication module;
Communication module, be used for obtaining described application program from application module, utilize the data transmission channel of described application program foundation and application module, utilize described data transmission channel from the firmware transaction file of application module download communication module, and be saved in the middle of the memory of communication module self, the firmware of finishing communication module upgrades.
Described application module further comprises: the second processor unit, second memory unit, the second communication port and external series communication port;
Described the second processor unit, link to each other with communication module by the second communication port, be used for containing the firmware transaction file of communication module and the firmware transaction file of the application module of the application program that sets in advance from outside download package by the external series communication port, and send to described second memory unit; Also be used for powering on to communication module according to the indication of described application program, the sync byte that receives described communication module transmission by the second communication port is confirmed request and is returned acknowledge message by the second communication port to it; Afterwards the configuration code that comprises in the application program of preserving in the second memory unit is sent to communication module by the second communication port, the data transmission channel that utilization is set up according to described configuration code is transferred to communication module by the second communication port with the firmware transaction file of communication module;
Described the second communication port is used for connecting the second processor unit and communication module, and transmits the communication message between all second processor units and the communication module;
Described external series communication port is used for the firmware transaction file of application module, the firmware transaction file of communication module and the application program that sets in advance are transmitted to the second processor unit;
Described second memory unit, be used for to preserve firmware transaction file, the firmware transaction file of communication module and the application program that sets in advance of the application module that the second processor unit sends, and receive reading of the second processor unit and call, the configuration code that comprises in the described application program is returned to the second processor unit, and also the firmware transaction file with described communication module returns to the second processor unit.
Described application module further comprises: the second processor unit, second memory unit, the second communication port and external series communication port;
Described the second processor unit, link to each other with communication module by the second communication port, be used for by the external series communication port from the firmware transaction file of outside down load application module and the application program that sets in advance, and send to described second memory unit, move described application program, by the external series communication port from the firmware transaction file of outside download communication module and send to described second memory unit; Also be used for powering on to communication module according to the indication of described application program, the sync byte that receives described communication module transmission by the second communication port is confirmed request and is returned acknowledge message by the second communication port to it; Afterwards the configuration code that comprises in the application program of preserving in the second memory unit is sent to communication module by the second communication port, the data transmission channel that utilization is set up according to described configuration code is transferred to communication module by the second communication port with the firmware transaction file of communication module;
Described the second communication port is used for connecting the second processor unit and communication module, and transmits the communication message between all second processor units and the communication module;
Described external series communication port is used for the firmware transaction file of application module, the firmware transaction file of communication module and the application program that sets in advance are transmitted to the second processor unit;
Described second memory unit, be used for to preserve firmware transaction file, the firmware transaction file of communication module and the application program that sets in advance of the application module that the second processor unit sends, and receive reading of the second processor unit and call, the configuration code that comprises in the described application program is returned to the second processor unit, and also the firmware transaction file with described communication module returns to the second processor unit.
Described communication module further comprises: first processor unit, first memory unit and the first communication port;
Described first processor unit, link to each other with application module by the first communication port, be used for after powering on, sending the confirmation of synchronization request by the first communication port to application module, when in setting-up time, receive the affirmation message that described application module returns by the first communication port after, download the configuration code that comprises the described application program by the first communication port from described application module, according to the configuration of described configuration code and set up data transmission channel between communication module and application module, utilize described passage and by the first communication port from the firmware transaction file of the second memory unit download communication module of application module and send to the first memory unit;
Described first memory unit is used for firmware transaction file and the preservation of the communication module of reception first processor unit transmission;
Described the first communication port is used for connecting first processor unit and application module, and transmits the communication message between all application modules and the first processor unit.
Described application module further comprises: the second processor unit, second memory unit, the second communication port and external series communication port;
Described the second processor unit links to each other with communication module by the second communication port, is used for by the external series communication port from the firmware transaction file of outside down load application module and the application program that sets in advance, and sends to described second memory unit; Move described application program, by the external series communication port from the firmware transaction file of outside download communication module and be kept in the core buffer of the second processor unit self; Also be used for powering on to communication module according to the indication of described application program, the sync byte that receives described communication module transmission by the second communication port is confirmed request and is returned acknowledge message by the second communication port to it; Afterwards the configuration code that comprises in the application program of preserving in the second memory unit is sent to communication module by the second communication port, the data transmission channel that utilization is set up according to described configuration code is transferred to communication module by the second communication port with the firmware transaction file of the communication module in the described core buffer;
Described the second communication port is used for connecting the second processor unit and communication module, and transmits the communication message between all second processor units and the communication module;
Described external series communication port is used for the firmware transaction file of application module, the firmware transaction file of communication module and the application program that sets in advance are transmitted to the second processor unit;
Described second memory unit, be used for to preserve the firmware transaction file of the application module that the second processor unit sends and the application program that sets in advance, and receive reading of the second processor unit and call, the configuration code that comprises in the described application program is returned to the second processor unit.
Described communication module further comprises: first processor unit, first memory unit and the first communication port;
Described first processor unit, link to each other with application module by the first communication port, be used for after powering on, sending the confirmation of synchronization request by the first communication port to application module, when in setting-up time, receive the affirmation message that described application module returns by the first communication port after, download the configuration code that comprises the described application program by the first communication port from described application module, according to the configuration of described configuration code and set up data transmission channel between communication module and application module; Utilize described passage and by the first communication port from the firmware transaction file of application module download communication module and send to the first memory unit;
Described first memory unit is used for firmware transaction file and the preservation of the communication module of reception first processor unit transmission;
Described the first communication port is used for connecting first processor unit and application module, and transmits the communication message between all application modules and the first processor unit.
First memory unit in the described communication module and the second memory unit in the application module are the nonvolatile memory of any type.
As seen from the above technical solutions, the method and system that this firmware provided by the invention upgrades, by setting in advance application program and carrying out in the process of firmware renewal in application modules, download in the lump in the middle of the application module together with the firmware transaction file of Modem module, so that application module moves after the described application program, can be in the function of application module simulation host computer, thereby the Modem module can further download to the firmware transaction file of described Modem module in the middle of the memory of self, thereby the firmware of having realized simultaneously application modules and Modem module upgrades; The application module firmware that needs in the prior art independently to carry out is respectively upgraded in the present invention and the renewal of Modem module firmware is integrated into a flow process, and do not need the first communication port according to the Modem module whether to take and adopt different firmware update modes, not only operation is more convenient, has also greatly improved smart mobile phone and has carried out speed and the efficient that firmware upgrades.
Description of drawings
Fig. 1 is the structural representation of the hardware structure of smart mobile phone in the prior art.
Fig. 2 carries out the schematic flow sheet that firmware upgrades to the Modem module in the prior art.
Fig. 3 is the schematic flow sheet of the method that firmware upgrades in the embodiment of the invention.
Fig. 4 is the composition structural representation of the system that firmware upgrades in the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The method that the embodiment of the invention provides a kind of firmware to upgrade, the Modem module was finished to integrate with application module and was connected this moment, and its flow process specifically comprises as shown in Figure 3:
Step 301: in application modules is carried out process that firmware upgrades, the firmware transaction file of Modem module, the application program MiniApp that sets in advance are downloaded to application module together with the firmware transaction file of application module and preserve;
Wherein, it is same as the prior art that application modules is carried out the method that firmware upgrades, and no longer launches explanation; Understand easily simultaneously, the method that the firmware transaction file with the Modem module in the described step 301, the application program MiniApp that sets in advance download together with the firmware transaction file of application module can have numerous embodiments, for example:
1) download simultaneously All Files---namely, the firmware transaction file of described Modem module, the application program MiniApp that sets in advance are included in the middle of the firmware transaction file of application module, download in the lump application module.
2) download at twice, this moment, described step 301 was:
Step 301a: with the firmware transaction file of the Modem module firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to application module and preserve;
Step 301b: application module is downloaded the application program MiniApp set in advance and is preserved from host computer again.
3) download at twice, this moment, step 301 was:
Step 301c: with the application program MiniApp that the sets in advance firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to application module and preserve;
Step 301d: application module moves described application program, downloads the firmware transaction file of Modem module and preserves from host computer again.
Above-mentionedly all belong to the alternate embodiments that those skilled in the art expect easily, enumerate no longer one by one as space is limited, should be understood that these are the execution mode that the present invention can adopt, the present invention does not do strict concrete restriction.
Step 302:Modem module is obtained described application program, utilize the data transmission channel of described application program foundation and application module, download the firmware transaction file of Modem module from application module by described data transmission channel, and be saved in the middle of the memory of Modem module self, finish more new technological process of firmware.
Described step 302 further comprises:
Step 302a: application module powers on to the Modem module according to the indication of described application program;
Because having finished to integrate with application module at this moment, the Modem module is connected, therefore the Modem module links to each other with application module by the first communication port, the unified control of the unlatching of its power supply of while and universal input and output port (GPIO) the control pin that shutoff is subject to smart mobile phone inside, thus application module can be by controlling turning on and off of Modem module to the operation of this GPIO control pin.Though this part is not shown in the circuit structure of preamble, because it is ability and technical staff's common practise, therefore no longer describe in detail.
After step 302b:Modem module powers on, send sync byte to application module and confirm request;
It should be explicitly made clear at this point, all control commands of Modem module and application module and transfer of data all by described the first communication port be connected the communication that is connected of communication port and realize that in the lump explanation will repeat no more hereinafter herein.
Step 302c: after application module receives described request, if under the control of described application program, (this setting-up time is generally the ms level at setting-up time, be generally 50ms) in return acknowledge message to the Modem module, then the Modem module enters firmware according to this acknowledge message and upgrades downloading mode; If the overtime acknowledge message of not returning, then the Modem module enters normal mode of operation, and described normal mode of operation and the present invention are irrelevant, so no longer be introduced.
Step 302d:Modem module is downloaded the configuration code that comprises in the described application program, according to the configuration of described configuration code and set up data transmission channel between Modem module and application module;
Step 302e: in the middle of that the data transmission channel that utilizes described foundation is further downloaded the firmware transaction file of Modem module and is saved in the Modem module from application module or the non-memory, the firmware of finishing the Modem module upgrades.
Wherein, step 301 adopts 1 in actual applications), 2) or 3) execution mode the time:
After application module reads random access memory (Random Access Memory, RAM) with file, again the file among the RAM is write with non-memory in the middle of.
Because the read or write speed of RAM is than faster with the read or write speed of non-memory, the general small volume of firmware transaction file of Modem module can not cause materially affect to the memory space of RAM simultaneously, therefore, in order further to accelerate speed and the efficient that described firmware upgrades, for step 301 the 3rd) plant for the execution mode, described step 301 can also for:
With the application program MiniApp that the sets in advance firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to application module and be saved in non-memory in the middle of;
Application module moves described application program, downloads the firmware transaction file of Modem module from host computer, and the firmware transaction file of described Modem module is kept in the middle of the RAM of application module.
Why for the 1st) and 2) execution mode the firmware transaction file of described Modem module can not be kept in the middle of the RAM of application module, because when application module moves described application program for the first time, the RAM of meeting application modules reinitializes, therefore, for the 1st) and 2) execution mode, RAM is carried out in the initialized process running application, existing inside among the RAM all can be emptied, thereby the firmware transaction file of described Modem module can't be kept in the middle of the RAM.And the 3rd) plant execution mode since run application RAM carried out initialization after, just begin to download the firmware transaction file of Modem module, so the problem that can not exist RAM to be cleared; In addition, although also can move described application program among the step 302a, owing to carried out described application program (step 302a moves this application program for the first time), the problem that therefore can not cause RAM to be cleared equally before.
Correspondingly, for step 301 1) or 2) execution mode, described step 302e is:
The data transmission channel that utilizes described foundation from application module with non-memory download the firmware transaction file of Modem module, with described firmware transaction file download be saved in or non-memory in the middle of.
And for step 301 3) execution mode, described step 302e then is:
Utilize the data transmission channel of described foundation from the RAM of application module, to download the firmware transaction file of Modem module, with described firmware transaction file download be saved in or non-memory in the middle of.
Need to prove, the Main Function of the described application program that sets in advance is described configuration code is downloaded to first application module, then described application program further sends to the Modem module with this configuration code again, is set up the data transmission channel of itself and application module according to this configuration code by the Modem module; Described Modem module mutual by with described application program more afterwards downloads to the firmware transaction file of Modem module in the middle of the memory of self by described data transmission channel.
At last, understand easily, in the Modem module of mentioning in the preamble or non-memory, and in the application module and non-memory, it is the description of carrying out according to the storage device type that these two modules in the common smart mobile phone equipment are generally used, do not represent to limit, in fact described memory can be the nonvolatile memory of any type fully.
The embodiment of the invention also further provides a kind of system of firmware renewal on the basis of the method that described firmware upgrades, it forms structure as shown in Figure 4, comprising: Modem module 410 and application module 420;
Application module 420 is used for from the outside firmware transaction file of Modem module 410, the application program that sets in advance being downloaded to application module 420 together with the firmware transaction file of application module 420 and preserving; Also be used for sending described application program to Modem module 410, and utilize data transmission channel that Modem module 410 sets up that the firmware transaction file of described Modem module 410 is sent to Modem module 410;
Modem module 410, be used for obtaining described application program from application module 420, utilize the data transmission channel of described application program foundation and application module 420, utilize described data transmission channel to download the firmware transaction file of Modem module 410 from application module 420, and be saved in the middle of the memory of Modem module 410 self, the firmware of finishing Modem module 410 upgrades.
Corresponding from the different execution modes of step 301 in the previously described method, described application module 420 at least also comprises three kinds of execution modes accordingly:
1) described application module 420 further comprises: the second processor unit 421, with non-memory cell 422, the second communication port 423 and external series communication port 424;
Described the second processor unit 421, link to each other with Modem module 410 by the second communication port 423, be used for containing the firmware transaction file of Modem module 410 and the firmware transaction file of the application module 420 of the application program that sets in advance from outside download package by external series communication port 424, and send to described and non-memory cell 422; Also be used for powering on to Modem module 410 according to the indication of described application program, receive sync byte that described Modem module 410 sends by the second communication port 423 and confirm request and return acknowledge message by the second communication port 423 to it; To send to Modem module 410 by the second communication port 423 with the configuration code that comprises in the application program of preserving in the non-memory cell 422 afterwards, the data transmission channel that utilization is set up according to described configuration code is transferred to Modem module 410 by the second communication port 423 with the firmware transaction file of Modem module 410;
2) 420 of described application modules further comprise: the second processor unit 421, with non-memory cell 422, the second communication port 423 and external series communication port 424;
Described the second processor unit 421, link to each other with Modem module 410 by the second communication port 423, be used for by external series communication port 424 from the firmware transaction file of outside down load application module 420 and the application program that sets in advance, and send to described and non-memory cell 422, move described application program, download the firmware transaction file of Modem module 410 from the outside and send to described and non-memory cell 422 by external series communication port 424; Also be used for powering on to Modem module 410 according to the indication of described application program, receive sync byte that described Modem module 410 sends by the second communication port 423 and confirm request and return acknowledge message by the second communication port 423 to it; To send to Modem module 410 by the second communication port 423 with the configuration code that comprises in the application program of preserving in the non-memory cell 422 afterwards, the data transmission channel that utilization is set up according to described configuration code is transferred to Modem module 410 by the second communication port 423 with the firmware transaction file of Modem module 410;
3) described application module 420 further comprises: the second processor unit 421, with non-memory cell 422, the second communication port 423 and external series communication port 424;
Described the second processor unit 421, link to each other with Modem module 410 by the second communication port 423, be used for by external series communication port 424 from the firmware transaction file of outside down load application module 420 and the application program that sets in advance, and send to described and non-memory cell 422; Move described application program, download the firmware transaction file of Modem module 410 from the outside and be kept in the core buffer of the second processor unit 421 self by external series communication port 424; Also be used for powering on to Modem module 410 according to the indication of described application program, receive sync byte that described Modem module 410 sends by the second communication port 423 and confirm request and return acknowledge message by the second communication port 423 to it; To send to Modem module 410 by the second communication port 423 with the configuration code that comprises in the application program of preserving in the non-memory cell 422 afterwards, the data transmission channel that utilization is set up according to described configuration code is transferred to Modem module 410 by the second communication port 423 with the firmware transaction file of the Modem module 410 in the described core buffer;
In above-mentioned three kinds of execution modes, all identical with external series communication port 424 with non-memory cell 422, the second communication port 423 in the described application module 420 is respectively:
Described the second communication port 423 is used for connecting the second processor unit 421 and Modem module 410, and transmits the communication message between all second processor units 421 and the Modem module 410;
Described external series communication port 424 is used for the firmware transaction file of application module 420, the firmware transaction file of Modem module 410 and the application program that sets in advance are transmitted to the second processor unit 421;
Described and non-memory cell 422, be used for to preserve the firmware transaction file of the application module 420 that the second processor unit 421 sends and the application program that sets in advance, and receive the second reading of processor unit 421 and call, the configuration code that comprises in the described application program is returned to the second processor unit 421.
For described 1) and 2) execution mode, the first execution mode of corresponding described Modem module 410, this moment, described Modem module 410 further comprised: first processor unit 411 or non-memory cell 412 and the first communication port 413;
Described first processor unit 411, link to each other with application module 420 by the first communication port 413, be used for after powering on, sending the confirmation of synchronization request by the first communication port 413 to application module 420, when in setting-up time, receive the affirmation message that described application module 420 returns by the first communication port 413 after, download the configuration code that comprises the described application program by the first communication port 413 from described application module 420, according to the configuration of described configuration code and set up the data transmission channel of Modem module 410 and 420 of application modules, utilize described passage and by the first communication port 413 from application module 420 with firmware transaction files non-memory cell 422 download Modem modules 410 and send to or non-memory cell 412;
And for 3) in execution mode, 410 corresponding of described Modem modules be the second execution mode, described Modem module 410 further comprises at this moment: first processor unit 411 or non-memory cell 412 and the first communication port 413;
Described first processor unit 411, link to each other with application module 420 by the first communication port 413, be used for after powering on, sending the confirmation of synchronization request by the first communication port 413 to application module 420, when in setting-up time, receive the affirmation message that described application module 420 returns by the first communication port 413 after, download the configuration code that comprises the described application program by the first communication port 413 from described application module 420, according to described configuration code configuration and set up Modem module 410 and the data transmission channel of 420 of application modules; Utilize described passage and download the firmware transaction file of Modem modules 410 and send to or non-memory cell 412 from application module 420 by the first communication port 413;
In above-mentioned two kinds of execution modes of Modem module 410, described or non-memory cell 412 is identical with the first communication port 413, is respectively:
Described or non-memory cell 412 is used for firmware transaction file and the preservation of the Modem module 410 of reception first processor unit 411 transmissions;
Described the first communication port 413 is used for connecting first processor unit 411 and application module 420, and transmits the communication message between all application modules 420 and the first processor unit 411.
Need to prove, the Main Function of the described application program that sets in advance is described configuration code is downloaded to first application module 420, then described application program further sends to Modem module 410 with this configuration code again, is set up the data transmission channel of itself and application module 420 according to this configuration code by Modem module 410; Described Modem module 410 mutual by with described application program more afterwards downloads to the firmware transaction file of Modem module 410 in the middle of the memory of self by described data transmission channel.
It may be noted that at last the first memory unit 412 in the Modem module 410 of mentioning in the preamble, and the second memory unit 422 in the application module 420, can be the nonvolatile memory of any type, the embodiment of the invention is not done concrete restriction.
Simultaneously, understand easily, although the embodiment of the invention is with regard to more description and the explanation carried out of new technological process of the firmware of the Modem module in the middle of the smart mobile phone and application module, but do not represent more new technological process of firmware that the present invention is merely able to be applied to smart mobile phone, in the whole process for production, debugging and the secondary development of mobile phone, under the scene that any needs upgrade simultaneously to Modem module and application module simultaneously, all can use equally the present invention and realize; And, for only needing the Modem module is carried out separately can using too the present invention and realizing in the scene of firmware renewal.
According to foregoing description as seen, the method and system that described firmware upgrades, by setting in advance application program and in application modules is carried out process that firmware upgrades, downloading in the lump in the middle of the application module, so that application module can be in the function of application module simulation host computer after moving described application program, thereby the Modem module can further download to the mutual communication by application module and Modem module of the firmware transaction file that downloads to the Modem module in the application module in the middle of the memory of self, has realized simultaneously that finally the firmware of application modules and Modem module upgrades; The application module firmware that needs in the prior art independently to carry out is respectively upgraded in the present invention and the renewal of Modem module firmware is integrated into a flow process, and do not need communication port according to the Modem module whether to take and adopt different firmware update modes, not only operation is more convenient, has also greatly improved smart mobile phone and has carried out speed and the efficient that firmware upgrades.

Claims (13)

1. the method upgraded of a firmware is characterized in that the method comprises:
In application modules is carried out process that firmware upgrades, the firmware transaction file of communication module, the application program that sets in advance are downloaded to application module together with the firmware transaction file of application module and preserve;
Communication module is obtained described application program, utilize the data transmission channel of described application program foundation and application module, again by the firmware transaction file of described data transmission channel from application module download communication module, and be saved in the middle of the memory of communication module self, the firmware of finishing communication module upgrades;
Described communication module is obtained described application program, utilizes described application program foundation and the method for the data transmission channel of application module to comprise:
Application module powers on to communication module according to the indication of described application program, after receiving sync byte that communication module returns and confirming request, returns acknowledge message according to the indication of described application program to communication module again;
If communication module receives described acknowledge message in setting-up time, then communication module is downloaded the configuration code that comprises in the described application program, according to the configuration of described configuration code and set up data transmission channel between communication module and application module.
2. method according to claim 1 is characterized in that, described firmware transaction file with communication module, the application program that sets in advance download to application module together with the firmware transaction file of application module and the method for preserving comprises:
The firmware transaction file of described communication module, the application program that sets in advance are included in the middle of the firmware transaction file of application module, after downloading to simultaneously the random access memory RAM of application module, the more described content among the RAM is write in the middle of the memory of application module.
3. method according to claim 1 is characterized in that, described firmware transaction file with communication module, the application program that sets in advance download to application module together with the firmware transaction file of application module and the method for preserving comprises:
With the application program that the sets in advance firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to the RAM of application module after, the described content among the RAM is write in the middle of the memory of application module again;
Application module moves described application program, and the firmware transaction file of download communication module writes the content among the RAM in the middle of the memory of application module behind the RAM of application module again.
4. according to claim 2 or 3 described methods, it is characterized in that, utilize described data transmission channel from the firmware transaction file of application module download communication module, and be saved in the middle of the memory of communication module self, the method for finishing the firmware renewal of communication module comprises:
Utilize the firmware transaction file of data transmission channel download communication module from the memory of application module of described foundation, described firmware transaction file is downloaded be saved in the middle of the memory of communication module.
5. method according to claim 1 is characterized in that, described firmware transaction file with communication module, the application program that sets in advance download to application module together with the firmware transaction file of application module and the method for preserving comprises:
With the application program that the sets in advance firmware transaction file together with application module, in application modules is carried out process that firmware upgrades, jointly download to the RAM of application module after, the described content among the RAM is write in the middle of the memory of application module again;
Application module moves described application program, and the firmware transaction file of download communication module also is saved in the middle of the RAM of application module.
6. method according to claim 5 is characterized in that, utilizes described data transmission channel from the firmware transaction file of application module download communication module and is saved in the middle of the memory of communication module, finishes the method that the firmware of communication module upgrades and comprises:
Utilize the firmware transaction file of data transmission channel download communication module from the RAM of application module of described foundation, described firmware transaction file is downloaded be saved in the middle of the memory of communication module.
7. the system that firmware upgrades is characterized in that this system comprises: application module and communication module;
Application module is used for from the outside firmware transaction file of communication module, the application program that sets in advance being downloaded to application module together with the firmware transaction file of application module and preserving; Also be used for sending described application program to communication module, and utilize data transmission channel that communication module sets up that the firmware transaction file of described communication module is sent to communication module;
Communication module, be used for obtaining described application program from application module, utilize the data transmission channel of described application program foundation and application module, utilize described data transmission channel from the firmware transaction file of application module download communication module, and be saved in the middle of the memory of communication module self, the firmware of finishing communication module upgrades;
Described communication module is obtained described application program, utilizes described application program foundation and the data transmission channel of application module to be:
Application module is used for powering on to communication module according to the indication of described application program, after receiving sync byte that communication module returns and confirming request, returns acknowledge message according to the indication of described application program to communication module again;
Communication module, if be used for receiving described acknowledge message in setting-up time, then communication module is downloaded the configuration code that comprises in the described application program, according to described configuration code configuration and set up data transmission channel between communication module and application module.
8. system according to claim 7 is characterized in that, described application module further comprises: the second processor unit, second memory unit, the second communication port and external series communication port;
Described the second processor unit, link to each other with communication module by the second communication port, be used for containing the firmware transaction file of communication module and the firmware transaction file of the application module of the application program that sets in advance from outside download package by the external series communication port, and send to described second memory unit; Also be used for powering on to communication module according to the indication of described application program, the sync byte that receives described communication module transmission by the second communication port is confirmed request and is returned acknowledge message by the second communication port to it; Afterwards the configuration code that comprises in the application program of preserving in the second memory unit is sent to communication module by the second communication port, the data transmission channel that utilization is set up according to described configuration code is transferred to communication module by the second communication port with the firmware transaction file of communication module;
Described the second communication port is used for connecting the second processor unit and communication module, and transmits the communication message between all second processor units and the communication module;
Described external series communication port is used for the firmware transaction file of application module, the firmware transaction file of communication module and the application program that sets in advance are transmitted to the second processor unit;
Described second memory unit, be used for to preserve firmware transaction file, the firmware transaction file of communication module and the application program that sets in advance of the application module that the second processor unit sends, and receive reading of the second processor unit and call, the configuration code that comprises in the described application program is returned to the second processor unit, and also the firmware transaction file with described communication module returns to the second processor unit.
9. system according to claim 7 is characterized in that, described application module further comprises: the second processor unit, second memory unit, the second communication port and external series communication port;
Described the second processor unit, link to each other with communication module by the second communication port, be used for by the external series communication port from the firmware transaction file of outside down load application module and the application program that sets in advance, and send to described second memory unit, move described application program, by the external series communication port from the firmware transaction file of outside download communication module and send to described second memory unit; Also be used for powering on to communication module according to the indication of described application program, the sync byte that receives described communication module transmission by the second communication port is confirmed request and is returned acknowledge message by the second communication port to it; Afterwards the configuration code that comprises in the application program of preserving in the second memory unit is sent to communication module by the second communication port, the data transmission channel that utilization is set up according to described configuration code is transferred to communication module by the second communication port with the firmware transaction file of communication module;
Described the second communication port is used for connecting the second processor unit and communication module, and transmits the communication message between all second processor units and the communication module;
Described external series communication port is used for the firmware transaction file of application module, the firmware transaction file of communication module and the application program that sets in advance are transmitted to the second processor unit;
Described second memory unit, be used for to preserve firmware transaction file, the firmware transaction file of communication module and the application program that sets in advance of the application module that the second processor unit sends, and receive reading of the second processor unit and call, the configuration code that comprises in the described application program is returned to the second processor unit, and also the firmware transaction file with described communication module returns to the second processor unit.
10. according to claim 8 or 9 described systems, it is characterized in that described communication module further comprises: first processor unit, first memory unit and the first communication port;
Described first processor unit, link to each other with application module by the first communication port, be used for after powering on, sending the confirmation of synchronization request by the first communication port to application module, when in setting-up time, receive the affirmation message that described application module returns by the first communication port after, download the configuration code that comprises the described application program by the first communication port from described application module, according to the configuration of described configuration code and set up data transmission channel between communication module and application module, utilize described passage and by the first communication port from the firmware transaction file of the second memory unit download communication module of application module and send to the first memory unit;
Described first memory unit is used for firmware transaction file and the preservation of the communication module of reception first processor unit transmission;
Described the first communication port is used for connecting first processor unit and application module, and transmits the communication message between all application modules and the first processor unit.
11. system according to claim 7 is characterized in that, described application module further comprises: the second processor unit, second memory unit, the second communication port and external series communication port;
Described the second processor unit links to each other with communication module by the second communication port, is used for by the external series communication port from the firmware transaction file of outside down load application module and the application program that sets in advance, and sends to described second memory unit; Move described application program, by the external series communication port from the firmware transaction file of outside download communication module and be kept in the core buffer of the second processor unit self; Also be used for powering on to communication module according to the indication of described application program, the sync byte that receives described communication module transmission by the second communication port is confirmed request and is returned acknowledge message by the second communication port to it; Afterwards the configuration code that comprises in the application program of preserving in the second memory unit is sent to communication module by the second communication port, the data transmission channel that utilization is set up according to described configuration code is transferred to communication module by the second communication port with the firmware transaction file of the communication module in the described core buffer;
Described the second communication port is used for connecting the second processor unit and communication module, and transmits the communication message between all second processor units and the communication module;
Described external series communication port is used for the firmware transaction file of application module, the firmware transaction file of communication module and the application program that sets in advance are transmitted to the second processor unit;
Described second memory unit, be used for to preserve the firmware transaction file of the application module that the second processor unit sends and the application program that sets in advance, and receive reading of the second processor unit and call, the configuration code that comprises in the described application program is returned to the second processor unit.
12. system according to claim 11 is characterized in that, described communication module further comprises: first processor unit, first memory unit and the first communication port;
Described first processor unit, link to each other with application module by the first communication port, be used for after powering on, sending the confirmation of synchronization request by the first communication port to application module, when in setting-up time, receive the affirmation message that described application module returns by the first communication port after, download the configuration code that comprises the described application program by the first communication port from described application module, according to the configuration of described configuration code and set up data transmission channel between communication module and application module; Utilize described passage and by the first communication port from the firmware transaction file of application module download communication module and send to the first memory unit;
Described first memory unit is used for firmware transaction file and the preservation of the communication module of reception first processor unit transmission;
Described the first communication port is used for connecting first processor unit and application module, and transmits the communication message between all application modules and the first processor unit.
13. system according to claim 12, the first memory unit in the described communication module and the second memory unit in the application module are the nonvolatile memory of any type.
CN200910045919.1A 2009-01-22 2009-01-22 Method and system for updating firmware Active CN101790252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910045919.1A CN101790252B (en) 2009-01-22 2009-01-22 Method and system for updating firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910045919.1A CN101790252B (en) 2009-01-22 2009-01-22 Method and system for updating firmware

Publications (2)

Publication Number Publication Date
CN101790252A CN101790252A (en) 2010-07-28
CN101790252B true CN101790252B (en) 2013-03-27

Family

ID=42533228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910045919.1A Active CN101790252B (en) 2009-01-22 2009-01-22 Method and system for updating firmware

Country Status (1)

Country Link
CN (1) CN101790252B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707960B (en) * 2011-03-28 2016-01-27 联想(北京)有限公司 Firmware update, portable mobile terminal and portable equipment
CN104427120B (en) * 2013-09-06 2017-03-15 展讯通信(上海)有限公司 Communication terminal and its processing method of Nonvolatile data
CN104090790B (en) * 2014-06-30 2017-05-17 飞天诚信科技股份有限公司 Two-chip scheme firmware updating method for safety terminal
CN105574024B (en) * 2014-10-14 2019-12-03 中兴通讯股份有限公司 Non-volatile data storage method and device
CN106293621B (en) * 2016-08-01 2019-02-15 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device
CN106789164A (en) * 2016-11-24 2017-05-31 努比亚技术有限公司 A kind of network parameter update method, the network equipment and mobile terminal
CN106980517B (en) * 2017-03-17 2020-10-09 杭州迪普科技股份有限公司 Firmware downloading method and device
DE102018122830A1 (en) * 2017-09-21 2019-03-21 Western Digital Technologies, Inc. Hardware-supported firmware download synchronization
CN109408125B (en) * 2018-11-06 2022-03-29 英业达科技有限公司 Server system
CN110096272A (en) * 2019-03-19 2019-08-06 深圳壹账通智能科技有限公司 Library file processing method, device, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184301A (en) * 2007-12-14 2008-05-21 中兴通讯股份有限公司 Mobile terminal remote firmware updating method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080090939A (en) * 2007-04-06 2008-10-09 삼성전자주식회사 Method for generating firmware update file and for updating firmware by using the firmware update file and apparatus thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184301A (en) * 2007-12-14 2008-05-21 中兴通讯股份有限公司 Mobile terminal remote firmware updating method and system

Also Published As

Publication number Publication date
CN101790252A (en) 2010-07-28

Similar Documents

Publication Publication Date Title
CN101790252B (en) Method and system for updating firmware
CN101883446B (en) Secure digital (SD) control chip and data communication method
CN107918545A (en) A kind of remote update system and its implementation based on ZYNQ
CN102231718B (en) Gateway of communication between Ethernet for control and automation technology (EtherCAT) and CAN, and communication method thereof
CN205680208U (en) A kind of single node bluetooth controlled in wireless self-help terminal equipment
CN101770594B (en) Multi-chip intelligent card and data processing method
CN101860440A (en) Wireless internet module and data synchronism method and data card using same
CN103092648B (en) A kind of image upgrade method, system and subscriber equipment and personal computer
CN101452430A (en) Communication method between multi-processors and communication device comprising multi-processors
CN102664043A (en) Device and method for test of smart SD card realizing mobile payment
CN101135972A (en) Method for upgrading terminal flash software
CN101384037B (en) Establishing method for special data channel between mobile application and intelligent card
CN101938848B (en) Host computer equipment wireless network access method and system
CN101398798B (en) Method and system for upgrading and repairing wireless terminal equipment
CN112579506A (en) BIOS and BMC communication method, BIOS, BMC and server
CN103488601B (en) A kind of clock delay, data access method, system and equipment
CN101316416A (en) Two-card two-standby mobile phone chip communication system and communication method
CN101251831B (en) Mobile memory supporting master-salve equipment interchange and method of master-salve equipment interchange
CN201369044Y (en) USB interface transmission device and USB interface transmission system
CN101868049A (en) Communication methods for host and wireless Internet access module and host communication module
CN201282464Y (en) Optical transmitter-receiver and remote on-line upgrade system thereof
CN101309121A (en) Method of MUX protocol realizing driver adding without need of kernel under Linux platform
CN100365607C (en) Apparatus and method for controlling SD card interface
CN101625625B (en) Signal relay device and method for accessing external memory using same
CN100368979C (en) Device for implementing POS machine parallel interface data receiving and output for printing and method for use thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant