JP3089905B2 - Communication system for vehicle diagnosis - Google Patents

Communication system for vehicle diagnosis

Info

Publication number
JP3089905B2
JP3089905B2 JP05190564A JP19056493A JP3089905B2 JP 3089905 B2 JP3089905 B2 JP 3089905B2 JP 05190564 A JP05190564 A JP 05190564A JP 19056493 A JP19056493 A JP 19056493A JP 3089905 B2 JP3089905 B2 JP 3089905B2
Authority
JP
Japan
Prior art keywords
diagnostic
diagnosis
electronic control
control device
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP05190564A
Other languages
Japanese (ja)
Other versions
JPH0746676A (en
Inventor
新見  幸秀
稔 穂塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP05190564A priority Critical patent/JP3089905B2/en
Publication of JPH0746676A publication Critical patent/JPH0746676A/en
Application granted granted Critical
Publication of JP3089905B2 publication Critical patent/JP3089905B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、例えばエンジンの電
子制御装置やトランスミッションの電子制御装置等、車
両に搭載される各種電子制御装置とこれに外部接続され
る診断ツール(診断装置)との間で、診断のためのデー
タ通信を行う車両診断用通信システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control device mounted on a vehicle, such as an electronic control device for an engine or an electronic control device for a transmission, and a diagnostic tool (diagnostic device) externally connected to the electronic control device. The present invention relates to a vehicle diagnostic communication system that performs data communication for diagnosis.

【0002】[0002]

【従来の技術】近年の車両のエレクトロニクス化は目ざ
ましく、エンジンやトランスミッションをはじめとする
車両各部の車載機器が、マイクロコンピュータによって
高度に電子制御化されている。このため、それら車載機
器の制御性は飛躍的に高められるに至っているが、反
面、それら車載機器の故障診断は益々複雑なものになっ
てきている。
2. Description of the Related Art In recent years, the electronics of vehicles have been remarkable, and on-vehicle devices such as engines and transmissions of various parts of the vehicle have been highly electronically controlled by microcomputers. For this reason, the controllability of these in-vehicle devices has been dramatically improved, but on the other hand, the failure diagnosis of these in-vehicle devices has become increasingly complicated.

【0003】このため、多くの車載電子制御装置は、自
己診断機能が付加されて、その対象とする車載機器の制
御に併せ同車載機器や制御装置自らの故障診断をも行う
ように改良されたり、或いはまた、診断ツールと称され
る外部診断装置に接続され、該診断ツールによる支援の
もとに、より高度な故障診断や診断データの解析を行う
ことのできるシステムとして改良されるなど、それら益
々複雑になりつつある車両システムの診断に対処するた
めの様々な工夫が講じられている。特に、上記外部診断
ツールによる支援のもとに車載用の各種電子制御装置を
介して車両システムの診断を行う方法は、所望とされる
任意の診断データを外部から柔軟に指定することがで
き、しかもそれら取り込んだ診断データに基づき信頼性
の高い解析を行うことのできる方法として近年注目を集
めている。
For this reason, many on-vehicle electronic control units have been added with a self-diagnosis function, and have been improved so as to perform fault diagnosis of the on-vehicle devices and the control unit itself in addition to controlling the on-vehicle devices to be controlled. Alternatively, the system is connected to an external diagnostic device called a diagnostic tool, and is improved as a system capable of performing more advanced failure diagnosis and analysis of diagnostic data with the support of the diagnostic tool. Various approaches have been devised to address the diagnosis of increasingly complex vehicle systems. In particular, a method of diagnosing a vehicle system via various on-vehicle electronic control devices under the support of the external diagnostic tool can flexibly specify any desired diagnostic data from outside, Moreover, in recent years, it has attracted attention as a method capable of performing highly reliable analysis based on the captured diagnostic data.

【0004】ところで、こうして外部診断ツールを用い
て車両システムの診断を行う場合、通常は、 ・それら電子制御装置及び外部診断ツールに設けられた
互いの通信手段をダイアグコネクタ等の適宜のコネクタ
によって接続して通信路を形成する ・この形成した通信路を介して、診断ツールから任意の
電子制御装置に対し制御コマンドを送信する ・この制御コマンドを受信した電子制御装置は、該制御
コマンドに基づいてその対象とする車両システムの診断
を開始する ・診断の終了に際しては、再度、診断ツールから同電子
制御装置に対して中止コマンドを送信する ・電子制御装置は、この中止コマンドの受信に基づいて
上記実行中の診断を終了する といった手順が踏まれる。各種電子制御装置はこのよう
に、全て診断ツールから送られるコマンドに基づいてそ
の診断動作が制御されるようになっている。したがって
このような通信システムにあって、もしも診断の途中で
これら診断ツールと電子制御装置とを電気的に接続する
コネクタが外されるようなことがあると、それら電子制
御装置自身は該コネクタが外されたことを検知すること
ができず、結局は、こうしてコネクタが外される直前の
制御コマンドに基づく診断処理が、これら電子制御装置
において延々と継続して実行されることとなる。
[0004] When a vehicle system is diagnosed using an external diagnostic tool in this way, usually, the electronic control unit and the mutual communication means provided in the external diagnostic tool are connected by an appropriate connector such as a diagnostic connector. A control command is transmitted from the diagnostic tool to any electronic control device via the formed communication channel.The electronic control device that has received the control command generates a communication path based on the control command. Start the diagnosis of the target vehicle system. ・ At the end of the diagnosis, send the stop command from the diagnostic tool to the electronic control unit again. Steps such as terminating the running diagnosis are taken. As described above, the diagnosis operation of each electronic control device is controlled based on a command sent from the diagnosis tool. Therefore, in such a communication system, if a connector for electrically connecting the diagnostic tool and the electronic control unit is disconnected during the diagnosis, the electronic control unit itself may not be connected to the connector. Since it cannot be detected that the connector has been disconnected, the diagnosis processing based on the control command immediately before the disconnection of the connector is performed continuously and continuously in these electronic control devices.

【0005】そこで従来は、同通信システムにおけるこ
うした不都合を解消すべく、例えば特開平3−1241
41号公報に見られるような方法も提案されている。す
なわちこの方法では、各種電子制御装置による診断動作
を継続させる場合、予め設定された時間、例えば1se
c内に該診断動作の継続を指令する継続コマンドを診断
ツールからそれら電子制御装置に対して別途送信するよ
うにし、この継続コマンドの送信に基づいて、上記電子
制御装置による診断動作が継続されるようにする。そし
て、それら各電子制御装置には適宜の時限手段を設けて
おき、上記制御コマンド或いは継続コマンドの受信の
後、この時限手段によって規定される所定の時間を経過
しても何等次のコマンドが受信されないときには、それ
ら電子制御装置において実行されている診断動作が自動
的に終了されるようにしている。
Therefore, conventionally, in order to solve such inconvenience in the communication system, for example, Japanese Patent Laid-Open Publication No.
A method as disclosed in Japanese Patent Publication No. 41 is also proposed. That is, in this method, when the diagnosis operation by the various electronic control devices is continued, a preset time, for example, 1 second
c, a continuation command for instructing the continuation of the diagnostic operation is separately transmitted from the diagnostic tool to the electronic control devices. Based on the transmission of the continuation command, the diagnostic operation by the electronic control device is continued. To do. Appropriate time limit means is provided in each of these electronic control units, and after receiving the above-mentioned control command or continuation command, even if a predetermined time specified by the time limit means has passed, any next command is received. If not, the diagnostic operation being executed in the electronic control units is automatically terminated.

【0006】[0006]

【発明が解決しようとする課題】上記従来の方法によれ
ば、もしも診断の途中で診断ツールと電子制御装置とを
接続するコネクタが外されるようなことがあっても、コ
ネクタが外される直前の制御コマンドに基づく診断処理
が電子制御装置において延々と継続して実行されるよう
な不都合は確かに回避される。
According to the above-mentioned conventional method, even if the connector for connecting the diagnostic tool and the electronic control unit is disconnected during the diagnosis, the connector is disconnected. The inconvenience that the diagnosis processing based on the immediately preceding control command is continuously executed in the electronic control unit indefinitely is avoided.

【0007】しかし、ある程度長い時間、例えば車両走
行1トリップの間、連続して且つ、高速に車両システム
の診断を実行したい場合などには、こうした従来の方法
もなお問題を残す。例えば、車両各部に設けられたセン
サによって検出される信号は通常、電子制御装置を通じ
てその内蔵されるRAMに書き込まれるが、それら書き
込まれたRAM値(診断データ)を上記接続されている
診断ツールに読み出すとともに、該診断ツールを通じ
て、それらセンサによる検出信号の瞬時的な異常を診断
したり、同センサによる検出信号推移を正確にトレース
したりするためには、高速に、しかも一定の周期で上記
RAM値の連続読み出しを実行する必要がある。しか
し、上記従来の方法のように、診断ツールから定期的に
継続コマンドを送信することによってそれら電子制御装
置による処理を継続させる場合には、電子制御装置側に
おいても、それら継続コマンドが受信される都度、該コ
マンドに基づく各種の処理を実行せざるを得ず、こうし
た高速且つ一定周期でのRAM値連続読み出しなども到
底叶わない。
However, in the case where it is desired to execute the diagnosis of the vehicle system continuously and at a high speed for a relatively long time, for example, during one trip of the vehicle, such a conventional method still has a problem. For example, a signal detected by a sensor provided in each part of the vehicle is usually written into a built-in RAM through an electronic control unit, and the written RAM value (diagnosis data) is transmitted to a diagnostic tool connected to the above. In order to read out and diagnose the instantaneous abnormality of the detection signal by these sensors through the diagnostic tool, and to accurately trace the transition of the detection signal by the sensor, it is necessary to execute the RAM at high speed and at a constant period. Continuous reading of values must be performed. However, when the processing by the electronic control devices is continued by periodically transmitting the continuation command from the diagnostic tool as in the above-described conventional method, the continuation commands are also received on the electronic control device side. Each time, various processes based on the command must be executed, and such a high-speed and continuous reading of the RAM value at a constant cycle cannot be realized at all.

【0008】この発明は、こうした実情に鑑みてなされ
たものであり、このようにある程度長い時間に亘って連
続して、且つ高速に車両システムの診断を実行する場合
であっても、それら電子制御装置による信頼性の高い診
断処理の実行を保証することのできる車両診断用通信シ
ステムを提供することを目的とする。
The present invention has been made in view of such circumstances, and even in the case where the diagnosis of the vehicle system is executed continuously and at a high speed for a relatively long time as described above, such electronic control is performed. It is an object of the present invention to provide a vehicle diagnostic communication system that can guarantee the execution of highly reliable diagnostic processing by a device.

【0009】[0009]

【課題を解決するための手段】こうした目的を達成する
ため、この発明では、車両に搭載される各種電子制御装
置と外部の診断装置とを通信手段を介して接続し、診断
装置は、選択した電子制御装置に対して診断処理の実行
を要求する要求メッセージを送信し、該選択された電子
制御装置は、その受信された要求メッセージに応じて指
定された診断処理を実行する車両診断用通信システムに
おいて、前記診断装置は、前記要求メッセージの中に、
前記診断処理の継続時間を指定する診断継続時間情報を
組み込み、前記選択された電子制御装置は、前記要求メ
ッセージを受信した後、この診断継続時間情報によって
指定された時間に達するまで前記診断処理を実行し、同
診断継続時間情報によって指定された時間に達すること
で、該実行中の診断処理を終了するようにする。
In order to achieve the object, according to the present invention, various electronic control units mounted on a vehicle and an external diagnostic device are connected via communication means, and the diagnostic device is selected. A vehicle diagnostic communication system that transmits a request message requesting execution of a diagnostic process to an electronic control device, and the selected electronic control device executes a specified diagnostic process according to the received request message. In the diagnostic device, in the request message,
Incorporating diagnosis duration information specifying the duration of the diagnosis processing, the selected electronic control unit, after receiving the request message, performs the diagnosis processing until the time specified by the diagnosis duration information is reached. The diagnostic processing is executed, and when the time specified by the diagnostic continuation time information is reached, the diagnostic processing being executed is terminated.

【0010】[0010]

【作用】上記要求メッセージの中に組み込まれる診断継
続時間情報は、同メッセージに含まれる診断処理の内容
に対応してその継続時間を指定する情報であり、これは
外部の診断装置が要求する診断処理の内容が変わらない
限り、それら診断内容に対応して1度だけ、上記選択し
た電子制御装置に対して送信される。そして選択された
電子制御装置でも、この1度の要求メッセージの受信に
基づいて、自らが実行すべき診断処理の内容、及びその
継続時間を予め知ることとなる。
The diagnosis duration information included in the request message is information for designating the duration of the diagnosis processing corresponding to the contents of the diagnosis processing contained in the message. As long as the contents of the processing do not change, the information is transmitted to the selected electronic control device only once in accordance with the contents of the diagnosis. The selected electronic control device also knows in advance the contents of the diagnostic processing to be executed and the duration thereof based on the reception of the request message.

【0011】このため、前述した継続コマンド等を用い
ずとも、診断装置の指定する任意の時間だけ、その所望
とされる電子制御装置を通じての診断処理が継続される
ようになる。換言すれば、継続コマンド等が不要とされ
る分、電子制御装置ではその要求されている診断処理に
専念できることとなり、該継続される診断処理結果につ
いての信頼性も自ずと高まることとなる。また勿論、た
とえ診断の途中で外部診断装置と電子制御装置とを接続
するコネクタが外されるようなことがあったとしても、
それによって電子制御装置による診断処理が延々と継続
して実行されることもなくなる。
For this reason, even if the above-mentioned continuation command or the like is not used, the diagnosis processing through the desired electronic control device is continued for an arbitrary time designated by the diagnosis device. In other words, since the continuation command is not required, the electronic control unit can concentrate on the requested diagnostic processing, and the reliability of the continued diagnostic processing result naturally increases. Also, of course, even if the connector connecting the external diagnostic device and the electronic control device is disconnected during the diagnosis,
As a result, the diagnosis processing by the electronic control unit is not performed continuously and endlessly.

【0012】また特に、上記診断装置が上記選択した電
子制御装置に対して要求する診断処理が、同電子制御装
置が保有する制御データについての読み出し処理であ
り、併せてその選択された電子制御装置が、上記要求メ
ッセージを受信した後、その診断継続時間情報によって
指定された時間に達するまで、その読み出した制御デー
タを応答メッセージに組み込みつつこれを診断装置に対
して繰り返し返信し、同診断継続時間情報によって指定
された時間に達することで、該応答メッセージの返信を
終了するものとすれば、上述した高速且つ一定周期での
RAM値連続読み出し処理などについても、上記選択さ
れた電子制御装置ではこれを高い信頼性のもとに実現す
ることができるようになる。
In particular, the diagnostic processing required by the diagnostic device for the selected electronic control device is a process of reading out control data held by the electronic control device, and the selected electronic control device is also read out. After the request message is received, the read control data is repeatedly returned to the diagnostic apparatus while incorporating the read control data into the response message until the time specified by the diagnostic duration information is reached, If it is assumed that the reply of the response message is completed when the time specified by the information is reached, the above-mentioned selected electronic control device also performs the above-described RAM value continuous reading processing at a high speed and a constant cycle. Can be realized with high reliability.

【0013】[0013]

【実施例】図1に、この発明にかかる車両診断用通信シ
ステムの一実施例を示す。この実施例のシステムは、車
載電子制御装置として例えばエンジン制御装置1やトラ
ンスミッション制御装置2からなる複数の電子制御装置
が通信線3を介して接続されるとともに、これら車載電
子制御装置に対して更に、通信線3およびダイアグコネ
クタ4を介して外部診断装置である診断ツール5が接続
されて構成される。なお、これら接続される外部診断ツ
ール5と車載電子制御装置、例えばエンジン制御装置1
やトランスミッション制御装置2との間では、その通信
方式としてCSMA/CDと呼ばれる多重通信方式が用
いられ、また該多重通信に際しての通信プロトコルとし
ては、米国自動車技術会(SAE)のJ1850基準に
準拠したプロトコルが用いられるものとする。以下に、
これら各要素の詳細について説明する。
FIG. 1 shows an embodiment of a communication system for vehicle diagnosis according to the present invention. In the system of this embodiment, a plurality of electronic control units including, for example, an engine control unit 1 and a transmission control unit 2 are connected via a communication line 3 as on-vehicle electronic control units. , A diagnostic tool 5 as an external diagnostic device is connected via a communication line 3 and a diagnostic connector 4. The connected external diagnostic tool 5 and the on-vehicle electronic control device, for example, the engine control device 1
A multiplex communication system called CSMA / CD is used as a communication system between the transmission control device 2 and the transmission control device 2, and a communication protocol for the multiplex communication conforms to the J1850 standard of the American Society of Automotive Engineers (SAE). A protocol shall be used. less than,
The details of each of these elements will be described.

【0014】ここでは、車載電子制御装置の一例とし
て、エンジン制御装置1に絞ってその構成並びに機能を
説明する。エンジン制御装置1は、同図1に示されるよ
うに、CPU11、ROM12、RAM13、入力回路
14、出力回路15、AD変換(ADC)回路16、及
び通信回路17等をそれぞれ有して構成されている。
Here, as an example of the on-vehicle electronic control device, its configuration and functions will be described focusing on the engine control device 1. As shown in FIG. 1, the engine control device 1 includes a CPU 11, a ROM 12, a RAM 13, an input circuit 14, an output circuit 15, an A / D conversion (ADC) circuit 16, a communication circuit 17, and the like. I have.

【0015】ここで、通信回路17は、診断ツール5か
ら送られる診断要求メッセージのJ1850信号フォー
マット、即ちビットフォーマットをCPU11が読み取
ることのできるNRZ(ノン・リターン・ゼロ)方式に
変換したり、CPU11からこのNRZ方式にて出力さ
れる応答メッセージをJ1850ビットフォーマットに
逆変換する機能等を有する回路である。なお、これらビ
ットフォーマット変換機能は、これをソフトウェアで実
現するには演算負荷が大きすぎるため、通常はこの通信
回路17を通じてハードウェア的に実現される。
Here, the communication circuit 17 converts the J1850 signal format of the diagnostic request message sent from the diagnostic tool 5, that is, the bit format, into an NRZ (non-return zero) format which can be read by the CPU 11, This is a circuit having a function of inversely converting a response message output from the NRZ system into a J1850 bit format. Note that these bit format conversion functions require too much computational load to be realized by software, and therefore are usually realized by hardware through the communication circuit 17.

【0016】また、このエンジン制御装置1を構成する
入力回路14には、エンジン回転数を検出するクランク
角センサ21や車速センサ22等のセンサから出力され
る主にパルス信号からなるセンサ信号が入力され、AD
変換回路16には、スロットルセンサ23、エアフロー
メータ24、水温センサ25、及びO2 センサ26な
ど、これも車両各部に設けられたセンサから出力される
ディジタル信号からなるセンサ信号が入力される。これ
らセンサ信号は何れも、それら検出値に対応したセンサ
データとして(正確には、CPU11による演算処理を
通じてそれら検出値に対応した物理量に変換されて)R
AM13のデータ領域に格納され、CPU11による燃
料噴射量演算のための演算値として利用される。
An input circuit 14 constituting the engine control device 1 receives a sensor signal mainly composed of a pulse signal output from a sensor such as a crank angle sensor 21 or a vehicle speed sensor 22 for detecting an engine speed. And AD
The conversion circuit 16 receives a sensor signal composed of a digital signal output from a sensor provided in each part of the vehicle, such as a throttle sensor 23, an air flow meter 24, a water temperature sensor 25, and an O2 sensor 26. Each of these sensor signals is converted into a physical quantity corresponding to the detected value by sensor data corresponding to the detected value (to be more precise, by a calculation process by the CPU 11).
It is stored in the data area of the AM 13 and is used as a calculation value for the fuel injection amount calculation by the CPU 11.

【0017】CPU11は、ROM12に予め格納され
ている制御プログラムに従い、上記RAM13に取り込
まれたセンサデータに基づく所定の演算を実行してその
都度の燃料噴射量を求めるとともに、診断ツール5との
間での後述する通信メッセージの授受、並びにそのメッ
セージを通じて指定された所定の診断処理を実行する部
分である。なお、上記求められた燃料噴射量は出力回路
15に与えられ、この出力回路15を通じて、同求めら
れた燃料噴射量に対応する信号がエンジン制御手段27
に出力される。エンジン制御手段27としては例えば燃
料噴射弁がある。また、後述する診断処理では、診断ツ
ール5からのRAM値連続読み出し指令に応じて、上記
RAM13に取り込まれたセンサデータがこのCPU1
1によって順次読み出され、該読み出されたデータが診
断データとして、通信回路17を介して上記通信線3に
出力される。
The CPU 11 performs a predetermined calculation based on the sensor data fetched into the RAM 13 according to a control program stored in the ROM 12 in advance to obtain a fuel injection amount each time. This is a part for transmitting and receiving a communication message, which will be described later, and executing a predetermined diagnostic process specified through the message. The obtained fuel injection amount is given to the output circuit 15, and a signal corresponding to the obtained fuel injection amount is output from the engine control means 27 through the output circuit 15.
Is output to The engine control means 27 includes, for example, a fuel injection valve. In a diagnosis process described later, the sensor data taken into the RAM 13 in response to a RAM value continuous reading command from the diagnosis tool 5 is used by the CPU 1.
1, and the read data is output to the communication line 3 via the communication circuit 17 as diagnostic data.

【0018】また、診断ツール5は、こうした車載電子
制御装置或いはそれを通じた車両システムの診断が必要
とされるときに、上述のようにダイアグコネクタ4を介
して車載電子制御装置(ここでの例ではエンジン制御装
置1及びトランスミッション制御装置2等々)に電気的
に接続されて、上記診断データとして読み出されたデー
タを読み込み、それらデータの診断を支援する装置であ
る。これら読み込んだ診断データについては通常、これ
を表示器を通じて一覧表示したり、グラフ表示したりす
ることによって、それらデータの異常の有無を診断者に
知らしめる。なお、ダイアグコネクタ4には、イグニシ
ョンスイッチ18を経て、バッテリ19より電源が供給
されており、診断ツール5がこうして車載電子制御装置
と電気的に接続されるとき、該ダイアグコネクタ4を介
して診断ツール5にも電源が供給されるようになってい
る。
When the diagnosis tool 5 needs to diagnose the vehicle-mounted electronic control device or the vehicle system therethrough, the diagnosis tool 5 is connected to the vehicle-mounted electronic control device (the example here) via the diagnostic connector 4 as described above. Is electrically connected to the engine control device 1 and the transmission control device 2 etc.), reads the data read as the diagnostic data, and supports the diagnosis of the data. The read diagnostic data is usually displayed as a list on a display or as a graph to inform the diagnostician whether or not the data is abnormal. The diagnostic connector 4 is supplied with power from a battery 19 via an ignition switch 18. When the diagnostic tool 5 is thus electrically connected to the on-vehicle electronic control unit, the diagnostic is performed via the diagnostic connector 4. Power is also supplied to the tool 5.

【0019】さて、こうした実施例の通信システムを通
じて行われる診断処理としては例えば、車両の走行状態
において上記入力回路14やAD変換器16を介してR
AM13に取り込まれたセンサデータ(上記各センサの
出力信号がCPU11による演算処理によって物理量に
変換された値)を上記診断ツール5に対して読み出し、
それらセンサデータが正常か否かを診断するいわゆるR
AM値連続読み出し診断がある。そしてこのRAM値連
続読み出し診断の場合、上記診断ツール5を通じてそれ
らセンサデータの瞬間的な異常を診断したり同センサデ
ータの出力を正確にトレースするためには、高速に且つ
一定の周期で、RAM13からそれらセンサデータを連
続的に読み出す必要がある。このためこの実施例の通信
システムでは、診断の対象として指定した電子制御装置
に対し、その診断にかける時間、すなわち診断継続時間
を前もって知らしめる診断継続時間情報を上記RAM値
連続読み出し診断を指定する制御コマンドの中に組み込
み、それら電子制御装置によりRAM値連続読み出しが
実行されている期間、それら電子制御装置に対するコマ
ンドの送出を控えるようにする。
The diagnostic processing performed through the communication system according to the present embodiment includes, for example, R through the input circuit 14 and the AD converter 16 in the running state of the vehicle.
The sensor data (a value obtained by converting the output signal of each sensor into a physical quantity by the arithmetic processing by the CPU 11) taken into the AM 13 is read out to the diagnostic tool 5,
A so-called R for diagnosing whether the sensor data is normal or not.
There is an AM value continuous reading diagnosis. In the case of the RAM value continuous reading diagnosis, in order to diagnose an instantaneous abnormality of the sensor data and accurately trace the output of the sensor data through the diagnosis tool 5, the RAM 13 is rapidly and periodically fixed. It is necessary to read these sensor data continuously from the. For this reason, in the communication system of this embodiment, for the electronic control device designated as the object of the diagnosis, the time for performing the diagnosis, that is, the diagnosis continuation time information for notifying the diagnosis continuation time in advance, specifies the RAM value continuous reading diagnosis. It is incorporated in control commands so as to refrain from sending commands to these electronic control units while the RAM values are continuously read by the electronic control units.

