JP2004032429A - Communication speed setting device - Google Patents

Communication speed setting device Download PDF

Info

Publication number
JP2004032429A
JP2004032429A JP2002186738A JP2002186738A JP2004032429A JP 2004032429 A JP2004032429 A JP 2004032429A JP 2002186738 A JP2002186738 A JP 2002186738A JP 2002186738 A JP2002186738 A JP 2002186738A JP 2004032429 A JP2004032429 A JP 2004032429A
Authority
JP
Japan
Prior art keywords
communication
communication speed
speed
reception
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002186738A
Other languages
Japanese (ja)
Inventor
Akio Ogawa
小川 明生
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002186738A priority Critical patent/JP2004032429A/en
Publication of JP2004032429A publication Critical patent/JP2004032429A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an automatic following method which is obtained by a relatively small circuit with less provability of false detection, and can be applied also to a communication format of, for example, a frame type on the premise that a communication speed is brought in line by a satellite. <P>SOLUTION: This device comprises a frame error check circuit 232 detecting the presence of a data error in the satellite 20, a receiving frequency counter 234 detecting the normal reception of a specified frequency with no data error within a specified time frame, and a receiving time timer 235 and a speed setting value counter 236 that sequentially change the communication speed when the normal reception of the specified frequency within the specified time frame is not conducted and fix the communication speed when the normal reception of the specified frequency within the specified time frame is conducted. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、データを送信する上位機器(主局)と受信する機器(従局)との通信において、従局の通信速度を主局の通信速度に合わせる通信速度設定装置に関するものである。
【0002】
【従来の技術】
主局と従局との複数の機器間にてデータ通信を行う場合、受信側の通信速度を送信側の通信速度に一致させる必要がある。この場合、従来ではスイッチもしくは不揮発メモリを各機器に備えて通信速度を設定することにより通信速度を一致させる手段をもつか、通信速度を自動的に一致させるための手段を主局もしくは従局に設けるという方策がある。
【0003】
【発明が解決しようとする課題】
スイッチもしくは不揮発メモリを各機器に備えて通信速度を設定する方式では、通信速度を設定する機器が多数存在する場合、各機器ごとに設定作業を行うことになるので、設定のための労力も大きくなり、また設定ミスを起こす可能性も高くなるという問題がある。
【0004】
通信速度を自動的に一致させる手段を主局に持つ場合、主局と従局が通信中の状態では、同じ回線上に通信速度未設定の他の従局が接続された際、その従局の通信速度を合わせるための働きを主局が行うことになるため、既に通信中の従局の通信が乱されることとなる。
【0005】
また、従局のみにて通信速度を一致させる手段を持つ方策としては、主局から送られる信号の信号波形自体を測定し、その測定結果から通信速度を求める方法、主局から送出される特定のデータパターンを検出する方法、受信回路や速度検出回路を通信速度別に複数備え、この中から適した受信回路や速度検出回路を選択して通信速度を選び出す方法がある。
【0006】
このうち、信号波形自体を計測する方法は、本来必要である受信回路とは別に、波形計測の為の専用の回路が別途必要となる。また、波形ひずみやノイズの多い環境では信号波形を誤って検出する可能性も高い。
【0007】
また、主局から送出される特定のデータパターンを検出する方法では、その特定のデータパターンを持つ通信フォーマットを従局にて予め採用しておく必要がある。
【0008】
更に、受信回路や速度検出回路を通信速度別に複数持つ場合は、従局夫々に多数の通信速度設定機能を有することになり、回路規模がその分大きくなる。
【0009】
そこで、上述の方式を採用せず従局のみにて通信速度を一致させる別の方策として、一つの受信回路の通信速度を順次切り替え、通信速度が一致したかどうかを検出する方式とすることを取り上げた。この方式の特徴としては、多数の通信速度を設定していても比較的少ない回路規模にて通信速度を一致させることができる。ところがこの場合、通信速度が一致したかどうかの検出方法と、通信速度を切り替える条件設定等の問題が生ずる。
【0010】
このような方策を採用する先行技術としては、例えば、特開平8−8990号公報では、受信エラーが1ないし複数回検出された時点で通信速度を切り替え、他の通信速度での速度検出を試みることが開示されている。ところが、この方式の問題点は、通信形式がフラグから始まるフレーム形式の場合、通信速度が合わない状態ではフラグの検出ができず、フレームの開始を読み取ることができなくなり、結果として受信エラーの検出ができなくなるため、適用が困難となるという点があげられる。
【0011】
この発明は、上述に鑑みてなされたもので、従局により通信速度を一致させることを前提として、比較的小さい回路規模にて実現でき、誤検出の可能性が少なく、例えばフレーム形式の通信フォーマットにも受信エラーの検出が可能で適用可能である自動追従方式の通信速度設定装置の提供を目的とする。
【0012】
【課題を解決するための手段】
上記目的を達成するため、この発明にかかる通信速度設定装置は、上位機器(主局)から下位機器(従局)へデジタルデータを定期的に送出する通信装置において、下位機器に、データエラーの有無を検出する手段と、所定の時間内にデータエラーの無い所定の回数の正常受信を検出する手段と、所定の時間内で所定の回数の正常受信が行えない場合に通信速度を順次切り替えかつ所定の時間内で所定の回数の正常受信を行った場合に通信速度を固定する手段と、を有することを特徴とする。
【0013】
この発明によれば、従来のように速度検出回路を通信速度別に複数持つことなく回路規模を小さくでき、信号波形を誤検出することなく、受信エラーも検出でき、主局の通信速度に対して従局が自動的に追従することができて、利用者による設定の手間を減らすことができ、利用者への利便性が向上する。また、通信速度の自動設定を行うに当たり主局からの通信の受信のみを行えば良く、交信する必要が無いため、既に主局と他の従局が通信中である通信回線に、新たな従局が追加されるといった場合でも、既に通信中の局に影響を与えることなく新たな従局の通信速度設定ができる。
【0014】
つぎの発明にかかる通信速度設定装置は、上記の発明において、所定の時間を、通信速度に対応して複数種類変化させることを特徴とする。
【0015】
この発明によれば、規定時間を受信通信速度に応じて複数種類変えることにより、より短い時間で通信速度を追従することが可能となる。
【0016】
つぎの発明にかかる通信速度設定装置は、上記の発明において、データエラーの有無の検出は、フレーム形式の通信フォーマット、及びキャラクタ形式の通信フォーマットのいずれかを対象として行うことを特徴とする。
【0017】
この発明によれば、フレーム形式の通信フォーマットのみならず、他のキャラクタ形式においても適用が可能となる。
【0018】
つぎの発明にかかる通信速度設定装置は、上記の発明において、通信速度の順次切り替えは、速度設定値の複数種類を順に廻らす速度設定値カウンタによることを特徴とする。
【0019】
この発明によれば、従来のような手動設定ではなく自動設定を可能とする。
【0020】
【発明の実施の形態】
以下に添付図面を参照して、この発明にかかる通信速度設定装置の好適な実施の形態を詳細に説明する。
【0021】
図1は、この発明の実施の形態である通信速度設定装置の構成を示すブロック図である。図1においては、主制御装置10にて、離れた場所にある複数の外部機器(図示省略)を、複数のリモート入出力装置20を経由して操作制御する状態を示している。
【0022】
図1において、主局側の主制御装置10は、制御回路11、送信回路12、受信回路13、送信用ドライバ14、受信用レシーバ15からなる。また、従局側のリモート入出力装置20は、図1では複数台あって、制御回路21、送信回路22、受信回路23、送信用ドライバ24、受信用レシーバ25、外部機器からの入力回路26、外部機器への出力回路27からなる。主制御装置10と複数のリモート入出力装置20とは、通信用電線1にて接続されている。
【0023】
このような図1にあって、主制御装置10の制御回路11にて作られた外部機器への制御内容は、送信回路12、送信用ドライバ14を介して通信用電線1にてリモート入出力装置20へ送られ、リモート入出力装置20では、受信用レシーバ25、受信回路23を経て制御回路21で処理が行なわれた後、出力回路27から外部機器へ出力される。同様に、リモート入出力装置20が外部機器から入力回路26を介して制御回路21に取り込んだ情報は、送信回路22、送信用ドライバ24を介して通信用電線1にて主制御装置10へと送られ、主制御装置10では、受信用レシーバ15、受信回路13を介して制御回路11にて処理が行われる。
【0024】
この場合、主制御装置10とリモート入出力装置20との間の通信速度は、通信する情報量や通信距離に応じた設定速度が必要であり、利用者が、例えば2.5Mbps、625kbps、156kbpsの中から選択し、主制御装置10に対して速度設定を行なうことになる。この速度設定については、後述する。
【0025】
また、主制御装置10からリモート入出力装置20へのデータ伝送は、制御内容を伝達するのに定時性(リアルタイム性)を持たせるため、主制御装置10からの通信は一定の周期で行なわれる。これは、一定時間内に制御内容を伝達する必要があることによるためである。図1では、複数台のリモート入出力装置20について示すが、仮に一台のリモート入出力装置20のみを主制御装置10に接続したとしてもデータ通信の特質上周期性をもって通信が行われる。
【0026】
図2は、本実施の形態におけるリモート入出力装置20内部の受信回路23のブロック図を示し、図3は、図2と対比させた前述したスイッチもしくは不揮発メモリを各機器に備えて通信速度を設定する方式の従来例のブロック図を示す。図2と図3との差異は、図2では通信クロック生成回路233に対する速度設定回路として速度設定値カウンタ236を有し、更に受信時間タイマ235及び受信回数カウンタ234を有するのであるが、図3の従来例では、通信クロック生成回路233に対する速度設定回路として通信速度をスイッチもしくは不揮発メモリの設定にて指定する通信速度設定回路237を有するだけである。このため、図3の構成では、機器が多数存在すると各機器ごとに設定作業を行うことになることは、前述したとおりである。
【0027】
図2に戻り、受信回路23では、復調・同期回路231、フレームエラーチェック回路232、通信速度を直接生成する通信クロック生成回路233、正常受信完了回数を計数する受信回数カウンタ234、規定時間を設定する受信時間タイマ235、計数値を複数の通信速度に対応させるための速度設定値カウンタ236を有する。
【0028】
図2において、図1の受信用レシーバ25を経て取り込まれた受信データは、復調・同期回路231によるデータ同期化処理及び復調処理を行った後、フレームエラーチェック回路232にて受信したデータに異常が無いかのエラーチェックをフレーム単位で行なう。この場合、通信速度の一致/不一致についても受信データの正常/異常としてチェックが行なわれる。そして、正常なデータと判断されれば、そのデータは図1に示す次段の制御回路21にて処理が行なわれる。
【0029】
通信クロック生成回路233では、通信速度の基準となるクロックを生成し、この受信回路23及び送信回路22にて用いることになる。すなわち、ここでは例えば2.5Mbps、625kbps、156kbpsに対応するクロックが生成される。このクロックを通信速度に応じて変化させることにより、夫々の通信速度にて送受信が可能となる。
【0030】
この通信クロック生成回路233を制御し通信速度設定値を指定するために速度設定値カウンタ236が備えられる。この速度設定値カウンタ236による通信速度設定値の初期状態は、この例では2.5Mbpsとなっており、受信時間タイマ235からのタイムアップ信号を受けるたびに速度設定値カウンタ236の計数値が廻って、625kbps、156kbps、再び2.5Mbpsと順に変化する。
【0031】
また、速度設定値カウンタ236にタイムアップ信号を入力する受信時間タイマ235は、電源の投入にて動作を開始し規定時間の経過にてタイムアップする。すなわち、一定時間である規定時間ごとに速度設定値カウンタ236の速度設定値に対応する計数値を更新する役目を有する。受信時間タイマ235は、タイムアップ時にて速度設定値カウンタ236にタイムアップ信号を送り通信速度設定値を更新させるのみならず、受信回数カウンタ234にタイムアップ信号を送ってこの受信回数カウンタ234をリセットすると共に、受信時間タイマ235自体もリセットする。なお、速度設定値カウンタ236による通信速度設定値の更新に当たって、通信速度設定値を受信時間タイマ235に戻し、通信速度設定値に応じてタイマの計数時間を変更するようにしても良い。
【0032】
受信回数カウンタ234は、フレームエラーチェック回路232の正常受信完了信号の回数を計数する。すなわち、電源の投入に伴い受信回数カウンタ234がセットされ、規定回数(本例では2回)の正常受信にてカウントアップ信号が受信時間タイマ235に送られて受信時間タイマ235を停止させる。正常受信完了信号が受信回数カウンタ234に入力されない場合には、受信回数カウンタ234から受信時間タイマ235へのカウントアップ信号は出力せず、受信時間タイマ235の規定時間によるタイムアップ信号にて受信回数カウンタ234がリセットされることになる。なおこの場合、ここで受信時間タイマ235の規定時間と受信回数カウンタ234の規定回数との関係は、主制御装置10が規定時間内に規定回数以上のデータ送信を行うことを条件とする。
【0033】
次に、図4を参照しつつ図2の動作を説明する。図4において、(A)に復調・同期回路231からフレームエラーチェック回路232への受信データ(通信速度156kbps)を示し、(B)に受信時間タイマ235から速度設定値カウンタ236を更新し受信回数カウンタ234をリセットするタイムアップ信号を示し、(C)に速度設定値カウンタ236の更新設定動作を示し、(D)にフレームエラーチェック回路232から受信回数カウンタ234への正常受信完了信号を示し、そして、(E)に受信回数カウンタ234のセット及び計数値を示す。
【0034】
電源の投入時の初期状態にて、受信時間タイマ235が起動し、速度設定値カウンタ236が2.5Mbpsの通信速度設定値を設定し、受信回数カウンタ234がセット状態にあるとき、主制御装置10から156kbpsの受信データが伝送されていると、リモート入出力装置20での受信回路23にて、最初は速度設定値カウンタ236による2.5Mbpsの速度にて受信を試みるが、実際の主制御装置10からの通信速度が156kbpsであるので、データ受信速度と送られてくるデータの速度が異なることとなり、データの受信に失敗するため、フレームエラーチェック回路232では正常受信完了信号は発生せず、受信回数カウンタ234ではこの正常受信完了信号の計数はない。またこのために、規定時間の経過にて受信時間タイマ235がタイムアップする。この時点が図4(F)である。その際、受信時間タイマ235が受信回数カウンタ234をリセットすると共に、速度設定値カウンタ236を更新し、通信速度設定値を625kbpsに変更して、再び受信時間タイマ235は時間計測を行なう。
【0035】
次いで、通信速度設定値を625kbpsとしても、主制御装置10からの通信速度が156kbpsであるので、データ受信速度と送られてくるデータの速度が異なることとなり上記と同様にデータ受信に失敗する。また、上記と同様に受信回数カウンタ234では正常受信完了信号の計数はなく、規定の時間の経過にて受信時間タイマ235がタイムアップする。この時点が図4(G)である。この時、受信回数カウンタ234をリセットすると共に、速度設定値カウンタ236を更新し、通信速度設定値を156kbpsとして、再び受信時間タイマ235は時間計測を行なう。
【0036】
この状態において、主制御装置10からの通信速度と復調・同期回路231の速度設定が同じであるため、主制御装置10からの通信データを正常に受信することができ、各フレームごとにフレームエラーチェック回路232から正常受信完了信号が受信回数カウンタ234に送られ計数される。この最初のフレームによる完了信号発生時を図4(H)及び二番目のフレームによる完了信号発生時を図4(J)に示す。
【0037】
規定時間と規定回数との関係から、受信時間タイマ235が規定時間の経過にてタイムアップする前に、主制御装置10からの通信データを規定回数以上受信できるため、受信回数カウンタ234は規定回数(2回)を計数した時点で受信時間タイマ235を停止させる。そのときの時点が図4(J)である。
【0038】
そして、受信時間タイマ235の停止により、速度設定値カウンタ236にタイムアップ信号が送られなくなるため、速度設定値カウンタ236の値は固定される。結果として、主制御装置10からの通信速度と復調・同期回路(受信回路)231の速度設定が一致した状態のままとなり、自動による速度設定が実現される。
【0039】
なお、上述の規定回数については、2回としたのであるが、この回数は別段限るものではなく、1回でもあるいは3回等の複数回でもよい。ただし、決められた規定回数は、規定時間内に存在する必要がある。
【0040】
また上記受信データの単位としてフレーム形式の通信フォーマットについて述べたが、キャラクタ形式の通信フォーマットについても適用できる。
【0041】
【発明の効果】
以上説明したように、この発明によれば、上位機器(主局)から下位機器(従局)へデジタルデータを定期的に送出する通信装置において、下位機器に、データエラーの有無を検出する手段と、所定の時間内にデータエラーの無い所定の回数の正常受信を検出する手段と、所定の時間内で所定の回数の正常受信が行えない場合に通信速度を順次切り替えかつ所定の時間内で所定の回数の正常受信を行った場合に通信速度を固定する手段と、を有することにより、従来のように速度検出回路を通信速度別に複数持つことなく回路規模を小さくでき、信号波形を誤検出することなく、受信エラーも検出でき、主局の通信速度に対して従局が自動的に追従することができて、利用者による設定の手間を減らすことができ、利用者への利便性が向上する。また、通信速度の自動設定を行うに当たり主局からの通信の受信のみを行えば良く、交信する必要が無いため、既に主局と他の従局が通信中である通信回線に、新たな従局が追加されるといった場合でも、既に通信中の局に影響を与えることなく新たな従局の通信速度設定ができる。
【0042】
つぎの発明によれば、所定の時間を、通信速度に対応して複数種類変化させることにより、より短い時間で通信速度を追従することが可能となる。
【0043】
つぎの発明によれば、データエラーの有無の検出は、フレーム形式の通信フォーマット、及びキャラクタ形式の通信フォーマットのいずれかを対象として行うことにより、フレーム形式の通信フォーマットのみならず、他のキャラクタ形式においても適用が可能となる。
【0044】
つぎの発明によれば、通信速度の順次切り替えは、速度設定値の複数種類を順に廻らす速度設定値カウンタによることにより、従来のような手動設定ではなく自動設定を可能とする。
【図面の簡単な説明】
【図1】この発明の実施の形態である通信速度設定装置の構成を示すブロック図である。
【図2】本実施の形態におけるリモート入出力装置内部の受信回路のブロック図である。
【図3】図2と対比させた従来例の受信回路のブロック図である。
【図4】図2に示した受信回路のタイムチャートである。
【符号の説明】
10 主制御装置、20 リモート入出力装置、23 受信回路、231 復調・同期回路、232 フレームエラ−チェック回路、233 通信クロック生成回路、234 受信回数カウンタ、235 受信時間タイマ、236速度設定値カウンタ。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a communication speed setting device that adjusts the communication speed of a slave station to the communication speed of a master station in communication between a higher-level device (master station) that transmits data and a device (slave station) that receives data.
[0002]
[Prior art]
When performing data communication between a plurality of devices of a master station and a slave station, it is necessary to match the communication speed of the receiving side with the communication speed of the transmitting side. In this case, conventionally, a switch or a non-volatile memory is provided in each device to set a communication speed, and a means for matching the communication speed is provided, or a means for automatically matching the communication speed is provided in the master station or the slave station. There is a measure.
[0003]
[Problems to be solved by the invention]
In a system in which a switch or a non-volatile memory is provided in each device to set the communication speed, when there are many devices for which the communication speed is set, the setting work is performed for each device, so the setting labor is large. In addition, there is a problem that the possibility of setting errors increases.
[0004]
If the master station has a means to automatically match the communication speed, if the master station and slave station are communicating, when another slave station with unset communication speed is connected on the same line, the communication speed of that slave station will be Is performed by the master station, so that the communication of the slave station that is already communicating is disturbed.
[0005]
In addition, as a measure having means for matching the communication speed only at the slave station, a method of measuring the signal waveform itself of the signal sent from the master station and obtaining the communication speed from the measurement result, a specific method sent from the master station, There is a method of detecting a data pattern, a method of providing a plurality of receiving circuits and speed detecting circuits for each communication speed, and selecting an appropriate receiving circuit and speed detecting circuit from among them to select a communication speed.
[0006]
Among them, the method of measuring the signal waveform itself requires a dedicated circuit for waveform measurement separately from the originally required receiving circuit. In an environment with a lot of waveform distortion and noise, there is a high possibility that a signal waveform is erroneously detected.
[0007]
In the method of detecting a specific data pattern sent from the master station, it is necessary for the slave station to adopt a communication format having the specific data pattern in advance.
[0008]
Further, when a plurality of receiving circuits and speed detecting circuits are provided for each communication speed, each slave station has a large number of communication speed setting functions, and the circuit scale is increased accordingly.
[0009]
Therefore, as another measure to match the communication speed only by the slave stations without employing the above-mentioned method, the method of sequentially switching the communication speed of one receiving circuit and detecting whether or not the communication speeds match is taken up. Was. The feature of this method is that even if a large number of communication speeds are set, the communication speeds can be matched with a relatively small circuit scale. However, in this case, there arise problems such as a method of detecting whether or not the communication speeds match, and setting of conditions for switching the communication speed.
[0010]
As a prior art adopting such a measure, for example, in Japanese Patent Application Laid-Open No. H8-8990, the communication speed is switched when a reception error is detected one or more times, and an attempt is made to detect the speed at another communication speed. It is disclosed. However, the problem with this method is that if the communication format is a frame format starting with a flag, the flag cannot be detected if the communication speed does not match, and the start of the frame cannot be read, resulting in the detection of a reception error. This makes application difficult.
[0011]
The present invention has been made in view of the above, and can be realized with a relatively small circuit scale on the premise that the communication speeds are made to match by slave stations, and the possibility of erroneous detection is small. It is another object of the present invention to provide a communication speed setting device of an automatic tracking system capable of detecting a reception error and being applicable.
[0012]
[Means for Solving the Problems]
In order to achieve the above object, a communication speed setting device according to the present invention is a communication device for periodically transmitting digital data from a higher-level device (master station) to a lower-level device (slave station). Means for detecting a predetermined number of normal receptions without a data error within a predetermined time, and sequentially switching the communication speed when a predetermined number of normal receptions cannot be performed within a predetermined time. Means for fixing the communication speed when a predetermined number of normal receptions have been performed within the time period.
[0013]
According to the present invention, the circuit scale can be reduced without having a plurality of speed detection circuits for each communication speed as in the prior art, a reception error can be detected without erroneously detecting a signal waveform, and the communication speed of the master station can be reduced. The slave station can automatically follow up, the trouble of setting by the user can be reduced, and the convenience for the user improves. In addition, when performing automatic setting of the communication speed, it is only necessary to receive communication from the master station, and there is no need to perform communication.Therefore, a new slave station is connected to a communication line on which the master station and another slave station are already communicating. Even in the case of addition, the communication speed of a new slave station can be set without affecting stations already communicating.
[0014]
A communication speed setting device according to the next invention is characterized in that, in the above invention, a plurality of types of the predetermined time are changed in accordance with the communication speed.
[0015]
According to the present invention, it is possible to follow the communication speed in a shorter time by changing a plurality of types of the specified time according to the reception communication speed.
[0016]
The communication speed setting device according to the next invention is characterized in that, in the above invention, the detection of the presence / absence of a data error is performed with respect to one of a frame format communication format and a character format communication format.
[0017]
According to the present invention, application is possible not only in a frame format communication format but also in other character formats.
[0018]
A communication speed setting device according to the next invention is characterized in that, in the above invention, the sequential switching of the communication speed is performed by a speed setting value counter that sequentially rotates a plurality of types of the speed setting values.
[0019]
According to the present invention, automatic setting can be performed instead of manual setting as in the related art.
[0020]
BEST MODE FOR CARRYING OUT THE INVENTION
Preferred embodiments of a communication speed setting device according to the present invention will be described below in detail with reference to the accompanying drawings.
[0021]
FIG. 1 is a block diagram showing a configuration of a communication speed setting device according to an embodiment of the present invention. FIG. 1 shows a state in which the main controller 10 controls the operation of a plurality of external devices (not shown) at remote locations via the plurality of remote input / output devices 20.
[0022]
In FIG. 1, a main controller 10 on the main station side includes a control circuit 11, a transmission circuit 12, a reception circuit 13, a transmission driver 14, and a reception receiver 15. 1, there are a plurality of remote input / output devices 20 on the slave side, and a control circuit 21, a transmission circuit 22, a reception circuit 23, a transmission driver 24, a reception receiver 25, an input circuit 26 from an external device, It comprises an output circuit 27 to an external device. The main control device 10 and the plurality of remote input / output devices 20 are connected by the communication wire 1.
[0023]
In FIG. 1, the contents of control performed on the external device by the control circuit 11 of the main control device 10 are transmitted and received by the communication wire 1 via the transmission circuit 12 and the transmission driver 14. The signal is sent to the device 20, and in the remote input / output device 20, the signal is processed by the control circuit 21 via the receiving receiver 25 and the receiving circuit 23, and then output from the output circuit 27 to an external device. Similarly, the information input by the remote input / output device 20 to the control circuit 21 from the external device via the input circuit 26 is transmitted to the main control device 10 via the communication circuit 1 via the transmission circuit 22 and the transmission driver 24. In the main controller 10, the processing is performed in the control circuit 11 via the receiving receiver 15 and the receiving circuit 13.
[0024]
In this case, the communication speed between the main control device 10 and the remote input / output device 20 needs to be set according to the amount of information to be communicated and the communication distance, and the user needs, for example, 2.5 Mbps, 625 kbps, and 156 kbps. And speed setting is performed for main controller 10. This speed setting will be described later.
[0025]
Further, since data transmission from the main control device 10 to the remote input / output device 20 has a fixed time (real-time property) for transmitting control contents, communication from the main control device 10 is performed at a constant cycle. . This is because the control contents need to be transmitted within a certain period of time. FIG. 1 shows a plurality of remote input / output devices 20, but even if only one remote input / output device 20 is connected to the main control device 10, communication is performed with a characteristic periodicity of data communication.
[0026]
FIG. 2 is a block diagram of a receiving circuit 23 inside the remote input / output device 20 according to the present embodiment, and FIG. 3 is a diagram illustrating a configuration in which each device is provided with the above-described switch or nonvolatile memory as compared with FIG. FIG. 2 shows a block diagram of a conventional example of a setting method. The difference between FIG. 2 and FIG. 3 is that FIG. 2 has a speed setting value counter 236 as a speed setting circuit for the communication clock generation circuit 233, and further has a reception time timer 235 and a reception number counter 234. In the conventional example, only a communication speed setting circuit 237 for designating a communication speed by setting a switch or a nonvolatile memory is provided as a speed setting circuit for the communication clock generation circuit 233. For this reason, as described above, in the configuration of FIG. 3, if there are a large number of devices, the setting work is performed for each device, as described above.
[0027]
Returning to FIG. 2, in the receiving circuit 23, a demodulation / synchronization circuit 231, a frame error check circuit 232, a communication clock generation circuit 233 for directly generating a communication speed, a reception frequency counter 234 for counting the number of times of normal reception completion, and a specified time are set. And a speed setting value counter 236 for making the count value correspond to a plurality of communication speeds.
[0028]
In FIG. 2, after the data received via the receiving receiver 25 of FIG. 1 is subjected to data synchronization processing and demodulation processing by the demodulation / synchronization circuit 231, the data received by the frame error check circuit 232 is abnormal. Error check is performed for each frame. In this case, a check is made as to whether the received data is normal or abnormal, even if the communication speeds match / mismatch. If it is determined that the data is normal, the data is processed by the next-stage control circuit 21 shown in FIG.
[0029]
The communication clock generation circuit 233 generates a clock serving as a reference for the communication speed, and uses the clock in the reception circuit 23 and the transmission circuit 22. That is, here, clocks corresponding to, for example, 2.5 Mbps, 625 kbps, and 156 kbps are generated. By changing this clock according to the communication speed, transmission and reception can be performed at each communication speed.
[0030]
A speed set value counter 236 is provided to control the communication clock generation circuit 233 and specify a communication speed set value. The initial state of the communication speed set value by the speed set value counter 236 is 2.5 Mbps in this example, and the count value of the speed set value counter 236 turns every time a time-up signal is received from the reception time timer 235. Therefore, it changes in the order of 625 kbps, 156 kbps, and again 2.5 Mbps.
[0031]
The reception time timer 235 for inputting a time-up signal to the speed set value counter 236 starts operation when the power is turned on, and time-ups when a specified time has elapsed. In other words, it has a role of updating the count value corresponding to the speed set value of the speed set value counter 236 every specified time that is a fixed time. The reception time timer 235 not only sends a time-up signal to the speed set value counter 236 to update the communication speed set value when the time is up, but also sends a time-up signal to the reception number counter 234 to reset the reception number counter 234. At the same time, the reception time timer 235 itself is reset. When the communication speed set value is updated by the speed set value counter 236, the communication speed set value may be returned to the reception time timer 235, and the counting time of the timer may be changed according to the communication speed set value.
[0032]
The reception number counter 234 counts the number of times of the normal reception completion signal of the frame error check circuit 232. In other words, the reception number counter 234 is set when the power is turned on, and a count-up signal is sent to the reception time timer 235 upon normal reception of the specified number (two times in this example), and the reception time timer 235 is stopped. If the normal reception completion signal is not input to the reception counter 234, the count-up signal is not output from the reception counter 234 to the reception time timer 235, and the number of receptions is determined by the time-up signal based on the specified time of the reception time timer 235. The counter 234 will be reset. In this case, the relationship between the specified time of the reception time timer 235 and the specified number of times of the reception counter 234 is based on the condition that the main controller 10 transmits data more than the specified number of times within the specified time.
[0033]
Next, the operation of FIG. 2 will be described with reference to FIG. 4A shows received data (communication speed: 156 kbps) from the demodulation / synchronization circuit 231 to the frame error check circuit 232, and FIG. 4B shows the reception time timer 235 updating the speed set value counter 236 and the number of receptions. A time-up signal for resetting the counter 234; (C) an update setting operation of the speed set value counter 236; (D) a normal reception completion signal from the frame error check circuit 232 to the reception counter 234; (E) shows the set value and count value of the reception counter 234.
[0034]
In the initial state when the power is turned on, the reception time timer 235 is started, the speed set value counter 236 sets the communication speed set value of 2.5 Mbps, and when the reception number counter 234 is set, the main control device When the received data of 10 to 156 kbps is transmitted, the receiving circuit 23 of the remote input / output device 20 first tries to receive at the speed of 2.5 Mbps by the speed set value counter 236, but the actual main control is performed. Since the communication speed from the device 10 is 156 kbps, the data reception speed and the speed of the transmitted data are different, and the data reception fails. Therefore, the frame error check circuit 232 does not generate the normal reception completion signal. The reception count counter 234 does not count this normal reception completion signal. For this reason, the reception time timer 235 times out after the specified time has elapsed. This time is shown in FIG. At this time, the reception time timer 235 resets the reception number counter 234, updates the speed set value counter 236, changes the communication speed set value to 625 kbps, and again measures the time.
[0035]
Next, even if the communication speed setting value is 625 kbps, since the communication speed from the main controller 10 is 156 kbps, the data reception speed and the speed of the transmitted data are different, and the data reception fails as described above. Similarly to the above, the reception counter 234 does not count the normal reception completion signal, and the reception time timer 235 times out after a prescribed time has elapsed. This time is shown in FIG. At this time, the reception number counter 234 is reset, the speed setting value counter 236 is updated, the communication speed setting value is set to 156 kbps, and the reception time timer 235 again measures time.
[0036]
In this state, since the communication speed from the main control device 10 and the speed setting of the demodulation / synchronization circuit 231 are the same, communication data from the main control device 10 can be normally received, and a frame error is generated for each frame. The normal reception completion signal is sent from the check circuit 232 to the reception counter 234 and counted. FIG. 4H shows when the completion signal is generated by the first frame, and FIG. 4J shows when the completion signal is generated by the second frame.
[0037]
From the relationship between the specified time and the specified number of times, before the reception time timer 235 expires after the specified time elapses, the communication data from the main controller 10 can be received a specified number of times or more. When (2 times) have been counted, the reception time timer 235 is stopped. The time at that time is shown in FIG.
[0038]
When the reception time timer 235 stops, a time-up signal is not sent to the speed set value counter 236, so that the value of the speed set value counter 236 is fixed. As a result, the communication speed from the main control device 10 and the speed setting of the demodulation / synchronization circuit (receiving circuit) 231 remain the same, and automatic speed setting is realized.
[0039]
Although the above-mentioned specified number of times is set to two times, this number is not particularly limited, and may be one time or three or more times. However, the determined prescribed number of times must exist within a prescribed time.
[0040]
Also, the communication format of the frame format has been described as the unit of the received data, but the communication format of the character format can be applied.
[0041]
【The invention's effect】
As described above, according to the present invention, in a communication device for periodically sending digital data from a higher-level device (master station) to a lower-level device (slave station), a means for detecting the presence or absence of a data error in the lower-level device Means for detecting a predetermined number of normal receptions without a data error within a predetermined time, and sequentially switching the communication speed when a predetermined number of normal receptions cannot be performed within a predetermined time, and a predetermined time within a predetermined time Means for fixing the communication speed when normal reception has been performed the number of times, the circuit scale can be reduced without having a plurality of speed detection circuits for each communication speed as in the conventional case, and the signal waveform is erroneously detected. Without receiving errors, the slave station can automatically follow the communication speed of the master station, reducing the trouble of setting by the user and improving the convenience for the user. . In addition, when performing automatic setting of the communication speed, it is only necessary to receive communication from the master station, and there is no need to perform communication.Therefore, a new slave station is connected to a communication line on which the master station and another slave station are already communicating. Even in the case of addition, the communication speed of a new slave station can be set without affecting stations already communicating.
[0042]
According to the next invention, it is possible to follow the communication speed in a shorter time by changing a plurality of types of the predetermined time according to the communication speed.
[0043]
According to the next invention, the detection of the presence / absence of a data error is performed for either the communication format in the frame format or the communication format in the character format. Can be applied to
[0044]
According to the next invention, the sequential switching of the communication speed is performed by a speed setting value counter that sequentially rotates a plurality of types of speed setting values, thereby enabling automatic setting instead of manual setting as in the related art.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a communication speed setting device according to an embodiment of the present invention.
FIG. 2 is a block diagram of a receiving circuit inside a remote input / output device according to the present embodiment.
FIG. 3 is a block diagram of a conventional receiving circuit compared to FIG. 2;
FIG. 4 is a time chart of the receiving circuit shown in FIG. 2;
[Explanation of symbols]
Reference Signs List 10 main controller, 20 remote input / output device, 23 reception circuit, 231 demodulation / synchronization circuit, 232 frame error check circuit, 233 communication clock generation circuit, 234 reception number counter, 235 reception time timer, 236 speed set value counter

