JP2020117058A - On-vehicle system - Google Patents

On-vehicle system Download PDF

Info

Publication number
JP2020117058A
JP2020117058A JP2019009601A JP2019009601A JP2020117058A JP 2020117058 A JP2020117058 A JP 2020117058A JP 2019009601 A JP2019009601 A JP 2019009601A JP 2019009601 A JP2019009601 A JP 2019009601A JP 2020117058 A JP2020117058 A JP 2020117058A
Authority
JP
Japan
Prior art keywords
dtc
specific
failure information
ecu
slave
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
JP2019009601A
Other languages
Japanese (ja)
Other versions
JP7151505B2 (en
Inventor
鉄源 潘
Tieyuan Pan
鉄源 潘
思遥 毛
Siyao Mao
思遥 毛
文登 竹内
Fumito Takeuchi
文登 竹内
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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2019009601A priority Critical patent/JP7151505B2/en
Publication of JP2020117058A publication Critical patent/JP2020117058A/en
Application granted granted Critical
Publication of JP7151505B2 publication Critical patent/JP7151505B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

To shorten a time required to pass failure information of a detected failure to a diagnostic tool.SOLUTION: Slave ECU 11 to 14 transmits DTC which represents kinds of detected failures to a master ECU 10 (1), (6). The master ECU 10 comprises: a table 23 on which a specific DTC of plural kinds of DTC, which is used for a specific use, is recorded; and a storage area 25 which stores the specific DTC of DTC sent from the slave ECU 11 to 14. The master ECU 10 determines whether DTC received from the slave ECU 11 to 14 is the specific DTC or not on the basis of the table 23, and if the received DTC is the specific DTC (2), stores this DTC in the storage area 25 (3), and instructs the slave ECU, which sent this DTC, to discard the DTC (4). Further, if the received DTC is not the specific DTC (7), the master ECU instructs the slave ECU, which sent this DTC, to store the DTC (8).SELECTED DRAWING: Figure 1

Description

本開示は、車載システムに関する。 The present disclosure relates to an in-vehicle system.

例えば下記の特許文献1には、車両に搭載される電子制御ユニット(以下、ECU)として、故障診断機能を有するものが記載されている。ECUは、「Electronic Control Unit」の略である。ECUが有する故障診断機能は、OBDとも呼ばれる。OBDは、「On-Board Diagnostics」の略である。そして、下記の特許文献1には、複数のECUの何れかで検出された故障の種別を表す故障種別コードを、他のECUに記憶させる思想が記載されている。上記故障種別コードは、一般にDTCと呼ばれる。DTCは、「Diagnostic Trouble Code」の略である。 For example, Patent Document 1 below describes an electronic control unit (hereinafter, ECU) mounted on a vehicle, which has a failure diagnosis function. ECU is an abbreviation for “Electronic Control Unit”. The failure diagnosis function of the ECU is also called OBD. OBD is an abbreviation for “On-Board Diagnostics”. Then, the following Patent Document 1 describes a concept of storing a failure type code indicating the type of failure detected in any of a plurality of ECUs in another ECU. The failure type code is generally called DTC. DTC is an abbreviation for “Diagnostic Trouble Code”.

また、近年、OBDを活用した車両検査(以下、OBD車検)の実施が検討されている。OBD車検では、車両内で検出され得る複数種類の故障のDTCのうち、特定の1つ以上のDTCが、特定DTCと定義される。そして、OBD車検の実施時において、車両に搭載されている複数のECUの何れかから、車両の外部の装置である診断ツールによって特定DTCが読み出された場合には、その車両は不合格とされる。 Further, in recent years, implementation of vehicle inspection utilizing OBD (hereinafter referred to as OBD vehicle inspection) has been considered. In the OBD vehicle inspection, one or more specific DTCs out of a plurality of types of DTCs that can be detected in the vehicle are defined as specific DTCs. Then, when the OBD vehicle inspection is performed, if the specific DTC is read from any of the plurality of ECUs mounted on the vehicle by a diagnostic tool that is a device outside the vehicle, the vehicle is determined to be unacceptable. To be done.

特開2012−210918号公報JP, 2012-210918, A

発明者の詳細な検討の結果、下記の課題が見出された。
ECUにおいて、DTCを記憶するためのメモリ容量は有限であり、記憶可能なDTCの数には上限がある。このため、DTCの記憶数が上限に達している状態で、新たなDTCを記憶する必要が生じた場合には、例えば、新たなDTCを既に記憶されているDTCに上書きして記憶するか、あるいは、新たなDTCを破棄することが考えられる。但し、このようにすると、特定DTCが記憶されない可能性がある。特定DTCに対応する故障が生じているのに、その特定DTCが記憶されないと、例えばOBD車検の実施時において、本来ならば不合格の車両が、合格と判断されてしまう。
As a result of detailed study by the inventor, the following problems were found.
In the ECU, the memory capacity for storing the DTC is limited, and the number of DTCs that can be stored has an upper limit. Therefore, when it becomes necessary to store a new DTC while the number of stored DTCs has reached the upper limit, for example, the new DTC is overwritten on the already stored DTC or stored. Alternatively, it is possible to discard the new DTC. However, in this case, the specific DTC may not be stored. If a failure corresponding to the specific DTC has occurred, but the specific DTC is not stored, for example, when performing OBD vehicle inspection, a vehicle that should originally have been rejected is determined to have passed.

そこで、複数のECUのうち、何れかのECUで検出された故障のDTCを、他の複数のECUに記憶させるようにシステムを構成すれば、前述した新たなDTCの上書きあるいは破棄の必要性を抑制でき、特定DTCがどこにも記憶されなくなる可能性を低減できると考えられる。以下では、何れかのECUで検出された故障のDTCを、他のECUに記憶させることを、肩代わり記憶という。 Therefore, if the system is configured so that the DTC of the failure detected by any one of the plurality of ECUs is stored in the other plurality of ECUs, the necessity of overwriting or discarding the new DTC described above is eliminated. It is considered that it can be suppressed and the possibility that the specific DTC is not stored anywhere can be reduced. In the following, storing a DTC of a failure detected by one of the ECUs in another ECU will be referred to as storage for the shoulder.

しかし、診断ツールによって、複数のECUの何れかである読出対象ECUから、その読出対象ECUが発生元であるDTCを読み出す場合に、長い時間がかかってしまう。読出対象ECUは、診断ツールからのDTC要求に対して応答する場合に、他の各ECUに対して、当該読出対象ECUが発生元であるDTC、即ち、肩代わり記憶されたDTCを、逐次的に要求して、その肩代わり記憶されたDTCを収集する必要があるからである。 However, it takes a long time to read the DTC that is the generation source of the reading target ECU from the reading target ECU that is one of the plurality of ECUs by the diagnostic tool. When the read target ECU responds to the DTC request from the diagnostic tool, the read target ECU sequentially outputs the DTC that is the source of the read target ECU, that is, the DTC stored on behalf of the other ECU to the other ECUs. This is because it is necessary to request and collect the stored DTC on behalf of the user.

そこで、本開示の1つの局面は、検出された故障の故障情報を診断ツールに渡すのに必要な時間を、短くすることが可能な車載システムを提供する。 Therefore, one aspect of the present disclosure provides an in-vehicle system capable of shortening the time required to pass the failure information of the detected failure to the diagnostic tool.

本開示の1つの態様による車載システムは、マスタ制御ユニット(10)と、このマスタ制御ユニットと通信バス(3)を介して接続された複数のスレーブ制御ユニット(11〜14)と、を備える。 An in-vehicle system according to one aspect of the present disclosure includes a master control unit (10) and a plurality of slave control units (11 to 14) connected to the master control unit via a communication bus (3).

複数のスレーブ制御ユニットのそれぞれは、当該スレーブ制御ユニットが有する故障診断機能によって検出された故障の種別を表す故障情報を、マスタ制御ユニットに送信する(S110)ように構成されている。 Each of the plurality of slave control units is configured to transmit failure information indicating the type of failure detected by the failure diagnosis function of the slave control unit to the master control unit (S110).

マスタ制御ユニットは、情報テーブル(23)と、記憶領域(25)と、を備える。情報テーブルには、複数のスレーブ制御ユニットのそれぞれで検出され得る複数種類の故障の故障情報のうち、特定の用途に使用される故障情報である特定故障情報が、少なくとも記録されている。記憶領域は、複数のスレーブ制御ユニットからマスタ制御ユニットに送信された故障情報、即ち、何れかのスレーブ制御ユニットで実際に検出された故障の故障情報のうち、特定故障情報を保存するために、マスタ制御ユニットに備えられている。 The master control unit includes an information table (23) and a storage area (25). At least specific failure information, which is failure information used for a specific application, is recorded in the information table among failure information of a plurality of types of failures that can be detected by each of the plurality of slave control units. The storage area stores failure information transmitted from the plurality of slave control units to the master control unit, namely, failure information of failures actually detected by any of the slave control units, in order to save specific failure information, It is provided in the master control unit.

マスタ制御ユニットは、複数のスレーブ制御ユニットの何れかから送信された故障情報を受信すると、当該受信した故障情報(以下、受信故障情報)が特定故障情報であるか否かを、情報テーブルに基づいて判定し、受信故障情報が特定故障情報であると判定した場合には、受信故障情報を記憶領域に記憶すると共に、受信故障情報を送信したスレーブ制御ユニットに当該受信故障情報の破棄を指示し、また、受信故障情報が特定故障情報ではないと判定した場合には、受信故障情報を送信したスレーブ制御ユニットに当該受信故障情報の記憶を指示する(S210〜S250)。 Upon receiving the failure information transmitted from any of the plurality of slave control units, the master control unit determines whether the received failure information (hereinafter, received failure information) is specific failure information based on the information table. If it is determined that the reception failure information is specific failure information, the reception failure information is stored in the storage area and the slave control unit that has transmitted the reception failure information is instructed to discard the reception failure information. When it is determined that the reception failure information is not the specific failure information, the slave control unit that has transmitted the reception failure information is instructed to store the reception failure information (S210 to S250).

このような構成によれば、スレーブ制御ユニットの何れかで検出された故障の故障情報のうち、特定故障情報は、マスタ制御ユニットの記憶領域に記憶される。このため、スレーブ制御ユニットにおいて故障情報を記憶するためのメモリ容量が少なくて済み、特定故障情報がどこにも記憶されなくなってしまうことも防止することができる。 According to such a configuration, the specific failure information among the failure information of the failures detected by any of the slave control units is stored in the storage area of the master control unit. Therefore, it is possible to prevent the slave control unit from having a small memory capacity for storing the failure information and prevent the specific failure information from being stored anywhere.

そして、各スレーブ制御ユニットは、車両の外部の装置である診断ツールからの要求に応じて、当該スレーブ制御ユニットが発生元である故障情報を診断ツールに送信する場合には、当該スレーブ制御ユニットが発生元である特定故障情報をマスタ制御ユニットから取得すれば良い。 Then, in response to a request from a diagnostic tool, which is an external device of the vehicle, each slave control unit transmits the failure information that is the source of the slave control unit to the diagnostic tool. The specific failure information, which is the source of the occurrence, may be acquired from the master control unit.

このため、各スレーブ制御ユニットは、他の複数の制御ユニットから特定故障情報を収集する必要がない。よって、車両で検出された故障の故障情報を診断ツールに渡すのに必要な時間を、短くすることができる。また、通信バスの負荷(即ち、トラフィック)が大きくなってしまうことも防止することができる。 Therefore, each slave control unit does not need to collect specific failure information from a plurality of other control units. Therefore, the time required to pass the failure information of the failure detected in the vehicle to the diagnostic tool can be shortened. It is also possible to prevent the load (that is, traffic) of the communication bus from increasing.

また、各スレーブ制御ユニットは、当該スレーブ制御ユニットで検出された故障の故障情報をマスタ制御ユニットに送信した後、その送信した故障情報を、マスタ制御ユニットからの破棄または記憶の指示に応じて、破棄または記憶すれば良い。このことは、「どの故障情報が特定故障情報であるか」という特定故障情報の選定内容によって変わるものではない。そして、特定故障情報の選定内容が変わった場合、マスタ制御ユニットの情報テーブルに記録される特定故障情報を変更することで対応可能となる。 Further, each slave control unit, after transmitting the failure information of the failure detected in the slave control unit to the master control unit, the transmitted failure information, according to the instruction of discard or storage from the master control unit, You can discard or memorize it. This does not change depending on the selected content of the specific failure information, "which failure information is the specific failure information". Then, when the selection content of the specific failure information is changed, it can be dealt with by changing the specific failure information recorded in the information table of the master control unit.

また、情報テーブルは、特定故障情報が、その特定故障情報の発生元のスレーブ制御ユニットを特定可能な情報と対応付けて記録されるように構成されて良い。
このような構成の情報テーブルは、どの故障情報が特定故障情報であるか、という第1種事項だけでなく、特定故障情報の発生元がどのスレーブ制御ユニットであるか、という第2種事項も表すことができる。
Further, the information table may be configured such that the specific failure information is recorded in association with the information capable of specifying the slave control unit that is the source of the specific failure information.
In the information table having such a configuration, not only the first type item indicating which failure information is the specific failure information but also the second type item indicating which slave control unit is the source of the specific failure information. Can be represented.

そして、このような構成の情報テーブルがマスタ制御ユニットに備えられる車載システムは、下記のように構成されて良い。
複数のスレーブ制御ユニットのそれぞれは、車両の外部の装置である診断ツールからの故障情報要求を受信すると、マスタ制御ユニットに、当該スレーブ制御ユニットが発生元である特定故障情報を要求するための出力要求を送信し、当該出力要求に応答してマスタ制御ユニットから特定故障情報が送られてきたなら、そのマスタ制御ユニットからの特定故障情報と、当該スレーブ制御ユニットにおいて記憶されている故障情報(即ち、非特定故障情報)とを、前記故障情報要求に対する応答として診断ツールに送信する(S310〜S340)。
The in-vehicle system in which the master control unit is provided with the information table having such a configuration may be configured as follows.
When each of the plurality of slave control units receives a failure information request from a diagnostic tool that is an external device of the vehicle, an output for requesting the specific failure information from the slave control unit to the master control unit. If specific failure information is sent from the master control unit in response to the output request in response to the output request, the specific failure information from the master control unit and the failure information stored in the slave control unit (that is, , Non-specific failure information) is transmitted to the diagnostic tool as a response to the failure information request (S310 to S340).

そして、マスタ制御ユニットは、複数のスレーブ制御ユニットの何れかが送信した前記出力要求を受信すると、その出力要求を送信したスレーブ制御ユニットが発生元である特定故障情報を、前記情報テーブルから特定し、特定した特定故障情報が前記記憶領域に記憶されていれば、当該記憶されている特定故障情報を、前記出力要求を送信したスレーブ制御ユニットに送信する(S24)。 When the master control unit receives the output request transmitted by any of the plurality of slave control units, the master control unit identifies, from the information table, specific failure information that is the source of the slave control unit that transmitted the output request. If the specified specific failure information is stored in the storage area, the stored specific failure information is transmitted to the slave control unit that has transmitted the output request (S24).

このような構成によれば、各スレーブ制御ユニットは、診断ツールからの故障情報要求に対して、当該スレーブ制御ユニットが発生元の故障情報、即ち、特定故障情報と非特定故障情報を、まとめて応答することができる。よって、応答に要する時間が短くなる。 According to such a configuration, each slave control unit collects the failure information of the generation source of the slave control unit, that is, the specific failure information and the non-specific failure information, in response to the failure information request from the diagnostic tool. You can respond. Therefore, the time required for response is shortened.

実施形態の車載システムの構成を示すブロック図である。It is a block diagram which shows the structure of the vehicle-mounted system of embodiment. スレーブECUが行う記憶制御処理を表すフローチャートである。6 is a flowchart showing a storage control process performed by a slave ECU. マスタECUが行う記憶制御処理を表すフローチャートである。6 is a flowchart showing a storage control process performed by a master ECU. 図2,図3の処理によるスレーブECU及びマスタECUの動作を表すラダーチャートである。4 is a ladder chart showing the operation of a slave ECU and a master ECU by the processing of FIGS. 2 and 3. 診断ツールからの要求に対してスレーブECUが応答する場合の作用例を説明する説明図である。It is explanatory drawing explaining the operation example in case a slave ECU responds to the request from a diagnostic tool. スレーブECUが行うDTC出力制御処理を表すフローチャートである。It is a flow chart showing DTC output control processing which a slave ECU performs. 図6の処理によるスレーブECUの動作と、診断ツール及びマスタECUの動作とを表すラダーチャートである。7 is a ladder chart showing the operation of the slave ECU and the operation of the diagnostic tool and the master ECU by the processing of FIG. 6. 特定DTCテーブルに情報を追加する場合の、診断ツールとマスタECUの動作を表すラダーチャートである。It is a ladder chart showing operation of a diagnostic tool and a master ECU when information is added to a specific DTC table. 図8の動作による作用例を説明する説明図である。It is explanatory drawing explaining the operation example by the operation|movement of FIG. 特定DTCテーブルから情報を削除する場合の、診断ツールとマスタECUの動作を表すラダーチャートである。It is a ladder chart showing operation of a diagnostic tool and a master ECU when information is deleted from a specific DTC table. 図10の動作による作用例を説明する説明図である。It is explanatory drawing explaining the example of operation by the operation|movement of FIG. マスタECUが行う追加後整合用処理を表すフローチャートである。7 is a flowchart showing post-addition matching processing performed by the master ECU. スレーブECUが行う指示対応処理を表すフローチャートである。5 is a flowchart showing an instruction handling process performed by a slave ECU. 図12,図13の処理によるマスタECU及びスレーブECUの動作を表すラダーチャートである。14 is a ladder chart showing the operation of the master ECU and the slave ECU by the processing of FIGS. 12 and 13. 特定DTCテーブルに特定DTCが追加記録された場合の作用例を説明する説明図である。It is explanatory drawing explaining the operation example when the specific DTC is additionally recorded in the specific DTC table. マスタECUが行う削除後整合用処理を表すフローチャートである。7 is a flowchart showing a post-deletion matching process performed by the master ECU. 図16の処理によるマスタECUの動作と、スレーブECUの動作とを表すラダーチャートである。17 is a ladder chart showing the operation of the master ECU and the operation of the slave ECU according to the process of FIG. 16. 特定DTCテーブルから特定DTCが削除された場合の作用例を説明する説明図である。It is explanatory drawing explaining the operation example when a specific DTC is deleted from a specific DTC table.

以下、図面を参照しながら、本開示の実施形態を説明する。
[1.構成]
図1に示す実施形態の車載システム1は、車両に搭載されるシステムであり、マスタ制御ユニットに相当するマスタECU10と、複数のスレーブ制御ユニットに相当するスレーブECU11〜14と、を備える。各スレーブECU11〜14は、少なくとも1つの故障を検出するための故障診断機能を有している。そして、マスタECU10とスレーブECU11〜14は、車両内に配設された通信バス3を介して通信可能に接続されている。尚、スレーブECU11〜14の数は、本実施形態では4であるが、4以外であっても良い。また、図1及び図1と同様の後述する他の図では、スレーブECU11〜14のそれぞれを、ECU_A〜Dとして図示している。
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[1. Constitution]
The in-vehicle system 1 of the embodiment shown in FIG. 1 is a system mounted on a vehicle and includes a master ECU 10 corresponding to a master control unit and slave ECUs 11 to 14 corresponding to a plurality of slave control units. Each of the slave ECUs 11 to 14 has a failure diagnosis function for detecting at least one failure. The master ECU 10 and the slave ECUs 11 to 14 are communicatively connected to each other via the communication bus 3 arranged in the vehicle. The number of slave ECUs 11 to 14 is four in this embodiment, but may be other than four. Further, in each of FIG. 1 and other drawings described later, which are similar to FIG. 1, the slave ECUs 11 to 14 are illustrated as ECU_A to D.

また、マスタECU10には、通信バス3とは別の通信バス5が接続されており、その通信バス5には、車両の外部の装置である診断ツール7が着脱可能になっている。そして、マスタECU10は、診断ツール7とスレーブECU11〜14との間の通信を中継するゲートウェイとしての機能(即ち、中継機能)も有している。 A communication bus 5 different from the communication bus 3 is connected to the master ECU 10, and a diagnostic tool 7, which is an external device of the vehicle, can be attached to and detached from the communication bus 5. The master ECU 10 also has a function as a gateway (that is, a relay function) that relays communication between the diagnostic tool 7 and the slave ECUs 11 to 14.

各ECU10〜14は、当該ECUの動作を司る制御部として、例えばマイクロコンピュータ(以下、マイコン)を備える。そして、マイコンは、プログラムを実行するCPUと、CPUが実行するプログラムや該プログラムの実行時に参照されるデータ等が格納されたROMと、データを一時的に記憶するためのRAMと、他のメモリと、を備える。後述するECU10〜14の処理動作は、当該ECU10〜14のマイコンにおけるCPUがプログラムを実行することにより実現される。 Each of the ECUs 10 to 14 includes, for example, a microcomputer (hereinafter, a microcomputer) as a control unit that controls the operation of the ECU. The microcomputer includes a CPU that executes a program, a ROM that stores a program executed by the CPU and data that is referred to when the program is executed, a RAM that temporarily stores the data, and another memory. And The processing operation of the ECUs 10 to 14 described later is realized by the CPU of the microcomputer of the ECUs 10 to 14 executing a program.

上記他のメモリは、ECU10〜14の動作停止中においてもデータを保持可能で、且つ、データの書き込み及び読み出しが可能な少なくとも1つのメモリ(以下、保持用メモリ)である。 The other memory is at least one memory (hereinafter, holding memory) that can hold data and can write and read data even while the operation of the ECUs 10 to 14 is stopped.

スレーブECU11〜14における保持用メモリの記憶領域の一部又は全部は、当該スレーブECU11〜14の故障診断機能によって検出された故障の種別を表す故障情報としてのDTCのうち、特定DTCではないDTC(即ち、非特定DTC)を保存するための記憶領域21になっている。 A part or all of the storage area of the holding memory in each of the slave ECUs 11 to 14 is a DTC that is not a specific DTC among the DTCs as failure information indicating the type of failure detected by the failure diagnosis function of the slave ECU 11 to 14. That is, it is a storage area 21 for storing a non-specific DTC).

