JPH06290160A - Data communication method between microcomputers and multi-microcomputer system - Google Patents

Data communication method between microcomputers and multi-microcomputer system

Info

Publication number
JPH06290160A
JPH06290160A JP5074124A JP7412493A JPH06290160A JP H06290160 A JPH06290160 A JP H06290160A JP 5074124 A JP5074124 A JP 5074124A JP 7412493 A JP7412493 A JP 7412493A JP H06290160 A JPH06290160 A JP H06290160A
Authority
JP
Japan
Prior art keywords
data
transmission
microcomputers
confirmation
communication method
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
JP5074124A
Other languages
Japanese (ja)
Inventor
Akira Ikezoe
朗 池添
Masahiro Maekawa
正博 前川
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 Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP5074124A priority Critical patent/JPH06290160A/en
Publication of JPH06290160A publication Critical patent/JPH06290160A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To improve the reliability of data communication by executing processing related to transmitted data in the case that returned data and the transmitted data coincide with each other. CONSTITUTION:A transmitting side 1 is provided with a transmitted data storage means 12 to store the transmitted data, a coincidence detecting means 13 to judge whether the transmitted data stored in the transmitted data storage means 12 and the returned data returned from a receiving side 2 coincide with each other or not by comparing them with each other, and an acknowledge signal transmitting means 14 to transmit an acknowledge signal to the receiving side 2 when the transmitted data and the returned data coincide with each other. Besides, the receiving side 2 is provided with a received data storage means 22 to store the transmitted data sent from the transmitting side after receiving it, and an acknowledge signal receiving means 23 to execute the processing of this transmitted data after receiving the acknowledge signal sent from the transmitting side. Then, the transmitted data is returned immediately to the transmitting side, and whether the returned transmitted data and the transmitted data coincide with each other or not is confirmed, and only when coincidence is confirmed, the processing related to the transmitted data is executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、双方向の通信経路で接
続された複数のマイクロコンピュータ(以下、マイコン
と略称する。)で構成されたマルチマイクロコンピュー
タシステムにおけるデータの通信方法及びそのための構
成を有するシステムに関し、特に自動車のエンジン制御
を行うのに適したマルチマイクロコンピュータシステム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication method in a multi-microcomputer system including a plurality of microcomputers (hereinafter abbreviated as "microcomputers") connected by bidirectional communication paths, and a structure therefor. And a multi-microcomputer system suitable for controlling an engine of an automobile.

【0002】[0002]

【従来の技術】マイコンを利用して制御システムを構成
する場合、一個のマイコンですべての制御を行うのでは
なく、制御処理を複数に分割してそれぞれの処理に別個
のマイコンを割当て、各マイコンで必要な別のマイコン
のデータは各マイコン間を接続する双方向の通信経路を
介して得られるようにするマルチマイコンシステムと呼
ばれる形で構成することがある。図10はマルチマイコ
ンシステムの構成例を示す図であり、ここでは通信経路
3で接続された第一マイコン1と第二マイコン2の二個
のマイコンで構成されているが、複数個のマイコンで構
成する場合もある。その場合、通信経路は共通の経路に
接続されることも、各マイコン間にそれぞれ通信経路を
設けることもある。このような構成を用いることによ
り、低機能のマイコンの使用及び各マイコンを適正に配
置することによるワイヤハーネスの減少による全体とし
てのコスト低減と、各マイコンが相互に監視することに
よる信頼性が向上という効果が得られる。
2. Description of the Related Art When configuring a control system using a microcomputer, one microcomputer does not perform all the control, but the control process is divided into a plurality of parts, and a separate microcomputer is assigned to each process. In some cases, the data of another microcomputer required in (1) may be configured in a form called a multi-microcomputer system so that it can be obtained through a bidirectional communication path connecting between the respective microcomputers. FIG. 10 is a diagram showing a configuration example of a multi-microcomputer system. Here, although it is composed of two microcomputers of a first microcomputer 1 and a second microcomputer 2 connected by a communication path 3, It may be configured. In that case, the communication path may be connected to a common path or may be provided between the respective microcomputers. By using such a configuration, the use of low-performance microcomputers and the reduction of wire harness by properly arranging each microcomputer reduce overall cost, and the reliability of mutual monitoring by each microcomputer is improved. The effect is obtained.

【0003】自動車の制御システムにおいても上記のよ
うな特性を活かしてマルチマイコンシステムが使用され
ている。例えば、エンジン制御用と、滑りやすい路面な
どでの発進及び加速時にエンジンの出力制御を行って有
効な駆動力を得られるようにすると共に車両安定性を確
保するトラクション制御用とで、別のマイコンを設け、
それらの間を双方向の接続してデータの交換を可能にし
たマルチマイコンシステムが使用されている。またエン
ジン制御ユニット(ECU)を2個のマイコンで構成す
る例もある。
A multi-microcomputer system is also used in an automobile control system by taking advantage of the above characteristics. For example, different microcomputers are used for engine control and for traction control that secures vehicle stability while controlling the output of the engine at the time of starting and accelerating on slippery roads to obtain effective driving force. Is provided
A multi-microcomputer system is used which enables bidirectional connection between them to exchange data. There is also an example in which the engine control unit (ECU) is composed of two microcomputers.

【0004】[0004]

【発明が解決しようとする課題】マルチマイコンシステ
ムにおいては、各マイコン間でのデータの通信が正確に
行われることが必要である。もしデータの通信が正確に
行われないと、誤ったデータに基づいて制御が行われる
ことになり、制御の信頼性が損なわれるという問題が発
生する。従って、マルチマイコンシステムにおいては、
データ通信の高い信頼性が要求されており、そのために
各種の対策が施されているが、より一層の改善が要望さ
れている。
In a multi-microcomputer system, it is necessary that data communication be accurately performed between the respective microcomputers. If data communication is not performed correctly, control will be performed based on incorrect data, and the reliability of control will be impaired. Therefore, in the multi-microcomputer system,
High reliability of data communication is required, and various measures are taken for that purpose, but further improvement is required.

【0005】本発明はこの要望にこたえるためのもので
あり、マルチマイコンシステムにおけるデータ通信の信
頼性を更に向上させることを目的とする。
The present invention is intended to meet this demand, and it is an object of the present invention to further improve the reliability of data communication in a multi-microcomputer system.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明の通信経路で接続された複数のマイクロコン
ピュータ間のデータ通信方法においては、受信側が送信
データを送信側に送り返す工程と、送信側が送り返され
た返信データを送信データと比較して同一であることを
確認する工程と、この返信データと送信データが一致し
た場合に送信側から確認信号を送出する工程と、受信側
がこの確認信号を受信する工程とで構成されるデータ確
認処理を行い、受信側は確認信号を受信した後、送信デ
ータに関する処理を行うことを特徴とする。
In order to achieve the above object, in the method of data communication between a plurality of microcomputers connected by a communication path of the present invention, the step of sending back the sending data to the sending side by the receiving side and the transmitting step The side compares the returned reply data with the send data to confirm that they are the same, the step of sending a confirmation signal from the sender when the reply data and the send data match, and the receiver to confirm this Is performed, and the receiving side performs processing relating to transmission data after receiving the confirmation signal.

