CN103019792A - Application reprogramming method and application reprogramming system - Google Patents

Application reprogramming method and application reprogramming system Download PDF

Info

Publication number
CN103019792A
CN103019792A CN2012105646482A CN201210564648A CN103019792A CN 103019792 A CN103019792 A CN 103019792A CN 2012105646482 A CN2012105646482 A CN 2012105646482A CN 201210564648 A CN201210564648 A CN 201210564648A CN 103019792 A CN103019792 A CN 103019792A
Authority
CN
China
Prior art keywords
reprogrammed
control unit
electronic control
program module
request message
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.)
Pending
Application number
CN2012105646482A
Other languages
Chinese (zh)
Inventor
汤铭清
张贺伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingwei Hirain Tech Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN2012105646482A priority Critical patent/CN103019792A/en
Publication of CN103019792A publication Critical patent/CN103019792A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an application reprogramming method and an application reprogramming system. According to the invention, a reprogramming device is connected with at least one electronic control unit, and the electronic control unit can comprise a reprogramming program module and an application module. When the electronic control unit is changed from a power-off state to a power-on state, the reprogramming program module in the electronic control unit receives a request message sent by the reprogramming device, then sends a response message to the reprogramming device and interrupts the process of booting the application module by the reprogramming program module, so that the application module is kept in an unstarted state. When the application module is kept in the unstarted state, the reprogramming program module can be in an operating state for a long time, so that the reprogramming device can have enough time to download a stored application into the application module via the reprogramming program module, and therefore the on-line reprogramming of the application is realized.

Description