特定DTCは、スレーブECU11〜14のそれぞれで検出され得る複数種類の故障のDTC、即ち、車両で検出され得る複数種類の故障のDTCのうち、例えばOBD車検における車両の合否判定に用いられるDTCである。このため、非特定DTCは、車両の合否判定に用いられないDTCである。 The specific DTC is a DTC of a plurality of types of failures that can be detected by each of the slave ECUs 11 to 14, that is, a DTC that is used for a vehicle pass/fail determination in OBD vehicle inspection among a plurality of types of DTCs of a failure that can be detected by the vehicle. is there. Therefore, the non-specific DTC is a DTC that is not used for the pass/fail judgment of the vehicle.

一方、例えば、マスタECU10におけるROMの記憶領域の一部及び当該ROMと紐付けられている保持用メモリの記憶領域の一部が、情報テーブルに相当する特定DTCテーブル23を構成するための記憶領域になっている。ROMの記憶領域のうち、少なくとも特定DTCテーブル23のための記憶領域は、書き換え可能であって良い。そして、マスタECU10における保持用メモリの記憶領域のうち、特定DTCテーブル23のための記憶領域とは別の記憶領域の一部又は全部は、スレーブECU11〜14からマスタECU10に送信されるDTCのうち、特定DTCを保存するための記憶領域25になっている。尚、記憶領域25と、特定DTCテーブル23のための記憶領域とのそれぞれは、1つの保持用メモリにおける異なる記憶領域であっても良いし、物理的に別々の保持用メモリにおける記憶領域であっても良い。 On the other hand, for example, a part of the storage area of the ROM in the master ECU 10 and a part of the storage area of the holding memory associated with the ROM are storage areas for configuring the specific DTC table 23 corresponding to the information table. It has become. Of the storage areas of the ROM, at least the storage area for the specific DTC table 23 may be rewritable. Of the storage areas of the holding memory in the master ECU 10, some or all of the storage areas other than the storage area for the specific DTC table 23 are included in the DTC transmitted from the slave ECUs 11 to 14 to the master ECU 10. , A storage area 25 for storing a specific DTC. The storage area 25 and the storage area for the specific DTC table 23 may be different storage areas in one holding memory or may be physically storage areas in different holding memories. May be.

マスタECU10において、特定DTCテーブル23には、全ての特定DTCのそれぞれが、その特定DTCの発生元のスレーブECUを特定可能な情報と対応付けて記録されている。DTCの発生元とは、そのDTCが表す故障を検出するECUのことである。更に、特定DTCテーブル23には、特定DTCのそれぞれについて、その特定DTCが記憶領域25に記憶されているか否かを示す記憶有無情報も、記録される。 In the master ECU 10, each of all the specific DTCs is recorded in the specific DTC table 23 in association with the information that can identify the slave ECU that is the source of the specific DTC. The source of DTC is an ECU that detects a failure represented by the DTC. Further, the specific DTC table 23 also stores, for each specific DTC, storage presence/absence information indicating whether or not the specific DTC is stored in the storage area 25.

このため、特定DTCテーブル23は、縦方向に並ぶカラムとして、特定DTCの発生元のスレーブECUを示す発生元情報の例である「A〜D」の何れかが記録されるカラムと、特定DTCが記録されるカラムと、記憶有無情報の例である「○」または「×」が記録されるカラムと、を備える。そして、発生元情報と特定DTCと記憶有無情報は、対応するもの同士が同じ行となるように記録される。例えば、特定DTCテーブル23に記録される情報のうち、発生元情報と特定DTCはROMに記録され、記憶有無情報は保持用メモリに記録されるようになっていて良い。 Therefore, the specific DTC table 23 includes, as columns arranged in the vertical direction, a column in which any of “A to D”, which is an example of generation source information indicating a generation source slave ECU of the specific DTC, is recorded, and a specific DTC. Is recorded, and a column in which “◯” or “x”, which is an example of the storage presence/absence information, is recorded is provided. Then, the generation source information, the specific DTC, and the storage presence/absence information are recorded such that the corresponding ones are in the same row. For example, of the information recorded in the specific DTC table 23, the generation source information and the specific DTC may be recorded in the ROM, and the storage presence/absence information may be recorded in the holding memory.

尚、図1の例では、「DTC1」、「DTC4」、「DTC5」、「DTC9」及び「DTC10」が、特定DTCである。また、DTCの後に付されている数字は、DTCを区別するための数字であり、車載システム及び車載システムの構成要素に付された符号とは別のものである。また、記憶有無情報として、「○」は、当該記憶有無情報に対応する特定DTCが記憶領域25に記憶されていること、即ち「記憶あり」を示し、「×」は、当該記憶有無情報に対応する特定DTCが記憶領域25に記憶されてないこと、即ち「記憶なし」を示す。ここでは、分かりやすくするために、「○」または「×」で説明しているが、記憶有無情報は、例えばビット値が「1」または「0」のフラグであっても良い。 In the example of FIG. 1, “DTC1”, “DTC4”, “DTC5”, “DTC9” and “DTC10” are specific DTCs. Further, the number attached after DTC is a number for distinguishing the DTC, and is different from the reference numerals attached to the in-vehicle system and the components of the in-vehicle system. Further, as the storage presence/absence information, “◯” indicates that the specific DTC corresponding to the storage presence/absence information is stored in the storage area 25, that is, “stored”, and “x” indicates the storage presence/absence information. It indicates that the corresponding specific DTC is not stored in the storage area 25, that is, "no storage". Here, in order to make it easier to understand, the explanation is made with “◯” or “×”, but the storage presence/absence information may be a flag having a bit value of “1” or “0”, for example.

また他の例として、特定DTCテーブル23の構成としては、スレーブECU11〜14のそれぞれについて、そのスレーブECUが発生元となる特定DTCの記録場所(例えば、アドレス)が予め定められている構成であっても良い。このような構成であっても、特定DTCの記録場所によって、発生元のスレーブECUを特定することができる。この場合、特定DTCの記録場所が、その特定DTCの発生元のスレーブECUを特定可能な情報に相当する。 As another example, the specific DTC table 23 has a configuration in which, for each of the slave ECUs 11 to 14, a recording location (for example, an address) of the specific DTC from which the slave ECU originates is predetermined. May be. Even with such a configuration, the slave ECU that is the generation source can be specified by the recording location of the specific DTC. In this case, the recording location of the specific DTC corresponds to information that can identify the slave ECU that is the source of the specific DTC.