【0020】図2に、こうした実施例の通信システムを
通じて実行されるRAM値連続読み出し診断についてそ
の通信手順をタイムチャートとして示す。すなわち、こ
の通信手順としてまず、同図2(a)に示されるよう
に、例えば上記エンジン制御装置1に対する制御コマン
ドとしてこのRAM値連続読み出し診断を要求し且つ、
その診断継続時間を指定する要求メッセージaが診断ツ
ール5から通信線3に送出されると、エンジン制御装置
1では、この要求メッセージaを受信し、同メッセージ
内容に応じて、同図2(b)に示される如く ( 1)上記クランク角センサ21や車速センサ22、更に
はスロットルセンサ23やエアーフローメータ24、水
温センサ25、O2 センサ26、等々の各センサから取
り込まれて上記RAM13にセンサデータとして格納さ
れているRAM値を順次読み出し、これを応答メッセー
ジbとして通信線3に送信する。 ( 2)所定時間t(例えば16ms)後に、それらセンサ
データとしてのその時点でのRAM値、すなわちその時
点で更新されているRAM値を応答メッセージcとして
送信する。 ( 3)それから更に所定時間t(例えば16ms)後、同
じくその時点でのRAM値を応答メッセージとして送信
する。 といった動作を、上記要求メッセージaに設定された診
断継続時間に達するまで繰り返し実行する。
FIG. 2 is a time chart showing a communication procedure for a RAM value continuous reading diagnosis executed through the communication system of the embodiment. That is, as shown in FIG. 2A, this communication procedure first requests the RAM value continuous reading diagnosis as a control command to the engine control device 1, for example.
When a request message a designating the diagnosis continuation time is transmitted from the diagnostic tool 5 to the communication line 3, the engine control device 1 receives the request message a and, according to the content of the request message a, receives the request message a in FIG. (1) The sensor data is read from the crank angle sensor 21, the vehicle speed sensor 22, the throttle sensor 23, the air flow meter 24, the water temperature sensor 25, the O2 sensor 26, etc. Are sequentially read and transmitted to the communication line 3 as a response message b. (2) After a predetermined time t (for example, 16 ms), the RAM value at that time as the sensor data, that is, the RAM value updated at that time is transmitted as a response message c. (3) Then, after a predetermined time t (for example, 16 ms), the RAM value at that time is transmitted as a response message. Are repeatedly executed until the diagnosis duration set in the request message a is reached.