A kind of reprogramming method of application program and system
Technical field
The present invention relates to the reprogrammed technical field, more particularly, relate to a kind of reprogramming method and system of application program.
Background technology
On current motor vehicles, a plurality of electronic control units are installed usually, in order to carry out different functions.Vehicle body control unit for example is mainly used to control the guarding portion of lamp, door, window and vehicle body in the car body; Control unit of engine, main in order to the emitted dose or the charge air flow that flow to cylinder are controlled.Usually link together by In vehicle network bus system (for example CAN bus or LIN bus) between these electronic control units, in order to carry out co-ordination and the information sharing between them.Wherein, electronic control unit comprises: reprogrammed program module and application program module include executable application software and application data in the application program module.After electronic control unit starts, at first move its reprogrammed program module, after the reprogrammed program module determines that application program module exists, the operation of guiding application program module, end the operation of reprogrammed program module self program, electronic control unit begins normal operation.When the application program in the electronic control unit exists defective or needs to increase new function, need to make amendment and upgrade this application program, so need to carry out reprogrammed to this application program.
But, when electronic control unit was installed on the vehicle, some situation may not be downloaded effective application program again, and for example the host computer instrument reads the application file mistake, application program is not mated, or because the incomplete application program of function has been downloaded in carelessness.In these situations, after electronic control unit starts, can make its reprogrammed program module operation, after the reprogrammed program module determines that application program module exists, the operation of reprogrammed program module self program is ended in the operation of guiding application program module, and this moment, electronic control unit began normal operation.Therefore, in electronic control unit, the time of reprogrammed program module operation is shorter, and application program module is longer working time.And the reprogrammed program module in the same electronic control unit and application program module can not be moved simultaneously, can only move one, and when having the application program module operation of defective, the reprogrammed program module can't be moved.And when reprogrammed program module working time more in short-term, we can't finish the again download of application program at short notice, carry out reprogrammed with the application program in the application programs module.The problems referred to above are still perplexing the research staff of this area.
Summary of the invention
In view of this, the invention provides a kind of reprogramming method and system of application program, need not electronic control unit is disassembled with realization, still can make reprogrammed equipment can have time enough that the application program of preserving is downloaded in the application program module by the reprogrammed program module, realize the online reprogrammed of application program.
A kind of reprogramming method of application program, be applied in reprogrammed equipment and the electronic control unit, described reprogrammed equipment is connected with at least one described electronic control unit, described electronic control unit comprises: reprogrammed program module and application program module, wherein, described reprogrammed program module is used for guiding described application program module, and described method comprises:
Described reprogrammed equipment sends request message to described electronic control unit;
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit receives the described request message in Preset Time after, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment;
When described reprogrammed equipment did not receive described response message in Preset Time, described reprogrammed equipment sent the described request message again to described electronic control unit;
When described reprogrammed equipment receives described response message in Preset Time, the application program programming of preserving is entered to send in the electronic control unit of response message;
Wherein, contain the identifier of described electronic control unit in the described request message, when having the request message that mates with described electronic control unit to arrive, the reprogrammed program module of described electronic control unit receives this request message.
Preferably, in the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit receives the described request message in Preset Time after, interruption is to the bootup process of application program module in this electronic control unit, and comprises to the step that described reprogrammed equipment sends response message:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that its application program module exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
Preferably, in the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that described application program module exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module in this electronic control unit, and comprises to the step that described reprogrammed equipment sends response message:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that its application program module exists, and in Preset Time, receive the described request message, described reprogrammed program module is after correct and described request message content contains this electronic control unit identifier at definite described request message format, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
A kind of reprogrammed system of application program, comprise reprogrammed equipment and at least one electronic control unit that is connected with described reprogrammed equipment, described electronic control unit comprises: reprogrammed program module and application program module, wherein, described reprogrammed program module is used for guiding described application program module
Described reprogrammed equipment comprises: request message sending module, request message retransmit module and program burn writing module,
Described reprogrammed program module comprises: response message sends submodule,
Described request message sending module is used for described reprogrammed equipment and sends request message to described electronic control unit;
Described response message sends submodule, be used in the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit receives the described request message in Preset Time after, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment;
Described request message retransmit module: be used for when described reprogrammed equipment does not receive described response message in Preset Time, described reprogrammed equipment sends the described request message again to described electronic control unit;
Described program burn writing module is used for when described reprogrammed equipment receives described response message in Preset Time, and described reprogrammed equipment receives described response message, and the application program programming of preserving is entered to send in the electronic control unit of response message;
Wherein, contain the identifier of described electronic control unit in the described request message, when having the request message that mates with described electronic control unit to arrive, the reprogrammed program module of described electronic control unit receives this request message.
Preferably, described response message transmission submodule specifically is set to:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that described application program module exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
Preferably, described response message transmission submodule specifically is set to:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that described application program module exists, and in Preset Time, receive the described request message, described reprogrammed program module is after correct and described request message content contains this electronic control unit identifier at definite described request message format, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
Can find out from above-mentioned technical scheme, the invention provides a kind of reprogramming method and system of application program, reprogrammed equipment is connected with at least one electronic control unit among the present invention, and described electronic control unit can comprise: reprogrammed program module and application program module.In the situation that electronic control unit becomes power-up state by off-position, reprogrammed program module in this electronic control unit receives the request message of reprogrammed equipment transmission in Preset Time after, this reprogrammed program module sends response message to reprogrammed equipment, and the bootup process of interruption reprogrammed program module application programs module, so that application program module maintains not starting state.When application program module maintains not starting state, the reprogrammed program module just can be in running status the long period, thereby guarantee that reprogrammed equipment can have time enough that the application program of preserving is downloaded in the application program module by the reprogrammed program module, has realized the online reprogrammed of application program.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the disclosed a kind of application program update system schematic of the embodiment of the invention;
Fig. 2 is the reprogramming method process flow diagram of the disclosed a kind of application program of the embodiment of the invention;
Fig. 3 is the process flow diagram of the operational process of electronic control unit in the reprogramming method of the disclosed a kind of application program of the embodiment of the invention;
Fig. 4 is the structural representation of the reprogrammed system of the disclosed a kind of application program of the embodiment of the invention;
Fig. 5 is the structural representation of electronic control unit in the reprogrammed system of the disclosed a kind of application program of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, the disclosed a kind of application program update system schematic of the embodiment of the invention, can comprise reprogrammed equipment 100 and at least one electronic control unit 200 that is connected with described reprogrammed equipment 100, described electronic control unit 200 can comprise: reprogrammed program module 210 and application program module 220, wherein, described reprogrammed program module 210 can be used for guiding described application program module 220.
Preferably, in a side of described electronic control unit 200 network interface 300 can be installed, described reprogrammed equipment 100 be connected electronic control unit 200 and can connect by network interface 300.
As shown in Figure 2, the reprogramming method of the disclosed a kind of application program of the embodiment of the invention is applied in described reprogrammed equipment 100 and the electronic control unit 200, and the method can comprise:
S100, described reprogrammed equipment 100 send request message to described electronic control unit 200;
Be understandable that, when described reprogrammed equipment 100 sends request message to described electronic control unit 200, only have its application program module 220 to need the electronic control unit 200 of reprogrammed, the reprogrammed program module 210 that it contains just might be received the described request message.Therefore, in order to make described reprogrammed equipment 100 by the described request message, find the electronic control unit 200 that sends response message, the identifier that can contain electronic control unit 200 in the described request message, namely the described request message is the message that described reprogrammed equipment 100 and described electronic control unit 200 consult.For example when request message be: during 0x040x310x010xFF0x180x000x000x00, the identifier of the described electronic control unit 200 that contains in this request message is 0x040x310x010xFF0x18, wherein, 0x04 can represent the length of request message, 0x31 can represent the service-number of regulation in the unified diagnosis service, 0x01 can represent the service numbering of regulation in the unified diagnosis service, 0xFF0x18 can be the data number information of deciding through consultation with the client, and rear three the byte 0x000x000x00 in the request message can be used as a symbol of filling out of this request message, play a part to fill the request message figure place, do not have tangible meaning.Such as, when request message is: during 0x040x310x010xFF0x180x550x550x55, because the first five of request message byte does not change, so the reprogrammed program module 210 in the described electronic control unit still can be received this request message, when request message is: during 0x050x310x010xFF0x180x000x000x00, although only have first byte to become 0x05 by 0x04 in the request message, other bytes are all less than changing, but, because the first five of request message byte changes, the identifier that it contains and described electronic control unit 200 do not mate, and the reprogrammed program module 210 in the described electronic control unit 200 does not receive this request message.Therefore, only contain with the described request message in the electronic control unit 200 that is complementary of identifier, the reprogrammed program module 210 that it includes just can receive the described request message, after described reprogrammed program module 210 receives the described request message, described reprogrammed program module 210 sends described response message, and interrupt the bootup process of 210 pairs of described application program modules 220 of described reprogrammed program module, so that described application program module 220 maintains not starting state.
Wherein, before described reprogrammed equipment 100 sent the described request message, described electronic control unit 200 can be in closed condition, and after described reprogrammed equipment 100 sent the described request message, described electronic control unit 200 can switch to opening.
S200, in the situation that described electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in the described electronic control unit 200 receives the described request message in Preset Time after, interruption is to the bootup process of application program module 220 in this electronic control unit 200, and sends response messages to described reprogrammed equipment 100;
Wherein, reprogrammed program module 210 in the described electronic control unit 200 is interrupted the bootup process of 210 pairs of described application program modules 220 of described reprogrammed program module, so that described application program module 220 maintains not starting state, at this moment, described reprogrammed program module 210 just can be in running status the long period, thereby guarantee that described reprogrammed equipment 100 can have time enough, the application program of preserving is downloaded in the described application program module 220 by described reprogrammed program module 210, realized the online reprogrammed of application program.
Need to prove, when described application program module 220 needs the situation of reprogrammed to exist defective or needs to increase new function for: the application program in the electronic control unit 200, or because the incomplete application program of function has been downloaded in carelessness, or because some reason causes the situation of the application program damage in the electronic control unit etc.
S300, when described reprogrammed equipment 100 does not receive described response message in Preset Time, described reprogrammed equipment 100 sends the described request message again to described electronic control unit 200;
Be understandable that, described reprogrammed equipment 100 sends request message to described electronic control unit 200, so that receive the running status that described request message reprogrammed program module 210 is in the long period in the described electronic control unit 200, thereby guarantee that reprogrammed equipment 100 can have time enough that the application program of preserving is downloaded in the application program module 220 by reprogrammed module 210, realizes the online reprogrammed of application program.And judge that the foundation whether described electronic control unit 200 receives the described request message is: response message as described in whether described reprogrammed equipment 100 receives in Preset Time (such as 1ms).If described reprogrammed equipment 100 receives described response message in Preset Time, described reprogrammed equipment 100 enters to send in the described electronic control unit 200 of response message with the application program programming of preserving.If described reprogrammed equipment 100 does not receive described response message, then continue to send request message to described electronic control unit 200.In actual applications, described reprogrammed equipment 100 execution in step S300 repeatedly.
Certainly, in another embodiment, constantly do not send request message to described electronic control unit 200 for fear of described reprogrammed equipment 100 before receiving described response message, we can arrange another time threshold, such as 1s.If in the described Preset Time in 1s (such as 1ms), described reprogrammed equipment 100 does not receive described response message, then continue to send the described request message to described electronic control unit 200, if surpass 1s, 100 of described reprogrammed equipment stop to send the described request message.
S400, when described reprogrammed equipment 100 receives described response message in Preset Time, described reprogrammed equipment 100 receives described response message, and the application program programming of preserving is entered to send in the electronic control unit of response message;
Wherein, can contain the identifier of described electronic control unit 200 in the described request message, when having the request message that mates with described electronic control unit 200 to arrive, the reprogrammed program module 210 of described electronic control unit 200 receives these request messages.
The reprogramming method of a kind of application program provided by the invention, for electronic control unit 200 being disassembled so that reprogrammed program module 210 is in the situation of the running status of long period, in the situation that electronic control unit 200 becomes power-up state by off-position, behind the request message by 100 transmissions of reprogrammed program module 210 reception reprogrammed equipment, reprogrammed program module 210 sends response message to reprogrammed equipment 100, and the bootup process of interruption reprogrammed program module 210 application programs modules 220, so that application program module 220 maintains not starting state.When application program module 220 maintains not starting state, reprogrammed program module 210 just can be in running status the long period, thereby guarantee that reprogrammed equipment 100 can have time enough that the application program of preserving is downloaded in the application program module 220 by reprogrammed module 210, has realized the online reprogrammed of application program.
Wherein, described reprogrammed program module 210 needs also to determine whether described application program module 220 exists before receiving the described request message.Because when described application program module 220 does not exist, reprogrammed program module 210 in the described electronic control unit 200 need not to receive the running status that the described request message still can be in the long period, and described reprogrammed equipment 100 just can carry out application program by 210 pairs of described electronic control units 200 of described reprogrammed program module and download.After described reprogrammed program module 210 determines that application program module 220 exists, just need to interrupt bootup process to described application program module 220 by receiving the described request message, thereby described reprogrammed program module 210 can be in the running status of long period, described reprogrammed equipment 100 just can download to the application program of preserving in the described application program module 220 by described reprogrammed program module 210, realizes the online reprogrammed of application program.
So step S200 specifically can comprise:
In the situation that described electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in the described electronic control unit 200 is determining that its application program module 220 exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module 220 in this electronic control unit 200, and sends response messages to described reprogrammed equipment 100.
Wherein, described reprogrammed program module 210 needs also to judge whether whether correct format and described request message contain the identifier of this electronic control unit 200 for the described request message that receives after receiving the described request message.The identifier of the described electronic control unit 200 of the first five byte representation of request message for example, and this electronic control unit 200 receives the request message of front four byte representation electronic control unit 200 identifiers, namely the form of the request message that receives of this electronic control unit 200 is incorrect, so the reprogrammed program module 210 in this electronic control unit 200 does not receive this request message.The correct format of the request message that receives when described electronic control unit 200, but when the request message content that receives was incorrect, the reprogrammed program module 210 in this electronic control unit 200 did not still receive this request message.For example: with the request message of these electronic control unit 200 couplings be: during 0x040x310x010xFF0x180x000x000x00, the request message that this electronic control unit 200 receives is: 0x050x310x010xFF0x180x000x000x00, although only have first byte to become 0x05 by 0x04 in the request message, other bytes are all less than changing, but, the content of the request message that receives is incorrect, so the reprogrammed program module 210 in the described electronic control unit 200 does not receive this request message.
So step S200 specifically can comprise:
In the situation that described electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in the described electronic control unit 200 is determining that its application program module 220 exists, and in Preset Time, receive the described request message, described reprogrammed program module 210 is after correct and described request message content contains these electronic control unit 200 identifiers at definite described request message format, interruption is to the bootup process of application program module 220 in this electronic control unit 200, and sends response messages to described reprogrammed equipment 100.
Need to prove, when described reprogrammed program module 210 does not still receive request message after Preset Time exceeds, then described reprogrammed program module 210 no longer receives request message.
As shown in Figure 3, the operational process of electronic control unit in the reprogramming method of the disclosed a kind of application program of the embodiment of the invention can comprise:
S211, described electronic control unit 200 become power-up state by off-position;
S212, described reprogrammed program module determine whether described application program module 220 exists, and if not, then carries out S270, if so, then carries out S220;
S220, determine whether in Preset Time, to receive the described request message, if not, then carry out S231, if so, then carry out S240;
S231, determine whether to exceed Preset Time, if not, then carry out S220, if so, then carry out S232;
S232, described application program module 220 are carried out existing application program;
S240, determine whether the form of the request message that receives is correct, and whether content contains the identifier of this electronic control unit 200, if so, then carries out S250, otherwise, S231 carried out;
S250, reception described request message;
S260, send response messages to described reprogrammed equipment 100, interrupt the bootup process to described application program module 220;
The application program that S270, described reprogrammed equipment 100 programmings of reception enter is upgraded the application program in the described application program module 220.
Embodiment is corresponding with said method, and the present invention also provides a kind of reprogrammed system of application program.
As shown in Figure 1, the disclosed a kind of application program update system schematic of the embodiment of the invention, can comprise reprogrammed equipment 100 and at least one electronic control unit 200 that is connected with described reprogrammed equipment 100, described electronic control unit 200 can comprise: reprogrammed program module 210 and application program module 220, wherein, described reprogrammed program module 210 can be used for guiding described application program module 220
Preferably, in a side of described electronic control unit 200 network interface 300 can be installed, described reprogrammed equipment 100 be connected electronic control unit 200 and can connect by network interface 300.
As shown in Figure 4, the reprogrammed system of the disclosed a kind of application program of the embodiment of the invention, described reprogrammed equipment 100 can comprise: request message sending module 010, request message retransmit module 030 and program burn writing module 040,
Described reprogrammed program module 210 can comprise: response message sends submodule 020,
Described request message sending module 010 is used for described reprogrammed equipment 100 and sends request message to described electronic control unit 200;
Be understandable that, when described reprogrammed equipment 100 sends request message to described electronic control unit 200, only have its application program module 220 to need the electronic control unit 200 of reprogrammed, the reprogrammed program module 210 that it contains just might be received the described request message.Therefore, in order to make described reprogrammed equipment 100 by the described request message, find the electronic control unit 200 that sends response message, the identifier that can contain electronic control unit 200 in the described request message, namely the described request message is the message that described reprogrammed equipment 100 and described electronic control unit 200 consult.For example when request message be: during 0x040x310x010xFF0x180x000x000x00, the identifier of the described electronic control unit 200 that contains in this request message is 0x040x310x010xFF0x18, wherein, 0x04 can represent the length of request message, 0x31 can represent the service-number of regulation in the unified diagnosis service, 0x01 can represent the service numbering of regulation in the unified diagnosis service, 0xFF0x18 can be the data number information of deciding through consultation with the client, and rear three the byte 0x000x000x00 in the request message can be used as a symbol of filling out of this request message, play a part to fill the request message figure place, do not have tangible meaning.Such as, when request message is: during 0x040x310x010xFF0x180x550x550x55, because the first five of request message byte does not change, so the reprogrammed program module 210 in the described electronic control unit still can be received this request message, when request message is: during 0x050x310x010xFF0x180x000x000x00, although only have first byte to become 0x05 by 0x04 in the request message, other bytes are all less than changing, but, because the first five of request message byte changes, the identifier that it contains and described electronic control unit 200 do not mate, and the reprogrammed program module 210 in the described electronic control unit 200 does not receive this request message.Therefore, only contain with the described request message in the electronic control unit 200 that is complementary of identifier, the reprogrammed program module 210 that it includes just can receive the described request message, after described reprogrammed program module 210 receives the described request message, described reprogrammed program module 210 sends described response message, and interrupt the bootup process of 210 pairs of described application program modules 220 of described reprogrammed program module, so that described application program module 220 maintains not starting state.
Wherein, before described reprogrammed equipment 100 sent the described request message, described electronic control unit 200 can be in closed condition, and after described reprogrammed equipment 100 sent the described request message, described electronic control unit 200 can switch to opening.
Described response message sends submodule 020, be used in the situation that described electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in the described electronic control unit 200 receives the described request message in Preset Time after, interruption is to the bootup process of application program module 220 in this electronic control unit 200, and sends response messages to described reprogrammed equipment 100;
Wherein, reprogrammed program module 210 in the described electronic control unit 200 is interrupted the bootup process of 210 pairs of described application program modules 220 of described reprogrammed program module, can be so that described application program module 220 maintains not starting state, at this moment, described reprogrammed program module 210 just can be in running status the long period, thereby guarantee that described reprogrammed equipment 100 can have time enough that the application program of preserving is downloaded in the described application program module 220 by described reprogrammed program module 210, has realized the online reprogrammed of application program.
Need to prove, when described application program module 220 needs the situation of reprogrammed to exist defective or needs to increase new function for: the application program in the electronic control unit 200, or because the incomplete application program of function has been downloaded in carelessness, or because some reason causes the situation of the application program damage in the electronic control unit etc.
Described request message retransmit module 030 is used for when described reprogrammed equipment 100 does not receive described response message in Preset Time, and described reprogrammed equipment 100 sends the described request message again to described electronic control unit 200;
Be understandable that, described reprogrammed equipment 100 sends request message to described electronic control unit 200, so that receive the running status that described request message reprogrammed program module 210 is in the long period in the described electronic control unit 200, thereby guarantee that reprogrammed equipment 100 can have time enough that the application program of preserving is downloaded in the application program module 220 by reprogrammed module 210, realizes the online reprogrammed of application program.And judge that the foundation whether described electronic control unit 200 receives the described request message is: response message as described in whether described reprogrammed equipment 100 receives in Preset Time (such as 1ms).If described reprogrammed equipment 100 receives described response message in Preset Time, described reprogrammed equipment 100 enters to send in the described electronic control unit 200 of response message with the application program programming of preserving.If described reprogrammed equipment 100 does not receive described response message, then continue to send request message to described electronic control unit 200.In actual applications, described reprogrammed equipment 100 can repeatedly be carried out request message retransmit module 030.
Certainly, in another embodiment, constantly do not send request message to described electronic control unit 200 for fear of described reprogrammed equipment 100 before receiving described response message, we can arrange another time threshold, such as 1s.If in the described Preset Time in 1s (such as 1ms), described reprogrammed equipment 100 does not receive described response message, then continue to send the described request message to described electronic control unit 200, if surpass 1s, 100 of described reprogrammed equipment stop to send the described request message.
Described program burn writing module 040, be used for when described reprogrammed equipment 100 receives described response message in Preset Time, described reprogrammed equipment 100 receives described response message, and the application program programming of preserving is entered to send in the electronic control unit of response message;
Wherein, can contain the identifier of described electronic control unit 200 in the described request message, when having the request message that mates with described electronic control unit 200 to arrive, the reprogrammed program module 210 of described electronic control unit 200 receives these request messages.
The reprogrammed system of a kind of application program provided by the invention, for electronic control unit 200 being disassembled so that reprogrammed program module 210 is in the situation of the running status of long period, in the situation that electronic control unit 200 becomes power-up state by off-position, behind the request message by 100 transmissions of reprogrammed program module 210 reception reprogrammed equipment, reprogrammed program module 210 sends response message to reprogrammed equipment 100, and the bootup process of interruption reprogrammed program module 210 application programs modules 220, so that application program module 220 maintains not starting state.When application program module 220 maintains not starting state, reprogrammed program module 210 just can be in running status the long period, thereby guarantee that reprogrammed equipment 100 can have time enough that the application program of preserving is downloaded in the application program module 220 by reprogrammed module 210, has realized the online reprogrammed of application program.
Wherein, described reprogrammed program module 210 needs also to determine whether described application program module 220 exists before receiving the described request message.Because when described application program module 220 does not exist, reprogrammed program module 210 in the described electronic control unit 200 need not to receive the running status that the described request message still can be in the long period, and described reprogrammed equipment 100 just can carry out application program by 210 pairs of described electronic control units 200 of described reprogrammed program module and download.After described reprogrammed program module 210 determines that application program module 220 exists, just need to interrupt bootup process to described application program module 220 by receiving the described request message, thereby described reprogrammed program module 210 can be in the running status of long period, described reprogrammed equipment 100 just can download to the application program of preserving in the described application program module 220 by described reprogrammed program module 210, realizes the online reprogrammed of application program.
So, described response message send submodule 020 specifically arrange can for:
In the situation that described electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in the described electronic control unit 200 is determining that its application program module 220 exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module 220 in this electronic control unit 200, and sends response messages to described reprogrammed equipment 100.
Wherein, described reprogrammed program module 210 needs also to judge whether whether correct format and described request message contain the identifier of this electronic control unit 200 for the described request message that receives after receiving the described request message.The identifier of the described electronic control unit 200 of the first five byte representation of request message for example, and this electronic control unit 200 receives the request message of front four byte representation electronic control unit 200 identifiers, namely the form of the request message that receives of this electronic control unit 200 is incorrect, so the reprogrammed program module 210 in this electronic control unit 200 does not receive this request message.The correct format of the request message that receives when described electronic control unit 200, but when the request message content that receives was incorrect, the reprogrammed program module 210 in this electronic control unit 200 did not still receive this request message.For example: with the request message of these electronic control unit 200 couplings be: during 0x040x310x010xFF0x180x000x000x00, the request message that this electronic control unit 200 receives is: 0x050x310x010xFF0x180x000x000x00, although only have first byte to become 0x05 by 0x04 in the request message, other bytes are all less than changing, but, the content of the request message that receives is incorrect, so the reprogrammed program module 210 in the described electronic control unit 200 does not receive this request message.
So, described response message send submodule 020 specifically arrange can for:
In the situation that described electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in the described electronic control unit 200 is determining that its application program module 220 exists, and in Preset Time, receive the described request message, described reprogrammed program module 210 is after correct and described request message content contains these electronic control unit 200 identifiers at definite described request message format, interruption is to the bootup process of application program module 220 in this electronic control unit 200, and sends response messages to described reprogrammed equipment 100.
Need to prove, when described reprogrammed program module 210 does not still receive request message after Preset Time exceeds, then described reprogrammed program module 210 no longer receives request message.
As shown in Figure 5, the structural representation of electronic control unit in the reprogrammed system of the disclosed a kind of application program of the embodiment of the invention can comprise:
Upper electronic module 021 is used for described electronic control unit 200 and becomes power-up state by off-position;
Application program is determined submodule 022, is used for described reprogrammed program module and determines whether described application program module 220 exists, and if not, the updating submodule 029 that then runs application if so, is then moved the request message time of reception and judged submodule 023;
The request message time of reception is judged submodule 023, is used for determining whether to receive the described request message in Preset Time, if not, then moves Preset Time and judges submodule 024, if so, then moves request message and judges submodule 026;
Preset Time is judged submodule 024, is used for determining whether to exceed Preset Time, if not, then moves the request message time of reception and judges submodule 023, and if so, implementation sub-module 025 then runs application;
Application program implementation sub-module 025 is used for described application program module 220 and carries out existing application program;
Request message is judged submodule 026, and whether correct for the form of the request message of determining to receive, whether content contains the identifier of this electronic control unit 200, if, then move request message and receive submodule 027, otherwise the operation Preset Time is judged submodule 024;
Request message receives submodule 027, is used for receiving the described request message;
Send response message submodule 028, be used for sending response message to described reprogrammed equipment 100, interrupt the bootup process to described application program module 220;
Application program update submodule 029 is used for receiving the application program that described reprogrammed equipment 100 programmings enter, and upgrades the application program in the described application program module 220.
To sum up, the reprogramming method of a kind of application program provided by the invention and system, reprogrammed equipment 100 is connected with at least one electronic control unit 200, and described electronic control unit 200 can comprise: reprogrammed program module 210 and application program module 220.In the situation that electronic control unit 200 becomes power-up state by off-position, reprogrammed program module 210 in this electronic control unit 200 receives the request message of reprogrammed equipment 100 transmissions in Preset Time after, this reprogrammed program module 210 sends response message to reprogrammed equipment 100, and the bootup process of interruption reprogrammed program module 210 application programs modules 220, so that application program module 220 maintains not starting state.When application program module 220 maintains not starting state, reprogrammed program module 210 just can be in running status the long period, thereby guarantee that reprogrammed equipment 100 can have time enough that the application program of preserving is downloaded in the application program module 220 by reprogrammed program module 210, has realized the online reprogrammed of application program.Because need not electronic control unit is disassembled, so the present invention also effectively reduces the maintenance cost to electronic control unit.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, in other embodiments realization.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (6)

