JPH0191543A - Serial data transfer system - Google Patents

Serial data transfer system

Info

Publication number
JPH0191543A
JPH0191543A JP62248852A JP24885287A JPH0191543A JP H0191543 A JPH0191543 A JP H0191543A JP 62248852 A JP62248852 A JP 62248852A JP 24885287 A JP24885287 A JP 24885287A JP H0191543 A JPH0191543 A JP H0191543A
Authority
JP
Japan
Prior art keywords
data
bit
serial
byte
bits
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.)
Granted
Application number
JP62248852A
Other languages
Japanese (ja)
Other versions
JP2581705B2 (en
Inventor
Kosuke Nishimura
西村 幸介
Kazuyoshi Miyazawa
一良 宮澤
Kazuhiko Endo
和彦 遠藤
Koichi Okamoto
浩一 岡本
Tamotsu Mikuni
三國 保
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 JP62248852A priority Critical patent/JP2581705B2/en
Publication of JPH0191543A publication Critical patent/JPH0191543A/en
Application granted granted Critical
Publication of JP2581705B2 publication Critical patent/JP2581705B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the attribute of a data from being converted into another attribute due to bit inversion on a transmissison line for a serial signal by splitting, arranging and transferring an N-bit flag by separating the number of bits of code conversion or over. CONSTITUTION:In sending a serial data forming 1 frame 5 consisting of a control command 50, a control data 50 and a normal data 50 provided respectively with a flag bit 51 through code conversion, the flag bit 51 is transferred while being split and arranged by separating the number of bits of code conversion or over, concretely by one byte in the transmission unit. Thus, the conversion of, for instance, control data, one byte data into the control command 50 is prevented by the bit error on the serial transmission line.

Description

【発明の詳細な説明】 〔概要〕 装置Aと装置8間でデータ転送を行うのに、直列信号に
よる伝送路(例えば、光ファイバ)に、上記データをコ
ード変換して伝送する際、例えば、Mビット単位に、そ
のデータの属性を決定するNビットのフラグを備え、特
定のMビットデータを繰り返して転送し、受信側で照合
チェックを行う形式を持ち、且つ通常のデータは上記M
ビットの複数倍を単位として転送される直列データ転送
方式に関し、 直列信号による伝送路上でのビット反転により上記属性
が他の属性に化けることを防止することを目的とし、 上記直列データ転送方式において、上記Nビットのフラ
グを、上記コード変換のビット数以上離して分割、配置
し、転送するように構成する。又、上記Mビットデータ
の複数倍の一部分を単位としたデータを転送する際には
、その反転データを後半のバイト位置に載せるように構
成する。
[Detailed Description of the Invention] [Summary] In order to transfer data between the device A and the device 8, when the data is code-converted and transmitted over a serial signal transmission line (for example, an optical fiber), for example, Each M-bit unit has an N-bit flag that determines the attribute of the data, and has a format in which specific M-bit data is repeatedly transferred and a verification check is performed on the receiving side, and normal data is
Regarding the serial data transfer method in which multiple bits are transferred as a unit, the purpose of this method is to prevent the above attributes from changing into other attributes due to bit inversion on the transmission path by the serial signal, and in the above serial data transfer method, The N-bit flags are divided, arranged, and transferred at a distance equal to or more than the number of bits for code conversion. Further, when data is transferred in units of multiple portions of the M-bit data, the inverted data is placed in the latter byte position.

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

本発明は、装置Aと装置B間でデータ転送を行うのに、
直列信号による伝送路(例えば、光ファイバ)に、上記
データをコード変換して伝送する際、例えば、Mビット
単位に、そのデータの属性を決定するNビットのフラグ
を備え、特定のMビットデータを繰り返して転送し、受
信側で照合チェックを行う形式を持ち、且つ通常のデー
タは上記Mビットの複数倍を単位として転送される直列
データ転送方式に関する。
In the present invention, when data is transferred between device A and device B,
When the above data is code-converted and transmitted over a serial signal transmission line (for example, an optical fiber), for example, an N-bit flag is provided for each M-bit unit to determine the attribute of the data, and a specific M-bit data This relates to a serial data transfer method in which data is repeatedly transferred and a verification check is performed on the receiving side, and normal data is transferred in units of multiples of the above M bits.

最近の計算機システムの規模の拡大化に伴って、入出力
装置(Ilo)が増加し、本体装置とは離れた場所に設
置されることが多くなり、伝送路が伸びる動向にある。
With the recent expansion in the scale of computer systems, the number of input/output devices (Ilo) has increased, and they are often installed in locations away from the main device, leading to a trend of lengthening transmission lines.

一方、光ファイバの媒体技術の進歩に伴って、該光ファ
イバによるデータ伝送が実用化されつつあるが、該光フ
ァイバによる伝送路上では、ビット誤りを少なくする為
にマーク率を50%とする必要があり、転送データを3
ビツト=04ビツトにコード変換して送出することを行
っている。
On the other hand, with the advancement of optical fiber media technology, data transmission using optical fibers is being put into practical use, but it is necessary to set the mark rate to 50% on the transmission path using optical fibers in order to reduce bit errors. There is 3 data to be transferred.
The code is converted to 04 bits and sent.

このような、マーク率を50%に保持する伝送方式を採
っても、ビット反転によって、一般のデータが制御コマ
ンド等に化ける問題があり、該データ化けのない直列デ
ータ転送方式が必要とされる。
Even if such a transmission method that maintains a mark rate of 50% is adopted, there is a problem in which general data becomes garbled into control commands, etc. due to bit inversion, and a serial data transfer method that does not garble data is required. .

〔従来の技術と発明が解決しようとする問題点〕第4図
は、従来の直列データ転送方式を説明する図であって、
(a)は直列データ伝送路の構成例を示し、(b)は直
列データ転送におけるフレーム構成の一例を示し、(c
)はコード変換の例を示し、(d)は制御コマンド、制
御データの転送フォーマットの例を示している。
[Prior art and problems to be solved by the invention] FIG. 4 is a diagram illustrating a conventional serial data transfer method,
(a) shows an example of a configuration of a serial data transmission path, (b) shows an example of a frame configuration in serial data transfer, and (c)
) shows an example of code conversion, and (d) shows an example of the transfer format of control commands and control data.

