[go: up one dir, main page]

JP2003318998A - Data communication device and data communication method - Google Patents

Data communication device and data communication method

Info

Publication number
JP2003318998A
JP2003318998A JP2002121693A JP2002121693A JP2003318998A JP 2003318998 A JP2003318998 A JP 2003318998A JP 2002121693 A JP2002121693 A JP 2002121693A JP 2002121693 A JP2002121693 A JP 2002121693A JP 2003318998 A JP2003318998 A JP 2003318998A
Authority
JP
Japan
Prior art keywords
data
bit
signal
bit determination
header
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.)
Withdrawn
Application number
JP2002121693A
Other languages
Japanese (ja)
Inventor
Shinichi Nakajima
信一 中島
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2002121693A priority Critical patent/JP2003318998A/en
Publication of JP2003318998A publication Critical patent/JP2003318998A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)

Abstract

(57)【要約】 【課題】 データをシリアル通信で送受信するデータ通
信において、データ受信の精度を向上させることが可能
なデータ通信装置およびデータ通信方法を提供するこ
と。 【解決手段】 データに、データの正当性を判断する信
号識別データを付した、1データ送信単位であるデータ
フレームを受信するデータ受信部と、上記データ受信部
が受信したデータフレーム内の信号エッジで、上記デー
タフレーム内のビット判定の基準点を補正することによ
り、ビット判定位置を補正するビット判定位置補正手段
と、上記ビット判定位置補正手段により補正されたビッ
ト判定位置に基づいて、上記データ受信部が受信したデ
ータの正当性を判断するデータ正当性判断手段とを備え
る。
(57) [Problem] To provide a data communication device and a data communication method capable of improving the accuracy of data reception in data communication for transmitting and receiving data by serial communication. SOLUTION: A data receiving unit for receiving a data frame which is one data transmission unit in which signal identification data for judging the validity of data is added to data, a signal edge in the data frame received by the data receiving unit A bit determination position correction means for correcting a bit determination position by correcting a reference point of bit determination in the data frame, and the data based on the bit determination position corrected by the bit determination position correction means. Data validity determining means for determining the validity of the data received by the receiving unit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、シリアル通信にお
けるデータの送受信装置および送受信方法に関し、特
に、制御用の信号線を使用せずに、データ送受信用の信
号線のみを使用した、シリアル通信におけるデータの送
受信装置および送受信方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission / reception apparatus and a transmission / reception method for serial communication, and more particularly, in serial communication using only a signal line for data transmission / reception without using a signal line for control. The present invention relates to a data transmission / reception device and a data transmission / reception method.

【0002】[0002]

【従来の技術】従来、シリアル通信装置(送信する場合
はデータ送信装置ともいい、受信する場合はデータ受信
装置ともいう)は、例えば、電子機器内に設けられた中
央処理ユニットと複数の電気ユニットとの間でデータの
通信をシリアルで行っている。
2. Description of the Related Art Conventionally, a serial communication device (also referred to as a data transmission device when transmitting and also referred to as a data receiving device when receiving) is, for example, a central processing unit and a plurality of electric units provided in an electronic device. Data is communicated serially with.

【0003】従来のシリアル通信において、制御用の信
号線を使用せずに、データ送受信用の信号線のみを使用
してシリアル通信を行う場合、送信側のシリアル通信装
置が、送信するデータに、先頭部分であることや、通信
制御用の情報を示すヘッダー部を設けたデータフレーム
を送信し、受信側のシリアル通信装置が、ヘッダー部を
受信・解析し、その結果によって正しいデータが送信さ
れたことを認識することで、シリアル通信の信頼性や通
信精度を高めていた。
In the conventional serial communication, when serial communication is performed using only the signal line for data transmission / reception without using the signal line for control, the serial communication device on the transmission side transmits data to A data frame having a header part indicating the beginning part and communication control information is transmitted, and the serial communication device on the receiving side receives and analyzes the header part, and as a result, correct data is transmitted. By recognizing this, the reliability and communication accuracy of serial communication were improved.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述の
ようなシリアル通信において、受信側のシリアル通信装
置が、送信されたデータを一定の間隔でサンプリング
し、サンプリングデータ値から送信されたデータビット
値を判定する方法をとった場合、図17のように、サン
プリング間隔や送信タイミングによっては、送信データ
の先頭を取り逃すことがあるという問題点があった。
However, in the serial communication as described above, the serial communication device on the receiving side samples the transmitted data at regular intervals, and the transmitted data bit value is calculated from the sampling data value. When the determination method is adopted, there is a problem that the beginning of the transmission data may be missed depending on the sampling interval and the transmission timing, as shown in FIG.

【0005】また、図18のように、信号のビット幅の
間延びや、信号ノイズを原因とするデータビット値の誤
判定により、シリアル通信装置間の通信信頼性の低下を
まねくという問題点があった。
Further, as shown in FIG. 18, there is a problem that the communication reliability between the serial communication devices is deteriorated due to the extension of the bit width of the signal and the erroneous determination of the data bit value due to the signal noise. It was

【0006】本発明は、送信に際しては、データ部内に
あらかじめ取り決めた区切り信号を挿入して、データ部
とヘッダー部を組み合わせたデータフレームを送信し、
受信に際しては、ヘッダー部の先頭部分及び、ヘッダー
部の最後尾部分を受信した時点で、信号ビット判定を行
う位置の補正を行うことと、データ部内の区切り信号又
は信号の値が変化する信号エッジ部分を検出した時点
で、信号ビット判定を行う位置の補正を行うことで、デ
ータ受信の精度を向上させることが可能なデータ通信装
置およびデータ通信方法を提供することを目的とする。
According to the present invention, at the time of transmission, a delimiter signal determined in advance is inserted in the data section, and a data frame in which the data section and the header section are combined is transmitted,
At the time of reception, at the time of receiving the beginning part of the header part and the end part of the header part, the position of the signal bit judgment is corrected and the delimiter signal in the data part or the signal edge where the value of the signal changes An object of the present invention is to provide a data communication device and a data communication method capable of improving the accuracy of data reception by correcting the position where signal bit determination is performed when a portion is detected.

【0007】[0007]

【課題を解決するための手段】本発明は、上記課題を解
決するため、下記のような構成を採用した。本発明の一
態様によれば、本発明のデータ通信装置は、データをシ
リアル通信で送受信するデータ通信装置であって、上記
データに、データの正当性を判断する信号識別データを
付した、1データ送信単位であるデータフレームを受信
するデータ受信部と、上記データ受信部が受信したデー
タフレーム内の信号エッジで、上記データフレーム内の
ビット判定の基準点を補正することにより、ビット判定
位置を補正するビット判定位置補正手段と、上記ビット
判定位置補正手段により補正されたビット判定位置に基
づいて、上記データ受信部が受信したデータの正当性を
判断するデータ正当性判断手段とを備えたことを特徴と
する。
In order to solve the above problems, the present invention employs the following configurations. According to one aspect of the present invention, a data communication device of the present invention is a data communication device for transmitting and receiving data by serial communication, wherein the data is attached with signal identification data for judging the validity of the data. The data receiving unit that receives a data frame that is a data transmission unit, and the signal edge in the data frame received by the data receiving unit corrects the reference point for bit determination in the data frame to determine the bit determination position. A bit judgment position correcting means for correcting and a data validity judging means for judging the validity of the data received by the data receiving section based on the bit judgment position corrected by the bit judgment position correcting means. Is characterized by.

【0008】また、本発明のデータ通信装置は、上記デ
ータ受信手段が、信号エッジを含む区切り信号が付加さ
れたデータフレームを受信し、上記ビット判定位置補正
手段が、上記区切り信号内の信号エッジでビット判定の
基準点を補正することが望ましい。
Further, in the data communication apparatus of the present invention, the data receiving means receives a data frame to which a delimiter signal including a signal edge is added, and the bit determination position correcting means causes the signal edge in the delimiter signal to be included. It is desirable to correct the reference point for bit determination with.

【0009】また、本発明の一態様によれば、本発明の
データ通信装置は、上述のデータ通信装置に対して、デ
ータの正当性を判断する信号識別データを付した、1デ
ータ送信単位であるデータフレームを送信するデータ送
信部を備えたことを特徴とする。
Further, according to one aspect of the present invention, the data communication apparatus of the present invention provides the above-mentioned data communication apparatus in one data transmission unit with signal identification data for judging the validity of the data. It is characterized by comprising a data transmission unit for transmitting a certain data frame.

【0010】また、本発明のデータ通信装置は、上記デ
ータ送信部が、信号エッジを含む区切り信号が付加され
たデータフレームを送信することが望ましい。
Further, in the data communication apparatus of the present invention, it is desirable that the data transmission section transmits a data frame to which a delimiter signal including a signal edge is added.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態を、図
1乃至図16を参照しながら詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to FIGS.

【0012】図1は、本発明を適用したデータ通信装置
の基本構成を説明するための図である。図1において、
データ通信装置(データ送信装置)1と他のデータ通信
装置(データ受信装置)2とは、シリアルケーブル等の
データ伝送路3で接続されている。
FIG. 1 is a diagram for explaining the basic configuration of a data communication device to which the present invention is applied. In FIG.
The data communication device (data transmission device) 1 and another data communication device (data reception device) 2 are connected by a data transmission path 3 such as a serial cable.

【0013】データ送信装置1は、データ信号の先頭に
ヘッダー部を追加し、データ信号中に特定の識別信号を
挿入する機能を付加したデータ送信処理部11と、デー
タ伝送路3へデータを送信する送信ポート12とを備え
る。また、データ受信装置2には、データ受信ポート2
2が受信したデータフレーム内の区切り信号内の信号エ
ッジで、上記データフレーム内のビット判定の基準点を
補正することにより、ビット判定位置を補正するビット
判定位置補正手段と、これにより補正されたビット判定
位置に基づいて、上記データ受信ポート22が受信した
データの正当性を判断するデータ正当性判断手段とを有
するデータ受信処理部21と、データ伝送路3からデー
タを受信する受信ポート22とを備える。
The data transmitter 1 transmits a data to the data transmission processing unit 11 having a header portion added to the head of the data signal and a function of inserting a specific identification signal into the data signal, and the data transmission path 3. And a transmission port 12 for In addition, the data receiving device 2 includes a data receiving port 2
2 corrects the bit judgment reference point in the data frame by the signal edge in the delimiter signal in the received data frame to correct the bit judgment position, and the bit judgment position correcting means. A data reception processing section 21 having a data validity judging means for judging the validity of the data received by the data reception port 22, based on the bit judgment position; and a reception port 22 for receiving the data from the data transmission path 3. Equipped with.

【0014】データ送信処理部11およびデータ受信処
理部21は、ファームウェア又は電子回路等のハードウ
ェアとして実現する。またこれらデータ送信装置1とデ
ータ受信装置2間で双方向通信を行う場合は、データ送
信装置1がデータ受信処理部21を備え、データ受信装
置2がデータ送信処理部11を備えても良い。
The data transmission processing unit 11 and the data reception processing unit 21 are realized as hardware such as firmware or electronic circuits. When bidirectional communication is performed between the data transmitting device 1 and the data receiving device 2, the data transmitting device 1 may include the data reception processing unit 21, and the data receiving device 2 may include the data transmission processing unit 11.

【0015】図2は、データフレームの構造を説明する
ための信号波形図である。データ送信装置1は、データ
送信装置1に搭載されている基準クロックに同期させた
り、タイマを使用したりして、一定時間間隔のタイミン
グに合わせて、送信データのビット値を切り換えて、デ
ータ送信を実行する。ここでは一回に送信するデータの
先頭ビットから最後のビットまでをデータフレームと呼
ぶ。またデータフレームであることを識別するために、
先頭ビットからあらかじめ取り決められたビットまで
を、データフレームのヘッダー部と呼ぶ。データフレー
ムのヘッダー部の次のビット以降の、本来送信する対象
となるデータビットの集まりをデータ部と呼ぶ。データ
部には、あらかじめ決められたビット位置に、特定のビ
ットパターン・特定のビット数の、識別記号を挿入す
る。この識別記号を区切り信号と呼ぶ。
FIG. 2 is a signal waveform diagram for explaining the structure of the data frame. The data transmission device 1 synchronizes with a reference clock mounted on the data transmission device 1 or uses a timer to switch the bit value of the transmission data in accordance with the timing of a constant time interval to transmit the data. To execute. Here, the first bit to the last bit of the data transmitted at one time is called a data frame. Also, to identify that it is a data frame,
The bits from the first bit to the predetermined bit are called the header part of the data frame. A collection of data bits that are originally to be transmitted after the next bit of the header portion of the data frame is called a data portion. An identification symbol having a specific bit pattern and a specific number of bits is inserted in a predetermined bit position in the data section. This identification symbol is called a delimiter signal.

【0016】例えば、“10000000000101
1001000111010000011”というビッ
トで構成されたデータフレームがあり、先頭ビットから
12ビットまでをヘッダー部と取り決めた場合、“10
0000000001”がヘッダー部を表すビットであ
り、“011001000111010000011”
がデータ部を表すビットである。
For example, "10000000000101"
If there is a data frame composed of bits 10010001111010000011 ", and if the header part is arranged from the first bit to 12 bits, then" 10 "
"0000000001" is a bit representing the header part, and "011001000111010000011"
Is a bit representing the data part.

【0017】また、データ部に8ビットおきに2ビット
の区切り信号“01”を挿入すると取り決めた場合、区
切り信号を取り除いた本来のデータ部は、“01100
100110100001”である。
When it is decided that a 2-bit delimiter signal "01" is inserted in every 8 bits in the data part, the original data part excluding the delimiter signal is "01100".
100110100001 ".

【0018】図3は、データ部受信処理を開始する位置
を示すための信号波形図である。データ受信装置2は、
ヘッダー部の受信を確定した時点で、データ送信装置1
からデータフレームが送信されていることを判定し、デ
ータ部の受信・解析処理を実行する。
FIG. 3 is a signal waveform diagram showing the position at which the data section reception process is started. The data receiving device 2
When the reception of the header part is confirmed, the data transmission device 1
It is determined that the data frame is transmitted from, and the reception / analysis processing of the data portion is executed.

【0019】ヘッダー部のビット長やビットパターン
は、各々の装置に都合の良いように取り決めて構わな
い。しかし、データ部中にヘッダー部と同じビットパタ
ーンが存在した場合、データ部中に存在するヘッダー部
と同じビットパターンを、ヘッダー部と誤判定してしま
い、受信エラーとなる場合がある。ヘッダー部のビット
パターンの選択は、データ部に決して現れないビットパ
ターンを選択することが望ましい。
The bit length and bit pattern of the header portion may be arranged so as to be convenient for each device. However, if the same bit pattern as the header part exists in the data part, the same bit pattern as the header part in the data part may be erroneously determined as the header part, resulting in a reception error. It is desirable to select the bit pattern of the header section so that it never appears in the data section.

【0020】また、後述する受信ビット判定位置の補正
を行うために、ヘッダー部の最後尾に、信号がローレベ
ルからハイレベルに変化する立ち上がりエッジ、又はハ
イレベルからローレベルに変化する立下りエッジを含む
ビットパターンを選択することが望ましい。仮に選択し
ない場合、ヘッダー部の最後尾のビット値と、データ部
の先頭のビット値が、常に反転して、立下り又は立ち上
がりエッジが存在するように、ヘッダー部及びデータ部
を選択する。
Further, in order to correct the reception bit determination position described later, a rising edge at which the signal changes from low level to high level or a falling edge at which the signal changes from high level to low level is provided at the end of the header section. It is desirable to select a bit pattern containing If it is not selected, the header part and the data part are selected so that the last bit value of the header part and the first bit value of the data part are always inverted and a falling edge or a rising edge exists.

【0021】区切り信号のビット長、ビットパターンや
データ部への挿入間隔は、各々の装置に都合が良いよう
に取り決めて構わない。しかし、後述する区切り信号を
用いた受信ビット判定位置の補正を行うために、立ち上
がりエッジ又は立下りエッジを含むパターンであること
が望ましい。区切り信号にエッジを含まないパターンを
選択した場合、区切り信号の最後尾のビット値と、区切
り信号の後に続くデータ部のビット値が、常に反転し
て、立下り又は立上りエッジが存在するように、区切り
信号及びデータ部を選択する。
The bit length of the delimiter signal, the bit pattern, and the insertion interval into the data section may be determined so as to be convenient for each device. However, it is desirable that the pattern includes a rising edge or a falling edge in order to correct the reception bit determination position using a delimiter signal described later. If you select a pattern that does not include edges in the delimiter signal, the last bit value of the delimiter signal and the bit value of the data part that follows the delimiter signal are always inverted so that there is a falling or rising edge. , Delimiter signal and data part are selected.

【0022】また、データフレームが送信されていない
間、信号レベルは常にローレベル又はハイレベルで一定
であるとする。ここでは、ローレベルの信号がビット0
を表すものとし、ハイレベルの信号がビット1を表すも
のとし、データフレームの未送信時はビット0で一定で
あるとして説明を行う。
Further, it is assumed that the signal level is always low level or high level while the data frame is not transmitted. Here, the low level signal is bit 0
, The high-level signal represents bit 1, and it is assumed that bit 0 is constant when the data frame is not transmitted.

【0023】図4は、本発明におけるデータ受信処理の
流れを示すフローチャートである。まず、ステップS4
1において、ヘッダー待ち状態であるか、ヘッダー検出
状態であるか、データ部受信状態であるかを判断する。
FIG. 4 is a flow chart showing the flow of data reception processing in the present invention. First, step S4
In step 1, it is determined whether it is in a header waiting state, a header detection state, or a data section reception state.

【0024】そして、ステップS41でヘッダー待ち状
態であると判断された場合は、ステップS42におい
て、図7を用いて後述するヘッダー待ち処理を実行す
る。ステップS41でヘッダー検出状態であると判断さ
れた場合は、ステップS43において、図11を用いて
後述するヘッダー検出処理を実行する。
If it is determined in step S41 that the header is waiting, a header waiting process, which will be described later with reference to FIG. 7, is executed in step S42. If it is determined in step S41 that the header is being detected, the header detection process described later with reference to FIG. 11 is executed in step S43.

【0025】ステップS41でデータ部受信状態である
と判断された場合は、ステップS44において、図12
を用いて後述するデータ部受信処理を実行する。そし
て、ステップS45において、エラーがあるか否かを判
断し、エラーがある場合(Yes)は、ステップS46に
おいて、エラー処理を実行する。
If it is determined in step S41 that the data portion is being received, in step S44, the process shown in FIG.
Is used to execute the data part reception process described later. Then, in step S45, it is determined whether or not there is an error. If there is an error (Yes), error processing is executed in step S46.

【0026】図5は、データ受信処理の状態遷移を説明
するための図である。データ受信処理においては、ヘッ
ダー待ち状態とヘッダー検出状態とデータ受信状態との
各状態が遷移している。
FIG. 5 is a diagram for explaining the state transition of the data receiving process. In the data receiving process, the header waiting state, the header detecting state, and the data receiving state are transited.

【0027】データ受信装置2は、受信処理状態に関係
なく、一定の時間間隔で、受信ポート状態のサンプリン
グを行う。サンプリング値は0と1の2値を取るものと
する。サンプリングの時間間隔はデータの取りもらしが
ないように、データフレームの単位ビットを送信する時
間以下が望ましい(図6参照)。データフレームを受信
していない時の、データ受信装置2の状態をヘッダー待
ち状態(図5中の)と呼ぶ。
The data receiving device 2 samples the reception port state at regular time intervals regardless of the reception processing state. It is assumed that the sampling value takes two values of 0 and 1. It is desirable that the sampling time interval be equal to or less than the time for transmitting a unit bit of a data frame so that data is not leaked (see FIG. 6). The state of the data receiving device 2 when no data frame is received is called a header waiting state (in FIG. 5).

【0028】図7は、ヘッダー待ち処理の流れを示すフ
ローチャートである。データ受信装置2は、データ送信
装置1から送信されたデータフレームのヘッダー部の先
頭ビットを検出(1があるかの判断)する(ステップS
72)が、その前に、ステップS71において、ヘッダ
ー部の先頭ビットを検出するために、サンプリングデー
タから受信ビット値の判定を行う。
FIG. 7 is a flowchart showing the flow of header waiting processing. The data receiving device 2 detects the leading bit of the header part of the data frame transmitted from the data transmitting device 1 (determines whether there is 1) (step S).
72) before that, in step S71, the received bit value is determined from the sampling data in order to detect the first bit of the header part.

【0029】先頭ビットが検出されなかった場合(ステ
ップS72:No)は、ステップS73において、バッ
ファをクリアし、受信データ数をクリアして、リターン
する。判定は、特定の個数のサンプリング値を、1ビッ
ト分のサンプリング値として判定する。図8に示した例
では、1ビットの送信時間が5msec(ミリ秒)で、
サンプリングの時間間隔が500μsec(マイクロ
秒)であるので、1ビット分のサンプリング値の数は1
0個となる。受信ビット値は、特定個数のサンプリング
値の平均値から求めても良い。また、特定個数のサンプ
リング値中の、特定位置のサンプリング値の値から求め
ても良い。図8では、1ビット分のサンプリング値の、
中間の値3つの多数決で決定している。
If the leading bit is not detected (step S72: No), the buffer is cleared, the number of received data is cleared, and the process returns in step S73. In the determination, a specific number of sampling values is determined as a sampling value for 1 bit. In the example shown in FIG. 8, the transmission time of 1 bit is 5 msec (millisecond),
Since the sampling time interval is 500 μsec (microseconds), the number of sampling values for 1 bit is 1
It becomes 0. The received bit value may be obtained from the average value of a specific number of sampled values. Further, it may be obtained from the value of the sampling value at the specific position in the specific number of sampling values. In FIG. 8, the sampling value of 1 bit,
Intermediate values are decided by three majority votes.

【0030】ヘッダー部の先頭ビットを確定(ステップ
S72:Yes)した後、ステップS74において、エ
ッジ検索開始位置の補正を行う。まず、現在のサンプリ
ング値の検索位置より、一定の数前のサンプリング値か
ら、信号レベルがローレベルからハイレベルに変化する
個所(立上りエッジ)を検索する(ステップS75)。
ここでは検索によってエッジを検出した個所を、ヘッダ
ー開始エッジと呼ぶ。
After the head bit of the header portion is determined (step S72: Yes), the edge search start position is corrected in step S74. First, a portion (rising edge) where the signal level changes from a low level to a high level is searched for from a sampling value a fixed number before the current sampling value search position (step S75).
Here, the location where the edge is detected by the search is called the header start edge.

【0031】ステップS76でエッジがあるか否かを判
断し、ないと判断された場合(No)は、ステップS77
において、バッファをクリアし、受信データ数をクリア
して、リターンする。
In step S76, it is determined whether or not there is an edge, and if it is determined that there is no edge (No), step S77.
At, the buffer is cleared, the number of received data is cleared, and the process returns.

【0032】他方、ステップS76でエッジがあると判
断された場合(Yes)、すなわち、ヘッダー開始エッジ
を検出した後は、ステップS78において、エッジ検出
位置を保存し、ステップS79において、ヘッダー開始
エッジを基準点として、次にビット判定を行う位置を補
正する(図9参照)。
On the other hand, if it is determined in step S76 that there is an edge (Yes), that is, after the header start edge is detected, the edge detection position is saved in step S78, and the header start edge is determined in step S79. As the reference point, the position where the bit determination is performed next is corrected (see FIG. 9).

【0033】ビット判定を行う位置の補正は、検出した
エッジから、受信したビット数分のサンプリング値の数
だけ新しいサンプリング値の位置に合わせる。例えば、
図10において、ヘッダー部先頭ビットとそのあとの2
ビット目を受信していた場合、2ビット分のサンプリン
グ値20個分だけ、検索位置をずらす。
The correction of the position at which the bit determination is performed is adjusted to the position of the new sampling value from the detected edge by the number of sampling values for the number of received bits. For example,
In FIG. 10, the first bit of the header part and the subsequent 2
When the bit number is received, the search position is shifted by 20 sampling values of 2 bits.

【0034】そして、次のビット判定を行う位置を補正
した後、ステップS80において、データ受信装置2の
状態をヘッダー検出状態へ移行(図5中の参照)する。
図11は、ヘッダー検出処理の流れを示すフローチャー
トである。
Then, after correcting the position where the next bit judgment is performed, in step S80, the state of the data receiving device 2 is shifted to the header detection state (see FIG. 5).
FIG. 11 is a flowchart showing the flow of header detection processing.

【0035】ヘッダー検出状態へ移行すると、まず、ス
テップS111において、ヘッダー部の受信ビット値の
判定を行う。そして、ステップS112において、ヘッ
ダー部の全ビット受信が完了したか否かを判断する。
When shifting to the header detection state, first, in step S111, the received bit value of the header portion is determined. Then, in step S112, it is determined whether or not reception of all bits of the header portion is completed.

【0036】ヘッダー部の全ビット受信が完了(ステッ
プS112:Yes)した後、ステップS113におい
て、ステップS74と同様の方法で、エッジ検出開始位
置の補正を行う。ステップS114において、信号レベ
ルがローレベルからハイレベルに変化する個所(立上り
エッジ)を検索する。
After the reception of all bits of the header portion is completed (step S112: Yes), the edge detection start position is corrected in step S113 by the same method as in step S74. In step S114, a portion (rising edge) where the signal level changes from low level to high level is searched.

【0037】そして、ステップS115において、ヘッ
ダー部の最後尾に設けた立上り(立下り)エッジの検出
(エッジがあるか否か)を判断し、ないと判断された場
合(No)は、ステップS116において、ヘッダー待ち
状態へ移行する。
Then, in step S115, it is determined whether or not a rising (falling) edge provided at the end of the header portion is detected (whether or not there is an edge), and if it is determined that there is no edge (No), step S116. At, shifts to the header waiting state.

【0038】他方、ステップS115でエッジがあると
判断された場合(Yes)、すなわち、ヘッダー部の最後
尾に設けた立上り(立下り)エッジを検出した後は、ス
テップS117において、次にビット判定を行うサンプ
リング値の位置を補正し、ステップS118において、
データ部受信状態へ移行する(図5中の参照)。
On the other hand, if it is determined in step S115 that there is an edge (Yes), that is, after the rising (falling) edge provided at the end of the header portion is detected, in step S117, the bit determination is performed next. The position of the sampling value is corrected, and in step S118,
A transition is made to the data section reception state (see FIG. 5).

【0039】また、ステップS112でヘッダー部の全
ビット受信が完了していないと判断された場合(No)
は、ステップS119において、データ異常があるか否
か判断する。
If it is determined in step S112 that all bits of the header have not been received (No)
Determines in step S119 whether there is a data abnormality.

【0040】さらに、ステップS119でデータ異常で
あると判断された場合(Yes)は、ステップS120
において、信号レベルがローレベルからハイレベルに変
化する個所(立上りエッジ)を検索する。
Furthermore, if it is determined in step S119 that the data is abnormal (Yes), step S120.
In, a location where the signal level changes from low level to high level (rising edge) is searched for.

【0041】そして、ステップS121において、現時
点までに受信しているビット列の最後尾の立上り(立下
り)エッジの検出(エッジがあるか否か)を判断し、な
いと判断された場合(No)は、ステップS122におい
て、ヘッダー待ち状態へ移行し、他方、ステップS12
1でエッジがあると判断された場合(Yes)は、ステッ
プS123において、発見したエッジからヘッダー検出
を再開する。
Then, in step S121, it is judged whether or not the last rising (falling) edge of the bit string received up to the present time is detected (whether or not there is an edge), and if it is judged not (No). Shifts to the header waiting state in step S122, while step S12
When it is determined that there is an edge in 1 (Yes), header detection is restarted from the found edge in step S123.

【0042】図12は、データ部受信処理の流れを示す
フローチャートである。まず、ヘッダー部と同様に、ス
テップS124において、サンプリング値から受信ビッ
ト値の判定を行う。
FIG. 12 is a flowchart showing the flow of the data part reception process. First, similarly to the header part, in step S124, the received bit value is determined from the sampling value.

【0043】そして、ステップS125において、区切
り信号の受信が完了したか否か、又は受信ビット値が反
転したか否かを判断する。ステップS125で区切り信
号の受信が完了した、又は受信ビット値が反転したと判
断された場合(Yes)、すなわち、区切り記号の受信
ビット値の判定が終わった段階、又は受信したビット値
が反転した段階で、ステップS126において、エッジ
検出開始位置の補正を行う。(図13参照)。エッジ検
出開始位置の補正は、ヘッダー部と同様の方法で、現在
のサンプリング値を参照する位置より、一定数前のサン
プリング値の位置に移動する。
Then, in step S125, it is determined whether the reception of the delimiter signal is completed or whether the received bit value is inverted. When it is determined in step S125 that the reception of the delimiter signal is completed or the received bit value is inverted (Yes), that is, when the determination of the received bit value of the delimiter is completed or the received bit value is inverted. In step S126, the edge detection start position is corrected. (See Figure 13). The edge detection start position is corrected in the same manner as in the header section by moving to a position of a sampling value that is a fixed number before the position that refers to the current sampling value.

【0044】ステップS127において、ステップS1
26で補正した位置から信号レベルがローレベルからハ
イレベルに変化する個所(立上りエッジ)を検索する。
そして、ステップS128において、区切り記号内また
はビット反転した位置の立上り(立下り)エッジの検出
(エッジがあるか否か)を判断し、ないと判断された場
合(No)は、ステップS129において、データ部異常
であるとし、他方、ステップS128でエッジがあると
判断された場合(Yes)は、ステップS130におい
て、ステップS127で検出した立上り(立下り)エッ
ジを用いて、次のビット判定を行う位置を補正する(図
14参照)。
In step S127, step S1
From the position corrected in step 26, a portion (rising edge) where the signal level changes from low level to high level is searched.
Then, in step S128, it is determined whether or not a rising edge (falling edge) is detected (whether or not there is an edge) in the delimiter or in the bit-inverted position, and when it is determined that there is no edge (No), in step S129, On the other hand, if it is determined that the data portion is abnormal and there is an edge in step S128 (Yes), the next bit is determined using the rising (falling) edge detected in step S127 in step S130. Correct the position (see FIG. 14).

【0045】他方、ステップS125で区切り信号の受
信が完了していない、又は受信ビット値が反転していな
いと判断された場合(No)、ステップS131におい
て、データ部の受信が完了したか否か判断する。
On the other hand, when it is determined in step S125 that the reception of the delimiter signal is not completed or the received bit value is not inverted (No), in step S131, it is determined whether the reception of the data portion is completed. to decide.

【0046】そして、ステップS131でデータ部の受
信が完了したと判断された場合(Yes)は、ステップ
S132において、ヘッダー待ち状態へ移行する。以
降、データフレームの最後尾ビットの値を確定するま
で、上記データ部受信状態を継続する。
If it is determined in step S131 that the reception of the data portion has been completed (Yes), in step S132, a header waiting state is entered. After that, the data section reception state is continued until the value of the last bit of the data frame is determined.

【0047】なお、データフレームの最後尾ビットの受
信判定は、あらかじめ取り決められたビット数を受信し
た時点又はビット数以上を受信した時点とする。全デー
タフレームの信号ビットを受信した時点で、データ部受
信状態における処理は終了となる。データ受信装置2の
状態は、ヘッダー待ち状態へ移行し、次のヘッダー開始
エッジが検出されるまで待ち続ける(図5中の参
照)。
The reception judgment of the last bit of the data frame is made at the time when the predetermined number of bits is received or at the time when more than the number of bits is received. When the signal bits of all the data frames are received, the processing in the data part reception state ends. The state of the data receiving device 2 shifts to the header waiting state and continues to wait until the next header start edge is detected (see FIG. 5).

【0048】次に、本発明の他の実施の形態を説明す
る。この実施の形態では、データフレームのヘッダー部
で、データフレームの先頭位置を確定することと、ヘッ
ダー部最後尾での受信ビット判定の基準点補正によるビ
ット判定位置補正を行うことと、データ部内の立下りエ
ッジまたは立上りエッジで、ビット判定の基準点を補正
することで、送信データの先頭位置の取りこぼしや、受
信中に発生するビット判定位置のずれによる、受信エラ
ーを低減する例を説明する。
Next, another embodiment of the present invention will be described. In this embodiment, in the header portion of the data frame, the start position of the data frame is determined, the bit determination position correction is performed by the reference point correction of the received bit determination at the end of the header portion, and An example will be described in which the reference point for bit determination is corrected at the falling edge or the rising edge to reduce the reception error due to the missing of the start position of the transmission data or the bit determination position shift occurring during reception.

【0049】ここで、データフレームの送受信が行われ
ていない時の、受信ポート状態は、常にローレベル(ビ
ット0)固定であるとする。データ送信装置1は、ヘッ
ダー部として12ビットのビット列“10000000
0001”を、データフレームの先頭に付加して、デー
タ部を送信する。1ビットの信号を送信するために要す
る時間は、5msecとする。従って1ビットの時間幅
は5msecである。
Here, it is assumed that the reception port state is always fixed to the low level (bit 0) when the data frame is not transmitted / received. The data transmission device 1 uses a 12-bit bit string “10000000 as a header part.
0001 "is added to the beginning of the data frame to transmit the data part. The time required to transmit a 1-bit signal is 5 msec. Therefore, the 1-bit time width is 5 msec.

【0050】データ受信装置2は、受信処理の状態に関
係なく、500μsec間隔で受信ポート状態をサンプ
リングする。1ビットの時間幅は5msecであるの
で、サンプリング値約10個で、1ビットの信号のサン
プリングデータを表す。サンプリングは、0又は1の2
値で行い、サンプリング値は、サンプリングした順番に
FIFO方式で、バッファに格納していく。受信ビット
判定は、バッファに格納したサンプリング値を使用して
行う。また、次にビット判定を行うための、バッファ位
置を格納するバッファポインタを用意する。
The data receiving device 2 samples the receiving port state at intervals of 500 μsec regardless of the state of the receiving process. Since the 1-bit time width is 5 msec, about 10 sampling values represent 1-bit signal sampling data. Sampling is 0 or 1 of 2
The sampling value is stored in the buffer by the FIFO method in the order of sampling. The received bit determination is performed using the sampling value stored in the buffer. In addition, a buffer pointer for storing a buffer position for next bit determination is prepared.

【0051】この実施の形態では、ビット値の判定は、
1ビットあたりサンプリング値10個であると仮定し
て、先頭から5乃至7番目の、3つのサンプリング値の
多数決で決定する(図15参照)。
In this embodiment, the bit value judgment is
Assuming that there are 10 sampling values per bit, it is determined by the majority vote of the 3rd to 7th sampling values (see FIG. 15).

【0052】そして、ヘッダー待ち状態において、デー
タ送信装置1からデータフレームが送信されていない場
合、データ受信装置2は、サンプリング値からビット判
定を行い、ビット0を判定する。
When no data frame is transmitted from the data transmitting device 1 in the header waiting state, the data receiving device 2 makes a bit determination from the sampling value and determines a bit 0.

【0053】データ送信装置1からデータフレームが送
信されたとき、データ受信装置2は、データ送信装置1
から送信されたデータフレームの先頭ビット’“1”を
ビット判定により検出する。
When the data frame is transmitted from the data transmitting device 1, the data receiving device 2 is
The leading bit "1" of the data frame transmitted from is detected by bit determination.

【0054】受信ビット判定でビット1を検出した場
合、データフレームのヘッダー部の先頭であると判定
し、データ受信装置2は、バッファポインタを、次にビ
ット判定を開始する位置から、ビット1の前のビット0
を判定する際に参照したサンプリング値の、最後尾のサ
ンプリング値の位置に設定し、サンプリングバッファの
検索を実行する。(図16中参照)。
When bit 1 is detected by the received bit determination, it is determined that it is the head of the header portion of the data frame, and the data receiving device 2 sets the buffer pointer to the bit 1 from the position where the next bit determination is started. Previous bit 0
The sampling buffer is set to the position of the last sampling value of the sampling values referred to when determining, and the sampling buffer is searched. (See FIG. 16).

【0055】サンプリングバッファを検索した結果、立
上りエッジを検出した場合、検出した位置を新しいビッ
ト判定の基準位置とし、そこから1ビット分のサンプリ
ング値の数10ずらした位置に、バッファポインタを設
定し、新しいビット判定位置とする。その後、ヘッダー
検出状態へ移行し、ヘッダー部の残りのビットを受信す
る(図16中参照)。
When a rising edge is detected as a result of searching the sampling buffer, the detected position is set as a reference position for a new bit determination, and a buffer pointer is set at a position shifted by tens of 1-bit sampling values. , A new bit determination position. After that, the state shifts to the header detection state, and the remaining bits of the header portion are received (see FIG. 16).

【0056】ヘッダー部の最後尾のビット1を受信した
時点で、再度サンプリングバッファから立上りエッジの
検出を実行する。検出方法は、上述のヘッダー部先頭の
立上りエッジを検出する場合と同様である。
When the last bit 1 of the header section is received, the rising edge is again detected from the sampling buffer. The detection method is the same as in the case of detecting the rising edge at the head of the header described above.

【0057】検出した立上りエッジに相当するサンプリ
ングバッファ内の位置を、新しいビット判定の基準点と
し、そこから1ビット分のサンプリング値の数10ずら
した位置に、バッファポインタを設定した後、データ部
受信状態へ移行する。
The position in the sampling buffer corresponding to the detected rising edge is set as a reference point for a new bit determination, and a buffer pointer is set at a position shifted from the reference point by the number 10 of the sampling value for 1 bit. Move to the reception state.

【0058】そして、データ部受信状態へ移行した後、
サンプリングバッファからビット判定を行う。判定した
ビット値が、0から1へ反転した時点、または1から0
へ反転した時点で、次のビット判定位置を示すバッファ
ポインタの補正を行う。補正方法は、上述の実施の形態
のヘッダー部先頭で行う補正方法と同様である。0から
1へ反転した場合は、サンプリングバッファから立上り
エッジを検出する。逆に、1から0へ反転した場合は、
サンプリングバッファから立下りエッジを検出する。
Then, after shifting to the data section receiving state,
Perform bit determination from the sampling buffer. When the determined bit value is inverted from 0 to 1, or from 1 to 0
When it is inverted to, the buffer pointer indicating the next bit determination position is corrected. The correction method is the same as the correction method performed at the head of the header section in the above-described embodiment. When inverted from 0 to 1, the rising edge is detected from the sampling buffer. On the contrary, when it is reversed from 1 to 0,
Detect the falling edge from the sampling buffer.

【0059】なお、バッファポインタの補正は、判定し
たビット値が0から1へ変化する時点のみでも良く、ま
た1から0へ変化する時点のみでも良く、又は判定した
ビット値が変化するときはいつでもとしても良い。
The buffer pointer may be corrected only when the determined bit value changes from 0 to 1, or only when the determined bit value changes from 1 to 0, or whenever the determined bit value changes. Also good.

【0060】以降、データフレームの最後尾のビット値
を確定するまで、立下り/立上りエッジで上記補正を実
行しながら、ビット判定を継続する。上述の結果、送信
するタイミングが不定のデータフレームでも、データフ
レームの先頭を正確に捕らえることができ、又データ部
受信を行う前に、再度ビット判定の基準点の補正を行う
ことで、正確なデータ受信が可能である。さらに、デー
タ部内の立上りエッジ・立下りエッジで常にビット判定
位置の補正を行うので、データ部受信中に生じたビット
長の変化等を原因とする、ビット判定位置のずれによっ
て生じる、受信ビット値の誤判定による受信エラーを低
減することが可能である。
After that, until the final bit value of the data frame is determined, the bit determination is continued while the above correction is executed at the falling / rising edges. As a result, it is possible to accurately capture the beginning of a data frame even if the data frame is transmitted at an uncertain timing, and correct the reference point for bit determination again before receiving the data section to ensure accurate correction. Data can be received. Furthermore, since the bit judgment position is always corrected at the rising edge and falling edge in the data part, the received bit value caused by the deviation of the bit judgment position caused by the change in the bit length that occurred during reception of the data part. It is possible to reduce the reception error due to the erroneous determination of.

【0061】次に、本発明のさらなる実施の形態とし
て、第2の他の実施の形態を説明する。上述の他の実施
の形態では、データ部で同じビットが連続して続いた時
に、1ビットあたりのビット長に変化があった場合、受
信エラーを引き起こす可能性がある。
Next, a second other embodiment will be described as a further embodiment of the present invention. In the other embodiments described above, when the same bit continues in the data part and the bit length per bit changes, a reception error may occur.

【0062】本第2の他の実施の形態では、データ部の
特定の位置に、区切り信号を挿入し、区切り信号の位置
でビット判定の基準点を補正することで、ビット判定位
置の補正回数を削減し、同じビットが連続して送信され
た場合でも、正確にデータ受信が行える例を説明する。
In the second other embodiment, a delimiter signal is inserted at a specific position in the data part, and the reference point for bit decision is corrected at the position of the delimiter signal. Will be reduced, and an example will be described in which data can be accurately received even when the same bit is continuously transmitted.

【0063】まず、データ部に、Nビット毎に区切り信
号ビット列を挿入する。区切り信号ビット列には立下り
エッジ又は立上りエッジを必ず含むように、区切り信号
ビット列を選択する。ここではN=8とし、区切り信号
ビット列を“01”として説明する。
First, a delimiter signal bit string is inserted every N bits in the data section. The delimiter signal bit string is selected so that the delimiter signal bit string always includes a falling edge or a rising edge. Here, it is assumed that N = 8 and the delimiter signal bit string is “01”.

【0064】データ部受信処理状態に移行するまでは、
上述の他の実施の形態と同様である。そして、データ部
受信状態において、区切り信号ビット列を受信するま
で、データ部のビット判定を行う。
Until shifting to the data section reception processing state,
This is similar to the other embodiments described above. Then, in the data section reception state, the bit determination of the data section is performed until the delimiter signal bit string is received.

【0065】データ受信装置2は、区切り信号ビット列
“01”を受信した時点で、次のビット判定位置を示す
バッファポインタの補正を行う。補正方法は、上述の他
の実施の形態のヘッダー部先頭で行う補正方法と同様で
ある。
When the data receiving device 2 receives the delimiter signal bit string "01", it corrects the buffer pointer indicating the next bit determination position. The correction method is the same as the correction method performed at the head of the header section in the other embodiments described above.

【0066】以降、データフレームの最後尾ビットの値
を確定するまで、区切り信号を検出した時点で上記補正
を実行しながら、ビット判定を継続する。上述のように
して行うことにより、データ受信装置2が、データ部に
同じビット列が連続して現れるデータフレームを受信す
る場合でも、一定の間隔で挿入された区切り信号ビット
列で、ビット判定位置の基準点の補正を実行することに
より、データ部受信中に生じたビット長の変化等を原因
とする、ビット判定位置のずれによる受信エラーを低減
することが可能であり、上記他の実施の形態と比較し
て、ビット判定位置の補正の処理量を低減することが可
能である。
After that, until the value of the last bit of the data frame is determined, the bit determination is continued while performing the above correction at the time when the delimiter signal is detected. By performing as described above, even when the data receiving device 2 receives a data frame in which the same bit string appears consecutively in the data portion, the data receiving apparatus 2 uses the delimiter signal bit string inserted at regular intervals to determine the reference of the bit determination position. By performing the point correction, it is possible to reduce the reception error due to the shift of the bit determination position, which is caused by the change in the bit length that occurs during the reception of the data portion. By comparison, it is possible to reduce the amount of processing for correcting the bit determination position.

【0067】以上、本発明の実施の形態を、図面を参照
しながら説明してきたが、本発明は、以上に述べた実施
の形態に限定されるものではなく、本発明の要旨を逸脱
しない範囲内で種々の構成または形状を取ることが出来
る。
Although the embodiments of the present invention have been described with reference to the drawings, the present invention is not limited to the above-described embodiments and does not depart from the gist of the present invention. Various configurations or shapes can be taken within.

【0068】[0068]

【発明の効果】以上説明してきたように、本発明によれ
ば、ヘッダー部を含むデータフレームのシリアル通信に
おいて、データフレーム中の立下り又は立上りエッジ
に、ビット判定位置の基準点の補正を行い、ビット判定
位置の補正を行うことで、データ部の受信中、常にサン
プリング値から正しいビットデータが取得できるので、
正確なデータフレームの受信が可能となる。
As described above, according to the present invention, in the serial communication of the data frame including the header portion, the reference point of the bit determination position is corrected at the falling edge or the rising edge in the data frame. By correcting the bit judgment position, correct bit data can always be obtained from the sampling value during reception of the data part.
It is possible to receive an accurate data frame.

【0069】また、本発明によれば、送信するデータ部
の特定の位置に、区切り信号を挿入し、区切り信号の位
置でビット判定位置の基準点の補正を行い、ビット判定
位置の補正を行うことで、同じビットを連続して含むデ
ータ部を送信された場合でも、正確にデータフレームの
受信が可能となる。
Further, according to the present invention, a delimiter signal is inserted at a specific position of the data part to be transmitted, the reference point of the bit decision position is corrected at the position of the delimiter signal, and the bit decision position is corrected. As a result, it is possible to accurately receive the data frame even when the data part including the same bits consecutively is transmitted.

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

【図1】本発明を適用したデータ通信装置の基本構成を
説明するための図である。
FIG. 1 is a diagram for explaining the basic configuration of a data communication device to which the present invention has been applied.

【図2】データフレームの構造を説明するための信号波
形図である。
FIG. 2 is a signal waveform diagram for explaining the structure of a data frame.

【図3】データ部受信処理を開始する位置を示すための
信号波形図である。
FIG. 3 is a signal waveform diagram showing a position at which a data part reception process is started.

【図4】本発明におけるデータ受信処理の流れを示すフ
ローチャートである。
FIG. 4 is a flowchart showing a flow of data reception processing in the present invention.

【図5】データ受信処理の状態遷移を説明するための図
である。
FIG. 5 is a diagram for explaining a state transition of data reception processing.

【図6】データフレーム中のビットデータと受信ポート
のサンプリング値との対応関係を示す信号波形図であ
る。
FIG. 6 is a signal waveform diagram showing a correspondence relationship between bit data in a data frame and a sampling value of a reception port.

【図7】ヘッダー待ち処理の流れを示すフローチャート
である。
FIG. 7 is a flowchart showing the flow of header waiting processing.

【図8】サンプリング値からビット値を判定する方法の
1例を示す信号波形図である。
FIG. 8 is a signal waveform diagram showing an example of a method for determining a bit value from a sampling value.

【図9】ビット判定の基準位置とビット判定位置の補正
方法とを説明するための信号波形図である。
FIG. 9 is a signal waveform diagram for explaining a reference position for bit determination and a method for correcting a bit determination position.

【図10】1回のビット判定処理で2ビット判定された
場合の補正方法を説明するための信号波形図である。
FIG. 10 is a signal waveform diagram for explaining a correction method when 2-bit determination is made in one bit determination process.

【図11】ヘッダー検出処理の流れを示すフローチャー
トである。
FIG. 11 is a flowchart showing a flow of header detection processing.

【図12】データ部受信処理の流れを示すフローチャー
トである。
FIG. 12 is a flowchart showing the flow of a data part reception process.

【図13】データ部でビット判定位置の補正を実行する
個所を説明するための信号波形図である。
FIG. 13 is a signal waveform diagram for explaining a portion where correction of a bit determination position is executed in a data part.

【図14】データ部において、ビット判定位置補正の方
法を説明するための信号波形図である。
FIG. 14 is a signal waveform diagram for explaining a method of correcting a bit determination position in a data part.

【図15】他の実施の形態、第2の他の実施の形態を説
明するための信号波形図である。
FIG. 15 is a signal waveform diagram for explaining another embodiment and a second other embodiment.

【図16】他の実施の形態、第2の他の実施の形態を説
明するための信号波形図である。
FIG. 16 is a signal waveform diagram for explaining another embodiment and a second other embodiment.

【図17】サンプリング間隔や送信タイミングよって
は、送信データの先頭を取り逃すことがあるという従来
の問題点を説明するための図である。
FIG. 17 is a diagram for explaining a conventional problem that the beginning of transmission data may be missed depending on a sampling interval or transmission timing.

【図18】信号のビット幅の間延びや、信号ノイズを原
因とするデータビット値の誤判定により、シリアル通信
装置間の通信信頼性の低下をまねくという従来の問題点
を説明するための図である。
FIG. 18 is a diagram for explaining a conventional problem that the reliability of communication between serial communication devices is deteriorated due to the extension of the bit width of a signal or the erroneous determination of a data bit value due to signal noise. is there.

【符号の説明】[Explanation of symbols]

1 データ送信装置 2 データ受信装置 3 データ伝送路 11 データ送信処理部 12 送信ポート 21 データ受信処理部 22 受信ポート 1 Data transmitter 2 Data receiving device 3 data transmission lines 11 Data transmission processing unit 12 sending ports 21 Data reception processing unit 22 Receive port

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 データをシリアル通信で送受信するデー
タ通信装置において、 前記データに、データの正当性を判断する信号識別デー
タを付した、1データ送信単位であるデータフレームを
受信するデータ受信部と、 前記データ受信部が受信したデータフレーム内の信号エ
ッジで、前記データフレーム内のビット判定の基準点を
補正することにより、ビット判定位置を補正するビット
判定位置補正手段と、 前記ビット判定位置補正手段により補正されたビット判
定位置に基づいて、前記データ受信部が受信したデータ
の正当性を判断するデータ正当性判断手段と、を備えた
ことを特徴とするデータ通信装置。
1. A data communication device for transmitting and receiving data by serial communication, comprising: a data receiving unit for receiving a data frame, which is one data transmission unit, in which signal identification data for judging the validity of the data is attached to the data. A bit determination position correcting means for correcting a bit determination position by correcting a bit determination reference point in the data frame at a signal edge in the data frame received by the data receiving unit; A data communication device comprising: a data validity determining unit that determines the validity of the data received by the data receiving unit based on the bit determination position corrected by the means.
【請求項2】 前記データ受信手段は、信号エッジを含
む区切り信号が付加されたデータフレームを受信し、 前記ビット判定位置補正手段は、前記区切り信号内の信
号エッジでビット判定の基準点を補正することを特徴と
する請求項1に記載のデータ通信装置。
2. The data receiving unit receives a data frame to which a delimiter signal including a signal edge is added, and the bit determination position correction unit corrects a reference point for bit determination with a signal edge in the delimiter signal. The data communication device according to claim 1, wherein
【請求項3】 請求項1または2に記載のデータ通信装
置に対して、データの正当性を判断する信号識別データ
を付した、1データ送信単位であるデータフレームを送
信するデータ送信部を備えたことを特徴とするデータ通
信装置。
3. The data communication device according to claim 1, further comprising a data transmission unit for transmitting a data frame which is one data transmission unit with signal identification data for determining the validity of data. A data communication device characterized by the above.
【請求項4】 前記データ送信部は、信号エッジを含む
区切り信号が付加されたデータフレームを送信すること
を特徴とする請求項3に記載のデータ通信装置。
4. The data communication device according to claim 3, wherein the data transmission unit transmits a data frame to which a delimiter signal including a signal edge is added.
【請求項5】 データをシリアル通信で送受信するデー
タ通信装置におけるデータ通信方法であって、 前記データに、データの正当性を判断する信号識別デー
タを付した、1データ送信単位であるデータフレームを
受信し、 前記受信したデータフレーム内の信号エッジで、前記デ
ータフレーム内のビット判定の基準点を補正することに
より、ビット判定位置を補正し、 前記補正されたビット判定位置に基づいて、前記受信し
たデータの正当性を判断することを特徴とするデータ通
信方法。
5. A data communication method in a data communication device for transmitting and receiving data by serial communication, wherein a data frame which is one data transmission unit in which signal identification data for judging the validity of data is added to the data frame. Receiving, correcting the bit determination position by correcting the reference point of the bit determination in the data frame at the signal edge in the received data frame, and based on the corrected bit determination position, the reception A data communication method characterized by determining the validity of the received data.
JP2002121693A 2002-04-24 2002-04-24 Data communication device and data communication method Withdrawn JP2003318998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002121693A JP2003318998A (en) 2002-04-24 2002-04-24 Data communication device and data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002121693A JP2003318998A (en) 2002-04-24 2002-04-24 Data communication device and data communication method

Publications (1)

Publication Number Publication Date
JP2003318998A true JP2003318998A (en) 2003-11-07

Family

ID=29537518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002121693A Withdrawn JP2003318998A (en) 2002-04-24 2002-04-24 Data communication device and data communication method

Country Status (1)

Country Link
JP (1) JP2003318998A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008141668A (en) * 2006-12-05 2008-06-19 Sumitomo Electric Ind Ltd Optical receiver
CN110045304A (en) * 2019-04-16 2019-07-23 维沃移动通信有限公司 Data wire detection method, terminal device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008141668A (en) * 2006-12-05 2008-06-19 Sumitomo Electric Ind Ltd Optical receiver
CN110045304A (en) * 2019-04-16 2019-07-23 维沃移动通信有限公司 Data wire detection method, terminal device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US12362857B2 (en) Communication device and communication system
CN109075742B (en) Baud rate calibration circuit and serial port chip
CN116420337A (en) digital radio receiver
CN105955915B (en) A kind of parallel data goes the method, apparatus and system of deflection
JPH05160815A (en) Error recovery processing method in consecutive transmission system
JP2003318998A (en) Data communication device and data communication method
KR100307002B1 (en) Method and system for processing signals for use in a wireless communication system
CN110535621B (en) Serial port communication baud rate correction device and correction method thereof
JPH0666777B2 (en) Method and device for synchronizing digital information signal
US6718509B2 (en) Error bit correcting method for use in time-division multiple access system and bit correcting circuit
US7292669B2 (en) Null symbol detection device
CN112019318A (en) Method for improving communication reliability of equipment
JP2003298663A (en) Data communication device and data communication method
KR100386558B1 (en) fast detection method for data rate
US8214722B2 (en) Method and system for signal error determination and correction in a flexray communication system
JP2667302B2 (en) Cell synchronization method and packet communication device
JPH0537549A (en) Cell discard error detection / dummy cell insertion error cell removal method
US7760837B2 (en) Synchronization determination method and apparatus
US20090052510A1 (en) Device, method, and program for signal analysis, and recording medium
KR20130068026A (en) Method and apparatus for correcting error in communication system
US20030123578A1 (en) Method for determining connection quality, and a receiver
KR20030069805A (en) Digital demodulation device and synchronization detecting method
JPH08330979A (en) Error correction device
JP2001156762A (en) Unique word detection circuit and unique word detection method
JP4914202B2 (en) Burst signal detection method and ARQ communication demodulator

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040218

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050705