Claims (4)

上位機器から下位機器へデジタルデータを定期的に送出する通信装置において、
下位機器に、データエラーの有無を検出する手段と、所定の時間内にデータエラーの無い所定の回数の正常受信を検出する手段と、所定の時間内で所定の回数の正常受信が行えない場合に通信速度を順次切り替えかつ所定の時間内で所定の回数の正常受信を行った場合に通信速度を固定する手段と、を有することを特徴とする通信速度設定装置。
In a communication device that periodically sends digital data from a higher-level device to a lower-level device,
A means for detecting the presence or absence of a data error in the lower device, a means for detecting a predetermined number of normal receptions without a data error within a predetermined time, and a case where a predetermined number of normal receptions cannot be performed within a predetermined time Means for successively switching the communication speed and fixing the communication speed when a predetermined number of normal receptions have been performed within a predetermined time.
所定の時間を、通信速度に対応して複数種類変化させることを特徴とする請求項1に記載の通信速度設定装置。The communication speed setting device according to claim 1, wherein the predetermined time is changed by a plurality of types corresponding to the communication speed. データエラーの有無の検出は、フレーム形式の通信フォーマット、及びキャラクタ形式の通信フォーマットのいずれかを対象として行うことを特徴とする請求項1に記載の通信速度設定装置。2. The communication speed setting device according to claim 1, wherein the detection of the presence / absence of a data error is performed for one of a communication format in a frame format and a communication format in a character format. 通信速度の順次切り替えは、速度設定値の複数種類を順に廻らす速度設定値カウンタによることを特徴とする請求項1に記載の通信速度設定装置。2. The communication speed setting device according to claim 1, wherein the communication speed is sequentially switched by a speed setting value counter that sequentially turns a plurality of speed setting values.
JP2002186738A 2002-06-26 2002-06-26 Communication speed setting device Pending JP2004032429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002186738A JP2004032429A (en) 2002-06-26 2002-06-26 Communication speed setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002186738A JP2004032429A (en) 2002-06-26 2002-06-26 Communication speed setting device

