JPH06282455A - Method for communication between electronic control unit and adjusting device - Google Patents

Method for communication between electronic control unit and adjusting device

Info

Publication number
JPH06282455A
JPH06282455A JP5068492A JP6849293A JPH06282455A JP H06282455 A JPH06282455 A JP H06282455A JP 5068492 A JP5068492 A JP 5068492A JP 6849293 A JP6849293 A JP 6849293A JP H06282455 A JPH06282455 A JP H06282455A
Authority
JP
Japan
Prior art keywords
monitor
adjusting device
control unit
electronic control
data
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.)
Withdrawn
Application number
JP5068492A
Other languages
Japanese (ja)
Inventor
Nagahisa Fujita
永久 藤田
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.)
Mazda Motor Corp
Original Assignee
Mazda Motor 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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP5068492A priority Critical patent/JPH06282455A/en
Publication of JPH06282455A publication Critical patent/JPH06282455A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To preclude malfunction due to the effect of a noise by decreasing the number of signal lines for parallel communication. CONSTITUTION:This method is equipped with the electronic control unit(ECU) which has an >=8-bit CPU 11 and the adjusting device 2 which debugs the storage contents of its memory part (RAM) 13 for monitoring, etc. System buses whose number of buses is an integral multiple of 4 among data buses as many as the bits of the CPU 11 are connected to the adjusting device 2 and when signals are written and read between the ECU1 and adjusting device 2 through those system buses, they are written and read divisionally more than twice.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子制御ユニットとそ
のメモリ部の記憶内容をデバッグするための調整装置と
間の通信方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication method between an electronic control unit and an adjusting device for debugging the stored contents of its memory section.

【0002】[0002]

【従来の技術】一般に、自動車や家電製品等に用いられ
る電子制御ユニット(ECU)は、CPUとメモリ部と
してのROM及びRAMとを有している。このECUの
開発時には、ROM内容(制御データ等)を書き換えた
り、RAM内容(一時的に使用する制御変数等)をモニ
タするなどデバッグを行う必要がある。特に、自動車の
エンジン制御やABS制御等に用いられるECUの場
合、自動車の挙動と制御プログラムとの相関関係をリア
ルタイムに記録し、検討を加える必要がある。このため
のECU調整装置は、近年、種々のものが提案され、実
用化されている。
2. Description of the Related Art Generally, an electronic control unit (ECU) used for automobiles, home electric appliances and the like has a CPU and a ROM and a RAM as a memory section. When developing this ECU, it is necessary to perform debugging such as rewriting ROM contents (control data etc.) or monitoring RAM contents (temporarily used control variables etc.). In particular, in the case of an ECU used for automobile engine control, ABS control, etc., it is necessary to record the correlation between the behavior of the automobile and the control program in real time for further consideration. In recent years, various types of ECU adjustment devices have been proposed and put into practical use.