[2.DTCを記憶するための処理]
本実施形態では、検出された故障のDTCのうち、特定DTCはマスタECU10に記憶され、非特定DTCは発生元のスレーブECU11〜14に記憶される。尚、DTCの記憶先の説明として、マスタECU10に記憶されるとは、詳しくは、マスタECU10の記憶領域25に記憶されることであり、スレーブECU11〜14に記憶されるとは、詳しくは、スレーブECU11〜14の記憶領域21に記憶されることである。
[2. Processing for storing DTC]
In the present embodiment, among the detected DTCs having a failure, the specific DTC is stored in the master ECU 10, and the non-specific DTC is stored in the slave ECUs 11 to 14 as the generation source. As a description of the storage destination of the DTC, “to be stored in the master ECU 10” means specifically to be stored in the storage area 25 of the master ECU 10, and “to be stored in the slave ECUs 11 to 14” means specifically, It is stored in the storage area 21 of the slave ECUs 11 to 14.

そこで次に、マスタECU10が、検出された故障のDTCのうち、特定DTCを記憶するために行う記憶制御処理と、スレーブECU11〜14のそれぞれが、DTCのうち、非特定DTCを記憶するために行う記憶制御処理とについて、説明する。尚、以下の説明において、検出された又は検出したDTCとは、検出された又は検出した故障のDTCのことである。 Then, next, the master ECU 10 performs a storage control process for storing a specific DTC among the detected DTCs, and each of the slave ECUs 11 to 14 stores a non-specific DTC among the DTCs. The storage control process to be performed will be described. In the following description, the detected or detected DTC is the detected or detected failure DTC.

[2−1.スレーブECUが行う記憶制御処理]
スレーブECU11〜14は、当該ECUが有する故障診断機能によって何れかの故障を検出すると、図2に示す記憶制御処理を行う。
[2-1. Memory control processing performed by slave ECU]
When any of the slave ECUs 11 to 14 detects a failure by the failure diagnosis function of the ECU, the slave ECUs 11 to 14 perform the storage control process shown in FIG.

図2に示すように、スレーブECU11〜14は、検出したDTCを、S110にて、マスタECU10に送信する。例えば、スレーブECU11〜14は、該当のDTCを含むメッセージを、マスタECU10に送信する。また、車載システム1において、ノード間でやりとりされるメッセージには、送信元を示す送信元情報が少なくとも含まれる。ここで言うノードとしては、ECU10〜14及び診断ツール7が含まれる。 As shown in FIG. 2, the slave ECUs 11 to 14 transmit the detected DTC to the master ECU 10 in S110. For example, the slave ECUs 11 to 14 send a message including the corresponding DTC to the master ECU 10. Further, in the vehicle-mounted system 1, the message exchanged between the nodes includes at least the transmission source information indicating the transmission source. The nodes referred to here include the ECUs 10 to 14 and the diagnostic tool 7.

スレーブECU11〜14は、次のS120にて、上記S110で送信したDTCに対するマスタECU10からの指示メッセージを受信したか否かを判定し、マスタECU10からの指示メッセージを受信するまで待つ。そして、マスタECU10からの指示メッセージを受信すると、S130に進む。尚、S120で待つマスタECU10からの指示メッセージは、DTC破棄とDTC記憶との、何れかを指示するメッセージである。また、ここで言う破棄は、記憶しないことを意味する。 In the next S120, slave ECUs 11 to 14 determine whether or not the instruction message from master ECU 10 for the DTC transmitted in S110 is received, and wait until the instruction message from master ECU 10 is received. Then, when the instruction message from the master ECU 10 is received, the process proceeds to S130. The instruction message from the master ECU 10 waiting in S120 is a message instructing either DTC discard or DTC storage. Further, the discarding referred to here means not storing.

スレーブECU11〜14は、S130では、マスタECU10からの指示メッセージが、DTC破棄を指示するメッセージであるか否かを判定し、DTC破棄を指示するメッセージであれば、S140に進む。そして、S140では、上記S110でマスタECU10に送信したDTC、即ち検出したDTCを、当該ECUの記憶領域21に記憶することなく破棄し、その後、図2の記憶制御処理を終了する。 In S130, the slave ECUs 11 to 14 determine whether or not the instruction message from the master ECU 10 is a message instructing DTC discard, and if it is a message instructing DTC discard, the process proceeds to S140. Then, in S140, the DTC transmitted to the master ECU 10 in S110, that is, the detected DTC, is discarded without being stored in the storage area 21 of the ECU, and then the storage control process of FIG. 2 ends.

また、スレーブECU11〜14は、上記S130にて、マスタECU10からの指示メッセージが、DTC破棄を指示するメッセージではない、即ち、DTC記憶を指示するメッセージである、と判定した場合には、S150に進む。そして、S150では、上記S110でマスタECU10に送信したDTCを、当該ECUの記憶領域21に記憶し、その後、図2の記憶制御処理を終了する。 When the slave ECUs 11 to 14 determine in S130 that the instruction message from the master ECU 10 is not the message instructing DTC discard, that is, the message instructing DTC storage, the slave ECUs 11 to 14 proceed to S150. move on. Then, in S150, the DTC transmitted to the master ECU 10 in S110 is stored in the storage area 21 of the ECU, and then the storage control process of FIG. 2 ends.

[2−2.マスタECUが行う記憶制御処理]
マスタECU10は、スレーブECU11〜14の何れかが送信した、DTCを含むメッセージを受信すると、図3に示す記憶制御処理を行う。
[2-2. Memory control processing performed by master ECU]
When the master ECU 10 receives the message including the DTC transmitted from any of the slave ECUs 11 to 14, the master ECU 10 performs the storage control process shown in FIG.

図3に示すように、マスタECU10は、S210にて、スレーブECU11〜14から受信したDTC(以下、受信DTC)を、特定DTCテーブル23に記録されている特定DTCと照合することにより、受信DTCが特定DTCテーブル23に記録されているか否かを判定する。 As shown in FIG. 3, the master ECU 10 compares the DTC received from the slave ECUs 11 to 14 (hereinafter, received DTC) with the specific DTC recorded in the specific DTC table 23 in S210, thereby receiving the DTC. Is recorded in the specific DTC table 23.

そして、マスタECU10は、次のS220にて、上記S210での判定結果に基づいて、受信DTCが特定DTCであるか否かを判定する。具体的には、受信DTCが特定DTCテーブル23に記録されていれば、受信DTCが特定DTCであると判定し、受信DTCが特定DTCテーブル23に記録されていなければ、受信DTCが非特定DTCであると判定する。 Then, in next S220, master ECU 10 determines whether or not the received DTC is the specific DTC, based on the determination result in S210. Specifically, if the received DTC is recorded in the specific DTC table 23, it is determined that the received DTC is the specific DTC, and if the received DTC is not recorded in the specific DTC table 23, the received DTC is the non-specific DTC. Is determined.

マスタECU10は、上記S220にて、受信DTCが特定DTCであると判定した場合には、S230に進み、受信DTCを記憶領域25に記憶する。更に、S230では、特定DTCテーブル23において、受信DTCと同じ特定DTCに対応する記憶有無情報を、「記憶あり」に書き換える。 When the master ECU 10 determines in S220 that the received DTC is the specific DTC, the master ECU 10 proceeds to S230 and stores the received DTC in the storage area 25. Furthermore, in S230, the storage presence/absence information corresponding to the same specific DTC as the received DTC is rewritten to “with storage” in the specific DTC table 23.

そして、マスタECU10は、次のS240にて、スレーブECU11〜14のうち、DTCを送信してきたスレーブECUに、前述のDTC破棄を指示するメッセージを送信し、その後、図3の記憶制御処理を終了する。尚、マスタECU10は、DTCを送信してきたスレーブECUを、そのDTCが含まれたメッセージ中の送信元情報によって特定することができる。 Then, in next S240, master ECU 10 transmits a message instructing the above-mentioned DTC discard to the slave ECU that has transmitted the DTC among slave ECUs 11 to 14, and thereafter ends the storage control process of FIG. To do. Note that the master ECU 10 can identify the slave ECU that has transmitted the DTC, based on the transmission source information in the message including the DTC.

よって、スレーブECU11〜14で検出されたDTCが特定DTCであった場合、その特定DTCは、マスタECU10の記憶領域25に記憶され、スレーブECU11〜14には記憶されない。 Therefore, when the DTC detected by the slave ECUs 11 to 14 is the specific DTC, the specific DTC is stored in the storage area 25 of the master ECU 10 and not stored in the slave ECUs 11 to 14.

また、マスタECU10は、上記S220にて、受信DTCが特定DTCではない、即ち、非特定DTCである、と判定した場合には、受信DTCを記憶領域25に記憶することなく、S250に進む。そして、S250では、スレーブECU11〜14のうち、DTCを送信してきたスレーブECUに、前述のDTC記憶を指示するメッセージを送信し、その後、図3の記憶制御処理を終了する。 When the master ECU 10 determines in S220 that the received DTC is not the specific DTC, that is, the non-specific DTC, the master ECU 10 does not store the received DTC in the storage area 25 and proceeds to S250. Then, in S250, the slave ECU that has transmitted the DTC among the slave ECUs 11 to 14 transmits the above-mentioned message instructing the DTC storage, and then ends the storage control process of FIG.

よって、スレーブECU11〜14で検出されたDTCが非特定DTCであった場合、その非特定DTCは、マスタECU10に記憶されず、発生元のスレーブECUの記憶領域21に記憶される。 Therefore, when the DTC detected by each of the slave ECUs 11 to 14 is a non-specific DTC, the non-specific DTC is not stored in the master ECU 10 but is stored in the storage area 21 of the slave ECU that is the generation source.

[2−3.ラダーチャートによる動作説明]
図2,図3の各処理により、スレーブECU11〜14とマスタECU10は、図4に示すように動作する。尚、図4におけるスレーブECUは、スレーブECU11〜14のうち、故障を検出したスレーブECUであり、ここでは、例えばスレーブECU11であるとして説明する。
[2-3. Operation explanation by ladder chart]
By the processes of FIGS. 2 and 3, the slave ECUs 11 to 14 and the master ECU 10 operate as shown in FIG. The slave ECU in FIG. 4 is a slave ECU that has detected a failure among the slave ECUs 11 to 14, and will be described here as the slave ECU 11, for example.

図4に示すように、スレーブECU11は、S11にて、検出したDTCをマスタECU10に送信する。マスタECU10は、S12にて、スレーブECU11からの受信DTCを、特定DTCテーブル23に記録されている特定DTCと照合する。そして、受信DTCが特定DTCテーブル23に記録されていた場合、即ち、受信DTCが特定DTCである場合には、S13にて、その受信DTCを記憶領域25に記憶し、S14にて、スレーブECU11に、DTC破棄を指示するメッセージを送信する。このメッセージを受信したスレーブECU11は、マスタECU10に送信したDTCを、S15にて破棄する。 As shown in FIG. 4, the slave ECU 11 transmits the detected DTC to the master ECU 10 in S11. The master ECU 10 checks the received DTC from the slave ECU 11 with the specific DTC recorded in the specific DTC table 23 in S12. If the received DTC is recorded in the specific DTC table 23, that is, if the received DTC is the specific DTC, the received DTC is stored in the storage area 25 in S13, and the slave ECU 11 is stored in S14. A message instructing to discard the DTC is transmitted to the. The slave ECU 11 that receives this message discards the DTC transmitted to the master ECU 10 in S15.

また、図4には示されていないが、マスタECU10は、受信DTCが特定DTCテーブル23に記録されていなかった場合、即ち、受信DTCが非特定DTCである場合には、その受信DTCを記憶領域25に記憶せず、スレーブECU11に、DTC記憶を指示するメッセージを送信する。このため、スレーブECU11は、マスタECU10に送信したDTC(即ち、非特定DTC)を、当該スレーブECU11の記憶領域21に記憶する。 Although not shown in FIG. 4, when the received DTC is not recorded in the specific DTC table 23, that is, when the received DTC is a non-specific DTC, the master ECU 10 stores the received DTC. Instead of storing it in the area 25, a message instructing the DTC storage is transmitted to the slave ECU 11. Therefore, the slave ECU 11 stores the DTC (that is, the non-specific DTC) transmitted to the master ECU 10 in the storage area 21 of the slave ECU 11.

[2−4.作用例]
例えば、図1において、スレーブECU11(即ち、ECU_A)が、DTC1に対応する故障を検出したとする。そして、DTC1は、特定DTCである。
[2-4. Example of operation]
For example, in FIG. 1, it is assumed that the slave ECU 11 (that is, ECU_A) detects a failure corresponding to DTC1. And DTC1 is a specific DTC.

この場合、下記〈1〉〜〈5〉の動作が行われる。
〈1〉スレーブECU11は、DTC1をマスタECU10に送信する。
〈2〉マスタECU10は、スレーブECU11から受信したDTC1が特定DTCであるか否かを、特定DTCテーブル23に基づいて判定する。
In this case, the following operations <1> to <5> are performed.
<1> The slave ECU 11 transmits the DTC 1 to the master ECU 10.
<2> The master ECU 10 determines whether or not the DTC 1 received from the slave ECU 11 is the specific DTC based on the specific DTC table 23.

DTC1は、特定DTCであり、特定DTCテーブル23に記録されているため、マスタECU10は、DTC1が特定DTCであると判定する。
〈3〉このため、マスタECU10は、スレーブECU11からのDTC1を、記憶領域25に記憶する。
Since DTC1 is the specific DTC and is recorded in the specific DTC table 23, the master ECU 10 determines that the DTC1 is the specific DTC.
<3> For this reason, the master ECU 10 stores the DTC 1 from the slave ECU 11 in the storage area 25.

〈4〉そして、マスタECU10は、スレーブECU11に、検出したDTCの破棄を指示する。
〈5〉スレーブECU11は、マスタECU10からの指示に従って、DTC1を記憶領域21に記憶せずに破棄する。
<4> Then, the master ECU 10 instructs the slave ECU 11 to discard the detected DTC.
<5> The slave ECU 11 discards the DTC 1 without storing it in the storage area 21 according to the instruction from the master ECU 10.

よって、特定DTCであるDTC1は、マスタECU10に記憶され、スレーブECU11には記憶されない。
また例えば、図1において、スレーブECU12(即ち、ECU_B)が、DTC3に対応する故障を検出したとする。そして、DTC3は、非特定DTCである。
Therefore, DTC1, which is the specific DTC, is stored in the master ECU 10 and is not stored in the slave ECU 11.
Further, for example, in FIG. 1, it is assumed that the slave ECU 12 (that is, the ECU_B) detects a failure corresponding to the DTC 3. And DTC3 is a non-specific DTC.