【0007】また図1は本発明のマルチマイクロコンピ
ュータシステムの基本構成を示す図である。図1に示す
ように、本発明のマルチマイクロコンピュータシステム
は、双方向の通信経路3で接続され、この通信経路3を
介してデータを送受信する通信手段11、21を備える
複数のマイクロコンピュータ1、2で構成されるマルチ
マイクロコンピュータシステムであって、受信側1は、
送信データを記憶する送信データ記憶手段12と、送信
データ記憶手段12に記憶された送信データと受信側2
より送り返された返信データとを比較して一致している
かを判定する一致検出手段13と、送信データと返信デ
ータが一致した時に受信側2に確認信号を送信する確認
信号送信手段14とを備え、受信側2は、送信側から送
られる送信データを受信した後記憶する受信データ記憶
手段22と、送信側から送られる確認信号を受信した後
この送信データの処理を行う確認信号受信手段23とを
備え、受信側の通信手段21は送信データを受信データ
記憶手段22に記憶した後、直ちに送信側1に送り返す
ことを特徴とする。なお参照番号30は確認信号用の専
用信号線を示すが、必要ない場合もある。
FIG. 1 is a diagram showing the basic configuration of the multi-microcomputer system of the present invention. As shown in FIG. 1, the multi-microcomputer system of the present invention includes a plurality of microcomputers 1, which are connected by a bidirectional communication path 3 and include communication means 11 and 21 for transmitting and receiving data via the communication path 3. In the multi-microcomputer system composed of 2, the receiving side 1 is
Transmission data storage means 12 for storing transmission data, transmission data stored in the transmission data storage means 12, and receiving side 2
Matching detection means 13 for comparing the reply data sent back from the sender to determine if they match, and confirmation signal sending means 14 for sending a confirmation signal to the receiving side 2 when the send data and the reply data match. The receiving side 2 includes received data storage means 22 for storing after receiving the transmission data sent from the transmitting side, and confirmation signal receiving means 23 for processing the transmission data after receiving the confirmation signal sent from the transmitting side. The communication means 21 on the reception side stores the transmission data in the reception data storage means 22, and then immediately returns the data to the transmission side 1. Although reference numeral 30 indicates a dedicated signal line for confirmation signal, it may not be necessary in some cases.

【0008】[0008]

【作用】本発明のマルチマイクロコンピュータシステム
におけるデータ通信方法によれば、送信データは直ちに
送信側に送り返されて、送り返された返信データと送信
データが一致することが確認され、一致することが確認
された時にのみ送信データに関する処理が行われるた
め、処理される送信データは正確に送信されたデータの
みである。従って、誤ったデータに基づいて処理が行わ
れることがなく、システムの信頼性が向上する。
According to the data communication method in the multi-microcomputer system of the present invention, the transmission data is immediately sent back to the transmission side, and it is confirmed that the returned reply data and the transmission data match, and it is confirmed that they match. Since the processing relating to the transmission data is performed only when the transmission data is processed, the transmission data to be processed is only the correctly transmitted data. Therefore, processing is not performed based on erroneous data, and the reliability of the system is improved.

【0009】[0009]

【実施例】図2は、本発明を自動車のエンジン制御ユニ
ット(ECU)を構成するマルチマイコンシステムに適
用した第一実施例の構成を示す図である。図2におい
て、参照番号10はエンジン制御ユニットを、1は第一
マイコンを、2は第二マイコンを、6はバッテリを、7
はイグニッションスイッチを、8はメインリレーを、9
は電源回路を示す。第一マイコン1と第二マイコン2
は、それぞれ中央処理装置(CPU)41、51と、R
AM42、52と、DMAコントローラ43、53と、
シリアル通信ポート(SCI)44、54と、SCI4
4、54にクロック信号を供給するクロック発生器4
5、55とを備えている。RAM42、52は、イグニ
ッションスイッチ7の状態にかかわらず常時記憶したデ
ータを保持するスタンバイRAM421、521を備え
ている。SCI44、54は、8ビットのデータをシリ
アルデータに変換して1ビットづつ送信する回路であ
り、第一マイコン1のSCI44から第二マイコン2の
SCI54へのデータの送信は通信線31を介して行わ
れ、第二マイコン2のSCI54から第一マイコン1の
SCI44へのデータの送信は通信線32を介して行わ
れる。33はクロック信号の通信線である。参照番号3
4、35は、後述する確認信号用の通信経路であり、3
4は第一マイコン1から第二マイコン2への確認信号用
であり、35は第二マイコン2から第一マイコン1への
確認信号用である。なお図においては、対応する機能部
分に同一の参照番号を付して表すこととする。
FIG. 2 is a diagram showing the configuration of a first embodiment in which the present invention is applied to a multi-microcomputer system constituting an engine control unit (ECU) of an automobile. In FIG. 2, reference numeral 10 is an engine control unit, 1 is a first microcomputer, 2 is a second microcomputer, 6 is a battery, and 7 is a battery.
Is an ignition switch, 8 is a main relay, 9
Indicates a power supply circuit. First microcomputer 1 and second microcomputer 2
Are central processing units (CPU) 41, 51 and R, respectively.
AM 42, 52, DMA controller 43, 53,
Serial communication ports (SCI) 44, 54 and SCI4
Clock generator 4 for supplying clock signals to 4 and 54
5 and 55 are provided. The RAMs 42 and 52 are provided with standby RAMs 421 and 521 that always hold the stored data regardless of the state of the ignition switch 7. The SCIs 44 and 54 are circuits for converting 8-bit data into serial data and transmitting the data one bit at a time. The transmission of data from the SCI44 of the first microcomputer 1 to the SCI54 of the second microcomputer 2 is performed via the communication line 31. Data transmission from the SCI 54 of the second microcomputer 2 to the SCI 44 of the first microcomputer 1 is performed via the communication line 32. Reference numeral 33 is a communication line for clock signals. Reference number 3
Reference numerals 4 and 35 are communication paths for confirmation signals, which will be described later, and 3
Reference numeral 4 is for a confirmation signal from the first microcomputer 1 to the second microcomputer 2, and 35 is for a confirmation signal from the second microcomputer 2 to the first microcomputer 1. In the drawings, corresponding functional parts are designated by the same reference numerals.

【0010】エンジン制御ユニット10は、イグニッシ
ョンスイッチ7によって動作状態(オン状態)になるよ
うに制御されるが、たとえイグニッションスイッチ7が
オフ状態であっても、次の動作のために必要なデータの
保持等の最低限必要な動作を行うスタンバイ状態にな
る。スタンバイ状態での電力消費量は小さく、スタンバ
イ状態であることによりバッテリ6が消耗しないように
なっている。そのため、バッテリ6から電源回路9への
電源線は、直接接続されるスタンバイ系統と、メインリ
レー8を介するメイン系統の2系統であり、たとえイグ
ニッションスイッチ7をオフ状態にしてもスタンバイよ
り供給される電気によりエンジン制御ユニット10がス
タンバイ状態になるように構成されている。スタンバイ
時には、CPU41、51とスタンバイRAM421、
521に電気が供給され。スタンバイRAM421、5
21には、次の動作に必要なデータが保持される。
The engine control unit 10 is controlled by the ignition switch 7 so as to be in an operating state (on state). Even if the ignition switch 7 is in an off state, the data necessary for the next operation is stored. It enters the standby state in which it performs the minimum required operations such as holding. The amount of power consumption in the standby state is small, and the battery 6 is not consumed in the standby state. Therefore, the power lines from the battery 6 to the power circuit 9 are two systems, a standby system directly connected and a main system via the main relay 8, and are supplied from the standby even if the ignition switch 7 is turned off. The engine control unit 10 is configured to enter a standby state by electricity. During standby, the CPUs 41 and 51 and the standby RAM 421,
Electricity is supplied to 521. Standby RAM 421, 5
21 stores data required for the next operation.

【0011】動作を開始する時には、イグニッションス
イッチ7をオン状態にする。これに応じてメインリレー
8が接続され、メイン系統を介して電源回路9に電気が
供給される。動作開始時には、制御部の各部分を所定の
状態に設定すると共に各部分の状態を検査する初期化が
行われる。この時、スタンバイRAM421、521に
記憶されているデータが読み出され、そのデータに従っ
て各部分の設定を行うと共に、そのデータの一部は通信
線31、32を介してもう一方のマイコンに送信され
る。通常の動作時には、制御プロセスの必要に応じて、
二個のマイコン間でデータの通信が行われる。また動作
を停止するためイグニッションスイッチ7をオフ状態に
した時にも、次の動作開始に必要なデータの一部を別の
マイコンに通信した後スタンバイRAM421、521
に記憶する動作が行われる。
When the operation is started, the ignition switch 7 is turned on. In response to this, the main relay 8 is connected, and electricity is supplied to the power supply circuit 9 via the main system. At the start of operation, initialization is performed to set each part of the control unit to a predetermined state and inspect the state of each part. At this time, the data stored in the standby RAMs 421 and 521 are read out, each part is set according to the data, and part of the data is transmitted to the other microcomputer via the communication lines 31 and 32. It During normal operation, depending on the needs of the control process,
Data communication is performed between the two microcomputers. Further, even when the ignition switch 7 is turned off to stop the operation, a part of the data necessary for starting the next operation is transmitted to another microcomputer and then the standby RAMs 421 and 521 are provided.
The operation of storing is performed.

【0012】データの通信は、CPU41又は42が送
信しようとするデータのRAM42、52内の位置とバ
イト数をDMAコントローラ43又は53に指示する。
これに応じてDMAコントローラ43、53はCPU4
1、42を内部バスより切り離してRAM42、52内
の指示された位置に記憶されたデータをSCI44、5
4に転送し、SCI44、54はそのデータをシリアル
データに変換して送信する。なおDMAコントローラを
用いず、CPUでSCIへのデータ転送を行うことも可
能である。
In the data communication, the DMA controller 43 or 53 is instructed of the position in the RAM 42, 52 of the data to be transmitted by the CPU 41 or 42 and the number of bytes.
In response to this, the DMA controllers 43 and 53 are the CPU 4
1, 42 are separated from the internal bus, and the data stored in the designated positions in the RAMs 42, 52 are stored in the SCIs 44, 5
4, and the SCIs 44 and 54 convert the data into serial data and transmit the serial data. It is also possible to perform data transfer to SCI by the CPU without using the DMA controller.

【0013】次に、本実施例におけるデータ通信処理に
ついて、図3のフローチャートを参照しながら説明す
る。従来のマルチマイコンシステムにおけるデータの通
信は、単に送信側からデータを送信して受信側でそのデ
ータを受信するだけで、受信したデータが正常に送られ
てきたかについては確認されていなかった。これに対し
て、本実施例では、受信側で受信したデータを一旦送り
返し、送り返されたデータを送信した元のデータと比較
して一致することを確認する。本実施例では、いずれの
マイコンも送信側になり得るが、ここでは、第一マイコ
ン1が送信側、第二マイコン2が受信側であるとし、送
信するデータは1バイトであるとして説明する。
Next, the data communication processing in this embodiment will be described with reference to the flowchart of FIG. In data communication in a conventional multi-microcomputer system, it was not confirmed whether the received data was normally sent by simply transmitting the data from the transmitting side and receiving the data at the receiving side. On the other hand, in this embodiment, the data received by the receiving side is sent back once, and the sent back data is compared with the original data sent to confirm that they match. In this embodiment, any of the microcomputers can be the transmitting side, but here, it is assumed that the first microcomputer 1 is the transmitting side and the second microcomputer 2 is the receiving side, and the data to be transmitted is 1 byte.

【0014】送信側では、ステップ301でCPU41
が送信しようとする送信データをRAM42内の別の位
置に記憶する。もし送信データが通信中に書き換えられ
ることがなければ、この処理は必要ない。ステップ30
2では、従来の送信と同様に、DMAコントローラ43
がSCI44に送信データを転送し、SCI44がシリ
アルデータに変換して送信を行う。これに応じて受信側
の第二マイコン2では、ステップ321と322で、S
CI54が受信したシリアルデータを8ビットのパラレ
ルデータに変換した後、DMAコントローラ53がRA
M52に記憶させる。
On the transmitting side, in step 301, the CPU 41
Store the transmission data to be transmitted by the RAM in another position in the RAM 42. This process is not necessary if the transmitted data is not rewritten during communication. Step 30
2, the DMA controller 43 is the same as the conventional transmission.
Transfers the transmission data to the SCI 44, and the SCI 44 converts the serial data into the serial data for transmission. In response to this, in the second microcomputer 2 on the receiving side, in steps 321 and 322, S
After converting the serial data received by the CI 54 into 8-bit parallel data, the DMA controller 53
Store in M52.

【0015】ステップ323では、CPU51が受信デ
ータを記憶した位置をDMAコントローラ53に指示し
て、受信データを送り返すようにする。これに応じて上
記の動作と同様に、送信側では、ステップ303で返信
データがRAM42の所定位置に格納される。ステップ
304では、CPU41がRAM42内の送信データと
返信データとを比較し、ステップ305で一致するかど
うかが判定される。もし一致していれば正常であるか
ら、ステップ306で確認信号を信号線34を介して送
信する。受信側のCPU51は、ステップ324で所定
時間内にこの確認信号をに受信したかどうかを判定し、
もし確認信号を受信していれば送り返したデータが正常
であるから、ステップ325で記憶してある受信データ
をそのデータが格納されるべき位置に記憶してそれまで
のデータを書換え、通常の動作を行う。
In step 323, the CPU 51 instructs the DMA controller 53 at the position where the received data is stored and sends the received data back. In response to this, in the same way as the above-mentioned operation, on the transmitting side, the reply data is stored in a predetermined position of the RAM 42 in step 303. In step 304, the CPU 41 compares the transmission data in the RAM 42 with the reply data, and it is determined in step 305 whether they match. If they match, then it is normal, so in step 306 a confirmation signal is transmitted via the signal line 34. The CPU 51 on the receiving side determines in step 324 whether or not the confirmation signal has been received within a predetermined time,
If the confirmation signal is received, the returned data is normal. Therefore, the received data stored in step 325 is stored at the position where the data should be stored, and the data up to that point is rewritten for normal operation. I do.

【0016】送信データと返信データが不一致の場合に
は、各種の対策が考えられるが、ここでは再度同じデー
タを送信することとし、送信側はステップ307で所定
時間待機した後、ステップ301に戻り、上記の処理を
繰り返す。受信側は、所定時間内に確認信号が受信でき
ない場合には待機し、送信側からの再度のデータ送信の
要求を待つ。マイコン1、2は、実際にはマルチタスク
方法で他の多くの処理を平行して行っており、単に待機
しているわけではない。そのため、受信側で確認信号を
受信できない状態で、送信されたデータに基づいた処理
を行うことが必要な場合が発生することがある。そのよ
うな場合には、前回の通信で得られたデータをそのまま
使用して処理を行う。データが短時間に急激に変化する
ことはあまりないため、誤ったデータを使用するより
も、前回のデータを使用するほうが悪影響が少ない。
If the transmission data and the reply data do not match, various countermeasures can be considered. Here, the same data is transmitted again, the transmitting side waits for a predetermined time in step 307, and then returns to step 301. The above process is repeated. The receiving side waits when the confirmation signal cannot be received within a predetermined time, and waits for a request for data transmission from the transmitting side again. The microcomputers 1 and 2 actually perform many other processes in parallel by the multitasking method, and are not merely waiting. Therefore, in some cases, it may be necessary to perform processing based on the transmitted data while the receiving side cannot receive the confirmation signal. In such a case, the data obtained in the previous communication is used as it is for processing. Using the previous data is less harmful than using the wrong data, because the data does not change very quickly in a short time.

【0017】また送信データと返信データが不一致の場
合には、所定の状態になるように初期化するのも有効な
方法である。上記のように、本実施例は自動車のエンジ
ン制御ユニットのマルチマイコンシステムに本発明を適
用したものであり、このようなマルチマイコンシステム
においては、イグニッションスイッチ7をオン状態にし
てシステムを起動する場合及びイグニッションスイッチ
7をオフ状態にしてシステムを終了する場合に、マイコ
ン間でデータを送信して必要な処理を行う。起動時に
は、スタンバイRAMに記憶されているデータを送信
し、送信されたデータは記憶されてその後の処理に使用
される。このデータは必要に応じて随時送信され、それ
までのデータは新しいデータに書き換えられるが、起動
時にはそれまでのデータがなく、送信データに異常が発
生した場合にそれまでのデータを使用するといった対策
ができないため、起動時におけるデータ送信は特に重要
である。また、終了時のデータ送信も送信されたデータ
に基づいて次回の処理が開始されるため、同様に重要で
ある。図4及び5は、本実施例における起動時と終了時
のデータ送信処理を示すタイミングチャートである。図
4は起動時のタイミングチャートであり、図5は終了時
のタイミングチャートである。
Further, when the transmission data and the reply data do not match, it is also an effective method to initialize the data so as to be in a predetermined state. As described above, the present embodiment applies the present invention to a multi-microcomputer system of an automobile engine control unit. In such a multi-microcomputer system, when the ignition switch 7 is turned on and the system is activated. Also, when the ignition switch 7 is turned off and the system is terminated, data is transmitted between the microcomputers and necessary processing is performed. At startup, the data stored in the standby RAM is transmitted, and the transmitted data is stored and used for subsequent processing. This data is transmitted as needed, and the data up to that point is rewritten with new data, but there is no data up to that point at startup, and if an error occurs in the transmitted data, the data up to that point will be used. Data transmission at start-up is especially important because it is not possible. Data transmission at the end is also important because the next process is started based on the transmitted data. 4 and 5 are timing charts showing the data transmission process at the time of startup and at the time of termination in this embodiment. FIG. 4 is a timing chart at the time of startup, and FIG. 5 is a timing chart at the time of termination.

【0018】図4に示すように、起動時にはイグニッシ
ョンスイッチ(IGSW)7がオン状態になることによ
り、メインリレー8が接続され、エンジン制御ユニット
10が起動される。これに応じて、各マイコンのCPU
は初期化動作を行い、その一動作としてスタンバイRA
Mに記憶されているデータを読出し、そのマイコン内で
そのデータに応じた設定を行うと共に、そのデータを他
のマイコンに送信する。S1は第一マイコン1の送信動
作を、J1は第二マイコン2の受信動作を、H1は第二
マイコン2の返信データのための送信動作を、JH1は
返信データのための受信動作を示す。返信データが受信
されるとデータの確認が行われ、一致していれば確認信
号K1が第一マイコン1から第二マイコン2に送られ
る。第二マイコン2がこの確認信号K1を検出すると、
確認信号K1は元の「H」レベルに戻される。第二マイ
コン2では、確認信号K1に応じてデータの書き込み等
の所定の動作W1を行う。
As shown in FIG. 4, when the ignition switch (IGSW) 7 is turned on at the time of starting, the main relay 8 is connected and the engine control unit 10 is started. According to this, CPU of each microcomputer
Performs initialization operation, and one of the operations is standby RA
The data stored in M is read out, the setting according to the data is performed in the microcomputer, and the data is transmitted to another microcomputer. S1 indicates a transmitting operation of the first microcomputer 1, J1 indicates a receiving operation of the second microcomputer 2, H1 indicates a transmitting operation for reply data of the second microcomputer 2, and JH1 indicates a receiving operation for reply data. When the reply data is received, the data is confirmed. If they match, the confirmation signal K1 is sent from the first microcomputer 1 to the second microcomputer 2. When the second microcomputer 2 detects this confirmation signal K1,
The confirmation signal K1 is returned to the original "H" level. The second microcomputer 2 performs a predetermined operation W1 such as writing data according to the confirmation signal K1.

【0019】次のデータについても同様の動作が行われ
るが、返信データと送信データが一致しなかったとす
る。その場合、確認信号は送出されず、受信側では所定
時間内に確認信号がえられないため待機状態になる。そ
の状態で再びデータ送信の要求がでるため、前回のデー
タの再送であることが認識され、同様の動作が繰り返さ
れて、データの送信が行われる。もし何度も送信に異常
が発生する場合には故障であるから、それぞれのマイコ
ンを初期化して故障発生を知らせる。
The same operation is performed for the next data, but it is assumed that the reply data and the transmission data do not match. In that case, the confirmation signal is not transmitted, and the confirmation signal is not received within the predetermined time on the receiving side, so that the receiver is in a standby state. In this state, a request for data transmission is issued again, so that it is recognized that the previous data was retransmitted, the same operation is repeated, and data is transmitted. If abnormalities occur in the transmission many times, it means that there is a failure, so each microcomputer is initialized to notify the occurrence of the failure.

【0020】図5に示すように、終了時にはイグニッシ
ョンスイッチ(IGSW)7がオフ状態になっても、メ
インリレー8はそのまま接続され、エンジン制御ユニッ
ト10もオン状態が維持される。そして必要なデータの
通信が終了した後、第一マイコン1からの信号により、
メインリレー8がオフ状態になり、エンジン制御ユニッ
ト10もオフ状態になる。データの送信は図4のタイミ
ングチャートと同様に行われる。
As shown in FIG. 5, even if the ignition switch (IGSW) 7 is turned off at the end, the main relay 8 is still connected and the engine control unit 10 is also kept on. Then, after the communication of the necessary data is completed, the signal from the first microcomputer 1
The main relay 8 is turned off and the engine control unit 10 is also turned off. Data transmission is performed in the same manner as the timing chart of FIG.

【0021】上記のように、起動時と終了時のデータ送
信は特に重要であり、送信データを送り返して確認する
データ確認処理を起動時と終了時のデータ送信のみに対
して行い、それ以外のデータ送信については従来と同様
のデータ確認処理を行わない送信方法としてもよく、ま
たすべての送信データについてデータ確認処理をおこな
うようにしてもよい。
As described above, data transmission at the time of startup and at the time of termination is particularly important, and the data confirmation processing for sending back and confirming the transmission data is performed only for the data transmission at the time of activation and at the time of termination. Regarding data transmission, a transmission method may be used in which the same data confirmation processing as in the past is not performed, or the data confirmation processing may be performed for all transmission data.

【0022】また自動車のエンジン制御ユニットのマル
チマイコンシステムにおいては、送信するデータの種類
に応じて送信速度を変えることが行われている。例え
ば、高速系と低速系の2種類の送信速度に分け、高速系
は1バイトの送信速度が2ms、4ms及び8msの3
段階、低速系は32ms、64ms及び128msの3
段階からそれぞれ選択できるようになっており、データ
の種類に応じて送信速度が設定できる。上記のようなデ
ータ確認処理を行った場合、確認処理の分従来の送信に
比べて送信速度が遅くなるが、高速系は高速での送信が
必要なデータに用いられるものであり、高速系でのデー
タ送信で本発明のデータ確認処理を行うことは好ましく
ない。そこで高速系でのデータ送信は従来と同様のデー
タ確認処理を行わない送信方法とし、低速系でのデータ
送信にのみ本発明のデータ確認処理を行う送信方法を適
用するようにするとよい。
In the multi-microcomputer system of the engine control unit of the automobile, the transmission speed is changed according to the type of data to be transmitted. For example, it is divided into two types of transmission speeds, a high speed system and a low speed system.
32 ms, 64 ms and 128 ms for 3 steps, low speed system
Each stage can be selected, and the transmission rate can be set according to the type of data. When the above data confirmation processing is performed, the transmission speed will be slower than the conventional transmission due to the confirmation processing, but the high-speed system is used for data that needs to be transmitted at high speed. It is not preferable to perform the data confirmation processing of the present invention by the above data transmission. Therefore, it is advisable to adopt a transmission method that does not perform the data confirmation processing similar to the conventional method for data transmission in the high speed system, and apply the transmission method that performs the data confirmation processing of the present invention only in the low speed system.