【0003】ところで、従来、上記ECUとその調整装
置との間の通信方式は、転送速度とECUの回路変更が
少なくて済むこととからECU内のCPUのシステムバ
ス(アドレスバス、データバス及びコントロールバス)
を利用した、パラレル通信方式が普通である。
By the way, in the conventional communication system between the ECU and its adjusting device, since the transfer rate and the circuit change of the ECU are small, the system bus (address bus, data bus and control of the CPU in the ECU). bus)
The parallel communication method using is common.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の通信方式では、CPUのシステムバスを、ECUに
接続される調整装置まで引き回すため、ノイズの影響に
より、クロストーク、タイミングのズレ等のエラーが発
生し易いという問題がある。特に、ビット数の多い(1
6、32ビット)CPUの場合、データバスだけでもそ
のCPUのビット数に相当する本数の信号線が外部に接
続されるので、この問題が顕著である。
However, in the above-mentioned conventional communication system, since the system bus of the CPU is routed to the adjustment device connected to the ECU, errors such as crosstalk and timing deviation may occur due to the influence of noise. There is a problem that it easily occurs. Especially, the number of bits is large (1
In the case of (6, 32 bits) CPU, this problem is remarkable because the number of signal lines corresponding to the number of bits of the CPU is connected to the outside only by the data bus.

【0005】本発明はかかる点に鑑みてなされたもので
あり、その目的とするところは、ECUと調整装置との
間の通信方法を改良して、ノイズの影響による誤動作の
発生を防止することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to improve a communication method between an ECU and an adjusting device to prevent occurrence of malfunction due to influence of noise. It is in.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明では、8ビット以上のCPUを
有する電子制御ユニットとそのメモリ部の記憶内容をデ
バッグするための調整装置との間の通信方法として、上
記CPUのシステムバスのうち、4の整数倍の数のシス
テムバスを調整装置に接続し、これらのシステムバスを
通して電子制御ユニットと調整装置との間で信号の読み
込み及び書き込みを行うに当たり、各々2回以上に分け
て行う構成とする。
In order to achieve the above object, in the invention according to claim 1, an electronic control unit having a CPU of 8 bits or more and an adjusting device for debugging the stored contents of the memory part thereof are provided. As a communication method between them, among the system buses of the above-mentioned CPU, a number of system buses that is an integer multiple of 4 are connected to the adjusting device, and signals are read and written between the electronic control unit and the adjusting device through these system buses. When performing the above, it is configured so as to be performed twice or more.

【0007】請求項2記載の発明は、請求項1記載の発
明に従属し、その構成要素である調整装置を具体的に示
すものである。すなわち、上記調整装置は、電子制御ユ
ニットのメモリ部の記憶内容をモニタするものである。
The invention according to claim 2 is dependent on the invention according to claim 1, and specifically shows an adjusting device as a component thereof. That is, the adjusting device monitors the stored contents of the memory section of the electronic control unit.

【0008】請求項3及び4記載の発明は、いずれも請
求項2記載の発明に従属し、電子制御ユニットと調整装
置との間で信号の読み込み及び書き込みを行ってモニタ
する際、通信時間を短縮するためにその通信手順を改良
するものである。
The inventions according to claims 3 and 4 are both dependent on the invention according to claim 2, and when a signal is read and written between the electronic control unit and the adjusting device for monitoring, the communication time is increased. The communication procedure is improved to shorten it.

【0009】すなわち、請求項3記載の発明は、最初の
サンプリング時に調整装置側からチャンネル数分のモニ
タアドレス信号を順次電子制御ユニット側に送出する工
程と、上記モニタアドレス信号に基づいて、電子制御ユ
ニット側から調整装置側に対し、データ送出信号を送出
した後、チャンネル数分のモニタデータ信号を順次送出
する工程と、2回目以降のサンプリング時に調整装置側
からのモニタアドレス信号に基づくことなく、電子制御
ユニット側から調整装置側に対し、データ送出信号を送
出した後、チャンネル数分のモニタデータ信号を順次送
出する工程とを備える構成とする。
That is, according to the third aspect of the invention, the step of sequentially sending the monitor address signals for the number of channels from the adjusting device side to the electronic control unit side at the time of the first sampling, and the electronic control based on the monitor address signal are carried out. After sending the data sending signal from the unit side to the adjusting device side, sequentially sending the monitor data signals for the number of channels, and without being based on the monitor address signal from the adjusting device side during the second and subsequent sampling, After the data transmission signal is transmitted from the electronic control unit side to the adjustment device side, monitor data signals for the number of channels are sequentially transmitted.

【0010】また、請求項4記載の発明は、モニタチャ
ンネルを、モニタ要素の変化度合いに応じてグループ分
けをし、モニタ要素の変化度合いが高い程そのグループ
のサンプリングレートを高くする構成とする。
Further, in the invention according to claim 4, the monitor channels are divided into groups according to the degree of change of the monitor elements, and the higher the degree of change of the monitor elements, the higher the sampling rate of the group.

【0011】[0011]

【作用】上記の構成により、請求項1記載の発明では、
電子制御ユニットと調整装置との間の通信は、CPUの
システムバスのうちの、4の整数倍の数のシステムバス
を用いて行われ、通信用信号が少なくなっているため、
その分ノイズの発生が抑制されることなる。
With the above construction, in the invention according to claim 1,
Communication between the electronic control unit and the adjusting device is performed by using a system bus of an integral multiple of 4 among the system buses of the CPU, and the number of communication signals is reduced,
The generation of noise is suppressed accordingly.

【0012】請求項3記載の発明では、電子制御ユニッ
トと調整装置との間で信号の読み込み及び書き込みを行
って電子制御ユニットのメモリ部の記憶内容を調整装置
でモニタするとき、2回目以降のサンプリング時に調整
装置側からモニタアドレス信号を送信することなく、電
子制御ユニット側から直ちにデータ送出信号を送出し、
チャンネル数分のモニタデータ信号を順次送出するの
で、モニタアドレス信号の送受信に要する時間分通信時
間が短縮されることになる。
According to the third aspect of the present invention, when the adjustment device monitors the storage contents of the memory section of the electronic control unit by reading and writing signals between the electronic control unit and the adjustment device, the second and subsequent times are performed. Without sending the monitor address signal from the adjusting device side at the time of sampling, the electronic control unit side immediately sends the data sending signal,
Since the monitor data signals for the number of channels are sequentially transmitted, the communication time is shortened by the time required for transmitting / receiving the monitor address signal.

【0013】請求項4記載の発明では、電子制御ユニッ
トと調整装置との間で信号の読み込み及び書き込みを行
って電子制御ユニットのメモリ部の記憶内容を調整装置
でモニタするとき、モニタチャンネルはモニタ要素の変
化度合いに応じてグループ分けされ、モニタ要素の変化
度合いが高い程そのグループのサンプリングレートが高
くなっているので、モニタ精度の低下を招くことなく、
サンプリング回数ないし通信回数を可及的に少なくする
ことができる。
According to a fourth aspect of the present invention, when a signal is read and written between the electronic control unit and the adjusting device to monitor the contents stored in the memory section of the electronic control unit by the adjusting device, the monitor channel is a monitor channel. It is divided into groups according to the degree of change of elements, and the higher the degree of change of monitor elements, the higher the sampling rate of that group, so without degrading the monitor accuracy,
The number of times of sampling or communication can be reduced as much as possible.

【0014】[0014]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1は本発明の第1実施例に係わる通信方
法を用いるための通信装置を示し、この通信装置は、電
子制御ユニット(ECU)1と調整装置2との間の信号
の送受信をパラレル通信で行うものである。
FIG. 1 shows a communication device for using the communication method according to the first embodiment of the present invention, which transmits and receives signals between an electronic control unit (ECU) 1 and an adjusting device 2. It is performed by parallel communication.

【0016】上記ECU1には、CPU11と、メモリ
部としてのROM(リードオンリーメモリ)12及びR
AM(ランダムアクセスメモリ)13と、接続コネクタ
14とが内臓されている。上記CPU11は、16ビッ
トのものでかつ拡張バスモードに設定されており、その
アドレスバス15、データバス16及びコントロールバ
ス17は共にROM12、RAM13及び接続コネクタ
14にそれぞれ接続されている。上記ROM12にはE
CU1の制御プログラム、制御データ及びRAMモニタ
プログラム(後述するモニタサービスルーチン)が格納
されている。上記RAM13は、CPU11が制御を行
う上で一時的に使用する制御変数を格納するとともに、
演算用ワークエリアとして用いられる。
The ECU 1 includes a CPU 11, a ROM (read only memory) 12 as a memory unit, and an R.
An AM (random access memory) 13 and a connection connector 14 are built in. The CPU 11 is of a 16-bit type and is set to the extended bus mode, and its address bus 15, data bus 16 and control bus 17 are all connected to the ROM 12, RAM 13 and connection connector 14, respectively. The ROM 12 has E
A control program of CU1, control data, and a RAM monitor program (a monitor service routine described later) are stored. The RAM 13 stores control variables used temporarily by the CPU 11 for control, and
It is used as a work area for calculation.

【0017】また、上記接続コネクタ14は、調整装置
2側とケーブル31を介して接続するためのものであ
り、該接続コネクタ14には、CPU11からのアドレ
スバス15、データバス16及びコントロールバス17
がそれぞれ接続されている。ここで、CPU11は、1
6ビットのものであるから、データバス16を16本有
し、CPU11とROM12及びRAM13との間では
16本全てのデータバス15が接続されているが、本発
明の特徴点として、CPU11と接続コネクタ14との
間では、16本のデータバス15のうちの半分の8本が
接続されている。
The connection connector 14 is for connecting to the adjusting device 2 side via a cable 31, and the connection connector 14 has an address bus 15, a data bus 16 and a control bus 17 from the CPU 11.
Are connected respectively. Here, the CPU 11
Since it is a 6-bit type, it has 16 data buses 16 and all 16 data buses 15 are connected between the CPU 11 and the ROM 12 and the RAM 13. However, as a feature of the present invention, the CPU 11 is connected. Between the connector 14 and half of the 16 data buses 15, 8 are connected.

【0018】一方、上記調整装置2は、上記ECU1の
RAM13の記憶内容をモニタするRAMモニタ機能を
発揮するものであり、制御指令部21とRAMモニタ制
御部22とRAMモニタ収集部23とRAMモニタ表示
部24と接続コネクタ25とを備えている。
On the other hand, the adjusting device 2 has a RAM monitor function for monitoring the contents stored in the RAM 13 of the ECU 1, and includes a control command unit 21, a RAM monitor control unit 22, a RAM monitor collecting unit 23, and a RAM monitor. The display unit 24 and the connection connector 25 are provided.

【0019】上記制御指令部21は、ユーザ等の要求
(操作を含む)を受け、RAMモニタ制御部22に対
し、制御指令を出力する。上記RAMモニタ制御部22
は、制御指令部21の指令を受け、RAMモニタ収集部
23及びRAMモニタ表示部24の制御を行う。また、
上記RAMモニタ収集部23は、RAMモニタ制御部2
2の制御指令を受取り、接続コネクタ25を通して入力
されるRAMモニタデータの収集を行う。その後、モニ
タデータをRAMモニタ制御部22に送出する。上記R
AMモニタ表示部24は、RAMモニタ制御部22から
送られたモニタデータをリアルタイムに画面に表示す
る。
The control command section 21 outputs a control command to the RAM monitor control section 22 in response to a request (including operation) from a user or the like. The RAM monitor controller 22
Receives the command from the control command unit 21, and controls the RAM monitor collection unit 23 and the RAM monitor display unit 24. Also,
The RAM monitor collection unit 23 is the RAM monitor control unit 2
The control command No. 2 is received and the RAM monitor data input through the connector 25 is collected. After that, the monitor data is sent to the RAM monitor control unit 22. R above
The AM monitor display unit 24 displays the monitor data sent from the RAM monitor control unit 22 on the screen in real time.

【0020】さらに、上記接続コネクタ25は、ECU
1側とケーブル31を介して接続するためのものであ
り、該接続コネクタ25とRAMモニタ制御部22とR
AMモニタ収集部23とは、3種類のシステムバスであ
るアドレスバス26、データバス27及びコントロール
バス28により互いに信号授受可能に接続されている。
ここで、データバス27の本数は、ECU1側のCPU
11と接続コネクタ14との間におけるデータバス16
の本数と同じく8本に設定されている。
Further, the connection connector 25 is an ECU.
1 for connecting via the cable 31, the connection connector 25, the RAM monitor controller 22 and R
The AM monitor collecting unit 23 is connected to the AM monitor collecting unit 23 via an address bus 26, a data bus 27, and a control bus 28, which are three types of system buses, so that signals can be exchanged between them.
Here, the number of data buses 27 is the CPU of the ECU 1 side.
Data bus 16 between 11 and connector 14
The number is set to 8 as well.

【0021】そして、上記ECU1側の接続コネクタ1
4と調整装置2側の接続コネクタ25とは、ケーブル3
1によりパラレル通信で送受信可能に接続されている。
上記ケーブル31はシステムバスの一部を構成してお
り、その信号線は、データバス用として8本設けられて
いる。ECU1と調整装置2との間の通信は、ハンドシ
ェークを取りながら行われる。
Then, the connector 1 on the ECU 1 side
4 and the connector 25 on the adjusting device 2 side are connected to the cable 3
1 is connected by parallel communication so that transmission and reception is possible.
The cable 31 constitutes a part of the system bus, and eight signal lines for the data bus are provided. The communication between the ECU 1 and the adjustment device 2 is performed while handshaking.

【0022】次に、上記通信装置の作動について、調整
装置2側とECU1側とに分けて説明する。
Next, the operation of the communication device will be described separately for the adjusting device 2 side and the ECU 1 side.

【0023】先ず、調整装置2側の作動を説明するに、
ユーザからのモニタ指令(要求)があると、ECU1に
対しモニタデータの送出を指令する。ECU1からデー
タが送られて来ると、RAMモニタ表示部24へモニタ
データをリアルタイムに表示する。この作動順序は、詳
しくは以下のようになる。
First, to explain the operation of the adjusting device 2,
When there is a monitor command (request) from the user, the ECU 1 is instructed to send the monitor data. When data is sent from the ECU 1, the monitor data is displayed on the RAM monitor display unit 24 in real time. The operation sequence will be described in detail below.

【0024】すなわち、先ず始めに、ユーザからのモニ
タ要求があると、制御指令部21は、モニタ情報(モニ
タチャンネル数、アドレス、属性(バイト又はワー
ド))を指定し、RAMモニタ制御部22に送出する。
That is, first, when there is a monitor request from the user, the control command section 21 specifies the monitor information (the number of monitor channels, the address, the attribute (byte or word)), and the RAM monitor control section 22. Send out.

【0025】RAMモニタ制御部22は、上記モニタ情
報に基づき、RAMモニタ収集部23に対し、モニタ開
始・終了コマンド、モニタチャンネル数及び各チャンネ
ルのアドレスと属性を指令する。
Based on the monitor information, the RAM monitor control section 22 commands the RAM monitor collection section 23 to issue a monitor start / end command, the number of monitor channels, and the address and attribute of each channel.

【0026】RAMモニタ収集部23は、システムバ
ス、特にデータバス27,31,16を介して、ECU
1と所定のプロトコルで通信を行う。通信はモニタ開始
コマンドで開始し、モニタ終了コマンドが送られるま
で、繰り返しECU1との通信は行われる。ECU1か
らモニタデータが送られ、RAMモニタ収集部23のメ
モリに一時蓄えられる。
The RAM monitor collecting unit 23 is connected to the ECU via the system bus, particularly the data buses 27, 31, and 16.
1 and a predetermined protocol. The communication starts with the monitor start command, and the communication with the ECU 1 is repeatedly performed until the monitor end command is sent. Monitor data is sent from the ECU 1 and is temporarily stored in the memory of the RAM monitor collection unit 23.

【0027】また、RAMモニタ制御部22は、モニタ
データの表示に先立ち、表示データの情報(チャンネル
数、属性等)をRAMモニタ表示部24へ送る。続い
て、RAMモニタ収集部23のモニタデータを読み込
み、RAMモニタ表示部24へそのデータを送る。RA
Mモニタ表示部24では表示データの情報に基づき所定
のフォーマットでリアルタイムにデータを画面に表示す
る。
Further, the RAM monitor control section 22 sends information of the display data (the number of channels, attributes, etc.) to the RAM monitor display section 24 before displaying the monitor data. Then, the monitor data of the RAM monitor collection unit 23 is read and the data is sent to the RAM monitor display unit 24. RA
The M monitor display unit 24 displays the data on the screen in real time in a predetermined format based on the information of the display data.

【0028】次に、ECU1側の作動、特に、調整装置
2側との通信について説明する。この調整装置2側との
通信は、システムバス、特にデータバス16,31,2
7を介して行われ、モニタデータ(RAM13の記憶内
容)を送出する。この通信は、所定のプロトコル(フロ
ー)である、図2に示すモニタサービスルーチンに従っ
て行われる。以下、このモニタサービスルーチンについ
て説明する。
Next, the operation of the ECU 1 side, particularly the communication with the adjusting device 2 side will be described. The communication with the adjusting device 2 side is performed by the system bus, particularly the data buses 16, 31 and 2.
7 and sends monitor data (contents stored in the RAM 13). This communication is performed according to a monitor service routine shown in FIG. 2, which is a predetermined protocol (flow). The monitor service routine will be described below.

【0029】図2に示すフローは、ECU1側と調整装
置2側とでソフト的に歩調(ハンドシェイク)を取りな
がら通信を行い、調整装置2から指定されたアドレスの
RAM13内容をモニタする方法である。通信はディバ
イスアドレスと呼ばれる共通のアドレス(XX00から
XX02、XXは任意設定可)を設け、このアドレスを
窓口に通信を行う。
The flow shown in FIG. 2 is a method of monitoring the contents of the RAM 13 at the address designated by the adjusting device 2 by communicating while the ECU 1 side and the adjusting device 2 side take steps in a software manner (handshake). is there. For communication, a common address called a device address (XX00 to XX02, XX can be arbitrarily set) is provided, and communication is performed using this address as a window.

【0030】図2において、スタートした後、先ず始め
に、ステップS1 でディバイスアドレスXX02を読み
込み、ステップS2 でそのディバイスアドレスXX02
のビット7の値が「0」であるか否かを判定する。この
ビット7は、調整装置2との接続状態をチェックするた
めのものであり、その値が「0」のときは接続時を示
し、「1」のときは非接続時を示す。
In FIG. 2, after starting, the device address XX02 is first read in step S1, and the device address XX02 is read in step S2.
It is determined whether or not the value of bit 7 of is "0". This bit 7 is for checking the connection state with the adjusting device 2. When the value is "0", it indicates connection, and when it is "1", it indicates non-connection.

【0031】そして、上記判定がNOの非接続時にはそ
のままリターンする一方、判定がYESの接続時には、
ステップS3 及びS4 でモニタアドレスであるディバイ
スアドレスXX00を、上位アドレスと下位アドレスと
の2回に分けて読み込んだ後、ステップS5 及びS6 で
上記モニタアドレスに対応するRAM13の内容(モニ
タデータ)をディバイスアドレスXX01に上位バイト
と下位バイトとの2回に分けて書き込み、調整装置2側
へ送出する。尚、読み込み及び書き込みを2回に分けて
行うのは、16ビットのCPU11に対し、そのビット
数の半分の8本のデータバス16,31,27を介して
ECU1側の部品(CPU11等)と調整装置2側の部
品(RAMモニタ収集部23等)とを接続したことに対
応したものである。
Then, when the above judgment is NO, the process returns as it is, while when the judgment is YES, it returns.
In steps S3 and S4, the device address XX00, which is the monitor address, is read in two times, the upper address and the lower address, and then in steps S5 and S6, the contents (monitor data) of the RAM 13 corresponding to the monitor address are divided. The upper byte and the lower byte are written to the address XX01 separately in two times and sent to the adjusting device 2 side. It should be noted that the read and write operations are performed in two steps separately for the 16-bit CPU 11 and the parts (CPU 11 etc.) on the ECU 1 side through the eight data buses 16, 31, 27, which is half the number of bits. This corresponds to the connection with the parts on the adjusting device 2 side (such as the RAM monitor collecting unit 23).

【0032】続いて、ステップS7 で再びディバイスア
ドレスXX02を読み込み、ステップS8 でそのディバ
イスアドレスXX02のビット0の値が「1」であるか
否かを判定する。このビット0は、次のチャンネルの有
無をチェックするためのものであり、その値が「0」の
ときはチャンネル無しを示し、「1」のときはチャンネ
ル有りを示す。
Subsequently, the device address XX02 is read again in step S7, and it is determined in step S8 whether the value of bit 0 of the device address XX02 is "1". This bit 0 is for checking the presence or absence of the next channel. When the value is "0", it indicates that there is no channel, and when it is "1", it indicates that there is a channel.

【0033】そして、上記判定がNOとなるまで、つま
り次のチャンネルが無くなるまでステップS3 〜S6 を
繰り返することにより、チャンネル数分のモニタデータ
を調整装置2側へ送出する。しかる後リターンする。
Then, steps S3 to S6 are repeated until the above determination is NO, that is, until the next channel is exhausted, thereby sending monitor data for the number of channels to the adjusting device 2 side. Then return.

【0034】したがって、上記第1実施例においては、
16ビットのCPU11を有するECU1と調整装置2
との間でパラレル通信を行うに当たり、CPU11のビ
ット数の半分のデータバス16,27,31を用いて両
者1,2を接続し、これらのデータバス16,27,3
1を通して両者1,2間の1サンプリング・1チャンネ
ル当たりの信号の書き込み及び読み込みを各々2回に分
けて行っているため、通信用信号の総数(システムバス
全部の本数に相当)を可及的に少なくすることができ、
その分ノイズの発生を抑制してモニタを正確に行うこと
ができる。
Therefore, in the first embodiment described above,
ECU 1 having 16-bit CPU 11 and adjusting device 2
When performing parallel communication with the data bus 16, the data buses 16, 27 and 31 having half the number of bits of the CPU 11 are used to connect the data buses 1 and 2 and these data buses 16, 27 and 3 are connected.
Since 1 sampling and writing / reading of signals per channel between 1 and 2 are performed twice through 1, the total number of communication signals (corresponding to the total number of system buses) is possible. Can be reduced to
Therefore, the noise can be suppressed and the monitoring can be performed accurately.

【0035】図3〜図6は本発明の第2実施例としてE
CUと調整装置との間の通信をパラレル通信により行う
場合におけるプロトコル、つまり通信方法の変形例を示
すものである。図3及び図4は調整装置側のプロトコル
であるモニタルーチンを示し、図5及び図6はECU側
のプロトコルであるモニタサービスルーチンを示す。
尚、ECU、調整装置及びこれら両者間の通信装置の構
成は、第1実施例の場合と全く同じであり、以下の説明
では、これらの構成要素に同一の符号を用いる。
3 to 6 show E as a second embodiment of the present invention.
It shows a modified example of a protocol, that is, a communication method when parallel communication is performed between the CU and the adjustment device. 3 and 4 show a monitor routine which is a protocol on the adjusting device side, and FIGS. 5 and 6 show a monitor service routine which is a protocol on the ECU side.
The configurations of the ECU, the adjustment device, and the communication device between them are exactly the same as those in the first embodiment, and the same reference numerals are used for these components in the following description.

【0036】図3及び図4において、スタートした後、
先ず始めに、ステップS11でECU1との接続を意味す
る接続データ80hをディバイスアドレスXX02に書
き込み、ECU1側へ送出する。続いて、ステップS12
でサンプリングが1回目であるか否かを判定し、その判
定がYESのときには、ステップS13及びS14でディバ
イスアドレスXX00にモニタアドレスを、上位アドレ
スと下位アドレスとの2回に分けて書き込み、ECU1
側へ送出する。そして、ステップS15で全チャンネルの
モニタアドレスの書き込みが終了したことを確認した
後、ステップS16へ移行する。一方、上記ステップS12
の判定がNOのとき、つまり最初のサンプリング時でな
く2回目以降のサンプリング時には、直ちにステップS
16へ移行する。
In FIGS. 3 and 4, after the start,
First, in step S11, the connection data 80h, which means the connection with the ECU 1, is written in the device address XX02 and sent to the ECU 1 side. Then, step S12
In step S13 and S14, the monitor address is written to the device address XX00 separately in two steps, that is, the upper address and the lower address, and it is determined whether or not the ECU 1
Send to the side. Then, in step S15, after confirming that the writing of the monitor addresses of all the channels is completed, the process proceeds to step S16. On the other hand, the above step S12
When the determination is NO, that is, when the second and subsequent samplings are performed instead of the first sampling, the step S is immediately executed.
Move to 16.

【0037】ステップS16ではディバイスアドレスXX
01を読み込み、ECU1側からのデータ送出情報を得
る。しかる後、ステップS17及びS18でディバイスアド
レスXX01を読み込み、ECU1側から送出されるモ
ニタデータ(上位データと下位データとの2回分のデー
タ)を得、先のデータ送出情報に基づいて、データをR
AMモニタ収集部23に格納する。
In step S16, the device address XX
01 is read to obtain data transmission information from the ECU 1 side. Then, in steps S17 and S18, the device address XX01 is read, the monitor data (the upper data and the lower data for two times) sent from the ECU 1 side is obtained, and the data is read based on the previous data sending information.
It is stored in the AM monitor collection unit 23.

【0038】続いて、ステップS19で全チャンネルのモ
ニタデータの収集が終了したか否かを判定し、その判定
がNOのときには、ステップS20で全チャンネルのモニ
タデータの収集途中を意味する収集途中データ01hを
ディバイスアドレスXX02に書き込んだ後、ステップ
S17へ戻る。一方、判定がYESのときには、ステップ
S21で全チャンネルのモニタデータの収集終了を意味す
る収集終了データ00hをディバイスアドレスXX02
に書き込んだ後、ステップS22で制御指令部21からの
指令がモニタを終了するものであるか否かを判定する。
この判定がNOのときはステップS11へ戻る一方、判定
がYESのときは制御を終了する。
Then, in step S19, it is determined whether or not the collection of the monitor data of all the channels is completed. If the determination is NO, in the step S20, the collection of intermediate data indicating that the collection of the monitor data of all the channels is being completed. After writing 01h to the device address XX02, the process returns to step S17. On the other hand, if the determination is YES, in step S21, the collection end data 00h, which means the end of the collection of the monitor data of all channels, is given as the device address XX02.
After writing to, it is determined in step S22 whether the command from the control command unit 21 is to end the monitoring.
If the determination is NO, the process returns to step S11, while if the determination is YES, the control ends.

【0039】図5及び図6において、スタートした後、
先ず始めに、ステップS31で調整装置2側からのディバ
イスアドレスXX02を読み込み、ステップS32でその
ディバイスアドレスXX02の値が接続データ80hで
あるか否かを判定する。この判定がNOの非接続時には
そのままリターンする一方、判定がYESの接続時に
は、ステップS33でサンプリングが1回目であるか否か
を判定する。
In FIGS. 5 and 6, after the start,
First, in step S31, the device address XX02 from the adjustment device 2 side is read, and in step S32, it is determined whether or not the value of the device address XX02 is the connection data 80h. When the determination is NO, the routine returns as it is, while when the determination is YES, it is determined in step S33 whether or not the sampling is the first sampling.

【0040】上記ステップS33の判定がYESのときに
は、ステップS34及びS35で調整装置2側からのモニタ
アドレスであるディバイスアドレスXX00を上位アド
レスと下位アドレスとの2回に分けて読み込んだ後、ス
テップS36でこの読み込んだアドレスを順にADDTB
Lに格納する。そして、ステップS37で全チャンネルの
モニタアドレスの読み込みが終了したことを確認した
後、ステップS38へ移行する。一方、上記ステップS33
の判定がNOのとき、つまり最初のサンプリング時でな
く2回目以降のサンプリング時には、直ちにステップS
38へ移行する。
When the determination in step S33 is YES, the device address XX00, which is the monitor address from the adjusting device 2 side, is read in two steps, the upper address and the lower address, in steps S34 and S35, and then the step S36. Then, this read address is sequentially added to ADDTB.
Store in L. Then, after confirming that the reading of the monitor addresses of all the channels is completed in step S37, the process proceeds to step S38. On the other hand, the above step S33
When the determination is NO, that is, when the second and subsequent samplings are performed instead of the first sampling, the step S is immediately executed.
Move to 38.

【0041】ステップS38ではデータ送出情報をディバ
イスアドレスXX01に書き込み、調整装置2側へ送出
する。続いて、ステップS39及びS40で上記ADDTB
Lで示されるアドレスのRAM13の内容(モニタデー
タ)を順にディバイスアドレスXX01に上位バイトと
下位バイトとの2回に分けて書き込み、調整装置2側へ
送出する。
In step S38, the data transmission information is written in the device address XX01 and transmitted to the adjusting device 2 side. Then, in steps S39 and S40, the ADDTB is added.
The contents (monitor data) of the RAM 13 at the address indicated by L are sequentially written into the device address XX01 in two steps, the upper byte and the lower byte, and sent to the adjusting device 2 side.

【0042】そして、ステップS41で全チャンネルのモ
ニタデータの送出が終了したことを確認した後、ステッ
プS42で再びディバイスアドレスXX02を読み込み、
ステップS43でそのディバイスアドレスXX02の値が
収集終了データ00hであるか否かを判定する。この判
定がYESのときはリターンする一方、判定がNOのと
きはステップS33へ戻り、モニタデータの送出を続け
る。
Then, in step S41, after confirming that the transmission of the monitor data of all the channels is completed, in step S42 the device address XX02 is read again,
In step S43, it is determined whether the value of the device address XX02 is the collection end data 00h. If the determination is YES, the process returns. On the other hand, if the determination is NO, the process returns to step S33 to continue sending the monitor data.

【0043】このようなプロトコルに基づいたECU1
と調整装置2との間の通信の場合、最初のサンプリング
時には、調整装置2側からチャンネル数分のモニタアド
レス信号が順次ECU1側に送出され、これらのモニタ
アドレス信号に基づいて、ECU1側から調整装置2側
に対し、データ送出信号(情報)が送出された後、チャ
ンネル数分のモニタデータ信号が順次送出される。一
方、2回目以降のサンプリング時には、調整装置2側か
らのモニタアドレス信号に基づくことなく、ECU1側
から調整装置2側に対し、データ送出信号が送出された
後、チャンネル数分のモニタデータ信号が順次送出され
る。このため、2回目以降のサンプリング時におけるモ
ニタアドレス信号の送受信に要する時間を省略すること
ができ、その分通信時間の短縮化を図ることができる。
ECU 1 based on such a protocol
In the case of communication between the adjustment device 2 and the adjustment device 2, monitor address signals for the number of channels are sequentially sent from the adjustment device 2 side to the ECU 1 side at the time of the first sampling, and the ECU 1 side adjusts based on these monitor address signals. After the data transmission signal (information) is transmitted to the device 2, the monitor data signals for the number of channels are sequentially transmitted. On the other hand, during the second and subsequent samplings, after the data transmission signal is transmitted from the ECU 1 side to the adjustment device 2 side, the monitor data signals for the number of channels are not transmitted based on the monitor address signal from the adjustment device 2 side. It is sent out sequentially. Therefore, the time required for transmitting and receiving the monitor address signal during the second and subsequent samplings can be omitted, and the communication time can be shortened accordingly.

【0044】また、第1実施例の場合と同様に、CPU
11のビット数の半分のデータバス16,27,31を
用いて両者1,2を接続し、これらのデータバス16,
27,31を通して両者1,2間の1サンプリング・1
チャンネル当たりの信号の書き込み及び読み込みを各々
2回に分けて行っているため、通信用信号の総数を可及
的に少なくしてノイズの発生を抑制することができ、モ
ニタを正確に行うことができるという効果を有するのは
勿論である。
Further, as in the case of the first embodiment, the CPU
The data buses 16, 27, 31 having half the number of bits of 11 are used to connect both 1, 2 and
1 sampling between 1 and 2 through 27 and 31
Since the writing and reading of signals for each channel are performed twice each, the total number of communication signals can be reduced as much as possible to suppress noise generation, and accurate monitoring can be performed. Of course, it has the effect of being able to do so.

【0045】図7〜図9は本発明の第3実施例としてE
CUと調整装置との間の通信をパラレル通信により行う
場合におけるプロトコルの別の変形例を示すものであ
る。図7及び図8は調整装置側のプロトコルであるモニ
タルーチンを示し、図9はECU側のプロトコルである
モニタサービスルーチンを示す。尚、ECU及び調整装
置の構成は、第1実施例の場合と全く同じであり、以下
の説明では、これらの構成要素に同一の符号を用いる。
7 to 9 show E as a third embodiment of the present invention.
It shows another modified example of the protocol when the communication between the CU and the adjustment device is performed by parallel communication. 7 and 8 show a monitor routine which is a protocol on the adjusting device side, and FIG. 9 shows a monitor service routine which is a protocol on the ECU side. The configurations of the ECU and the adjusting device are exactly the same as those in the first embodiment, and the same reference numerals are used for these components in the following description.

【0046】図7及び図8において、スタートした後、
先ず始めに、ステップS51でモニタチャンネルを高速と
中速と低速との三つのグループに分ける。高速グループ
には、モニタ要素の変化度合いが高く5ms以下の時間
間隔での処理又は割り込み処理が必要なモニタ要素が含
まれる。中速グループには、モニタ要素の変化度合いが
中程度で5〜20ms以内の時間間隔での処理が必要な
モニタ要素が含まれる。低速グループには、モニタ要素
の変化度合いが低く20ms以上の時間間隔での処理で
足りるモニタ要素が含まれる。例えば自動車のエンジン
制御用ECUの場合、エンジン回転数、吸気流量及び点
火時期等は高速グループに含まれ、アクセルの踏み具合
やエンジンのモード切換え等ドライバーが操作する要素
は中速グループに含まれ、吸気ガス温度及び水温等は低
速グループに含まれる。そして、高速グループをアドレ
ステーブルTf に、中速グループをアドレステーブルT
mに、低速グループをアドレステーブルTs にそれぞれ
セットする。
7 and 8, after the start,
First, in step S51, the monitor channels are divided into three groups of high speed, medium speed, and low speed. The high-speed group includes monitor elements that have a high degree of change in monitor elements and require processing or interrupt processing at time intervals of 5 ms or less. The medium speed group includes monitor elements that have a moderate degree of change in the monitor elements and that require processing at time intervals within 5 to 20 ms. The low speed group includes monitor elements that have a low degree of change in the monitor elements and that can be processed in a time interval of 20 ms or more. For example, in the case of an automobile engine control ECU, the engine speed, the intake flow rate, the ignition timing, etc. are included in the high speed group, and the elements operated by the driver such as the accelerator depression degree and the engine mode switching are included in the medium speed group, Intake gas temperature, water temperature, etc. are included in the low speed group. Then, the high speed group is set to the address table Tf and the medium speed group is set to the address table Tf.
The low speed group is set in m and the low speed group is set in the address table Ts.

【0047】続いて、ステップS52でECU1との接続
を意味する接続データ80hをディバイスアドレスXX
02に書き込み、ECU1側へ送出した後、ステップS
53で前回サンプルフラグFo を読み込み、今回サンプル
フラグFを次のようにセットする。つまり、前回サンプ
ルフラグFo が高速であれば今回サンプルフラグFを中
速にセットし、前回サンプルフラグFo が中速であれば
今回サンプルフラグFを低速にセットし、前回サンプル
フラグFo が低速であれば今回サンプルフラグFを高速
にセットする。
Subsequently, in step S52, the connection data 80h, which means the connection with the ECU 1, is set to the device address XX.
02, and sends it to the ECU 1 side, and then the step S
At 53, the previous sample flag Fo is read and the current sample flag F is set as follows. That is, if the previous sample flag Fo is high, the current sample flag F is set to medium speed, if the previous sample flag Fo is medium speed, the current sample flag F is set to low speed, and the previous sample flag Fo is low. For example, the sample flag F is set at high speed this time.

【0048】続いて、ステップS54で今回サンプルフラ
グFが高速、中速又は低速のいずれであるかを判定す
る。そして、今回サンプリングフラグFが低速のとき
は、ステップS55でモニタチャンネル数を高速グルー
プ、中速グループ及び低速グループの各チャンネル数を
加算した値をセットし、ステップS56でモニタアドレス
テーブルTに上記三つのグループの各アドレステーブル
Tf ,Tm ,Ts の値をセットする。また、今回サンプ
リングフラグFが中速のときは、ステップS57でモニタ
チャンネル数を高速グループ及び中速グループの各チャ
ンネル数を加算した値をセットし、ステップS58でモニ
タアドレステーブルTに上記二つのグループの各アドレ
ステーブルTf ,Tm の値をセットする。さらに、今回
サンプリングフラグFが高速のときは、ステップS59で
モニタチャンネル数を高速グループのみのチャンネル数
の値をセットし、ステップS60でモニタアドレステーブ
ルTに高速グループのみのアドレステーブルTf の値を
セットする。
Succeedingly, in a step S54, it is determined whether the present sample flag F is high speed, medium speed or low speed. If the sampling flag F is low this time, a value obtained by adding the number of monitor channels to each of the high-speed group, medium-speed group, and low-speed group is set in step S55, and the monitor address table T is set to the above three values in step S56. The value of each address table Tf, Tm, Ts of one group is set. If the sampling flag F this time is medium speed, a value obtained by adding the number of monitor channels to the number of each of the high speed group and the medium speed group is set in step S57, and in step S58, the above two groups are set in the monitor address table T. The values of the respective address tables Tf and Tm are set. Further, when the sampling flag F is high speed this time, the number of monitor channels is set to the value of the number of high speed groups only in step S59, and the value of the address table Tf of only high speed groups is set to the monitor address table T in step S60. To do.

【0049】しかる後、ステップS61及びS62でディバ
イスアドレスXX00にモニタアドレスを、上位アドレ
スと下位アドレスとの2回に分けて書き込み、ECU1
側へ送出する。続いて、ステップS63及びS64でディバ
イスアドレスXX01を読み込み、ECU1側から送出
されるモニタデータ(上位データと下位データとの2回
分のデータ)を得、データ送出情報に基づいて、データ
をRAMモニタ収集部23に格納する。
Thereafter, in steps S61 and S62, the monitor address is written to the device address XX00 in two steps, that is, the upper address and the lower address, and the ECU 1
Send to the side. Then, in steps S63 and S64, the device address XX01 is read, monitor data sent from the ECU 1 side (two times of upper data and lower data) is obtained, and data is collected by the RAM monitor based on the data sending information. It is stored in the unit 23.

【0050】続いて、ステップS65で全チャンネルのモ
ニタデータの収集が終了したか否かを判定し、その判定
がNOのときには、ステップS66で全チャンネルのモニ
タデータの収集途中を意味する収集途中データ01hを
ディバイスアドレスXX02に書き込んだ後、ステップ
S69へ移行する。一方、判定がYESのときには、ステ
ップS67で全チャンネルのモニタデータの収集終了を意
味する収集終了データ00hをディバイスアドレスXX
02に書き込んだ後、ステップS68で前回サンプルフラ
グFo に今回サンプルフラグFを代入して前回サンプル
フラグFo の更新を行い、ステップS69へ移行する。そ
して、ステップS69では制御指令部21からの指令がモ
ニタを終了するものであるか否かを判定する。この判定
がNOのときはステップS52へ戻る一方、判定がYES
のときは制御を終了する。
Subsequently, in step S65, it is determined whether or not the collection of the monitor data of all channels is completed. When the determination is NO, in step S66 the in-collection data which means that the monitor data of all channels is being collected. After writing 01h to the device address XX02, the process proceeds to step S69. On the other hand, if the determination is YES, in step S67, the collection end data 00h, which means the end of the collection of the monitor data of all channels, is set to the device address XX.
After writing to 02, the current sample flag F is substituted for the previous sample flag Fo in step S68 to update the previous sample flag Fo, and the process proceeds to step S69. Then, in step S69, it is determined whether or not the command from the control command unit 21 is to end the monitoring. If the determination is NO, the process returns to step S52, while the determination is YES.
If, the control ends.

【0051】図9において、スタートした後、先ず始め
に、ステップS71でディバイスアドレスXX02を読み
込み、ステップS72でそのディバイスアドレスXX02
の値が接続データ80hであるか否かを判定する。この
判定がNOの非接続時にはそのままリターンする一方、
判定がYESの接続時には、ステップS73及びS74でモ
ニタアドレスであるディバイスアドレスXX00を、上
位アドレスと下位アドレスとの2回に分けて読み込んだ
後、ステップS75及びS76で上記モニタアドレスに対応
するRAM13の内容(モニタデータ)をディバイスア
ドレスXX01に上位バイトと下位バイトとの2回に分
けて書き込み、調整装置2側へ送出する。
In FIG. 9, after starting, first, in step S71, the device address XX02 is read, and in step S72, the device address XX02 is read.
It is determined whether the value of is the connection data 80h. When this determination is NO, the process returns without any operation, while
When the determination is YES, in steps S73 and S74, the device address XX00, which is the monitor address, is read in two times, the high-order address and the low-order address, and then, in steps S75 and S76, the RAM 13 corresponding to the monitor address is read. The contents (monitor data) are written into the device address XX01 in two steps, that is, the upper byte and the lower byte, and sent to the adjusting device 2 side.

【0052】続いて、ステップS77で再びディバイスア
ドレスXX02を読み込み、ステップS78でそのディバ
イスアドレスXX02の値が収集終了データ00hであ
るか否かを判定する。この判定がNOのときはステップ
S73へ戻る一方、判定がYESのときはリターンする。
Then, in step S77, the device address XX02 is read again, and in step S78 it is determined whether or not the value of the device address XX02 is the collection end data 00h. If the determination is NO, the process returns to step S73, while if the determination is YES, the process returns.

【0053】このようなプロトコルに基づいたECU1
と調整装置2との間の通信の場合、予め調整装置2(R
AMモニタ制御部22)でモニタチャンネルがモニタ要
素の変化度合いに応じて高速、中速及び低速の三つのグ
ループに分けられる。そして、最初のサンプリング時に
は高速、中速及び低速の全てのグループのモニタチャン
ネルがモニタアドレス信号としてECU1側に送出さ
れ、それに対応してECU1側から全チャンネル数分の
モニタデータが調整装置2(RAMモニタ収集部23)
に入力される。また、2回目のサンプリング時には高速
及び中速のグループのモニタチャンネルがモニタアドレ
ス信号としてECU1側に送出され、それに対応してE
CU1側から高速及び中速グループのモニタチャンネル
数分のモニタデータが調整装置2に入力される。3回目
のサンプリング時には高速グループのモニタチャンネル
のみがモニタアドレス信号としてECU1側に送出さ
れ、それに対応してECU1側から高速グループのモニ
タチャンネル数分のモニタデータが調整装置2に入力さ
れる。4回目以降のサンプリングでは以上のことが繰り
返される。このため、モニタ精度の低下を招くことな
く、モニタデータのサンプリング回数を可及的に少なく
することができ、モニタのための通信時間の短縮化を図
ることができる。
ECU 1 based on such a protocol
In the case of communication between the adjusting device 2 and the adjusting device 2, the adjusting device 2 (R
The AM monitor control unit 22) divides the monitor channels into three groups of high speed, medium speed, and low speed according to the degree of change of monitor elements. Then, at the time of the first sampling, the monitor channels of all the groups of high speed, medium speed, and low speed are sent to the ECU 1 side as monitor address signals, and correspondingly, the monitor data for all the channels is sent from the ECU 1 side to the adjusting device 2 (RAM). Monitor collecting unit 23)
Entered in. Also, during the second sampling, the monitor channels of the high-speed and medium-speed groups are sent to the ECU 1 side as monitor address signals, and E
Monitor data for the number of monitor channels in the high-speed and medium-speed groups is input to the adjusting device 2 from the CU1 side. At the time of the third sampling, only the monitor channels of the high speed group are sent to the ECU 1 side as monitor address signals, and correspondingly, the monitor data for the number of monitor channels of the high speed group is input to the adjusting device 2 from the ECU 1 side. The above is repeated in the fourth and subsequent samplings. Therefore, the number of times the monitor data is sampled can be reduced as much as possible without lowering the monitor accuracy, and the communication time for monitoring can be shortened.