この場合、下記〈6〉〜〈9〉の動作が行われる。
〈6〉スレーブECU12は、DTC3をマスタECU10に送信する。
〈7〉マスタECU10は、スレーブECU12から受信したDTC3が特定DTCであるか否かを、特定DTCテーブル23に基づいて判定する。
In this case, the following operations <6> to <9> are performed.
<6> The slave ECU 12 transmits the DTC 3 to the master ECU 10.
<7> The master ECU 10 determines whether or not the DTC 3 received from the slave ECU 12 is the specific DTC based on the specific DTC table 23.

DTC3は、非特定DTCであり、特定DTCテーブル23に記録されていないため、マスタECU10は、DTC3が非特定DTCであると判定する。このため、マスタECU10は、DTC3を記憶領域25に記憶しない。 Since the DTC 3 is a non-specific DTC and is not recorded in the specific DTC table 23, the master ECU 10 determines that the DTC 3 is a non-specific DTC. Therefore, the master ECU 10 does not store the DTC 3 in the storage area 25.

〈8〉そして、マスタECU10は、スレーブECU11に、検出したDTCの記憶を指示する。
〈9〉スレーブECU11は、マスタECU10からの指示に従って、DTC3を記憶領域21に記憶する。
<8> Then, the master ECU 10 instructs the slave ECU 11 to store the detected DTC.
<9> The slave ECU 11 stores the DTC 3 in the storage area 21 according to the instruction from the master ECU 10.

よって、非特定DTCであるDTC3は、マスタECU10に記憶されず、当該DTC3の発生元であるスレーブECU12に記憶される。
[3.DTCを診断ツールに出力するための処理]
次に、図5に示すように、診断ツール7が通信バス5に接続され、その診断ツール7からのDTC要求に対して、スレーブECU11〜14が応答する場合に行われる処理について説明する。
Therefore, the DTC3 that is the non-specific DTC is not stored in the master ECU 10, but is stored in the slave ECU 12 that is the source of the DTC3.
[3. Processing for outputting DTC to diagnostic tool]
Next, as shown in FIG. 5, a process performed when the diagnostic tool 7 is connected to the communication bus 5 and the slave ECUs 11 to 14 respond to a DTC request from the diagnostic tool 7 will be described.

[3−1.スレーブECUが行うDTC出力制御処理]
スレーブECU11〜14は、診断ツール7からマスタECU10を経由して送られて来る当該スレーブECU宛てのDTC出力要求を受信すると、図6に示すDTC出力制御処理を行う。診断ツール7からのDTC出力要求は、スレーブECU11〜14の何れかに対して、当該スレーブECUで検出されたDTCを要求するためのメッセージであり、故障情報要求に相当する。
[3-1. DTC Output Control Process Performed by Slave ECU]
When the slave ECUs 11 to 14 receive the DTC output request addressed to the slave ECU from the diagnostic tool 7 via the master ECU 10, the slave ECUs 11 to 14 perform the DTC output control process shown in FIG. The DTC output request from the diagnostic tool 7 is a message for requesting the DTC detected by the slave ECU 11 to any of the slave ECUs 11 to 14, and corresponds to a failure information request.

図6に示すように、スレーブECU11〜14は、S310にて、マスタECU10にDTC出力要求を送信する。スレーブECU11〜14からのDTC出力要求は、マスタECU10に対して、記憶領域25に記憶された特定DTCのうち、当該スレーブECUが発生元である特定DTCを要求するためのメッセージであり、出力要求に相当する。 As shown in FIG. 6, the slave ECUs 11 to 14 send a DTC output request to the master ECU 10 in S310. The DTC output request from the slave ECUs 11 to 14 is a message for requesting the master ECU 10 for the specific DTC that is the generation source of the slave ECU among the specific DTCs stored in the storage area 25. Equivalent to.

一方、処理の図示を省略するが、マスタECU10は、スレーブECU11〜14の何れかが送信したDTC出力要求を受信すると、下記のDTC応答制御処理を行う。
マスタECU10は、DTC応答制御処理では、受信したDTC出力要求の送信元のスレーブECU(以下、要求元ECU)が発生元である特定DTCを、特定DTCテーブル23から特定する。そして、特定した特定DTCが記憶領域25に記憶されていれば、その記憶されている特定DTCを含む応答メッセージを、要求元ECUに送信する。また、上記特定した特定DTCが記憶領域25に記憶されていない場合、あるいは、そもそも要求元ECUが発生元である特定DTCが、特定DTCテーブル23に記録されていない場合には、DTCが含まれない応答メッセージを、要求元ECUに送信する。
On the other hand, although illustration of the processing is omitted, when the master ECU 10 receives the DTC output request transmitted by any of the slave ECUs 11 to 14, the master ECU 10 performs the following DTC response control processing.
In the DTC response control process, master ECU 10 identifies, from the specific DTC table 23, the specific DTC that is the source of the slave ECU (hereinafter, requesting ECU) that is the transmission source of the received DTC output request. Then, if the specified specific DTC is stored in the storage area 25, a response message including the stored specific DTC is transmitted to the request source ECU. If the specified specific DTC is not stored in the storage area 25, or if the specific DTC that is the source of the requesting ECU is not recorded in the specific DTC table 23, the DTC is included. No response message is sent to the requesting ECU.

このため、スレーブECU11〜14は、マスタECU10にDTC出力要求を送信した後、図6のS320にて、マスタECU10からの応答メッセージを受信したか否かを判定し、マスタECU10からの応答メッセージを受信するまで待つ。そして、スレーブECU11〜14は、マスタECU10からの応答メッセージを受信すると、S330に進む。 Therefore, after transmitting the DTC output request to the master ECU 10, the slave ECUs 11 to 14 determine in S320 of FIG. 6 whether or not the response message from the master ECU 10 is received, and the response message from the master ECU 10 is transmitted. Wait until you receive it. Then, upon receiving the response message from the master ECU 10, the slave ECUs 11 to 14 proceed to S330.

スレーブECU11〜14は、S330では、マスタECU10からの応答メッセージにDTCが含まれているか否かを判定し、DTCが含まれていると判定した場合には、S340に進む。そして、S340では、診断ツール7への応答メッセージとして、マスタECU10からの応答メッセージに含まれていたDTC(即ち、特定DTC)と、当該スレーブECUの記憶領域21に記憶されているDTC(即ち、非特定DTC)とを含むメッセージを、送信する。その後、スレーブECU11〜14は、図6のDTC出力制御処理を終了する。尚、記憶領域21にDTCが記憶されていない場合には、上記S340で送信される診断ツール7への応答メッセージに非特定DTCは含まれない。 In S330, the slave ECUs 11 to 14 determine whether or not the response message from the master ECU 10 includes DTC. If it is determined that the response message includes DTC, the process proceeds to S340. Then, in S340, as the response message to the diagnostic tool 7, the DTC (that is, the specific DTC) included in the response message from the master ECU 10 and the DTC (that is, the specific DTC) stored in the memory area 21 of the slave ECU (that is, A message including the non-specific DTC) is transmitted. After that, the slave ECUs 11 to 14 finish the DTC output control process of FIG. When the DTC is not stored in the storage area 21, the non-specific DTC is not included in the response message to the diagnostic tool 7 transmitted in S340.

スレーブECU11〜14から診断ツール7への応答メッセージは、マスタECU10を経由して診断ツール7に送られる。そして、診断ツール7への応答メッセージに含まれるDTCは、例えば、診断ツール7に備えられた表示部に表示される。 Response messages from the slave ECUs 11 to 14 to the diagnostic tool 7 are sent to the diagnostic tool 7 via the master ECU 10. Then, the DTC included in the response message to the diagnostic tool 7 is displayed, for example, on the display unit included in the diagnostic tool 7.

一方、スレーブECU11〜14は、上記S330にて、マスタECU10からの応答メッセージにDTCが含まれていないと判定した場合には、S350に進む。そして、S350では、診断ツール7への応答メッセージとして、当該スレーブECUの記憶領域21に記憶されているDTCを含むメッセージを、送信する。その後、スレーブECU11〜14は、図6のDTC出力制御処理を終了する。尚、記憶領域21にDTCが記憶されていない場合には、上記S350で送信される診断ツール7への応答メッセージにDTCは含まれない。 On the other hand, when the slave ECUs 11 to 14 determine in S330 that the response message from the master ECU 10 does not include DTC, the process proceeds to S350. Then, in S350, as a response message to the diagnostic tool 7, a message including the DTC stored in the storage area 21 of the slave ECU is transmitted. After that, the slave ECUs 11 to 14 finish the DTC output control process of FIG. When the DTC is not stored in the storage area 21, the response message to the diagnostic tool 7 transmitted in S350 does not include the DTC.

[3−2.ラダーチャートによる動作説明]
上記DTC出力制御処理及びDTC応答制御処理により、スレーブECU11〜14とマスタECU10は、図7に示すように動作する。尚、図7におけるスレーブECUは、例えばスレーブECU11であるとして説明する。
[3-2. Operation explanation by ladder chart]
Through the DTC output control process and the DTC response control process, the slave ECUs 11 to 14 and the master ECU 10 operate as shown in FIG. 7. The slave ECU in FIG. 7 will be described as the slave ECU 11, for example.

図7に示すように、S21にて、診断ツール7がスレーブECU11宛てのDTC出力要求を送信したとする。
マスタECU10は、S22にて、診断ツール7からの要求メッセージとしてのDTC出力要求を、そのままスレーブECU11に転送する。具体的には、診断ツール7からのDTC出力要求を通信バス3に送出する。
As shown in FIG. 7, it is assumed that the diagnostic tool 7 transmits a DTC output request addressed to the slave ECU 11 in S21.
In S22, the master ECU 10 transfers the DTC output request as a request message from the diagnostic tool 7 to the slave ECU 11 as it is. Specifically, the DTC output request from the diagnostic tool 7 is sent to the communication bus 3.

スレーブECU11は、診断ツール7からのDTC出力要求を受信すると、S23にて、マスタECU10にDTC出力要求を送信する。
すると、マスタECU10は、S24にて、上記DTC応答制御処理を行うことにより、記憶領域25に記憶されている特定DTCのうち、スレーブECU11が発生元である特定DTCを含む応答メッセージを、スレーブECU11に送信する。尚、この例では、スレーブECU11が発生元である特定DTCが、マスタECU10の記憶領域25に記憶されているものとする。
When the slave ECU 11 receives the DTC output request from the diagnostic tool 7, the slave ECU 11 transmits the DTC output request to the master ECU 10 in S23.
Then, in S24, the master ECU 10 performs the DTC response control process to send a response message including the specific DTC that is the generation source of the slave ECU 11 among the specific DTCs stored in the storage area 25. Send to. In this example, it is assumed that the specific DTC that is the generation source of the slave ECU 11 is stored in the storage area 25 of the master ECU 10.

スレーブECU11は、マスタECU10からの応答メッセージを受信すると、S25にて、診断ツール7への応答メッセージとして、マスタECU10からの特定DTCと、当該スレーブECU11の記憶領域21に記憶されているDTC(即ち、非特定DTC)とを含むメッセージを、作成する。そして、スレーブECU11は、この作成したメッセージを、S26にて、通信バス3に送信する。 When the slave ECU 11 receives the response message from the master ECU 10, in S25, as a response message to the diagnostic tool 7, the specific DTC from the master ECU 10 and the DTC stored in the storage area 21 of the slave ECU 11 (ie, , Non-specific DTC). Then, the slave ECU 11 transmits the created message to the communication bus 3 in S26.

すると、マスタECU10は、スレーブECU11から送信された応答メッセージを受信し、この応答メッセージを、S27にて、そのまま診断ツール7に転送する。具体的には、スレーブECU11から受信した応答メッセージを通信バス5に送出する。そして、このスレーブECU11からの応答メッセージは、診断ツール7に受信される。 Then, the master ECU 10 receives the response message transmitted from the slave ECU 11, and transfers the response message to the diagnostic tool 7 as it is in S27. Specifically, the response message received from the slave ECU 11 is sent to the communication bus 5. Then, the response message from the slave ECU 11 is received by the diagnostic tool 7.

[3−3.作用例]
例えば図5において、〈11〉に示すように、診断ツール7からスレーブECU11宛てのDTC出力要求が送信されたとする。
[3-3. Example of operation]
For example, in FIG. 5, it is assumed that the diagnostic tool 7 transmits a DTC output request addressed to the slave ECU 11 as shown in <11>.

この場合、下記〈12〉〜〈14〉の動作が行われる。
〈12〉スレーブECU11は、マスタECU10にDTC出力要求を送信する。
〈13〉マスタECU10は、記憶領域25に記憶されている特定DTCのうち、発生元がスレーブECU11である特定DTC、即ち、この例ではDTC1を、スレーブECU11に送信する。
In this case, the following operations <12> to <14> are performed.
<12> The slave ECU 11 transmits a DTC output request to the master ECU 10.
<13> The master ECU 10 transmits to the slave ECU 11 the specific DTC stored in the storage area 25, the specific DTC whose generation source is the slave ECU 11, that is, DTC1 in this example.

〈14〉スレーブECU11は、マスタECUから受信した特定DTCであるDTC1と、当該スレーブECU11の記憶領域21に記憶されている非特定DTCであるDTC2とを、合わせて、診断ツール7に応答する。具体的には、これらのDTCを含む診断ツール7宛の応答メッセージを送信する。 <14> The slave ECU 11 responds to the diagnostic tool 7 by combining the specific DTC 1 received from the master ECU and the non-specific DTC 2 stored in the storage area 21 of the slave ECU 11. Specifically, the response message addressed to the diagnostic tool 7 including these DTCs is transmitted.

すると、診断ツール7の表示部には、DTC1とDTC2が表示される。
[4.特定DTCテーブルに特定DTCを追加記録する機能]
特定DTCが追加された場合、即ち、車両で検出されるDTCのうち、特定DTCとして定められるものが増やされた場合には、マスタECU10の特定DTCテーブル23を更新する必要がある。そこで、特定DTCテーブル23に特定DTCを追加記録する機能について説明する。
Then, DTC1 and DTC2 are displayed on the display unit of the diagnostic tool 7.
[4. Function to additionally record specific DTC in specific DTC table]
When the specific DTC is added, that is, when the number of DTCs detected by the vehicle that is defined as the specific DTC is increased, the specific DTC table 23 of the master ECU 10 needs to be updated. Therefore, the function of additionally recording the specific DTC in the specific DTC table 23 will be described.

