JPH02193429A - Method for communication between devices - Google Patents

Method for communication between devices

Info

Publication number
JPH02193429A
JPH02193429A JP1240589A JP1240589A JPH02193429A JP H02193429 A JPH02193429 A JP H02193429A JP 1240589 A JP1240589 A JP 1240589A JP 1240589 A JP1240589 A JP 1240589A JP H02193429 A JPH02193429 A JP H02193429A
Authority
JP
Japan
Prior art keywords
data
communication
pattern
devices
transfer
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
JP1240589A
Other languages
Japanese (ja)
Inventor
Keiji Fukuda
福田 圭二
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1240589A priority Critical patent/JPH02193429A/en
Publication of JPH02193429A publication Critical patent/JPH02193429A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To detect the occurrence of communication trouble by a simple circuit by setting a pattern for communication trouble detection to specific bits of a transfer block for data transfer by a transmission-side device and monitoring whether the communication trouble occurs or not from the bit positions by a reception-side device. CONSTITUTION:For the communication between the devices which transfer data by serial transmission, the transmitter 11 sets the pattern for communication trouble detection to the specific bits 14 of the transfer block 13 and transmits the data. The receiver 12 detect whether or not there is the pattern for communication trouble detection set on the transmission side at the same bit positions 14 at the time of reception. When there is the pattern, it is decided that the data transfer is performed normally and when not, it is decided that some trouble has occurred.

Description

【発明の詳細な説明】 〔概要〕 2以上の装置間でシリアル伝送によりデータ転送を行う
装置間通信方法に関し。
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to an inter-device communication method for transferring data between two or more devices by serial transmission.

シリアル伝送によりデータ転送を行いつつ、簡易な回路
で通信障害の発生を検出可能とし、それにより装置間で
の信号伝送の信頼性を高め、確実な装置動作を保証する
ことを目的とし。
The purpose is to make it possible to detect communication failures with a simple circuit while transferring data through serial transmission, thereby increasing the reliability of signal transmission between devices and guaranteeing reliable device operation.

送信側装置では、データ転送用の転送ブロックの所定の
複数ビットに通信障害検出用パターンを設定し、受信側
装置では、受信した転送ブロックの上述の複数ビット位
置から通信障害検出用パターンを検出することによって
通信障害の発生の有無を監視するように構成される。
The transmitting device sets a communication failure detection pattern in a predetermined plurality of bits of a transfer block for data transfer, and the receiving device detects a communication failure detection pattern from the above-mentioned plurality of bit positions in the received transfer block. The system is configured to monitor whether or not a communication failure has occurred.

〔産業上の利用分野〕[Industrial application field]

本発明は、2以上の装置間でシリアル伝送によりデータ
転送を行う装置間通信方法に関する。
The present invention relates to an inter-device communication method for transferring data between two or more devices by serial transmission.

装置間の信号送受は、信号線の数が少なくてすむシリア
ル伝送により、しかも簡単な回路構成で確実な信号伝送
を保証できることが必要とされる。
For signal transmission and reception between devices, it is necessary to use serial transmission, which requires fewer signal lines, and to be able to guarantee reliable signal transmission with a simple circuit configuration.

〔従来の技術〕[Conventional technology]

フリースロット方式等で機簡違加が行えるようなシステ
ムの場合、1装置(例えばカード、パフケージ、プリン
ティラドサーキットボードなど)当たりに実装できる機
能には制限がある。このため新規開発等で1装置内に全
機能を実装できない場合が生じる。このような場合、2
以上の装置にまたがって1機能を実装することになる。
In the case of a system in which machine modifications can be made using a free slot system, etc., there are limits to the functions that can be implemented per device (for example, card, puff cage, printed circuit board, etc.). For this reason, there may be cases where all functions cannot be implemented in one device due to new development or the like. In such a case, 2
One function will be implemented across the above devices.

この結果、装置間でかなり多数の各種信号を送受するこ
とが必要となる。
As a result, it becomes necessary to transmit and receive a considerable number of various signals between devices.

このような装置間での信号伝送方法としては。As a signal transmission method between such devices.