先ず、本体装置(装置A) 1から、遠くに配置されて
いる入出力装置(Ilo) 4を配下に接続している入
出力制御装置(装置B)2にデータを転送する場合、(
a)図に示した光ファイバによる直列伝送路3を通して
、データ伝送を行う。
First, when data is transferred from the main device (device A) 1 to the input/output control device (device B) 2 that is connected to the input/output device (Ilo) 4 located far away, (
a) Data transmission is performed through the serial transmission line 3 made of optical fiber shown in the figure.

このとき、(b)図に示したlフレームのデータ5の内
、フレームヘッダ(PI()を除くデータユニット(D
TO−DT31)は、該直列伝送路3上でのビット誤り
を少なくする為に、3B(ビット)→4B(ビット)の
コード変換が施されて、該光ファイバによる直列伝送路
に送出され、受信側においては、4B→3Bのコード変
換が施されて元の直列データに戻り、入出力袋!(Il
o) 4に送出される。
At this time, among the data 5 of the l frame shown in the figure (b), the data unit (D
The TO-DT 31) is subjected to code conversion from 3B (bits) to 4B (bits) in order to reduce bit errors on the serial transmission line 3, and is sent out to the serial transmission line using the optical fiber. On the receiving side, code conversion from 4B to 3B is performed to return to the original serial data, and the input/output bag! (Il
o) Sent to 4.

ここで、上記フレームヘッダ(FH)は、元々マーク率
50%の固定バタンであるので、上記コード変換の対象
外となっている。
Here, since the frame header (FH) is originally a fixed button with a mark rate of 50%, it is not subject to the code conversion.

上記3B−64Bのコード変換は、前述のように、直列
伝送路3上に送出したコードのマーク率を50%にする
為に行われるもので、具体的には、(C)図に示した変
換表によるコード変換が行われる。
As mentioned above, the above 3B-64B code conversion is performed to make the mark rate of the code sent onto the serial transmission line 3 50%, and specifically, as shown in Figure (C). Code conversion is performed using a conversion table.

即ち、コード変換のモードを2種類設け、伝送路3に°
1゛を多く送出するケース(CODE B)を含むモー
ドをモード0に、伝送路3に“1゛を少なく送出するケ
ース(CODE C)を含むモードをモード1とする。
That is, two types of code conversion modes are provided, and the
The mode including the case (CODE B) in which a large number of 1's are transmitted is called mode 0, and the mode including the case (CODE C) in which fewer 1's are sent to the transmission path 3 is called mode 1.

初期状態をモード0として、モード0でのコード変換表
によりコード変換を行う。このとき上記rcODE B
Jを送出するとモード1に遷移して、モード1でのコー
ド変換に移る。
The initial state is set to mode 0, and code conversion is performed using the code conversion table in mode 0. At this time, the above rcODE B
When J is sent, a transition is made to mode 1, and code conversion in mode 1 is started.

又、該モード1でrcODE CJを送出するとモード
Oに遷移する。
Furthermore, when the rcODE CJ is sent in mode 1, the mode transitions to mode O.

この繰り返しでコード変換を行うが、rcODEA」の
場合には状態の遷移は行わない。
Code conversion is performed by repeating this process, but in the case of ``rcODEA'', no state transition is performed.

このようにして、光ファイバの伝送路3上でのマーク率
を50%に維持するようにしている。
In this way, the mark rate on the optical fiber transmission line 3 is maintained at 50%.

通常、上記(b)図に示した1フレームのデータ転送を
行う際、該1フレーム内でのエラーは、該フレームの最
後に付加されている公知の巡回符号(CRC)によりチ
ェックを行うことにより検出可能である。
Normally, when transferring one frame of data as shown in figure (b) above, errors within the one frame are checked using a well-known cyclic code (CRC) added to the end of the frame. Detectable.

然し、該巡回符号(CRC)迄待って、該フレームデー
タの正常性が分かるのでは、処理速度が遅れる。従って
、通常データのように、処理速度は要求されないが転送
レイトを向上させる必要がある場合には、上記巡回符号
(CRC)に頼り、処理速度が要求される制御コマンド
、制御データについては、(d)図に示すように、例え
ば、同一データ50を繰り返し転送し、受信側において
比較チェックを行い、一致を検出することで、その正常
性を認識する方式を採っている。
However, if the normality of the frame data is known by waiting for the cyclic code (CRC), the processing speed will be delayed. Therefore, when processing speed is not required but it is necessary to improve the transfer rate, such as with normal data, the above cyclic code (CRC) is relied upon, and for control commands and control data that require processing speed, ( d) As shown in the figure, for example, a method is adopted in which the same data 50 is repeatedly transferred, a comparison check is performed on the receiving side, and the normality is recognized by detecting a match.

このような場合、制御コマンドに続く制御データ(これ
を“IIXX’ で表す。但し、’11°はフラグビッ
ト、’XX’ はデータを示している)においては、該
制御データを3B−04B変換を行って、光ファイバの
如き直列伝送路3上に送出され、該伝送路3上において
エラーが発生し、受信側で元のデータに戻す為に、4B
−03B変換を行った結果、°0OXX’となると、受
信側においては、制御コマンドと認識し、誤動作を招く
と云う問題があった。
In such a case, in the control data following the control command (this is expressed as "IIXX", where '11° indicates a flag bit and 'XX' indicates data), the control data is converted into 3B-04B. is sent out onto a serial transmission line 3 such as an optical fiber, and if an error occurs on the transmission line 3, the 4B
If the result of −03B conversion is 00XX', the receiving side recognizes it as a control command, which causes a malfunction.

本発明は上記従来の欠点に鑑み、直列データ転送方式に
おいて、1フレーム内のエラーは巡回符号(CRC)チ
ェックにより検出可能であるが、該巡回符号(CRC)
チェック迄待って、その情報の正常性が分かるのでは、
処理速度が遅くなることから、処理速度は要求されない
が、転送レイトの要求される通常のデータについては、
該巡回符号(CRC)チェックに頼り、処理速度が要求
される制御コマンド、制御データについては、同一デー
タを繰り返して転送し、その−成性によってその正常性
のチェックを行っている直列データ転送方式で、該直列
伝送路上のビットエラーによって、例えば、制御コマン
ドに続く制御データが、制御コマンドに誤認されること
を防止する直列データ転送方式を提供することを目的と
するものである。
In view of the above-mentioned conventional drawbacks, the present invention has been proposed in the serial data transfer system, in which errors within one frame can be detected by checking the cyclic code (CRC).
I guess you can wait until the check and find out if the information is normal.
For normal data that does not require high processing speed, but requires a high transfer rate, the processing speed will be slow.
A serial data transfer method that relies on the cyclic code (CRC) check and repeatedly transfers the same data for control commands and control data that require high processing speed, and checks its normality based on its quality. It is an object of the present invention to provide a serial data transfer method that prevents, for example, control data following a control command from being mistakenly recognized as a control command due to a bit error on the serial transmission path.

〔問題点を解決するための手段〕[Means for solving problems]

上記の問題点は、 [1)  装置Aと装置B間のデータ転送を行うのに、
直列信号による伝送路で、上記両装置間を接続し、且つ
該伝送路上を流れる情報信号をコード変換して転送する
際に、Mビット単位にその情報の属性を決定するNビッ
トのフラグを具備し、特定のMビットデータを繰り返し
て転送し、受信側で照合チェックを行う形式を持ち、且
つ通常のデータは上記Mビットの複数倍を単位として転
送される直列データ転送方式であって、 上記Nビットのフラグを、上記コード変換のビット数以
上離して分割、配置して転送するように構成する。
The above problems are as follows: [1] To transfer data between device A and device B,
A transmission line using serial signals that connects the above two devices and is equipped with an N-bit flag that determines the attribute of the information in M bit units when the information signal flowing on the transmission line is code-converted and transferred. It is a serial data transfer method in which specific M-bit data is repeatedly transferred and a verification check is performed on the receiving side, and normal data is transferred in units of multiples of the above M-bits. The configuration is such that the N-bit flags are divided, arranged, and transferred with a distance equal to or more than the number of bits for code conversion.

(2)上記直列データ転送方式において、上記Mビット
データの複数倍の一部分を単位としたデータを転送する
際には、その反転データを後半のバイト位置に載せるよ
うに構成する。
(2) In the above serial data transfer method, when transferring data in units of multiple portions of the M-bit data, the inverted data is placed in the latter byte position.

ことによって解決される。This is solved by

〔作用〕[Effect]

即ち、本発明によれば、それぞれ、フラグピッ1−  
’00’、’11’、’lO’等を備えた制御コマンド
、制御データ、通常データで、1フレームを構成する直
列データを、3B=64Bのコード変換を行って、直列
伝送路を伝送する際に、上記フラグビットを、少なくと
も、上記コード変換のビット数(3ビツト)以上、具体
的には、転送単位の1バイト離して分割、配置すると共
に、上記通常データが2バイト単位になっているときに
、1バイトのデータが含まれている場合には、該1バイ
トデータの反転データを後半のバイトに載せるようにし
たものであるので、該直列伝送路上でのビットエラーに
よって、例えば、制御データ、1バイトデータが制御コ
マンドに化けることを防止することができる効果がある
That is, according to the present invention, flag pins 1-
Control commands, control data, and normal data with '00', '11', 'lO', etc., constitute one frame, and the serial data is converted to a code of 3B = 64B and transmitted over a serial transmission line. In this case, the flag bits are divided and placed at least the number of bits of the code conversion (3 bits), specifically, 1 byte apart in the transfer unit, and the normal data is divided into 2-byte units. When 1 byte of data is included, the inverted data of the 1 byte data is placed in the latter byte, so a bit error on the serial transmission path may cause, for example, This has the effect of preventing control data and 1-byte data from turning into control commands.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例をデータフォーマ。FIG. 1 shows an embodiment of the present invention as a data former.

トの形で示した図であり、第2図は本発明の他の実施例
をデータフォーマットの形で示した図であり、第3図は
本発明が適用された直列データ伝送システムの構成例を
示した図であって、第1図における、制御フラグ00’
 、 ’11″を1バイトデ一タ単位に分割して配置す
る手段、及び、第2図における、1バイトデータを転送
する時に、後半の1バイトに前半の1バイトデータの反
転データを挿入して伝送する手段が本発明を実施するの
に必要な手段である。尚、全図を通して、同じ符号は同
じ対象物を示している。
FIG. 2 is a diagram showing another embodiment of the present invention in the form of a data format, and FIG. 3 is a configuration example of a serial data transmission system to which the present invention is applied. 1, the control flag 00' in FIG.
, means for dividing and arranging '11'' into 1-byte data units, and inserting inverted data of the first-half 1-byte data into the second-half 1-byte when transferring 1-byte data in FIG. The means for transmitting is the means necessary to carry out the present invention.The same reference numerals indicate the same objects throughout the figures.

本発明を実施しても、直列データを3B>4Bのコード
変換を施して、光ファイバ等で構成された直列−=す伝
送路3上に送出し、受信側において、4B−>3Bのコ
ード変換を行って、元の直列データに戻すと共に、制御
コマンド、制御データ等、処理速度が要求されるデータ
については、同一データを繰り返して送出し、受信側に
おいてその同一データを比較して一致を検出することで
、その正常性をヂエソクする手順は、特に従来方式と変
わることはないので、その詳細な説明は省略し、ここで
は、直列データを構成している1フレーム上の制御コマ
ンド、制御データ、及び1バイトの通常データに対して
本発明を実施した場合の直列データ転送方式を中心に、
第1図、第2図。
Even if the present invention is implemented, serial data is subjected to code conversion of 3B>4B and sent onto the serial transmission line 3 made of optical fiber etc., and on the receiving side, the code of 4B>3B is converted. In addition to converting the data back to the original serial data, for data that requires high processing speed, such as control commands and control data, the same data is sent repeatedly, and the receiving side compares the same data to find a match. The procedure for determining the normality of the data by detecting it is not particularly different from the conventional method, so a detailed explanation will be omitted. Focusing on the serial data transfer method when the present invention is implemented for data and 1 byte of normal data,
Figures 1 and 2.

第3図によって説明する。This will be explained with reference to FIG.

先ず、前述のように、転送データの制御コマンドと、制
御データは、同じデータを繰り返して送出する構成をと
り、受信側で比較チェックを行って、直列伝送路3上で
のエラーを高速に検出するようにしている。
First, as mentioned above, the control command for the transfer data and the control data are configured to repeatedly send the same data, and the receiving side performs a comparison check to quickly detect errors on the serial transmission line 3. I try to do that.

然しなから、この方式では、前述のように、制御データ
を示すフラグ11゛ が°00゛ に化けると、受信側
では、制御コマンドと誤認識し、誤動作を招くとことに
なる。
However, in this method, as described above, if the flag 11'' indicating control data changes to 000'', the receiving side will misrecognize it as a control command, leading to malfunction.

そこで、本発明においては、第1図に示すように、上記
制御コマンド、制御データに付加されているNビットの
フラグ(例えば、N=2ビット)’oo’ 、又は11
’ 51を分割して、上記二重化されたデータ50に、
それぞれ配置し転送するようにする。
Therefore, in the present invention, as shown in FIG. 1, an N-bit flag (for example, N=2 bits) 'oo' or 11
'51 is divided into the duplicated data 50,
Place and transfer each.

このような直列データ転送方式を採ることにより、上記
側々に配置されている2ビツトのフラグが同時にエラー
にならない限り、制御データ、又は制御コマンドが、制
御コマンド、又は制御データに誤認識されることはなく
なる。
By adopting such a serial data transfer method, unless the 2-bit flags placed on each side become errors at the same time, control data or control commands will be mistakenly recognized as control commands or control data. That will no longer be the case.

このようなデータ転送を行う為には、第3図に示した直
列データ伝送システムにおいて、送信側のマイクロプロ
セッサS 11で送信データを生成する際に、例えば、
1バイトの制御コマンド、制御データ50毎に、フラグ
ビット51を1ビツト宛に分割して付加するようにすれ
ば事足りることであり、その実現手段については、特に
限定されるものではない。
In order to perform such data transfer, in the serial data transmission system shown in FIG. 3, when generating transmission data in the transmission side microprocessor S11, for example,
It is sufficient to divide the flag bit 51 into one bit and add it to each one-byte control command or control data 50, and there are no particular limitations on the means for realizing this.

次に、第2図に示した実施例について説明する。Next, the embodiment shown in FIG. 2 will be described.

前述の第4図(b)に示した1フレームを構成している
直列データ(DTO−DT31) 5は、本図(b)に
示すように、2バイトデータ50となっているが、その
中に、(a)図に示すように、1バイトしか使用しない
場合がある。
The serial data (DTO-DT31) 5 that constitutes one frame shown in Figure 4(b) above is 2-byte data 50 as shown in Figure 4(b). In some cases, only one byte is used, as shown in Figure (a).

この場合、バイトOのビットO(フラグビット)51の
1′は通常データ50であることを示しているが、この
フラグが直列伝送路3上においてエラーとなり、コード
変換後において°0°に化け、且つ、たまたま °*1
′で示した部分に、同じデータ50が入っていると、該
当のバイト1のフラグは“0′(データの無いことを示
している)であるので、前述の比較チェックにおいて一
致し、当該データユニット(DTユニット) は制御コ
マンドと誤認識されることになる。
In this case, 1' of bit O (flag bit) 51 of byte O indicates normal data 50, but this flag causes an error on the serial transmission line 3, and after code conversion, it becomes 0°. , and by chance °*1
If the same data 50 is contained in the part indicated by ', the flag of the corresponding byte 1 is "0" (indicating that there is no data), so it matches in the comparison check mentioned above, and the data is unit (DT unit) will be mistakenly recognized as a control command.

そこで、本発明においては、バイトOの転送データ50
を後半のパイ) 1 (’ml’で示す)に、該転送デ
ータを反転したものを挿入するようにする。
Therefore, in the present invention, byte O transfer data 50
The inverted version of the transfer data is inserted into the second half of the transfer data (indicated by 'ml').

このようにすることで、フラグビットのビット化けが発
生しても、上記比較チェックにおいて、不一致となるの
で、制御コマンドに誤認識されることがなくなる。
By doing this, even if the flag bits are garbled, the comparison check will result in a mismatch, so that the flag bits will not be erroneously recognized as control commands.

この場合の動作を、第3図によって説明する。The operation in this case will be explained with reference to FIG.

即ち、送信データを生成しているマイクロプロセッサS
 11において、1バイトデータの送信を認識したとき
には、反転制御ビット(IB) 12をセットし、該反
転制御ビット(IB) 12がl”となっていると、出
力レジスタ(BO) 14の出力を反転回路(反転)1
3で反転して、再度出力レジスタ(BO) 14に再挿
入するように制御することで実現される。
That is, the microprocessor S generating the transmission data
11, when the transmission of 1-byte data is recognized, the inversion control bit (IB) 12 is set, and if the inversion control bit (IB) 12 is set to l", the output of the output register (BO) 14 is set. Inversion circuit (inversion) 1
This is achieved by inverting the signal at step 3 and reinserting it into the output register (BO) 14 again.

尚、第3図の直列データ伝送システムの、その他の回路
の動作は、従来技術で説明した動作と同じ公知のもので
あるので、ここでは省略する。
The operations of other circuits in the serial data transmission system shown in FIG. 3 are well known and are the same as those described in the prior art, and therefore will not be described here.

このように、本発明は、装WAと装置8間でデータ転送
を行うのに、直列信号による伝送路(例えば、光ファイ
バ)に、上記データをコード変換して伝送する際、例え
ば、Mビット単位に、そのデータの属性を決定するNピ
ントのフラグを備え、特定のMビットデータを繰り返し
て転送し、受信側で照合チェックを行う形式を持ち、通
常データはMビットの複数倍を単位として転送される直
列データ転送方式において、例えば、2バイト単位に、
その情報の属性を決定する2ビツトフラグを、上記コー
ド変換のビット数(例えば、3ビツト)以上、具体的に
は、1バイト離して、図示(第1図、第2図参照)の如
く分散して配置すると共に、上記2バイトの直列データ
の中に、1バイトの部分データが存在している場合には
、該1バイトデータの後半のバイトに、該1バイトデー
タを反転したものを挿入するようにした所に特徴がある
As described above, the present invention provides data transfer between the WA and the device 8, and when the data is code-converted and transmitted over a serial signal transmission line (e.g., an optical fiber), for example, M-bit Each unit has a flag of N focus that determines the attribute of that data, and has a format in which specific M-bit data is repeatedly transferred and a verification check is performed on the receiving side. Normally, data is set in units of multiples of M bits. In the serial data transfer method, for example, in units of 2 bytes,
The 2-bit flags that determine the attributes of the information are separated by more than the number of bits for the code conversion (for example, 3 bits), specifically, 1 byte apart, as shown in the diagram (see Figures 1 and 2). In addition, if 1-byte partial data exists in the 2-byte serial data, the inverted version of the 1-byte data is inserted into the latter byte of the 1-byte data. It is distinctive in that it is made like this.

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

以上、詳細に説明したように、本発明の直列データ転送
方式は、それぞれ、フラグビット °oo’。
As described above in detail, the serial data transfer method of the present invention each uses a flag bit °oo'.

’11’ 、 ’10’等を備えた制御コマンド、制御
データ。
Control commands and control data with '11', '10', etc.

通常データで、1フレームを構成する直列データを、3
B=04Bのコード変換を行って、直列伝送路を伝送す
る際に、上記フラグビットを、少なくとも、上記コード
変換のビット数(3ビツト)以上、具体的には、転送単
位の1バイト離して分割。
Normal data consists of 3 serial data constituting one frame.
When performing code conversion of B = 04B and transmitting through a serial transmission line, the flag bits are separated by at least the number of bits (3 bits) of the code conversion described above, specifically, 1 byte of the transfer unit. Split.

配置すると共に、上記通常データが2バイト単位になっ
ているとき、1バイトのデータが含まれている場合には
、該1バイトデータの反転データを後半のバイトに載せ
るようにしたものであるので、該直列伝送路上でのビッ
トエラーによって、例えば、制御データ、1バイトデー
タが制御コマンドに化けることを防止することができる
効果がある。
In addition, when the above normal data is in units of 2 bytes, if 1 byte data is included, the inverted data of the 1 byte data is placed in the latter byte. This has the effect of preventing, for example, control data or 1-byte data from being transformed into a control command due to a bit error on the serial transmission path.

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

第1図は本発明の一実施例をデータフォーマットの形で
示した図。 第2図は本発明の他の実施例をデータフォーマットの形
で示した図。 (云 第3図は本発明が適用された直列データ転送システムの
構成例を示した図。 第4図は従来のデータ転送方式を説明する図。 である。 図面において、 1は本体装置、又は装置A。 2は入出力制御装置、又は装置B。 11はマイクロプロセッサS。 12は反転制御ビット(IB) 。 13は反転回路(反転)、14は出力レジスタ(BO)
。 21はマイクロプロセッサR1 3は直列伝送路、又は光ファイバ。 4は入出力装置(Ilo)。 夕、又は単にデータ。 51はデータ50の属性を決定するフラグ。 をそれぞれ示す。
FIG. 1 is a diagram showing an embodiment of the present invention in the form of a data format. FIG. 2 is a diagram showing another embodiment of the present invention in the form of a data format. (Fig. 3 is a diagram showing a configuration example of a serial data transfer system to which the present invention is applied. Fig. 4 is a diagram illustrating a conventional data transfer system. In the drawings, 1 is a main unit, or Device A. 2 is an input/output control device or device B. 11 is a microprocessor S. 12 is an inversion control bit (IB). 13 is an inversion circuit (inversion), and 14 is an output register (BO).
. 21 is a microprocessor R1; 3 is a serial transmission line or an optical fiber; 4 is an input/output device (Ilo). Evening or just data. A flag 51 determines the attribute of the data 50. are shown respectively.

Claims (2)

【特許請求の範囲】[Claims] (1)装置A(1)と装置B(2)間のデータ転送を行
うのに、直列信号による伝送路(3)で、上記両装置間
を接続し、且つ該伝送路(3)上を流れる情報信号をコ
ード変換して転送する際に、Mビット単位(50)にそ
の情報の属性を決定するNビットのフラグ(51)を具
備し、特定のMビットデータ(50)を繰り返して転送
し、受信側で照合チェックを行う形式を持ち、且つ通常
のデータは上記Mビットの複数倍を単位として転送され
る直列データ転送方式であって、 上記Nビットのフラグ(51)を、上記コード変換のビ
ット数以上離して分割、配置し、転送することを特徴と
する直列データ転送方式。
(1) To transfer data between device A (1) and device B (2), a transmission path (3) using serial signals connects the two devices, and the transmission path (3) is When a flowing information signal is code-converted and transferred, it is equipped with an N-bit flag (51) that determines the attribute of the information in M-bit units (50), and repeatedly transfers specific M-bit data (50). This is a serial data transfer method in which a verification check is performed on the receiving side, and normal data is transferred in units of multiples of the above M bits. A serial data transfer method characterized by dividing, arranging, and transmitting data separated by a number of bits or more for conversion.
(2)上記直列データ転送方式において、上記Mビット
データ(50)の複数倍の一部分を単位としたデータを
転送する際には、その反転データを後半のバイト位置に
載せることを特徴とする特許請求の範囲第1項に記載の
直列データ転送方式。
(2) A patent characterized in that, in the serial data transfer method, when transferring data in units of multiple parts of the M-bit data (50), the inverted data is placed in the latter byte position. A serial data transfer method according to claim 1.
JP62248852A 1987-10-01 1987-10-01 Serial data transfer system Expired - Fee Related JP2581705B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62248852A JP2581705B2 (en) 1987-10-01 1987-10-01 Serial data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62248852A JP2581705B2 (en) 1987-10-01 1987-10-01 Serial data transfer system

Publications (2)

Publication Number Publication Date
JPH0191543A true JPH0191543A (en) 1989-04-11
JP2581705B2 JP2581705B2 (en) 1997-02-12

Family

ID=17184382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62248852A Expired - Fee Related JP2581705B2 (en) 1987-10-01 1987-10-01 Serial data transfer system

Country Status (1)

Country Link
JP (1) JP2581705B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6899146B2 (en) 2003-05-09 2005-05-31 Battelle Energy Alliance, Llc Method and apparatus for dispensing compressed natural gas and liquified natural gas to natural gas powered vehicles
JP2007274133A (en) * 2006-03-30 2007-10-18 Kyocera Corp Communication system
JP2008098901A (en) * 2006-10-11 2008-04-24 Denso Corp Data communication system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59160350A (en) * 1983-03-03 1984-09-11 Nec Corp Monitoring controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59160350A (en) * 1983-03-03 1984-09-11 Nec Corp Monitoring controller

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6899146B2 (en) 2003-05-09 2005-05-31 Battelle Energy Alliance, Llc Method and apparatus for dispensing compressed natural gas and liquified natural gas to natural gas powered vehicles
US7222647B2 (en) 2003-05-09 2007-05-29 Battelle Energy Alliance, Llc Apparatus for dispensing compressed natural gas and liquified natural gas to natural gas powered vehicles
JP2007274133A (en) * 2006-03-30 2007-10-18 Kyocera Corp Communication system
JP4669807B2 (en) * 2006-03-30 2011-04-13 京セラ株式会社 Communications system
JP2008098901A (en) * 2006-10-11 2008-04-24 Denso Corp Data communication system

Also Published As

Publication number Publication date
JP2581705B2 (en) 1997-02-12

Similar Documents

Publication Publication Date Title
JP2988901B2 (en) Error detection device and error detection method on IC having parallel serial port
JPH0561667B2 (en)
JPS602813B2 (en) Computer-to-computer communication method and system
EP0425839B1 (en) Data processing system channel
US6321361B1 (en) Process for detecting errors in a serial link of an integrated circuit and device for implementing the process
JPH0331928A (en) Frame converting circuit
JPH0191543A (en) Serial data transfer system
US4977559A (en) Improper bit combination detection circuit
JPS6235144B2 (en)
JPS63228856A (en) Communication controller
JP2874983B2 (en) Communication device
JP2953878B2 (en) Data transfer system
JP2728410B2 (en) Frame synchronizer
JPS6066722A (en) Error detecting and restoring circuit of endoscope light source apparatus
JPH0522329A (en) Specifying method for signal transmission fault
JPH02307151A (en) Processor system
JPH04278742A (en) Method of detecting error in reception data
JPH03222543A (en) Bus transfer reply system
JPS6049441A (en) Data processor
JPH02105748A (en) Signal transfer equipment
JPS59100927A (en) Data transferring system
JPH098863A (en) Communication protocol controller
JPH0324601A (en) Control method
JPH0146890B2 (en)
JPS63187943A (en) Communication control equipment

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees