JP5532030B2 - Data communication method and data communication apparatus - Google Patents

Data communication method and data communication apparatus Download PDF

Info

Publication number
JP5532030B2
JP5532030B2 JP2011195036A JP2011195036A JP5532030B2 JP 5532030 B2 JP5532030 B2 JP 5532030B2 JP 2011195036 A JP2011195036 A JP 2011195036A JP 2011195036 A JP2011195036 A JP 2011195036A JP 5532030 B2 JP5532030 B2 JP 5532030B2
Authority
JP
Japan
Prior art keywords
layer frame
frame
error detection
data
physical layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011195036A
Other languages
Japanese (ja)
Other versions
JP2013058844A (en
Inventor
雅能 寺部
基 市橋
尚樹 杉山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2011195036A priority Critical patent/JP5532030B2/en
Priority to US13/494,166 priority patent/US9577788B2/en
Priority to CN201410779762.6A priority patent/CN104506276A/en
Priority to CN201210201494.0A priority patent/CN102833036B/en
Priority to CN201410779763.0A priority patent/CN104410478A/en
Priority to DE102012210119.5A priority patent/DE102012210119B4/en
Publication of JP2013058844A publication Critical patent/JP2013058844A/en
Application granted granted Critical
Publication of JP5532030B2 publication Critical patent/JP5532030B2/en
Priority to US14/749,800 priority patent/US20150295678A1/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Description

本発明は、データを含むフレームを通信するデータ通信方法及びデータ通信装置に関する。   The present invention relates to a data communication method and a data communication apparatus for communicating a frame including data.

従来より、高い信頼性が要求される車載系のLAN(Local Area Network)として例えばCAN(Controller Area Network)が広く普及している(例えば特許文献1参照)。CANでは、データ通信速度が500k[bps]以下において、スタッフエラー検出、ビットエラー検出、フォームエラー検出、アクノリッジエラー検出及びCRC(cyclic redundancy check)(巡回冗長検査)エラー検出等により信頼性を確保している。   Conventionally, CAN (Controller Area Network), for example, has been widely used as an in-vehicle LAN (Local Area Network) that requires high reliability (see, for example, Patent Document 1). In CAN, reliability is ensured by detecting stuff error, bit error, form error, acknowledge error, CRC (cyclic redundancy check) error, etc. at data communication speeds of 500 kbps or less. ing.

特許第2546608号公報Japanese Patent No. 2546608

近年では通信システムの高度化により、データ通信速度の高速化(数百M[bps]以上)且つ高い信頼性が要求される傾向にあり、データ通信速度の高速化に必要な非衝突やクロック再生の通信システムとした場合に、CANではフレーム構成の違いから十分な信頼性を確保することができなくなるという問題がある。   In recent years, with the advancement of communication systems, high data communication speed (several hundred M [bps]) and high reliability tend to be required, and non-collision and clock recovery necessary for high data communication speed are required. When the communication system is used, CAN has a problem that sufficient reliability cannot be ensured due to a difference in frame configuration.

本発明は、上記した事情に鑑みてなされたものであり、その目的は、データ通信速度を高速化しつつ、高い信頼性を確保することができるデータ通信方法及びデータ通信装置を提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a data communication method and a data communication apparatus that can ensure high reliability while increasing the data communication speed. .

請求項1及び2に記載した発明によれば、データを含むリンクレイヤフレームを4B5B符号化し、その4B5B符号化したリンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加して物理レイヤフレームを生成し、その生成した物理レイヤフレームをNRZI(Non Return to Zero Inversion)符号化し、そのNRZI符号化した物理レイヤフレームを送信フレームとして通信路へ送信する際に、物理レイヤフレームをパラレル/シリアル変換及びNRZI変換する前のデータと、通信路から受信したNRZI符号の物理レイヤフレームをSFDの検出及びシリアル/パラレル変換した後のデータとを照合することにより、送信データが正常であるか否かを判定するビットエラー検出を行い、通信路から受信フレームとして物理レイヤフレームを受信した際に、その受信した物理レイヤフレームに対し、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を行い、リンクレイヤフレームに含まれるデータが正常であるか否かを判定するCRC(Cyclic Redundancy Check)エラー検出を行い、リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行い、リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を行い、ACK(ACKnowledgement)フレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を行うように構成した。
According to the first and second aspects of the present invention, a link layer frame including data is 4B5B-encoded, and a preamble, a frame start unit, and a frame end unit are added to the 4B5B-encoded link layer frame to add a physical layer. When generating a frame, encoding the generated physical layer frame with NRZI (Non Return to Zero Inversion), and transmitting the NRZI-coded physical layer frame as a transmission frame to the communication path, the physical layer frame is parallel / serial. Whether the transmission data is normal by collating the data before conversion and NRZI conversion with the data after SFD detection and serial / parallel conversion of the physical layer frame of the NRZI code received from the communication path Bit error detection is performed to determine the received frame from the When a physical layer frame is received, coding error detection is performed to determine whether 4B5B encoding is normal for the received physical layer frame, and whether the data included in the link layer frame is normal CRC (Cyclic Redundancy Check) error detection is performed, form error detection is performed to determine whether the configuration and contents of the link layer frame are normal, and the bit sequence of the link layer frame is normal State error detection is performed to determine whether or not an ACK (ACKnowledgement) frame is normally received within a predetermined time, and timeout error detection is performed to determine whether or not the frame has been normally received within a predetermined time.

これにより、非衝突を実現するためのACKフレームによるハンドシェイク通信方式を採用すると共に、リンクレイヤフレームを4B5B符号化し、リンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加し、物理レイヤフレームをNRZI符号化するというクロック再生要件を追加することで、データ通信速度を高速化することができる。又、送信フレームを通信路へ送信する際には、ビットエラー検出を行い、通信路から受信フレームを受信した際には、コーディングエラー検出、CRCエラー検出、フォームエラー検出、ステートエラー検出及びタイムアウトエラー検出を行うことで、高い信頼性を確保することができる。   As a result, a handshake communication method using an ACK frame for realizing non-collision is adopted, a link layer frame is 4B5B encoded, a preamble, a frame start part and a frame end part are added to the link layer frame, The data communication speed can be increased by adding the clock recovery requirement that the layer frame is NRZI encoded. Also, when transmitting a transmission frame to the communication path, bit error detection is performed. When a reception frame is received from the communication path, coding error detection, CRC error detection, form error detection, state error detection, and timeout error are detected. By performing detection, high reliability can be ensured.

本発明の一実施形態を示す機能ブロック図Functional block diagram showing an embodiment of the present invention リンクレイヤフレーム及び物理レイヤフレームの各々のフレーム構成を示す図The figure which shows each frame structure of a link layer frame and a physical layer frame 機能の階層構造を示す図Diagram showing function hierarchy OSI参照モデルとの対比を示す図Diagram showing comparison with OSI reference model データ送信時エラー検出処理を示すフローチャートFlow chart showing error detection processing during data transmission データ受信時エラー検出処理を示すフローチャートFlow chart showing error detection process at data reception エラーの種別、検出モード及びエラーの内容を示す図Diagram showing error type, detection mode, and error content

以下、本発明の一実施形態について、図面を参照して説明する。図1は、データ通信装置の構成を示す機能ブロック図である。データ通信装置1は、送信系の機能ブロックとして、送信LLF(Link Layer Frame)エンコーダ2と、FIFO(First In First Out)3と、4B5Bエンコーダ4と、5Nビットコマンドエンコーダ5と、制御回路6と、セレクタ7と、シリアライザ8と、NRZIエンコーダ9とを有する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a functional block diagram showing the configuration of the data communication apparatus. The data communication apparatus 1 includes a transmission LLF (Link Layer Frame) encoder 2, a FIFO (First In First Out) 3, a 4B5B encoder 4, a 5N-bit command encoder 5, and a control circuit 6 as transmission system functional blocks. , Selector 7, serializer 8, and NRZI encoder 9.

送信LLFエンコーダ2は、送受信シーケンサ10(本発明でいうステートエラー検出手段、タイムアウトエラー検出手段に相当)から送信データを入力すると、フレームを識別(特定)するための識別子と、データのライト又はリードを示すリモートと、データの長さを示すサイズと、アクセスするアドレス空間を示すIDと、データ(送信データ)と、CRCとを含むリンクレイヤフレーム(LLF(Link Layer Frame))を生成してFIFO3を介して4B5Bエンコーダ4及び5Nビットコマンドエンコーダ5へ出力する。   The transmission LLF encoder 2 receives transmission data from the transmission / reception sequencer 10 (corresponding to state error detection means and timeout error detection means in the present invention), an identifier for identifying (specifying) a frame, and data writing or reading. A link layer frame (LLF (Link Layer Frame)) including a remote indicating the ID, a size indicating the length of the data, an ID indicating the address space to be accessed, data (transmission data), and a CRC is generated to generate a FIFO 3 To the 4B5B encoder 4 and the 5N-bit command encoder 5.

4B5Bエンコーダ4は、送信LLFエンコーダ2からFIFO3を介してリンクレイヤフレームを8ビットのビット列により入力すると、その8ビットのビット列を構成する上位の4ビットのビット列及び下位の4ビットのビット列の各々を4B5B符号化テーブル(図示せず)にしたがって5ビットのビット列に変換し、10ビットのビット列を生成してセレクタ7へ出力する。この場合、4B5Bエンコーダ4は、4ビットのビット列を「0」が3ビット以上連続しないように5ビットのビット列に変換する。   When the 4B5B encoder 4 inputs the link layer frame from the transmission LLF encoder 2 via the FIFO 3 as an 8-bit bit string, each of the upper 4-bit bit string and the lower 4-bit bit string constituting the 8-bit bit string is received. A 5-bit bit string is converted according to a 4B5B encoding table (not shown), and a 10-bit bit string is generated and output to the selector 7. In this case, the 4B5B encoder 4 converts the 4-bit bit string into a 5-bit bit string so that “0” does not continue for 3 bits or more.

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 transmission LLF encoder 2 via the FIFO 3, the 5N-bit command encoder 5 receives a preamble (Preamble) that is a synchronization bit string and an SFD (Start Frame Delimiter) for detecting the head of the link layer frame. (Frame start part) and EFD (End Frame Delimiter) (frame end part) for detecting the end of the link layer frame are generated and output to the control circuit 6 and the selector 7.

セレクタ7は、4B5Bエンコーダ4から10ビットのビット列を入力し、5Nビットコマンドエンコーダ5からプリアンブル、SFD及びEFDを入力すると、制御回路6から入力する制御指令にしたがって10ビットのビット列にプリアンブル、SFD及びEFDを付加して物理レイヤフレーム(PLF(Physical Layer Frame))を生成してシリアライザ8及びビットエラー検出部(データ比較部)11(本発明でいうビットエラー検出手段に相当)へ出力する。   The selector 7 inputs a 10-bit bit string from the 4B5B encoder 4 and inputs a preamble, SFD, and EFD from the 5N-bit command encoder 5, and then, according to a control command input from the control circuit 6, the preamble, SFD, The EFD is added to generate a physical layer frame (PLF (Physical Layer Frame)) and output to the serializer 8 and the bit error detection unit (data comparison unit) 11 (corresponding to the bit error detection means in the present invention).

シリアライザ8は、セレクタ7から物理レイヤフレームを入力すると、その物理レイヤフレームをパラレル/シリアル変換してNRZIエンコーダ9へ出力する。NRZIエンコーダ9は、シリアライザ8からパラレル/シリアル変換された物理レイヤフレームを入力すると、その物理レイヤフレームをNRZI符号にエンコードして送信端子から送信フレームとして通信路へ送信する。   When the physical layer frame is input from the selector 7, the serializer 8 performs parallel / serial conversion on the physical layer frame and outputs it to the NRZI encoder 9. When the NRZI encoder 9 receives a physical / layer-converted physical layer frame from the serializer 8, the NRZI encoder 9 encodes the physical layer frame into an NRZI code and transmits it as a transmission frame from the transmission terminal to the communication path.

一方、データ通信装置1は、受信系の機能ブロックとして、クロック再生部12と、NRZIデコーダ13と、SFD(Start Frame Delimiter)検出部14と、デシリアライザ15と、4B5Bデコーダ16(本発明でいうコーディングエラー検出手段に相当)と、セレクタ17と、制御回路18と、FIFO19と、受信LLFデコーダ20(本発明でいうフォームエラー検出手段、CRCエラー検出手段に相当)とを有する。   On the other hand, the data communication apparatus 1 includes a clock recovery unit 12, an NRZI decoder 13, an SFD (Start Frame Delimiter) detection unit 14, a deserializer 15, and a 4B5B decoder 16 (coding in the present invention) as reception-system functional blocks. Error detection means), a selector 17, a control circuit 18, a FIFO 19, and a reception LLF decoder 20 (corresponding to form error detection means and CRC error detection means in the present invention).