1. the reprogramming method of an application program, it is characterized in that, be applied in reprogrammed equipment and the electronic control unit, described reprogrammed equipment is connected with at least one described electronic control unit, described electronic control unit comprises: reprogrammed program module and application program module, wherein, described reprogrammed program module is used for guiding described application program module, and described method comprises:
Described reprogrammed equipment sends request message to described electronic control unit;
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit receives the described request message in Preset Time after, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment;
When described reprogrammed equipment did not receive described response message in Preset Time, described reprogrammed equipment sent the described request message again to described electronic control unit;
When described reprogrammed equipment receives described response message in Preset Time, the application program programming of preserving is entered to send in the electronic control unit of response message;
Wherein, contain the identifier of described electronic control unit in the described request message, when having the request message that mates with described electronic control unit to arrive, the reprogrammed program module of described electronic control unit receives this request message.
2. method according to claim 1, it is characterized in that, in the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit receives the described request message in Preset Time after, interruption is to the bootup process of application program module in this electronic control unit, and comprises to the step that described reprogrammed equipment sends response message:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that its application program module exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
3. method according to claim 2, it is characterized in that, in the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that described application program module exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module in this electronic control unit, and comprises to the step that described reprogrammed equipment sends response message:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that its application program module exists, and in Preset Time, receive the described request message, described reprogrammed program module is after correct and described request message content contains this electronic control unit identifier at definite described request message format, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
4. the reprogrammed system of an application program, it is characterized in that, comprise reprogrammed equipment and at least one electronic control unit that is connected with described reprogrammed equipment, described electronic control unit comprises: reprogrammed program module and application program module, wherein, described reprogrammed program module is used for guiding described application program module
Described reprogrammed equipment comprises: request message sending module, request message retransmit module and program burn writing module,
Described reprogrammed program module comprises: response message sends submodule,
Described request message sending module is used for described reprogrammed equipment and sends request message to described electronic control unit;
Described response message sends submodule, be used in the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit receives the described request message in Preset Time after, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment;
Described request message retransmit module: be used for when described reprogrammed equipment does not receive described response message in Preset Time, described reprogrammed equipment sends the described request message again to described electronic control unit;
Described program burn writing module is used for when described reprogrammed equipment receives described response message in Preset Time, and described reprogrammed equipment receives described response message, and the application program programming of preserving is entered to send in the electronic control unit of response message;
Wherein, contain the identifier of described electronic control unit in the described request message, when having the request message that mates with described electronic control unit to arrive, the reprogrammed program module of described electronic control unit receives this request message.
5. system according to claim 4 is characterized in that, described response message sends submodule and specifically is set to:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that described application program module exists, and after in Preset Time, receiving the described request message, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
6. system according to claim 5 is characterized in that, described response message sends submodule and specifically is set to:
In the situation that described electronic control unit becomes power-up state by off-position, reprogrammed program module in the described electronic control unit is determining that described application program module exists, and in Preset Time, receive the described request message, described reprogrammed program module is after correct and described request message content contains this electronic control unit identifier at definite described request message format, interruption is to the bootup process of application program module in this electronic control unit, and sends response message to described reprogrammed equipment.
CN2012105646482A 2012-12-21 2012-12-21 Application reprogramming method and application reprogramming system Pending CN103019792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105646482A CN103019792A (en) 2012-12-21 2012-12-21 Application reprogramming method and application reprogramming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105646482A CN103019792A (en) 2012-12-21 2012-12-21 Application reprogramming method and application reprogramming system

