JP2013058845A - Data communication method and data communication system - Google Patents
Data communication method and data communication system Download PDFInfo
- Publication number
- JP2013058845A JP2013058845A JP2011195037A JP2011195037A JP2013058845A JP 2013058845 A JP2013058845 A JP 2013058845A JP 2011195037 A JP2011195037 A JP 2011195037A JP 2011195037 A JP2011195037 A JP 2011195037A JP 2013058845 A JP2013058845 A JP 2013058845A
- Authority
- JP
- Japan
- Prior art keywords
- error detection
- data
- frame
- unit
- code
- 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
Links
- 230000006854 communication Effects 0.000 title claims abstract description 129
- 238000004891 communication Methods 0.000 title claims abstract description 128
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000001514 detection method Methods 0.000 claims abstract description 193
- 230000005540 biological transmission Effects 0.000 claims abstract description 80
- 238000010586 diagram Methods 0.000 description 7
- 101100258328 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) crc-2 gene Proteins 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 206010009944 Colon cancer Diseases 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Images
Abstract
Description
本発明は、少なくとも通信先のIDを含む制御情報部と、送信データからなるデータ部と、誤り検出符号からなる誤り検出部とからなる通信フレームを用いて通信するデータ通信方法及びデータ通信システムに関する。 The present invention relates to a data communication method and a data communication system for performing communication using a communication frame including at least a control information unit including an ID of a communication destination, a data unit including transmission data, and an error detection unit including an error detection code. .
データ通信では、通信フレームに例えばCRC(Cyclic Redundancy Check)符号等の誤り検出符号を付加して送信を行い、受信側でその誤り検出符号を用いて受信データについて誤り検出を行い、誤りが検出されると、その通信フレームの再送信を要求することが行われている(例えば、特許文献1参照)。 In data communication, an error detection code such as a CRC (Cyclic Redundancy Check) code is added to a communication frame for transmission, and the reception side performs error detection on the received data using the error detection code, and an error is detected. Then, a request for retransmission of the communication frame is made (see, for example, Patent Document 1).
しかしながら、上記のような誤り検出は、あくまでもデータに対してのみ行われており、通信フレーム中のヘッダ部分に付いては、データ部分に対してビット数が少ないため、誤り検出を行うことは想定していない。 However, error detection as described above is performed only on data, and it is assumed that error detection is performed because the number of bits for the header portion in the communication frame is small compared to the data portion. Not done.
本発明は上記事情に鑑みてなされたものであり、その目的は、通信フレーム中の制御情報部分に付いても誤りを検出することが可能なデータ通信方法及びデータ通信システムを提供することにある。 The present invention has been made in view of the above circumstances, and an object thereof is to provide a data communication method and a data communication system capable of detecting an error even with a control information portion in a communication frame. .
請求項1記載のデータ通信方法によれば、少なくとも制御コードを含む制御情報部と、送信データからなるデータ部と、誤り検出符号からなる誤り検出部とからなる通信フレームを用いて通信を行う。そして、送信側が、誤り検出部に、制御情報部について誤り検出を行うための制御用誤り検出符号を含ませて送信を行うと、受信側は、制御用誤り検出符号に基づいて制御情報部の誤り検出を行う。したがって、受信側では、制御情報部についても誤りが発生しているか否かを検出することができる。 According to the data communication method of the first aspect, communication is performed using a communication frame including a control information portion including at least a control code, a data portion including transmission data, and an error detection portion including an error detection code. Then, when the transmission side performs transmission by including a control error detection code for performing error detection for the control information unit in the error detection unit, the reception side performs control based on the control error detection code. Perform error detection. Therefore, the receiving side can detect whether or not an error has occurred in the control information section.
請求項2記載のデータ通信方法によれば、送信側は、データ部を、所定のビット数を単位とする複数の単位データ部に分割し、データ部について誤り検出を行う誤り検出部を、複数の単位データ部に対応して複数設ける。そして、受信側は、複数の単位データ部毎に誤り検出を行う。したがって、1回の送信において複数の単位データ部を送信するいわゆるバースト送信形態について、単位データ部毎に誤りを検出できる。
According to the data communication method of
請求項3記載のデータ通信方法によれば、送信側は、誤り検出部において、制御用誤り検出符号を、制御情報部と、それに続く最初の単位データ部とを併せて誤り検出を行うように生成する。したがって、誤り検出符号のビット数の増大を抑制できる。
According to the data communication method of
請求項4記載のデータ通信方法によれば、制御用誤り検出符号と複数の単位データ部毎に付加する誤り検出符号とに同じ種類の誤り検出符号を用いるので、送信側,受信側の処理が簡単になる。
According to the data communication method of
請求項5記載のデータ通信方法によれば、受信側は、送信側に対して誤り検出符号により誤りが検出された部分について再送信を要求し、送信側は、再送信の要求を受信すると要求された部分を再送信する。したがって、1回で送信される通信フレームが長いバースト送信の場合でも、要求された単位データ部だけを再送信できるので、通信効率が向上する。
According to the data communication method of
請求項6記載のデータ通信方法によれば、受信側は、再送信の要求頻度の多寡に応じて誤り検出符号のビット数の変更を送信側に要求し、送信側は、前記要求に応じて誤り検出符号のビット数を変更する。したがって、通信環境に応じて誤り検出の精度を変更することができる。
According to the data communication method of
請求項7記載のデータ通信方法によれば、送信側は、通信フレームをリンクレイヤフレームとして4B5B符号化すると、4B5B符号化したリンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加して物理レイヤフレームを生成し、更にNRZI符号化してから通信路へ送信する際に、送信データが正常であるか否かを判定するビットエラー検出,リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行う。
According to the data communication method of
一方、受信側は、受信した物理レイヤフレームに対し、4B5B符号化が正常であるか否かを判定するコーディングエラー検出,誤り検出符号を用いてリンクレイヤフレームに含まれる制御情報部及びデータ部が正常であるか否かを判定する誤り検出,リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出,リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を行う。また、送信側は、受信側よりACKフレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を行う。したがって、誤り検出符号を用いた誤り検出にその他各種のエラー検出組み合わせることで、通信の信頼性を一層向上させることができる。 On the other hand, the receiving side uses a coding error detection and error detection code to determine whether or not 4B5B encoding is normal for the received physical layer frame. Error detection to determine whether it is normal, form error detection to determine whether the structure and contents of the link layer frame are normal, and whether the bit sequence of the link layer frame is normal Perform state error detection. Further, the transmission side performs time-out error detection for determining whether or not the ACK frame has been normally received from the reception side within a predetermined time. Therefore, the reliability of communication can be further improved by combining error detection using an error detection code with various other error detections.
(第1実施例)
以下、第1実施例について、図1ないし図12を参照して説明する。図1は、データ通信装置の構成を示す機能ブロック図である。データ通信装置1(送信器,受信器)は、送信系の機能ブロックとして、送信LLF(Link Layer Frame)エンコーダ2と、FIFO(First In First Out)3と、4B5Bエンコーダ4と、5Nビットコマンドエンコーダ5と、制御回路6と、セレクタ7と、シリアライザ8と、NRZIエンコーダ9とを有する。
(First embodiment)
Hereinafter, a first embodiment will be described with reference to FIGS. FIG. 1 is a functional block diagram showing the configuration of the data communication apparatus. The data communication apparatus 1 (transmitter, receiver) includes a transmission LLF (Link Layer Frame)
送信LLFエンコーダ2は、送受信シーケンサ10(ステートエラー検出手段、タイムアウトエラー検出手段に相当)から送信データを入力すると、フレームを識別(特定)するための識別子と、データのライト又はリードを示すリモートと、データの長さを示すサイズと、アクセスするアドレス空間を示すIDと、データ(送信データ)と、CRC符号を除くリンクレイヤフレーム(LLF)を生成してセレクタ21及びCRC演算器22に出力する。CRC演算器22は、入力されるリンクレイヤフレームのヘッダ(制御情報)部分とデータ部分とについて例えば16ビットのCRC符号を生成し、セレクタ21に出力する。セレクタ21の切替え制御は、送受信シーケンサ10によって行われ、その切り替えによりCRC符号が通信フレーム中の所定位置に配置されたリンクレイヤフレームが生成されてFIFO3に入力される。リンクレイヤフレームは、FIFO3を介して4B5Bエンコーダ4及び5Nビットコマンドエンコーダ5に入力される。
The
4B5Bエンコーダ4は、送信LLFエンコーダ2からFIFO3を介してリンクレイヤフレームを8ビットのビット列により入力すると、その8ビットのビット列を構成する上位の4ビットのビット列及び下位の4ビットのビット列の各々を4B5B符号化テーブル(図示せず)に従って5ビットのビット列に変換し、10ビットのビット列を生成してセレクタ7へ出力する。この場合、4B5Bエンコーダ4は、4ビットのビット列を「0」が3ビット以上連続しないように5ビットのビット列に変換する。
When the
5Nビットコマンドエンコーダ5は、送信LLFエンコーダ2からFIFO3を介してリンクレイヤフレームを入力すると、同期用のビット列であるプリアンブル(Preamble)、リンクレイヤフレームの先頭を検出するためのSFD(Start Frame Delimiter)(フレーム開始部)及びリンクレイヤフレームの末尾を検出するためのEFD(End Frame Delimiter)(フレーム終了部)を生成して制御回路6及びセレクタ7へ出力する。
When a link layer frame is input from the
セレクタ7は、4B5Bエンコーダ4から10ビットのビット列を入力し、5Nビットコマンドエンコーダ5からプリアンブル、SFD及びEFDを入力すると、制御回路6から入力する制御指令にしたがって10ビットのビット列にプリアンブル、SFD及びEFDを付加して物理レイヤフレーム(PLF;Physical Layer Frame)を生成すると、シリアライザ8及びビットエラー検出部(データ比較部)11(ビットエラー検出手段に相当)へ出力する。
When the
シリアライザ8は、セレクタ7から物理レイヤフレームを入力すると、その物理レイヤフレームをパラレル/シリアル変換してNRZIエンコーダ9へ出力する。NRZIエンコーダ9は、シリアライザ8からパラレル/シリアル変換された物理レイヤフレームを入力すると、その物理レイヤフレームをNRZI(No Return to Zero Inversion)符号にエンコードして送信端子から送信フレームとして通信路へ送信する。
When the physical layer frame is input from the
一方、データ通信装置1は、受信系の機能ブロックとして、クロック再生部12と、NRZIデコーダ13と、SFD(Start Frame Delimiter)検出部14と、デシリアライザ15と、4B5Bデコーダ16(コーディングエラー検出手段に相当)と、セレクタ17と、制御回路18と、FIFO19と、受信LLFデコーダ20(フォームエラー検出手段、符号誤り検出手段に相当)とを有する。
On the other hand, the
クロック再生部12は、通信路から受信フレームとして受信したNRZI符号の物理レイヤフレームからクロック成分を抽出してクロック信号を再生し、その再生したクロック信号を各機能ブロックへ供給する。NRZIデコーダ13は、通信路から受信フレームとして受信したNRZI符号の物理レイヤフレームをデコードしてSFD検出部14へ出力する。
The
SFD検出部14は、NRZIデコーダ13から物理レイヤフレームを入力すると、その物理レイヤフレームに含まれるSFDを検出してリンクレイヤフレームの先頭を検出し、リンクレイヤフレームをデシリアライザ15へ出力する。デシリアライザ15は、SFD検出部14からリンクレイヤフレームを入力すると、そのリンクレイヤフレームのビット列をシリアル/パラレル変換して4B5Bデコーダ16及びビットエラー検出部11へ出力する。4B5Bデコーダ16は、デシリアライザ15からシリアル/パラレル変換されたリンクレイヤフレームの10ビットのビット列を4B5B符号化テーブル(図示せず)に従って8ビットのビット列に逆変換してセレクタ17及び制御回路18へ出力する。
When the physical layer frame is input from the
セレクタ17は、4B5Bデコーダ16からリンクレイヤフレームの8ビットのビット列を入力すると、制御回路18から入力する制御指令にしたがってFIFO19を介して受信LLFデコーダ20へ出力する。受信LLFデコーダ20は、セレクタ17からFIFO19を介してリンクレイヤフレームの8ビットのビット列を入力すると、そのリンクレイヤフレームの8ビットのビット列を送受信シーケンサ10へ出力する。
When the
上記したリンクレイヤフレームのフレーム構成と物理レイヤフレームのフレーム構成とは、図2に示すような対応関係となっている。また、データ通信装置1は、図3に示すように、その機能を階層構造に分割すると物理レイヤ、リンクレイヤ、API(Application Program Interface)レイヤに分割することができ、物理レイヤは送信(TX)制御を行う機能部と受信(RX)制御を行う機能部とに分割することができる。
The frame configuration of the link layer frame and the frame configuration of the physical layer frame have a correspondence relationship as shown in FIG. Further, as shown in FIG. 3, the
本実施例で示す物理レイヤ、リンクレイヤ、APIレイヤは、国際標準化機構(ISO)により制定されたOSI(Open Systems Interconnection)参照モデルと対比すると、図4に示すように、物理レイヤはOSI参照モデルの第1層(物理層)に対応し、リンクレイヤはOSI参照モデルの第2層(データリンク層)と第3層(ネットワーク層)に対応し、APIレイヤはOSI参照モデルの第4層(トランスポート層)と第5層(セッション層)と第6層(プレゼンテーション層)に対応する。リンクレイヤフレームはデータ通信装置1のリンクレイヤ間で論理的に通信され、物理レイヤフレームはデータ通信装置1の物理レイヤ間で物理的に通信される。
When the physical layer, link layer, and API layer shown in this embodiment are compared with the OSI (Open Systems Interconnection) reference model established by the International Organization for Standardization (ISO), as shown in FIG. 4, the physical layer is the OSI reference model. Of the OSI reference model, the link layer corresponds to the second layer (data link layer) and the third layer (network layer) of the OSI reference model, and the API layer corresponds to the fourth layer (of the OSI reference model). It corresponds to the transport layer), the fifth layer (session layer), and the sixth layer (presentation layer). The link layer frame is logically communicated between the link layers of the
次に、リンクレイヤフレームに割当てる識別子のビット数(識別子長)を決定する手順について図5及び図6を参照して説明する。尚、ここでは、通信ネットワーク内における通信頻度(使用頻度)が最も高いフレームは所定ビットのID長を有するデータフレームであり、通信頻度が2番目に高いフレームはACKフレームであり、通信頻度が3番目に高いフレームはコマンドフレームであることを前提とする。また、例えば車両に搭載される車両通信ネットワーク(車両LAN(Local Area Network))のようにノイズ環境が厳しいが故に通信不成立が頻繁に発生する通信システムを想定することで、ACKフレームの通信頻度が2番目に高いとしている。 Next, a procedure for determining the number of identifier bits (identifier length) to be allocated to the link layer frame will be described with reference to FIGS. Here, the frame having the highest communication frequency (usage frequency) in the communication network is a data frame having an ID length of a predetermined bit, the frame having the second highest communication frequency is an ACK frame, and the communication frequency is 3 It is assumed that the second highest frame is a command frame. Further, for example, assuming a communication system in which communication failure frequently occurs due to a severe noise environment such as a vehicle communication network (vehicle LAN (Local Area Network)) mounted on a vehicle, the communication frequency of the ACK frame is reduced. The second highest.
最初に、通信ネットワーク内における通信頻度が最も高いデータフレームを決定する。具体的には、通信路に接続されているノード(チップ)数をNa、ノードに必要なアドレス空間をNb、係数をN、N1、N2とし、Na≦2N1を満たすN1を求め、Nb=2N2を満たすN2を求め、N=N1+N2を求める。本実施例ではNa≦8であると仮定するとN1=3を求めることができ、N2=9と仮定するとN=12を求めることができる。従って12ビットのID長を有するデータフレーム(12ビットIDデータフレームと称す)を、通信頻度が最も高いデータフレームとして決定する。 First, the data frame having the highest communication frequency in the communication network is determined. Specifically, the number of nodes (chips) connected to the communication path is Na, the address space required for the nodes is Nb, the coefficients are N, N1, and N2, and N1 that satisfies Na ≦ 2 N1 is obtained. Nb = 2 N2 satisfying N2 is obtained, and N = N1 + N2 is obtained. In this embodiment, N1 = 3 can be obtained when Na ≦ 8, and N = 12 can be obtained when N2 = 9. Therefore, a data frame having a 12-bit ID length (referred to as a 12-bit ID data frame) is determined as a data frame having the highest communication frequency.
次に、12ビットIDデータフレームにおけるリモートのビット数(リモート長)と、サイズのビット数(サイズ長)と、IDのビット数(ID長)とを特定し、識別子のビット数(識別子長)と、リモートのビット数と、サイズのビット数と、IDのビット数との和が8の倍数ビット(8ビット、16ビット、24ビット、32ビット…)となるように識別子のビット数を決定する。 Next, the number of bits in the 12-bit ID data frame (remote length), the number of bits in size (size length), and the number of bits in ID (ID length) are specified, and the number of bits in the identifier (identifier length) The number of identifier bits is determined so that the sum of the number of bits in the remote, the number of bits in the size, and the number of bits in the ID is a multiple of 8 (8 bits, 16 bits, 24 bits, 32 bits, ...) To do.
即ち、12ビットIDデータフレームでは、図5に示すように、リモートのビット数が「1」,サイズのビット数が「1」,IDのビット数が「12」であるから、識別子,リモート,サイズ,ID(これらが制御コードに相当する)の各ビット数の和が直近の8の倍数(この場合は「16」)となるように識別子のビット数を「1」に決定し、識別子を図6に示すように「0」に決定する。 That is, in the 12-bit ID data frame, as shown in FIG. 5, the remote bit number is “1”, the size bit number is “1”, and the ID bit number is “12”. The number of bits of the identifier is determined to be “1” so that the sum of the number of bits of the size and ID (which correspond to the control code) is the latest multiple of 8 (in this case, “16”). As shown in FIG. 6, it is determined to be “0”.
次に、12ビットIDデータフレームに次いで(2番目に)通信頻度が高いACKフレームに対して割当てる識別子のビット数を決定する。即ち、ACKフレームでは、要求に対する応答を示すACKのビット数が「5」,CRCのビット数が「16」であるから、ACK,CRC,識別子の各ビット数の和が直近の8の倍数(この場合は「24」)となるように、識別子のビット数を「3」に決定し、識別子を「100」に決定する。 Next, the number of identifier bits to be assigned to the ACK frame having the second highest communication frequency after the 12-bit ID data frame is determined. That is, in the ACK frame, since the number of ACK bits indicating a response to the request is “5” and the number of CRC bits is “16”, the sum of the number of ACK, CRC, and identifier bits is the nearest multiple of 8 ( In this case, the number of bits of the identifier is determined to be “3” and the identifier is determined to be “100” so as to be “24”).
次に、12ビットIDデータフレーム、ACKフレームに次いで(3番目に)通信頻度が高いコマンドフレームに割当てる識別子のビット数を決定する。即ち、コマンドフレームでは、制御情報であるコマンドを示すビット数が「5」,CRCのビット数が「16」であるから、コマンド,CRC,識別子の各ビットの和が直近の8の倍数(この場合は24ビット)となるように識別子のビット数を「3」決定し、識別子を「101」に決定する。 Next, the number of identifier bits assigned to the command frame having the third highest communication frequency after the 12-bit ID data frame and the ACK frame is determined. That is, in the command frame, the number of bits indicating the command which is the control information is “5” and the number of bits of the CRC is “16”, so the sum of the bits of the command, CRC and identifier is the most recent multiple of 8 (this In this case, the number of bits of the identifier is determined to be “3”, and the identifier is determined to be “101”.
また、現行のシステムでは不要だが将来的な通信システムの拡張に対応するため、拡張用のデータフレームに割当てる識別子のビット数を以下のようにして決定する。ここでは、拡張用のデータフレームが、4ビット,16ビット,24ビット,32ビットのID長を有するデータフレームである場合を説明する。
4ビットIDデータフレームでは、リモートのビット数が「1」,サイズのビット数が「0」,IDのビット数が「4」であるから、識別子,リモート,サイズ,IDの各ビット数の和が直近の8の倍数(この場合は「8」)となるように、識別子のビット数を「3」に決定し、識別子を「110」に決定する。
Further, in order to cope with future expansion of the communication system, which is not required in the current system, the number of identifier bits assigned to the data frame for expansion is determined as follows. Here, a case where the data frame for extension is a data frame having ID lengths of 4 bits, 16 bits, 24 bits, and 32 bits will be described.
In the 4-bit ID data frame, the number of bits in the remote is “1”, the number of bits in the size is “0”, and the number of bits in the ID is “4”. The number of bits of the identifier is determined to be “3” and the identifier is determined to be “110” so that becomes the latest multiple of 8 (in this case, “8”).
16ビットIDデータフレームでは、リモートのビット数が「1」,サイズのビット数が「2」,IDのビット数が「16」であるから、識別子,リモート,サイズ,IDの各ビット数の和が直近の8の倍数(この場合は「24」)となるように識別子のビット数を「5」に決定し、識別子を「11100」に決定する。
24ビットIDデータフレームでは、リモートのビット数が「1」,サイズのビット数が「2」,IDのビット数が「24」であるから、識別子,リモート,サイズ,IDの各ビット数の和が直近の8の倍数(この場合は「32」)となるように、識別子のビット数を「5」に決定し、識別子を「11101」に決定する。
In the 16-bit ID data frame, the number of bits of the remote is “1”, the number of bits of the size is “2”, and the number of bits of the ID is “16”. The number of bits of the identifier is determined to be “5” and the identifier is determined to be “11100” so that becomes the latest multiple of 8 (in this case, “24”).
In the 24-bit ID data frame, the number of bits of the remote is “1”, the number of bits of the size is “2”, and the number of bits of the ID is “24”. The number of bits of the identifier is determined to be “5” and the identifier is determined to be “11101” so that becomes the latest multiple of 8 (in this case, “32”).
32ビットIDデータフレームでは、リモートのビット数が「1」,サイズのビット数が「2」,IDのビット数が「32」であるから、識別子のビット数とリモートのビット数とサイズのビット数とIDのビット数との和が直近の8の倍数ビット数(この場合は「40」)となるように、識別子のビット数を「5」に決定し、識別子を「11110」に決定する。
フレーム内に複数のデータと複数のCRCとを有するバーストフレームについては、上記したデータフレームとは異なり、識別子,リモート,サイズ,IDの各ビット数の和が直近の8の倍数となるように識別子のビット数を決定せず、識別子のビット数を任意に決定する。
In the 32-bit ID data frame, the number of bits of the remote is “1”, the number of bits of the size is “2”, and the number of bits of the ID is “32”. The number of bits of the identifier is determined to be “5” and the identifier is determined to be “11110” so that the sum of the number and the number of bits of the ID becomes the most recent multiple of 8 (in this case, “40”). .
For burst frames having a plurality of data and a plurality of CRCs in the frame, unlike the above-described data frame, the identifier is set such that the sum of the number of bits of the identifier, remote, size, and ID is the most recent multiple of 8. The number of bits of the identifier is arbitrarily determined without determining the number of bits.
12ビットIDバーストフレームでは、リモートのビット数が1ビット,サイズのビット数が4ビット,IDのビット数が12ビットであるが、識別子のビット数を例えば7ビットに決定し(ビット数の和は「24」)、識別子を「1111100」に決定する。また、32ビットIDバーストフレームでは、リモートのビット数が1ビット,サイズのビット数が8ビット,IDのビット数が32ビットであるが、識別子のビット数を例えば7ビットに決定し(ビット数の和は「48」)、識別子を「1111101」に決定する。尚、バーストフレームでは、128ビット;16バイト(単位データ部)毎に、16ビットのCRC符号(誤り検出部)が付加されている。 In the 12-bit ID burst frame, the remote bit number is 1 bit, the size bit number is 4 bits, and the ID bit number is 12 bits, but the identifier bit number is determined to be 7 bits (for example, the sum of the bit numbers). Is determined to be “1111100”. In the 32-bit ID burst frame, the remote bit number is 1 bit, the size bit number is 8 bits, and the ID bit number is 32 bits. Is determined to be “1111101”. In a burst frame, a 16-bit CRC code (error detection unit) is added every 128 bits; 16 bytes (unit data portion).
また、図7は12ビットIDのバーストフレームについて示すが、冒頭の識別子からリモート,サイズ,IDまでの部分がヘッダに対応する。そして、本実施例では、ヘッダとそれに続く16バイトの単位データ部に続いて配置されているCRC符号は、CRC演算器22によりヘッダと単位データ部とを併せたものを対象として生成されている(制御用誤り検出符号)。したがって、前記CRC符号によってヘッダ部分に誤りが発生した場合についても検出が可能となっている。
FIG. 7 shows a burst frame having a 12-bit ID, and the portion from the identifier at the beginning to the remote, size, and ID corresponds to the header. In this embodiment, the CRC code arranged following the header and the subsequent 16-byte unit data portion is generated by the
さて、上記したデータ通信装置1は、以下に示すエラー検出機能を有し、データ送信時にはデータ送信時エラー検出処理を行い、データ受信時にはデータ受信時エラー検出処理を行う。以下、データ送信時エラー検出処理及びデータ受信時エラー検出処理について図8ないし図10を参照して順次説明する。
The
(1)データ送信時エラー検出処理
データ通信装置1は、データ送信時には、図8に示すデータ送信時エラー検出処理を行う。即ち、データ通信装置1は、送信データが正常であるか否かを判定するビットエラー検出をビットエラー検出部11にて行う(ステップS1)。データ通信装置1は、セレクタ7からビットエラー検出部11へ入力された物理レイヤフレームに含まれるデータと、デシリアライザ15からビットエラー検出部11へ入力されたリンクレイヤフレームに含まれるデータとを照合し、送信データと異なるデータを検出した場合、または送信データを検出しなかった場合には、送信データが正常でないと判定し(ステップS1:YES)、ビットエラーが発生したことを検出する(ステップS2)。このように、データ通信装置1は、データ送信時にはビットエラー検出を行う。
(1) Error detection processing during data transmission The
(2)データ受信時エラー検出処理
データ通信装置1は、データ受信時には、図9に示すデータ受信時エラー検出処理を行う。即ち、データ通信装置1は、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を4B5Bデコーダ16にて行う(ステップS11)。データ通信装置1は、デシリアライザ15から4B5Bデコーダ16へ入力されたリンクレイヤフレームの10ビットのビット列を4B5B符号化テーブルに従って逆変換した8ビットのビット列を判定し、4B5B符号化テーブルに示すビット列以外のビット列(未定義のビット列)を検出した場合には、4B5B符号化が正常でないと判定し(ステップS11:YES)、コーディングエラーが発生したことを検出する(ステップS12)。
(2) Error detection processing during data reception The
次いで、データ通信装置1は、リンクレイヤフレームに含まれるヘッダ及びデータが正常であるか否かを判定するCRCエラー検出(符号誤り検出)を受信LLFデコーダ20にて行う(ステップS13)。データ通信装置1は、セレクタ17からFIFO19を介して受信LLFデコーダ20へ入力されたリンクレイヤフレームの8ビットのビット列に対してCRC計算式による計算を受信LLFデコーダ20にて行い、CRC計算式による計算にてエラーを検出した場合には、リンクレイヤフレームに含まれるデータが正常でないと判定し(ステップS13:YES)、CRCエラーが発生したことを検出する(ステップS14)。
Next, the
次いで、データ通信装置1は、リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を受信LLFデコーダ20にて行う(ステップS15)。データ通信装置1は、セレクタ17からFIFO19を介して受信LLFデコーダ20へ入力されたリンクレイヤフレームの8ビットのビット列を判定し、受信ヘッダの条件と異なるリンクレイヤフレームの受信を検出した場合には、リンクレイヤフレームの構成及び内容が正常でないと判定し(ステップS15:YES)、フォームエラーが発生したことを検出する(ステップS16)。
Next, the
次いで、データ通信装置1は、リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を送受信シーケンサ10にて行う(ステップS17)。データ通信装置1は、正常シーケンスと異なるリンクレイヤフレームの受信を検出した場合には、リンクレイヤフレームのビット列の並びが正常でないと判定し(ステップS17:YES)、ステートエラーが発生したことを検出する(ステップS18)。
Next, the
最後に、データ通信装置1は、ACKフレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を送受信シーケンサ10にて行う(ステップS19)。データ通信装置1は、データフレーム、バーストフレーム、コマンドフレームを送信した後に、その送信したデータフレーム、バーストフレーム、コマンドフレームに対するレスポンス(ACKフレーム)を、データフレーム、バーストフレーム、コマンドフレームの送信時を基準時点として所定時間内に検出しなかった場合には、ACKフレームを所定時間内に正常に受信しなかったと判定し(ステップS19:YES)、タイムアウトエラーが発生したことを検出する(ステップS20)。このように、データ通信装置1は、データ受信時にはコーディングエラー検出、CRCエラー検出、フォームエラー検出、ステートエラー検出及びタイムアウトエラー検出を順次行う。
Finally, the
図10は、上記したエラーの種別、検出ノード(送信ノード又は受信ノード)及びエラーの内容を対応付けて示す。尚、送信ノードとは送信フレームを送信するデータ通信装置1であり、受信ノードとは受信フレームを受信するデータ通信装置1である。
FIG. 10 shows the above-described error types, detection nodes (transmission nodes or reception nodes), and error contents in association with each other. The transmission node is a
次に、バーストフレームを受信した場合に、単位データ部の一部にCRCエラーが検出された場合の処理について図11及び図12を参照して説明する。図11(a)に示すように、冒頭から2つ目の単位データ部であるDATA2についてCRC2によりエラーが検出された場合には、受信側は送信側に対してDATA2だけ再送を要求する。図12は、再送処理シーケンスを示しているが、(1)送信側が12ビットIDバーストフレームを送信し、(2)受信側が、前記フレームを受信してACKフレームを返信する。そして、受信側は各CRC符号を用いてエラーチェックを行い、DATA2についてエラーが検出されると、(3)送信側にDATA2の再送を要求するフレームを送信する。送信側は、上記再送要求フレームを受信すると(4)DATA2部分を再送し、(5)受信側が、再送されたデータを受信するとACKフレームを返信する。そして、受信側は再送されたDATA2について再度エラーチェックを行う。 Next, processing when a CRC error is detected in a part of the unit data portion when a burst frame is received will be described with reference to FIGS. As shown in FIG. 11A, when an error is detected by CRC2 for DATA2, which is the second unit data portion from the beginning, the receiving side requests retransmission of DATA2 from the transmitting side. FIG. 12 shows a retransmission processing sequence. (1) The transmitting side transmits a 12-bit ID burst frame, and (2) the receiving side receives the frame and returns an ACK frame. Then, the receiving side performs error checking using each CRC code, and when an error is detected for DATA2, (3) a frame requesting retransmission of DATA2 is transmitted to the transmitting side. When the transmission side receives the retransmission request frame, (4) retransmits the DATA2 portion, and (5) when the reception side receives the retransmitted data, it returns an ACK frame. Then, the receiving side performs error check again on the retransmitted DATA2.
図11(b)は、上記(4)において送信側が再送する通信フレームを示しており、(a)と同様のヘッダ部分に、DATA2及びCRC2を付加したものとなっている。尚、この場合の識別子については、(a)と同様のバースト送信を示すものであっても、ヘッダを含む一部のデータの再送を示すものであっても何れでも良い。また、図11(c)は、128ビットのDATA2を64ビットずつ2つの通信フレームに分割して2回再送する場合を示している。 FIG. 11B shows a communication frame to be retransmitted by the transmission side in the above (4), in which DATA2 and CRC2 are added to the same header portion as in (a). The identifier in this case may be either the same burst transmission as in (a) or the retransmission of a part of data including the header. FIG. 11C shows a case where 128-bit DATA2 is divided into two communication frames of 64 bits and retransmitted twice.
以上に説明したように本実施例によれば、制御コードを含むヘッダと、送信データからなるデータ部と、CRC符号からなる誤り検出部とからなる通信フレームを用いて通信を行う。そして、送信側が、誤り検出部に、ヘッダについて誤り検出を行うための制御用誤り検出符号を含ませて送信を行うと、受信側は、制御用誤り検出符号に基づいてヘッダの誤り検出を行うので、ヘッダについても誤りが発生しているか否かをCRC符号に基づいて検出することができる。
また、送信側は、データ部を、所定のビット数(例えば16バイト)を単位とする複数の単位データ部に分割し、データ部について誤り検出を行う誤り検出部を、複数の単位データ部に対応して複数設ける。そして、受信側は、複数の単位データ部毎に誤り検出を行う。したがって、バースト送信フレームについて単位データ部毎に誤りを検出できる。
As described above, according to the present embodiment, communication is performed using a communication frame including a header including a control code, a data portion including transmission data, and an error detection unit including a CRC code. Then, when the transmission side performs transmission by including a control error detection code for performing error detection on the header in the error detection unit, the reception side performs header error detection based on the control error detection code. Therefore, whether or not an error has occurred in the header can be detected based on the CRC code.
Further, the transmission side divides the data part into a plurality of unit data parts with a predetermined number of bits (for example, 16 bytes) as a unit, and an error detection part that performs error detection on the data part is divided into a plurality of unit data parts. A plurality are provided correspondingly. Then, the receiving side performs error detection for each of the plurality of unit data parts. Therefore, an error can be detected for each unit data portion in the burst transmission frame.
また、送信側は、誤り検出部において、ヘッダと、それに続く最初の単位データ部とを併せて誤り検出を行うようにCRC符号を生成したので、誤り検出符号のビット数の増大を抑制できる。更に、制御用誤り検出符号と複数の単位データ部毎に付加する誤り検出符号とに同じ種類の誤り検出符号;CRC符号を用いるので、送信側,受信側の処理が簡単になる。
加えて、受信側は、送信側に対してCRC符号により誤りが検出された部分について再送信を要求し、送信側は、再送信の要求を受信すると要求された部分を再送信する。したがって、1回で送信される通信フレームが長いバースト送信の場合でも、要求された単位データ部だけを再送信できるので、通信効率が向上する。
Further, since the transmission side generates the CRC code so that the error detection unit performs error detection in combination with the header and the first unit data part that follows, the increase in the number of bits of the error detection code can be suppressed. Further, since the same type of error detection code; CRC code is used for the control error detection code and the error detection code added for each of the plurality of unit data parts, the processing on the transmission side and the reception side is simplified.
In addition, the receiving side requests the transmitting side to retransmit the portion in which the error is detected by the CRC code, and the transmitting side retransmits the requested portion upon receiving the retransmission request. Therefore, even in the case of burst transmission with a long communication frame transmitted at a time, only the requested unit data part can be retransmitted, so that communication efficiency is improved.
また、送信側は、通信フレームをリンクレイヤフレームとして4B5B符号化すると、4B5B符号化したリンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加して物理レイヤフレームを生成し、更にNRZI符号化してから通信路へ送信する際に、ビットエラー検出,フォームエラー検出を行う。一方、受信側は、受信した物理レイヤフレームに対し、コーディングエラー検出,CRC符号を用いた誤り検出,フォームエラー検出,ステートエラー検出を行い、更に送信側はタイムアウトエラー検出を行う。したがって、CRC符号を用いた誤り検出に、その他各種のエラー検出組み合わせることで、通信の信頼性を一層向上させることができる。 In addition, when the transmission side performs 4B5B encoding with the communication frame as a link layer frame, a preamble, a frame start unit, and a frame end unit are added to the 4B5B encoded link layer frame to generate a physical layer frame, and further, NRZI Bit error detection and form error detection are performed when transmitting to the communication channel after encoding. On the other hand, the receiving side performs coding error detection, error detection using a CRC code, form error detection, and state error detection for the received physical layer frame, and the transmission side performs timeout error detection. Therefore, the reliability of communication can be further improved by combining error detection using a CRC code with various other types of error detection.
(第2実施例)
図13ないし図15は第2実施例であり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分について説明する。第2実施例は、誤り検出部におけるCRC符号のビット数を、通信処理中にダイナミックに変更する処理を示す。図13は、前記処理をイメージ的に示しており、例えば外乱が少なくエラー検出回数が少ない通信環境下では、CRC符号のビット数を16ビットにしておく。そして、CRCエラーが頻繁に検出される場合には、CRC符号のビット数を24ビット,32ビットに順次増加させるようにする。
(Second embodiment)
13 to 15 show a second embodiment. The same parts as those in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted. Hereinafter, different parts will be described. The second embodiment shows a process of dynamically changing the number of bits of the CRC code in the error detection unit during the communication process. FIG. 13 conceptually shows the above processing. For example, in a communication environment where there is little disturbance and the number of error detections is small, the number of bits of the CRC code is set to 16 bits. When CRC errors are frequently detected, the number of bits of the CRC code is sequentially increased to 24 bits and 32 bits.
図14は、送信側,受信側の間の処理シーケンスを示しており、図15は、対応するデータ通信装置31の構成を示している。データ通信装置31は、3つのCRC演算器22A〜22Cを備えており、それぞれ16ビット,24ビット,32ビットのCRC符号を生成する。そして、各CRC演算器22A〜22Cより生成出力されるCRC符号はセレクタ23に入力されており、セレクタ23の入力切り替え制御は、送受信シーケンサ33によって行われる。
FIG. 14 shows a processing sequence between the transmission side and the reception side, and FIG. 15 shows a configuration of the corresponding data communication apparatus 31. The data communication device 31 includes three
図14に示すように、送信側は、(1)最初はCRC演算器22Aを使用して16ビットのCRC符号を用いて送信を行う。(2)受信側が、送信されたフレームを受信してACKフレームを返信し、CRC符号を用いてエラーチェックを行い、エラーが検出されると、(3)送信側に24ビットのCRC符号を付したデータの再送を要求するフレームを送信する。送信側は、上記再送要求フレームを受信すると、CRC演算器22Bを使用するように切り替えて、(4)24ビットのCRC符号を付したデータを再送する。
As shown in FIG. 14, the transmission side (1) first performs transmission using a
(5)受信側は、再送されたデータを受信するとACKフレームを返信し、再送され24ビットのCRC符号を用いて再度エラーチェックを行う。そして、エラーが検出されると、(6)今度は送信側に32ビットのCRC符号を付したデータの再送を要求するフレームを送信する。送信側は、上記再送要求フレームを受信すると、CRC演算器22Cを使用するように切り替えて、(7)32ビットのCRC符号を付したデータを再送する。(8)受信側は、再送されたデータを受信するとACKフレームを返信する。
尚、図14に示す例では、CRCエラーが検出されると直ちにCRC符号のビット数増加を要求しているが、勿論これに限ることなく、16ビットのCRC符号を用いた通信における所定時間当たりのCRCエラー検出頻度が所定の閾値を超えた段階でビット数増加を要求すれば良い。
(5) When receiving the retransmitted data, the receiving side returns an ACK frame, and retransmits the error check using a 24-bit CRC code. When an error is detected, (6) this time, a frame requesting retransmission of data with a 32-bit CRC code is transmitted to the transmission side. Upon receiving the retransmission request frame, the transmission side switches to use the CRC calculator 22C, and (7) retransmits the data with the 32-bit CRC code. (8) When receiving the retransmitted data, the receiving side returns an ACK frame.
In the example shown in FIG. 14, when the CRC error is detected, an increase in the number of bits of the CRC code is requested immediately. However, of course, the present invention is not limited to this, and communication per a predetermined time in communication using the 16-bit CRC code is required. It is sufficient to request an increase in the number of bits when the CRC error detection frequency exceeds a predetermined threshold.
以上のように第2実施例によれば、受信側は、再送信の要求頻度の多寡に応じてCRC符号のビット数の変更を送信側に要求し、送信側は、前記要求に応じて誤り検出符号のビット数を変更する。したがって、通信環境に応じて誤り検出の精度を変更することができる。 As described above, according to the second embodiment, the receiving side requests the transmitting side to change the number of bits of the CRC code in accordance with the frequency of retransmission request, and the transmitting side makes an error in response to the request. Change the number of bits of the detection code. Therefore, the accuracy of error detection can be changed according to the communication environment.
本発明は、上記した実施例にのみ限定されるものではなく、以下のように変形又は拡張することができる。
制御用誤り検出符号については、制御情報部のみを対象として符号を作成しても良い。
ステートエラー検出手段、タイムアウトエラー検出手段、ビットエラー検出手段、コーディングエラー検出手段、フォームエラー検出手段については、必要に応じて設ければ良い。
データ通信装置1は、例えば車載系のLANに接続されるノードであっても良いし、車載系のLAN以外のLANに接続されるノードであっても良い。
通信ネットワーク内における通信頻度が最も高いデータフレームが12ビットのID長を有するデータフレームでなく、12ビット以外のID長を有するデータフレームである通信システムに適用しても良い。
通信頻度が2番目に高いフレームがACKフレームでなく、コマンドフレームである通信システムに適用しても良い。
The present invention is not limited to the above-described embodiments, and can be modified or expanded as follows.
As for the error detection code for control, a code may be created only for the control information part.
The state error detection means, timeout error detection means, bit error detection means, coding error detection means, and form error detection means may be provided as necessary.
The
The present invention may be applied to a communication system in which the data frame having the highest communication frequency in the communication network is not a data frame having an ID length of 12 bits but a data frame having an ID length other than 12 bits.
The present invention may be applied to a communication system in which the frame with the second highest communication frequency is not an ACK frame but a command frame.
図面中、1はデータ通信装置(送信器,受信器)、10は送受信シーケンサ(ステートエラー検出手段、タイムアウトエラー検出手段)、11はビットエラー検出部(ビットエラー検出手段)、16は4B5Bデコーダ(コーディングエラー検出手段)、20は受信LLFデコーダ(フォームエラー検出手段、符号誤り検出手段)である。
In the drawings, 1 is a data communication device (transmitter, receiver), 10 is a transmission / reception sequencer (state error detection means, timeout error detection means), 11 is a bit error detection unit (bit error detection means), and 16 is a 4B5B decoder (
Claims (14)
送信側が、前記誤り検出部に、前記制御情報部について誤り検出を行うための制御用誤り検出符号を含ませて送信を行うと、
受信側は、前記制御用誤り検出符号に基づいて前記制御情報部の誤り検出を行うことを特徴とするデータ通信方法。 In a data communication method for performing communication using a communication frame including a control information unit including at least a control code, a data unit including transmission data, and an error detection unit including an error detection code,
When the transmission side performs transmission by including a control error detection code for performing error detection on the control information unit in the error detection unit,
The data communication method characterized in that the receiving side performs error detection of the control information section based on the control error detection code.
前記受信側は、前記複数の単位データ部毎に誤り検出を行うことを特徴とする請求項1記載のデータ通信方法。 The transmission side divides the data part into a plurality of unit data parts with a predetermined number of bits as units, and an error detection unit that performs error detection on the data part corresponds to the plurality of unit data parts. Multiple
The data communication method according to claim 1, wherein the receiving side performs error detection for each of the plurality of unit data parts.
前記送信側は、前記再送信の要求を受信すると、要求された部分を再送信することを特徴とする請求項2ないし4の何れかに記載のデータ通信方法。 The receiving side requests the transmitting side to retransmit a portion in which an error is detected by the error detecting code,
5. The data communication method according to claim 2, wherein the transmission side retransmits the requested portion when receiving the retransmission request. 6.
前記送信側は、前記要求に応じて誤り検出符号のビット数を変更することを特徴とする請求項5記載のデータ通信方法。 The receiving side requests the transmitting side to change the number of bits of the error detection code according to the frequency of the request for retransmission,
6. The data communication method according to claim 5, wherein the transmission side changes the number of bits of the error detection code in response to the request.
その4B5B符号化したリンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加して物理レイヤフレームを生成し、
その生成した物理レイヤフレームをNRZI(Non Return to Zero Inversion)符号化し、そのNRZI符号化した物理レイヤフレームを送信フレームとして通信路へ送信する際に、送信データが正常であるか否かを判定するビットエラー検出を行い、
前記リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行い、
前記受信側は、前記物理レイヤフレームを受信すると、その受信した物理レイヤフレームに対し、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を行い、
前記誤り検出符号を用いて、前記リンクレイヤフレームに含まれる前記制御情報部及び前記データ部が正常であるか否かを判定する誤り検出を行い、
前記リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行い、
前記リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を行い、
前記送信側は、前記受信側よりACK(ACKnowledgement)フレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を行うことを特徴とする請求項1ないし6の何れかに記載のデータ通信方法。 The transmission side performs 4B5B encoding of the communication frame as a link layer frame,
A physical layer frame is generated by adding a preamble, a frame start portion and a frame end portion to the 4B5B encoded link layer frame,
The generated physical layer frame is encoded with NRZI (Non Return to Zero Inversion), and when the NRZI encoded physical layer frame is transmitted as a transmission frame to the communication path, it is determined whether or not the transmission data is normal. Bit error detection,
Perform form error detection to determine whether the configuration and content of the link layer frame is normal,
When the receiving side receives the physical layer frame, the receiving side performs coding error detection for determining whether or not 4B5B encoding is normal for the received physical layer frame,
Using the error detection code, performing error detection to determine whether the control information part and the data part included in the link layer frame are normal,
Perform form error detection to determine whether the configuration and content of the link layer frame is normal,
Performing a state error detection to determine whether the bit sequence of the link layer frame is normal,
The said transmission side performs the timeout error detection which determines whether the ACK (ACKnowledgement) frame was normally received within the predetermined time from the said receiving side, The one of Claim 1 thru | or 6 characterized by the above-mentioned. Data communication method.
前記送信器は、前記制御情報部について誤り検出を行うための制御用誤り検出符号を生成する制御用誤り検出符号生成部を備え、前記誤り検出部に前記制御用誤り検出符号を含ませて送信を行い、
前記受信器は、前記通信フレームを受信すると、前記制御用誤り検出符号に基づいて前記制御情報部の誤り検出を行うことを特徴とするデータ通信システム。 When the transmitter transmits a communication frame including a control information unit including at least a control code, a data unit including transmission data, and an error detection unit including an error detection code, and when a receiver receives the communication frame, In a data communication system that performs error detection in a communication frame using an error detection code,
The transmitter includes a control error detection code generation unit that generates a control error detection code for performing error detection on the control information unit, and transmits the error detection unit including the control error detection code. And
When the receiver receives the communication frame, the receiver performs error detection of the control information unit based on the control error detection code.
前記受信器は、前記複数の単位データ部毎に誤り検出を行うことを特徴とする請求項8記載のデータ通信システム。 The transmitter divides the data part into a plurality of unit data parts each having a predetermined number of bits, and an error detection unit that performs error detection on the data part corresponds to the plurality of unit data parts. Generate to provide multiple,
9. The data communication system according to claim 8, wherein the receiver performs error detection for each of the plurality of unit data parts.
前記送信器は、前記再送信の要求を受信すると、要求された部分を再送信することを特徴とする請求9ないし11の何れかに記載のデータ通信システム。 The receiver requests the transmitter to retransmit a portion in which an error is detected by the error detection code,
12. The data communication system according to claim 9, wherein when the transmitter receives the retransmission request, the transmitter retransmits the requested portion.
前記送信器は、前記要求に応じて誤り検出符号のビット数を変更することを特徴とする請求項12記載のデータ通信システム。 The receiver requests the transmitter to change the number of bits of the error detection code according to the frequency of the retransmission request,
13. The data communication system according to claim 12, wherein the transmitter changes the number of bits of the error detection code according to the request.
送信データが正常であるか否かを判定するビットエラー検出を行うビットエラー検出手段と、
リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行うフォームエラー検出手段と、
ACK(ACKnowledgement)フレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を行うタイムアウトエラー検出手段とを備え、
前記受信器は、通信路から受信フレームとして受信した物理レイヤフレームに対し、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を行うコーディングエラー検出手段と、
前記誤り検出符号を用いて、リンクレイヤフレームに含まれる制御情報及びデータが正常であるか否かを判定する符号誤り検出手段と、
リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行うフォームエラー検出手段と、
リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を行うステートエラー検出手段とを備えたことを特徴とする請求項8ないし13の何れかに記載のデータ通信システム。 The transmitter 4B5B encodes a link layer frame including data, generates a physical layer frame by adding a preamble, a frame start part, and a frame end part to the 4B5B encoded link layer frame. The physical layer frame is NRZI (Non Return to Zero Inversion) encoded, the NRZI encoded physical layer frame is transmitted as a transmission frame to the communication path,
Bit error detection means for performing bit error detection for determining whether transmission data is normal;
Form error detection means for performing form error detection for determining whether the configuration and contents of the link layer frame are normal;
Timeout error detection means for performing timeout error detection for determining whether or not an ACK (ACKnowledgement) frame is normally received within a predetermined time;
The receiver comprises coding error detection means for performing coding error detection for determining whether or not 4B5B encoding is normal for a physical layer frame received as a received frame from a communication path;
Code error detection means for determining whether or not the control information and data included in the link layer frame are normal using the error detection code;
Form error detection means for performing form error detection for determining whether the configuration and contents of the link layer frame are normal;
The data communication system according to any one of claims 8 to 13, further comprising state error detection means for performing state error detection for determining whether or not the arrangement of bit strings in the link layer frame is normal.
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011195037A JP2013058845A (en) | 2011-09-07 | 2011-09-07 | Data communication method and data communication system |
US13/494,166 US9577788B2 (en) | 2011-06-15 | 2012-06-12 | Coding apparatus, coding method, data communication apparatus, and data communication method |
CN201210201494.0A CN102833036B (en) | 2011-06-15 | 2012-06-15 | Encoding device, coded method, data communications equipment and data communications method |
CN201410779762.6A CN104506276A (en) | 2011-06-15 | 2012-06-15 | Coding Apparatus, Coding Method, Data Communication Apparatus, and Data Communication Method |
CN201410779763.0A CN104410478A (en) | 2011-06-15 | 2012-06-15 | Coding apparatus, coding method, data communication apparatus, and data communication method |
DE102012210119.5A DE102012210119B4 (en) | 2011-06-15 | 2012-06-15 | Coding device and coding method |
US14/749,800 US20150295678A1 (en) | 2011-06-15 | 2015-06-25 | Coding apparatus, coding method, data communication apparatus, and data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011195037A JP2013058845A (en) | 2011-09-07 | 2011-09-07 | Data communication method and data communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013058845A true JP2013058845A (en) | 2013-03-28 |
Family
ID=48134357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011195037A Pending JP2013058845A (en) | 2011-06-15 | 2011-09-07 | Data communication method and data communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013058845A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016087324A (en) * | 2014-11-11 | 2016-05-23 | 株式会社オリンピア | Game machine |
JP2016181756A (en) * | 2015-03-23 | 2016-10-13 | ラピスセミコンダクタ株式会社 | Semiconductor device and data transmitting/receiving method |
CN110875797A (en) * | 2018-08-31 | 2020-03-10 | 百度在线网络技术(北京)有限公司 | Data transmission method, device and equipment for intelligently driving automobile |
WO2021205910A1 (en) * | 2020-04-09 | 2021-10-14 | ミネベアミツミ株式会社 | Checksum addition method, checksum addition device, and sensor system |
CN113994719A (en) * | 2019-06-07 | 2022-01-28 | 梭纳斯株式会社 | Communication system, communication method, and communication device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61195453A (en) * | 1985-02-22 | 1986-08-29 | ローベルト・ボツシユ・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング | Operation of data processor for vehicle |
JP2711731B2 (en) * | 1989-09-19 | 1998-02-10 | 日本電信電話株式会社 | Signal transmission method |
JPH10233700A (en) * | 1997-02-20 | 1998-09-02 | Oki Electric Ind Co Ltd | Crc error check method, crc error check system, monitor control method and monitor control system |
JPH1132077A (en) * | 1997-07-10 | 1999-02-02 | Mitsubishi Electric Corp | Transmission controller, reception controller, system and method for controlling communication |
JP2000151747A (en) * | 1998-11-10 | 2000-05-30 | Sony Corp | Data processing circuit, data transmission system and method for the same |
JP2003500899A (en) * | 1999-05-19 | 2003-01-07 | サン・マイクロシステムズ・インコーポレイテッド | Method and apparatus for multiple gigabit ethernet architecture |
JP2008147960A (en) * | 2006-12-08 | 2008-06-26 | Fujitsu Ltd | Transmission apparatus, reception apparatus and data transmission method |
WO2009008062A1 (en) * | 2007-07-10 | 2009-01-15 | Mitsubishi Electric Corporation | Transmitter apparatus and communication system |
JP2009202720A (en) * | 2008-02-27 | 2009-09-10 | Toyota Motor Corp | Communication system, its abnormality presumption method, and information reading device |
-
2011
- 2011-09-07 JP JP2011195037A patent/JP2013058845A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61195453A (en) * | 1985-02-22 | 1986-08-29 | ローベルト・ボツシユ・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング | Operation of data processor for vehicle |
JP2711731B2 (en) * | 1989-09-19 | 1998-02-10 | 日本電信電話株式会社 | Signal transmission method |
JPH10233700A (en) * | 1997-02-20 | 1998-09-02 | Oki Electric Ind Co Ltd | Crc error check method, crc error check system, monitor control method and monitor control system |
JPH1132077A (en) * | 1997-07-10 | 1999-02-02 | Mitsubishi Electric Corp | Transmission controller, reception controller, system and method for controlling communication |
JP2000151747A (en) * | 1998-11-10 | 2000-05-30 | Sony Corp | Data processing circuit, data transmission system and method for the same |
JP2003500899A (en) * | 1999-05-19 | 2003-01-07 | サン・マイクロシステムズ・インコーポレイテッド | Method and apparatus for multiple gigabit ethernet architecture |
JP2008147960A (en) * | 2006-12-08 | 2008-06-26 | Fujitsu Ltd | Transmission apparatus, reception apparatus and data transmission method |
WO2009008062A1 (en) * | 2007-07-10 | 2009-01-15 | Mitsubishi Electric Corporation | Transmitter apparatus and communication system |
JP2009202720A (en) * | 2008-02-27 | 2009-09-10 | Toyota Motor Corp | Communication system, its abnormality presumption method, and information reading device |
Non-Patent Citations (1)
Title |
---|
JPN6013036784; RAJ JAIN: 'Error characteristics of fiber distributed data interface (FDDI)' Communications, IEEE Transactions on Volume:38 , Issue: 8, 199008, p.1244-1252 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016087324A (en) * | 2014-11-11 | 2016-05-23 | 株式会社オリンピア | Game machine |
JP2016181756A (en) * | 2015-03-23 | 2016-10-13 | ラピスセミコンダクタ株式会社 | Semiconductor device and data transmitting/receiving method |
CN110875797A (en) * | 2018-08-31 | 2020-03-10 | 百度在线网络技术(北京)有限公司 | Data transmission method, device and equipment for intelligently driving automobile |
JP2020039115A (en) * | 2018-08-31 | 2020-03-12 | バイドゥ オンライン ネットワーク テクノロジー (ベイジン) カンパニー リミテッド | Method, equipment and device for transmitting data of intelligent driving car |
US11374688B2 (en) | 2018-08-31 | 2022-06-28 | Apollo Intelligent Driving Technology (Beijing) Co., Ltd. | Data transmission method and device for intelligent driving vehicle, and device |
CN110875797B (en) * | 2018-08-31 | 2022-11-08 | 阿波罗智能技术(北京)有限公司 | Data transmission method, device and equipment for intelligently driving automobile |
CN113994719A (en) * | 2019-06-07 | 2022-01-28 | 梭纳斯株式会社 | Communication system, communication method, and communication device |
CN113994719B (en) * | 2019-06-07 | 2024-04-02 | 梭纳斯株式会社 | Communication system, communication method, and communication device |
WO2021205910A1 (en) * | 2020-04-09 | 2021-10-14 | ミネベアミツミ株式会社 | Checksum addition method, checksum addition device, and sensor system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9577788B2 (en) | Coding apparatus, coding method, data communication apparatus, and data communication method | |
JP4703310B2 (en) | Communication method and communication system | |
US8745469B2 (en) | Signal segmentation method and CRC attachment method for reducing undetected error | |
US7296211B2 (en) | System and method for transferring data on a data link | |
TWI459774B (en) | Asynchronous master-slave serial communication systam, data transmission method, and control module using the same thereof | |
WO2006096879A1 (en) | System and method for tolerating communication lane failures | |
JP2013058845A (en) | Data communication method and data communication system | |
US9979566B2 (en) | Hybrid forward error correction and replay technique for low latency | |
JP2012222809A (en) | Method of reducing retransmission of data frame and receiving node therefor | |
WO2016142193A1 (en) | Apparatus and method for transmitting and receiving redundancy information of a first packet in a second packet | |
JP4079940B2 (en) | Data transmission method and method | |
CN109428676B (en) | Method and device for synchronizing forward error correction coding and decoding modes | |
JP2012124615A (en) | Code generation device and code generation method, code check device and code check method, computer program, and communication device | |
WO2002093820A1 (en) | Communicating method, transmitting apparatus, receiving apparatus, and communicating system including them | |
JPH02170647A (en) | Method and device for transmitting and receiving character by using balance weight error correction sign | |
US10057017B2 (en) | Data forwarding with speculative error correction | |
KR20230050256A (en) | Data encoding method, encoder, and data decoding method | |
US7940860B2 (en) | Communication system | |
KR102066210B1 (en) | Method for transmitting and receiving foward error correction according to best nework quality using machine learning | |
Juan et al. | FPGA implementation of hamming code for increasing the frame rate of CAN communication | |
JP5532030B2 (en) | Data communication method and data communication apparatus | |
JP5445526B2 (en) | Data communication method and data communication apparatus | |
US20090150727A1 (en) | Data transmission method | |
WO2003105392A1 (en) | Methods for use with timeslot identifiers in a timeslot-based protocol and apparatus | |
CN105337830B (en) | Data transmission network and data transmission method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130719 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130730 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130912 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20131210 |