CN106143353B - A kind of vehicle-mounted electronic control unit module method for refreshing and system - Google Patents

A kind of vehicle-mounted electronic control unit module method for refreshing and system Download PDF

Info

Publication number
CN106143353B
CN106143353B CN201510199038.0A CN201510199038A CN106143353B CN 106143353 B CN106143353 B CN 106143353B CN 201510199038 A CN201510199038 A CN 201510199038A CN 106143353 B CN106143353 B CN 106143353B
Authority
CN
China
Prior art keywords
record
module
instruction
vehicle
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510199038.0A
Other languages
Chinese (zh)
Other versions
CN106143353A (en
Inventor
黄新华
崔凌云
杨威
瞿敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC General Motors Corp Ltd
Pan Asia Technical Automotive Center Co Ltd
Original Assignee
Pan Asia Technical Automotive Center Co Ltd
Shanghai General Motors 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 Pan Asia Technical Automotive Center Co Ltd, Shanghai General Motors Co Ltd filed Critical Pan Asia Technical Automotive Center Co Ltd
Priority to CN201510199038.0A priority Critical patent/CN106143353B/en
Publication of CN106143353A publication Critical patent/CN106143353A/en
Application granted granted Critical
Publication of CN106143353B publication Critical patent/CN106143353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of vehicle-mounted electronic control unit module method for refreshing and system, and method includes: that first record is read from the preset configuration file including a plurality of record as current record, and every record includes at least instruction and jumps mode;Instruct sending step, comprising: obtain instruction included by current record as present instruction, send the present instruction to vehicle-mounted electronic control unit module;It obtains vehicle-mounted electronic control unit module and responds module response that the present instruction is returned as current block response;Obtain and jump mode included by current record as currently jumping mode, if it is described it is current to jump mode include next record corresponding with current block response, current record is updated to next record, sending step is executed instruction, otherwise terminates.It is low and reduce the development cycle that the present invention improves recycling rate of waterused.

Description

A kind of vehicle-mounted electronic control unit module method for refreshing and system
Technical field
The present invention relates to vehicle-mounted electronic control unit correlative technology field, especially a kind of vehicle-mounted electronic control unit module Method for refreshing and system.
Background technique
Before 1994, ISO has formulated ISO14230.Before 2008, ISO14230 is domestic many automobile factorys The deagnostic communication standard that quotient uses, is based on K radiodiagnosis x.But with being phased out for K line, the rise of CAN network is most of Main engine plants are all transitioned into the diagnosing protocol based on ISO15765.But with the development of In-vehicle networking, but occur MOST, The multiple networks such as FlexRay, wireless network are simultaneously deposited.For the diagnostic service of unified heterogeneous networks, ISO has formulated a kind of new examine Disconnected communication protocol, ISO14229-1 are also unified diagnostic service (Unified diagnostic services, UDS).UDS clothes Business is applied not only to CAN network prevailing at present, can be also used for later MOST, FlexRay, wireless network etc., is grid motor The development of network is laid the groundwork.UDS standard has generally been used in America and Europe, and as following development trend, certain domestic main engine plants are also just Gradually toward UDS standard transition, developing one's own UDS standard, the research and development for electronic architecture of new generation.
Simultaneously in some older Vehicle Electronic Control Unit (Electronic Control Unit, ECU) maintenances, It mostly uses disassembly greatly and replaces the mode of ECU chip, still, once this ECU chip for having completed programming can not obtain, then Will cause can not repair or situation that maintenance effect is bad, influence vehicle operability and safety.In present new vehicle In ECU maintenance, due to there being a large amount of information of vehicles in ECU, it can not be repaired by way of replacing ECU chip, So automobile production manufacturer uses external computer mostly, the mode being directly programmed to ECU chip is original simple to replace Replacement, repairs ECU or upgrades to achieve the purpose that.Do not allow simply to dismantle vehicle ECU chip, replace.
Existing ECU chip refresh mode, during developing upper layer software (applications), developer first is from hardware supplier Place obtains complete data file and calibration refresh flow, and the instruction according to appeared in data file, is configured using tool Instruction set passes through written in code instruction set using programming software.Then developer needs to use configuration tool according to refresh flow Or use programming tool configuration-direct process on the basis of instruction set.
But in practical applications, following some problems will lead to according to the upper layer software (applications) that above-mentioned software architecture is developed:
First according to the exploitation that the exploitation of the framework is for single module, each new module is required to carry out independent Exploitation, software recycling rate of waterused is poor, and development efficiency is low.
Secondly, original framework does not support UDS agreement, UDS service can not communicate under original framework.
It again, is the data file exploitation provided according to supplier according to the instruction flow of the exploitation of the framework, due to soft Part running environment difference, so error rate is relatively high in refresh process.
Summary of the invention
Based on this, it is necessary to and development cycle longer skill low for the ECU refreshing mode recycling rate of waterused of the prior art Art problem provides a kind of vehicle-mounted electronic control unit module method for refreshing and system.
A kind of vehicle-mounted electronic control unit module method for refreshing, comprising:
Initial step, comprising: first record is read from the preset configuration file including a plurality of record as current Record, every record include at least instruction and jump mode, execute instruction sending step;
Instruct sending step, comprising: obtain instruction included by current record as present instruction, control to vehicle electronics Unit module sends the present instruction, execution module response obtaining step;
Module response obtaining step, comprising: obtain the vehicle-mounted electronic control unit module response present instruction and returned The module response returned executes next record obtaining step as current block response;
Next record obtaining step, comprising: obtain and jump mode included by current record as currently mode is jumped, such as It includes next record corresponding with current block response that mode is currently jumped described in fruit, then current record is updated to next note Record, executes instruction sending step, otherwise terminates.
A kind of vehicle-mounted electronic control unit module updating system, comprising:
Initial module is used for: first record is read from the preset configuration file including a plurality of record as current Record, every record include at least instruction and jump mode, execute instruction sending module;
Instruction sending module is used for: being obtained instruction included by current record as present instruction, is controlled to vehicle electronics Unit module sends the present instruction, and execution module response obtains module;
Module response obtains module, is used for: obtaining the vehicle-mounted electronic control unit module response present instruction and is returned The module response returned executes next record and obtains module as current block response;
Next record obtains module, is used for: obtaining and jumps mode included by current record as currently mode is jumped, such as It includes next record corresponding with current block response that mode is currently jumped described in fruit, then current record is updated to next note Record, executes instruction sending module, otherwise terminates.
The record that the present invention is jumped by reading control instruction from configuration file, is controlled to realize by configuration file The refresh process of ECU module.Due to using configuration file, developer only needs protocol modification appropriate to be configuration Refreshing of the different agreement to ECU module can be realized in file, and it is low and reduce the development cycle to improve recycling rate of waterused.
Detailed description of the invention
Fig. 1 is a kind of vehicle-mounted electronic control unit module method for refreshing of the present invention;
Fig. 2 is the structural schematic diagram of preferred embodiment;
Fig. 3 is a kind of structural module diagram of vehicle-mounted electronic control unit module updating system of the present invention.
Specific embodiment
The present invention will be further described in detail in the following with reference to the drawings and specific embodiments.
It is as shown in Figure 1 a kind of work flow diagram of vehicle-mounted electronic control unit module method for refreshing of the present invention, comprising:
Step S101, comprising: first record is read from the preset configuration file including a plurality of record as current Record, every record include at least instruction and jump mode, execute step S102;
Step S102, comprising: obtain instruction included by current record as present instruction, to vehicle-mounted electronic control unit Module sends the present instruction, executes step S103;
Step S103, comprising: obtain vehicle-mounted electronic control unit module and respond the module sound that the present instruction is returned It should be worth as current block response, execute step S104;
Step S104, comprising: obtain and jump mode included by current record as currently mode is jumped, if described work as Before to jump mode include next record corresponding with current block response, then current record is updated to next record, executed Step S102, otherwise terminates.
The present invention develops module updating software from the angle of communications protocol, and it is single to have broken former basis The mode of Development of Module updating software.Under this framework, configuration file not only provides corresponding instruction, also provides corresponding refresh Process, developer only need to generate configuration file, without the interface between understanding and ECU, are not necessarily to how understanding sends to ECU Instruction, therefore development difficulty reduces, the development cycle also reduces, subsequent when needing replacing new agreement, it is only necessary to update configuration File can complete refresh flow.The present invention can improve the automation process of instruction configuration well, while make software Modular construction is more clear, and can reduce by 50% development amount refreshed with upper module, substantially increases the repetition benefit of software With rate, development cost is reduced.
In one of the embodiments:
The record further includes mark sequence number, and the mode that jumps includes at least one data pair, and the data are to packet It includes module response and jumps sequence number;
The step S104, specifically includes: obtaining and jumps mode included by current record as currently mode is jumped, such as Fruit, which currently jumps, finds the data pair including current block response in mode, then by the data including current block response To the included sequence number that jumps as currently jumping sequence number, using mark Serial No. currently jump the record of sequence number as Current record is updated to next record by next record, is executed instruction obtaining step, is otherwise terminated.
The present embodiment by module response and is jumped sequence number and matched using mark sequence number identification record, is made Jumping for call instruction can be corresponding with sequence number is jumped according to different module responses, to find identical mark sequence number And it realizes and passes through configuration of the configuration file to refresh flow.
Preferably, the hexadecimal number of one byte of Serial No., the data are to 16 including two bytes System number, wherein the hexadecimal number of data pair a byte be module response, the 16 of another byte of data pair System number is to jump sequence number.
Described instruction includes elementary instruction and order parameter in one of the embodiments,.
Order parameter configures elementary instruction, can be formed by the different cooperations of elementary instruction and order parameter multiple Different instructions.
Such as: write-in programming date, elementary instruction are 0x3B (a byte hexadecimal number), and configuration parameter is respectively 0x99,0x00,0x00,0x00 (being a byte hexadecimal number).When parameter is 0x99, software can be read currently automatically System time, the instruction after generation are as follows: 0x3B 0x99 0x20 0x15 0x04 0x22.
The configuration file unifies the generation of diagnostic service agreement according to automobile in one of the embodiments,.
The present embodiment unifies diagnostic service agreement according to automobile and generates configuration file, to realize that ECU refreshes the branch to UDS It holds.
Be illustrated in figure 2 the structural schematic diagram of preferred embodiment, comprising: upper layer software (applications) 21, configuration file 22, VCI hardware 23 and vehicle-mounted ECU chip 24.
Configuration file includes multiple records, and every record is as shown in table 1.
1 single of table records schematic table
Sequence number Service Service configuration parameters Jump mode
## ## ######## G0-G1 G2-G3 G4-G5 G6-G7 G8-G9
Wherein:
Sequence number: being made of the hexadecimal number of a BYTE, is the process sequence in refresh process;
Service: being made of the hexadecimal number of a BYTE, is the elementary instruction in refresh process;
Service configuration parameters: being made of the hexadecimal number of four BYTE and service match, and configuration sends instruction;
It jumps mode: being made of the hexadecimal number of 10 BYTE, be divided into 5 groups, every group by two hexadecimal number structures At previous is module response, and the latter is to jump sequence number.Such as: when module response is G2, program circuit is just jumped To G3.G0~G9 is respectively the hexadecimal number of a BYTE.
In Fig. 2, upper layer software (applications) 21 needs to load the instruction set write according to related protocol, in refresh process, A record is read according to module refresh sequence first from configuration file 22, then according to data record configuration-direct, and is led to It crosses VCI hardware 23 and is sent to vehicle-mounted ECU chip 24.After upper layer software (applications) 21 receives the data feedback of vehicle-mounted ECU chip 24, according to Feedback data searches in the record of table 1 and jumps sequence.It, can be by the calibration number in configuration file 22 by above-mentioned steps repetitive cycling According to the module of write-in vehicle-mounted ECU chip 24, refresh process is completed.
The present invention is compared with pervious software architecture, greatly reduces the workload of instruction set exploitation and process exploitation, only It needs to carry out writing for configuration file, reduces the difficulty of exploitation, while also improving the accuracy of exploitation.
It is illustrated in figure 3 a kind of structural module diagram of vehicle-mounted electronic control unit module updating system of the present invention, comprising:
Initial module 301, is used for: reading first record from the preset configuration file including a plurality of record and is used as and works as Preceding record, every record include at least instruction and jump mode, execute instruction sending module 302;
Instruction sending module 302, is used for: obtaining instruction included by current record as present instruction, to vehicle electronics Control unit module sends the present instruction, and execution module response obtains module;
Module response obtains module 303, is used for: obtaining vehicle-mounted electronic control unit module and responds the present instruction institute The module response of return executes next record and obtains module 304 as current block response;
Next record obtains module 304, is used for: obtaining and jumps mode included by current record as the current side of jumping Formula, if described, currently to jump mode include next record corresponding with current block response, and current record is updated to Next record executes instruction sending module 302, otherwise terminates.
In one of the embodiments:
The record further includes mark sequence number, and the mode that jumps includes at least one data pair, and the data are to packet It includes module response and jumps sequence number;
The next record obtains module, specifically includes: obtaining to jump mode included by current record and be used as and works as front jumping Turn mode, find the data pair including current block response in mode if currently jumped, will include that current block is rung The data that should be worth jump sequence number as currently sequence number is jumped to included, and mark Serial No. is currently jumped sequence number Record as next record, current record is updated to next record, acquisition module is executed instruction, otherwise terminates.
The hexadecimal number of one byte of Serial No. in one of the embodiments, the data are to including two The hexadecimal number of a byte, wherein the hexadecimal number of data pair a byte be module response, data pair it is another The hexadecimal number of a byte is to jump sequence number.
Described instruction includes elementary instruction and order parameter in one of the embodiments,.
The configuration file unifies the generation of diagnostic service agreement according to automobile in one of the embodiments,.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (8)

1. a kind of vehicle-mounted electronic control unit module method for refreshing characterized by comprising
Initial step, comprising: first record is read from the preset configuration file including a plurality of record is used as current record, Every record includes at least instruction and jumps mode, executes instruction sending step;
Instruct sending step, comprising: obtain instruction included by current record as present instruction, to vehicle-mounted electronic control unit Module sends the present instruction, execution module response obtaining step;
Module response obtaining step, comprising: obtain vehicle-mounted electronic control unit module and respond what the present instruction was returned Module response executes next record obtaining step as current block response;
Next record obtaining step, comprising: obtain and jump mode included by current record as currently mode is jumped, if institute Stating and currently jumping mode includes next record corresponding with current block response, then current record is updated to next record, Sending step is executed instruction, is otherwise terminated;
The record further includes sequence number, and the mode that jumps includes at least one data pair, and the data are rung to including module It should be worth and jump sequence number;
The next record obtaining step, specifically includes: obtaining and jumps mode included by current record as the current side of jumping Formula finds the data pair including current block response if currently jumped, will include current block response in mode Data to the included sequence number that jumps as currently sequence number is jumped, Serial No. is currently jumped to the record work of sequence number For next record, current record is updated to next record, obtaining step is executed instruction, otherwise terminates.
2. vehicle-mounted electronic control unit module method for refreshing according to claim 1, which is characterized in that the Serial No. The hexadecimal number of one byte, the data are to the hexadecimal number including two bytes, wherein data pair a byte Hexadecimal number be module response, the hexadecimal number of another byte of data pair is to jump sequence number.
3. vehicle-mounted electronic control unit module method for refreshing according to claim 1, which is characterized in that described instruction includes Elementary instruction and order parameter.
4. vehicle-mounted electronic control unit module method for refreshing according to claim 1, which is characterized in that the configuration file Unify diagnostic service agreement according to automobile to generate.
5. a kind of vehicle-mounted electronic control unit module updating system characterized by comprising
Initial module is used for: first record read from the preset configuration file including a plurality of record is used as current record, Every record includes at least instruction and jumps mode, executes instruction sending module;
Instruction sending module is used for: obtaining instruction included by current record as present instruction, to vehicle-mounted electronic control unit Module sends the present instruction, and execution module response obtains module;
Module response obtains module, is used for: obtaining vehicle-mounted electronic control unit module and responds what the present instruction was returned Module response executes next record and obtains module as current block response;
Next record obtains module, is used for: obtaining and jumps mode included by current record as currently mode is jumped, if institute Stating and currently jumping mode includes next record corresponding with current block response, then current record is updated to next record, Sending module is executed instruction, is otherwise terminated;
The record further includes sequence number, and the mode that jumps includes at least one data pair, and the data are rung to including module It should be worth and jump sequence number;
The next record obtains module, specifically includes: obtaining and jumps mode included by current record as the current side of jumping Formula finds the data pair including current block response if currently jumped, will include current block response in mode Data to the included sequence number that jumps as currently sequence number is jumped, Serial No. is currently jumped to the record work of sequence number For next record, current record is updated to next record, acquisition module is executed instruction, otherwise terminates.
6. vehicle-mounted electronic control unit module updating system according to claim 5, which is characterized in that the Serial No. The hexadecimal number of one byte, the data are to the hexadecimal number including two bytes, wherein data pair a byte Hexadecimal number be module response, the hexadecimal number of another byte of data pair is to jump sequence number.
7. vehicle-mounted electronic control unit module updating system according to claim 5, which is characterized in that described instruction includes Elementary instruction and order parameter.
8. vehicle-mounted electronic control unit module updating system according to claim 5, which is characterized in that the configuration file Unify diagnostic service agreement according to automobile to generate.
CN201510199038.0A 2015-04-23 2015-04-23 A kind of vehicle-mounted electronic control unit module method for refreshing and system Active CN106143353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510199038.0A CN106143353B (en) 2015-04-23 2015-04-23 A kind of vehicle-mounted electronic control unit module method for refreshing and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510199038.0A CN106143353B (en) 2015-04-23 2015-04-23 A kind of vehicle-mounted electronic control unit module method for refreshing and system

Publications (2)

Publication Number Publication Date
CN106143353A CN106143353A (en) 2016-11-23
CN106143353B true CN106143353B (en) 2018-12-21

Family

ID=57347257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510199038.0A Active CN106143353B (en) 2015-04-23 2015-04-23 A kind of vehicle-mounted electronic control unit module method for refreshing and system

Country Status (1)

Country Link
CN (1) CN106143353B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7110894B2 (en) * 2018-10-04 2022-08-02 トヨタ自動車株式会社 In-vehicle information processing system, program, and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286066A (en) * 2007-12-28 2008-10-15 奇瑞汽车股份有限公司 Automobile controller software refreshing method
CN102053569A (en) * 2010-12-13 2011-05-11 普华基础软件股份有限公司 Self refresh method and self-refresh device used for automotive electronic controller
CN102736925A (en) * 2011-04-14 2012-10-17 比亚迪股份有限公司 Vehicle software updating method and system
CN103377057A (en) * 2012-04-20 2013-10-30 上海通用汽车有限公司 System and method for refreshing software of user vehicle electronic control module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009018761A1 (en) * 2009-04-27 2010-10-28 Bayerische Motoren Werke Aktiengesellschaft Process for updating software components
KR101463604B1 (en) * 2013-04-24 2014-11-20 주식회사 오비고 Method, system, and computer-readable recording media for updating electronic control unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286066A (en) * 2007-12-28 2008-10-15 奇瑞汽车股份有限公司 Automobile controller software refreshing method
CN102053569A (en) * 2010-12-13 2011-05-11 普华基础软件股份有限公司 Self refresh method and self-refresh device used for automotive electronic controller
CN102736925A (en) * 2011-04-14 2012-10-17 比亚迪股份有限公司 Vehicle software updating method and system
CN103377057A (en) * 2012-04-20 2013-10-30 上海通用汽车有限公司 System and method for refreshing software of user vehicle electronic control module

Also Published As

Publication number Publication date
CN106143353A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN109117121B (en) AUTOSAR software architecture implementation method
CN106547709A (en) The method and device of flexible configuration multi-channel DMA controller
CN104965507A (en) Method used for generating open diagnostic data exchange database and device
CN105577475A (en) Automatic performance test system and method
CN102736565A (en) Communication method of automatic control equipment based on upper and lower computer structures
CN106095376A (en) A kind of implementation method of quick configuration monitoring picture
CN210666480U (en) Vehicle test system
US20190182106A1 (en) Remote line integration
CN105337796A (en) WIFI router performance test method and system
CN107479940A (en) A kind of method and device for realizing Internet of Things module
CN114460925B (en) Automatic test method for CAN interface HIL of electric automobile controller
CN106143353B (en) A kind of vehicle-mounted electronic control unit module method for refreshing and system
CN102880497B (en) Complier and method for reusing and optimizing software management memory
CN113727429A (en) Cross-network-group clock synchronization method and device, storage medium and terminal
CN112241383A (en) Updating of components of a modular system
CN103761203B (en) A kind of general connection method for different hardware equipment
CN103188117B (en) Information interaction server simulation testing device and method
CN109857638A (en) A kind of testing system software general framework
CN112783549A (en) Method for upgrading data version number of automobile electric control element
CN102576222B (en) For the method for operation site bus interface
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
CN212391726U (en) Distributed controller database downloading structure based on double buffer areas
CN113985849A (en) Method for writing DTC (digital control channel) read ECU (electronic control unit) version of automatic clear-reading whole vehicle based on CANoe software
CN113985839A (en) XCP calibration test method based on TC397 development board

Legal Events

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