各信号対応に装置間に多数1例えば20本、30本−・
といった信号線をわたすことによるパラレル伝送方式と
、1本の信号線を用いて各種信号を時系列に逐次伝送す
るシリアル伝送方式とがあるが。
A large number of wires (for example, 20, 30 wires) between the devices correspond to each signal.
There are two types of transmission methods: a parallel transmission method that uses signal lines, and a serial transmission method that uses a single signal line to sequentially transmit various signals in time series.

一般には、装置間にわたる信号線の数を少なくすること
が必要であるために、パラレル伝送ではなくシリアル伝
送が採用されている。
Generally, serial transmission is used instead of parallel transmission because it is necessary to reduce the number of signal lines between devices.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

転送誤りのない信頼性の高いシリアル通信を行うために
は2本来、装置毎にプロセッサ等を搭載し2通信プロト
コルを結んで通信することが最適と考えられる。しかし
ながら、この場合9回路規模が大きくなってしまう。
In order to perform highly reliable serial communication without transfer errors, it is considered optimal to install a processor or the like in each device and connect two communication protocols for communication. However, in this case, the scale of the nine circuits becomes large.

そこで単にシリアル同期通信により信号転送を行う方法
も考えられるが、その場合、共通りロックの乱れ等によ
る通信障害にたいして装置動作の保証ができない。
Therefore, a method may be considered in which signals are transferred simply by serial synchronous communication, but in that case, device operation cannot be guaranteed against communication failures due to common lock disturbances, etc.

すなわち、最も簡単な装置間のシリアル通信は。That is, the simplest serial communication between devices.

第4図に示すように、装置間で共通なりロックAを用い
1通信データの先頭を示す先頭信号Bとシリアルデータ
C′とを装置間で伝送し、受信側では先頭信号Bにより
データC′の先頭位置を決めてクロックAのタイミング
でデータC′の内容を読み取るものである。
As shown in FIG. 4, a common lock A is used between the devices to transmit a leading signal B indicating the beginning of one communication data and serial data C' between the devices, and on the receiving side, data C' is transmitted by the leading signal B. The content of data C' is read at the timing of clock A by determining the leading position of data C'.

しかしながら、この方法による場合3例えばクロックA
が乱れた場合、データC′が誤って受信される可能性が
ある0例えば、送信側では、  (Do、DIT  D
21  Da、Da、Ds−)= (0゜1.1,1.
0.1−)というデータを送ったのに、受信側フデータ
D3に対応するクロックが消滅してしまうと、受信側で
は(Do、DI 、D2゜Da r  Da +  D
5 ’−−・)= (0,1,1,0,1゜0〜)とい
うデータを受信したものと判断してしまう、この結果、
D3=0.D4=1といった誤った論理に従った動作を
行うてしまい、装置間の状態の不一致や装置の誤動作を
生じる可能性がある。
However, in this method, 3 For example, clock A
For example, on the transmitting side, (Do, DIT D
21 Da, Da, Ds-) = (0°1.1,1.
0.1-), but if the clock corresponding to data D3 on the receiving side disappears, on the receiving side, (Do, DI, D2゜Da r Da + D
5'--・) = (0, 1, 1, 0, 1゜0~) is judged to have been received, as a result,
D3=0. This may result in an operation based on incorrect logic such as D4=1, which may result in inconsistent states between devices or malfunction of the devices.

したがって本発明の目的は、シリアル伝送によりデータ
転送を行いつつ、簡易な回路で通信障害の発生を検出可
能とし、それにより装置間での信号伝送の信頼性を高め
、確実な装置動作を保証することにある。
Therefore, an object of the present invention is to make it possible to detect the occurrence of a communication failure with a simple circuit while transferring data through serial transmission, thereby increasing the reliability of signal transmission between devices and ensuring reliable device operation. There is a particular thing.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明に係る原理を説明するための図である。 FIG. 1 is a diagram for explaining the principle according to the present invention.

本発明に係る装置間通信方法は、装置間でシリアル伝送
によりデータ転送を行う装置間通信方法であって、送信
側装置11では、データ転送用の転送ブロック13の所
定の複数ビット14に通信障害検出用パターンを設定し
、受信側装置12では、受信した該転送ブロック13の
上述の複数ビット位置14から通信障害検出用パターン
を検出することによって通信障害の発生の有無を監視す
るように構成される。
The inter-device communication method according to the present invention is an inter-device communication method in which data is transferred between devices by serial transmission, and in the sending device 11, a communication failure occurs in a predetermined plurality of bits 14 of a transfer block 13 for data transfer. A detection pattern is set, and the receiving device 12 is configured to monitor whether or not a communication failure has occurred by detecting the communication failure detection pattern from the plurality of bit positions 14 of the received transfer block 13. Ru.

〔作用〕[Effect]

送信に際しては、転送ブロック13の所定ビン)14に
通信障害検出用パターンを設定して送信を行い、受信に
際しては同じビット位置14に送信側で設定した通信障
害検出用パターンがあるか否かを検出する。パターンが
あれば、データ転送が正常に行われたと判定し、一方、
パターンがなければ、何等かの通信障害が発生したと判
定する。
When transmitting, a communication failure detection pattern is set in a predetermined bin 14 of the transfer block 13, and when receiving, a check is made to see if there is a communication failure detection pattern set at the same bit position 14 on the transmitting side. To detect. If there is a pattern, it is determined that the data transfer was successful;
If there is no pattern, it is determined that some kind of communication failure has occurred.