【0054】尚、本発明は上記第1〜第3実施例に限定
されるものではなく、その他種々の変形例を包含するも
のである。例えば、上記各実施例では、ECU1のRA
M13の内容をモニタする場合について述べたが、本発
明は、ECU1のR0M12の内容を変更するなど、他
のデバッグ処理を行う調整装置とECUとの間の通信方
法にも同様に適用することができるのは勿論である。
The present invention is not limited to the above-mentioned first to third embodiments, but includes various other modifications. For example, in each of the above embodiments, the RA of the ECU 1 is
Although the case of monitoring the content of M13 has been described, the present invention can be similarly applied to the communication method between the ECU and the adjustment device that performs other debug processing such as changing the content of R0M12 of the ECU 1. Of course you can.

【0055】また、上記各実施例では、本発明を、16
ビットのCPU11を有するECU1と調整装置2との
間の通信方法に適用した場合について述べたが、これに
限らず、8ビット以上のCPUを有するECUと調整装
置との間の通信方法にも適用することができる。要は、
CPUのデータバス等のシステムバスのうち、4の整数
倍の数のシステムバスを調整装置に接続し、これらのシ
ステムバスを通してECUと調整装置との間で信号の書
き込み及び読み込みを行うに当たり、各々2回以上に分
けて行うようにすれば良いのである。
In each of the above embodiments, the present invention is
The case where the invention is applied to the communication method between the ECU 1 having the bit CPU 11 and the adjusting device 2 has been described, but the invention is not limited to this, and is also applied to the communication method between the ECU having the 8-bit CPU and the adjusting device. can do. In short,
Of the system buses such as the CPU data bus, an integer multiple of 4 system buses are connected to the adjusting device, and signals are written and read between the ECU and the adjusting device through these system buses. It only has to be done twice or more.