クロック再生部12は、通信路から受信フレームとして受信したNRZI符号の物理レイヤフレームからクロック成分を抽出してクロック信号を再生し、その再生したクロック信号を各機能ブロックへ供給する。NRZIデコーダ13は、通信路から受信フレームとして受信したNRZI符号の物理レイヤフレームをデコードしてSFD検出部14へ出力する。   The clock recovery unit 12 extracts a clock component from the physical layer frame of the NRZI code received as a reception frame from the communication path, recovers the clock signal, and supplies the recovered clock signal to each functional block. The NRZI decoder 13 decodes the physical layer frame of the NRZI code received as a received frame from the communication path, and outputs the decoded frame to the SFD detection unit 14.

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 NRZI decoder 13, the SFD detection unit 14 detects the SFD included in the physical layer frame, detects the head of the link layer frame, and outputs the link layer frame to the deserializer 15. When receiving the link layer frame from the SFD detection unit 14, the deserializer 15 performs serial / parallel conversion on the bit string of the link layer frame and outputs the bit sequence to the 4B5B decoder 16 and the bit error detection unit 11. The 4B5B decoder 16 reverse-converts the 10-bit bit string of the link layer frame serial / parallel converted from the deserializer 15 into an 8-bit bit string in accordance with a 4B5B encoding table (not shown), and sends it to the selector 17 and the control circuit 18. Output.