[4−1.診断ツールとマスタECUが行う動作]
図8のラダーチャートに示すように、診断ツール7が、S31にて、特定DTC追加情報を送信すると、マスタECU10は、その特定DTC追加情報を受信する。特定DTC追加情報には、追加された特定DTCと、その特定DTCの発生元であるスレーブECUを示す発生元情報とが、少なくとも含まれる。この特定DTC追加情報は、外部からの追加要求に相当する。
[4-1. Operations performed by diagnostic tool and master ECU]
As shown in the ladder chart of FIG. 8, when the diagnostic tool 7 transmits the specific DTC additional information in S31, the master ECU 10 receives the specific DTC additional information. The specific DTC additional information includes at least the added specific DTC and the generation source information indicating the slave ECU that is the generation source of the specific DTC. This specific DTC additional information corresponds to an external addition request.

そして、マスタECU10は、S32にて、診断ツール7からの特定DTC追加情報に含まれている特定DTCと、その特定DTCに対応する発生元情報とを、特定DTCテーブル23に追加して記録する。また、特定DTCテーブル23において、追加した特定DTCに対応する記憶有無情報は「×」、即ち「記憶なし」とされる。 Then, the master ECU 10 additionally records, in S32, the specific DTC included in the specific DTC additional information from the diagnostic tool 7 and the source information corresponding to the specific DTC, in the specific DTC table 23. .. In addition, in the specific DTC table 23, the storage presence/absence information corresponding to the added specific DTC is set to “x”, that is, “no storage”.

その後、マスタECU10は、S33にて、診断ツール7に、特定DTCテーブル23の更新完了を示す応答メッセージを送信する。
[4−2.作用例]
例えば図9において、〈21〉に示すように、診断ツール7からマスタECU10へ、「スレーブECU11(即ち、ECU_A)が発生元のDTC2と、スレーブECU12(即ち、ECU_B)が発生元のDTC3を、追加する」という内容を表す特定DTC追加情報が送信されたとする。
After that, the master ECU 10 transmits a response message indicating the completion of updating the specific DTC table 23 to the diagnostic tool 7 in S33.
[4-2. Example of operation]
For example, as shown in <21> in FIG. 9, from the diagnostic tool 7 to the master ECU 10, “slave ECU 11 (that is, ECU_A) is the source DTC2 and slave ECU 12 (that is, ECU_B) is the source DTC 3 It is assumed that the specific DTC additional information indicating the content of “add” is transmitted.

この場合、マスタECU10は、〈22〉に示すように、診断ツール7からの特定DTC追加情報に従って、特定DTCテーブル23に情報を追加する。この例では、図9において、点線で示される更新前の特定DTCテーブル23が、実線で示される特定DTCテーブル23のように更新される。 In this case, the master ECU 10 adds information to the specific DTC table 23 according to the specific DTC additional information from the diagnostic tool 7, as shown in <22>. In this example, the pre-update specific DTC table 23 shown by the dotted line in FIG. 9 is updated like the specific DTC table 23 shown by the solid line.

そして、マスタECU10は、特定DTCテーブル23の更新を完了すると、〈23〉に示すように、診断ツール7に対して更新完了を示す応答メッセージを送信する。
よって、OBD車検における特定DTCが追加された場合に、特定DTCテーブル23を更新することができる。
Then, when the update of the specific DTC table 23 is completed, the master ECU 10 transmits a response message indicating the update completion to the diagnostic tool 7, as shown in <23>.
Therefore, when the specific DTC in the OBD vehicle inspection is added, the specific DTC table 23 can be updated.

[5.特定DTCテーブルから特定DTCを削除する機能]
特定DTCが減らされる場合、即ち、車両で検出されるDTCのうち、特定DTCとして定められるものが減らされる場合もあり得る。そして、この場合には、減らされた特定DTCを、マスタECU10の特定DTCテーブル23から削除する必要がある。そこで、特定DTCテーブルから特定DTCを削除する機能について説明する。
[5. Function to delete a specific DTC from the specific DTC table]
There may be a case where the specific DTC is reduced, that is, among the DTCs detected by the vehicle, the one defined as the specific DTC is reduced. Then, in this case, the reduced specific DTC needs to be deleted from the specific DTC table 23 of the master ECU 10. Therefore, the function of deleting the specific DTC from the specific DTC table will be described.

[5−1.診断ツールとマスタECUが行う動作]
図10のラダーチャートに示すように、診断ツール7が、S41にて、特定DTC削除情報を送信すると、マスタECU10は、その特定DTC削除情報を受信する。特定DTC削除情報には、特定DTCテーブル23から削除すべき削除対象の特定DTCが少なくとも含まれる。また、特定DTC削除情報には、例えば、削除対象の特定DTCの発生元であるスレーブECUを示す発生元情報も含まれて良い。尚、この特定DTC削除情報は、外部からの削除要求に相当する。
[5-1. Operations performed by diagnostic tool and master ECU]
As shown in the ladder chart of FIG. 10, when the diagnostic tool 7 transmits the specific DTC deletion information in S41, the master ECU 10 receives the specific DTC deletion information. The specific DTC deletion information includes at least the specific DTC to be deleted from the specific DTC table 23. Further, the specific DTC deletion information may include, for example, generation source information indicating the slave ECU that is the generation source of the specific DTC to be deleted. The specific DTC deletion information corresponds to a deletion request from the outside.

そして、マスタECU10は、S42にて、特定DTCテーブル23から、診断ツール7からの特定DTC削除情報に含まれている特定DTCを削除する。 Then, the master ECU 10 deletes the specific DTC included in the specific DTC deletion information from the diagnostic tool 7 from the specific DTC table 23 in S42.

その後、マスタECU10は、S43にて、診断ツール7に、特定DTCテーブル23の更新完了を示す応答メッセージを送信する。
[5−2.作用例]
例えば図11において、〈31〉に示すように、診断ツール7からマスタECU10へ、「DTC2とDTC3が、削除対象の特定DTCである」という内容を表す特定DTC削除情報が送信されたとする。
After that, the master ECU 10 transmits a response message indicating the completion of updating the specific DTC table 23 to the diagnostic tool 7 in S43.
[5-2. Example of operation]
For example, in FIG. 11, it is assumed that the diagnostic tool 7 transmits specific DTC deletion information indicating that “DTC2 and DTC3 are specific DTCs to be deleted” to the master ECU 10, as shown in <31>.

この場合、マスタECU10は、〈32〉に示すように、診断ツール7からの特定DTC削除情報に従って、特定DTCテーブル23から情報を削除する。この例では、図11おいて、点線で示される更新前の特定DTCテーブル23が、実線で示される特定DTCテーブル23のように更新される。 In this case, the master ECU 10 deletes the information from the specific DTC table 23 according to the specific DTC deletion information from the diagnostic tool 7, as shown in <32>. In this example, in FIG. 11, the pre-update specific DTC table 23 shown by the dotted line is updated like the specific DTC table 23 shown by the solid line.

そして、マスタECU10は、特定DTCテーブル23の更新を完了すると、〈33〉に示すように、診断ツール7に対して更新完了を示す応答メッセージを送信する。
よって、OBD車検において特定DTCが減らされた場合に、特定DTCテーブル23を更新することができる。
Then, when the update of the specific DTC table 23 is completed, the master ECU 10 transmits a response message indicating the update completion to the diagnostic tool 7, as shown in <33>.
Therefore, when the specific DTC is reduced in the OBD vehicle inspection, the specific DTC table 23 can be updated.

[6.特定DTCテーブルに特定DTCが追加記録された場合の処理]
特定DTCテーブル23に新たな特定DTCが追加記録された場合に、その新たな特定DTCがスレーブECU11〜14の何れかに既に記憶されていて、マスタECU10に記憶されないと、DTC記憶の整合が崩れてしまう。ここで言うDTC記憶の整合とは、「検出されたDTCのうち、特定DTCはマスタECU10に記憶され、非特定DTCは発生元のスレーブECU11〜14に記憶される」ということである。
[6. Processing when a specific DTC is additionally recorded in the specific DTC table]
When a new specific DTC is additionally recorded in the specific DTC table 23 and the new specific DTC is already stored in any of the slave ECUs 11 to 14 and is not stored in the master ECU 10, the consistency of the DTC storage is destroyed. Will end up. The matching of the DTC storage here means that "of the detected DTCs, the specific DTC is stored in the master ECU 10, and the non-specific DTC is stored in the slave ECUs 11 to 14 of the generation source".

そこで次に、特定DTCテーブル23に新たな特定DTCが追加記録された場合に、DTC記憶の整合を確保するために、マスタECU10とスレーブECU11〜14とが行う処理について、説明する。 Therefore, next, a process performed by the master ECU 10 and the slave ECUs 11 to 14 to ensure the consistency of the DTC storage when a new specific DTC is additionally recorded in the specific DTC table 23 will be described.

[6−1.マスタECUが特定DTCの追加記録後に行う処理]
マスタECU10は、図8の動作によって特定DTCテーブル23に特定DTCを追加記録した後、図12の追加後整合用処理を行う。尚、図12の追加後整合用処理は、スレーブECU11〜14のうち、特定DTCテーブル23に追加された特定DTCの発生元のスレーブECU(以下、対象スレーブECU)毎について実施される。
[6-1. Processing performed by master ECU after additional recording of specific DTC]
The master ECU 10 additionally records the specific DTC in the specific DTC table 23 by the operation of FIG. 8, and then performs the post-addition matching process of FIG. The post-addition matching process of FIG. 12 is executed for each slave ECU (hereinafter, target slave ECU) that is the source of the specific DTC added to the specific DTC table 23 among the slave ECUs 11 to 14.

図12に示すように、マスタECU10は、S410にて、対象スレーブECUにDTC出力要求を送信する。マスタECU10から対象スレーブECUへのDTC出力要求は、対象スレーブECUに対して、記憶領域21に記憶されているDTCを要求するためのメッセージである。 As shown in FIG. 12, the master ECU 10 transmits a DTC output request to the target slave ECU in S410. The DTC output request from the master ECU 10 to the target slave ECU is a message for requesting the DTC stored in the storage area 21 to the target slave ECU.

一方、処理の図示を省略するが、対象スレーブECUは、マスタECU10が上記S410で送信したDTC出力要求を受信すると、記憶領域21に記憶されている全てのDTCを含む応答メッセージを、マスタECU10に送信する。 On the other hand, although illustration of the process is omitted, when the master ECU 10 receives the DTC output request transmitted in S410, the target slave ECU sends to the master ECU 10 a response message including all DTCs stored in the storage area 21. Send.

このため、マスタECU10は、対象スレーブECUにDTC出力要求を送信した後、図12のS420にて、対象スレーブECUからの応答メッセージを受信したか否かを判定し、対象スレーブECUからの応答メッセージを受信するまで待つ。そして、マスタECU10は、対象スレーブECUからの応答メッセージを受信すると、S430に進む。 Therefore, after transmitting the DTC output request to the target slave ECU, the master ECU 10 determines in S420 of FIG. 12 whether or not the response message from the target slave ECU is received, and the response message from the target slave ECU is received. Wait until you receive. Then, when the master ECU 10 receives the response message from the target slave ECU, the master ECU 10 proceeds to S430.

マスタECU10は、S430では、対象スレーブECUからの応答メッセージに含まれていたDTC(以下、応答DTC)の数を、変数であるNに代入する。そして、次のS440にて、Nが0であるか否かを判定し、Nが0でなければ、S450に進む。 In S430, master ECU 10 substitutes the number of DTCs (hereinafter referred to as response DTCs) included in the response message from the target slave ECU into N, which is a variable. Then, in next S440, it is determined whether or not N is 0. If N is not 0, the process proceeds to S450.

マスタECU10は、S450では、応答DTCのうち、N番目のDTCと、特定DTCテーブル23に記録されている特定DTCとを照合することにより、N番目のDTCが特定DTCであるか否かを判定する。尚、N番目の決め方は、どのような規則の決め方でも良い。 In S450, master ECU 10 determines whether or not the N-th DTC is the specific DTC by collating the N-th DTC among the response DTCs with the specific DTC recorded in specific DTC table 23. To do. The Nth determination method may be any rule determination method.

マスタECU10は、上記S450にて、N番目のDTCが特定DTCであると判定した場合には、S460にて、N番目のDTCを記憶領域25に記憶する。更に、S460では、特定DTCテーブル23において、N番目のDTCと同じ特定DTCに対応する記憶有無情報を「○」、即ち「記憶あり」に書き換える。尚、この場合、N番目のDTCは、特定DTCテーブル23に追加された特定DTCであり、追加故障情報に相当する。 When the master ECU 10 determines in S450 that the Nth DTC is the specific DTC, the master ECU 10 stores the Nth DTC in the storage area 25 in S460. Further, in S460, the storage presence/absence information corresponding to the same specific DTC as the Nth DTC in the specific DTC table 23 is rewritten to “◯”, that is, “with storage”. In this case, the Nth DTC is the specific DTC added to the specific DTC table 23 and corresponds to the additional failure information.

そして、マスタECU10は、次のS470にて、後述のS500で対象スレーブECUに送信する予定の指示メッセージに、N番目のDTCと、このDTCの破棄を意味する指示情報とを、対応付けて追加し、その後、S490に進む。尚、ここで言う破棄も、消去を意味する。 Then, in the next S470, the master ECU 10 adds the N-th DTC and the instruction information indicating the discard of this DTC in association with the instruction message to be transmitted to the target slave ECU in S500, which will be described later. Then, the process proceeds to S490. Note that the discarding referred to here also means erasing.

また、マスタECU10は、上記S450にて、N番目のDTCが特定DTCでない判定した場合には、S480に進む。そして、S480では、後述のS500で対象スレーブECUに送信する予定の指示メッセージに、N番目のDTCと、このDTCの保持を意味する指示情報とを、対応付けて追加し、その後、S490に進む。 If the master ECU 10 determines in S450 that the N-th DTC is not the specific DTC, the process proceeds to S480. Then, in S480, the N-th DTC and the instruction information indicating the retention of this DTC are added in association with the instruction message to be transmitted to the target slave ECU in S500, which will be described later, and then the process proceeds to S490. ..

マスタECU10は、S490では、Nをデクリメント(即ち、−1)し、その後、S440に戻る。
また、マスタECU10は、上記S440にて、Nが0であると判定した場合には、S500に進み、S470,S480でDTC及び指示情報が追加された指示メッセージを対象スレーブECUに送信する。そして、その後、当該追加後整合用処理を終了する。尚、応答DTCの数が0であった場合、マスタECU10は、S500では、指示メッセージを送信しなくて良い。
The master ECU 10 decrements (i.e., -1) N in S490, and then returns to S440.
If the master ECU 10 determines in step S440 that N is 0, the process proceeds to step S500, and the master ECU 10 transmits the instruction message to which the DTC and the instruction information have been added to the target slave ECU in steps S470 and S480. Then, after that, the post-addition matching process is ended. If the number of response DTCs is 0, the master ECU 10 does not have to transmit the instruction message in S500.

