JPH069033B2 - Abnormality diagnosis method for multi-CPU system - Google Patents

Abnormality diagnosis method for multi-CPU system

Info

Publication number
JPH069033B2
JPH069033B2 JP60213920A JP21392085A JPH069033B2 JP H069033 B2 JPH069033 B2 JP H069033B2 JP 60213920 A JP60213920 A JP 60213920A JP 21392085 A JP21392085 A JP 21392085A JP H069033 B2 JPH069033 B2 JP H069033B2
Authority
JP
Japan
Prior art keywords
data
bus
cpu
transmission
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60213920A
Other languages
Japanese (ja)
Other versions
JPS6274133A (en
Inventor
智正 田村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Electric Manufacturing Co 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 Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Electric Manufacturing Co Ltd
Priority to JP60213920A priority Critical patent/JPH069033B2/en
Publication of JPS6274133A publication Critical patent/JPS6274133A/en
Publication of JPH069033B2 publication Critical patent/JPH069033B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 A.産業上の利用分野 この発明は、複数のCPUノードをバスで結合したマル
チCPUシステムに関し、特に、各ノード間のバスによ
るデータ送受信機能の異常診断方法に関する。
Detailed Description of the Invention A. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-CPU system in which a plurality of CPU nodes are connected by a bus, and more particularly to a method for diagnosing a data transmission / reception function abnormality by a bus between nodes.

B.発明の概要 この発明は、送信ノードが送信と同時にバス上のデータ
をモニタして送信データと受信データを比較し、両デー
タが不一致のときはそのデータ送信を再度行ない、再送
時にもデータ不一致が検出されたときは当該ノードをバ
スから切り離して自己診断処理を実行し、自己診断の結
果が不良でない場合には当該ノードをバスに再接続する
方法とすることにより、バス上の一過性のノイズ,バス
上のバースト性のノイズ,ノードやバスの故障といった
故障の原因に応じて適切で対処できるようにした。
B. SUMMARY OF THE INVENTION According to the present invention, the transmitting node monitors the data on the bus at the same time as transmitting and compares the transmitting data and the receiving data. When it is detected, the node is disconnected from the bus, self-diagnosis processing is executed, and if the self-diagnosis result is not defective, the node is reconnected to the bus. It is now possible to take appropriate measures depending on the cause of failure such as noise, bursty noise on the bus, or node or bus failure.

C.従来の技術 例えば調歩同期式シリアルバスなどに複数のCPUノー
ドを接続したマルチCPUシステムにおいては、バスに
よるデータ伝送時に受信ノードではパリティチェックや
フレーミングチェックを行なっており、このチェックで
エラーが検出されたときバス故障として対処し、受信ノ
ードはバスの運用を停止し、システムダウンとなる。
C. 2. Description of the Related Art In a multi-CPU system in which a plurality of CPU nodes are connected to, for example, an asynchronous serial bus, a receiving node performs a parity check or a framing check during data transmission via the bus, and an error is detected in this check. When this happens, a bus failure is dealt with, and the receiving node stops operating the bus and the system goes down.

D.発明が解決しようとする問題点 上述した従来のシステムでは、一過性のノイズがバスに
生じただけでも、そのノイズが伝送タイミングと一致す
ると、受信ノードではバス故障として認識され、バスの
運用停止となる。多数のノードが一斉にバスの信号を受
信していいるときに上記の状態が生じると、各受信ノー
ドがすべてバスの運用を停止するため、一過性のノイズ
でシステム全体がダウンしてしまう。
D. Problems to be Solved by the Invention In the conventional system described above, even if a transient noise occurs on the bus, if the noise coincides with the transmission timing, the receiving node recognizes it as a bus failure and stops the operation of the bus. Becomes If the above state occurs while a large number of nodes are simultaneously receiving bus signals, all receiving nodes stop operating the bus, and transient noise causes the entire system to go down.

この発明は上述した従来の問題点に鑑みなされたもの
で、その目的は、一過性のノイズ,バースト性のノイ
ズ,ノードやバスの故障といった原因別に適切に対処で
きるようにしたマルチCPUシステムの故障診断方法を
提供することにある。
The present invention has been made in view of the above-mentioned conventional problems, and an object of the present invention is to provide a multi-CPU system capable of appropriately dealing with each cause such as transient noise, burst noise, and node or bus failure. It is to provide a failure diagnosis method.

E.問題点を解決するための手段 そこでこの発明では、送信ノードは送信と同時にバス信
号をモニタして送信データと受信データを比較し、両デ
ータが不一致のときはそのデータ送信を再度行ない、再
送時にもデータ不一致が検出されたときは当該ノードを
バスから切り離して自己診断処理を実行し、自己診断の
結果が不良でない場合は当該ノードをバスに再接続する
異常診断方法とした。
E. In the present invention, therefore, in the present invention, the transmitting node monitors the bus signal at the same time as the transmission and compares the transmitted data with the received data. When the two data do not match, the data transmission is performed again and the data is retransmitted. When the data mismatch is detected, the node is disconnected from the bus and the self-diagnosis process is executed. If the result of the self-diagnosis is not bad, the node is reconnected to the bus.

F.作用 この発明の異常診断方法によれば、バスに一過性ノイズ
が発生し、それによって送信データと受信データが不一
致になった場合、データ再送時にはノイズの影響がな
く、正常に伝送できる。ある程度長いバースト性のノイ
ズがバスに発生したとき、データ再送時にも送受信デー
タの不一致が検出される。この場合、上記自己診断処理
が実行され、送信ノード自体には異常はないので診断結
果は正常となり、バスに再接続される。自己診断の結果
が不良のときにのみ当該ノードはバスの運用を停止す
る。
F. Effect According to the abnormality diagnosing method of the present invention, when transient noise occurs on the bus and the transmission data and the reception data become inconsistent with each other, there is no influence of noise at the time of data retransmission, and normal transmission is possible. When a certain amount of bursty noise occurs on the bus, a mismatch between the transmitted and received data is detected even when the data is retransmitted. In this case, the self-diagnosis process is executed, and since there is no abnormality in the transmission node itself, the diagnosis result becomes normal and the bus is reconnected to the bus. The node stops the bus operation only when the self-diagnosis result is bad.

G.実施例 第1図は本発明の方法を実施する1つのCPUノードの
機能ブロック図である。
G. Embodiment FIG. 1 is a functional block diagram of one CPU node for implementing the method of the present invention.

1は複数の同様な構成のCPUノードを相互接続するシ
リアルバス、2は伝送制御用CPU、3はホストCP
U、Rはバス1と受信監視回路4および送信制御回路
5とを接続するリレー、6は当該CPUノードに対して
バス1の使用権が与えられたか否かを判定する優先判定
回路、7は伝送制御用CPU2とホストCPU3を結ぶ
リレー回路、8はCPU2からCPU3へ受信データR
受け渡すレジスタ、9はCPU3からCPU2へ送信
データTを受け渡すレジスタである。
Reference numeral 1 is a serial bus for interconnecting a plurality of CPU nodes having similar configurations, 2 is a transmission control CPU, 3 is a host CP
U and RY are relays that connect the bus 1 to the reception monitoring circuit 4 and the transmission control circuit 5, and 6 is a priority determination circuit that determines whether or not the right to use the bus 1 is given to the CPU node. Is a relay circuit connecting the transmission control CPU 2 and the host CPU 3, and 8 is the received data R from the CPU 2 to the CPU 3.
The X transfer register 9 is a register for transferring the transmission data T X from the CPU 3 to the CPU 2.

伝送制御用CPU2は、UART(universal asynchron
ous receiver and transmitter)21と、受信機能部2
2と、不一致検出機能部23と、送信機能部24とを含
んでいる。
The transmission control CPU 2 uses a UART (universal asynchronization).
ous receiver and transmitter) 21 and the receiving function unit 2
2, a mismatch detection function unit 23, and a transmission function unit 24 are included.