【0021】図3は、こうしたRAM値連続読み出し診
断を実現すべく該実施例の通信システムにおいて採用す
る1メッセージ当りのフレーム構成、並びに該フレーム
構成をもとに構築される上記要求メッセージ及び応答メ
ッセージのメッセージ構成をそれぞれ示したものであ
る。
FIG. 3 shows a frame structure per message employed in the communication system of this embodiment to realize such a RAM value continuous reading diagnosis, and the request message and the response message constructed based on the frame structure. Are respectively shown.

【0022】この実施例の通信システムでは、1メッセ
ージ当り図3(a)に示される構成を有するフレーム信
号を、診断ツール5と各種電子制御装置との間で授受す
るものとする。因みにこのフレーム信号において、SO
F(スタートオブフレーム)は、当該フレーム信号(メ
ッセージ)の先頭を示す部分であり、該SOFに続く#
0バイト〜#2バイトの3バイトは、当該メッセージの
要求或いは応答の別、当該メッセージの送信先、及び当
該メッセージの送信元、等のヘッダ情報が付加されるヘ
ッダフィールドである。また、該ヘッダフィールドに続
く#3バイト〜#10バイトの8バイトは、診断要求の
内容やその応答内容が組み込まれるデータフィールドで
あり、該データフィールドに続く#11バイトはエラー
検出バイトである。この実施例の通信システムでは、エ
ラー検出に巡回冗長符号CRC法を用い、このエラー検
出バイトも、前記通信回路17によってハードウェア的
に生成され、且つ確認されるようにする。そして同フレ
ーム信号において、EOF(エンドオブフレーム)は、
当該フレーム信号(メッセージ)の末尾を示す部分であ
る。なお、SOFやEOFは通常、その旨識別し得る所
定論理のビット若しくはビット列によって構成される。
In the communication system of this embodiment, a frame signal having the structure shown in FIG. 3A per message is exchanged between the diagnostic tool 5 and various electronic control units. Incidentally, in this frame signal, SO
F (start of frame) is a part indicating the head of the frame signal (message), and is a # following the SOF.
Three bytes from 0 byte to # 2 byte are header fields to which header information such as a request or response of the message, a transmission destination of the message, and a transmission source of the message is added. Eight bytes of # 3 to # 10 bytes following the header field are data fields in which the contents of the diagnosis request and the contents of the response are incorporated, and the # 11 byte following the data field is an error detection byte. In the communication system of this embodiment, the cyclic redundancy code CRC method is used for error detection, and this error detection byte is also generated and confirmed by the communication circuit 17 in hardware. And, in the same frame signal, EOF (end of frame) is
This part indicates the end of the frame signal (message). Note that the SOF and the EOF are usually constituted by bits or bit strings of a predetermined logic that can be identified to that effect.

【0023】また、同実施例のシステムにあって、診断
ツール5から各種電子制御装置に対して送信される要求
メッセージは、図3(b)に示される構成を採る。すな
わち、#0バイト〜#2バイトのヘッダバイトには、例
えば ・当該メッセージが要求メッセージであること ・当該メッセージの送信元は診断ツール5であること ・当該メッセージの送信先は例えばエンジン制御装置で
あること などが組み込まれ、データフィールドの#3バイトに
は、診断モードの種類を示すコードとして、例えば ・RAM値連続読み出し診断のモードであること が組み込まれ、続く#4バイト及び#5バイトには、当
該診断モード(RAM値連続読み出し診断モード)を実
行する上で必要とされるRAMの読み出し開始の先頭ア
ドレス値がハイバイト(H−B)とローバイト(L−
B)とに分けて組み込まれ、#6バイトには、同連続読
み出しを所望する範囲(データ数)情報が組み込まれ
る。そして、同データフィールドの#7バイト及び#8
バイトに、上述した診断継続時間を示す情報が組み込ま
れる。残りの#9バイト及び#10バイトは、特にそこ
に組み込まれる情報がない場合、同メッセージの送信時
に、これを排除するよう圧縮処理される。
In the system of the embodiment, a request message transmitted from the diagnostic tool 5 to various electronic control units has a configuration shown in FIG. 3B. That is, the header bytes of # 0 byte to # 2 byte include, for example, that the message is a request message. The source of the message is the diagnostic tool 5. The destination of the message is, for example, the engine control device. In the # 3 byte of the data field, a code indicating the type of the diagnostic mode is incorporated. For example, the RAM mode continuous reading diagnostic mode is incorporated, and the following # 4 byte and # 5 byte are included. The start address value of the RAM read start required for executing the diagnostic mode (RAM value continuous read diagnostic mode) is a high byte (H-B) and a low byte (L-B).
B), and information (range (number of data)) for which the same continuous reading is desired is incorporated in # 6 bytes. Then, # 7 byte and # 8 of the same data field
Information indicating the diagnosis duration described above is incorporated in the byte. The remaining # 9 bytes and # 10 bytes are subjected to a compression process to eliminate them when transmitting the same message, especially when there is no information to be embedded therein.