[6−2.スレーブECUが行う指示対応処理]
スレーブECU11〜14は、マスタECU10が上記S500で送信した当該スレーブECU宛ての指示メッセージを受信すると、図13に示す指示対応処理を行う。
[6-2. Instruction response processing performed by slave ECU]
When the master ECU 10 receives the instruction message addressed to the slave ECU sent by the master ECU 10 in S500, the slave ECUs 11 to 14 perform the instruction handling process shown in FIG.

図13に示すように、スレーブECU11〜14は、S510にて、マスタECU10からの指示メッセージに含まれていたDTCの数を、変数であるNに代入する。
スレーブECU11〜14は、次のS520にて、Nが0であるか否かを判定し、Nが0でなければ、S530に進む。
As shown in FIG. 13, in S510, slave ECUs 11 to 14 substitute the number of DTCs included in the instruction message from master ECU 10 into N, which is a variable.
In the next S520, slave ECUs 11 to 14 determine whether N is 0, and if N is not 0, the process proceeds to S530.

スレーブECU11〜14は、S530では、マスタECU10からの指示メッセージに含まれているDTC及び指示情報のうち、N番目のDTCに対する指示情報を判別することにより、N番目のDTCを記憶するか否かを判定する。具体的には、N番目のDTCに対応する指示情報が、DTCの保持を意味する指示情報であれば、N番目のDTCを記憶すると判定される。また、N番目のDTCに対応する指示情報が、DTCの破棄を意味する指示情報であれば、N番目のDTCを記憶しない(即ち、消去する)と判定される。 In S530, the slave ECUs 11 to 14 determine whether to store the Nth DTC by determining the instruction information for the Nth DTC among the DTC and the instruction information included in the instruction message from the master ECU 10. To judge. Specifically, if the instruction information corresponding to the Nth DTC is the instruction information that means holding the DTC, it is determined to store the Nth DTC. If the instruction information corresponding to the Nth DTC is the instruction information that means discarding the DTC, it is determined that the Nth DTC is not stored (that is, erased).

スレーブECU11〜14は、上記S530にて、N番目のDTCを記憶すると判定した場合には、S550に進み、指示メッセージに含まれていたN番目のDTCを保持する。つまり、このN番目のDTCは、当該スレーブECUの記憶領域21に記憶されているDTCであり、このDTCを引き続き記憶領域21に記憶させておく。そして、その後、S560に進む。 When the slave ECUs 11 to 14 determine in S530 to store the Nth DTC, the process proceeds to S550 and holds the Nth DTC included in the instruction message. That is, the N-th DTC is the DTC stored in the storage area 21 of the slave ECU, and this DTC is continuously stored in the storage area 21. Then, after that, the process proceeds to S560.

また、スレーブECU11〜14は、上記S530にて、N番目のDTCを記憶しないと判定した場合には、S540に進み、指示メッセージに含まれていたN番目のDTCを記憶領域21から消去する。そして、その後、S560に進む。 If the slave ECUs 11 to 14 determine in S530 that the Nth DTC is not stored, the process proceeds to S540, and the Nth DTC included in the instruction message is deleted from the storage area 21. Then, after that, the process proceeds to S560.

スレーブECU11〜14は、S560では、Nをデクリメントし、その後、S520に戻る。
また、スレーブECU11〜14は、上記S520にて、Nが0であると判定した場合には、そのまま当該指示対応処理を終了する。
Slave ECUs 11 to 14 decrement N in S560, and then return to S520.
Further, when the slave ECUs 11 to 14 determine that N is 0 in S520, the slave ECUs 11 to 14 directly end the instruction handling process.

[6−3.ラダーチャートによる動作説明]
上記追加後整合用処理及び指示対応処理により、マスタECU10とスレーブECU11〜14は、図14に示すように動作する。尚、図14におけるスレーブECUは、例えばスレーブECU11であるとして説明する。
[6-3. Operation explanation by ladder chart]
Through the post-addition matching process and the instruction handling process, the master ECU 10 and the slave ECUs 11 to 14 operate as shown in FIG. The slave ECU in FIG. 14 will be described as the slave ECU 11, for example.

図14に示すように、マスタECU10は、S51にて、スレーブECU11にDTC出力要求を送信する。
すると、スレーブECU11は、S52にて、記憶領域21に記憶されている全てのDTCをマスタECU10に送信する。
As shown in FIG. 14, the master ECU 10 transmits a DTC output request to the slave ECU 11 in S51.
Then, the slave ECU 11 transmits all the DTCs stored in the storage area 21 to the master ECU 10 in S52.

マスタECU10は、S53にて、スレーブECU11から受信したDTCを、特定DTCテーブル23に記録されている特定DTCと照合することにより、受信したDTCが特定DTCであるか非特定DTCであるかを判別する。 In S53, the master ECU 10 compares the DTC received from the slave ECU 11 with the specific DTC recorded in the specific DTC table 23 to determine whether the received DTC is the specific DTC or the non-specific DTC. To do.

そして、マスタECU10は、スレーブECU11から受信したDTCのうち、特定DTCであると判定したDTCについては、S54にて、記憶領域25に記憶し、更に、S55にて、そのDTCの破棄をスレーブECU11に指示する。 Then, the master ECU 10 stores the DTC determined to be the specific DTC among the DTCs received from the slave ECU 11 in the storage area 25 in S54, and further, in S55, discards the DTC. Instruct.

また、マスタECU10は、スレーブECU11から受信したDTCのうち、特定DTCでない(即ち、非特定DTCである)と判定したDTCについては、記憶領域25に記憶せず、S55にて、そのDTCの保持をスレーブECU11に指示する。 Further, among the DTCs received from the slave ECU 11, the master ECU 10 does not store the DTCs that are determined to be not the specific DTCs (that is, the non-specific DTCs) in the storage area 25, and retains the DTCs in S55. To the slave ECU 11.

そして、スレーブECU11は、S56にて、マスタECU10からの指示に従いDTCの破棄(即ち、消去)又は保持を行う。
[6−4.作用例]
例えば図15に示すように、図9の例と同様に、点線で示される更新前の特定DTCテーブル23が、実線で示される特定DTCテーブル23のように更新されたとする。つまり、発生元がスレーブECU11(即ち、ECU_A)のDTC2と、発生元がスレーブECU12(即ち、ECU_B)のDTC3とが、新たな特定DTCとして、特定DTCテーブル23に追加記録されたとする。
Then, in S56, the slave ECU 11 discards (that is, erases) or holds the DTC according to an instruction from the master ECU 10.
[6-4. Example of operation]
For example, as shown in FIG. 15, as in the example of FIG. 9, it is assumed that the pre-update specific DTC table 23 indicated by the dotted line is updated to the specific DTC table 23 indicated by the solid line. That is, it is assumed that DTC2 of the generation source slave ECU 11 (that is, ECU_A) and DTC3 of the generation source slave ECU 12 (that is, ECU_B) are additionally recorded in the specific DTC table 23 as new specific DTCs.

この場合、対象スレーブECUは、スレーブECU11とスレーブECU12となる。そして、スレーブECU11ついては、下記〈41〉〜〈46〉の動作が行われ、スレーブECU12ついては、下記〈51〉〜〈55〉の動作が行われる。 In this case, the target slave ECUs are the slave ECU 11 and the slave ECU 12. The slave ECU 11 performs the following operations <41> to <46>, and the slave ECU 12 performs the following operations <51> to <55>.

〈41〉マスタECU10は、スレーブECU11にDTC出力要求を送信する。
〈42〉スレーブECU11は、記憶領域21に記憶されている全てのDTCを、マスタECU10に送信する。この例では、DTC2がマスタECU10に送信される。
<41> The master ECU 10 transmits a DTC output request to the slave ECU 11.
<42> The slave ECU 11 transmits all the DTCs stored in the storage area 21 to the master ECU 10. In this example, DTC2 is transmitted to the master ECU 10.

〈43〉マスタECU10は、スレーブECU11から送られてきたDTC(即ち、DTC2)が特定DTCであるか否かを、特定DTCテーブルを用いて判定する。この例では、特定DTCテーブル23にDTC2が追加記録されているため、DTC2は特定DTCであると判定される。 <43> The master ECU 10 determines whether or not the DTC (that is, DTC2) sent from the slave ECU 11 is the specific DTC using the specific DTC table. In this example, since DTC2 is additionally recorded in the specific DTC table 23, it is determined that the DTC2 is the specific DTC.

〈44〉このため、マスタECU10は、DTC2を記憶領域25に記憶する。更に、特定DTCテーブル23において、DTC2に対応する記憶有無情報を「○」に書き換える。 <44> For this reason, the master ECU 10 stores the DTC 2 in the storage area 25. Further, in the specific DTC table 23, the storage presence/absence information corresponding to the DTC 2 is rewritten to “◯”.

〈45〉そして、マスタECU10は、スレーブECU11に、DTC2の破棄を指示する。
〈46〉スレーブECU11は、マスタECU10からの指示に従って、記憶領域21からDTC2を削除する。
<45> Then, the master ECU 10 instructs the slave ECU 11 to discard the DTC 2.
<46> The slave ECU 11 deletes the DTC 2 from the storage area 21 according to the instruction from the master ECU 10.

このように、特定DTCテーブル23に追加記録されたDTC2が、発生元のスレーブECU11に既に記憶されている場合には、そのDTC2は、マスタECU10に記憶され、スレーブECU11からは消去される。 In this way, when the DTC2 additionally recorded in the specific DTC table 23 is already stored in the slave ECU 11 as the generation source, the DTC2 is stored in the master ECU 10 and deleted from the slave ECU 11.

〈51〉マスタECU10は、スレーブECU12にもDTC出力要求を送信する。
〈52〉スレーブECU12は、記憶領域21に記憶されている全てのDTCを、マスタECU10に送信する。この例では、DTC7がマスタECU10に送信される。
<51> The master ECU 10 also transmits a DTC output request to the slave ECU 12.
<52> The slave ECU 12 transmits all the DTCs stored in the storage area 21 to the master ECU 10. In this example, the DTC 7 is transmitted to the master ECU 10.

〈53〉マスタECU10は、スレーブECU12から送られてきたDTC(即ち、DTC7)が特定DTCであるか否かを、特定DTCテーブルを用いて判定する。この例では、特定DTCテーブル23にDTC7が記録されていないため、DTC7は非特定DTCであると判定される。 <53> The master ECU 10 determines whether or not the DTC (that is, DTC7) sent from the slave ECU 12 is the specific DTC using the specific DTC table. In this example, since the DTC 7 is not recorded in the specific DTC table 23, it is determined that the DTC 7 is a non-specific DTC.

〈54〉よって、マスタECU10は、DTC7を記憶領域25に記憶せず、スレーブECU12に、DTC7の保持を指示する。
〈55〉スレーブECU11は、マスタECU10からの指示に従って、記憶領域21にDTC7を記憶したままにする。
<54> Therefore, the master ECU 10 does not store the DTC 7 in the storage area 25, but instructs the slave ECU 12 to hold the DTC 7.
<55> The slave ECU 11 keeps the DTC 7 stored in the storage area 21 according to the instruction from the master ECU 10.

[7.特定DTCテーブルから特定DTCが削除された場合の処理]
特定DTCテーブル23から何れかの特定DTCが削除された場合には、特定DTCでなくなったDTC(即ち、非特定DTC)がマスタECU10に記憶された状態になる可能性がある。つまり、DTC記憶の整合が崩れてしまう可能性がある。
[7. Processing when a specific DTC is deleted from the specific DTC table]
When any of the specific DTCs is deleted from the specific DTC table 23, there is a possibility that the DTC that is no longer the specific DTC (that is, the non-specific DTC) is stored in the master ECU 10. That is, there is a possibility that the matching of the DTC memory may be lost.

そこで次に、特定DTCテーブル23から特定DTCが削除された場合に、DTC記憶の整合を確保するために、マスタECU10とスレーブECU11〜14とが行う処理について、説明する。尚、マスタECU10は、図10の動作による特定DTCテーブル23の更新、即ち、特定DTCを削除する更新を行った場合、少なくとも、後述する図16の削除後整合用処理を完了するまでは、更新前の特定DTCテーブル23を保存しておくようになっている。 Therefore, next, a process performed by the master ECU 10 and the slave ECUs 11 to 14 to ensure the consistency of the DTC storage when the specific DTC is deleted from the specific DTC table 23 will be described. When the master ECU 10 updates the specific DTC table 23 by the operation of FIG. 10, that is, updates the specific DTC to be deleted, the master ECU 10 updates at least until the post-deletion matching process of FIG. 16 described later is completed. The previous specific DTC table 23 is stored.

[7−1.マスタECUが特定DTCの削除後に行う処理]
マスタECU10は、図10の動作によって特定DTCテーブル23から何れかの特定DTCを削除した後、図16の削除後整合用処理を行う。
[7-1. Processing Performed by Master ECU After Deleting Specific DTC]
The master ECU 10 deletes any one of the specific DTCs from the specific DTC table 23 by the operation of FIG. 10, and then performs the post-deletion matching process of FIG.

図16に示すように、マスタECU10は、S610にて、記憶領域25に記憶されているDTCの数を、変数であるNに代入する。そして、次のS620にて、Nが0であるか否かを判定し、Nが0でなければ、S630に進む。 As shown in FIG. 16, in S610, master ECU 10 substitutes the number of DTCs stored in storage area 25 for a variable N. Then, in the next S620, it is determined whether or not N is 0, and if N is not 0, the process proceeds to S630.

マスタECU10は、S630では、記憶領域25に記憶されているDTCのうち、N番目のDTCと、更新後の特定DTCテーブル23に記録されている特定DTCとを照合することにより、N番目のDTCが特定DTCであるか否かを判定する。 In S630, the master ECU 10 collates the Nth DTC among the DTCs stored in the storage area 25 with the specific DTC recorded in the updated specific DTC table 23, and thereby the Nth DTC. Is a specific DTC.

マスタECU10は、上記S630にて、N番目のDTCが特定DTCであると判定した場合には、そのままS660に進む。
また、マスタECU10は、上記S630にて、N番目のDTCが特定DTCでないと判定した場合には、S640に進む。この場合、N番目のDTCは、特定DTCテーブル23から削除された旧来の特定DTC、即ち、特定DTCから非特定DTCに変更されたDTCであり、削除故障情報に相当する。
When the master ECU 10 determines in S630 that the N-th DTC is the specific DTC, the master ECU 10 proceeds directly to S660.
If the master ECU 10 determines in S630 that the N-th DTC is not the specific DTC, the process proceeds to S640. In this case, the Nth DTC is the old specific DTC deleted from the specific DTC table 23, that is, the DTC changed from the specific DTC to the non-specific DTC, and corresponds to the deletion failure information.