【0056】[0056]

【発明の効果】以上の如く、本発明における電子制御ユ
ニットと調整装置との間の通信方法によれば、CPUの
システムバスのうちの、4の整数倍の数のシステムバス
を用いて通信が行われるので、通信用信号を可及的に少
なくしてノイズの発生を抑制することができ、誤作動の
防止化を図ることができるものである。
As described above, according to the communication method between the electronic control unit and the adjusting device in the present invention, the communication is performed using the system buses of the integral multiples of 4 among the system buses of the CPU. Since this is performed, the number of communication signals can be reduced as much as possible to suppress the generation of noise, and malfunctions can be prevented.

【0057】特に、請求項3記載の発明によれば、電子
制御ユニットと調整装置との間の信号の送受信を行って
調整装置で電子制御ユニットのメモリ部の記憶内容をモ
ニタするとき、2回目以降のサンプリング時に調整装置
側からモニタアドレス信号を送信することなく、電子制
御ユニット側から直ちにデータ送出信号を送出し、チャ
ンネル数分のモニタデータ信号を順次送出するので、モ
ニタアドレス信号の送受信に要する時間分通信時間を短
縮することができるという効果をも有する。
Particularly, according to the third aspect of the invention, when the adjustment device monitors the stored contents of the memory section of the electronic control unit by transmitting and receiving a signal between the electronic control unit and the adjustment device, It is necessary to send and receive the monitor address signal because the electronic control unit side immediately sends the data sending signal and sends the monitor data signal for the number of channels sequentially without sending the monitor address signal from the adjusting device side at the time of subsequent sampling. There is also an effect that the communication time can be shortened by the time.

