CN102135922A - Method and system for refreshing application program - Google Patents
Method and system for refreshing application program Download PDFInfo
- Publication number
- CN102135922A CN102135922A CN 201110066991 CN201110066991A CN102135922A CN 102135922 A CN102135922 A CN 102135922A CN 201110066991 CN201110066991 CN 201110066991 CN 201110066991 A CN201110066991 A CN 201110066991A CN 102135922 A CN102135922 A CN 102135922A
- Authority
- CN
- China
- Prior art keywords
- reprogrammed
- driver
- application program
- electronic control
- control unit
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000006870 function Effects 0.000 claims description 10
- 238000004321 preservation Methods 0.000 claims description 2
- 230000008672 reprogramming Effects 0.000 abstract 3
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- 239000003550 marker Substances 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a system for refreshing an application program, wherein the method comprises the following steps: obtaining a reprogramming order from a downloading tool by an electronic control unit; entering a reprogramming mode according to the reprogramming order by the electronic control unit; downloading erasing and writing drive program to a temporary storage region of the electronic control unit; and erasing the old application program and writing a new application program through the erasing and writing drive program. Through the invention, the storage space can be saved and the safety can be improved while the wrong erasing and writing of the electronic control unit can be prevented.
Description
Technical field
The present invention relates to a kind of method for refreshing and system of application program.
Background technology
On current motor vehicles, a plurality of electronic control units (ECU) are installed usually, in order to carry out different functions.These control modules comprise car body control module (BCM), and this module is mainly used to control the guarding portion of lamp, door, window and vehicle body in the car body; Engine controller, this module are mainly in order to control the emitted dose or the charge air flow that flow to cylinder; Also comprise navigational system and diagnostic system etc.Usually by the In-vehicle networking bus system, for example CAN bus or LIN bus etc. link together, in order to carry out co-ordination and the information sharing between them between these ECU.These ECU comprise processor and external unit (as: communication transceiver usually, chip external memory etc.), the ECU application program leaves in the processor internal storage, and perhaps in the chip external memory of external unit, this application program comprises executable application program and application data.Because a lot of reasons, there is defective or will increases new function such as the application program among the ECU, need upgrade and revise being stored in application program among the ECU, so just need carry out reprogrammed to its application program.
At present; all application software modules all by programming in ECU; if application programs is when carrying out reprogrammed; application program module among the ECU need be unloaded programming again; this mode has the cost height; defectives such as application program update process complexity; the reprogrammed technology that prior art proposes can be carried out online reprogrammed to the application program in the electronic control unit (ECU) by reprogrammed software and be solved the problems referred to above; this reprogrammed software comprises a plurality of functional modules; wherein; being responsible for the functional module of erasable application program preserves and is solidificated in the flash storage area; because this zone is the protected region of memory territory, the content that then is kept in this zone can not arbitrarily be wiped.
At present at correlation technique in onboard system, since in the flash storage area that erasable driver has cured at ECU, therefore, if erasable driver is by the mistuning time spent, the problem that will cause ECU to be erased and written by mistake does not propose effective solution at present as yet.Simultaneously, all codes of reprogrammed software programming all arrive the ECU the inside, and are bigger to taking of resource.
Summary of the invention
At correlation technique in onboard system, because in the flash storage area that erasable driver has cured at ECU, therefore, if erasable driver is by the mistuning time spent, the problem that will cause ECU to be erased and written by mistake does not propose effective problem as yet at present and proposes the present invention, for this reason, fundamental purpose of the present invention is to provide a kind of method for refreshing and system of application program, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of updating system of application program, the updating system of this application program comprises: download tool generates the reprogrammed instruction; One or more electronic control units, electronic control unit obtains the reprogrammed instruction, and instruction enters the reprogrammed pattern according to reprogrammed, carries out after entering the reprogrammed pattern and downloads erasable driver, wipe old application program by erasable driver, and write new application program.
Further, application program module is used for preserving and running application; The reprogrammed software module is used for downloading and preserve erasable driver to the temporary storage area after reprogrammed instruction is with the set of reprogrammed zone bit, upgrades application program in the application program module by erasable driver.
Further, after executing the function of erasable driver, discharge the temporary storage area.
Further, erasable driver comprises: wipe driver and write driver, wherein, when the space of temporary storage area during less than erasable driver big or small, only download and wipe driver to the temporary storage area, execute wipe driver after, download again and write driver and cover and wipe driver.
Further, electronic control unit comprises: first memory module is used to preserve the application program zone bit; Second memory module is used to preserve the reprogrammed zone bit, after the reprogrammed software module reads the set information of reprogrammed zone bit, wipes the set information of reprogrammed zone bit.
To achieve these goals, according to a further aspect in the invention, provide a kind of method for refreshing of application program, this method comprises: electronic control unit obtains the reprogrammed instruction from download tool; Instruction enters the reprogrammed pattern to electronic control unit according to reprogrammed; Erasable driver is downloaded to the temporary storage area of electronic control unit; Wipe old application program by erasable driver, and write new application program.
Further, wiping old application program by erasable driver, and writing after the new application program, method also comprises: after re-powering, discharge the temporary storage area.
Further, erasable driver comprises: wipe driver and write driver, before erasable driver is downloaded to the temporary storage area of electronic control unit, method also comprises: whether the space of judging the temporary storage area is less than the size of erasable driver, wherein, when the space of temporary storage area during less than erasable driver big or small, only download and wipe driver to the temporary storage area, execute wipe driver after, download again and write driver and cover and wipe driver.
Further, download tool is preserved this erasable driver, and after electronic control unit entered the reprogrammed pattern, download tool was issued to the temporary storage area with the erasable driver of its preservation.
Further, electronic control unit instructs the step that enters the reprogrammed pattern to comprise according to reprogrammed: reprogrammed is instructed the set of reprogrammed zone bit; After powering on, read the set information of reprogrammed zone bit; Judge the whether set of reprogrammed zone bit, wherein, when the set of reprogrammed zone bit, electronic control unit enters the reprogrammed pattern, and download tool sends erasable driver to electronic control unit.
By the present invention, adopt electronic control unit to obtain and instruct from the reprogrammed of download tool; Instruction enters the reprogrammed pattern to electronic control unit according to reprogrammed; Erasable driver is downloaded to the temporary storage area of electronic control unit; Wipe old application program by erasable driver, and write new application program, solved in the prior art in onboard system, since in the flash storage area that erasable driver has cured at ECU, therefore, if erasable driver is by the mistuning time spent, the problem that will cause ECU to be erased and written by mistake, and then when preventing that electronic control unit is erased and written by mistake, saved storage space, improved the effect of security.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the updating system structural representation according to the application program of the embodiment of the invention;
Fig. 2 is the structural representation according to the electronic control unit of the embodiment of the invention;
Fig. 3 is the workflow diagram according to the method for refreshing of the application program of the embodiment of the invention; And
Fig. 4 is the workflow diagram according to the method for refreshing of the preferred application program of the embodiment of the invention.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Fig. 1 is the updating system structural representation according to the application program of the embodiment of the invention.As shown in Figure 1, this system comprises: download tool 1 generates the reprogrammed instruction; One or more electronic control units 3, electronic control unit obtains the reprogrammed instruction, and instruction enters the reprogrammed pattern according to reprogrammed, carries out after entering the reprogrammed pattern and downloads erasable driver, wipe old application program by erasable driver, and write new application program.
In the above embodiment of the present invention, do not preserve erasable driver among the electronic control unit ECU, have only electronic control unit 3 to enter the reprogrammed pattern, promptly receive after the reprogrammed instruction, the erasable driver that download tool just begins to be used for upgrading application program downloads to the temporary storage area (in RAM) of ECU, after application program update was finished, ECU re-powered; After re-powering, ECU enters programming mode, be stored in the temporary storage area erasable driver since ECU re-power automatic release, so when ECU is in programming mode, there is not this module of erasable driver among the ECU, so the problem that causes ECU to be erased and written by mistake with erasable driver owing to mistuning can not occur, save the storage space of ECU yet.
Simultaneously, because erasable driver can be kept in the download tool in advance, and be driver with the ECU coupling, therefore, download tool with this erasable driver can be considered as a kind of specific download tool, realization prevents anyly have the people of download tool to carry out reprogrammed to the ECU application program, has further improved the security of reprogrammed.
System of the present invention can also comprise gateway 2, is connected with download tool 1, and electronic control unit 3 can be communicated by letter with download tool 1 by gateway 2 and be obtained the reprogrammed instruction.
The above embodiment of the present invention can be applied in the vehicle electric control module network, comprise two different sub-networks in the network among Fig. 1, be respectively sub-network 4 and sub-network 5, these two sub-networks are carried out different procotols, such as CAN bus protocol and LIN bus protocol.In each sub-network, connecting a plurality of different electronic control unit ECU to satisfy the different functional requirement of vehicle.The present invention realizes at first needing download tool 1 that erasable driver is downloaded to electronic control unit 3 when any one electronic control unit 3 needs to upgrade application program, begins to upgrade the application program in the electronic control unit 3 then.
Concrete implementation procedure can be as follows, and sub-network 4 is CAN buses among Fig. 2, is connected with a plurality of electronic control units 3 on this CAN bus, and what connect on the sub-network 4 can be first electronic control unit, second electronic control unit etc.; Sub-network 5 is LIN buses, in the LIN bus, also can be connected with a plurality of electronic control units 3, what connect on the sub-network 5 can be the 3rd electronic control unit, quadrielectron control module etc., and the electronic control unit in above-mentioned two networks can satisfy the different functional requirement of vehicle.Download tool 1 communicates by each electronic control unit ECU on gateway 2 and the different bus, any ECU in network, such as, when application program is upgraded in the first electronic control unit request on the CAN bus, can from download tool 1, download erasable driver (Flashdriver) earlier, wipe application program old on first electronic control unit earlier by this erasable driver then, write new application program then.
Fig. 2 is the structural representation according to the electronic control unit of the embodiment of the invention.As shown in Figure 2, this electronic control unit 3 comprises: first memory module 33 is used to preserve application program effective marker position; Application program module 31 is used for preserving and running application, and application program can comprise new application program; Second memory module 34 is used to preserve the reprogrammed zone bit, and download tool 1 sends the reprogrammed instruction with zone bit set for the ECU application program; After ECU is restarted, reprogrammed software module 32, read the information of the reprogrammed zone bit set in second memory module 34, if reprogrammed zone bit set, expression has the reprogrammed request, and electronic control unit enters the reprogrammed pattern, and generates a response simultaneously, make download tool to respond according to this and download the temporary storage area (such as ram region in) of erasable driver to ECU, this erasable driver application programs is upgraded; Wherein, after the reprogrammed software module reads reprogrammed zone bit set information, the set information of wiping the reprogrammed zone bit.
In the above-described embodiments; application program module 31 and reprogrammed software module 32 leave the different storage zone of ECU in; as shown in Figure 2; application program module 31 is the zones that can be updated application program; reprogrammed software module 32 is shielded reprogrammed software areas; first memory module 33 and second memory module 34 are application program module 31 and reprogrammed software module 32 extra-regional non-volatile memory, such as EEPROM.
Key point of the present invention is, owing to be not responsible for the erasable driver of erasable application program among the ECU, therefore, ECU is after entering the reprogrammed pattern, download tool will be downloaded to a temporary storage area (this zone is not shown) with the erasable driver (this erasable program can be flash drive Flshdriver) of ECU coupling, ECU calls this driver and comes erasable application program module 31, after finishing erasable work, discharge the temporary storage area of preserving this erasable driver, can use this temporary storage area to preserve other program then, and download this erasable driver when needs are erasable again in next time.
Concrete, Flashdriver in the foregoing description is a functional module of being responsible for erasable application program, only be downloaded in the temporary storage area of ECU before carrying out the down load application program, this temporary storage area can be the storage area RAM that reprogrammed software and application program can be used.
Because this embodiment is before carrying out reprogrammed to ECU, must obtain the Flashdriver module with the ECU coupling earlier, this to the authority setting of reprogrammed restriction, increased security.Simultaneously, because Flashdriver is not solidificated in the Flash zone, saved the Flash space, and the interim storage space (RAM) that takies of Flashdriver module, under programming mode, be released, this storage space can also have been saved the space of RAM in order to the application storing data.
Preferably, in the above embodiment of the present invention, erasable driver can comprise: wipe driver and write driver, wherein, when the space of temporary storage area during less than erasable driver big or small, only download and wipe driver to the temporary storage area, execute wipe driver after, download and write driver and cover and wipe driver.
Concrete, before download tool begins to issue erasable driver, at first confirm whether to have among the ECU enough spaces to preserve this erasable driver, if the ram space of ECU is little, be the space of the needed space of Flashdriver program greater than RAM, then adopt the erase feature of downloading Flashdriver earlier to RAM, after wiping old application program, the write-in functions of downloading Flashdriver again is to RAM, begin to write new application program, this method is divided into Flashdriver erase feature and write-in functions two parts exactly, and in the time of need wiping application program, the erase feature of only downloading Flashdriver is to RAM; When needing the down load application program, the write-in functions of only downloading Flashdriver has reduced the demand to the size of ram space to the RAM district.
Fig. 3 is the workflow diagram according to the method for refreshing of the application program of the embodiment of the invention, and this method comprises the steps: as shown in Figure 3
Step S102, electronic control unit obtains the reprogrammed instruction from download tool among Fig. 2.
Instruction enters the reprogrammed pattern according to reprogrammed for step S104, the electronic control unit among Fig. 2.
Step S106, the host computer among Fig. 2 are downloaded to erasable driver the temporary storage area of electronic control unit.
Step S108 wipes old application program by erasable driver, and writes new application program.
In the above embodiment of the present invention, do not preserve erasable driver among the electronic control unit ECU, have only electronic control unit 3 to enter the reprogrammed pattern, promptly receive after the reprogrammed instruction, the erasable driver that download tool just begins to be used for upgrading application program downloads to the temporary storage area (in RAM) of ECU, after application program update was finished, ECU re-powered; After re-powering, ECU enters programming mode, be stored in the temporary storage area erasable driver since ECU re-power automatic release, so when ECU is in programming mode, there is not this module of erasable driver among the ECU, so the problem that causes ECU to be erased and written by mistake with erasable driver owing to mistuning can not occur, save the storage space of ECU yet.Simultaneously, because erasable driver can be kept in the download tool in advance, and be driver with the ECU coupling, therefore, download tool with this erasable driver can be considered as a kind of specific download tool, realization prevents anyly have the people of download tool to carry out reprogrammed to the ECU application program, has further improved the security of reprogrammed.
In the above embodiment of the present invention, wiping old application program by erasable driver, and writing after the new application program, method also comprises: after re-powering, discharge the temporary storage area.In this step, the temporary storage area after the release can be used to preserve other program, has saved storage space, has improved operating factor of memory space.
Erasable driver among above-mentioned each embodiment of the present invention can comprise: wipe driver and write driver, before erasable driver is downloaded to the temporary storage area of electronic control unit, method also comprises: whether the space of judging the temporary storage area is less than the size of erasable driver, wherein, when the space of temporary storage area during less than erasable driver big or small, only download and wipe driver to the temporary storage area, execute wipe driver after, download and to write driver and cover and wipe driver.Wherein, wipe driver and be used to wipe old application program on the electronic control unit, write driver and be used for new application program is write electronic control unit.
Concrete, this step has realized that the erase feature that can download Flashdriver earlier is to RAM, after wiping old application program under the situation of insufficient memory of ECU, the write-in functions of downloading Flashdriver again begins to write new application program to RAM.Reduced demand to the size of ram space.
In the above embodiment of the present invention, electronic control unit instructs the step that enters the reprogrammed pattern to comprise according to reprogrammed: reprogrammed is instructed the set of reprogrammed zone bit; After powering on, read the set information of reprogrammed zone bit; Judge the whether set of reprogrammed zone bit, wherein, when the set of reprogrammed zone bit, electronic control unit enters the reprogrammed pattern, and download tool sends erasable driver to electronic control unit, otherwise whether detect application program module effective.This embodiment realizes that ECU detects application program module 31 and whether successfully upgrades application program, if does not upgrade successfully, then down load application program again until application program update successfully, has improved the serviceability of system.
Fig. 4 is the workflow diagram according to the method for refreshing of the preferred application program of the embodiment of the invention.Fig. 4 is the ECU software reprogrammed process flow diagram that the present invention has the reprogrammed function, can effectively realize the correct execution of ECU application program and reprogrammed software by this figure.
As shown in Figure 4, the preferred embodiment of the invention comprises the steps:
Step S201, after electronic control unit powered on, electronic control unit carried out hardware initialization (as: outer watchdog, communication transceiver etc.).
Step S202, after the electronic control unit initialization was finished, electronic control unit 3 checked whether application program has the reprogrammed request.In this embodiment, electronic control unit is by reading the reprogrammed zone bit (as shown in Figure 2) in second memory module 34, and judge its whether set, promptly determined whether the reprogrammed request, carry out next step operation again, when reading reprogrammed zone bit set (is 1 from 0 set), enter step S205, otherwise change step S203 over to.And after reading zone bit information, wipe this position immediately, in case program enters deadlock state.
Step S203, at this moment, the reprogrammed zone bit that electronic control unit 3 reads does not have set, and electronic control unit 3 does not produce the reprogrammed request, begins by detecting the application program zone bit in first memory module 33, check whether the application program that is stored among the ECU is effective, if it is effective to detect application program, i.e. the significance bit set of application program zone bit (mark set is 1) then enters step S204, otherwise, change step S202 over to.In this embodiment, in this functional block, realize reading of executive utility effective marker position (first memory module 33 among Fig. 2), judge its whether set.
Step S204, this moment, the application program in the application program module 31 was effective, i.e. and application program significance bit set does not need to upgrade, and electronic control unit ECU is in programming mode, the electronic control unit application program in the module 31 that runs application.
Step S205, the reprogrammed zone bit set that this moment, electronic control unit 3 read, represent that promptly application program has the reprogrammed request, perhaps, the application program that detect in the application program module 31 this moment is invalid, and promptly the application program effective marker does not have set (mark set is 0), more than under two kinds of situations, electronic control unit ECU is in the reprogrammed pattern, begins to upgrade the application program in the electronic control unit 3, enters step S206.
Step S206, electronic control unit begin executive utility and download flow process, at first send security access request by the download tool among Fig. 21, access rights that promptly can test access person, after by secure access, obtain reprogrammed right to ECU, enter step S207.
Step S207, after by secure access, system obtains the reprogrammed right to ECU, and the driver of wiping in the erasable driver (Flashdriver) is downloaded in the temporary storage area of ECU (can be ram region), enters step S208 then.Preferably, this storage area can be positioned at reprogrammed software module 32.
Step S208 moves this and wipes driver, wipes the application program that driver is used for wiping application program module 31, enters step S209 after the application program in wiping this application program module 31.
Step S209 after the application program on wiping application program module 31, begins to download the driver that writes in the erasable driver, and this is write driver covers the original driver of wiping, and has efficiently utilized the storage space of temporary storage area.
Step S210 moves this and writes driver, begins to download the new application program in this download tool 1, and new application program is write application program module 31, realizes the renewal of application program.And after system restarted ECU, the temporary storage area that is used to deposit Flashdriver can be released.
Step S211, electronic control unit successfully download finish new application program after, system can verifying application programs download to the ECU the inside whether entirely truely, after checking is passed through, with the set of application program significance bit, after finishing, the function of step S211 restarts the system of this electronic control unit.This step makes the download success ratio of system improve, and in anti-locking system repeated downloads, whether successful, if successfully download, then upgrade application program again if detecting local download work.
Need to prove, can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
As can be seen from the above description, the present invention has realized following technique effect: in the present invention, erasable driver is not solidificated among the Flash of ECU, has saved the Flash space; Before ECU is carried out reprogrammed, must obtain earlier the erasable driver with the ECU coupling, this to the authority setting of reprogrammed restriction, can increase security.Simultaneously, be used to preserve the storage space that the Flashdriver module of read write command operation takies, under programming mode, be released, can avoid the erasable operation of mistake in the application program operational process, this storage space can improve operating factor of memory space in order to the application storing data.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. the updating system of an application program is characterized in that, comprising:
Download tool generates the reprogrammed instruction;
One or more electronic control units, described electronic control unit obtains described reprogrammed instruction, and according to described reprogrammed instruction enters the reprogrammed pattern, after entering described reprogrammed pattern, carry out and download erasable driver, wipe old application program by described erasable driver, and write new application program.
2. system according to claim 1 is characterized in that, described electronic control unit comprises:
Application program module is used for preserving and running application;
The reprogrammed software module is used for downloading and preserve described erasable driver to the temporary storage area after the instruction of described reprogrammed is with the set of reprogrammed zone bit, upgrades described application program in the described application program module by described erasable driver.
3. system according to claim 2 is characterized in that, after executing the function of described erasable driver, discharges described temporary storage area.
4. according to claim 2 or 3 described systems, it is characterized in that,
Described erasable driver comprises: wipes driver and writes driver, wherein,
When the space of described temporary storage area during less than described erasable driver big or small, only download the described driver of wiping to described temporary storage area, execute described wipe driver after, download the said write driver again and cover the described driver of wiping.
5. system according to claim 2 is characterized in that, described electronic control unit also comprises:
First memory module is used to preserve the application program zone bit;
Second memory module is used to preserve described reprogrammed zone bit, and after described reprogrammed software module reads the set information of described reprogrammed zone bit, wipes the set information of reprogrammed zone bit.
6. the method for refreshing of an application program is characterized in that, comprising:
Electronic control unit obtains the reprogrammed instruction from download tool;
Described electronic control unit enters the reprogrammed pattern according to described reprogrammed instruction;
Erasable driver is downloaded to the temporary storage area of described electronic control unit;
Wipe old application program by described erasable driver, and write new application program.
7. method according to claim 6 is characterized in that, is wiping old application program by described erasable driver, and is writing after the new application program, and described method also comprises: after re-powering, discharge described temporary storage area.
8. method according to claim 7 is characterized in that, described erasable driver comprises: wipe driver and write driver, before erasable driver was downloaded to the temporary storage area of described electronic control unit, described method also comprised:
Whether the space of judging described temporary storage area less than the size of described erasable driver, wherein,
When the space of described temporary storage area during less than described erasable driver big or small, only download the described driver of wiping to described temporary storage area, execute described wipe driver after, download the said write driver again and cover the described driver of wiping.
9. method according to claim 6, it is characterized in that, described download tool is preserved this erasable driver, and after described electronic control unit entered the reprogrammed pattern, download tool was issued to described temporary storage area with the described erasable driver of its preservation.
10. method according to claim 6 is characterized in that, described electronic control unit comprises according to the step that described reprogrammed instruction enters the reprogrammed pattern:
Described reprogrammed instruction is with the set of reprogrammed zone bit;
After powering on, read the set information of described reprogrammed zone bit;
Judge the whether set of described reprogrammed zone bit, wherein, when described reprogrammed zone bit set, electronic control unit enters the reprogrammed pattern, and described download tool sends described erasable driver to described electronic control unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110066991.XA CN102135922B (en) | 2011-03-18 | 2011-03-18 | The method for refreshing of application program and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110066991.XA CN102135922B (en) | 2011-03-18 | 2011-03-18 | The method for refreshing of application program and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102135922A true CN102135922A (en) | 2011-07-27 |
CN102135922B CN102135922B (en) | 2015-08-19 |
Family
ID=44295712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110066991.XA Active CN102135922B (en) | 2011-03-18 | 2011-03-18 | The method for refreshing of application program and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102135922B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103257869A (en) * | 2012-12-14 | 2013-08-21 | 惠州市亿能电子有限公司 | Method for intelligently downloading ECU (electronic control unit) programs |
CN103631607A (en) * | 2012-08-21 | 2014-03-12 | 广州汽车集团股份有限公司 | Vehicle-mounted ECU software refreshing mistake proofing method and system |
CN103713932A (en) * | 2014-01-21 | 2014-04-09 | 北京经纬恒润科技有限公司 | Method and device for updating application program in electronic control unit |
CN103744712A (en) * | 2014-01-28 | 2014-04-23 | 北京经纬恒润科技有限公司 | Method and device for updating application program |
CN103777976A (en) * | 2012-10-25 | 2014-05-07 | 海尔集团公司 | Single-chip microcomputer and on-line upgrading method and device thereof |
CN104281071A (en) * | 2013-07-05 | 2015-01-14 | 广州汽车集团股份有限公司 | Method and system for starting ECU |
CN104572141A (en) * | 2013-10-10 | 2015-04-29 | 上海信耀电子有限公司 | Online updating method for guide program of vehicle electric control unit (ECU) |
CN104898463A (en) * | 2014-03-05 | 2015-09-09 | 珠海格力电器股份有限公司 | Multi-component program processing method and system for air conditioning system |
CN105892348A (en) * | 2014-05-12 | 2016-08-24 | 罗伯特·博世有限公司 | Method For Operating A Control Unit |
CN106462479A (en) * | 2014-09-26 | 2017-02-22 | 日立汽车系统株式会社 | Vehicle control device, reprogramming system |
CN111124966A (en) * | 2019-11-12 | 2020-05-08 | 上海移远通信科技有限公司 | Method and device for improving stability of module data |
CN114647424A (en) * | 2020-12-18 | 2022-06-21 | 比亚迪股份有限公司 | ECU application program updating method, device, system, storage medium and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030163664A1 (en) * | 2002-02-28 | 2003-08-28 | Yasushi Kanda | Method and apparatus for updating a distributed program |
CN1482805A (en) * | 2002-09-12 | 2004-03-17 | 深圳市中兴通讯股份有限公司上海第二 | Method for video conference terminal protection mode |
CN1885262A (en) * | 2005-06-24 | 2006-12-27 | 海尔集团公司 | Online updating method for network household electrical appliance |
US20070005873A1 (en) * | 2005-06-30 | 2007-01-04 | Baltes Kevin M | ECU identification retention across reprogramming events |
CN101770384A (en) * | 2010-01-18 | 2010-07-07 | 深圳市航盛电子股份有限公司 | Car audio system and software upgrading method thereof |
CN101930375A (en) * | 2010-08-26 | 2010-12-29 | 深圳市共进电子有限公司 | Self-adaptive program data updating method of memory space in single user optical network unit |
CN102103511A (en) * | 2011-02-25 | 2011-06-22 | 北京经纬恒润科技有限公司 | Method and system for refreshing application program |
-
2011
- 2011-03-18 CN CN201110066991.XA patent/CN102135922B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030163664A1 (en) * | 2002-02-28 | 2003-08-28 | Yasushi Kanda | Method and apparatus for updating a distributed program |
CN1482805A (en) * | 2002-09-12 | 2004-03-17 | 深圳市中兴通讯股份有限公司上海第二 | Method for video conference terminal protection mode |
CN1885262A (en) * | 2005-06-24 | 2006-12-27 | 海尔集团公司 | Online updating method for network household electrical appliance |
US20070005873A1 (en) * | 2005-06-30 | 2007-01-04 | Baltes Kevin M | ECU identification retention across reprogramming events |
CN101770384A (en) * | 2010-01-18 | 2010-07-07 | 深圳市航盛电子股份有限公司 | Car audio system and software upgrading method thereof |
CN101930375A (en) * | 2010-08-26 | 2010-12-29 | 深圳市共进电子有限公司 | Self-adaptive program data updating method of memory space in single user optical network unit |
CN102103511A (en) * | 2011-02-25 | 2011-06-22 | 北京经纬恒润科技有限公司 | Method and system for refreshing application program |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631607A (en) * | 2012-08-21 | 2014-03-12 | 广州汽车集团股份有限公司 | Vehicle-mounted ECU software refreshing mistake proofing method and system |
CN103631607B (en) * | 2012-08-21 | 2016-10-05 | 广州汽车集团股份有限公司 | A kind of vehicle-mounted ECU software refreshing error-preventing method and system |
CN103777976B (en) * | 2012-10-25 | 2018-06-22 | 海尔集团公司 | Microcontroller and its online upgrading method and online upgrading device |
CN103777976A (en) * | 2012-10-25 | 2014-05-07 | 海尔集团公司 | Single-chip microcomputer and on-line upgrading method and device thereof |
CN103257869B (en) * | 2012-12-14 | 2016-08-24 | 惠州市亿能电子有限公司 | A kind of ECU program smart download method |
CN103257869A (en) * | 2012-12-14 | 2013-08-21 | 惠州市亿能电子有限公司 | Method for intelligently downloading ECU (electronic control unit) programs |
CN104281071A (en) * | 2013-07-05 | 2015-01-14 | 广州汽车集团股份有限公司 | Method and system for starting ECU |
CN104281071B (en) * | 2013-07-05 | 2017-07-11 | 广州汽车集团股份有限公司 | The startup method and ECU activation systems of a kind of ECU |
CN104572141B (en) * | 2013-10-10 | 2019-03-12 | 上海信耀电子有限公司 | The online updating method of the bootstrap of automobile electric control unit ECU |
CN104572141A (en) * | 2013-10-10 | 2015-04-29 | 上海信耀电子有限公司 | Online updating method for guide program of vehicle electric control unit (ECU) |
CN103713932A (en) * | 2014-01-21 | 2014-04-09 | 北京经纬恒润科技有限公司 | Method and device for updating application program in electronic control unit |
CN103713932B (en) * | 2014-01-21 | 2017-03-08 | 北京经纬恒润科技有限公司 | The update method of application program and device in a kind of electronic control unit |
CN103744712A (en) * | 2014-01-28 | 2014-04-23 | 北京经纬恒润科技有限公司 | Method and device for updating application program |
CN104898463B (en) * | 2014-03-05 | 2018-07-06 | 珠海格力电器股份有限公司 | Multi-component program processing method and system for air conditioning system |
CN104898463A (en) * | 2014-03-05 | 2015-09-09 | 珠海格力电器股份有限公司 | Multi-component program processing method and system for air conditioning system |
CN105892348A (en) * | 2014-05-12 | 2016-08-24 | 罗伯特·博世有限公司 | Method For Operating A Control Unit |
CN105892348B (en) * | 2014-05-12 | 2020-03-31 | 罗伯特·博世有限公司 | Method for operating a control device |
CN106462479A (en) * | 2014-09-26 | 2017-02-22 | 日立汽车系统株式会社 | Vehicle control device, reprogramming system |
CN106462479B (en) * | 2014-09-26 | 2019-05-10 | 日立汽车系统株式会社 | Controller of vehicle, reprogramming system |
CN111124966A (en) * | 2019-11-12 | 2020-05-08 | 上海移远通信科技有限公司 | Method and device for improving stability of module data |
CN111124966B (en) * | 2019-11-12 | 2021-08-24 | 上海移远通信科技有限公司 | Method and device for improving stability of module data |
CN114647424A (en) * | 2020-12-18 | 2022-06-21 | 比亚迪股份有限公司 | ECU application program updating method, device, system, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102135922B (en) | 2015-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102135922B (en) | The method for refreshing of application program and system | |
US10678454B2 (en) | Vehicle information communication system | |
CN110231952B (en) | ECU program backup and cyclic upgrade control method and device | |
CN102103511A (en) | Method and system for refreshing application program | |
JP6390644B2 (en) | Program update system, program update method, and computer program | |
CN110347412B (en) | Electronic control unit firmware upgrade management method, device, equipment and storage medium | |
US8607215B2 (en) | Electronic control system for rewriting control software in an automobile | |
US20180341476A1 (en) | Software updating device, software updating system, and software updating method | |
CN113448604B (en) | OTA (over the air) flashing method, OTA flashing system, readable storage medium and vehicle | |
CN110825403A (en) | Method and system for flashing ECU (electronic control Unit) of automobile | |
CN107678762B (en) | System version upgrading method and device | |
CN112667265B (en) | Method and device for updating bootstrap program | |
US12087103B2 (en) | Electronic control unit and non-transitory computer readable medium storing session establishment program | |
US20060218340A1 (en) | Data validity determining method for flash EEPROM and electronic control system | |
CN113810446A (en) | Safety upgrading management method for ECU of vehicle-mounted network | |
JP6913621B2 (en) | Electronic control device for automobiles | |
WO2020158377A1 (en) | Electronic control device and security verification method for electronic control device | |
US7934050B2 (en) | Microcomputer for flash memory rewriting | |
CN116893837A (en) | Non-inductive refreshing method for ECU of electric automobile | |
CN115167904A (en) | Tamper-proof Bootloader upgrading method and system | |
KR102705918B1 (en) | Ota master, center, system, update method, non-transitory storage medium, and vehicle | |
US20240004635A1 (en) | Electronic control device, reprogram execution method, and non-transitory computer readable storage medium | |
CN118502791A (en) | Method, device, electronic equipment and storage medium for self-upgrading boot loader | |
CN118778985A (en) | FOTA upgrading method and system based on FLASH SWAP chips | |
CN113946356A (en) | Method and device for updating electronic controller program and electronic controller |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020 Patentee after: Beijing Jingwei Hirain Technologies Co.,Inc. Address before: 1-2 / F, commercial building, No. 23, anxiangli, Chaoyang District, Beijing 100101 Patentee before: Beijing Jingwei HiRain Technologies Co.,Ltd. |