ホスCPU3は、アプリケーション機能部31と、受信
機能部32と、送信機能部33と、割込制御部34と、
自己診断機能部35とを含くんでいる。
The host CPU 3 includes an application function unit 31, a reception function unit 32, a transmission function unit 33, an interrupt control unit 34,
It includes the self-diagnosis function unit 35.

データ受信時においては、バス1上の信号はリレーR
を介して受信監視回路4に入力され、その直列出力SD
IがUART21で処理されて受信データRとなる。
受信機能部22は受信データRのパリティなどをチェ
ックし、そのデータRをホストCPU3の受信機能部
32に受け渡す。パリティエラーが検出されれば、その
旨の信号RXERRを割込制御部34に伝える。
When receiving data, the signal on bus 1 is relay R Y
Is input to the reception monitoring circuit 4 via the serial output SD
I is processed by the UART 21 and becomes the reception data R X.
The reception function unit 22 checks the parity of the reception data R X , and transfers the data R X to the reception function unit 32 of the host CPU 3. If a parity error is detected, a signal R X ERR to that effect is transmitted to the interrupt control unit 34.

データ送信時においては、送信データTはまずホスト
CPU3の送信機能部33から生じ、CPU2の送信機
能部24,UART21を介して直列信号SDOとな
り、送信制御回路5からリレーRを経てバス1に出力
される。このとき同時に、バス1上の信号(自ら送り出
した信号)を受信監視回路4でモニタし、UART2
1,受信機能部22に伝える。不一致検出回路23は、
送信データTと比較する。正常であればデータT
とは一致する。
At the time of data transmission, the transmission data T X is first generated from the transmission function unit 33 of the host CPU 3, becomes the serial signal SDO via the transmission function unit 24 of the CPU 2, and the UART 21, and is transmitted from the transmission control circuit 5 via the relay R X to the bus 1. Is output to. At this time, at the same time, the signal on the bus 1 (the signal sent by itself) is monitored by the reception monitoring circuit 4, and the UART2
1, Notify the reception function unit 22. The mismatch detection circuit 23
Compare with the transmission data T X. If normal, the data T X and R X match.