【0058】また、請求項4記載の発明における使用方
法によれば、電子制御ユニットと調整装置との間の信号
の送受信を行って調整装置で電子制御ユニットのメモリ
部の記憶内容をモニタするとき、モニタチャンネルをモ
ニタ要素の変化度合いに応じてグループ分けし、モニタ
要素の変化度合いが高い程そのグループのサンプリング
レートを高くしているので、モニタ精度の低下を招くこ
となく、サンプリング回数ないし通信回数を可及的に少
なくすることができ、その分通信時間を短縮することが
できるという効果をも有する。
According to the method of use in the invention of claim 4, when a signal is transmitted and received between the electronic control unit and the adjusting device and the adjusting device monitors the stored contents of the memory section of the electronic control unit. , The monitor channels are divided into groups according to the degree of change of the monitor element, and the higher the degree of change of the monitor element, the higher the sampling rate of the group, so that the number of samplings or communication Also, there is an effect that the communication time can be shortened by that amount as much as possible.

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

【図1】本発明の第1実施例に係わる通信方法を用いる
ための通信装置のブロック構成図である。
FIG. 1 is a block configuration diagram of a communication device for using a communication method according to a first embodiment of the present invention.

【図2】モニタサービスルーチンを示すフローチャート
図である。
FIG. 2 is a flowchart showing a monitor service routine.