【0023】更に、送信されるデータには、燃料系や点
火系等の緊急度の高い制御に関係するデータと、運転者
への表示等の比較的緊急度の低い制御に関係するデータ
とがある。緊急度の高い制御に関係するデータは、でき
るだけ速やかに処理する必要があるため、上記と同様の
理由で比較的緊急度の低い制御に関係するデータの送信
にのみ本発明のデータ確認処理を行うようにしてもよ
い。また、緊急度の高い制御に関係するデータについて
は、速やかに処理するが、処理後データ確認処理を行
い、データ送信が正常に行われたことを確認した後に記
憶して、それ以後の処理においてそのまま使用されるよ
うにしてもよい。
Further, the transmitted data includes data related to highly urgent control such as fuel system and ignition system, and data related to relatively less urgent control such as display to the driver. is there. Since the data related to the control with high urgency needs to be processed as quickly as possible, the data confirmation processing of the present invention is performed only for the transmission of the data related to the control with relatively low urgency for the same reason as above. You may do it. In addition, data related to control with a high degree of urgency is processed promptly, but after the data confirmation processing after processing is performed and it is stored after confirming that data transmission was performed normally, it is stored in subsequent processing. It may be used as it is.

【0024】更に、送信されたデータは受信側において
それまでのデータを新たに送信されたデータに置き換え
る形で更新されるデータであるが、データの種類によっ
て更新期間が異なる。すなわち、データの送信される周
期が異なる。周期の長いデータは、一旦送信された後は
長期間使用されるため、もし送信時に異常があるとその
影響が大きい。そこで、更新周期の長いデータについて
のみ本発明のデータ確認処理を行うようにしてもよい。
同様の理由で、送信後1回処理されるだけで記憶されな
いデータは、記憶されて何度も使用されるデータに比べ
て影響が小さいため、記憶されるデータのみに本発明の
データ確認処理を行うようにしてもよい。
Furthermore, the transmitted data is data that is updated on the receiving side by replacing the existing data with the newly transmitted data, but the update period differs depending on the type of data. That is, the data transmission cycle is different. Since data with a long cycle is used for a long time after being transmitted once, if there is an abnormality during transmission, its effect is great. Therefore, the data confirmation processing of the present invention may be performed only on data having a long update cycle.
For the same reason, data that is processed only once after being transmitted but not stored is less affected than data that is stored and used many times. Therefore, the data confirmation processing of the present invention is applied only to stored data. It may be performed.

【0025】以上一部のデータのみにデータ確認処理を
行う各種の例を上げたが、外乱等によりデータ送信に異
常が発生する場合、正常に送信できる状態が頻繁に変化
することはなく、一度正常に送信できることを確認すれ
ば、ある程度の期間は正常な送信が行えるのが普通であ
る。そのため、上記のようにすべてのデータにデータ確
認処理を行わなくても、データ送信の信頼性を確認する
ことは可能であり、データ確認処理を行った時に異常が
あればその対策をとるようにすることもできる。従っ
て、送信するデータに定期的にデータ確認処理を行うよ
うにしてもよい。
Various examples of performing the data confirmation processing on only a part of the data have been described above. However, when an abnormality occurs in the data transmission due to disturbance or the like, the normal transmission state does not change frequently. If it is confirmed that normal transmission can be performed, normal transmission can be normally performed for a certain period of time. Therefore, it is possible to confirm the reliability of data transmission without performing data confirmation processing for all data as described above, and if there is an abnormality when performing data confirmation processing, take measures against it. You can also do it. Therefore, the data confirmation processing may be periodically performed on the data to be transmitted.

【0026】更に、通常のデータ送信とは別に、データ
確認処理を行って送信状況を確認するために特別のデー
タ送信を行うようにすることもできる。この場合には、
中心となるマイコン(マスタマイコン)で送信状況が確
認できれば良いため、確認信号の送出はかならずしも必
要でない。このような送信状況確認のための特別のデー
タ送信を行う場合の送信データは、異常が発見しやすい
データ、例えば、16進数のA5や5A等の1と0が交
互に配置されたデータが望ましい。
Further, in addition to the normal data transmission, special data transmission may be performed in order to confirm the transmission status by performing a data confirmation process. In this case,
Since it is only necessary to confirm the transmission status with the central microcomputer (master microcomputer), it is not absolutely necessary to send a confirmation signal. The transmission data in the case of performing such special data transmission for confirming the transmission status is preferably data in which an abnormality is easily found, for example, data in which 1 and 0 such as hexadecimal A5 and 5A are alternately arranged. .

【0027】以上第一実施例とその変形例について説明
したが、第一実施例においては、確認信号の送信はCP
U間に設けた専用の信号線を介して行われた。しかし、
専用の信号線を別に設けるのはその分配線が増加すると
いう問題がある。そこで、確認信号をデータの通信経路
を介して行うようにしたのが、第二実施例である。第二
実施例のマルチマイコンシステムは、図2の構成とほぼ
同様の構成を有するが、確認信号用の信号線34、35
が除かれる点がことなる。
The first embodiment and its modification have been described above. In the first embodiment, the CP is used for transmitting the confirmation signal.
It was performed via a dedicated signal line provided between U. But,
Providing a dedicated signal line separately has a problem that the number of wiring lines increases. Therefore, in the second embodiment, the confirmation signal is transmitted via the data communication path. The multi-microcomputer system of the second embodiment has substantially the same configuration as that of FIG. 2, but the signal lines 34 and 35 for confirmation signals are used.
The point that is excluded is different.

【0028】図6は、第二実施例において送受信される
データのビット構成を示す図であり、(1)が最初に送
信側から受信側に送信されるデータであり、(2)が受
信側から送信側に返信されるデータであり、(3)が確
認信号として送信側から受信側に送信されるデータであ
る。確認信号のデータは、適当なビット、例えば、最下
位ビット(LSB)や最上位ビット(MSB)の論理値
で送信が正常であるか異常であるかを表す。このような
形式で確認信号を送信するならば、異常があることを信
号が無いことで表す必要がなくなる。以上のように、第
二実施例においては、専用の確認信号線を設ける必要が
なくなるが、1回のデータ送信に3回のデータ送信を行
う必要がある。
FIG. 6 is a diagram showing a bit configuration of data transmitted and received in the second embodiment. (1) is data first transmitted from the transmission side to the reception side, and (2) is the reception side. Is the data sent back from the sending side to the sending side, and (3) is the data sent from the sending side to the receiving side as a confirmation signal. The data of the confirmation signal is a logical value of an appropriate bit, for example, the least significant bit (LSB) or the most significant bit (MSB), and indicates whether the transmission is normal or abnormal. If the confirmation signal is transmitted in such a format, it is not necessary to indicate that there is an abnormality by the absence of the signal. As described above, in the second embodiment, it is not necessary to provide a dedicated confirmation signal line, but it is necessary to perform data transmission three times for one data transmission.

【0029】図6に示した第二実施例の確認信号のビッ
ト構成では、確認信号として8ビットのデータを使用し
たが、実際に使用するのは1ビットのみであり、8ビッ
トのデータである必要はない。そこで、確認信号として
は、1ビットのみを送信するようにしてもよい。但し、
図2に示した構成では、RAMからのデータの転送にD
MAコントローラを使用しており、1ビットのみ転送は
できない。そのため、この場合は、CPUがSCIへの
転送を行う。
In the bit configuration of the confirmation signal of the second embodiment shown in FIG. 6, 8-bit data was used as the confirmation signal, but only 1 bit is actually used, that is, 8-bit data. No need. Therefore, as the confirmation signal, only 1 bit may be transmitted. However,
In the configuration shown in FIG. 2, D is used to transfer data from the RAM.
It uses the MA controller and cannot transfer only 1 bit. Therefore, in this case, the CPU transfers to the SCI.

【0030】第一及び第二実施例においては、8ビット
の送信データがすべて一致した時にデータ送信が正常で
あることを示す確認信号を送出するが、図6の確認信号
のデータビット構成では確認信号として使用するのは1
ビットのみであり、他のビットは余っている。そこで、
この余っているビットを利用して、送信データの各ビッ
トの確認信号を送るようにした第二実施例の変形例にお
けるビット構成を示したのが図7の(1)である。
In the first and second embodiments, the confirmation signal indicating that the data transmission is normal is sent when all the 8-bit transmission data match, but in the confirmation signal data bit configuration of FIG. 1 is used as a signal
Only bits, other bits are redundant. Therefore,
FIG. 7A shows the bit configuration in the modified example of the second embodiment in which the confirmation signal for each bit of the transmission data is sent using the remaining bits.