Publications (1)

Publication Number Publication Date
CN103019792A true CN103019792A (en) 2013-04-03

Family

ID=47968426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105646482A Pending CN103019792A (en) 2012-12-21 2012-12-21 Application reprogramming method and application reprogramming system

Country Status (1)

Country Link
CN (1) CN103019792A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544473A (en) * 2017-10-13 2018-01-05 北京经纬恒润科技有限公司 A kind of reprogramming method and device
CN110688136A (en) * 2019-09-25 2020-01-14 北京经纬恒润科技有限公司 Application program updating method and device
CN112673586A (en) * 2020-12-08 2021-04-16 华为技术有限公司 Data packet processing method and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764152A (en) * 2004-10-21 2006-04-26 中兴通讯股份有限公司 Point-to-point communication method on Ethernet
CN1859071A (en) * 2005-04-30 2006-11-08 中兴通讯股份有限公司 Information determining method for equipment monitor system
CN101013321A (en) * 2007-02-07 2007-08-08 浙江大学 Intelligent actuator of greenhouse based on Ethernet and wireless sensor network
CN101114331A (en) * 2007-08-06 2008-01-30 北京航空航天大学 Universal read-write machine communicating protocol based on EPC read-write machine specification
CN101493779A (en) * 2009-02-27 2009-07-29 中国工商银行股份有限公司 Remote terminal control method
CN101594613A (en) * 2009-06-22 2009-12-02 中兴通讯股份有限公司 The method of terminal equipment and upgrading thereof, system
CN101739012A (en) * 2009-12-14 2010-06-16 北汽福田汽车股份有限公司 Vehicle electronic control unit and control method and upper computer thereof
CN201527450U (en) * 2009-09-17 2010-07-14 电子科技大学 A remote electrical energy metering system
CN101876699A (en) * 2009-04-30 2010-11-03 中国科学院空间科学与应用研究中心 Control system and control method of satellite-borne microwave radiometer
CN102314363A (en) * 2011-07-27 2012-01-11 深圳市航盛电子股份有限公司 Booting method of automobile controller and automobile controller
CN202261983U (en) * 2011-10-14 2012-05-30 浙江树人大学 Household wireless LED lighting control system
CN102662716A (en) * 2012-04-23 2012-09-12 上海市共进通信技术有限公司 Method for realizing startup guiding control in computer system by using interface access
CN202615391U (en) * 2012-05-16 2012-12-19 宁波市镇海金特电子信息有限公司 Universal serial bus (USB) expanding device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764152A (en) * 2004-10-21 2006-04-26 中兴通讯股份有限公司 Point-to-point communication method on Ethernet
CN1859071A (en) * 2005-04-30 2006-11-08 中兴通讯股份有限公司 Information determining method for equipment monitor system
CN101013321A (en) * 2007-02-07 2007-08-08 浙江大学 Intelligent actuator of greenhouse based on Ethernet and wireless sensor network
CN101114331A (en) * 2007-08-06 2008-01-30 北京航空航天大学 Universal read-write machine communicating protocol based on EPC read-write machine specification
CN101493779A (en) * 2009-02-27 2009-07-29 中国工商银行股份有限公司 Remote terminal control method
CN101876699A (en) * 2009-04-30 2010-11-03 中国科学院空间科学与应用研究中心 Control system and control method of satellite-borne microwave radiometer
CN101594613A (en) * 2009-06-22 2009-12-02 中兴通讯股份有限公司 The method of terminal equipment and upgrading thereof, system
CN201527450U (en) * 2009-09-17 2010-07-14 电子科技大学 A remote electrical energy metering system
CN101739012A (en) * 2009-12-14 2010-06-16 北汽福田汽车股份有限公司 Vehicle electronic control unit and control method and upper computer thereof
CN102314363A (en) * 2011-07-27 2012-01-11 深圳市航盛电子股份有限公司 Booting method of automobile controller and automobile controller
CN202261983U (en) * 2011-10-14 2012-05-30 浙江树人大学 Household wireless LED lighting control system
CN102662716A (en) * 2012-04-23 2012-09-12 上海市共进通信技术有限公司 Method for realizing startup guiding control in computer system by using interface access
CN202615391U (en) * 2012-05-16 2012-12-19 宁波市镇海金特电子信息有限公司 Universal serial bus (USB) expanding device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544473A (en) * 2017-10-13 2018-01-05 北京经纬恒润科技有限公司 A kind of reprogramming method and device
CN107544473B (en) * 2017-10-13 2019-08-30 北京经纬恒润科技有限公司 A kind of reprogramming method and device
CN110688136A (en) * 2019-09-25 2020-01-14 北京经纬恒润科技有限公司 Application program updating method and device
CN110688136B (en) * 2019-09-25 2023-12-22 北京经纬恒润科技股份有限公司 Application program updating method and device
CN112673586A (en) * 2020-12-08 2021-04-16 华为技术有限公司 Data packet processing method and device