〔実施例] 以下2図面を参照して本発明の詳細な説明する。第2図
は本発明の一実施例としての装置間通信方法を行う受信
側装置の構成を示すブロック図である。
[Example] The present invention will be described in detail below with reference to two drawings. FIG. 2 is a block diagram showing the configuration of a receiving side device that performs an inter-device communication method as an embodiment of the present invention.

第2図において、1〜3はそれぞれクロックA。In FIG. 2, 1 to 3 are clocks A, respectively.

データC,データ先頭信号B用のバッファであり。This is a buffer for data C and data start signal B.

データCは直列接続されたm個のシフトレジスタ41〜
4mに順次に入力される。また各シフトレジスタ41〜
41にはシフトタイミングを決めるクロックAが入力さ
れている。
Data C is stored in m shift registers 41 to 41 connected in series.
4m are input sequentially. In addition, each shift register 41~
A clock A that determines shift timing is input to 41.

これらシフトレジスタ41〜4曽のMSB (最上位ビ
ット)はそれぞれ固定パターン比較回路5に入力されて
おり、またMSBを除くデータ出力はそれぞれデータラ
ッチ6、〜6曽に入力される。
The MSBs (most significant bits) of these shift registers 41 to 4 are respectively input to the fixed pattern comparison circuit 5, and data outputs other than the MSB are input to data latches 6 and 6, respectively.

固定パターン比較回路5およびデータラッチ61〜6m
にはデータ先頭信号Bが入力されており。
Fixed pattern comparison circuit 5 and data latches 61 to 6m
Data start signal B is input to .

データ先頭信号Bの入力タイミングで固定パターン比較
回路5は各MSBで作られる入カバターンと自蔵する固
定パターンとの比較を行い、データラッチ61〜6−は
入力データのラッチを行う。
At the input timing of the data head signal B, the fixed pattern comparison circuit 5 compares the input cover pattern created by each MSB with the fixed pattern stored therein, and the data latches 61 to 6- latch the input data.

データラッチ6、〜6−のデータ出力はそれぞれデータ
ランチ71〜7■に入力されており、このデータランチ
71〜7−は固定パターン比較回路5からの受信データ
有効信号已に応答して入力データのラッチを行う。
The data outputs of the data latches 6, ~6- are input to data launches 71~7■, respectively, and these data launches 71~7- respond to the input data in response to the received data valid signal from the fixed pattern comparison circuit 5. Perform the latch.

以下、実施例装置の動作を説明する。まず送信側では、
第4図に示されるような転送データD。
The operation of the embodiment device will be explained below. First, on the sending side,
Transfer data D as shown in FIG.