マスタECU10は、S640では、N番目のDTCを記憶領域25から削除する。
マスタECU10は、次のS650にて、N番目のDTCの発生元のスレーブECUを、更新前の特定DTCテーブル23から特定する。そして、特定した発生元のスレーブECU宛ての指示メッセージに、N番目のDTCと、このDTCの記憶を意味する指示情報(以下、記憶指示情報)とを、対応付けて追加し、その後、S660に進む。
The master ECU 10 deletes the N-th DTC from the storage area 25 in S640.
In next S650, master ECU 10 identifies the slave ECU that is the source of the Nth DTC from specific DTC table 23 before the update. Then, the N-th DTC and instruction information meaning storage of this DTC (hereinafter, stored instruction information) are added to the specified instruction message addressed to the slave ECU in association with each other, and then, in S660. move on.

マスタECU10は、S660では、Nをデクリメントし、その後、S620に戻る。
また、マスタECU10は、上記S620にて、Nが0であると判定した場合には、S670に進む。そして、S670では、上記S650で特定した発生元のスレーブECU宛ての指示メッセージであって、記憶対象のDTCと記憶指示情報とが含まれた指示メッセージを送信する。そして、その後、当該追加後整合用処理を終了する。
Master ECU 10 decrements N in S660, and then returns to S620.
If the master ECU 10 determines in step S620 that N is 0, the process proceeds to step S670. Then, in S670, the instruction message addressed to the slave ECU that is the generation source specified in S650 is transmitted, including the DTC to be stored and the storage instruction information. Then, after that, the post-addition matching process is ended.

尚、特定DTCテーブル23から削除されたDTCの発生元のスレーブECUが複数あるのであれば、S670では、その複数の各スレーブECUに対する指示メッセージが送信される。また、記憶領域25に記憶されているDTCの数が0であった場合、あるいは、S650の処理が一回も行われなかった場合、マスタECU10は、S670では、指示メッセージを送信しなくて良い。 If there are a plurality of slave ECUs that are the source of the DTC deleted from the specific DTC table 23, an instruction message to each of the plurality of slave ECUs is transmitted in S670. Further, if the number of DTCs stored in storage area 25 is 0, or if the process of S650 has not been performed at all, master ECU 10 does not have to transmit the instruction message in S670. ..

一方、処理の図示を省略するが、スレーブECU11〜14は、マスタECU10が上記S670で送信した当該スレーブECU宛ての指示メッセージを受信すると、その指示メッセージ内の記憶指示情報に従って、その指示メッセージ内のDTCを記憶領域21に記憶する。 On the other hand, although illustration of the process is omitted, when the slave ECU 11 to 14 receives the instruction message addressed to the slave ECU transmitted by the master ECU 10 in S670, the slave ECUs 11 to 14 may store the instruction message in the instruction message according to the stored instruction information. The DTC is stored in the storage area 21.

[7−2.ラダーチャートによる動作説明]
マスタECU10が上記削除後整合用処理を行うことにより、マスタECU10とスレーブECU11〜14は、図17に示すように動作する。
[7-2. Operation explanation by ladder chart]
By the master ECU 10 performing the post-deletion matching process, the master ECU 10 and the slave ECUs 11 to 14 operate as shown in FIG.

図17に示すように、マスタECU10は、S61にて、記憶領域25に記憶されているDTCを、更新後の特定DTCテーブル23に記録されている特定DTCと照合することにより、記憶領域25に記憶されているDTCのそれぞれについて、特定DTCであるか否かを判定する。 As shown in FIG. 17, in S61, the master ECU 10 compares the DTC stored in the storage area 25 with the specific DTC recorded in the updated specific DTC table 23, so that the storage area 25 is stored in the storage area 25. For each of the stored DTCs, it is determined whether or not it is a specific DTC.

そして、マスタECU10は、特定DTCでないと判定したDTC(即ち、旧来の特定DTC)を、S62にて、記憶領域25から削除し、S63にて、その削除したDTCの発生元のスレーブECUに対して、そのDTCの記憶を指示する。すると、この指示を受けたスレーブECUは、S64にて、指示されたDTCを記憶領域21に記憶する。 Then, the master ECU 10 deletes the DTC determined not to be the specific DTC (that is, the old specific DTC) from the storage area 25 in S62, and deletes the deleted DTC from the slave ECU in S63. Then, the memory of the DTC is instructed. Then, the slave ECU receiving this instruction stores the instructed DTC in the storage area 21 in S64.

[7−3.作用例]
例えば図18に示すように、図11の例と同様に、点線で示される更新前の特定DTCテーブル23が、実線で示される特定DTCテーブル23のように更新されたとする。つまり、発生元がスレーブECU11(即ち、ECU_A)のDTC2と、発生元がスレーブECU12(即ち、ECU_B)のDTC3とが、特定DTCテーブル23から削除されたとする。
[7-3. Example of operation]
For example, as shown in FIG. 18, it is assumed that the pre-update specific DTC table 23 indicated by the dotted line is updated to the specific DTC table 23 indicated by the solid line, as in the example of FIG. 11. That is, it is assumed that the DTC 2 of the generation source of the slave ECU 11 (that is, ECU_A) and the DTC 3 of the generation source of the slave ECU 12 (that is, ECU_B) are deleted from the specific DTC table 23.

この場合、下記〈61〉〜〈64〉の動作が行われる。
〈61〉マスタECU10は、記憶領域25に記憶されているDTCのそれぞれについて、特定DTCであるか否かを、更新後の特定DTCテーブル23に基づき判定する。この例では、記憶領域25に記憶されているDTC2が、特定DTCでないと判定される。
In this case, the following operations <61> to <64> are performed.
<61> The master ECU 10 determines whether or not each of the DTCs stored in the storage area 25 is a specific DTC based on the updated specific DTC table 23. In this example, it is determined that the DTC2 stored in the storage area 25 is not the specific DTC.

〈62〉このため、マスタECU10は、記憶領域25からDTC2を削除する。
〈63〉そして、マスタECU10は、DTC2の発生元のスレーブECU11に対して、DTC2の記憶を指示する。
<62> Therefore, the master ECU 10 deletes the DTC 2 from the storage area 25.
<63> Then, the master ECU 10 instructs the slave ECU 11 that is the source of the DTC 2 to store the DTC 2.

〈64〉スレーブECU11は、マスタECU10からの指示に従って、記憶領域21にDTC2を記憶する。
このように、特定DTCテーブル23から削除されたDTC2が、マスタECU10に記憶されていた場合には、そのDTC2が、マスタECU10から削除され、発生元のスレーブECU11に記憶される。
<64> The slave ECU 11 stores the DTC 2 in the storage area 21 according to the instruction from the master ECU 10.
In this way, when the DTC2 deleted from the specific DTC table 23 is stored in the master ECU 10, the DTC2 is deleted from the master ECU 10 and stored in the slave ECU 11 that is the generation source.

[8.効果]
以上詳述した実施形態によれば、以下の効果を奏する。尚、上記実施形態では、DTCが故障情報に相当し、特定DTCが特定故障情報に相当している。
(1)スレーブECU11〜14の何れかで検出されたDTCのうち、特定DTCは、マスタECU10に記憶される。このため、スレーブECU11〜14においてDTCを記憶するためのメモリ容量(例えば、記憶領域21の容量)が少なくて済み、特定DTCがどこにも記憶されなくなってしまうことも防止することができる。
[8. effect]
According to the embodiment described in detail above, the following effects are achieved. In the above embodiment, the DTC corresponds to the failure information and the specific DTC corresponds to the specific failure information.
(1) Of the DTCs detected by any of the slave ECUs 11 to 14, the specific DTC is stored in the master ECU 10. Therefore, the slave ECUs 11 to 14 need only have a small memory capacity (for example, the capacity of the storage area 21) for storing the DTC, and it is possible to prevent the specific DTC from being stored anywhere.

(2)そして、各スレーブECU11〜14は、当該ECUが発生元であるDTCを診断ツール7に送信する場合には、当該ECUが発生元である特定DTCをマスタECU10から取得すれば良い。このため、各スレーブECU11〜14は、他の複数のECUから特定DTCを収集する必要がない。よって、車両で検出されたDTCを診断ツール7に渡すのに必要な時間を、短くすることができる。更に、通信バス3の負荷(即ち、トラフィック)が大きくなってしまうことも防止することができる。 (2) Then, when the slave ECUs 11 to 14 transmit the DTC that is the generation source to the diagnostic tool 7, the slave ECUs 11 to 14 may acquire the specific DTC that is the generation source from the master ECU 10. Therefore, each slave ECU 11 to 14 does not need to collect the specific DTC from other plural ECUs. Therefore, the time required to pass the DTC detected by the vehicle to the diagnostic tool 7 can be shortened. Furthermore, it is possible to prevent the load (that is, traffic) of the communication bus 3 from increasing.

(3)また、各スレーブECU11〜14は、当該ECUで検出されたDTCをマスタECU10に送信した後、その送信したDTCを、マスタECU10からの破棄または記憶の指示に応じて、破棄または記憶すれば良い。このことは、「どのDTCが特定DTCであるか」という特定DTCの選定内容によって変わるものではない。そして、特定DTCの選定内容が変わった場合、特定DTCテーブル23に記録される特定DTCを変更することで対応可能となる。 (3) In addition, each slave ECU 11 to 14 transmits the DTC detected by the ECU to the master ECU 10, and then discards or stores the transmitted DTC according to a discarding or storing instruction from the master ECU 10. Good. This does not change depending on the selected content of the specific DTC "which DTC is the specific DTC". Then, when the selection content of the specific DTC is changed, it can be dealt with by changing the specific DTC recorded in the specific DTC table 23.

(4)特定DTCテーブル23には、特定DTCが、その特定DTCの発生元のスレーブECUを特定可能な情報と対応付けて記録されている。このため、特定DTCテーブル23は、どのDTCが特定DTCであるか、という第1種事項だけでなく、特定DTCの発生元がどのスレーブECUであるか、という第2種事項も表すことができる。 (4) In the specific DTC table 23, the specific DTC is recorded in association with the information that can identify the slave ECU that is the source of the specific DTC. For this reason, the specific DTC table 23 can represent not only the first-class item which DTC is the specific DTC but also the second-class item which slave ECU is the source of the specific DTC. ..

(5)スレーブECU11〜14は、診断ツール7から送信された当該ECU宛てのDTC出力要求を受信すると、図6のDTC出力制御処理を行う。そして、マスタECU10は、スレーブECU11〜14が図6のS310で送信するDTC出力要求を受信すると、前述のDTC応答制御処理を行う。このため、スレーブECU11〜14は、診断ツール7からのDTC出力要求に対して、当該ECUが発生元の特定DTCと非特定DTCを、まとめて応答することができる。よって、応答に要する時間が短くなる。 (5) When the slave ECUs 11 to 14 receive the DTC output request addressed to the ECU transmitted from the diagnostic tool 7, the slave ECUs 11 to 14 perform the DTC output control process of FIG. 6. Then, when the master ECU 10 receives the DTC output request transmitted from the slave ECUs 11 to 14 in S310 of FIG. 6, the master ECU 10 performs the above-mentioned DTC response control process. Therefore, the slave ECUs 11 to 14 can collectively respond to the DTC output request from the diagnostic tool 7 with the specific DTC and the non-specific DTC that are the generation sources of the ECU. Therefore, the time required for response is shortened.

(6)マスタECU10は、診断ツール7からの特定DTC追加情報(即ち、追加要求)に従って、特定DTCテーブル23に特定DTCを追加して記録する追加機能を備える。このため、車両で検出されるDTCのうち、特定DTCとして定められるものが増やされた場合にも、対応することができる。 (6) The master ECU 10 has an additional function of adding and recording the specific DTC in the specific DTC table 23 according to the specific DTC additional information (that is, the addition request) from the diagnostic tool 7. Therefore, even if the number of DTCs determined as the specific DTC among the DTCs detected by the vehicle is increased, it is possible to deal with the situation.

(7)マスタECU10は、診断ツール7からの特定DTC削除情報(即ち、削除要求)に従って、特定DTCテーブル23から既に記録されている特定DTCの何れかを削除する削除機能を備える。このため、車両で検出されるDTCのうち、特定DTCとして定められるものが減らされた場合にも、対応することができる。 (7) The master ECU 10 has a deletion function of deleting any of the specific DTCs already recorded from the specific DTC table 23 according to the specific DTC deletion information (that is, the deletion request) from the diagnostic tool 7. Therefore, it is possible to deal with the case where the number of DTCs determined as the specific DTC among the DTCs detected by the vehicle is reduced.

(8)マスタECU10は、特定DTCテーブル23に特定DTCを追加した場合に、その追加された特定DTCが発生元のスレーブECUに記憶されているならば、その追加された特定DTCを、記憶領域25に記憶すると共に、発生元のスレーブECUから消去させる。このため、特定DTCテーブル23に特定DTCが追加された場合に、DTC記憶の整合が崩れてしまうことを自動的に解消することができる。 (8) When a specific DTC is added to the specific DTC table 23 and the added specific DTC is stored in the slave ECU that is the generation source, the master ECU 10 stores the added specific DTC in the storage area. It is stored in 25 and is deleted from the slave ECU of the generation source. Therefore, when the specific DTC is added to the specific DTC table 23, it is possible to automatically eliminate the loss of the consistency of the DTC storage.

(9)マスタECU10は、特定DTCテーブル23から特定DTCの何れかを削除した場合に、その削除されたDTCが記憶領域25に記憶されているならば、そのDTCを記憶領域25から削除すると共に、そのDTCを、発生元のスレーブECUに記憶させる。このため、特定DTCテーブル23から特定DTCの何れかが削除された場合にも、DTC記憶の整合が崩れてしまうことを自動的に解消することができる。 (9) When any of the specific DTCs is deleted from the specific DTC table 23, if the deleted DTC is stored in the storage area 25, the master ECU 10 deletes the DTC from the storage area 25. , And stores the DTC in the slave ECU that is the generation source. Therefore, even if any of the specific DTCs is deleted from the specific DTC table 23, it is possible to automatically eliminate the loss of the consistency of the DTC storage.