【0031】また、第二実施例のように8ビットのデー
タ送信毎に1ビットの確認信号を送るのではなく、8ビ
ットのデータを8回以下の適当な回数連続して送信し、
それらの確認信号をまとめて一回の送信で行うようにし
た変形例における確認信号のビット構成を示したのが図
7の(2)である。この例では、8ビットのデータを8
回連続して送信する場合を示している。この例であれ
ば、確認信号の送信は、1/8に低減される。但し、合
計8バイトのデータの送信が終了するまでは、それらの
データを使用する処理は開始できないため、緊急性の高
いデータには適用できない。
Further, instead of sending a 1-bit confirmation signal every time 8-bit data is transmitted as in the second embodiment, 8-bit data is continuously transmitted an appropriate number of times of 8 times or less,
FIG. 7 (2) shows the bit configuration of the confirmation signal in the modified example in which the confirmation signals are collectively transmitted in one transmission. In this example, 8-bit data is
The figure shows the case of continuous transmission. In this example, the transmission of the confirmation signal is reduced to 1/8. However, it cannot be applied to highly urgent data because the process of using the data cannot be started until the transmission of a total of 8 bytes of data is completed.

【0032】更に、DMAコントローラでなくCPUが
SCIへの転送を行う場合には、送信のビット数は比較
的自由に設定可能である。そこで、1回の送信データを
9ビットとし、その内の1ビットを確認信号に割り当て
たデータビット構成の変形例を図8に示す。図示のよう
に、送信するデータは8ビットとし、残りの1ビットを
確認信号に割り当てる。送信データはこの確認信号に対
応する前回の送信データでもよいが、次の送信データと
前回の送信データの確認信号としてもよい。その場合に
は、確認信号はストップビット側のほうがよい。
Further, when the CPU, not the DMA controller, performs the transfer to the SCI, the number of transmission bits can be set relatively freely. Therefore, FIG. 8 shows a modified example of the data bit structure in which one transmission data is 9 bits and 1 bit thereof is assigned to the confirmation signal. As shown in the figure, the data to be transmitted is 8 bits, and the remaining 1 bit is assigned to the confirmation signal. The transmission data may be the previous transmission data corresponding to this confirmation signal, or may be the confirmation signal of the next transmission data and the previous transmission data. In that case, the confirmation signal should be on the stop bit side.

【0033】マイコンシステムでは、電源が投入されシ
ステムが立ち上がった時にRAM等のシステムを構成す
る各部が正常に動作するか検査した後、通常の動作を開
始することが行われる。このような機能を自己診断機能
(ダイアグノーシス機能)と呼んでいる。エンジン制御
ユニットにおいても、このような自己診断動作が行われ
るが、RAMの検査(例えば、制御値のガードを越えた
値になっていないか、データの構成がくずれていないか
等)にはかなりの時間がかかるため、各部の設定やデー
タの通信を先に行うことがある。もしRAMの検査で異
常が発見された時には、送信したデータも異常である可
能性がある。そのような場合の対策を施したのが第三実
施例であり、その処理を図9に示す。
In the microcomputer system, when the power is turned on and the system is started up, it is inspected whether or not each unit constituting the system such as RAM normally operates, and then the normal operation is started. Such a function is called a self-diagnosis function (diagnosis function). Such self-diagnosis operation is also performed in the engine control unit, but it is quite necessary for RAM inspection (for example, whether the value exceeds the control value guard or whether the data structure is not corrupted). Since it takes time, the setting of each unit and data communication may be performed first. If the RAM is found to be abnormal, the transmitted data may also be abnormal. The third embodiment takes measures against such a case, and its processing is shown in FIG.

【0034】送信側では、ステップ901でデータ送信
が行われ、その後送信したデータが返信されるまでの
間、ステップ902でRAMの検査が行われる。そして
ステップ903で返信データが受信され、ステップ90
4で送信データと一致するかが判定される。もし送信デ
ータと返信データが一致し、RAMにも異常がないこと
がステップ905で確認されれば、ステップ907で確
認信号が送出される。RAMに異常がある場合には、送
信したデータ自体に問題がある可能性があるので、直ち
にステップ908で受信側に初期化信号を送出し、ステ
ップ909で初期化を含めた回復処理を開始する。受信
側では、初期化信号を応じて直ちに初期化を行い、問題
を生じないようにする。ステップ904で送信データと
返信データが一致しない場合には、更にステップ906
でRAMに異常がないかを判定する。もしRAMに異常
がなければ、送信による異常であるから、ステップ91
0の待機動作の後、再度同一のデータの送信を行う。も
しRAMにも異常があれば、ステップ908に進み、上
記と同様の動作を行う。なおこの処理は送信後に実施し
たが、データの送信前にRAM検査を実施し、初期化信
号を送出してもよい。またこの初期化信号は前述の実施
例の確認信号の送出方法を利用できる。
On the transmitting side, data is transmitted in step 901, and the RAM is inspected in step 902 until the transmitted data is returned. Then, in step 903, the reply data is received, and in step 90
At 4, it is determined whether the data matches the transmission data. If it is confirmed in step 905 that the transmitted data and the reply data match and there is no abnormality in the RAM, a confirmation signal is transmitted in step 907. If there is an abnormality in the RAM, there is a possibility that the transmitted data itself has a problem, so an initialization signal is immediately sent to the receiving side in step 908, and a recovery process including initialization is started in step 909. . On the receiving side, the initialization is performed immediately in response to the initialization signal so that no problem occurs. If the transmission data and the reply data do not match in step 904, further step 906
Check if there is any abnormality in RAM. If there is no abnormality in the RAM, it is an abnormality due to transmission, so step 91
After the standby operation of 0, the same data is transmitted again. If the RAM is also abnormal, the process proceeds to step 908 and the same operation as above is performed. Although this processing is performed after the transmission, the RAM inspection may be performed before the data transmission and the initialization signal may be transmitted. As the initialization signal, the confirmation signal transmission method of the above-described embodiment can be used.

【0035】以上本発明の実施例について説明したが、
上記の実施例においては、データの送信は1ビットづつ
のシリアル通信で行われるとしたが、一部を除いて8ビ
ット等の複数ビットを平行して送信するパラレル通信で
行うことも可能である。
The embodiment of the present invention has been described above.
In the above embodiment, the data transmission is performed by serial communication of 1 bit at a time, but it is also possible to perform parallel communication by transmitting a plurality of bits such as 8 bits in parallel except for a part. .

【0036】[0036]

【発明の効果】以上説明したように、本発明によれば、
マルチマイコンシステムにおいてマイコン間のデータ通
信の信頼性が向上するため、マルチマイコンシステムの
信頼性を向上させることが可能であり、特に自動車に搭
載されるマルチマイコンシステムに適用した場合には、
安全性がより一層向上する。
As described above, according to the present invention,
Since the reliability of the data communication between the microcomputers in the multi-microcomputer system is improved, it is possible to improve the reliability of the multi-microcomputer system, and especially when applied to the multi-microcomputer system mounted on an automobile,
Safety is further improved.

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

【図1】本発明のマルチマイクロコンピュータシステム
の基本構成を示す図である。
FIG. 1 is a diagram showing a basic configuration of a multi-microcomputer system of the present invention.

【図2】本発明を自動車のエンジン制御ユニットのマル
チマイクロコンピュータシステムに適用した第一実施例
の構成を示す図である。
FIG. 2 is a diagram showing a configuration of a first embodiment in which the present invention is applied to a multi-microcomputer system of an automobile engine control unit.

【図3】第一実施例における、処理を示すフローチャー
トである。
FIG. 3 is a flowchart showing a process in the first embodiment.

【図4】第一実施例における、データ確認処理が行われ
るタイミングを示したタイムチャートである。
FIG. 4 is a time chart showing a timing at which data confirmation processing is performed in the first embodiment.

【図5】第一実施例における、データ確認処理が行われ
る他のタイミングを示したタイムチャートである。
FIG. 5 is a time chart showing another timing at which the data confirmation process is performed in the first embodiment.

【図6】第二実施例におけるデータビット構成を示す図
である。
FIG. 6 is a diagram showing a data bit structure in a second embodiment.

【図7】第二実施例におけるデータビット構成の他の例
を示す図である。
FIG. 7 is a diagram showing another example of a data bit structure in the second embodiment.

【図8】第二実施例におけるデータビット構成の更に他
の例を示す図である。
FIG. 8 is a diagram showing still another example of the data bit structure in the second embodiment.

【図9】第三実施例における、処理を示すフローチャー
トである。
FIG. 9 is a flowchart showing a process in the third embodiment.

【図10】マルチマイクロコンピュータシステムの基本
構成を示す図である。
FIG. 10 is a diagram showing a basic configuration of a multi-microcomputer system.

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

1…第一マイクロコンピュータ(送信側) 2…第二マイクロコンピュータ(受信側) 3…通信経路 11…送信側通信手段 12…送信データ記憶手段 13…一致検出手段 14…確認信号送信手段 21…受信側通信手段 22…受信データ記憶手段 23…確認信号受信手段 30…確認信号送信経路 DESCRIPTION OF SYMBOLS 1 ... 1st microcomputer (transmission side) 2 ... 2nd microcomputer (reception side) 3 ... Communication path 11 ... Transmission side communication means 12 ... Transmission data storage means 13 ... Match detection means 14 ... Confirmation signal transmission means 21 ... Reception Side communication means 22 ... Received data storage means 23 ... Confirmation signal receiving means 30 ... Confirmation signal transmission path

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】 通信経路で接続された複数のマイクロコ
ンピュータ間のデータ通信方法であって、 受信側が送信データを送信側に送り返す工程と、 送信側から送り返された返信データを送信データと比較
して同一であることを確認する工程と、 前記返信データと送信データが一致した場合に、送信側
が確認信号を送出する工程と、 受信側が前記確認信号を受信する工程とで構成されるデ
ータ確認処理を行い、 受信側は前記確認信号を受信した後、当該送信データに
関する処理を行うことを特徴とするマイクロコンピュー
タ間のデータ通信方法。
1. A data communication method between a plurality of microcomputers connected by a communication path, wherein a receiving side sends back transmission data to a sending side, and reply data sent back from the sending side is compared with the sending data. Confirming that they are the same, a data confirmation process including a step of transmitting a confirmation signal by the transmitting side when the reply data and the transmission data match, and a step of receiving the confirmation signal by the receiving side. And a receiving side performs processing relating to the transmission data after receiving the confirmation signal.
【請求項2】 前記データの送信はデータに応じて複数
の通信速度で行われ、前記データ確認処理は通信速度の
低い送信データのみについて行うことを特徴とする請求
項の1に記載のマイクロコンピュータ間のデータ通信方
法。
2. The microcomputer according to claim 1, wherein the transmission of the data is performed at a plurality of communication speeds according to the data, and the data confirmation processing is performed only on the transmission data having a low communication speed. Data communication method between.
【請求項3】 送信される前記データは、データの緊急
度によって段階に分けられており、前記データ確認処理
は緊急度の低いデータのみについて行うことを特徴とす
る請求項の1に記載のマイクロコンピュータ間のデータ
通信方法。
3. The micro according to claim 1, wherein the data to be transmitted is divided into stages according to the degree of urgency of the data, and the data confirmation processing is performed only on data having a low degree of urgency. Data communication method between computers.
【請求項4】 送信される前記データは、受信側におい
てそれまでのデータを新たに送信されたデータに置き換
える形で更新されるデータであり、データに応じて複数
の更新周期に分けられており、前記データ確認処理は更
新期間の長いデータのみについて行うことを特徴とする
請求項の1に記載のマイクロコンピュータ間のデータ通
信方法。
4. The data to be transmitted is data that is updated on the receiving side by replacing the existing data with newly transmitted data, and is divided into a plurality of update cycles according to the data. 2. The data communication method between microcomputers according to claim 1, wherein the data confirmation process is performed only on data having a long update period.
【請求項5】 前記データ確認処理は定期的に行われる
ことを特徴とする請求項の1に記載のマイクロコンピュ
ータ間のデータ通信方法。
5. The data communication method between microcomputers according to claim 1, wherein the data confirmation processing is performed periodically.
【請求項6】 前記データ確認処理は受信側で記憶され
るデータに対してのみ行われることを特徴とする請求項
の1に記載のマイクロコンピュータ間のデータ通信方
法。
6. The data communication method between microcomputers according to claim 1, wherein the data confirmation processing is performed only on data stored on the receiving side.
【請求項7】 前記確認信号は、専用の信号経路(3
0)を介して通信されることを特徴とする請求項の1に
記載のマイクロコンピュータ間のデータ通信方法。
7. The confirmation signal is a dedicated signal path (3
0) The method of data communication between microcomputers according to claim 1, characterized in that communication is performed via 0).
【請求項8】 前記確認信号は、前記送信データのデー
タビットの一部に割り当てて通信されることを特徴とす
る請求項の1に記載のマイクロコンピュータ間のデータ
通信方法。
8. The method of data communication between microcomputers according to claim 1, wherein the confirmation signal is assigned to a part of data bits of the transmission data for communication.
【請求項9】 前記データの送信は8ビット単位で行わ
れ、8バイト分のデータをまとめて連続して送信した
後、8回分の前記確認信号を1バイトにまとめて通信す
ることを特徴とする請求項の8に記載のマイクロコンピ
ュータ間のデータ通信方法。
9. The transmission of the data is performed in 8-bit units, and data of 8 bytes is collectively and continuously transmitted, and then the confirmation signals of 8 times are collectively transmitted in 1 byte. 9. A data communication method between microcomputers according to claim 8.
【請求項10】 受信側は、所定期間内に前記確認信号
が受信できない時には、それまでのデータを使用して処
理を行うことを特徴とする請求項の1から9のいずれか
に記載のマイクロコンピュータ間のデータ通信方法。
10. The micro according to claim 1, wherein the receiving side performs processing by using the data up to that time when the confirmation signal cannot be received within a predetermined period. Data communication method between computers.
【請求項11】 受信側は、所定期間内に前記確認信号
が受信できない時には、初期化動作を行うことを特徴と
する請求項の1から9のいずれかに記載のマイクロコン
ピュータ間のデータ通信方法。
11. The data communication method between microcomputers according to claim 1, wherein the receiving side performs an initialization operation when the confirmation signal cannot be received within a predetermined period. .
【請求項12】 送信側は、前記返信データと送信デー
タが不一致の場合に不一致を示す信号を送信し、 受信側は不一致を示す信号を受信した時には、それまで
のデータを使用することを特徴とする請求項の1から9
のいずれかに記載のマイクロコンピュータ間のデータ通
信方法。
12. The transmission side transmits a signal indicating a mismatch when the reply data and the transmission data do not match, and when the receiving side receives the signal indicating a mismatch, the data up to that point is used. Claims 1 to 9
5. A data communication method between microcomputers according to any one of 1.
【請求項13】 送信側は、前記返信データと送信デー
タが不一致の場合に不一致を示す信号を送信し、 受信側は不一致を示す信号を受信した時には、初期化動
作を行うことを特徴とする請求項の1から9のいずれか
に記載のマイクロコンピュータ間のデータ通信方法。
13. The transmission side transmits a signal indicating a mismatch when the reply data and the transmission data do not match, and the receiving side performs an initialization operation when the signal indicating a mismatch is received. A data communication method between the microcomputers according to any one of claims 1 to 9.
【請求項14】 送信側は、データの送信後に当該マイ
クロコンピュータのRAMの試験を行い、該RAM試験
の結果が不良の場合には、受信側での送信データの記憶
を停止させる信号を出力することを特徴とする請求項の
1に記載のマイクロコンピュータ間のデータ通信方法。
14. The transmitting side tests the RAM of the microcomputer after transmitting the data, and when the result of the RAM test is defective, outputs a signal for stopping the storage of the transmitting data on the receiving side. The data communication method between microcomputers according to claim 1, characterized in that.
【請求項15】 送信側は、データの送信前又は送信後
に当該マイクロコンピュータのRAMの試験を行い、該
RAM試験の結果が不良の場合には、受信側に初期化動
作を行なわせる信号を出力することを特徴とする請求項
の1に記載のマイクロコンピュータ間のデータ通信方
法。
15. The transmitting side tests the RAM of the microcomputer before or after transmitting the data, and when the result of the RAM test is defective, outputs a signal for causing the receiving side to perform an initialization operation. The data communication method between the microcomputers according to claim 1, wherein
【請求項16】 前記複数のマイクロコンピュータは、
エンジン制御用のマルチマイクロコンピュータシステム
であり、前記データ確認処理は、イグニッションスイッ
チがオフ状態になった後、メインリレースイッチがオフ
状態になるまでの間に行われることを特徴とするマイク
ロコンピュータ間のデータ通信方法。
16. The plurality of microcomputers are
A multi-microcomputer system for controlling an engine, wherein the data confirmation processing is performed after the ignition switch is turned off and before the main relay switch is turned off. Data communication method.
【請求項17】 前記複数のマイクロコンピュータは、
エンジン制御用のマルチマイクロコンピュータシステム
であり、前記データ確認処理は、イグニッションスイッ
チがオン状態になった直後に行われることを特徴とする
マイクロコンピュータ間のデータ通信方法。
17. The plurality of microcomputers are
A multi-microcomputer system for controlling an engine, wherein the data confirmation process is performed immediately after an ignition switch is turned on.
【請求項18】 通信経路で接続された複数のマイクロ
コンピュータ間のデータ通信方法であって、 受信側は送信データを送信側に送り返す工程と、 送信側は送り返された返信データを送信データと比較し
て同一であることを確認する工程とで構成されるデータ
確認処理を定期的に行うことを特徴とするマイクロコン
ピュータ間のデータ通信方法。
18. A data communication method between a plurality of microcomputers connected by a communication path, wherein a receiving side sends back transmission data to a transmitting side, and the transmitting side compares reply data sent back with the transmitting data. A data communication method between microcomputers, which comprises periodically performing a data confirmation process including a step of confirming that they are the same.
【請求項19】 双方向の通信経路(3)で接続され、
該通信経路(3)を介してデータを送受信する通信手段
(11、21)を備える複数のマイクロコンピュータ
(1、2)で構成されるマルチマイコロコンピュータシ
ステムであって、 受信側(1)は、送信データを記憶する送信データ記憶
手段(12)と、該送信データ記憶手段(12)に記憶
された送信データと受信側より送り返された返信データ
とを比較して一致しているかを判定する一致検出手段
(13)と、前記送信データと返信データが一致した時
に受信側(2)に確認信号を送信する確認信号送信手段
(14)とを備え、 受信側(2)は、送信側から送られる前記送信データを
受信した後記憶する受信データ記憶手段(22)と、送
信側から送られる前記確認信号を受信した後当該送信デ
ータの処理を行う確認信号受信手段(23)とを備え、
受信側の前記通信手段(21)は前記送信データを前記
受信データ記憶手段(22)に記憶した後、直ちに送信
側(1)に送り返すことを特徴とするマルチマイクロコ
ンピュータシステム。
19. A bidirectional communication path (3) for connection,
A multi-mycol computer system comprising a plurality of microcomputers (1, 2) having communication means (11, 21) for transmitting and receiving data via the communication path (3), wherein the receiving side (1) is , Comparing the transmission data stored in the transmission data storage means (12) with the transmission data stored in the transmission data storage means (12) and the reply data returned from the receiving side to determine whether they match. A match detection means (13) and a confirmation signal transmission means (14) for transmitting a confirmation signal to the reception side (2) when the transmission data and the reply data match, the reception side (2) is provided from the transmission side. Received data storage means (22) for storing the transmitted data to be sent and storing the received data, and confirmation signal receiving means (22) for processing the transmitted data after receiving the confirmation signal sent from the transmitting side ( 3) and with a,
The multi-microcomputer system, wherein the communication means (21) on the receiving side stores the transmission data in the reception data storage means (22) and then immediately sends it back to the transmitting side (1).
JP5074124A 1993-03-31 1993-03-31 Data communication method between microcomputers and multi-microcomputer system Pending JPH06290160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5074124A JPH06290160A (en) 1993-03-31 1993-03-31 Data communication method between microcomputers and multi-microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5074124A JPH06290160A (en) 1993-03-31 1993-03-31 Data communication method between microcomputers and multi-microcomputer system