【図3】本発明の第2実施例に係わるモニタルーチンを
示すフローチャート図である。
FIG. 3 is a flowchart showing a monitor routine according to a second embodiment of the present invention.

【図4】同フローチャート図である。FIG. 4 is a flowchart of the same.

【図5】モニタサービスルーチンを示すフローチャート
図である。
FIG. 5 is a flowchart showing a monitor service routine.

【図6】同フローチャート図である。FIG. 6 is a flowchart of the same.

【図7】本発明の第3実施例に係わるモニタルーチンを
示すフローチャート図である。
FIG. 7 is a flowchart showing a monitor routine according to a third embodiment of the present invention.

【図8】同フローチャート図である。FIG. 8 is a flowchart of the same.

【図9】モニタサービスルーチンを示すフローチャート
図である。
FIG. 9 is a flowchart showing a monitor service routine.

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

1 電子制御ユニット(ECU) 2 調整装置 11 CPU 13 RAM(メモリ部) 16,27 データバス(システムバス) 31 ケーブル(システムバス) 1 Electronic Control Unit (ECU) 2 Adjustment Device 11 CPU 13 RAM (Memory Unit) 16, 27 Data Bus (System Bus) 31 Cable (System Bus)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 8ビット以上のCPUを有する電子制御
ユニットとそのメモリ部の記憶内容をデバッグするため
の調整装置との間の通信方法であって、 上記CPUのシステムバスのうち、4の整数倍の数のシ
ステムバスを調整装置に接続し、これらのシステムバス
を通して電子制御ユニットと調整装置との間で信号の書
き込み及び読み込みを行うに当たり、各々2回以上に分
けて行うことを特徴とする電子制御ユニットと調整装置
と間の通信方法。
1. A method of communication between an electronic control unit having a CPU of 8 bits or more and an adjusting device for debugging the stored contents of a memory section thereof, wherein an integer of 4 in the system bus of the CPU. It is characterized in that a double number of system buses are connected to the adjusting device, and when writing and reading signals between the electronic control unit and the adjusting device through these system buses, each is performed twice or more. A communication method between the electronic control unit and the adjusting device.
【請求項2】 上記調整装置は、電子制御ユニットのメ
モリ部の記憶内容をモニタするものである請求項1記載
の電子制御ユニットと調整装置と間の通信方法。
2. The communication method between the electronic control unit and the adjusting device according to claim 1, wherein the adjusting device monitors a stored content of a memory section of the electronic control unit.
【請求項3】 最初のサンプリング時に調整装置側から
チャンネル数分のモニタアドレス信号を順次電子制御ユ
ニット側に送出する工程と、 上記モニタアドレス信号に基づいて、電子制御ユニット
側から調整装置側に対し、データ送出信号を送出した
後、チャンネル数分のモニタデータ信号を順次送出する
工程と、 2回目以降のサンプリング時に調整装置側からのモニタ
アドレス信号に基づくことなく、電子制御ユニット側か
ら調整装置側に対し、データ送出信号を送出した後、チ
ャンネル数分のモニタデータ信号を順次送出する工程と
を備えた請求項2記載の電子制御ユニットと調整装置と
の間の通信方法。
3. A step of sequentially sending monitor address signals for the number of channels from the adjusting device side to the electronic control unit side at the first sampling, and based on the monitor address signal, the electronic control unit side sends the adjusting device side to the adjusting device side. , The step of sequentially sending the monitor data signals for the number of channels after sending the data sending signal, and the electronic control unit side to the adjusting device side without being based on the monitor address signal from the adjusting device side during the second and subsequent samplings. The method of communication between the electronic control unit and the adjusting device according to claim 2, further comprising the step of sequentially transmitting monitor data signals for the number of channels after transmitting the data transmission signal.
【請求項4】 モニタチャンネルを、モニタ要素の変化
度合いに応じてグループ分けをし、モニタ要素の変化度
合いが高い程そのグループのサンプリングレートを高く
する請求項2記載の電子制御ユニットと調整装置との間
の通信方法。
4. The electronic control unit and the adjusting device according to claim 2, wherein the monitor channels are divided into groups according to the degree of change of the monitor elements, and the higher the degree of change of the monitor elements, the higher the sampling rate of the group. Method of communication between.
JP5068492A 1993-03-26 1993-03-26 Method for communication between electronic control unit and adjusting device Withdrawn JPH06282455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5068492A JPH06282455A (en) 1993-03-26 1993-03-26 Method for communication between electronic control unit and adjusting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5068492A JPH06282455A (en) 1993-03-26 1993-03-26 Method for communication between electronic control unit and adjusting device

Publications (1)

Publication Number Publication Date
JPH06282455A true JPH06282455A (en) 1994-10-07

Family

ID=13375247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5068492A Withdrawn JPH06282455A (en) 1993-03-26 1993-03-26 Method for communication between electronic control unit and adjusting device

Country Status (1)

Country Link
JP (1) JPH06282455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067612A (en) * 1997-07-09 2000-05-23 Denso Corporation Distributed processing type control system
JP2005284848A (en) * 2004-03-30 2005-10-13 Denso Corp Emulation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067612A (en) * 1997-07-09 2000-05-23 Denso Corporation Distributed processing type control system
JP2005284848A (en) * 2004-03-30 2005-10-13 Denso Corp Emulation system

Similar Documents

Publication Publication Date Title
JP3256107B2 (en) Multi-protocol data bus system
KR20010053365A (en) Improved inter-device serial bus protocol
JPH06282455A (en) Method for communication between electronic control unit and adjusting device
JPH06284161A (en) Electronic control unit(ecu), adjusting device, device and method for communication between ecu and adjusting device
JPH11177588A (en) Electronic equipment and data communication method
US4839794A (en) Pseudo-status signal generator
JP3105103B2 (en) Adjustment device for electronic control unit
JP2614866B2 (en) Self-diagnosis method
JP2505298B2 (en) Variable bus width designation method and variable bus width information reception method in split bus
JP3105104B2 (en) Monitor unit for electronic control unit
JPH06282520A (en) Communication method between electronic control unit and monitoring device
KR890000274Y1 (en) Interface circuit of on-screen ic and ccd
JP2004334551A (en) Serial communication system and local terminal for serial communication
JP3179386B2 (en) debugger
JPS63222548A (en) Data transmission test equipment
JP3481669B2 (en) Electronic music box and its driving device
KR0146470B1 (en) Jumper display method of microwave oven
JPH10307760A (en) Method and device for inspection of configuration rom
JP2924232B2 (en) Command check device
JPS608949A (en) General interface bus analyzer
JPH0448306B2 (en)
JPH03155245A (en) Protocol analyzer system
JP3105105B2 (en) Monitor unit for electronic control unit
JP3217042B2 (en) Semiconductor device having pseudo parity error signal generation function
JPH05292130A (en) Semiconductor integrated circuit for communication control

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000530