[9.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
[9. Other Embodiments]
Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments, and various modifications can be implemented.

例えば、各ECU10〜14の記憶領域21,25には、DTCと対応付けて、そのDTCに関連する他の情報が、付加情報として記憶されても良い。付加情報としては、例えば、DTCが表す故障の検出時刻や、故障が検出されたときの車両の状態情報(即ち、フリーズフレームデータ)であって良い。フリーズフレームデータとしては、例えば、車速やエンジン回転数やブレーキ操作有無などであって良い。 For example, in the storage areas 21 and 25 of the ECUs 10 to 14, other information related to the DTC may be stored as additional information in association with the DTC. The additional information may be, for example, a failure detection time represented by the DTC, or vehicle state information when the failure is detected (that is, freeze frame data). The freeze frame data may be, for example, the vehicle speed, the engine speed, the presence/absence of brake operation, or the like.

また、診断ツール7は、通信バス3に接続されるように構成されても良い。この場合、マスタECU10は、ゲートウェイ機能を備えなくても良い。
また、特定DTCは、OBD車検における合否判定に使用されるDTCに限らず、例えば、車両の特定機能の修理要否を判定するために使用されるDTC等であっても良い。
Moreover, the diagnostic tool 7 may be configured to be connected to the communication bus 3. In this case, the master ECU 10 does not have to have the gateway function.
Further, the specific DTC is not limited to the DTC used for the pass/fail determination in the OBD vehicle inspection, and may be, for example, the DTC used for determining the necessity of repair of the specific function of the vehicle.

また、本開示に記載の制御ユニット(即ち、ECU10〜14)及びその手法は、コンピュータプログラムにより具体化された一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリを構成することによって提供された専用コンピュータにより、実現されても良い。あるいは、本開示に記載の制御ユニット及びその手法は、一つ以上の専用ハードウェア論理回路によってプロセッサを構成することによって提供された専用コンピュータにより、実現されても良い。もしくは、本開示に記載の制御ユニット及びその手法は、一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリと一つ以上のハードウェア論理回路によって構成されたプロセッサとの組み合わせにより構成された一つ以上の専用コンピュータにより、実現されても良い。また、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記録媒体に記憶されても良い。また、制御ユニットに含まれる各部の機能を実現する手法には、必ずしもソフトウェアが含まれている必要はなく、その全部の機能が、一つあるいは複数のハードウェアを用いて実現されても良い。 Further, the control unit (that is, the ECUs 10 to 14) and the method thereof described in the present disclosure configure a processor and a memory programmed to execute one or a plurality of functions embodied by a computer program. It may be realized by a dedicated computer provided by. Alternatively, the control unit and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method thereof described in the present disclosure are based on a combination of a processor and a memory programmed to execute one or a plurality of functions and a processor configured by one or more hardware logic circuits. It may be realized by one or more dedicated computers configured. Further, the computer program may be stored in a computer-readable non-transition tangible recording medium as an instruction executed by a computer. Further, the method for realizing the functions of the respective units included in the control unit does not necessarily need to include software, and all the functions may be realized by using one or a plurality of hardware.

また、上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしても良い。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしても良い。また、上記実施形態の構成の一部を省略しても良い。 Further, a plurality of functions of one constituent element in the above-described embodiment may be realized by a plurality of constituent elements, or one function of one constituent element may be realized by a plurality of constituent elements. Also, a plurality of functions of a plurality of constituent elements may be realized by one constituent element, or one function realized by a plurality of constituent elements may be realized by one constituent element. Further, a part of the configuration of the above embodiment may be omitted.

また、上述した車載システム1の他、当該車載システム1の構成要素となるECU10〜14、当該ECU10〜14としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、故障情報の記憶方法など、種々の形態で本開示を実現することもできる。 In addition to the above-described vehicle-mounted system 1, ECUs 10 to 14 that are the constituent elements of the vehicle-mounted system 1, a program for causing a computer to function as the ECUs 10-14, and a non-transitional actual state such as a semiconductor memory having the program recorded therein. The present disclosure can be implemented in various forms such as a recording medium and a failure information storage method.

1…車載システム、3…通信バス、10…マスタECU、11〜14…スレーブECU、23…特定DTCテーブル、25…記憶領域 1... In-vehicle system, 3... Communication bus, 10... Master ECU, 11-14... Slave ECU, 23... Specific DTC table, 25... Storage area

Claims (7)

車載システムであって、
マスタ制御ユニット(10)と、
前記マスタ制御ユニットと通信バス(3)を介して接続された複数のスレーブ制御ユニット(11〜14)と、を備え、
前記複数のスレーブ制御ユニットのそれぞれは、
当該スレーブ制御ユニットが有する故障診断機能によって検出された故障情報を、前記マスタ制御ユニットに送信する(S110)ように構成され、
前記マスタ制御ユニットは、
前記複数のスレーブ制御ユニットのそれぞれで検出され得る複数種類の故障の故障情報のうち、特定の用途に使用される故障情報である特定故障情報が、少なくとも記録された情報テーブル(23)と、
前記複数のスレーブ制御ユニットから当該マスタ制御ユニットに送信された前記故障情報のうち、前記特定故障情報を保存するための記憶領域(25)と、を備え、
更に、前記マスタ制御ユニットは、
前記複数のスレーブ制御ユニットの何れかから送信された前記故障情報を受信すると、当該受信した故障情報である受信故障情報が前記特定故障情報であるか否かを、前記情報テーブルに基づいて判定し、前記受信故障情報が前記特定故障情報であると判定した場合には、前記受信故障情報を前記記憶領域に記憶すると共に、前記受信故障情報を送信したスレーブ制御ユニットに当該受信故障情報の破棄を指示し、また、前記受信故障情報が前記特定故障情報ではないと判定した場合には、前記受信故障情報を送信したスレーブ制御ユニットに当該受信故障情報の記憶を指示する(S210〜S250)ように構成されている、
車載システム。
In-vehicle system,
A master control unit (10),
A plurality of slave control units (11-14) connected to the master control unit via a communication bus (3),
Each of the plurality of slave control units is
The slave control unit is configured to transmit the failure information detected by the failure diagnosis function to the master control unit (S110),
The master control unit is
Of the failure information of a plurality of types of failures that can be detected by each of the plurality of slave control units, at least an information table (23) in which specific failure information that is failure information used for a specific application is recorded,
A storage area (25) for storing the specific failure information among the failure information transmitted from the plurality of slave control units to the master control unit,
Further, the master control unit is
When the failure information transmitted from any of the plurality of slave control units is received, it is determined whether the received failure information, which is the received failure information, is the specific failure information, based on the information table. When it is determined that the reception failure information is the specific failure information, the reception failure information is stored in the storage area, and the slave control unit that has transmitted the reception failure information discards the reception failure information. If the reception failure information is not the specific failure information, the slave control unit that has transmitted the reception failure information is instructed to store the reception failure information (S210 to S250). It is configured,
In-vehicle system.
請求項1に記載の車載システムであって、
前記情報テーブルは、
前記特定故障情報が、当該特定故障情報の発生元の前記スレーブ制御ユニットを特定可能な情報と対応付けて記録されるように構成されている、
車載システム。
The in-vehicle system according to claim 1,
The information table is
The specific failure information is configured to be recorded in association with information that can identify the slave control unit that is the source of the specific failure information,
In-vehicle system.
請求項2に記載の車載システムであって、
前記複数のスレーブ制御ユニットのそれぞれは、
前記車両の外部の装置である診断ツールからの故障情報要求を受信すると、前記マスタ制御ユニットに、当該スレーブ制御ユニットが発生元である前記特定故障情報を要求するための出力要求を送信し、当該出力要求に応答して前記マスタ制御ユニットから前記特定故障情報が送られてきたなら、前記マスタ制御ユニットからの前記特定故障情報と、当該スレーブ制御ユニットにおいて記憶されている前記故障情報とを、前記故障情報要求に対する応答として前記診断ツールに送信する(S310〜S340)ように構成されており、
前記マスタ制御ユニットは、
前記複数のスレーブ制御ユニットの何れかが送信した前記出力要求を受信すると、前記出力要求を送信したスレーブ制御ユニットが発生元である前記特定故障情報を、前記情報テーブルから特定し、特定した特定故障情報が前記記憶領域に記憶されていれば、当該記憶されている特定故障情報を、前記出力要求を送信したスレーブ制御ユニットに送信する(S24)ように構成されている、
車載システム。
The vehicle-mounted system according to claim 2,
Each of the plurality of slave control units is
Upon receiving a failure information request from a diagnostic tool that is an external device of the vehicle, the master control unit transmits an output request for requesting the specific failure information that is the source of the slave control unit, If the specific failure information is sent from the master control unit in response to the output request, the specific failure information from the master control unit and the failure information stored in the slave control unit are It is configured to transmit to the diagnostic tool as a response to the failure information request (S310 to S340),
The master control unit is
When the output request transmitted by any of the plurality of slave control units is received, the specific failure information that is the source of the slave control unit that transmitted the output request is specified from the information table, and the specified specific failure is specified. If the information is stored in the storage area, the stored specific failure information is transmitted to the slave control unit that has transmitted the output request (S24).
In-vehicle system.
請求項1ないし請求項3の何れか1項に記載の車載システムであって、
前記マスタ制御ユニットは、
当該マスタ制御ユニットの外部からの追加要求に従って、前記情報テーブルに前記特定故障情報を追加して記録する追加機能(S32)を備える、
車載システム。
The vehicle-mounted system according to any one of claims 1 to 3,
The master control unit is
An additional function (S32) of adding and recording the specific failure information in the information table according to an addition request from the outside of the master control unit,
In-vehicle system.
請求項4に記載の車載システムであって、
前記マスタ制御ユニットは、
前記追加機能によって前記情報テーブルに前記特定故障情報を追加した場合に、前記情報テーブルに追加した特定故障情報である追加故障情報が、前記複数のスレーブ制御ユニットのうち、当該追加故障情報の発生元のスレーブ制御ユニットに記憶されているならば、前記追加故障情報を前記記憶領域に記憶すると共に、前記発生元のスレーブ制御ユニットから前記追加故障情報を消去させる(S410〜S500)ように構成されている、
車載システム。
The vehicle-mounted system according to claim 4,
The master control unit is
When the specific failure information is added to the information table by the additional function, the additional failure information, which is the specific failure information added to the information table, is the source of the additional failure information among the plurality of slave control units. Is stored in the slave control unit, the additional failure information is stored in the storage area, and the additional failure information is deleted from the slave control unit of the generation source (S410 to S500). Is
In-vehicle system.
請求項1ないし請求項5の何れか1項に記載の車載システムであって、
前記マスタ制御ユニットは、
当該マスタ制御ユニットの外部からの削除要求に従って、前記情報テーブルから当該情報テーブルに記録されている前記特定故障情報の何れかを削除する削除機能(S42)を備える、
車載システム。
The in-vehicle system according to any one of claims 1 to 5,
The master control unit is
A delete function (S42) for deleting any of the specific failure information recorded in the information table from the information table according to a delete request from the outside of the master control unit;
In-vehicle system.
請求項6に記載の車載システムであって、
前記マスタ制御ユニットは、
前記削除機能によって前記情報テーブルから前記特定故障情報の何れかを削除した場合に、前記情報テーブルから削除した特定故障情報である削除故障情報が前記記憶領域に記憶されているならば、当該削除故障情報を前記記憶領域から削除すると共に、当該削除故障情報を、前記複数のスレーブ制御ユニットのうち、当該削除故障情報の発生元のスレーブ制御ユニットに記憶させる(S610〜S670)ように構成されている、
車載システム。
The vehicle-mounted system according to claim 6,
The master control unit is
When any of the specific failure information is deleted from the information table by the deletion function, if the deletion failure information that is the specific failure information deleted from the information table is stored in the storage area, the deletion failure Information is deleted from the storage area, and the deletion failure information is stored in the slave control unit that is the source of the deletion failure information among the plurality of slave control units (S610 to S670). ,
In-vehicle system.
JP2019009601A 2019-01-23 2019-01-23 In-vehicle system Active JP7151505B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019009601A JP7151505B2 (en) 2019-01-23 2019-01-23 In-vehicle system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019009601A JP7151505B2 (en) 2019-01-23 2019-01-23 In-vehicle system

Publications (2)

Publication Number Publication Date
JP2020117058A true JP2020117058A (en) 2020-08-06
JP7151505B2 JP7151505B2 (en) 2022-10-12

Family

ID=71891720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019009601A Active JP7151505B2 (en) 2019-01-23 2019-01-23 In-vehicle system

Country Status (1)

Country Link
JP (1) JP7151505B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011005901A (en) * 2009-06-24 2011-01-13 Denso Corp Communication device and communication system
JP2013203236A (en) * 2012-03-28 2013-10-07 Denso Corp Data output device for vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011005901A (en) * 2009-06-24 2011-01-13 Denso Corp Communication device and communication system
JP2013203236A (en) * 2012-03-28 2013-10-07 Denso Corp Data output device for vehicle

Also Published As

Publication number Publication date
JP7151505B2 (en) 2022-10-12

Similar Documents

Publication Publication Date Title
JP6696468B2 (en) In-vehicle update device and in-vehicle update system
JP6428652B2 (en) In-vehicle update device, update system, and update processing program
US8582586B2 (en) Vehicle onboard gateway apparatus
CN110347412B (en) Electronic control unit firmware upgrade management method, device, equipment and storage medium
JP4661438B2 (en) Vehicle communication system
CN110709932B (en) Recording control device
JP5598491B2 (en) Vehicle data output device
US11126422B2 (en) Program update system, control system, mobile body, program update method, recording medium
WO2018043107A1 (en) On-board update device and on-board update system
WO2019163297A1 (en) Rewriting device, rewriting system, rewriting method and control program
CN109147091B (en) Method, device and equipment for processing data of unmanned vehicle and storage medium
CN113168314A (en) Update management device, update management system, and update management method
CN113259273A (en) Switch control method, switch, computer device, and storage medium
JP4600510B2 (en) Control device and program
JP7151505B2 (en) In-vehicle system
JP2003172199A (en) Program rewriting system for vehicular electronic control unit
JP7087334B2 (en) Electronic control device
JP6631676B2 (en) In-vehicle update device, update system and update processing program
JP6717184B2 (en) In-vehicle control device
JP6890737B1 (en) Controls, methods, and programs
JP2021077169A (en) On-vehicle system, repeating device, on-vehicle device and program replacement method
KR20060023862A (en) Can network controll system and test and debugging method thereof
JP2020155026A (en) On-vehicle update device, update processing system, update processing method, and processing program
WO2023119359A1 (en) Train information management device, test terminal device, train information management device test system, and test method
JP3368378B2 (en) Storage content management method and data processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210625

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220628

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220812

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: 20220830

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220912

R151 Written notification of patent or utility model registration

Ref document number: 7151505

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151