JP2019133518A - Electronic control device for vehicle - Google Patents

Electronic control device for vehicle Download PDF

Info

Publication number
JP2019133518A
JP2019133518A JP2018016707A JP2018016707A JP2019133518A JP 2019133518 A JP2019133518 A JP 2019133518A JP 2018016707 A JP2018016707 A JP 2018016707A JP 2018016707 A JP2018016707 A JP 2018016707A JP 2019133518 A JP2019133518 A JP 2019133518A
Authority
JP
Japan
Prior art keywords
vehicle
program
information
identification information
failure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018016707A
Other languages
Japanese (ja)
Other versions
JP7042096B2 (en
Inventor
聡志 秋山
Satoshi Akiyama
聡志 秋山
忠敬 森川
Tadataka Morikawa
忠敬 森川
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems 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 Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2018016707A priority Critical patent/JP7042096B2/en
Publication of JP2019133518A publication Critical patent/JP2019133518A/en
Application granted granted Critical
Publication of JP7042096B2 publication Critical patent/JP7042096B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To provide an electronic control device for a vehicle that can maintain storage information to output correct vehicle information to an external tool even when reprogramming is performed.SOLUTION: An electronic control device 30 stores first identification information that is common among a plurality of first control programs and that does not depend on the first control programs corresponding to vehicle information being generated in an operation of a vehicle 10. And, after at least one of a plurality of first control programs is rewritten as a second control program, second identification information depending on a second control program is referred from the stored first identification information, and the vehicle information is output on the basis of the second identification information. Even after rewriting of a program is performed, storage information is maintained by storing the first identification information not depending on the first control program, and compatibility between before rewriting of the program and the vehicle information is maintained by outputting the second identification information depending on the second control program to an external tool.SELECTED DRAWING: Figure 1

Description

本発明は、車両用電子制御装置に関し、例えばECM(Engine Control Module)におけるリプログラミング時の故障情報の維持に関する。   The present invention relates to an electronic control device for a vehicle, for example, maintenance of failure information during reprogramming in an ECM (Engine Control Module).

ECMなどの車両用電子制御装置では、故障を検知した場合に、車両に発生した故障情報を不揮発性メモリに記憶して保持している。そして、整備や点検のときに作業者が診断用の外部ツールをECMに接続して不揮発性メモリから故障情報を読み出し、外部ツールのモニタに故障の状況を表示して確認するようになっている(例えば特許文献1及び特許文献2参照)。   In a vehicle electronic control device such as an ECM, when a failure is detected, failure information generated in the vehicle is stored and held in a nonvolatile memory. When maintenance or inspection is performed, an operator connects an external tool for diagnosis to the ECM, reads out failure information from the nonvolatile memory, and displays the failure status on the monitor of the external tool for confirmation. (For example, refer to Patent Document 1 and Patent Document 2).

特開2009−059334号公報JP 2009-059334 A 特開2009−067298号公報JP 2009-067298 A

ところで、車両用電子制御装置では、プログラムやデータに更新、あるいは修正が必要になると、それらの書き換え、いわゆるリプログラミングが行われる。この際、ECMが故障を検知した後でリプログラミングを行うと、不揮発性メモリに記憶されている故障情報を外部ツールで表示できない可能性がある。これは、リプログラミングの前後で情報の形態が変化すると、故障情報の引き継ぎができないからである。このため、リプログラミング時には、不揮発性メモリに記憶した故障情報を消去するのが一般的であった。
しかしながら、法規制の変更により、リプログラミング後であっても、故障情報を維持することが要求されるようになった。
By the way, in the vehicle electronic control device, when the program or data needs to be updated or corrected, rewriting, that is, so-called reprogramming is performed. At this time, if reprogramming is performed after the ECM detects a failure, the failure information stored in the nonvolatile memory may not be displayed by an external tool. This is because failure information cannot be taken over if the information form changes before and after reprogramming. For this reason, the failure information stored in the nonvolatile memory is generally erased during reprogramming.
However, due to changes in laws and regulations, it has become necessary to maintain failure information even after reprogramming.

本発明は上記のような事情に鑑みてなされたもので、その目的とするところは、リプログラミングを行っても、記憶情報を維持して正しい車両情報を外部ツールに出力できる車両用電子制御装置を提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an electronic control device for a vehicle that can maintain stored information and output correct vehicle information to an external tool even if reprogramming is performed. Is to provide.

本発明の一態様に係る車両用電子制御装置は、プログラムを外部から書き換え可能に構成された電子制御装置であって、複数の第1制御プログラム間で共通し、且つ前記第1制御プログラムに依存しない第1識別情報を、車両の動作中に生じた車両情報に対応させて記憶し、前記複数の第1制御プログラムの少なくとも1つを第2制御プログラムに書き換えた後に、記憶した前記第1識別情報から前記第2制御プログラムに依存する第2識別情報を参照し、当該第2識別情報に基づき前記車両情報を出力する、ことを特徴とする。   An electronic control device for a vehicle according to an aspect of the present invention is an electronic control device configured such that a program can be rewritten from the outside, and is common among a plurality of first control programs and depends on the first control program. The first identification information that is not stored is stored in association with the vehicle information generated during operation of the vehicle, and the first identification information stored after rewriting at least one of the plurality of first control programs to the second control program is stored. The second identification information depending on the second control program is referred to from the information, and the vehicle information is output based on the second identification information.

本発明によれば、複数の第1制御プログラム間で共通し、且つ第1制御プログラムに依存しない第1識別情報を記憶することで、第1制御プログラムの書き換えを行った後でも記憶情報を維持し、書き換え後の第2制御プログラムに依存する第2識別情報を出力することで、複数の第1制御プログラムの少なくとも1つを第2制御プログラムに書き換えても車両情報の互換性を保つことができる。従って、リプログラミングを行っても、記憶情報を維持して正しい車両情報を外部ツールに出力できる。   According to the present invention, by storing the first identification information that is common among the plurality of first control programs and does not depend on the first control program, the stored information is maintained even after the first control program is rewritten. Then, by outputting the second identification information depending on the second control program after rewriting, compatibility of vehicle information can be maintained even if at least one of the plurality of first control programs is rewritten to the second control program. it can. Therefore, even if reprogramming is performed, the stored vehicle information can be maintained and correct vehicle information can be output to the external tool.

本発明の実施形態に係る車両用電子制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the electronic controller for vehicles which concerns on embodiment of this invention. 図1に示した車両用電子制御装置のリプログラミングを行う場合のシステム概要図である。It is a system schematic diagram in the case of performing reprogramming of the vehicle electronic control device shown in FIG. 図2に示したリプログラミングツールの構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration example of a reprogramming tool illustrated in FIG. 2. 従来と本発明の診断情報を対比して示す図である。It is a figure which compares and shows the diagnostic information of the past and this invention. 図1に示した車両用電子制御装置におけるリプログラミング動作を示すフローチャートである。It is a flowchart which shows the reprogramming operation | movement in the vehicle electronic control apparatus shown in FIG. 図1に示した車両用電子制御装置におけるリプログラミング前とリプログラミング後の状態について説明するための図である。It is a figure for demonstrating the state before and after reprogramming in the electronic controller for vehicles shown in FIG. 新旧プログラムの識別方法及び外部表示処理の詳細について説明するための図である。It is a figure for demonstrating the detail of the identification method of an old and new program, and an external display process. 新旧プログラムの識別方法及びリプログラミング方法の第1の例について説明するための図である。It is a figure for demonstrating the 1st example of the identification method and reprogramming method of an old and new program. 新旧プログラムの識別方法及びリプログラミング方法の第2の例について説明するための図である。It is a figure for demonstrating the 2nd example of the identification method and reprogramming method of an old and new program. 新旧プログラムの識別方法及びリプログラミング方法の第3の例について説明するための図である。It is a figure for demonstrating the 3rd example of the identification method and reprogramming method of an old and new program. 新旧プログラムの識別方法及びリプログラミング方法の第4の例について説明するための図である。It is a figure for demonstrating the 4th example of the identification method and reprogramming method of an old and new program.

以下、本発明の実施形態について図面を参照して説明する。
図1は、本発明の実施形態に係る車両用電子制御装置の概略構成を示している。車両10に搭載されたエンジン20(内燃機関)には、各種のセンサ31が設けられており、これらセンサ31で検出された信号がECM30に入力される。センサ31は、例えば吸入空気量センサ、クランク角センサ、アクセル開度センサ、水温センサ、カム角センサ、空燃比センサ、及び油温センサなどである。また、ECM30には、エンジン20の運転及び停止のメインスイッチであるイグニッションスイッチ(図示せず)からの信号が入力される。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 shows a schematic configuration of a vehicle electronic control apparatus according to an embodiment of the present invention. The engine 20 (internal combustion engine) mounted on the vehicle 10 is provided with various sensors 31, and signals detected by these sensors 31 are input to the ECM 30. The sensor 31 is, for example, an intake air amount sensor, a crank angle sensor, an accelerator opening sensor, a water temperature sensor, a cam angle sensor, an air-fuel ratio sensor, and an oil temperature sensor. Further, the ECM 30 receives a signal from an ignition switch (not shown) that is a main switch for operating and stopping the engine 20.

ECM30は、これら各種のセンサ31及びイグニッションスイッチからの信号に基づいて、予め記憶された制御プログラムに従って演算処理を行い、例えば燃料噴射弁、VTC機構及び点火モジュールなどの各種装置の操作量あるいは制御量を算出し、これらの装置や装置を駆動するアクチュエータ32などに制御信号を出力して制御する。   The ECM 30 performs arithmetic processing according to a control program stored in advance based on the signals from these various sensors 31 and the ignition switch, and manipulates or controls the various devices such as the fuel injection valve, the VTC mechanism, and the ignition module. Is calculated, and a control signal is output to the device 32 and the actuator 32 that drives the device.

このECM30は、CPU(Central Processing Unit)などのプロセッサ33と、揮発性メモリの一例としてのRAM(Random Access Memory)34と、制御プログラム及び各種データを記憶する不揮発性メモリの一例としてのROM(Read Only Memory)35と、車両情報(故障や異常の情報)及び学習値などを記憶する不揮発性メモリの一例としてのEEPROM(Electrically Erasable and Programmable Read Only Memory)36と、入力と出力のインターフェースを行うための入出力インターフェース(入出力I/F)37と、外部装置と通信を行うための外部通信インターフェース(外部通信I/F)38と、バス39とを備えている。   The ECM 30 includes a processor 33 such as a CPU (Central Processing Unit), a RAM (Random Access Memory) 34 as an example of a volatile memory, and a ROM (Read as an example of a nonvolatile memory for storing a control program and various data. Only Memory (35), EEPROM (Electrically Erasable and Programmable Read Only Memory) 36 as an example of a non-volatile memory for storing vehicle information (failure and abnormality information), learning values, and the like, and an interface between input and output Input / output interface (input / output I / F) 37, an external communication interface (external communication I / F) 38 for communicating with an external device, and a bus 39.

プロセッサ33、RAM34、ROM35、EEPROM36、入出力I/F37及び外部通信I/F38は、バス39によって相互に接続されている。また、外部通信I/F38は、ネットワークケーブル40を着脱可能に接続するコネクタ38aを有する。このコネクタ38aには、外部からプログラムを書き換えるためのリプログラミングツール50、あるいは故障発生時に整備や点検を行うための外部ツール60がCAN(Controller Area Network)、シリアル通信、FlexRay(登録商標)及びEthernet(登録商標)などのネットワークケーブル40を介して接続される。   The processor 33, RAM 34, ROM 35, EEPROM 36, input / output I / F 37, and external communication I / F 38 are connected to each other by a bus 39. The external communication I / F 38 has a connector 38a for detachably connecting the network cable 40. The connector 38a includes a reprogramming tool 50 for rewriting a program from the outside, or an external tool 60 for performing maintenance and inspection when a failure occurs, CAN (Controller Area Network), serial communication, FlexRay (registered trademark), and Ethernet. It is connected via a network cable 40 such as (registered trademark).

図2は、車両用電子制御装置のリプログラミングを行う場合のシステム構成を示している。リプログラミングの対象となるECM30は、ネットワークケーブル40を介して、リプログラミングツール50に着脱自在に接続される。この状態で、作業者がリプログラミングツール50を操作して、ECM30のリプログラミング作業を行う。
なお、ECM30とリプログラミングツール50とは、ネットワークケーブル40とコネクタ38a,52aを使用した有線接続に限らず、無線送受信機を使用した無線通信によって相互に接続されるように構成しても良い。
FIG. 2 shows a system configuration when reprogramming the vehicle electronic control device. The ECM 30 to be reprogrammed is detachably connected to the reprogramming tool 50 via the network cable 40. In this state, the operator operates the reprogramming tool 50 to perform reprogramming work for the ECM 30.
The ECM 30 and the reprogramming tool 50 are not limited to a wired connection using the network cable 40 and the connectors 38a and 52a, but may be configured to be connected to each other by wireless communication using a wireless transceiver.

リプログラミングツール50は、作業者がECM30のデータの書き換え作業を行う電子機器であって、例えば、パーソナルコンピュータなどから構成される。具体的には、リプログラミングツール50は、図3に示すように、CPUなどのプロセッサ51と、ネットワークに接続するための通信装置52と、ハードディスク装置やSSD(Solid State Drive)などのストレージ53と、作業者へのインターフェースとなる入出力装置54と、バス55とを備えている。プロセッサ51、通信装置52、ストレージ53及び入出力装置54は、バス55によって相互に接続されている。ここで、通信装置52は、ネットワークケーブル40を着脱可能に接続するコネクタ52aを有する。また、入出力装置54は、LCD(Liquid Crystal Display)などのディスプレイと、キーボードと、マウスなどのポインティングデバイスと、を含む。   The reprogramming tool 50 is an electronic device in which an operator rewrites data in the ECM 30, and includes, for example, a personal computer. Specifically, as shown in FIG. 3, the reprogramming tool 50 includes a processor 51 such as a CPU, a communication device 52 for connection to a network, a storage 53 such as a hard disk device or an SSD (Solid State Drive), , An input / output device 54 serving as an interface to the worker and a bus 55 are provided. The processor 51, the communication device 52, the storage 53, and the input / output device 54 are connected to each other by a bus 55. Here, the communication device 52 includes a connector 52a for detachably connecting the network cable 40. The input / output device 54 includes a display such as an LCD (Liquid Crystal Display), a keyboard, and a pointing device such as a mouse.

なお、ストレージ53は、例えば、図示しないネットワークに接続されたNAS(Network Attached Storage)やサーバのストレージなどであってもよい。
このストレージ53には、ECM30のEEPROM36を書き換えるためのデータが格納されている。このデータは、例えば、エンジン20に搭載あるいは設置された各種機器を制御する制御プログラム、その制御プログラムで使用される定数やマップなどの制御パラメータなどを含む。
The storage 53 may be, for example, a NAS (Network Attached Storage) connected to a network (not shown) or a server storage.
The storage 53 stores data for rewriting the EEPROM 36 of the ECM 30. This data includes, for example, a control program for controlling various devices mounted on or installed in the engine 20, control parameters such as constants and maps used in the control program, and the like.

リプログラミング処理(データ書き換え処理)は、作業者がネットワークケーブル40を介してECM30とリプログラミングツール50とを接続した後、リプログラミングツール50において、所定の操作を行ったときに実行される。ここでは、ECM30は、ネットワークケーブル40を介してリプログラミングツール50と接続されたときに、電力が供給されて起動することを前提とするが、別の電源ケーブルの接続により起動する形態もあり得る。   The reprogramming process (data rewriting process) is executed when a predetermined operation is performed in the reprogramming tool 50 after the operator connects the ECM 30 and the reprogramming tool 50 via the network cable 40. Here, it is assumed that the ECM 30 is activated by being supplied with power when connected to the reprogramming tool 50 via the network cable 40. However, the ECM 30 may be activated by connecting another power cable. .

一方、外部ツール60は、ECM30から出力される故障コードを受信し、故障コードに対応する故障状態をモニタに表示するもので、専用の診断ツールであっても良いし、リプログラミングツール50と同様に、例えばパーソナルコンピュータなどから構成されても良い。また、外部ツール60とECM30は、ネットワークケーブル40を使用した有線接続に限らず、無線送受信機を使用した無線通信によって相互に接続されるような構成でも良い。ここでは、外部ツール60には、周知の診断ツールを用いるものとして詳細な説明は省略する。   On the other hand, the external tool 60 receives the failure code output from the ECM 30 and displays the failure state corresponding to the failure code on the monitor. The external tool 60 may be a dedicated diagnostic tool or similar to the reprogramming tool 50. In addition, for example, a personal computer may be used. Further, the external tool 60 and the ECM 30 are not limited to a wired connection using the network cable 40, and may be configured to be connected to each other by wireless communication using a wireless transceiver. Here, as the external tool 60, a detailed description is omitted on the assumption that a known diagnostic tool is used.

図4は、従来と本発明の診断情報を対比して示している。すなわち、従来は、図4(a)に示すように、故障コード(DTC:Diagnostic Trouble Code)とインデックス(Index)を用いており、ECM30が故障を検知すると、その故障コードに対応するインデックスをEEPROM36に記憶していた。そして、整備や点検のために、外部ツール60がECM30のコネクタ38aに接続されて、故障コードの出力要求があると、EEPROM36に記憶したインデックスを元に故障コードを決定し、外部ツール60に車両情報として故障コードを送信していた。外部ツール60は、受信した故障コードに対応する故障状態をモニタに表示する。   FIG. 4 shows a comparison between the conventional and diagnostic information of the present invention. That is, conventionally, as shown in FIG. 4A, a fault code (DTC: Diagnostic Trouble Code) and an index (Index) are used. When the ECM 30 detects a fault, an index corresponding to the fault code is assigned to the EEPROM 36. I remembered. For maintenance and inspection, when the external tool 60 is connected to the connector 38a of the ECM 30 and a fault code output request is made, the fault code is determined based on the index stored in the EEPROM 36, and the external tool 60 is connected to the vehicle. A failure code was sent as information. The external tool 60 displays a failure state corresponding to the received failure code on the monitor.

例えば、検知した故障の故障コードが「2000」であるとすると、EEPROM36には故障コード「2000」に対応するインデックス「3」が記憶される。そして、外部ツール60が接続されて故障コードの出力要求があると、EEPROM36に記憶されているインデックス「3」から、このインデックス「3」に対応する故障コード「2000」を参照し、車両情報として故障コード「2000」を外部ツール60に送信する。外部ツール60は、この故障コード「2000」に対応する故障の状態をモニタに表示する。
ここで、故障コードがどのような故障に該当するかの定義は変わらないが、インデックスは制御プログラムの数に依存し、診断数に対応して振り分けられているため、プログラムの書き換えで診断数が増減すると、インデックスの番号が変化してしまう。
For example, if the detected failure code is “2000”, the EEPROM 36 stores an index “3” corresponding to the failure code “2000”. When the external tool 60 is connected and there is a fault code output request, the fault code “2000” corresponding to the index “3” is referred to from the index “3” stored in the EEPROM 36, and the vehicle information is obtained. The failure code “2000” is transmitted to the external tool 60. The external tool 60 displays a failure state corresponding to the failure code “2000” on the monitor.
Here, the definition of what kind of failure the failure code corresponds to does not change, but the index depends on the number of control programs and is distributed according to the number of diagnoses. If it increases or decreases, the index number changes.

これに対し、本発明では、図4(b)に示すように、故障コードとインデックスに加えて、管理ナンバー(管理No.)を用いる。管理ナンバーは、制御プログラムの数に依存せず(診断数にも依存しない)、書き換え前の複数の制御プログラム(第1制御プログラム)及び書き換え後の制御プログラム(第2制御プログラム)間で共通に使用されるものである。従って、インデックスは、故障コード「1000」、「1001」、「1002」、「2000」、「2001」に順次「1」、「2」、「3」、「4」、「5」と割り振られるのに対し、管理ナンバーは、各故障コードに対応して「00」、「01」、「02」、「05」、「06」と診断に応じて割り振られている。そして、故障を検知すると、その故障コードに対応するインデックスをEEPROM36に記憶するのではなく、管理ナンバーをEEPROM36に記憶する。   On the other hand, in the present invention, as shown in FIG. 4B, a management number (management No.) is used in addition to the failure code and the index. The management number does not depend on the number of control programs (does not depend on the number of diagnoses), and is common between a plurality of control programs before rewriting (first control program) and a control program after rewriting (second control program). It is what is used. Therefore, the indexes are sequentially assigned to the failure codes “1000”, “1001”, “1002”, “2000”, “2001” as “1”, “2”, “3”, “4”, “5”. On the other hand, the management number is assigned according to diagnosis as “00”, “01”, “02”, “05”, “06” corresponding to each failure code. When a failure is detected, an index corresponding to the failure code is not stored in the EEPROM 36, but a management number is stored in the EEPROM 36.

すなわち、図5のフローチャートに示すように、例えばECM30が故障コード「2000」の故障を検知すると(ステップS1)、故障コード「2000」からインデックス「3」を参照し、インデックス「3」から管理ナンバー「05」を参照する。そして、故障コード「2000」に対応する管理ナンバー「05」をEEPROM36に記憶する(ステップS2)。この状態を図6(a)に模式的に示す。   That is, as shown in the flowchart of FIG. 5, for example, when the ECM 30 detects a failure with the failure code “2000” (step S1), the failure code “2000” refers to the index “3”, and the index “3” begins with the management number. Refer to “05”. Then, the management number “05” corresponding to the failure code “2000” is stored in the EEPROM 36 (step S2). This state is schematically shown in FIG.

その後、制御プログラムの書き換え(リプログラミング)が行われ(ステップS3)、図6(b)に示すように、故障コード「1002」と「2000」との間に故障コード「1003」が追加されたと仮定すると、インデックスは診断数に依存するため、故障コード「1003」はインデックス「3」、故障コード「2000」はインデックス「4」、故障コード「2001」はインデックス「5」となる。この際、故障コード「1000」、「1001」、「1002」に対応するインデックス「0」、「1」、「2」は変化しない。
また、管理ナンバーは、故障コードに対応し、複数の制御プログラム間で共通に使用されるので、新たな管理ナンバー「03」が追加されるものの、他の管理ナンバーはリプログラミング前の状態を維持する。
Thereafter, the control program is rewritten (reprogramming) (step S3), and as shown in FIG. 6B, the failure code “1003” is added between the failure codes “1002” and “2000”. Assuming that the index depends on the number of diagnoses, the fault code “1003” is index “3”, the fault code “2000” is index “4”, and the fault code “2001” is index “5”. At this time, the indexes “0”, “1”, and “2” corresponding to the failure codes “1000”, “1001”, and “1002” do not change.
Also, the management number corresponds to the failure code and is used in common among multiple control programs, so a new management number “03” is added, but other management numbers remain in the state before reprogramming. To do.

次に、外部ツール60を接続して(ステップS4)、故障コードの出力要求を行うと(ステップS5)、図6(c)に示すように、EEPROM36に記憶した管理ナンバー「05」が参照される(ステップS6)。続いて、管理ナンバー「05」からインデックス「4」を参照し(ステップS7)、インデックス「4」から故障コード「2000」を参照し(ステップS8)、外部ツール60に車両情報としてインデックス「4」に対応する故障コード「2000」を送信する。外部ツール60は、この車両情報を受けて故障コード「2000」に対応する故障の状態をモニタに表示する。   Next, when the external tool 60 is connected (step S4) and a fault code output request is made (step S5), the management number "05" stored in the EEPROM 36 is referred to as shown in FIG. 6C. (Step S6). Subsequently, the index “4” is referenced from the management number “05” (step S7), the failure code “2000” is referenced from the index “4” (step S8), and the index “4” is stored as vehicle information in the external tool 60. The failure code “2000” corresponding to is transmitted. The external tool 60 receives the vehicle information and displays a failure state corresponding to the failure code “2000” on the monitor.

このように、故障コード(車両情報)からインデックス(第2識別情報)を参照し、インデックスから管理ナンバー(第1識別情報)を参照してEEPROM36に記憶する。このEEPROM36に記憶した管理ナンバーからインデックスを参照し、故障コードを外部ツール60に送信する。このように、管理ナンバーをEEPROM36に記憶することで、制御プログラムの書き換えによってインデックスが変化しても、記憶情報(故障情報)を維持でき、管理ナンバーからインデックスを参照して故障コードを出力することで、プログラムの書き換え前の故障コードとの互換性を失うことがないので、外部ツール60に正しい故障コードを出力できる。   In this way, the index (second identification information) is referred to from the failure code (vehicle information), and the management number (first identification information) is referred to from the index and stored in the EEPROM 36. The index is referred to from the management number stored in the EEPROM 36, and the failure code is transmitted to the external tool 60. By storing the management number in the EEPROM 36 in this way, even if the index changes due to rewriting of the control program, the stored information (failure information) can be maintained, and the failure code can be output by referring to the index from the management number. Thus, since the compatibility with the failure code before rewriting the program is not lost, the correct failure code can be output to the external tool 60.

図7は、新旧プログラムの識別方法及び外部表示処理の詳細を示している。本例では、管理ナンバーに「DGNSWbyte」と「DGNSWbit」の情報を組み合わせて使用している。すなわち、従来と同じビット数で診断数を表現すると、診断数の最大値(Max)は、「256×8=2048」である。16進数では、「07FF」で表され、最上位ビット(MSB15)は「0」であるので、「MSB15=0」を旧プログラムと定義し、最上位ビットに「1」を書き込み、「MSB15=1」を新プログラムと定義する。これによって、最上位ビットが「1」か「0」かにより新旧のプログラムを識別できる。
このような新旧のプログラムの識別を可能にするために、EEPROM36には「byte/bit」の順で記憶するのではなく、「bit/byte」の順に記憶すると良い。
FIG. 7 shows details of the new and old program identification method and external display processing. In this example, information of “DGNSWbyte” and “DGNSWbit” is used in combination with the management number. That is, when the number of diagnoses is expressed by the same number of bits as in the conventional case, the maximum value (Max) of the number of diagnoses is “256 × 8 = 2048”. In hexadecimal, it is represented by “07FF” and the most significant bit (MSB15) is “0”. Therefore, “MSB15 = 0” is defined as an old program, “1” is written in the most significant bit, and “MSB15 = 1 ”is defined as a new program. As a result, old and new programs can be identified based on whether the most significant bit is “1” or “0”.
In order to make it possible to identify such new and old programs, it is preferable to store them in the order of “bit / byte” instead of storing them in the order of “byte / bit” in the EEPROM 36.

図8は、新旧プログラムの識別方法及びリプログラミング方法の第1の例を示している。本例は、新旧プログラムの書き込み時の故障コードの扱いに関するものである。ECM30に書き込まれているプログラムが旧プログラムで、書き換えるプログラムも旧プログラムの場合には、故障コードは消去(従来通り)する。ECM30に書き込まれているプログラムが旧プログラムで、書き換えるプログラムが新プログラムの場合には、故障コードは消去する。ECM30に書き込まれているプログラムが新プログラムで、書き換えるプログラムが旧プログラムの場合にも、故障コードは消去する。そして、ECM30に書き込まれているプログラムが新プログラムで、書き換えるプログラムが新プログラムの場合には、故障コードを保持する。
このように、本発明は、ECM30に書き込まれている新プログラムを新プログラムに書き換える場合が対象となる。
FIG. 8 shows a first example of a new and old program identification method and reprogramming method. This example relates to handling of fault codes when writing old and new programs. If the program written in the ECM 30 is an old program and the program to be rewritten is also an old program, the fault code is erased (as before). When the program written in the ECM 30 is an old program and the program to be rewritten is a new program, the fault code is erased. Even when the program written in the ECM 30 is a new program and the program to be rewritten is an old program, the fault code is erased. If the program written in the ECM 30 is a new program and the program to be rewritten is a new program, a fault code is held.
As described above, the present invention is applied to a case where a new program written in the ECM 30 is rewritten to a new program.

図9は、新旧プログラムの識別方法及びリプログラミング方法の第2の例を示している。本例は、書き換え前の制御プログラムが管理ナンバーを持っているか否かを確認し、持っていない場合にはEEPROM36に記憶されているデータを消去するものである。管理ナンバーを持っていない場合には、書き換え前には図9(a)に示すように、EEPROM36にインデックス(ここでは「3」)が記憶されている。すなわち、EEPROM36に記憶されているデータが、インデックスであるので旧プログラムである。よって、データを消去して初期化する。   FIG. 9 shows a second example of a new and old program identification method and reprogramming method. In this example, it is confirmed whether or not the control program before rewriting has a management number, and if not, the data stored in the EEPROM 36 is erased. When the management number is not possessed, before rewriting, an index (here, “3”) is stored in the EEPROM 36 as shown in FIG. That is, since the data stored in the EEPROM 36 is an index, it is an old program. Therefore, the data is erased and initialized.

この結果、書き換え後のプログラムは、図9(b)に示すように故障コード「1003」が増加し、インデックス「3」が故障コード「1003」に対応し、インデックス「4」が故障コード「2000」に対応し、インデックス「5」が故障コード「2001」に対応するように変化する。また、故障コード「1000」、「1001」、「1002」、「1003」、「2000」、「2001」にそれぞれ対応して、管理ナンバー「00」、「01」、「02」、「03」、「05」、「06」が追加される。
一方、EEPROM36に管理ナンバーが記憶されている場合には、新プログラムであるのでデータの消去は行わない。
このように、EEPROM36に記憶されているのがインデックスか管理ナンバーかを判別することで、旧プログラムか新プログラムかを判定できる。
As a result, in the rewritten program, as shown in FIG. 9B, the failure code “1003” is increased, the index “3” corresponds to the failure code “1003”, and the index “4” is the failure code “2000”. ”And the index“ 5 ”changes so as to correspond to the failure code“ 2001 ”. Also, the management numbers “00”, “01”, “02”, “03” correspond to the failure codes “1000”, “1001”, “1002”, “1003”, “2000”, “2001”, respectively. , “05”, “06” are added.
On the other hand, when the management number is stored in the EEPROM 36, the data is not erased because it is a new program.
Thus, by determining whether the index or management number is stored in the EEPROM 36, it is possible to determine whether it is an old program or a new program.

図10は、新旧プログラムの識別方法及びリプログラミング方法の第3の例を示している。書き換え前の制御プログラムが図10(a)の状態で、EEPROM36に管理ナンバー「05」が記憶されているものとする。この状態で、リプログラミングより故障コード「2000」が削除されたとすると、図10(b)に示す状態となる。すなわち、インデックス「0」が故障コード「1000」に対応し、インデックス「1」が故障コード「1001」に対応し、インデックス「2」が故障コード「1002」に対応し、インデックス「3」が故障コード「1003」に対応し、インデックス「4」が故障コード「2001」に対応するように変化する。このとき、故障コード「1000」、「1001」、「1002」、「1003」、「2001」にはそれぞれ、管理ナンバー「00」、「01」、「02」、「03」、「06」が対応する。
この場合には、外部ツール60に故障コードは出力されないが、現状と同じであるので問題はない。
FIG. 10 shows a third example of a new and old program identification method and reprogramming method. Assume that the management number “05” is stored in the EEPROM 36 with the control program before rewriting in the state of FIG. In this state, if the failure code “2000” is deleted by reprogramming, the state shown in FIG. That is, the index “0” corresponds to the failure code “1000”, the index “1” corresponds to the failure code “1001”, the index “2” corresponds to the failure code “1002”, and the index “3” corresponds to the failure. Corresponding to the code “1003”, the index “4” changes so as to correspond to the failure code “2001”. At this time, the management numbers “00”, “01”, “02”, “03”, and “06” are assigned to the failure codes “1000”, “1001”, “1002”, “1003”, and “2001”, respectively. Correspond.
In this case, no fault code is output to the external tool 60, but there is no problem because it is the same as the current situation.

図11は、新旧プログラムの識別方法及びリプログラミング方法の第4の例を示している。書き換え前の制御プログラムが図11(a)の状態で、リプログラミングより故障コード「2000」、「2001」が変更された制御プログラム(故障コード「4000」、「4001」)に書き換えられた場合、図11(b)の状態となる。このように、故障コードが変更されても、故障コード「2000」と「4000」の故障内容が変わることはないので問題はない。
但し、外部ツール60における故障コードと車両の故障状態との対応関係も修正する必要がある。
FIG. 11 shows a fourth example of a new and old program identification method and reprogramming method. When the control program before rewriting is in the state of FIG. 11A, the reprogramming has been rewritten to the control programs (failure codes “4000” and “4001”) in which the fault codes “2000” and “2001” are changed. The state shown in FIG. Thus, even if the failure code is changed, there is no problem because the failure contents of the failure codes “2000” and “4000” do not change.
However, the correspondence between the failure code in the external tool 60 and the vehicle failure state must also be corrected.

上述したように、本発明においては、書き換え前の複数の制御プログラム(第1制御プログラム)間及び書き換え後の制御プログラム(第2制御プログラム)で共通し、且つ制御プログラムに依存しない管理ナンバー(第1識別情報)を、車両の動作中に生じた故障コード(車両情報)に対応させて不揮発性メモリ(EEPROM)に記憶しておくことで、制御プログラム(第2制御プログラム)の書き換えを行った後でも記憶情報を維持できる。また、複数の制御プログラムの少なくとも1つを書き換えた後に、記憶した管理ナンバーから制御プログラムに依存するインデックス(第2識別情報)を参照し、このインデックスに基づき故障コードを出力して外部ツールの表示に用いることで、制御プログラムの書き換え前と故障コードの互換性を保つことができる。
従って、本発明によれば、リプログラミングを行っても、不揮発性メモリに記憶した故障情報を維持することができ、正しい故障コードを外部ツールに出力できる。
As described above, in the present invention, a management number (first control program) that is common between a plurality of control programs (first control program) before rewriting and a control program (second control program) after rewriting and does not depend on the control program. The control program (second control program) was rewritten by storing (1 identification information) in a nonvolatile memory (EEPROM) in association with a failure code (vehicle information) generated during operation of the vehicle. The stored information can be maintained later. In addition, after rewriting at least one of the plurality of control programs, an index (second identification information) depending on the control program is referred to from the stored management number, and a fault code is output based on this index to display an external tool. By using it, compatibility of the fault code with that before rewriting the control program can be maintained.
Therefore, according to the present invention, even if reprogramming is performed, failure information stored in the nonvolatile memory can be maintained, and a correct failure code can be output to an external tool.

なお、上述した実施形態では、ECMを例に取って説明したが、プログラムやデータがリプログラミングされる電子制御装置一般に適用できるのは勿論である。
また、記憶情報が故障コード(故障情報)の場合を例に取って説明したが、学習値を保持する場合も同様にして適用できる。
In the above-described embodiment, the ECM has been described as an example. However, it is needless to say that the present invention can be applied to general electronic control devices in which programs and data are reprogrammed.
Further, the case where the stored information is a failure code (failure information) has been described as an example, but the present invention can be similarly applied to a case where a learning value is held.

更に、「複数の制御プログラムの少なくとも1つを書き換える」と表現したが、これには特定の制御プログラムの一部分や、この制御プログラム内で用いられる設定値や初期値などのデータを書き換える場合も含まれるものとする。ここで、複数の制御プログラムとは、制御対象が同系列の制御プログラム、換言すれば、制御対象が同じ又は互いに関連性を有する制御プログラムである。
更にまた、ECMが燃料噴射弁、VTC機構及び点火モジュールなどを制御する例について説明したが、車両に搭載された各種の機器、例えば変速機、電動ブレーキシステム、ABS(Antilock Brake System)、及びブラシレスモータなどを制御する電子制御装置にも同様に適用できる。
Furthermore, although expressed as “rewrite at least one of a plurality of control programs”, this includes the case of rewriting part of a specific control program or data such as setting values and initial values used in this control program. Shall be. Here, the plurality of control programs are control programs whose control targets are the same series, in other words, control programs whose control targets are the same or related to each other.
Furthermore, the example in which the ECM controls the fuel injection valve, the VTC mechanism, the ignition module, and the like has been described, but various devices mounted on the vehicle, such as a transmission, an electric brake system, an ABS (Antilock Brake System), and a brushless The present invention can be similarly applied to an electronic control device that controls a motor or the like.

10…車両、20…エンジン、30…ECM(車両用電子制御装置)、31…センサ、32…アクチュエータ、33…プロセッサ、34…RAM、35…ROM、36…EEPROM(不揮発性メモリ)、37…入出力インターフェース、38…外部通信インターフェース、39…バス、40…ネットワークケーブル、50…リプログラミングツール、60…外部ツール   DESCRIPTION OF SYMBOLS 10 ... Vehicle, 20 ... Engine, 30 ... ECM (electronic control unit for vehicles), 31 ... Sensor, 32 ... Actuator, 33 ... Processor, 34 ... RAM, 35 ... ROM, 36 ... EEPROM (non-volatile memory), 37 ... Input / output interface, 38 ... external communication interface, 39 ... bus, 40 ... network cable, 50 ... reprogramming tool, 60 ... external tool

Claims (4)

プログラムを外部から書き換え可能に構成された電子制御装置であって、
複数の第1制御プログラム間で共通し、且つ前記第1制御プログラムに依存しない第1識別情報を、車両の動作中に生じた車両情報に対応させて記憶し、
前記複数の第1制御プログラムの少なくとも1つを第2制御プログラムに書き換えた後に、記憶した前記第1識別情報から前記第2制御プログラムに依存する第2識別情報を参照し、当該第2識別情報に基づき前記車両情報を出力する、ことを特徴とする車両用電子制御装置。
An electronic control device configured to be rewritable from the outside,
Storing first identification information that is common among a plurality of first control programs and that does not depend on the first control program, corresponding to vehicle information generated during operation of the vehicle,
After rewriting at least one of the plurality of first control programs to the second control program, the second identification information that depends on the second control program is referred to from the stored first identification information, and the second identification information The vehicle information is output based on the vehicle electronic control device.
前記車両情報を外部ツールに入力し、前記車両情報に対応する車両の状態を外部ツールで表示する、ことを特徴とする請求項1に記載の車両用電子制御装置。   The vehicle electronic control device according to claim 1, wherein the vehicle information is input to an external tool, and the state of the vehicle corresponding to the vehicle information is displayed with the external tool. 記憶される前記第1識別情報は、車両の動作中に生じた前記車両情報から前記第2識別情報を参照し、前記第2識別情報から前記第1識別情報を参照して記憶するものである、ことを特徴とする請求項1又は2に記載の車両用電子制御装置。   The first identification information to be stored is stored by referring to the second identification information from the vehicle information generated during operation of the vehicle and by referring to the first identification information from the second identification information. The vehicle electronic control device according to claim 1 or 2, characterized in that 前記複数の第1制御プログラムは、制御対象が同じ又は互いに関連性を有し、
前記第1識別情報は、前記複数の第1制御プログラムに加えて、更に前記第2制御プログラムで共通する、ことを特徴とする請求項1乃至3いずれか1つの項に記載の車両用電子制御装置。
The plurality of first control programs have the same control target or are related to each other,
4. The vehicle electronic control according to claim 1, wherein the first identification information is common to the second control program in addition to the plurality of first control programs. 5. apparatus.
JP2018016707A 2018-02-01 2018-02-01 Electronic control device for vehicles Active JP7042096B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018016707A JP7042096B2 (en) 2018-02-01 2018-02-01 Electronic control device for vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018016707A JP7042096B2 (en) 2018-02-01 2018-02-01 Electronic control device for vehicles

Publications (2)

Publication Number Publication Date
JP2019133518A true JP2019133518A (en) 2019-08-08
JP7042096B2 JP7042096B2 (en) 2022-03-25

Family

ID=67547528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018016707A Active JP7042096B2 (en) 2018-02-01 2018-02-01 Electronic control device for vehicles

Country Status (1)

Country Link
JP (1) JP7042096B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124397A (en) * 2019-12-10 2020-05-08 北京慧虹远航科技有限公司 Control logic multiplexing method and device, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101481599B1 (en) 2013-09-06 2015-01-14 동명대학교산학협력단 Sea water ice making machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1010014A (en) * 1996-06-27 1998-01-16 Fuji Heavy Ind Ltd Failure diagnosing device
JP2002014839A (en) * 2000-04-28 2002-01-18 Denso Corp Controller for vehicle equipped with self-diagnosing function and recording medium
JP2008201160A (en) * 2007-02-16 2008-09-04 Denso Corp Electronic control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1010014A (en) * 1996-06-27 1998-01-16 Fuji Heavy Ind Ltd Failure diagnosing device
JP2002014839A (en) * 2000-04-28 2002-01-18 Denso Corp Controller for vehicle equipped with self-diagnosing function and recording medium
JP2008201160A (en) * 2007-02-16 2008-09-04 Denso Corp Electronic control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124397A (en) * 2019-12-10 2020-05-08 北京慧虹远航科技有限公司 Control logic multiplexing method and device, computer equipment and storage medium
CN111124397B (en) * 2019-12-10 2023-03-14 西安智周深鉴信息科技集团有限公司 Control logic multiplexing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
JP7042096B2 (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US5826211A (en) Electronic controller having excellent control program and control data overwriting capabilities
JP6324533B2 (en) Vehicle control device and vehicle control method
JP4539757B2 (en) Electronic control unit
US20080059038A1 (en) Vehicle Characteristics Storing Apparatus And Method
JP6125111B2 (en) In-vehicle electronic control unit
JP7042096B2 (en) Electronic control device for vehicles
US8190321B2 (en) Electronic control unit with permission switching
US8380975B2 (en) Safety data writes
JP2007168463A (en) Vehicular electronic control system and data conversion system
JP4475345B2 (en) Electronic control unit
EP2709073B1 (en) Electronic control unit of vehicle
US11130232B2 (en) Robot system
US11169828B2 (en) Electronic control unit and method for verifying control program
JP2009122831A (en) Electronic control device
JP5543274B2 (en) Electronic control device for automobile and data writing method in electronic control device for automobile
JPH0793006A (en) Electronic control unit for vehicle
JP7029366B2 (en) Electronic control device for automobiles
JP2018136728A (en) Electronic control device
JP6802100B2 (en) Vehicle electronic control device and port setting method
US11014252B2 (en) Robot system
JP2020129325A (en) Electronic control device for vehicle
JP5136836B2 (en) Instrument device
WO2023233611A1 (en) Electronic control device
JP6723516B2 (en) Field device, field system, general-purpose module, and parameter management method
JP2021047754A (en) Electronic control apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200910

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210803

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211004

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220314

R150 Certificate of patent or registration of utility model

Ref document number: 7042096

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150