Publications (1)

Publication Number Publication Date
JP2004032429A true JP2004032429A (en) 2004-01-29

Family

ID=31182002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002186738A Pending JP2004032429A (en) 2002-06-26 2002-06-26 Communication speed setting device

Country Status (1)

Country Link
JP (1) JP2004032429A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008111229A1 (en) * 2007-03-15 2008-09-18 Fujitsu Limited Electronic device, clock, and clock controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008111229A1 (en) * 2007-03-15 2008-09-18 Fujitsu Limited Electronic device, clock, and clock controller
JPWO2008111229A1 (en) * 2007-03-15 2010-06-24 富士通株式会社 Electronic device and clock control device
JP4555888B2 (en) * 2007-03-15 2010-10-06 富士通株式会社 Electronic device and clock control device
US8762765B2 (en) 2007-03-15 2014-06-24 Fujitsu Limited Electronic apparatus, clock apparatus, and clock control apparatus

Similar Documents

Publication Publication Date Title
US7340023B1 (en) Auto baud system and method and single pin communication interface
EP1434382B1 (en) Serial data transferring apparatus
JP4353943B2 (en) Sequence control device
JP2004032429A (en) Communication speed setting device
US6959059B1 (en) Radio signal receiving circuit detecting a synchronizing pattern
EP2866461B1 (en) Signal collecting apparatus, periodic signal transmitting apparatus and signal collecting system
JP2008026981A (en) Fire alarm system
US6944693B2 (en) Method for centrally setting data rate in a data transmission facility and a device for centrally setting data rates
JP2008283242A (en) Measurement time synchronizing method of radio communication system
US9350531B2 (en) Communication device, control signal generation method, shutter glasses, and communication system
JP4471435B2 (en) Wireless meter reading system
JP2538682B2 (en) Reference clock source automatic switching method
JPH0126213B2 (en)
JP2751673B2 (en) Bit error rate measurement equipment for digital communication systems
EP3641421A1 (en) Radio communication system
JPH0715419A (en) Controller for device
JP2621772B2 (en) Serial transmission device
JP2944837B2 (en) Transmission method
JP2001331384A (en) System and method for detecting inter-package communication fault
JPS63202149A (en) Synchronizing transmission system
JPS6145656A (en) Auxiliary equipment for detecting and reflecting remote code error
JPH03177989A (en) Time recorder system
JP2000304883A (en) Time synchronization method
JPH04278735A (en) Radio communication system
JPH06224876A (en) Communication path monitoring circuit