【0024】他方、同実施例のシステムにあって、各種
電子制御装置から診断ツール5に対して送信される応答
メッセージは、図3(c)に示される構成を採る。すな
わち、#0バイト〜#2バイトのヘッダバイトには、例
えば ・当該メッセージが応答メッセージであること ・当該メッセージの送信元は例えばエンジン制御装置で
あること ・当該メッセージの送信先は診断ツール5であること などが組み込まれ、データフィールドの#3バイト〜#
10バイトに、上記連続読み出しされたRAM値が診断
データとして乗せられる。
On the other hand, in the system of the embodiment, the response message transmitted from the various electronic control units to the diagnostic tool 5 has a configuration shown in FIG. That is, in the header bytes of # 0 byte to # 2 byte, for example, the message is a response message. The source of the message is, for example, the engine control device. The destination of the message is the diagnostic tool 5. The data field # 3 byte to #
The RAM value that has been successively read is placed as diagnostic data in 10 bytes.

【0025】図4及び図5は、こうしたメッセージ構成
を前提として、車載電子制御装置、例えば前記エンジン
制御装置1において実行される診断処理の処理手順(受
信/送信手順)を示したものであり、以下、これら図4
及び図5を併せ参照して、該実施例通信システムの動作
を更に詳述する。
FIGS. 4 and 5 show the processing procedure (reception / transmission procedure) of the diagnostic processing executed in the on-vehicle electronic control unit, for example, the engine control unit 1, on the premise of such a message configuration. Hereinafter, FIG.
The operation of the communication system of this embodiment will be described in further detail with reference to FIG.

【0026】ただしここで、図4及び図5に示される処
理とは、図1に示したCPU11に対する制御プログラ
ムの一部として、ROM12内に予め格納されている手
続であり、ここでは例えば、先の図2を参照して説明し
たように、16ms毎に起動されて、その必要とされる
診断並びに応答メッセージ構築のためのデータ処理を実
行するものとする。
Here, the processing shown in FIGS. 4 and 5 is a procedure stored in advance in the ROM 12 as a part of the control program for the CPU 11 shown in FIG. As described with reference to FIG. 2, it is started every 16 ms to execute the necessary diagnosis and data processing for constructing a response message.

【0027】また、このROM12に格納されて、以下
に説明する診断処理を実行する制御プログラムには、図
1に付記するような「診断カウンタ」、「アドレスカウ
ンタ」、及び「送信動作カウンタ」としての各カウンタ
機能をソフトウェア的に実現するカウンタプログラムが
含まれ、またRAM13にも、上記センサデータが格納
される「データ領域」以外に、以下の診断処理の実行に
際して利用される記憶領域として、同じく図1に付記す
るような「先頭アドレス格納領域」、「読み出し範囲格
納領域」、「診断継続時間格納領域」、及び各診断モー
ドにおける「実行フラグ登録領域」がそれぞれ併せ形成
されるものとする。
The control program stored in the ROM 12 and executing a diagnosis process described below includes a "diagnosis counter", an "address counter", and a "transmission operation counter" as shown in FIG. In addition to the "data area" in which the sensor data is stored, the RAM 13 also includes a counter program that implements each counter function as software. It is assumed that a “head address storage area”, a “read range storage area”, a “diagnosis continuation time storage area”, and an “execution flag registration area” in each diagnosis mode are added together as shown in FIG.

【0028】さていま、RAM値連続読み出し診断の開
始に際し、診断ツール5にある操作部(キーボード)を
通じて、 ・診断対象電子制御装置(ここではエンジン制御装置
1)及び診断モード(ここではRAM値連続読み出し診
断モード) ・診断所望とするセンサデータ(RAM値)のRAM1
3(正確にはそのデータ領域)内における先頭アドレ
ス、すなわちRAM値の読み出し開始のための先頭アド
レス ・同センサデータ(RAM値)の読み出し範囲、すなわ
ちそれらデータについての診断所望範囲 がそれぞれ入力されたとすると、同診断ツール5によっ
て、図3(b)に示したような要求メッセージが形成さ
れ且つ、ダイアグコネクタ4を介して通信線3に送出さ
れる。
At the start of the RAM value continuous reading diagnosis, an electronic control unit to be diagnosed (here, the engine control unit 1) and a diagnosis mode (here, RAM value continuous) are operated through the operation unit (keyboard) of the diagnostic tool 5. (Read-out diagnostic mode) RAM1 for sensor data (RAM value) desired to be diagnosed
3 (precisely, the data area), that is, the start address for starting the reading of the RAM value. • It is assumed that the reading range of the same sensor data (RAM value), that is, the desired range of diagnosis for the data is input. Then, a request message as shown in FIG. 3B is formed by the diagnostic tool 5 and transmitted to the communication line 3 via the diagnostic connector 4.

【0029】一方、エンジン制御装置1(電子制御装
置)では、こうして診断ツール5から送信される要求メ
ッセージに対し、上述の如く16ms毎に、図4及び図
5に示される診断処理プログラムを起動して、診断並び
に応答メッセージ構築のための以下の処理を実行する。
On the other hand, the engine control device 1 (electronic control device) starts the diagnostic processing program shown in FIGS. 4 and 5 every 16 ms as described above in response to the request message transmitted from the diagnostic tool 5 as described above. Then, the following processing for diagnosis and construction of a response message is executed.

【0030】まず、ステップ101で診断ツール5から
要求メッセージが発せられたか否かを判断し、要求メッ
セージが発せられた旨判断される場合には、次のテップ
102で、そのヘッダフィールドである#0バイト〜#
2バイトの3バイトを順次受信する。その後ステップ1
03において、それら受信したヘッダフィールドの各バ
イト値が正しいか否か、すなわちエンジン制御装置1自
らに対して発せられた要求メッセージであるか否かを判
定し、自らに発せられた要求メッセージであればステッ
プ104に進み、そうでなければ該診断処理を終了する
(図5)。
First, in step 101, it is determined whether or not a request message has been issued from the diagnostic tool 5, and if it is determined that the request message has been issued, in the next step 102, the header field # 0 bytes to #
Three bytes of two bytes are sequentially received. Then step 1
In step 03, it is determined whether or not each byte value of the received header field is correct, that is, whether or not the request message has been issued to the engine control device 1 itself. If so, the process proceeds to step 104, and if not, the diagnostic process ends (FIG. 5).

【0031】ステップ104ではデータフィールドにあ
る#3バイト目を受信し、ステップ105において、こ
れが何れの診断モードを指定しているものかを判別す
る。しかる後、該判別した診断モードの処理ルーチンに
ジャンプする。RAM値連続読み出しモードが指定され
ている場合にはステップ106〜109の処理にジャン
プする。他の診断モードとしては、特定のRAM値のみ
を読み出す診断モード(ステップ200)、或いはRA
M値の書き換えを行って車両制御の診断を行うような指
令値書き換えモード(ステップ300)等がある。
In step 104, the # 3 byte in the data field is received, and in step 105, it is determined which diagnostic mode is specified. Thereafter, the process jumps to the processing routine of the determined diagnostic mode. If the RAM value continuous reading mode is designated, the processing jumps to steps 106 to 109. Other diagnostic modes include a diagnostic mode for reading out only a specific RAM value (step 200) or RA
There is a command value rewriting mode (step 300) in which the M value is rewritten to diagnose the vehicle control.

