JPH06282458A - Method for communication between electronic control unit and monitor device - Google Patents

Method for communication between electronic control unit and monitor device

Info

Publication number
JPH06282458A
JPH06282458A JP5068354A JP6835493A JPH06282458A JP H06282458 A JPH06282458 A JP H06282458A JP 5068354 A JP5068354 A JP 5068354A JP 6835493 A JP6835493 A JP 6835493A JP H06282458 A JPH06282458 A JP H06282458A
Authority
JP
Japan
Prior art keywords
monitor
communication
ecu
speed
control unit
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.)
Pending
Application number
JP5068354A
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 JP5068354A priority Critical patent/JPH06282458A/en
Publication of JPH06282458A publication Critical patent/JPH06282458A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To lighten the load on the electronic control unit side by decreasing the frequency of sampling as much as possible while increasing monitor precision, and shortening a communication time. CONSTITUTION:While the electronic control unit(ECU) 1 and monitor device 2 handshake, the storage contents of the memory part 13 of the ECU 1 are monitored by the monitor device 2 in real time. Monitor channels are grouped according to the degree of changes of monitor elements and the sampling rate of a group is made higher and higher as the degree of changes of monitor elements is higher and higher. For example, the monitor channels are divided into three high-speed, intermediate-speed, and low-speed groups in the decreasing order of the sampling rates. The high-speed group includes monitor elements which require a process or interruption process at time intervals of <=5ms, the intermediate-speed group includes monitor elements which require a process at time intervals of 5-20ms, and the low-speed group includes monitor elements requiring a process at time intervals of >=20ms.

Description

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

【0001】[0001]

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

【0002】[0002]

【従来の技術】一般に、自動車や家電製品等に用いられ
る電子制御ユニット(ECU)は、CPUとメモリ部と
してのROM及びRAMとを有している。このECUの
開発時には、ROM内容(制御データ等)を書き換えた
り、RAM内容(一時的に使用する制御変数等)をモニ
タしたりすることが必要である。特に、自動車のエンジ
ン制御やABS制御等に用いられる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 rewrite the ROM contents (control data etc.) and monitor the 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 monitor in real time the correlation between the behavior of the automobile and the control program, and to make further studies, and a monitor device is used.

【0003】ところで、従来、上記ECUとモニタ装置
との間の通信方式として、ソフトハンドシェーク方式が
知られている。この方式では、モニタ装置側からECU
側に要求するデータのアドレス値であるモニタアドレス
を送り、ECU側は要求されたアドレスのデータ(RA
M内容)を送出する。この遣り取りをモニタチャンネル
数分行い、1回のサンプリングが終了する。つまり、モ
ニタのチャンネル毎のモニタアドレスの要求とデータの
送出とが1対1の関係になっており、また、全てのモニ
タチャンネルについて同じ時間間隔(サンプリグレー
ト)でもってモニタアドレスの要求及びデータの送出を
繰り返して行っている。
By the way, conventionally, a soft handshake method is known as a communication method between the ECU and the monitor device. In this system, the ECU is
The monitor address, which is the address value of the requested data, is sent to the ECU side, and the ECU side sends the requested address data (RA
M content) is transmitted. This exchange is performed for the number of monitor channels, and one sampling is completed. That is, there is a one-to-one relationship between the monitor address request and the data transmission for each monitor channel, and the monitor address request and the data are sent at the same time interval (sample upgrade) for all monitor channels. The transmission is repeated.

【0004】[0004]

【発明が解決しようとする課題】ところが、上記従来の
ソフトハンドショーク方式では、モニタ要素の変化度合
いが相違するにも拘らず、全てのモニタチャンネルにつ
いて同じサンプリグレートでモニタアドレスの要求及び
データの送出を繰り返して行っているため、その分通信
時間が長くなる。この通信はECU側では負荷となり、
この通信時間中本来の制御ができなくなることから、通
信時間が長くなることはECU側の負荷の増大に繋がる
という問題がある。
However, in the above-described conventional soft handshake method, the monitor address request and the data transmission are performed with the same sample for all the monitor channels, although the degree of change of the monitor elements is different. Since communication is repeated, the communication time becomes longer accordingly. This communication becomes a load on the ECU side,
Since the original control cannot be performed during this communication time, there is a problem that a longer communication time leads to an increase in the load on the ECU side.