Publications (1)

Publication Number Publication Date
JPH06290160A true JPH06290160A (en) 1994-10-18

Family

ID=13538144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5074124A Pending JPH06290160A (en) 1993-03-31 1993-03-31 Data communication method between microcomputers and multi-microcomputer system

Country Status (1)

Country Link
JP (1) JPH06290160A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274376A (en) * 2006-03-31 2007-10-18 Denso Corp Data processing apparatus, and program
JP2016111672A (en) * 2014-11-27 2016-06-20 株式会社沖データ Communication method, communication system, and communication device
JP2022045711A (en) * 2020-09-09 2022-03-22 トヨタ自動車株式会社 Processing device, communication system, and program for processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274376A (en) * 2006-03-31 2007-10-18 Denso Corp Data processing apparatus, and program
JP4645505B2 (en) * 2006-03-31 2011-03-09 株式会社デンソー Data processing apparatus and program
JP2016111672A (en) * 2014-11-27 2016-06-20 株式会社沖データ Communication method, communication system, and communication device
JP2022045711A (en) * 2020-09-09 2022-03-22 トヨタ自動車株式会社 Processing device, communication system, and program for processing device

Similar Documents

Publication Publication Date Title
KR100233180B1 (en) Communication system
US4881227A (en) Arrangement for monitoring a computer system having two processors in a motor vehicle
US5832397A (en) Integrated wiring systems for a vehicle control system
JPH10161735A (en) Distribution control system of heavy equipment
US6704628B1 (en) Method for detecting errors of microprocessors in control devices of an automobile
US5974351A (en) Multiplexed electronic control systems
JP3486990B2 (en) Serial communication device
JP5019983B2 (en) In-vehicle communication system, relay device, and communication method
JPH06290160A (en) Data communication method between microcomputers and multi-microcomputer system
JPH0581222A (en) Method for monitoring operation of two cpus
JP3275315B2 (en) In-vehicle multiplex transmission system
US20230216704A1 (en) Onboard apparatus, onboard communication system, and communication control method
JPH09226482A (en) Communication controller for vehicle
JP3370387B2 (en) Abnormality countermeasure method in a multi-CPU vehicle control computer system
JP3059757B2 (en) In-vehicle multiplex transmission system
JPH04275740A (en) On-vehicle multiplex transmission device
JP2003140704A (en) Process controller
US20240054093A1 (en) Method for performing data transmission
WO2022201596A1 (en) In-vehicle control device
JP4258460B2 (en) Network system and fault diagnosis method for network system
JP3452187B2 (en) Communication initialization method for failure diagnosis device
JP3088200B2 (en) Multiplex communication device
JPH11345217A (en) Fault detecting method at the time of inter-electronic controller communication
JP3031050B2 (en) Fault diagnosis device
JP3088197B2 (en) Multiplex communication device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040323