【0032】ここでの例のように、上記診断モードとし
てRAM値連続読み出し診断モードが指定されている場
合には、ステップ106において要求メッセージの#4
バイト及び#5バイト目を受信して、RAM値読み出し
のための先頭アドレス(ADR)を、RAM13の上記
「先頭アドレス格納領域」にストアする。次いで、続く
ステップ107で同要求メッセージの#6バイト目を受
信して、読み出しを実行するアドレス(ADR)の範囲
をRAM13の上記「読み出し範囲格納領域」にストア
する。続くステップ108では、同要求メッセージの#
7バイト及び#8バイト目を受信して、そこで指定され
ている診断継続時間をRAM13の上記「診断継続時間
格納領域」にストアする。そして、ステップ109にお
いて、該RAM値連続読み出し診断を実行するフラグを
RAM13の上記「実行フラグ登録領域」にセットす
る。すなわち、該RAM値連続読み出し診断が開始され
たことをRAM13内にストアする。
When the RAM value continuous reading diagnostic mode is designated as the diagnostic mode as in the example here, the request message # 4
When the byte and the # 5th byte are received, the head address (ADR) for reading the RAM value is stored in the “head address storage area” of the RAM 13. Next, in the subsequent step 107, the # 6 byte of the request message is received, and the range of the address (ADR) at which the reading is executed is stored in the "reading range storage area" of the RAM 13. In the next step 108, # of the request message
The 7th byte and the # 8th byte are received, and the specified diagnosis duration is stored in the “diagnosis duration storage area” of the RAM 13. In step 109, a flag for executing the RAM value continuous reading diagnosis is set in the “execution flag registration area” of the RAM 13. That is, the start of the RAM value continuous reading diagnosis is stored in the RAM 13.

【0033】次に、図5のステップ110においては、
まずRAM値連続読み出し診断モードの実行フラグがセ
ットされているか否かを判定し、該実行フラグがセット
されていなければ、他の診断モードの実行フラグのチェ
ック、およびその診断の実行を行うが、同RAM値連続
読み出し診断モードの実行フラグがセットされていれ
ば、ステップ111で、上記診断カウンタ(ROM12
内の「診断カウンタ」プログラム)が診断継続時間を経
過したか否かを判定する。そして、該診断時間が経過し
ていれば、ステップ112で上記RAM値連続読み出し
診断モードの実行フラグをリセットして、応答メッセー
ジの送信を中止する。なお、この診断カウンタは、LS
B(最下位ビット)が1secのカウンタであり、1s
ec毎にカウンタアップされて且つ、上記ステップ10
9で実行フラグがセットされたタイミングでクリアされ
るものとする。
Next, in step 110 of FIG.
First, it is determined whether or not the execution flag of the RAM value continuous reading diagnosis mode is set. If the execution flag is not set, the execution flag of another diagnosis mode is checked and the diagnosis is executed. If the execution flag of the RAM value continuous reading diagnostic mode is set, at step 111, the diagnostic counter (ROM12
It is determined whether the “diagnosis counter” program within the period has passed the diagnosis continuation time. And the diagnostic time has passed
Tei lever resets the execution flag of the RAM value continuous reading diagnostic mode at step 112, stops the transmission of the response message. This diagnostic counter is LS
B (least significant bit) is a counter of 1 sec, 1 s
ec and incremented by 10
It is assumed that the execution flag is cleared at the timing set in step 9.

【0034】続くステップ114以降は、応答メッセー
ジを送信する処理である。ステップ114では、まずヘ
ッダーフィールドの#0バイト〜#2バイトの3バイト
を送信する。このヘッダーは上述のように、 ・当該メッセージが応答メッセージであること ・当該メッセージの送信元はエンジン制御装置1である
こと(IDコード) ・当該メッセージの送信先は診断ツール5であること を示すものである。またステップ115は、読み出し設
定アドレスで指定されるRAM値を送信する処理であ
る。後述するステップ119からのループ制御により、
次のステップ116で順次インクリメントされるアドレ
スのRAM値もこのステップ115を通じて順次送信さ
れるようになる。なお、ステップ116でのアドレス値
インクリメントには、上記アドレスカウンタ(ROM1
2内の「アドレスカウンタ」プログラム)が利用され
る。
From step 114 onward, processing for transmitting a response message is performed. In step 114, first, three bytes # 0 to # 2 of the header field are transmitted. As described above, this header indicates that the message is a response message. The source of the message is the engine control device 1 (ID code). The destination of the message is the diagnostic tool 5. Things. Step 115 is a process of transmitting the RAM value specified by the read setting address. By loop control from step 119 described later,
The RAM value of the address sequentially incremented in the next step 116 is also sequentially transmitted through this step 115. The increment of the address value in step 116 includes the address counter (ROM 1
2 "address counter" program) is used.

【0035】ステップ117は、この実施例によるデー
タフィールドが1メッセージ当たり8バイトである制約
から、現在何バイト目を送信したかを後のステップ11
9で判定するために、上記送信動作カウンタ(ROM1
2内の「送信動作カウンタ」プログラム)をインクリメ
ントする処理である。
In step 117, since the data field according to the present embodiment is limited to 8 bytes per message, the number of the currently transmitted byte is determined in step 11 below.
9, the transmission operation counter (ROM 1
2 is a process for incrementing the “transmission operation counter” program in 2).

【0036】次のステップ118の処理は、上記ステッ
プ116でインクリメントした読み出し設定アドレスが
送信範囲の最後のアドレスを超えたか否かを判定するた
めの処理であり、同アドレスがその範囲内であればステ
ップ119の処理に移る。該ステップ119では、上記
送信動作カウンタのカウント値が「8」以内であればス
テップ115に戻り、上記順次インクリメントされるア
ドレスのRAM値を送信する処理を繰り返す。なお、ス
テップ118で、上記読み出し設定アドレスが送信範囲
の最後のアドレスを超えた旨判定された場合には、ステ
ップ120にジャンプして、その読み出し設定アドレス
(アドレスカウンタ)を要求メッセージ内の先頭アドレ
スに戻す。そしてその後、ステップ121で送信動作カ
ウンタを「0」にクリアして、上記一連の処理ルーチン
を抜ける。
The process of the next step 118 is a process for determining whether or not the read setting address incremented in the above step 116 has exceeded the last address of the transmission range. The process moves to step 119. In step 119, if the count value of the transmission operation counter is within "8", the process returns to step 115, and the process of transmitting the RAM value of the sequentially incremented address is repeated. If it is determined in step 118 that the read setting address has exceeded the last address of the transmission range, the process jumps to step 120 and sets the read setting address (address counter) to the start address in the request message. Return to Then, in step 121, the transmission operation counter is cleared to "0", and the process exits from the series of processing routines.

【0037】以上の処理が16ms毎に実行される。し
かも、2回目以降は、上記ステップ101を通じてステ
ップ110の診断モード実行フラグの確認処理へ直接移
行した後、診断カウンタを通じて上記診断継続時間の経
過が監視されつつ(ステップ111)、RAM値連続読
み出しに併せての応答メッセージ構築処理のみが繰り返
し実行されることとなり、こうして結局は、診断ツール
5との間での先の図2に示した形態でのメッセージ授受
が実現されるようになる。
The above processing is executed every 16 ms. In addition, after the second time, the process directly proceeds to the diagnosis mode execution flag confirmation processing in step 110 through step 101, and then the progress of the diagnosis continuation time is monitored through the diagnosis counter (step 111). At the same time, only the response message construction processing is repeatedly executed, and eventually, message exchange with the diagnostic tool 5 in the form shown in FIG. 2 is realized.

【0038】このように、この実施例の通信システムに
よれば、従来の継続コマンド等を用いずとも、診断ツー
ル5の指定する任意の時間だけ、その所望とされる電子
制御装置(エンジン制御装置1)を通じての診断処理が
継続されるようになる。そして、上記継続コマンド等が
不要とされる分、電子制御装置ではその要求されている
診断処理に専念できることとなり、上記継続される高速
且つ一定周期でのRAM値連続読み出し診断についての
処理結果も自ずと信頼性の高いものとなる。また勿論、
たとえ診断の途中で外部診断装置と電子制御装置(エン
ジン制御装置1)とを接続するダイアグコネクタ4が外
されるようなことがあったとしても、それによって電子
制御装置による診断処理が延々と継続して実行されるこ
ともなくなる。すなわち、上記指定された診断継続時間
が経過した時点で、同診断処理も自動的に終了されるよ
うになる。なお、この診断継続時間としては、診断ツー
ル5のユーザが所望する任意の時間が指定される。例え
ば、上述したRAM値連続読み出し診断や図4のステッ
プ200として示した特定RAM値読み出し診断などに
あっては、10分〜20分程度の比較的長い時間が適当
であり、また同図4のステップ300として示した指令
値(RAM値)書き換え診断などにあっては、制御対象
にもよるが、その指令値を直接書き換えるといった性格
上、数10秒〜数分程度の比較的短い時間が適当であ
る。
As described above, according to the communication system of this embodiment, a desired electronic control unit (engine control unit) can be used for an arbitrary time designated by the diagnostic tool 5 without using a conventional continuation command or the like. The diagnostic processing through 1) is continued. Since the continuation command and the like are not required, the electronic control unit can concentrate on the requested diagnosis processing, and the processing result of the continuous high-speed RAM value continuous reading diagnosis at a constant cycle is naturally obtained. It will be highly reliable. Also, of course,
Even if the diagnostic connector 4 that connects the external diagnostic device and the electronic control device (engine control device 1) is disconnected during the diagnosis, the diagnosis process by the electronic control device continues forever. Will not be executed. That is, when the designated diagnosis continuation time has elapsed, the diagnosis processing is automatically terminated. Note that an arbitrary time desired by the user of the diagnostic tool 5 is designated as the diagnosis continuation time. For example, a relatively long time of about 10 to 20 minutes is appropriate for the above-described RAM value continuous reading diagnosis and the specific RAM value reading diagnosis shown as step 200 in FIG. In the command value (RAM value) rewriting diagnosis shown in step 300, although it depends on the control target, a relatively short time of about several tens of seconds to several minutes is appropriate due to the property of directly rewriting the command value. It is.