Similar Documents

Publication Publication Date Title
US11223525B2 (en) Gateway device, firmware update method, and recording medium
CN102947135B (en) Program update device
CN104572221B (en) A kind of vehicle-mounted ECU online upgrade system and method
CN103688268B (en) Vehicle unit and the method for operating vehicle unit
CN104149717A (en) Remote non-interference updating system and remote non-interference updating method for vehicle control
WO2013051777A1 (en) Method for upgrading the electronic control device of a vehicle, and terminal for same
US20220413833A1 (en) Onboard update apparatus, update processing program, and update method
US9569404B2 (en) In-vehicle controller and non-transitory tangible computer readable medium
CN103019792A (en) Application reprogramming method and application reprogramming system
CN110297649A (en) Method, system and the equipment of software upgrading are carried out to the electronic control unit of vehicle
CN107819794A (en) Car-mounted terminal programme upgrade method and its system
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
EP3249531B1 (en) Control means, in-vehicle program rewriting device equipped with same, and in-vehicle program rewriting method
CN112783521A (en) Program update system and vehicle management server
CN113360175A (en) Application updating method of vehicle controller and vehicle controller
US20150215392A1 (en) Method for starting up at least one functional device, and rail vehicle system
KR102109125B1 (en) Method for managing state of ECU in vehicle based on automotive open system architecture
US20240004640A1 (en) Computer-Implemented Method And Device For The Automated Update Of A Communication Unit Of A Control Unit Of A Vehicle
CN113791800A (en) Automatic parking control module remote upgrading method and system and automobile
CN105549416A (en) Subsystem, motor vehicle, and system for transmitting software updates to motor vehicle
CN103135983A (en) Method of managing program for electric vehicle
WO2023272570A1 (en) Method for updating electronic control unit (ecu), ecu, and terminal
CN115129340A (en) Method, device and equipment for upgrading whole vehicle program and storage medium
DE202016008498U1 (en) Control device for a vehicle
CN118339553A (en) Detection and mitigation of cyber attacks for vehicle diagnostic sessions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130403