第2図(A)のタイミングチャートに示すように、データ
の送信中にバス1に一過性のノイズが生じると、不
一致検出回路23にてデータTとRとの不一致が検
出される。この場合、不一致検出回路23から送信機能
部24にリトライ指令が発せられ、同じデータTを再
送信する。第2図(A)のような一過性ノイズが原因であ
れば、再送信時にはデータTとRは一致する。
As shown in the timing chart of FIG. 2 (A), when transient noise occurs on the bus 1 during transmission of the data T X , the mismatch detection circuit 23 detects the mismatch between the data T X and R X. To be done. In this case, the mismatch detection circuit 23 issues a retry command to the transmission function unit 24 and retransmits the same data T X. If the cause is a transient noise as shown in FIG. 2 (A), the data T X and R X match at the time of retransmission.

第2図(B)は比較的長い時間続くバースト性ノイズがバ
ースト1に発生した場合の動作を示している。この場
合、上述の再送信時にもデータTとRとが不一致と
なる。このとき不一致検出機能部23はリトライ不一致
信号TXERRを割込制御部34に与える。
FIG. 2 (B) shows the operation when bursty noise lasting for a relatively long time occurs in burst 1. In this case, the data T X and R X do not match even at the time of the above-mentioned retransmission. At this time, the mismatch detection function unit 23 gives the retry mismatch signal T X ERR to the interrupt control unit 34.

これを受けてホストCPU3では自己診断機能部35が
働く。まずリレーRをオフにして当該ノードをバース
ト1から切り離す。その状態に自己診断機能部35から
自己診断用の送信データTを発生し、これを送信機能
部33に伝える。送信機能部33およびCPU2は上記
と同じ動作によって、送信データTを送信制御回路5
から直列出力させる。この出力はバースト1には出ず、
直接的に同じノード内の受信監視回路4に入力される。
先に説明した送信時と同様に、CPU2の不一致検出機
能部23でこのときの送信データTと受信データR
を比較し、その比較結果および受信データRをホスト
CPU3に伝える。
In response to this, the self-diagnosis function unit 35 operates in the host CPU 3. First, the relay R Y is turned off to disconnect the node from burst 1. In this state, the self-diagnosis function unit 35 generates transmission data T X for self-diagnosis, which is transmitted to the transmission function unit 33. The transmission function unit 33 and the CPU 2 perform the same operation as above to transmit the transmission data T X to the transmission control circuit 5
Output in series. This output does not appear in burst 1,
It is directly input to the reception monitoring circuit 4 in the same node.
Similar to the transmission described above, the mismatch detection function unit 23 of the CPU 2 causes the transmission data T X and the reception data R X at this time to be transmitted.
Are compared, and the comparison result and the reception data R X are transmitted to the host CPU 3.

不一致検出機能部23の比較で再データが一致した場合
でも、自己診断機能部35はCPU2が側から受け取っ
た受信データRをチェックし、自らが発生したデータ
と同じかどうかをチェックする。
Even if the re-data match by the comparison of the mismatch detection function unit 23, the self-diagnosis function unit 35 checks the received data R X received by the CPU 2 from the side and checks whether it is the same as the data T X generated by itself. .

上述の自己診断で正常と判断されれば、当該ノードの内
部機能は正常で、異常の原因はバースト側のノイズにあ
ったものとして処理し、リレーRをオンしてバス1に
再接続する。この動作を第2図(B)に示している。
If the self-diagnosis described above determines that the node is normal, the internal function of the node is normal, and the cause of the abnormality is treated as noise on the burst side, and the relay R Y is turned on to reconnect to the bus 1. . This operation is shown in FIG. 2 (B).

第2図(C)は自己診断で異常と判定された場合の動作を
示している。この場合は自ノード内に異常があるものと
認識し、リレーRをオフしたままとする。
FIG. 2 (C) shows the operation when it is determined to be abnormal by self-diagnosis. In this case, it is recognized that there is an abnormality in its own node, and the relay R Y remains off.

H.発明の効果 以上詳細に説明したように、この発明に係るマルチCP
Uシステムの以上診断方法によれば、データ伝送がある
ものと正しく行われなかった場合、その原因が一過性ノ
イズなのかバースト性ノイズなのか、さらには送信ノー
ド内の異常なのかによってそれぞれ適切に対処でき、不
必要にシステムダウンを起こすことがなくなり、システ
ムの稼働率および信頼性が向上する。
H. Effect of the Invention As described in detail above, the multi-CP according to the present invention
According to the above diagnostic method of the U system, when data transmission is not performed correctly and whether it is not performed correctly, it is appropriate depending on whether the cause is transient noise or burst noise, or abnormal in the transmitting node. Can be dealt with and the system will not be down unnecessarily, improving the operating rate and reliability of the system.

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

第1図は本発明の方法を実施する1つのCPUノードの
機能ブロック図、第2図は本発明の動作を示すタイミン
グチャートである。 1……シリアルバス、2……伝送制御用CPU、3……
ホストCPU。
FIG. 1 is a functional block diagram of one CPU node for implementing the method of the present invention, and FIG. 2 is a timing chart showing the operation of the present invention. 1 ... Serial bus, 2 ... Transmission control CPU, 3 ...
Host CPU.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のCPUノードをバスで結合したマル
チCPUシステムにおいて、バスにデータを送信した送
信ノードは送信と同時にバス上のデータをモニタして送
信データと受信データを比較し、両データが不一致のと
きはそのデータ送信を再度行ない、再送時にもデータ不
一致が検出されたときは当該ノードをバスから切り離し
て自己診断処理を実行し、自己診断の結果が不良でない
場合は当該ノードをバスに再接続することを特徴とする
マルチCPUシステムの異常診断方法。
1. In a multi-CPU system in which a plurality of CPU nodes are connected by a bus, a transmitting node that has transmitted data to the bus simultaneously monitors the data on the bus at the same time as transmitting and compares the transmitted data with the received data. If the data does not match, the data is retransmitted.If data mismatch is detected during retransmission, the node is disconnected from the bus and self-diagnosis processing is executed. A method for diagnosing an abnormality in a multi-CPU system, which comprises reconnecting to
JP60213920A 1985-09-27 1985-09-27 Abnormality diagnosis method for multi-CPU system Expired - Lifetime JPH069033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60213920A JPH069033B2 (en) 1985-09-27 1985-09-27 Abnormality diagnosis method for multi-CPU system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60213920A JPH069033B2 (en) 1985-09-27 1985-09-27 Abnormality diagnosis method for multi-CPU system

Publications (2)

Publication Number Publication Date
JPS6274133A JPS6274133A (en) 1987-04-04
JPH069033B2 true JPH069033B2 (en) 1994-02-02

Family

ID=16647228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60213920A Expired - Lifetime JPH069033B2 (en) 1985-09-27 1985-09-27 Abnormality diagnosis method for multi-CPU system

Country Status (1)

Country Link
JP (1) JPH069033B2 (en)

Also Published As

Publication number Publication date
JPS6274133A (en) 1987-04-04

Similar Documents

Publication Publication Date Title
JP4166939B2 (en) Active fault detection
JPH0560701B2 (en)
JPH069033B2 (en) Abnormality diagnosis method for multi-CPU system
JPS5833330A (en) Checking system for cable transmission line
JP2007013980A (en) Redundant 3-wire communication system and method
JP2827713B2 (en) Redundant device
JP2929975B2 (en) Fault Diagnosis Method for Bus Interface Circuit
JPH0523003Y2 (en)
JPS6220585B2 (en)
JP2541492B2 (en) Microprocessor remote reset method
JP3552149B2 (en) Communication control device and communication control method
JPS62109441A (en) Data transmission system
JP2980550B2 (en) Communication device
JPH04305748A (en) Highly reliable bus
JP2825464B2 (en) Communication device
JPH079465Y2 (en) LAN interface
JPH05158843A (en) Fault segmenting system for communication interface
JPH0426917Y2 (en)
JPS6124345A (en) Signal output gate control method
JP2762276B2 (en) Redundant communication line
JPH0630010A (en) Multiplex device
JPH05284166A (en) Information transmission device
JPS62208152A (en) Redundancy parallel transmission equipment
JPS6058749A (en) System for detecting communication line error by terminal device
JPH05250224A (en) Monitoring control system