〜Dnのブロックを、第3図に示されるようなm個の小
ブロック81〜B−に分割し、各小ブロック81〜Bm
の先M(MSB)ビットに通信障害検出用の所定の固定
パターンを設定する。したがってこの固定パターンはm
ビットのパターンとなる。この小ブロック81〜B−を
順次に受信側にシリアル伝送する。
~Dn block is divided into m small blocks 81~B- as shown in FIG. 3, and each small block 81~Bm
A predetermined fixed pattern for detecting a communication failure is set in the first M (MSB) bit. Therefore, this fixed pattern is m
It becomes a pattern of bits. These small blocks 81 to B- are sequentially serially transmitted to the receiving side.

受信側では、シリアル伝送されてきたデータを順次にシ
フトレジスタ41〜4舖に入力させて受信シリアルデー
タをパラレルデータに変換する。
On the receiving side, the serially transmitted data is sequentially input into shift registers 41 to 4 to convert the received serial data into parallel data.

この操作によりデータ先頭信号Bの入力時にはシフトレ
ジスタ41〜4−には前サイクルの小ブロックB1〜B
mが保持されることになる。
By this operation, when the data start signal B is input, the shift registers 41 to 4- are filled with the small blocks B1 to B of the previous cycle.
m will be retained.

したがってデータ先頭信号Bの入力時には各シフトレジ
スタ41〜4−に保持されている前サイクルの小ブロッ
クB、〜B−はデータラッチ6゜〜6■に移され、同時
に固定パターン比較回路5は各シフトレジスタ41〜4
I+のMSBで形成される通信障害検出用の入カバター
ン(従って各小ブロックB、〜B腸の先頭ビットで形成
される通信障害検出用パターン)と、自蔵する所定固定
パターン(通信障害検出用パターンと同じパターン)と
を比較する0両パターンが一致した場合にはクロックA
等の乱れなくデータCが正常に受信できたものと判断す
るとかでき、この場合には固定パターン比較回路5は受
信データ有効信号Eを各データラッチ71〜7■に送る
Therefore, when the data start signal B is input, the small blocks B, -B- of the previous cycle held in each shift register 41-4- are transferred to data latches 6°-6■, and at the same time, the fixed pattern comparison circuit 5 Shift registers 41-4
An input pattern for communication failure detection formed by the MSB of I+ (therefore, a communication failure detection pattern formed by the first bit of each small block B, ~B intestine) and a predetermined fixed pattern (for communication failure detection) Compare the pattern with the same pattern) If both patterns match, clock A
In this case, the fixed pattern comparison circuit 5 sends the received data valid signal E to each of the data latches 71 to 7■.

これによりデータランチ71〜7−はデータラッチ61
〜6−のラッチ内容を取り込み、これを正常受信データ
として受信装置内部にパラレルに出力する。
As a result, the data launches 71 to 7- are connected to the data latch 61.
The latch contents of ~6- are taken in and outputted in parallel inside the receiving device as normal reception data.

また固定パターン比較回路5におけるパターン比較が一
致しない場合には、受信データに通信障害があったもの
と判断して、受信データを廃棄する。
Further, if the pattern comparison in the fixed pattern comparison circuit 5 does not match, it is determined that there is a communication failure in the received data, and the received data is discarded.

本発明の実施にあたっては種々の変形形態が可能である
0例えば、上述の実施例では通信障害検出用パターンを
、転送ブロックを細分割した各小ブロックの先頭ビット
で構成したが、勿論これに限られず2例えば各小ブロツ
ク内の他の位置のビットで構成してもよい。
Various modifications are possible in implementing the present invention. For example, in the above embodiment, the communication failure detection pattern was constructed from the leading bit of each small block obtained by subdividing the transfer block, but of course this is not limited to this. For example, the bits may be composed of bits at other positions within each small block.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、シリアル伝送によるデータ転送を行う
にあたり、簡易な回路で通信障害の発生を検出すること
が可能となり、それにより装置間での信号伝送の信頼性
を高め、確実な装置動作を保証することができる。
According to the present invention, when performing data transfer by serial transmission, it is possible to detect the occurrence of a communication failure with a simple circuit, thereby increasing the reliability of signal transmission between devices and ensuring reliable device operation. can be guaranteed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係る原理を説明するための図。 第2図は本発明の一実施例としての装置間通信方法を行
う受信側装置を示すブロツク図。 第3図は実施例装置によるデータ伝送を説明するための
図、および。 第4図はシリアル通信を説明するための図である。 図において。 1〜3−・バッファ 4、〜4I−・−シフトレジスタ 5−・固定パターン比較回路 6、〜6−・−・データランチ 71〜7■・−・データラッチ 払送フ泊νり
FIG. 1 is a diagram for explaining the principle of the present invention. FIG. 2 is a block diagram showing a receiving side device that performs an inter-device communication method as an embodiment of the present invention. FIG. 3 is a diagram for explaining data transmission by the embodiment device; FIG. 4 is a diagram for explaining serial communication. In fig. 1-3-・Buffer 4, ~4I-・-Shift register 5-・Fixed pattern comparison circuit 6, ~6-・-・Data launch 71-7■・-・Data latch payment return