セレクタ17は、4B5Bデコーダ16からリンクレイヤフレームの8ビットのビット列を入力すると、制御回路18から入力する制御指令にしたがってFIFO19を介して受信LLFデコーダ20へ出力する。受信LLFデコーダ20は、セレクタ17からFIFO19を介してリンクレイヤフレームの8ビットのビット列を入力すると、そのリンクレイヤフレームの8ビットのビット列を送受信シーケンサ10へ出力する。   When the selector 17 receives the 8-bit bit string of the link layer frame from the 4B5B decoder 16, the selector 17 outputs the link layer frame to the reception LLF decoder 20 via the FIFO 19 in accordance with a control command input from the control circuit 18. When receiving the 8-bit bit string of the link layer frame from the selector 17 via the FIFO 19, the reception LLF decoder 20 outputs the 8-bit bit string of the link layer frame to the transmission / reception sequencer 10.

上記したリンクレイヤフレームのフレーム構成と物理レイヤフレームのフレーム構成とは、図2に示すような対応関係となっている。又、データ通信装置1は、図3に示すように、その機能を階層構造に分割すると、物理レイヤ、リンクレイヤ、API(Application Program Interface)レイヤに分割することができ、物理レイヤは送信(TX)制御を行う機能部と受信(RX)制御を行う機能部とに分割することができる。本実施形態で示す物理レイヤ、リンクレイヤ、APIレイヤは、国際標準化機構(ISO)により制定されたOSI(Open Systems Interconnection)参照モデル(Reference Model)と対比すると、図4に示すように、物理レイヤはOSI参照モデルの第1層(物理層)に対応し、リンクレイヤはOSI参照モデルの 第2層(データリンク層)と第3層(ネットワーク層)に対応し、APIレイヤはOSI参照モデルの第4層(トランスポート層)と第5層(セッション層)と第6層(プレゼンテーション層)に対応する。リンクレイヤフレームはデータ通信装置1のリンクレイヤ間で論理的に通信され、物理レイヤフレームはデータ通信装置1の物理レイヤ間で物理的に通信される。   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 data communication apparatus 1 can be divided into a physical layer, a link layer, and an API (Application Program Interface) layer by dividing its function into a hierarchical structure. ) It can be divided into a functional unit that performs control and a functional unit that performs reception (RX) control. The physical layer, link layer, and API layer shown in the present embodiment are compared with the OSI (Open Systems Interconnection) Reference Model established by the International Organization for Standardization (ISO), as shown in FIG. Corresponds to the first layer (physical layer) 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 OSI reference model. This corresponds to the fourth layer (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 data communication apparatus 1, and the physical layer frame is physically communicated between the physical layers of the data communication apparatus 1.

さて、上記したデータ通信装置1は、以下に示すエラー検出機能を有し、データ送信時にはデータ送信時エラー検出処理を行い、データ受信時にはデータ受信時エラー検出処理を行う。以下、データ送信時エラー検出処理及びデータ受信時エラー検出処理について順次説明する。   The data communication apparatus 1 described above has an error detection function described below, and performs error detection processing at the time of data transmission at the time of data transmission and performs error detection processing at the time of data reception at the time of data reception. Hereinafter, the error detection process at the time of data transmission and the error detection process at the time of data reception will be described sequentially.

(1)データ送信時エラー検出処理
データ通信装置1は、データ送信時には、図5に示すデータ送信時エラー検出処理を行う。即ち、データ通信装置1は、送信データが正常であるか否かを判定するビットエラー検出をビットエラー検出部11にて行う(ステップS1)。データ通信装置1は、セレクタ7からビットエラー検出部11へ入力された物理レイヤフレームに含まれるデータと、デシリアライザ15からビットエラー検出部11へ入力されたリンクレイヤフレームに含まれるデータとを照合し、送信データと異なるデータを検出した場合、又は送信データを検出しなかった場合には、送信データが正常でないと判定し(ステップS1にて「YES」)、ビットエラーが発生したことを検出する(ステップS2)。このように、データ通信装置1は、データ送信時にはビットエラー検出を行う。
(1) Error detection processing during data transmission The data communication device 1 performs error detection processing during data transmission shown in FIG. 5 during data transmission. That is, the data communication apparatus 1 performs bit error detection in the bit error detection unit 11 for determining whether or not the transmission data is normal (step S1). The data communication device 1 collates the data included in the physical layer frame input from the selector 7 to the bit error detection unit 11 and the data included in the link layer frame input from the deserializer 15 to the bit error detection unit 11. When data different from the transmission data is detected or when transmission data is not detected, it is determined that the transmission data is not normal (“YES” in step S1), and it is detected that a bit error has occurred. (Step S2). As described above, the data communication apparatus 1 performs bit error detection when transmitting data.

(2)データ受信時エラー検出処理
データ通信装置1は、データ受信時には、図6に示すデータ受信時エラー検出処理を行う。即ち、データ通信装置1は、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を4B5Bデコーダ16にて行う(ステップS11)。データ通信装置1は、デシリアライザ15から4B5Bデコーダ16へ入力されたリンクレイヤフレームの10ビットのビット列を4B5B符号化テーブルにしたがって逆変換した8ビットのビット列を判定し、4B5B符号化テーブルに示すビット列以外のビット列(未定義のビット列)を検出した場合には、4B5B符号化が正常でないと判定し(ステップS11にて「YES」)、コーディングエラーが発生したことを検出する(ステップS12)。
(2) Error detection process at the time of data reception The data communication apparatus 1 performs the error detection process at the time of data reception shown in FIG. 6 at the time of data reception. That is, the data communication apparatus 1 performs coding error detection in the 4B5B decoder 16 for determining whether or not 4B5B encoding is normal (step S11). The data communication apparatus 1 determines an 8-bit bit string obtained by inversely converting the 10-bit bit string of the link layer frame input from the deserializer 15 to the 4B5B decoder 16 according to the 4B5B coding table, and other than the bit string shown in the 4B5B coding table When the bit string (undefined bit string) is detected, it is determined that the 4B5B encoding is not normal (“YES” in step S11), and it is detected that a coding error has occurred (step S12).

次いで、データ通信装置1は、リンクレイヤフレームに含まれるデータが正常であるか否かを判定するCRC(Cyclic Redundancy Check)エラー検出を受信LLFデコーダ20にて行う(ステップS13)。データ通信装置1は、セレクタ17からFIFO19を介して受信LLFデコーダ20へ入力されたリンクレイヤフレームの8ビットのビット列に対してCRC計算式による計算を受信LLFデコーダ20にて行い、CRC計算式による計算にてエラーを検出した場合には、リンクレイヤフレームに含まれるデータが正常でないと判定し(ステップS13にて「YES」)、CRCエラーが発生したことを検出する(ステップS14)。   Next, the data communication apparatus 1 performs CRC (Cyclic Redundancy Check) error detection in the reception LLF decoder 20 for determining whether or not the data included in the link layer frame is normal (step S13). The data communication apparatus 1 performs calculation by the reception LLF decoder 20 on the 8-bit bit string of the link layer frame input from the selector 17 via the FIFO 19 to the reception LLF decoder 20, and based on the CRC calculation expression. If an error is detected in the calculation, it is determined that the data included in the link layer frame is not normal (“YES” in step S13), and it is detected that a CRC error has occurred (step S14).

次いで、データ通信装置1は、リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を受信LLFデコーダ20にて行う(ステップS15)。データ通信装置1は、セレクタ17からFIFO19を介して受信LLFデコーダ20へ入力されたリンクレイヤフレームの8ビットのビット列を判定し、受信ヘッダの条件と異なるリンクレイヤフレームの受信を検出した場合には、リンクレイヤフレームの構成及び内容が正常でないと判定し(ステップS15にて「YES」)、フォームエラーが発生したことを検出する(ステップS16)。   Next, the data communication apparatus 1 performs form error detection in the reception LLF decoder 20 for determining whether or not the configuration and contents of the link layer frame are normal (step S15). When the data communication apparatus 1 determines the 8-bit bit string of the link layer frame input from the selector 17 to the reception LLF decoder 20 via the FIFO 19 and detects reception of a link layer frame different from the condition of the reception header. Then, it is determined that the configuration and contents of the link layer frame are not normal (“YES” in step S15), and it is detected that a form error has occurred (step S16).

次いで、データ通信装置1は、リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を送受信シーケンサ10にて行う(ステップS17)。データ通信装置1は、正常シーケンスと異なるリンクレイヤフレームの受信を検出した場合には、リンクレイヤフレームのビット列の並びが正常でないと判定し(ステップS17にて「YES」)、ステートエラーが発生したことを検出する(ステップS18)。   Next, the data communication apparatus 1 performs state error detection in the transmission / reception sequencer 10 for determining whether or not the arrangement of the bit string of the link layer frame is normal (step S17). When the data communication apparatus 1 detects reception of a link layer frame that is different from the normal sequence, it determines that the bit sequence of the link layer frame is not normal (“YES” in step S17), and a state error has occurred. This is detected (step S18).

最後に、データ通信装置1は、ACKフレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を送受信シーケンサ10にて行う(ステップS19)。データ通信装置1は、データフレーム、バーストフレーム、コマンドフレームを送信した後に、その送信したデータフレーム、バーストフレーム、コマンドフレームに対するレスポンス(ACKフレーム)を、データフレーム、バーストフレーム、コマンドフレームの送信時を基準時点として所定時間内に検出しなかった場合には、ACKフレームを所定時間内に正常に受信しなかったと判定し(ステップS19にて「YES」)、タイムアウトエラーが発生したことを検出する(ステップS20)。このように、データ通信装置1は、データ受信時にはコーディングエラー検出、CRCエラー検出、フォームエラー検出、ステートエラー検出及びタイムアウトエラー検出を順次行う。   Finally, the data communication apparatus 1 performs timeout error detection in the transmission / reception sequencer 10 for determining whether or not the ACK frame is normally received within a predetermined time (step S19). After transmitting the data frame, burst frame, and command frame, the data communication apparatus 1 sends a response (ACK frame) to the transmitted data frame, burst frame, and command frame, and determines when the data frame, burst frame, and command frame are transmitted. If it is not detected within the predetermined time as the reference time, it is determined that the ACK frame has not been normally received within the predetermined time (“YES” in step S19), and it is detected that a timeout error has occurred ( Step S20). As described above, the data communication device 1 sequentially performs coding error detection, CRC error detection, form error detection, state error detection, and timeout error detection when receiving data.

図7は、上記したエラーの種別、検出ノード(送信ノード又は受信ノード)及びエラーの内容を対応付けて示す。尚、送信ノードとは送信フレームを送信するデータ通信装置1であり、受信ノードとは受信フレームを受信するデータ通信装置1である。   FIG. 7 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 data communication device 1 that transmits a transmission frame, and the reception node is a data communication device 1 that receives a reception frame.

以上に説明したように本実施形態によれば、データ通信装置1において、非衝突を実現するためのACKフレームによるハンドシェイク通信方式を採用すると共に、リンクレイヤフレームを4B5B符号化し、リンクレイヤフレームに対してプリアンブル、SFD及びEFDを付加し、物理レイヤフレームをNRZI符号化するというクロック再生要件を追加することで、データ通信速度を高速化することができる。又、送信フレームを通信路へ送信する際には、ビットエラー検出を行い、通信路から受信フレームを受信した際には、コーディングエラー検出、CRCエラー検出、フォームエラー検出、ステートエラー検出及びタイムアウトエラー検出を行うことで、高い信頼性を確保することができる。   As described above, according to the present embodiment, the data communication apparatus 1 adopts the handshake communication method using the ACK frame for realizing the non-collision, and the link layer frame is 4B5B encoded to form the link layer frame. On the other hand, by adding a preamble, SFD, and EFD, and adding a clock recovery requirement of NRZI encoding of the physical layer frame, the data communication speed can be increased. Also, when transmitting a transmission frame to the communication path, bit error detection is performed. When a reception frame is received from the communication path, coding error detection, CRC error detection, form error detection, state error detection, and timeout error are detected. By performing detection, high reliability can be ensured.

本発明は、上記した実施形態にのみ限定されるものではなく、以下のように変形又は拡張することができる。
データ通信装置1は、例えば車載系のLANに接続されるノードであっても良いし、車載系のLAN以外のLANに接続されるノードであっても良い。
The present invention is not limited to the above-described embodiment, and can be modified or expanded as follows.
The data communication apparatus 1 may be a node connected to an in-vehicle LAN, for example, or may be a node connected to a LAN other than the in-vehicle LAN.

図面中、1はデータ通信装置、10は送受信シーケンサ(ステートエラー検出手段、タイムアウトエラー検出手段)、11はビットエラー検出部(ビットエラー検出手段)、16は4B5Bデコーダ(コーディングエラー検出手段)、20は受信LLFデコーダ(フォームエラー検出手段、CRCエラー検出手段)である。   In the drawing, 1 is a data communication device, 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), 16 is a 4B5B decoder (coding error detection means), 20 Is a reception LLF decoder (form error detection means, CRC error detection means).

Claims (2)

データを含むリンクレイヤフレームを4B5B符号化し、その4B5B符号化したリンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加して物理レイヤフレームを生成し、その生成した物理レイヤフレームをNRZI(Non Return to Zero Inversion)符号化し、そのNRZI符号化した物理レイヤフレームを送信フレームとして通信路へ送信する際に、物理レイヤフレームをパラレル/シリアル変換及びNRZI変換する前のデータと、通信路から受信したNRZI符号の物理レイヤフレームをSFDの検出及びシリアル/パラレル変換した後のデータとを照合することにより、送信データが正常であるか否かを判定するビットエラー検出を行い、通信路から受信フレームとして物理レイヤフレームを受信した際に、その受信した物理レイヤフレームに対し、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を行い、リンクレイヤフレームに含まれるデータが正常であるか否かを判定するCRC(Cyclic Redundancy Check)エラー検出を行い、リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行い、リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を行い、ACK(ACKnowledgement)フレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を行うことを特徴とするデータ通信方法。 A link layer frame including data is 4B5B encoded, a preamble, a frame start part, and a frame end part are added to the 4B5B encoded link layer frame to generate a physical layer frame, and the generated physical layer frame is converted to NRZI. (Non Return to Zero Inversion) Encoding and transmitting the NRZI-encoded physical layer frame as a transmission frame to the communication path, the data before the parallel / serial conversion and NRZI conversion of the physical layer frame, and the communication path The received physical layer frame of the NRZI code is compared with the data after SFD detection and serial / parallel conversion to detect bit error to determine whether the transmission data is normal, and receive from the communication path When a physical layer frame is received as a frame The CRC (Cyclic Redundancy) is used to detect whether or not the data included in the link layer frame is normal by performing coding error detection for determining whether the 4B5B encoding is normal for the received physical layer frame. Check) Error detection, form error detection to determine whether the structure and contents of the link layer frame are normal, and state error detection to determine whether the bit sequence of the link layer frame is normal And performing time-out error detection for determining whether or not an ACK (ACKnowledgement) frame has been normally received within a predetermined time. データを含むリンクレイヤフレームを4B5B符号化し、その4B5B符号化したリンクレイヤフレームに対してプリアンブル、フレーム開始部及びフレーム終了部を付加して物理レイヤフレームを生成し、その生成した物理レイヤフレームをNRZI(Non Return to Zero Inversion)符号化し、そのNRZI符号化した物理レイヤフレームを送信フレームとして通信路へ送信するデータ通信装置であって、
物理レイヤフレームをパラレル/シリアル変換及びNRZI変換する前のデータと、通信路から受信したNRZI符号の物理レイヤフレームをSFDの検出及びシリアル/パラレル変換した後のデータとを照合することにより、送信データが正常であるか否かを判定するビットエラー検出を行うビットエラー検出手段と、
通信路から受信フレームとして受信した物理レイヤフレームに対し、4B5B符号化が正常であるか否かを判定するコーディングエラー検出を行うコーディングエラー検出手段と、
リンクレイヤフレームに含まれるデータが正常であるか否かを判定するCRC(Cyclic Redundancy Check)エラー検出を行うCRCエラー検出手段と、
リンクレイヤフレームの構成及び内容が正常であるか否かを判定するフォームエラー検出を行うフォームエラー検出手段と、
リンクレイヤフレームのビット列の並びが正常であるか否かを判定するステートエラー検出を行うステートエラー検出手段と、
ACK(ACKnowledgement)フレームを所定時間内に正常に受信したか否かを判定するタイムアウトエラー検出を行うタイムアウトエラー検出手段と、を備えたことを特徴とするデータ通信装置。
A link layer frame including data is 4B5B encoded, a preamble, a frame start part, and a frame end part are added to the 4B5B encoded link layer frame to generate a physical layer frame, and the generated physical layer frame is converted to NRZI. (Non Return to Zero Inversion) A data communication device that encodes and transmits the NRZI-encoded physical layer frame as a transmission frame to a communication path,
Transmission data by collating the data before parallel / serial conversion and NRZI conversion of the physical layer frame with the data after SFD detection and serial / parallel conversion of the physical layer frame of the NRZI code received from the communication path A bit error detection means for performing bit error detection for determining whether or not is normal,
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 reception frame from a communication path;
CRC error detection means for performing CRC (Cyclic Redundancy Check) error detection for determining whether or not the data included in the link layer frame 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;
State error detection means for performing state error detection for determining whether or not the bit sequence of the link layer frame is normal;
A data communication apparatus comprising: a timeout error detection means for performing a timeout error detection for determining whether or not an ACK (ACKnowledgement) frame has been normally received within a predetermined time.
JP2011195036A 2011-06-15 2011-09-07 Data communication method and data communication apparatus Expired - Fee Related JP5532030B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2011195036A JP5532030B2 (en) 2011-09-07 2011-09-07 Data communication method and data communication apparatus
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
CN201410779763.0A CN104410478A (en) 2011-06-15 2012-06-15 Coding apparatus, coding method, data communication apparatus, and data communication method
CN201410779762.6A CN104506276A (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
JP2011195036A JP5532030B2 (en) 2011-09-07 2011-09-07 Data communication method and data communication apparatus

Publications (2)

Publication Number Publication Date
JP2013058844A JP2013058844A (en) 2013-03-28
JP5532030B2 true JP5532030B2 (en) 2014-06-25

Family

ID=48134356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011195036A Expired - Fee Related JP5532030B2 (en) 2011-06-15 2011-09-07 Data communication method and data communication apparatus

Country Status (1)

Country Link
JP (1) JP5532030B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3546662C3 (en) * 1985-02-22 1997-04-03 Bosch Gmbh Robert Method for operating a data processing system
US5068854A (en) * 1989-09-12 1991-11-26 Cupertino, California U.S.A. Error detection for fiber distributed interfaced optic link
JP4032535B2 (en) * 1998-11-10 2008-01-16 ソニー株式会社 Data processing circuit, data transmission system and method thereof
US6873630B1 (en) * 1999-05-19 2005-03-29 Sun Microsystems, Inc. Method and apparatus for a multi-gigabit ethernet architecture
JP4536764B2 (en) * 2007-09-19 2010-09-01 日立オートモティブシステムズ株式会社 Gas pressure monitoring device in tires
JP5071151B2 (en) * 2008-02-27 2012-11-14 トヨタ自動車株式会社 COMMUNICATION SYSTEM, ABNORMALITY ESTIMATION METHOD, AND INFORMATION READING DEVICE

Also Published As

Publication number Publication date
JP2013058844A (en) 2013-03-28

Similar Documents

Publication Publication Date Title
KR101367015B1 (en) Error detection in physical interfaces for point-to-point communications between integrated circuits
JP5233165B2 (en) Data transmission device
US20030237041A1 (en) System and method for transferring data on a data link
US20150295678A1 (en) Coding apparatus, coding method, data communication apparatus, and data communication method
WO2022078426A1 (en) Data transmission method and system, and computer-readable storage medium
KR20180010359A (en) Header processing device, processor and electronic device
JP5987319B2 (en) Transmission / reception system and program
JP4815559B2 (en) Synchronous receiver
CN109902055B (en) SLIP coding data stream transmission method suitable for narrow-band data network
JP2013058845A (en) Data communication method and data communication system
US6581114B1 (en) Method and system for synchronizing serial data
JP4988544B2 (en) Data processing apparatus, data processing method, and program
CN109428676B (en) Method and device for synchronizing forward error correction coding and decoding modes
US9710420B2 (en) System and method for improving the efficiency of a serial interface protocol
JP5532030B2 (en) Data communication method and data communication apparatus
US8750423B2 (en) Receiving apparatus, data transfer apparatus, data receiving method and non-transitory computer readable recording medium
WO2007036128A1 (en) A bts-bsc interface and a method for detecting the interface
US20080045151A1 (en) Communication system
JPH06324719A (en) Programmable controller
CN117493248B (en) USB data transmission method, device, system, electronic equipment and storage medium
US9537507B2 (en) Monitoring method and device of two-channel bus data in network system
JP4277607B2 (en) Transmission / reception synchronization method and apparatus in digital communication
WO2003105392A1 (en) Methods for use with timeslot identifiers in a timeslot-based protocol and apparatus
CN102217241B (en) The method of a kind of data process and access node
JP2002305550A (en) Transmission method for control data, transmission node device, reception method for control data, reception node device, communication method for control data, communication system and program

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

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130926

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140325

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140407

LAPS Cancellation because of no payment of annual fees