【0005】本発明はかかる点に鑑みてなされたもので
あり、その目的とするところは、モニタ要素の変化度合
いに応じて各モニタチャンネルのサンプリングレートを
変更することにより、モニタ精度を高めつつサンプリン
グ回数を少なくして通信時間を短縮し、ECU側の負荷
を軽減するようにするものである。
The present invention has been made in view of the above circumstances, and an object of the present invention is to change the sampling rate of each monitor channel in accordance with the degree of change of a monitor element to improve the monitoring accuracy and perform sampling. The number of times is reduced to shorten the communication time and reduce the load on the ECU side.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明は、電子制御ユニットとそのメ
モリ部の記憶内容をモニタするモニタ装置との間の通信
方法として、モニタチャンネルを、モニタ要素の変化度
合いに応じてグループ分けをし、モニタ要素の変化度合
いが高い程そのグループのサンプリングレートを高くす
る構成とする。
In order to achieve the above object, the invention according to claim 1 uses a monitor channel as a communication method between an electronic control unit and a monitor device for monitoring the contents stored in its memory section. The monitor elements 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.

【0007】請求項2記載の発明は、請求項1記載の発
明に従属し、モニタチャンネルのグループ分けをより具
体的に示すものである。すなわち、モニタチャンネル
は、サンプリングレートの高い順に高速、中速及び低速
の三つのグループに分けられ、高速グループには、5m
s以下の時間間隔での処理又は割り込み処理が必要なモ
ニタ要素が含まれ、中速グループには、5〜20ms以
内の時間間隔での処理が必要なモニタ要素が含まれ、低
速グループには20ms以上の時間間隔での処理が必要
なモニタ要素が含まれる構成とする。
The invention according to claim 2 is dependent on the invention according to claim 1, and more specifically shows the grouping of monitor channels. That is, the monitor channel is divided into three groups of high speed, medium speed and low speed in the order of high sampling rate, and the high speed group has 5 m.
Monitor elements that require processing or interrupt processing at time intervals of s or less are included, the medium speed group includes monitor elements that need processing at time intervals within 5 to 20 ms, and the low speed group includes 20 ms. It is configured to include monitor elements that require processing at the above time intervals.

【0008】[0008]

【作用】上記の構成により、請求項1記載の発明では、
電子制御ユニットと開発支援装置との間でハンドシェー
クを取りつつ電子制御ユニットのメモリ部の記憶内容を
開発支援装置でモニタするとき、モニタチャンネルはモ
ニタ要素の変化度合いに応じてグループ分けされ、モニ
タ要素の変化度合いが高い程そのグループのサンプリン
グレートが高くなっているので、モニタ精度の低下を招
くことなく、サンプリング回数ないし通信回数を可及的
に少なくすることができる。
With the above construction, in the invention according to claim 1,
When the development support device monitors the stored contents of the memory section of the electronic control unit while performing a handshake between the electronic control unit and the development support device, the monitor channels are grouped according to the degree of change of the monitor element, and the monitor element The higher the degree of change in the group, the higher the sampling rate of the group, so that the number of times of sampling or the number of times of communication can be reduced as much as possible without lowering the monitoring accuracy.

【0009】[0009]

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

【0010】図1は本発明の一実施例に係わる通信方法
を用いるための通信装置を示し、この通信装置は、電子
制御ユニット(ECU)1とモニタ装置2との間の信号
の送受信をシリアル通信で行うものである。
FIG. 1 shows a communication device for using a communication method according to an embodiment of the present invention. This communication device serially transmits and receives signals between an electronic control unit (ECU) 1 and a monitor device 2. It is done by communication.

【0011】上記ECU1には、CPU11と、メモリ
部としてのROM(リードオンリーメモリ)12及びR
AM(ランダムアクセスメモリ)13と、シリアル通信
部14とが内臓されている。上記CPU11は拡張バス
モードに設定されており、そのアドレスバス15、デー
タバス16及びコントロールバス17は共にROM1
2、RAM13及びシリアル通信部14にそれぞれ接続
されている。上記ROM12にはECU1の制御プログ
ラム、制御データ、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 serial communication unit 14 are built in. The CPU 11 is set to the extended bus mode, and the address bus 15, data bus 16 and control bus 17 are all in the ROM 1
2, RAM 13 and serial communication unit 14, respectively. The ROM 12 stores a control program for the ECU 1, control data, a RAM monitor program (a monitor service routine described later), and a serial communication program. The RAM 13 stores control variables that are temporarily used by the CPU 11 for control, and is used as a work area for calculation.

【0012】また、上記シリアル通信部14は、モニタ
装置2側とシリアル通信を行うインターフェース部分で
あり、その通信は送受信を行う。送信はCPU11から
各バス15〜17を介してパラレル通信で送られて来た
コマンド及びデータの各信号をシリアル通信に変換し、
モニタ装置2側へ出力する。また、受信はモニタ装置2
側からシリアル通信で送られて来たデータ信号を受信
し、パラレル通信に変換してCPU11へ送出する。
The serial communication section 14 is an interface section for carrying out serial communication with the monitor device 2 side, and the communication is carried out. The transmission converts each signal of command and data sent from CPU 11 via each bus 15 to 17 in parallel communication into serial communication,
Output to the monitor device 2 side. In addition, reception is performed by the monitor device 2
The data signal sent from the side by serial communication is received, converted into parallel communication, and sent to the CPU 11.

【0013】一方、上記モニタ装置2は、上記ECU1
のRAM13の記憶内容をモニタするものであり、制御
指令部21とRAMモニタ制御部22とRAMモニタ収
集部23とRAMモニタ表示部24とシリアル通信部2
5とを備えている。上記RAMモニタ制御部22とRA
Mモニタ収集部23とシリアル通信部25とは、三種類
のバスつまりアドレスバス26、データバス27及びコ
ントロールバス28により互いに信号授受可能に接続さ
れている。
On the other hand, the monitor device 2 includes the ECU 1
Of the RAM 13 is monitored, and the control command unit 21, the RAM monitor control unit 22, the RAM monitor collection unit 23, the RAM monitor display unit 24, and the serial communication unit 2 are monitored.
5 and. RAM monitor controller 22 and RA
The M monitor collection unit 23 and the serial communication unit 25 are connected to each other via three types of buses, that is, an address bus 26, a data bus 27, and a control bus 28 so that signals can be exchanged between them.

【0014】上記制御指令部21は、ユーザ等の要求
(操作を含む)を受け、RAMモニタ制御部22に対
し、制御指令を出力する。上記RAMモニタ制御部22
は、制御指令部21の指令を受け、シリアル通信部2
5、RAMモニタ収集部23及びRAMモニタ表示部2
4の制御を行う。また、上記RAMモニタ収集部23
は、RAMモニタ制御部22の制御指令を受取り、シリ
アル通信部25からデータバス27を通して入力される
RAMモニタデータの収集を行う。その後、モニタデー
タをRAMモニタ制御部22に送出する。上記RAMモ
ニタ表示部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 a command from the control command unit 21, and receives the serial communication unit 2
5, RAM monitor collection unit 23 and RAM monitor display unit 2
4 is controlled. In addition, the RAM monitor collecting unit 23
Receives the control command of the RAM monitor control unit 22 and collects the RAM monitor data input from the serial communication unit 25 through the data bus 27. After that, the monitor data is sent to the RAM monitor control unit 22. The RAM monitor display unit 24 outputs the monitor data sent from the RAM monitor control unit 22 to the screen in real time.

【0015】さらに、上記シリアル通信部25は、EC
U1側とシリアル通信を行うインターフェース部分であ
り、その通信は送受信を行う。送信はRAMモニタ制御
部22からパラレル通信で送られて来たコマンド及びデ
ータの各信号をシリアル通信に変換し、ECU1側のシ
リアル通信部14へ転送する。また、受信はECU1側
からシリアル通信で送られて来たデータ信号を受信し、
パラレル通信に変換してRAMモニタ収集部23へ送出
する。
Further, the serial communication section 25 is an EC
It is an interface part that performs serial communication with the U1 side, and the communication performs transmission / reception. For transmission, each signal of command and data sent from the RAM monitor control unit 22 in parallel communication is converted into serial communication and transferred to the serial communication unit 14 on the ECU 1 side. In addition, the reception is performed by receiving the data signal sent from the ECU 1 side through serial communication,
It is converted into parallel communication and sent to the RAM monitor collection unit 23.

【0016】そして、上記ECU1側のシリアル通信部
14とモニタ装置2側のシリアル通信部25とは、ケー
ブル31によりシリアル通信で送受信可能に接続されて
おり、上記ケーブル31の両端は、それぞれ該各シリア
ル通信部14,25の接続コネクタ14a,25aに接
続されている。上記両シリアル通信部14,25間での
送受信は、互いにハンドシェークを取りながら行われ
る。
The serial communication unit 14 on the ECU 1 side and the serial communication unit 25 on the monitor device 2 side are connected by a cable 31 so that they can be transmitted and received by serial communication, and both ends of the cable 31 are respectively connected to each other. It is connected to the connection connectors 14a and 25a of the serial communication units 14 and 25. Transmission and reception between the serial communication units 14 and 25 are performed while handshaking each other.

【0017】次に、本発明に係わる、上記ECU1とモ
ニタ装置2との間の通信方法について、図2〜図4に示
すフローチャートに従って説明する。図2及び図3はモ
ニタ装置側のプロトコル(フロー)であるモニタルーチ
ンを示し、図4はECU側のプロトコルであるモニタサ
ービスルーチンを示す。尚、通信はディバイスアドレス
と呼ばれる共通のアドレス(XX00からXX02、X
Xは任意設定可)を設け、このアドレスを窓口に通信を
行う。また、フローをCPU11が8ビットの場合と1
6ビットの場合とに兼用するために、信号の読み込み及
び書き込みは2回に分けて行われる。
Next, a communication method between the ECU 1 and the monitor device 2 according to the present invention will be described with reference to the flowcharts shown in FIGS. 2 and 3 show a monitor routine which is a protocol (flow) on the monitor device side, and FIG. 4 shows a monitor service routine which is a protocol on the ECU side. Note that the communication is a common address called a device address (XX00 to XX02, X
X can be arbitrarily set), and communication is performed using this address as a window. Also, the flow is 1 when the CPU 11 has 8 bits.
In order to use the case of 6 bits, the reading and writing of signals are performed twice.

【0018】図2及び図3において、スタートした後、
先ず始めに、ステップS51でモニタチャンネルを高速と
中速と低速との三つのグループに分ける。高速グリープ
には、モニタ要素の変化度合いが高く5ms以下の時間
間隔での処理又は割り込み処理が必要なモニタ要素が含
まれる。中速グループには、モニタ要素の変化度合いが
中程度で5〜20ms以内の時間間隔での処理が必要な
モニタ要素が含まれる。低速グループには、モニタ要素
の変化度合いが低く20ms以上の時間間隔での処理で
足りるモニタ要素が含まれる。例えば自動車のエンジン
制御用ECUの場合、エンジン回転数、吸気流量及び点
火時期等は高速グループに含まれ、アクセルの踏み具合
やエンジンのモード切換え等ドライバーが操作する要素
は中速グループに含まれ、吸気ガス温度及び水温等は低
速グループに含まれる。そして、高速グループをアドレ
ステーブルTf に、中速グループをアドレステーブルT
mに、低速グループをアドレステーブルTs にそれぞれ
セットする。
2 and 3, 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 greep includes a monitor element that has a high degree of change in the monitor element and requires processing or interrupt processing at a time interval 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.

【0019】続いて、ステップS52でECU1との接続
を意味する接続データ80hをディバイスアドレスXX
02に書き込み、ECU1側へ送出した後、ステップS
53で前回サンプルフラグFo を読み込み、今回サンプル
フラグFを次のようにセットする。つまり、前回サンプ
ルフラグFo が高速であれば今回サンプルフラグFを中
速にセットし、前回サンプルフラグFo が中速であれば
今回サンプルフラグFを低速にセットし、前回サンプル
フラグFo が低速であれば今回サンプルフラグFを高速
にセットする。
Then, 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.

【0020】続いて、ステップS54で今回サンプルフラ
グFが高速、中速又は低速のいずれであるかを判定す
る。そして、今回サンプリングフラグFが低速のとき
は、ステップS55でモニタチャンネル数を高速グルー
プ、中速グループ及び低速グループの各チャンネル数を
加算した値をセットし、ステップS56でモニタアドレス
テーブルTに上記三つのグループの各アドレステーブル
Tf ,Tm ,Ts の値をセットする。また、今回サンプ
リングフラグFが中速のときは、ステップS57でモニタ
チャンネル数を高速グループ及び中速グループの各チャ
ンネル数を加算した値をセットし、ステップS58でモニ
タアドレステーブルTに上記二つのグループの各アドレ
ステーブルTf ,Tm の値をセットする。さらに、今回
サンプリングフラグFが高速のときは、ステップS59で
モニタチャンネル数を高速グループのみのチャンネル数
の値をセットし、ステップS60でモニタアドレステーブ
ルTに高速グループのみのアドレステーブルTf の値を
セットする。
Then, in step S54, it is determined whether the current 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.

【0021】しかる後、ステップ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.

【0022】続いて、ステップ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 the channels is completed. If the determination is NO, in the step S66, the in-collection data which means that the monitor data of all the 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.

【0023】図9において、スタートした後、先ず始め
に、ステップS71でディバイスアドレスXX02を読み
込み、ステップS72でそのディバイスアドレスXX02
の値が接続データ80hであるか否かを判定する。この
判定がNOの非接続時にはそのままリターンする一方、
判定がYESの接続時には、ステップS73及びS74でモ
ニタアドレスであるディバイスアドレスXX00を、上
位アドレスと下位アドレスとの2回に分けて読み込んだ
後、ステップS75及びS76で上記モニタアドレスに対応
するRAM13の内容(モニタデータ)をディバイスア
ドレスXX01に上位バイトと下位バイトとの2回に分
けて書き込み、開発支援装置2側へ送出する。
In FIG. 9, after starting, the device address XX02 is first read in step S71, and the device address XX02 is read in step S72.
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 to the device address XX01 in two times, the upper byte and the lower byte, and sent to the development support apparatus 2 side.

【0024】続いて、ステップ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.

【0025】このようなプロトコルに基づいたECU1
と開発支援装置2との間の通信の場合、予め開発支援装
置2(RAMモニタ制御部22)でモニタチャンネルが
モニタ要素の変化度合いに応じて高速、中速及び低速の
三つのグループに分けられる。そして、最初のサンプリ
ング時には高速、中速及び低速の全てのグループのモニ
タチャンネルがモニタアドレス信号としてECU1側に
送出され、それに対応してECU1側から全チャンネル
数分のモニタデータが開発支援装置2(RAMモニタ収
集部23)に入力される。また、2回目のサンプリング
時には高速及び中速のグループのモニタチャンネルがモ
ニタアドレス信号としてECU1側に送出され、それに
対応してECU1側から高速及び中速グループのモニタ
チャンネル数分のモニタデータが開発支援装置2に入力
される。3回目のサンプリング時には高速グループのモ
ニタチャンネルのみがモニタアドレス信号としてECU
1側に送出され、それに対応してECU1側から高速グ
ループのモニタチャンネル数分のモニタデータが開発支
援装置2に入力される。4回目以降のサンプリングでは
以上のことが繰り返される。このため、モニタ精度の低
下を招くことなく、モニタデータのサンプリング回数を
可及的に少なくすることができ、モニタのための通信時
間の短縮化ひいてはECU1側の負荷の軽減を図ること
ができる。
ECU 1 based on such a protocol
In the case of communication between the development support device 2 and the development support device 2, the development support device 2 (RAM monitor control unit 22) divides the monitor channels into three groups of high speed, medium speed, and low speed in advance according to the degree of change of the monitor element. . 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 development support device 2 ( It is input to the RAM monitor collection unit 23). In addition, 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 correspondingly, the monitor data for the number of monitor channels of the high speed and medium speed groups is supported from the ECU 1 side. Input to the device 2. At the time of the third sampling, only the monitor channel of the high speed group receives the ECU as the monitor address signal.
1 is sent to the development support device 2, and the monitor data corresponding to the number of monitor channels of the high speed group is input to the development support 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 and the load on the ECU 1 side can be reduced.

【0026】尚、上記実施例では、ECU1及びモニタ
装置2にそれぞれシリアル通信部14,25を設け、こ
の両シリアル通信部14,25同士をケーブル31を介
して接続してシリアル通信を行う場合について述べた
が、本発明は、このシリアル通信の場合に限らず、EC
U内のCPUバスを利用してECUとモニタ装置との間
の通信を行うパラレル通信の場合にも同様に適用するこ
とができる。
In the above embodiment, the serial communication units 14 and 25 are provided in the ECU 1 and the monitor device 2, respectively, and the serial communication units 14 and 25 are connected via the cable 31 to perform serial communication. As mentioned above, the present invention is not limited to the case of this serial communication, and the EC
The same can be applied to the case of parallel communication in which communication between the ECU and the monitor device is performed using the CPU bus in the U.

【0027】また、上記実施例では、本発明を、ECU
1とそのRAM13の記憶内容をモニタするモニタ装置
2との間の通信方法に適用した場合について述べたが、
本発明は、ECUとそのROMの記憶内容をモニタする
モニタ装置との間の通信方法にも同様に適用することが
できるのは言うまでもない。
In the above embodiment, the present invention is applied to the ECU.
1 has been described as applied to the communication method between the monitor 1 and the monitor device 2 for monitoring the contents stored in the RAM 13.
It goes without saying that the present invention can be similarly applied to the communication method between the ECU and the monitor device that monitors the storage contents of the ROM.

【0028】[0028]

【発明の効果】以上の如く、本発明の通信方法によれ
ば、電子制御ユニットとモニタ装置との間でハンドシェ
ークを行いつつ電子制御ユニットのメモリ部の記憶内容
をモニタ装置でモニタするとき、モニタチャンネルをモ
ニタ要素の変化度合いに応じてグループ分けし、モニタ
要素の変化度合いが高い程そのグループのサンプリング
レートを高くしているので、モニタ精度の低下を招くこ
となく、サンプリング回数を可及的に少なくすることが
でき、その分通信時間の短縮化ひいては電子制御ユニッ
トの負荷の軽減化を図ることができる。
As described above, according to the communication method of the present invention, when the stored contents of the memory section of the electronic control unit are monitored by the monitor device while performing the handshake between the electronic control unit and the monitor device, The 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 that group. Therefore, the communication time can be shortened and the load on the electronic control unit can be reduced accordingly.

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

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

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

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

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

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

1 電子制御ユニット(ECU) 2 モニタ装置 13 RAM(メモリ部) 1 electronic control unit (ECU) 2 monitor device 13 RAM (memory section)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 電子制御ユニットとそのメモリ部の記憶
内容をモニタするモニタ装置との間の通信方法であっ
て、 モニタチャンネルを、モニタ要素の変化度合いに応じて
グループ分けをし、モニタ要素の変化度合いが高い程そ
のグループのサンプリングレートを高くすることを特徴
とする電子制御ユニットと開発支援装置との間の通信方
法。
1. A communication method between an electronic control unit and a monitor device for monitoring the stored contents of a memory section thereof, wherein monitor channels are grouped according to the degree of change of the monitor element, A method of communication between an electronic control unit and a development support device, characterized in that the higher the degree of change, the higher the sampling rate of the group.
【請求項2】 モニタチャンネルは、サンプリングレー
トの高い順に高速、中速及び低速の三つのグループに分
けられ、高速グループには、5ms以下の時間間隔での
処理又は割り込み処理が必要なモニタ要素が含まれ、中
速グループには、5〜20ms以内の時間間隔での処理
が必要なモニタ要素が含まれ、低速グループには20m
s以上の時間間隔での処理が必要なモニタ要素が含まれ
る請求項1記載の電子制御ユニットと開発支援装置との
間の通信方法。
2. The monitor channel is divided into three groups of high speed, medium speed and low speed in the order of higher sampling rate, and the high speed group includes monitor elements that require processing at time intervals of 5 ms or less or interrupt processing. The middle speed group includes monitor elements that require processing at a time interval of 5 to 20 ms, and the low speed group includes 20 m.
The communication method between the electronic control unit and the development support apparatus according to claim 1, further comprising a monitor element that requires processing at a time interval of s or more.
JP5068354A 1993-03-26 1993-03-26 Method for communication between electronic control unit and monitor device Pending JPH06282458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5068354A JPH06282458A (en) 1993-03-26 1993-03-26 Method for communication between electronic control unit and monitor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5068354A JPH06282458A (en) 1993-03-26 1993-03-26 Method for communication between electronic control unit and monitor device

Publications (1)

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

Family

ID=13371404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5068354A Pending JPH06282458A (en) 1993-03-26 1993-03-26 Method for communication between electronic control unit and monitor device

Country Status (1)

Country Link
JP (1) JPH06282458A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009190635A (en) * 2008-02-15 2009-08-27 Nsk Ltd Electric power steering device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009190635A (en) * 2008-02-15 2009-08-27 Nsk Ltd Electric power steering device

Similar Documents

Publication Publication Date Title
JP2691883B2 (en) PLC communication parameter setting method
JPH06282458A (en) Method for communication between electronic control unit and monitor device
JPS59114941A (en) Programmable controller
EP0111251B1 (en) Data transmission system
JPH09331370A (en) Data communication equipment
JPH06284161A (en) Electronic control unit(ecu), adjusting device, device and method for communication between ecu and adjusting device
JPH06282455A (en) Method for communication between electronic control unit and adjusting device
JP3940843B2 (en) Serial communication system and local terminal for serial communication
US6987773B1 (en) Apparatus and method for transferring data
KR100373007B1 (en) Windows monitoring tool of control unit for vehicle
JPH04314157A (en) Communication equipment
JP2821053B2 (en) Network system
JPS6142466B2 (en)
SU922713A1 (en) Multiplexor channel
JPH06282520A (en) Communication method between electronic control unit and monitoring device
JP3095276B2 (en) Sequence controller
JP3414486B2 (en) Node communication device
SU809143A1 (en) Device for interfacing with computer system common line
JPS62279749A (en) Communication equipment for micro computer for automobile
JPS6022844A (en) Multiplex transmission system with priority
JPH08166924A (en) Terminal state management system for host computer system
JPH0388446A (en) Polling system
JPH0354939A (en) Method of controlling interface
JPH02150146A (en) Instrument and method for testing communication equipment
JPH05284190A (en) 1-character transfer system