Claims (1)

【特許請求の範囲】 装置間でシリアル伝送によりデータ転送を行う装置間通
信方法であって、 送信側装置(11)では、データ転送用の転送ブロック
(13)の所定の複数ビット(14)に通信障害検出用
パターンを設定し、 受信側装置(12)では、受信した該転送ブロック(1
3)の該複数ビット位置(14)から該通信障害検出用
パターンを検出することによって通信障害の発生の有無
を監視するように構成された装置間通信方法。
[Claims] An inter-device communication method for transferring data between devices by serial transmission, wherein the sending device (11) transmits data to a predetermined plurality of bits (14) of a transfer block (13) for data transfer. A communication failure detection pattern is set, and the receiving device (12) transfers the received transfer block (1
3) An inter-device communication method configured to monitor whether or not a communication failure occurs by detecting the communication failure detection pattern from the plurality of bit positions (14).
JP1240589A 1989-01-20 1989-01-20 Method for communication between devices Pending JPH02193429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1240589A JPH02193429A (en) 1989-01-20 1989-01-20 Method for communication between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1240589A JPH02193429A (en) 1989-01-20 1989-01-20 Method for communication between devices

Publications (1)

Publication Number Publication Date
JPH02193429A true JPH02193429A (en) 1990-07-31

Family

ID=11804353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1240589A Pending JPH02193429A (en) 1989-01-20 1989-01-20 Method for communication between devices

Country Status (1)

Country Link
JP (1) JPH02193429A (en)

Similar Documents

Publication Publication Date Title
CA1315008C (en) System permitting peripheral interchangeability
EP0051332B1 (en) Two-wire bus-system comprising a clock wire and a data wire for interconnecting a number of stations
US5202884A (en) Multiplexing scheme for modem control signals
Peña et al. Uart: A hardware communication protocol understanding universal asynchronous receiver/transmitter
US20040059965A1 (en) Synchronous serial data communication bus
JPS602813B2 (en) Computer-to-computer communication method and system
US5142556A (en) Data transfer system and method of transferring data
US6202108B1 (en) Process and system for initializing a serial link between two integrated circuits comprising a parallel-serial port using two clocks with different frequencies
EP0288650B1 (en) Protocol and apparatus for a control link between a control unit and several devices
KR20070070662A (en) Data control and autonomous recovery system for ultra small satellite
JPH0439929B2 (en)
US4181909A (en) Method and appratus for initializing remote data communication equipment
JP2003530735A (en) Method and apparatus for detecting ring buffer flow errors
JPH02193429A (en) Method for communication between devices
KR100249171B1 (en) Method for detecting error in non-syncronus type data transmit and receive device
US6587988B1 (en) Dynamic parity inversion for I/O interconnects
JPS63290033A (en) Data transmission reception circuit
JPS6147455B2 (en)
JPH10111842A (en) Device for receiving synchronization serial transmission data
JP3179367B2 (en) Failure detection method for asynchronous data transfer equipment
CN116185936A (en) SPI communication data receiving and transmitting abnormity detection control system and detection method
JPS5945304B2 (en) Line failure detection method in two-wire communication equipment
JP2000035834A (en) Remote resetting device
JPH04267631A (en) Parity bit addition system
JP2001331384A (en) System and method for detecting inter-package communication fault