【0039】ところで、上記実施例の通信システムにお
いては、診断ツール5から送信される要求メッセージ
が、図3(a)に例示したフレーム構成をもとに、図3
(b)に示される如く構成されるとしたが、フレーム構
成も含め、そのメッセージ構成は一例にすぎない。特に
そのデータフィールドにおける各種情報の配置や順位等
は任意であり、またRAM値の「読み出し範囲(#
6)」に代えて、同読み出されるRAM値の「最終アド
レス」を指定することも可能である。因みに、図4のス
テップ200として示した特定RAM値読み出し診断な
どにあっては、上記「読み出し範囲」として指定される
場合には、範囲「1」が指定され、この「最終アドレ
ス」として指定される場合には、「読み出し開始の先頭
アドレスn(#4、#5)」と同一のアドレス値が指定
される。この要求メッセージは要は、診断処理にかかる
各種要求情報の指定に併せ、何らかのかたちで「診断継
続時間」を指定する情報が付加される構成であればよ
い。
By the way, in the communication system of the above embodiment, the request message transmitted from the diagnostic tool 5 is based on the frame configuration shown in FIG.
Although the configuration is as shown in (b), the message configuration including the frame configuration is merely an example. In particular, the arrangement and order of various types of information in the data field are arbitrary, and the "read range (#
6)), it is also possible to specify the "last address" of the RAM value to be read out. By the way, in the specific RAM value reading diagnosis shown as step 200 in FIG. 4, when the above “reading range” is specified, the range “1” is specified, and the range is specified as the “last address”. In this case, the same address value as the "read start start address n (# 4, # 5)" is specified. What is essential is that this request message has a configuration in which information for designating “diagnosis continuation time” is added in some form in addition to the specification of various request information related to the diagnostic processing.

【0040】また、エンジン制御装置1をはじめとする
各電子制御装置にあっても、上記要求メッセージを通じ
て指定される「診断継続時間」を一時記憶する手段と、
その記憶した「診断継続時間」の経過を監視する手段と
を少なくとも有し、該「診断継続時間」に達するまで、
その指定された診断処理を繰り返す機能を具えるもので
あればよく、そのための処理手順も、図4及び図5に例
示した手順には限られない。
In each of the electronic control units including the engine control unit 1, means for temporarily storing the “diagnosis continuation time” specified through the request message,
Means for monitoring the progress of the stored “diagnosis duration”, and until the “diagnosis duration” is reached.
What is necessary is just to have a function of repeating the designated diagnostic processing, and the processing procedure for that is not limited to the procedures illustrated in FIGS. 4 and 5.

【0041】また、上記実施例の通信システムでは、そ
の通信プロトコルが米国自動車技術会(SAE)のJ1
850基準に準拠するものとしたが、これに限定される
ものでもない。他に例えば、マスタ・スレーブによる通
信方式などにあっても、この発明にかかる通信システム
を同様に適用することが可能である。
In the communication system of the above embodiment, the communication protocol is J1 of the American Society of Automotive Engineers (SAE).
Although it is based on the 850 standard, it is not limited to this. For example, the communication system according to the present invention can be similarly applied to a communication method using a master / slave.

【0042】また、同実施例の通信システムでは、ビッ
トフォーマットとしても、図6に示されるようなJ18
50基準のパルス幅変調(PWM)を用いることを前提
としたが、これとて任意であり、他に例えば、図7に示
すようなビットフォーマットを用いることも可能であ
る。すなわちこの図7に示すビットフォーマットでは、
例えば8ビットからなるNRZ(ノン・リターン・ゼ
ロ)方式のデータバイトを用いることを前提とする。そ
してその先頭に論理ローレベルのスタートビットを、ま
たその末尾に論理ハイレベルのストップビットをそれぞ
れ付加して、該データバイトの存在が識別できるように
している。
In the communication system of this embodiment, the bit format is J18 as shown in FIG.
Although it is assumed that pulse width modulation (PWM) based on 50 is used, this is arbitrary, and for example, a bit format as shown in FIG. 7 can also be used. That is, in the bit format shown in FIG.
For example, it is assumed that an 8-bit NRZ (non-return zero) data byte is used. A start bit of a logic low level is added at the head and a stop bit of a logic high level is added at the end thereof, so that the existence of the data byte can be identified.

【0043】[0043]

【発明の効果】以上説明したように、この発明によれ
ば、継続コマンド等を用いずとも、外部診断装置の指定
する任意の時間だけ、その所望とされる電子制御装置を
通じての診断処理が継続されるようになり、また継続コ
マンド等が不要とされる分、この継続される診断処理結
果についての信頼性も高まるようになる。
As described above, according to the present invention, the diagnosis processing through the desired electronic control unit is continued for an arbitrary time designated by the external diagnosis unit without using a continuation command or the like. Since the continuation command and the like are not required, the reliability of the continued diagnosis processing result is improved.

【0044】しかも、診断の途中で外部診断装置と電子
制御装置とを接続するコネクタが外されるようなことが
あったとしても、それによって電子制御装置による診断
処理が延々と継続して実行されることもない。
In addition, even if the connector for connecting the external diagnostic device and the electronic control device is disconnected during the diagnosis, the diagnostic process by the electronic control device is continuously performed endlessly. Never even.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明にかかる車両診断用通信システムにつ
いてその一実施例構成を示すブロック図である。
FIG. 1 is a block diagram showing one embodiment of a communication system for vehicle diagnosis according to the present invention.

【図2】この実施例の通信システムを通じて実行される
RAM値連続読み出し診断についてその通信手順を示す
タイムチャートである。
FIG. 2 is a time chart showing a communication procedure of a RAM value continuous reading diagnosis executed through the communication system of the embodiment.

【図3】上記RAM値連続読み出し診断を実現すべく該
実施例の通信システムにおいて採用する1メッセージ当
りのフレーム構成、並びに該フレーム構成をもとに構築
される要求メッセージ及び応答メッセージのメッセージ
構成をそれぞれ示すタイムチャートである。
FIG. 3 is a diagram showing a frame configuration per message employed in the communication system of the embodiment to realize the above-described RAM value continuous reading diagnosis, and a message configuration of a request message and a response message constructed based on the frame configuration. It is a time chart shown respectively.

【図4】同実施例の通信システムを構成する電子制御装
置の通信処理手順として特に診断処理にかかる処理手順
を示すフローチャートである。
FIG. 4 is a flowchart illustrating a communication processing procedure of the electronic control device included in the communication system according to the embodiment, particularly a processing procedure related to a diagnosis process;

【図5】同実施例の通信システムを構成する電子制御装
置の通信処理手順として特に応答メッセージ構築にかか
る処理手順を示すフローチャートである。
FIG. 5 is a flowchart showing a communication procedure of the electronic control device constituting the communication system of the embodiment, particularly a processing procedure relating to construction of a response message;

【図6】米国自動車技術会(SAE)J1850基準の
パルス幅変調(PWM)方式にて採用されるビットフォ
ーマットを示すタイムチャートである。
FIG. 6 is a time chart showing a bit format used in a pulse width modulation (PWM) method based on the American Society of Automotive Engineers (SAE) J1850.

【図7】NRZ(ノン・リターン・ゼロ)方式のデータ
バイトを用いることを前提とするビットフォーマット例
を示すタイムチャートである。
FIG. 7 is a time chart showing a bit format example on the assumption that a data byte of the NRZ (non-return zero) system is used.

【符号の説明】[Explanation of symbols]

1…エンジン制御装置、2…トランスミッション制御装
置、3…通信線、4…ダイアグコネクタ、5…診断ツー
ル、11…CPU、12…ROM、13…RAM、14
…入力回路、15…出力回路、16…AD変換(AD
C)回路、17…通信回路、18…イグニションスイッ
チ、19…バッテリ、21…クランク角センサ、22…
車速センサ、23…スロットルセンサ、24…エアフロ
ーメータ、25…水温センサ、26…O2 センサ、27
…エンジン制御手段。
DESCRIPTION OF SYMBOLS 1 ... Engine control device, 2 ... Transmission control device, 3 ... Communication line, 4 ... Diag connector, 5 ... Diagnostic tool, 11 ... CPU, 12 ... ROM, 13 ... RAM, 14
... input circuit, 15 ... output circuit, 16 ... AD conversion (AD
C) circuit, 17 communication circuit, 18 ignition switch, 19 battery, 21 crank angle sensor, 22
Vehicle speed sensor, 23: throttle sensor, 24: air flow meter, 25: water temperature sensor, 26: O2 sensor, 27
... engine control means.

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04Q 9/00 - 9/16 H04L 12/40 B60R 16/00 - 16/02 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04Q 9/00-9/16 H04L 12/40 B60R 16/00-16/02

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】車両に搭載される各種電子制御装置と外部
の診断装置とを通信手段を介して接続し、診断装置は、
選択した電子制御装置に対して診断処理の実行を要求す
る要求メッセージを送信し、該選択された電子制御装置
は、その受信された要求メッセージに応じて指定された
診断処理を実行する車両診断用通信システムにおいて、 前記診断装置は、前記要求メッセージの中に、前記診断
処理の継続時間を指定する診断継続時間情報を組み込
み、 前記選択された電子制御装置は、前記要求メッセージを
受信した後、この診断継続時間情報によって指定された
時間に達するまで前記診断処理を実行し、同診断継続時
間情報によって指定された時間に達することで、該実行
中の診断処理を終了することを特徴とする車両診断用通
信システム。
An electronic control device mounted on a vehicle is connected to an external diagnostic device via communication means.
A request message for requesting execution of a diagnostic process is transmitted to the selected electronic control device, and the selected electronic control device executes a specified diagnostic process in accordance with the received request message. In the communication system, the diagnostic device incorporates, in the request message, diagnostic duration information that specifies a duration of the diagnostic processing, and the selected electronic control device, after receiving the request message, The vehicle diagnostics is characterized in that the diagnostic processing is executed until the time specified by the diagnostic duration information is reached, and the diagnostic processing being executed is terminated by reaching the time specified by the diagnostic duration information. Communication system.
【請求項2】車両に搭載される各種電子制御装置と外部
の診断装置とを通信手段を介して接続し、診断装置は、
選択した電子制御装置に対してその制御データの読み出
しを要求する要求メッセージを送信し、該選択された電
子制御装置は、その受信された要求メッセージに応じて
読み出した制御データを応答メッセージとして返信する
車両診断用通信システムにおいて、 前記診断装置は、前記要求メッセージの中に、前記制御
データの読み出しにかかる継続時間を指定する診断継続
時間情報を組み込み、 前記選択された電子制御装置は、前記要求メッセージを
受信した後、前記診断継続時間情報によって指定された
時間に達するまで、その読み出した制御データを応答メ
ッセージに組み込みつつこれを前記診断装置に対して繰
り返し返信し、同診断継続時間情報によって指定された
時間に達することで、該応答メッセージの返信を終了す
ることを特徴とする車両診断用通信システム。
2. An electronic control device mounted on a vehicle is connected to an external diagnostic device via a communication means.
A request message for requesting reading of the control data is transmitted to the selected electronic control device, and the selected electronic control device returns the read control data as a response message in response to the received request message. In the communication system for vehicle diagnosis, the diagnosis device incorporates, in the request message, diagnosis duration information that specifies a duration required for reading the control data, the selected electronic control unit transmits the request message. Until the time specified by the diagnostic duration information is reached, the read control data is repeatedly returned to the diagnostic apparatus while incorporating the read control data in the response message, and the read control data is specified by the diagnostic duration information. The reply of the response message is terminated when the time reaches Communication system for a vehicle diagnostics.
JP05190564A 1993-07-30 1993-07-30 Communication system for vehicle diagnosis Expired - Fee Related JP3089905B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05190564A JP3089905B2 (en) 1993-07-30 1993-07-30 Communication system for vehicle diagnosis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05190564A JP3089905B2 (en) 1993-07-30 1993-07-30 Communication system for vehicle diagnosis

Publications (2)

Publication Number Publication Date
JPH0746676A JPH0746676A (en) 1995-02-14
JP3089905B2 true JP3089905B2 (en) 2000-09-18

Family

ID=16260165

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05190564A Expired - Fee Related JP3089905B2 (en) 1993-07-30 1993-07-30 Communication system for vehicle diagnosis

Country Status (1)

Country Link
JP (1) JP3089905B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5905678B2 (en) * 2011-08-03 2016-04-20 株式会社デンソー Transceiver
DE102014220795A1 (en) * 2014-10-14 2016-04-14 Robert Bosch Gmbh Method for setting a current in a solenoid valve
JP2016141160A (en) 2015-01-29 2016-08-08 株式会社デンソー Electronic control unit and electronic control system
JP2016143908A (en) 2015-01-29 2016-08-08 株式会社デンソー Electronic controller and electronic control system
JP6094609B2 (en) * 2015-02-10 2017-03-15 株式会社デンソー Communications system

Also Published As

Publication number Publication date
JPH0746676A (en) 1995-02-14

Similar Documents

Publication Publication Date Title
KR100902531B1 (en) Fault diagnosis data recording system and method
US7500151B2 (en) Data logging in a motor vehicle
CA2198501C (en) Malfunction diagnosis system and method for on-vehicle electronic control units
EP0631213B1 (en) Vehicle diagnosis system
JP4772992B2 (en) Open-loop control / closed-loop control system for vehicle drive sequence and initialization method thereof
US6321148B1 (en) Vehicle communication control apparatus and method
US20060142914A1 (en) Vehicle data recording system with detachable recording apparatus
CN112068536A (en) Universal self-adaptive vehicle remote diagnosis method, device and system
JP3486990B2 (en) Serial communication device
JP3089905B2 (en) Communication system for vehicle diagnosis
CN113645097A (en) Vehicle signal monitoring method, terminal equipment and electronic control unit
EP0723350B1 (en) Master/slave communication system, device and method
CN111880510A (en) New energy automobile data acquisition and transmission method and equipment
CN113253701B (en) Vehicle remote diagnosis system and method
CN113269908A (en) Whole vehicle data management device and method for electric vehicle
JP3355831B2 (en) Vehicle communication system
JPH08223190A (en) Communication system
JPH08204709A (en) Communication system
JP3401361B2 (en) Multiplex transmission system
JP3031050B2 (en) Fault diagnosis device
JPH0772043A (en) Vehicle managing system
CN113885477A (en) Fault detection method and device
JP2021145162A (en) Communication control system
CN116580475A (en) Data recording device and method
CN115484184A (en) Fault diagnosis method, fault diagnosis system, vehicle, and readable storage medium

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000620

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090721

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100721

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110721

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120721

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees