JP2011205414A - Communication system - Google Patents
Communication system Download PDFInfo
- Publication number
- JP2011205414A JP2011205414A JP2010070771A JP2010070771A JP2011205414A JP 2011205414 A JP2011205414 A JP 2011205414A JP 2010070771 A JP2010070771 A JP 2010070771A JP 2010070771 A JP2010070771 A JP 2010070771A JP 2011205414 A JP2011205414 A JP 2011205414A
- Authority
- JP
- Japan
- Prior art keywords
- transmission
- data
- delimiter
- terminal device
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
Description
本発明は、伝送信号を繰り返し伝送する第1プロトコルの通信と、伝送信号ごとに定められた通信可能期間に、伝送信号と共通の通信線を通して信号を伝送する第2プロトコルの通信とを用いて端末機器同士が通信する通信システムに関するものである。 The present invention uses communication of a first protocol for repeatedly transmitting a transmission signal and communication of a second protocol for transmitting a signal through a common communication line with the transmission signal during a communicable period determined for each transmission signal. The present invention relates to a communication system in which terminal devices communicate with each other.
従来から、通信線(伝送路)に対して親機および複数台の端末機器(子機)が接続され、各端末機器と親機との間で通信を行う通信システムが知られている。この種の通信システムの一例として、親機が定期的に端末機器の状態を監視し、端末機器の状態に変化があった場合、その状態変化に対応する処理を行うように親機から他の端末機器に信号を送るものがある(たとえば特許文献1〜3参照)。
Conventionally, a communication system is known in which a parent device and a plurality of terminal devices (child devices) are connected to a communication line (transmission path), and communication is performed between each terminal device and the parent device. As an example of this type of communication system, the parent device periodically monitors the state of the terminal device, and when there is a change in the state of the terminal device, the parent device performs other processing so as to perform processing corresponding to the state change. Some devices send signals to terminal devices (see, for example,
ただし、上記構成の通信システムは、端末機器同士が常に親機を経由して通信を行うものであって、親機が端末機器に対してポーリングを行うため通信速度が遅く、たとえばアナログ量のように比較的データ量の多い情報の伝送には不向きである。また、上記通信システムは、親機の故障時などにシステム全体が停止してしまうため、システムとしての信頼性が低いという問題もある。 However, the communication system with the above configuration is such that terminal devices always communicate with each other via the parent device, and the parent device polls the terminal device, so the communication speed is slow, for example, an analog amount. In particular, it is not suitable for transmission of information having a relatively large amount of data. Further, the above communication system has a problem that the reliability of the system is low because the entire system is stopped when the master unit fails.
これに対して、通信線に接続された端末機器同士がピア・ツー・ピア(P2P)で直接通信を行うように構成され、通信速度を向上させて比較的データ量の多い情報も伝送可能とした通信システムが提案されている。 On the other hand, terminal devices connected to a communication line are configured to directly communicate with each other by peer-to-peer (P2P), and it is possible to improve the communication speed and transmit information with a relatively large amount of data. Such communication systems have been proposed.
通信システムとして、通信速度や信頼性の観点からは後者のように端末機器同士が直接通信を行う通信システムが望ましいが、一般的には前者のように親機を介して端末機器同士が通信を行う通信システムが広く普及している。そこで、既設の通信システムを有効に利用するために、図7に示すように前者の通信システムと高速通信が可能な後者の通信システムとを混在させた通信システムが考えられる(たとえば特許文献4参照)。 As a communication system, from the viewpoint of communication speed and reliability, a communication system in which terminal devices communicate directly with each other like the latter is desirable, but in general, terminal devices communicate with each other via a master unit like the former. Communication systems to perform are widespread. Therefore, in order to effectively use the existing communication system, a communication system in which the former communication system and the latter communication system capable of high-speed communication are mixed as shown in FIG. 7 can be considered (see, for example, Patent Document 4). ).
図7の通信システムは、伝送ユニット(親機)1が接続された通信線W1に対し、変調装置2、復調装置4のそれぞれを介して接続された上位端末機器3と下位端末機器5との2台の端末機器を備えている。上位端末機器3は、変調装置2とは別経路でも通信線W1に接続されている。
In the communication system of FIG. 7, the communication between the
図7の通信システムでは、上位端末機器3は、通信線W1に繰り返し伝送される第1プロトコルの伝送信号を用いて伝送ユニット1との間で通信を行い、さらに下位端末機器3との間で伝送ユニット1を経由することなく直接通信を行う。上位端末機器3−下位端末機器5間の通信は、第1プロトコルの伝送信号に重畳される第2プロトコルの信号を用いて行われる。つまり、上位端末機器3および下位端末機器5は、第1プロトコルの伝送信号ごとに定められた通信可能期間に、伝送信号と共通の通信線W1を伝送される第2プロトコルの信号を用いて通信する。なお、図7では、上位端末機器3−伝送ユニット1間の通信経路を破線で表し、上位端末機器3−下位端末機器5間の通信経路を2点鎖線で表している。
In the communication system of FIG. 7, the
ここで、変調装置2は、上位端末機器3が出力する伝送データを第2プロトコルの信号に変換して通信線W1に送出し、復調装置4は、通信線W1から受信した第2プロトコルの信号を伝送データに変換して下位端末機器5に出力する。
Here, the
この構成においては、変調装置2は、伝送データのデータ量が多く1回の通信可能期間内で送信しきれない場合には、伝送データを複数の分割データに分割して通信可能期間ごとに順次送信する。変調装置2−復調装置4間で伝送データが分割して伝送されると、下位端末機器5は、本来なら連続して受信するはずの伝送データを、間隔を空けながら受信することになる。
In this configuration, the
しかし、端末機器によっては、たとえばModbus(登録商標)のように、一定以上のデータ量の伝送データをまとめて伝送しなければ通信エラーとなる通信方式を採用していることがある。このような端末機器は、第2プロトコルの通信を行った場合に、変調装置2にて伝送データが分割して伝送されることが原因で通信エラーを生じる可能性がある。
However, some terminal devices may employ a communication method such as Modbus (registered trademark), which causes a communication error unless transmission data of a certain amount or more is collectively transmitted. Such a terminal device may cause a communication error due to transmission data being divided and transmitted by the
本発明は上記事由に鑑みて為されたものであって、伝送データが分割して伝送されることに起因した通信エラーが生じることを防止できる通信システムを提供することを目的とする。 The present invention has been made in view of the above-described reasons, and an object of the present invention is to provide a communication system capable of preventing a communication error due to transmission data being divided and transmitted.
本発明の通信システムは、複数の端末機器を備え、伝送信号を繰り返し伝送する第1プロトコルの通信と、前記伝送信号ごとに定められた通信可能期間に、前記伝送信号と共通の通信線を通して信号を伝送する第2プロトコルの通信とを用いて前記端末機器同士が通信する通信システムであって、送信側の前記端末機器と前記通信線との間に挿入され、前記端末機器が出力する伝送データを前記第2プロトコルの信号に変換して前記通信線に送出する変調装置と、受信側の前記端末機器と前記通信線との間に挿入され、前記通信線から受信した前記第2プロトコルの信号を前記伝送データに変換して前記端末機器に出力する復調装置とを備え、前記変調装置は、データの区切りを表す区切コードが付加されている前記伝送データを複数の分割データに分割して前記通信可能期間ごとに分割データを順次送信し、前記復調装置は、受信した前記分割データを蓄積するバッファ部と、前記区切コードを受信する度に、前記バッファ部に蓄積された前記分割データを結合し分割前の前記伝送データを復元して前記端末機器に出力するデータ結合部とを有することを特徴とする。 A communication system according to the present invention includes a plurality of terminal devices, a first protocol communication that repeatedly transmits a transmission signal, and a signal through a communication line that is common to the transmission signal during a communicable period determined for each transmission signal. A communication system in which the terminal devices communicate with each other using communication of a second protocol for transmitting data transmitted between the terminal device on the transmission side and the communication line and output by the terminal device The second protocol signal received from the communication line, inserted between the modulation device for converting the signal into the second protocol signal and sending it to the communication line, and the terminal device on the receiving side and the communication line A demodulator that converts the transmission data into the transmission data and outputs the transmission data to the terminal device, wherein the modulation device divides the transmission data to which a delimiter code indicating a delimiter of data is added. And the demodulating device stores the received divided data in the buffer unit, and stores the received divided data in the buffer unit every time the delimiter code is received. And a data combining unit that combines the divided data, restores the transmission data before the division, and outputs the restored transmission data to the terminal device.
この通信システムにおいて、前記第2プロトコルの信号を用いて通信する前記端末機器は、一度に受信しなければならない前記伝送データのデータ量が前記伝送データの伝送時間によって予め決められており、前記変調装置は、前記端末機器から受け取った前記伝送データに対して前記伝送時間ごとに前記区切コードを付加する区切付加部を有することが望ましい。 In this communication system, the terminal device that communicates using the signal of the second protocol has a data amount of the transmission data that must be received at a time determined in advance by a transmission time of the transmission data, and the modulation The apparatus preferably includes a delimiter adding unit that adds the delimiter code for each transmission time to the transmission data received from the terminal device.
この通信システムにおいて、前記復調装置は、前記区切付加部によって付加された前記区切コードを除去する区切除去部を有し、前記区切除去部にて前記区切コードが除去された前記伝送データを前記端末機器に出力することがより望ましい。 In this communication system, the demodulator includes a delimiter removing unit that removes the delimiter code added by the delimiter adding unit, and transmits the transmission data from which the delimiter code has been removed by the delimiter removing unit to the terminal It is more desirable to output to equipment.
この通信システムにおいて、前記変調装置は、前記区切付加部により前記区切コードを付加する第1のモードと、付加しない第2のモードとの2つの動作モードを切り替えるモード切替部を有することがより望ましい。 In this communication system, it is more preferable that the modulation apparatus includes a mode switching unit that switches between two operation modes, a first mode in which the delimiter code is added by the delimiter adding unit and a second mode in which the delimiter code is not added. .
この通信システムにおいて、前記復調装置は、前記伝送データが予め付加されている前記区切コードと前記伝送時間とのいずれにより区切られているかを表す区切情報を受信側の前記端末機器から取得する情報取得部を有し、前記区切情報を前記第2プロトコルの信号に変換して前記変調装置に送信し、前記モード切替部は、前記伝送データが前記伝送時間により区切られている場合には前記第1のモードとし、前記伝送データが前記区切コードにより区切られている場合には前記第2のモードとするように、前記区切情報に基づいて前記動作モードを自動的に切り替えることがより望ましい。 In this communication system, the demodulator acquires from the terminal device on the receiving side, delimiter information indicating whether the transmission data is delimited by the delimiter code added in advance or the transmission time. A unit for converting the delimiter information into a signal of the second protocol and transmitting the signal to the modulation device, and the mode switching unit is configured to convert the first data when the transmission data is delimited by the transmission time. More preferably, the operation mode is automatically switched based on the delimiter information so that the second mode is selected when the transmission data is delimited by the delimiter code.
本発明は、一定以上のデータ量の伝送データをまとめて伝送しなければ通信エラーとなる通信方式を採用した場合でも、伝送データが分割して伝送されることに起因した通信エラーが生じることを防止できるという利点がある。 In the present invention, even when a communication method that causes a communication error if transmission data of a certain amount or more is not collectively transmitted, a communication error due to the transmission of divided transmission data occurs. There is an advantage that it can be prevented.
(実施形態1)
本実施形態の通信システムは、図1に示すように、従来例(図7参照)と同様に2線式の通信線W1に接続される伝送ユニット(親機)1と、複数台の端末機器とを備えたNMAST(登録商標)のような通信システムである。図1では、変調装置2を介して通信線W1に接続された上位端末機器3と、復調装置4を介して通信線W1に接続された下位端末機器5との2台の端末機器を示している。さらに上位端末機器3は、変調装置2とは別経路でも通信線W1に接続されている。
(Embodiment 1)
As shown in FIG. 1, the communication system according to the present embodiment includes a transmission unit (parent device) 1 connected to a two-wire communication line W1 and a plurality of terminal devices as in the conventional example (see FIG. 7). And a communication system such as NMAST (registered trademark). FIG. 1 shows two terminal devices, that is, a higher-
この通信システムは、第1プロトコルおよび第2プロトコルの2つの通信方式を用いて通信が行われるものである。 In this communication system, communication is performed using two communication methods of a first protocol and a second protocol.
上位端末機器3と伝送ユニット1とは、第1プロトコルの伝送信号を用いて双方向に通信し、データ伝送が時分割で行われる時分割多重伝送システム(以下「基本システム」という)を構築する。上位端末機器3は、伝送ユニット1との間で通信を行う際には、変調装置2を通さずに通信線W1を介して通信する。なお、上位端末機器3および伝送ユニット1の各々と通信線W1との間には、第2プロトコルの信号に対して高インピーダンスとなる高入力インピーダンスモジュール(図示せず)がそれぞれ挿入されていてもよい。
The
図1では基本システムを構築し伝送ユニット1との間で通信する上位端末機器3を1台のみ図示しているが、実際には同様の上位端末機器3が通信線W1に複数台接続されている。すなわち、伝送ユニット1との間で変調装置2を通さずに通信する上位端末機器3は、通信システム上に複数台設けられている。
In FIG. 1, only one
これら複数台の上位端末機器3は、スイッチ等(図示せず)を付設した監視端末と、負荷(図示せず)を付設した制御端末との2種類に分類される。これにより、基本システムは、監視端末に付設したスイッチ等からの操作入力に応じて、制御端末に付設した負荷を制御することが可能となる。ここで、上位端末機器3は予め割り当てられた自己のアドレスをそれぞれ記憶部(図示せず)に記憶している。
The plurality of higher-
監視端末は、操作入力を受けると伝送ユニット1に対して操作入力に対応した制御情報を伝送する。伝送ユニット1は、制御情報を受け取るとアドレスによって上記監視端末と対応付けられている制御端末に対して制御情報を伝送する。制御端末は、制御情報を受け取ると上記制御情報に従って負荷を制御する。制御情報はスイッチ等の操作入力を反映しているから、結局、スイッチ等の操作入力が負荷の制御に反映されることになる。
When receiving the operation input, the monitoring terminal transmits control information corresponding to the operation input to the
続いて、基本システムの動作について説明する。 Next, the operation of the basic system will be described.
伝送ユニット1は、通信線W1に対して図2に示すような形式の電圧波形からなる伝送信号を送信する。すなわち、伝送信号は、割込パルス期間Aと、予備期間Bと、上位端末機器3にデータを伝送するための信号送信期間Cと、上位端末機器3からの返送信号を受信するタイムスロットである信号返送期間Dとを有する。さらに、伝送信号は、割込信号を検出するための割込パルス期間Eと、短絡を検出するための短絡検出期間Fと、処理が間に合わないときの予備領域期間Gとを有する。この伝送信号は、複極(±24V)の時分割多重信号であり、パルス列からなるキャリアをパルス幅変調することによってデータを伝送するものである。
The
各上位端末機器3は、通信線W1を介して受信した伝送信号の信号送信期間Cに含まれるアドレスデータが、自己の記憶部に記憶されているアドレスに一致すると、伝送信号から負荷を制御するための制御情報を取り込む。さらに、上位端末機器3は、伝送信号の信号返送期間Dに同期して制御情報を電流モードの信号(通信線W1を適当な低インピーダンスを介して短絡することにより送出される信号)として返送する。なお、上位端末機器3の内部回路の電源は、通信線W1を介して伝送される伝送信号を整流し安定化することによって供給される。
Each upper
伝送ユニット1は、常時は伝送信号に含まれるアドレスデータをサイクリックに変化させて上位端末機器3に順次アクセスする常時ポーリングを行う。常時ポーリングの際には、伝送信号に含まれるアドレスデータが自己のアドレスに一致した上位端末機器3は、伝送信号に制御情報が含まれていれば制御情報を取り込んで動作し、自己の動作状態を伝送ユニット1に返送する。
The
伝送ユニット1は、いずれかの監視端末においてスイッチ等の操作入力に対応して発生する割込信号を受信すると、割込信号を発生した上位端末機器3を検索し、その上位端末機器3にアクセスして割込ポーリングも行う。
When the
すなわち、伝送ユニット1においては、常時はアドレスデータをサイクリックに変化させた伝送信号を通信線W1に送出する常時ポーリングを行う。さらに、伝送ユニット1は監視端末で発生した割込信号を伝送信号の割込パルス期間Aあるいは割込パルス期間Eに同期して検出すると、モードデータを割込ポーリングモードとした伝送信号を送出する。
That is, the
割込信号を発生した上位端末機器3は、割込ポーリングモードの伝送信号のアドレスデータの上位ビットが自己のアドレスの上位ビットに一致していれば、その伝送信号の信号返送期間Dに同期して自己のアドレスの下位ビットを返送データとして返送する。これにより伝送ユニット1は割込信号を発生した上位端末機器3のアドレスを取得できる。
If the upper bit of the address data of the transmission signal in the interrupt polling mode matches the upper bit of its own address, the upper
割込信号を発生した上位端末機器3のアドレスが伝送ユニット1で取得されると、伝送ユニット1はこの上位端末機器3に対して制御情報の返送を要求する伝送信号を送出する。この要求を受けた上位端末機器3はスイッチ等の操作入力に対応した制御情報を伝送ユニット1に返送する。伝送ユニット1は制御情報を受け取ると、該当する上位端末機器3の操作入力をクリアするように指示を与え、この上位端末機器3は操作入力のクリアを返送する。
When the
制御情報を受け取った伝送ユニット1は、制御情報の発信元の上位端末機器(監視端末)3とアドレスの対応関係によって対応付けられている上位端末機器(制御端末)3へ送信する制御情報を生成する。さらに伝送ユニット1は、この制御情報を含む伝送信号を通信線W1に送出して、上位端末機器(制御端末)3に付設した負荷を制御する。
The
上述したように、基本システムでは、ポーリング・セレクティング方式のプロトコル(第1プロトコル)に従い、伝送ユニット1を経由して上位端末機器(監視端末、制御端末)3同士が通信を行うこととなる。
As described above, in the basic system, the higher-level terminal devices (monitoring terminal and control terminal) 3 communicate with each other via the
ところで、上記通信システムにおいて、下位端末機器5は、上記基本システムと通信線W1を共用しつつ、第1プロトコルの伝送信号に重畳される第2プロトコルの信号を用いて上位端末機器3との間で通信を行う。ここにおいて、変調装置2は、上位端末機器3が出力する伝送データを第2プロトコルの信号に変換して通信線W1に送出し、復調装置4は、通信線W1から受信した第2プロトコルの信号を伝送データに変換して下位端末機器5に出力する。なお、第2プロトコルの信号は、第1プロトコルの伝送信号より周波数が高い。
By the way, in the communication system, the lower-
すなわち、伝送データを授受するのは上位端末機器3および下位端末機器5であるが、第2プロトコルの信号を通信線W1に送出するのは変調装置2、第2プロトコルの信号を通信線W1から受信するのは復調装置4である。ここに、変調装置2および復調装置4は、各々に接続された上位端末機器3あるいは下位端末機器5と通信線W1の間で、伝送データと第2プロトコルの信号とを相互に変換するアダプタとして機能する。
That is, it is the upper
その結果、上位端末機器3は、上述した第1プロトコルとは異なるプロトコル(第2プロトコル)に従って、伝送ユニット1を経由することなくピア・ツー・ピア(P2P)で伝送データを下位端末機器5に伝送可能となる。要するに、第1プロトコルによる上位端末機器3同士の通信は伝送ユニット1を経由して行われるのに対し、第2プロトコルによる上位端末機器3−下位端末機器5間の通信は伝送ユニット1を経由せず端末機器間で直接行われる。そのため、第2プロトコルによる通信は、第1プロトコルによる通信に比べて通信速度を高速化でき、たとえばアナログ量(電力量の計量値等)のように比較的データ量の多い情報の伝送に用いられる。図1では、上位端末機器3−伝送ユニット1間の通信経路を破線で表し、上位端末機器3−下位端末機器5間の通信経路を2点鎖線で表している。
As a result, the upper
なお、下位端末機器5への電源供給は、上位端末機器3と同様に伝送ユニット1から通信線W1を介して伝送される伝送信号を整流し安定化することによって供給される方式(ライン給電方式)によって為される。ただし、この例に限らず、下位端末機器5への電源供給は、商用電源を整流し安定化することによって供給される方式(ローカル給電方式)としてもよい。
Note that the power supply to the lower
ところで、本実施形態の通信システムにおいては、変調装置2は、共通の通信線W1を使用する第1プロトコルの通信と第2プロトコルの通信との干渉を避けるために、第1プロトコルの伝送信号が安定している期間にのみ第2プロトコルの信号を送出する。そのために、変調装置2は、伝送ユニット1と上位端末機器3との間で伝送される伝送信号を監視し、この信号から第1プロトコルのデータ伝送状況(以下、「ステート」という)を解析する。変調装置2は、ステートが第2プロトコルの信号の伝送に適した状況にあるか否かを判定し、伝送に適していると判断したタイミングで第2プロトコルの信号を送信する。
By the way, in the communication system of the present embodiment, the
すなわち、基本システムで使用する第1プロトコルにおいては、パルス列からなるキャリアをパルス幅変調した伝送信号が通信線W1に繰り返し伝送されている。変調装置2は、この伝送信号に第2プロトコルの信号を重畳するに当たり、伝送信号がハイレベルあるいはローレベルに安定している通信可能期間に合わせて第2プロトコルの信号を重畳する。
That is, in the first protocol used in the basic system, a transmission signal obtained by pulse-width modulating a carrier composed of a pulse train is repeatedly transmitted to the communication line W1. When superimposing the signal of the second protocol on the transmission signal, the
ここで、伝送信号は上述したように図2の信号フォーマットを採用している。そのため、予備期間Bや短絡検出期間Fや予備領域期間Gは、伝送信号がハイレベルあるいはローレベルに安定している時間が相対的に長いから第2プロトコルの信号を重畳するのに適した期間(通信可能期間)と考えられる。 Here, as described above, the transmission signal adopts the signal format of FIG. Therefore, the spare period B, the short-circuit detection period F, and the spare area period G are periods suitable for superimposing the second protocol signal because the time during which the transmission signal is stable at the high level or the low level is relatively long. (Communication period).
一方、その他の期間は、伝送信号がハイレベルあるいはローレベルに安定している時間が相対的に短いことや、第1プロトコルによる伝送ユニット1と上位端末機器3との間の信号の伝送の影響を受けやすい。そのため、これらの期間は第2プロトコルの信号を重畳するのに適さない期間(以下、「通信不可期間」という)と考えられる。また、伝送信号の立ち上がりおよび立ち下がりの期間も、高調波ノイズの影響や信号の電圧反転に伴う過渡応答の影響などにより通信不可期間とみなすことができる。
On the other hand, in other periods, the time during which the transmission signal is stable at the high level or the low level is relatively short, and the influence of the signal transmission between the
そこで、変調装置2は伝送信号のステートを解析し、その解析結果に基づいて通信可能期間か通信不可期間かの判定を行い、通信可能期間と判断したときに限って第2プロトコルの信号を送出する。変調装置2は、このように伝送信号に同期させるように伝送信号の通信可能期間にのみ第2プロトコルの信号を重畳させることにより、共通の通信線W1を使用する第1プロトコルの通信と第2プロトコルの通信との干渉を回避する。
Therefore, the
また、本実施形態の通信システムでは、伝送信号が切れ間なく連続的に繰り返して伝送されているが、これに限らず、伝送信号が間隔を空けて断続的に伝送されるようにしてもよい。この場合、伝送信号と伝送信号との合間も通信可能期間となるため、変調装置2は、第2プロトコルの信号を伝送信号に重畳させるのみならず、伝送信号と伝送信号との合間に送信することも可能である。
In the communication system according to the present embodiment, the transmission signal is continuously and repeatedly transmitted without interruption. However, the present invention is not limited to this, and the transmission signal may be transmitted intermittently at intervals. In this case, since the interval between the transmission signal and the transmission signal is also a communicable period, the
ここにおいて、変調装置2は、伝送データのデータ量が多く1回の通信可能期間内で送信しきれない場合には、伝送データをそれぞれ1回の通信可能期間内に送信可能な長さの複数の分割データに分割し、複数の通信可能期間に跨って順次送信する。つまり、1回の通信可能期間の長さは限られているので、伝送データのデータ量によっては変調装置2は1回の通信可能期間では伝送データを最後まで送信しきれないことがある。このような場合、変調装置2は、伝送データ全体を一度に送信しきるのではなく、分割データを通信可能期間ごとに順次送信する。
Here, when the amount of transmission data is large and cannot be transmitted within one communicable period, the
本実施形態では、変調装置2は、区切コードが末尾に予め付加されている伝送データを上位端末機器3から受け、区切コードが付加されたままの伝送データを複数の分割データに分割して送信する。区切コードは、下位端末機器5が一度に受信すべきデータ量(以下、「基準単位」という)ごとに付加されており、各伝送データにおける基準単位の区切りを表すものである。ここで、区切コードは、変調装置2および復調装置4において認識可能な形式のデータからなる。
In the present embodiment, the
一方、復調装置4は、図1に示すように受信した分割データを蓄積するバッファ部40と、バッファ部40に蓄積された分割データから分割前の伝送データを復元するデータ結合部41とを有している。
On the other hand, as shown in FIG. 1, the
データ結合部41は、伝送データに付加されている区切コードを受信する度に、バッファ部40に蓄積された複数の分割データを結合して分割前の伝送データを復元し、復元した伝送データを下位端末機器5に引き渡す。さらに、データ結合部41は、分割前の伝送データを復元する度に、それまでバッファ部40に蓄積されていた分割データを消去する。
Each time the
すなわち、復調装置4は、基準単位の伝送データが複数に分割された分割データをバッファ部40に一時的に蓄積し、バッファ部40に蓄積された複数の分割データを結合し基準単位の伝送データに戻してから下位端末機器5に出力する。これにより、上位端末機器3から出力された伝送データは、変調装置2で一旦複数の分割データに分割されるものの、復調装置4でバッファリングされ分割前の状態に復元されてから下位端末機器5に引き渡される。
That is, the
次に、上位端末機器3−下位端末機器5間で伝送データを授受する際の本実施形態の通信システムの動作について、図3の動作説明図を参照して説明する。なお、図3は左右方向に4つのレーンに分け、左のレーンから順に上位端末機器3、変調装置2、復調装置4、下位端末機器5の各動作をレーンごとに表したものである。
Next, the operation of the communication system according to this embodiment when transmission data is exchanged between the upper
上位端末機器3は、変調装置2に対して伝送データを出力する(S1)。変調装置2は、上位端末機器3からの伝送データを受け(S2)、この伝送データを第2プロトコルの信号に変換して通信線W1上に送出する(S3)。このとき、変調装置2は、伝送データを複数の分割データに分割し複数の通信可能期間に分けて送信する。
The upper
復調装置4は、変調装置2から送出された第2プロトコルの信号を通信線W1を介して受信し(S4)、受信した第2プロトコルの信号を分割データに変換する。ここで、復調装置4は、受信した分割データに区切コードが含まれているか否かを判断する(S5)。
The
分割データに区切コードが含まれていなければ(S5:N)、復調装置4は、分割データをバッファ部40に蓄積し(S6)、次の第2プロトコルの信号を受信する(S4)。一方、分割データに区切コードが含まれていると(S5:Y)、復調装置4は、データ結合部41にてそれまでにバッファ部40に蓄積した分割データを結合し、分割前の伝送データを復元して下位端末機器5に出力する(S7)。下位端末機器5は、復調装置4から伝送データを受信する(S8)。
If no division code is included in the divided data (S5: N), the
以上説明した本実施形態の通信システムによれば、復調装置4がバッファ部40およびデータ結合部41を有することにより、復調装置4から下位端末機器5へは複数の分割データに分割される前の状態の伝送データを引き渡すことができる。すなわち、変調装置2が基準単位の伝送データを複数の分割データに分割し送信したとしても、復調装置4は、バッファ部40にて分割データを蓄積し、データ結合部41にてこれらの分割データから基準単位の伝送データを復元して下位端末機器5へ出力できる。その結果、本実施形態の通信システムは、基準単位の伝送データをまとめて伝送しなければ通信エラーとなる通信方式を下位端末機器5に採用した場合でも、伝送データが分割して伝送されることに起因した通信エラーが生じることを回避できる。
According to the communication system of the present embodiment described above, the
ところで、本実施形態では、伝送ユニット1との間で伝送信号を用いて通信する端末機器を、第2プロトコルの通信では伝送データを送信する側となる上位端末機器として説明したが、いずれの端末機器を送信側とするかは限定しない。たとえば、伝送ユニット1との間で通信する端末機器が第2プロトコルの通信では伝送データを受信する側の下位端末機器となるように、図1の上位端末機器3と下位端末機器5とを入れ替えてもよい。この場合、変調装置2と復調装置5とは互いに入れ替えられることになる。
By the way, in the present embodiment, the terminal device that communicates with the
また、図1の上位端末機器3と下位端末機器5との双方を、それぞれ第2プロトコルの通信では伝送データの送信および受信の両方を行う端末機器としてもよい。この場合、各端末機器は、それぞれ変調装置2の機能と復調装置4の機能とを一体化した変調復調装置を介して通信線W1に接続される。これにより、両端末機器は、第2プロトコルの信号を用いた伝送データの伝送を双方向に行うことができる。
Further, both the upper
なお、上記実施形態では下位端末機器5を1台のみとした通信システムを例示したが、この例に限らず、下位端末機器5は複数台設けられていてもよい。この場合、復調装置4は下位端末機器5ごとにそれぞれ設けられることになる。
In the above embodiment, the communication system with only one
(実施形態2)
本実施形態の通信システムは、変調装置2が上位端末機器3から受け取った伝送データに仮の区切コードを付加する区切付加部(図示せず)を有する点が実施形態1の通信システムと相違する。
(Embodiment 2)
The communication system according to the present embodiment is different from the communication system according to the first embodiment in that the
本実施形態では、区切コードは実施形態1のように上位端末機器3から変調装置2へ出力される伝送データに予め付加されているのではなく、変調装置2の区切付加部にて付加されることになる。
In the present embodiment, the delimiter code is not added in advance to the transmission data output from the higher-
ここで、下位端末機器5が一度に受信しなければならない伝送データのデータ量(基準単位)は、伝送データの伝送時間によって定められている。この伝送時間(以下、「基準伝送時間」という)は、変調装置2および復調装置4にて予め把握されているものとする。
Here, the data amount (reference unit) of transmission data that the lower-
区切付加部は、上位端末機器3から変調装置2へ出力された伝送データに対して、上述の基準伝送時間ごとに仮の区切コードを付加する。本実施形態では、変調装置2は、上位端末機器3から伝送データを受け取る際、伝送データの伝送時間を計測し、基準伝送時間経過するごとに伝送データの末尾に区切付加部にて仮の区切コードを付加する。
The delimiter adding unit adds a temporary delimiter code to the transmission data output from the higher-
すなわち、変調装置2は、上位端末機器3から図4(a)に示すような伝送データを受け取ると、基準伝送時間T1ごとに図4(b)に示すように区切付加部にて仮の区切コードC1を順次付加していく。変調装置2は、区切コードC1が付加された伝送データを、複数の分割データD1に分割して第2プロトコルの信号により通信線W1に送出する。
That is, when the
復調装置4は、図4(c)に示すように分割データD1ごとに送信される伝送データを順次受信する。復調装置4は、区切コードC1を含んだ分割データD1を受信する度に、バッファ部40に蓄積された複数の分割データD1を結合して分割前(基準伝送時間T1)の伝送データを復元する。
As shown in FIG. 4C, the
本実施形態では、復調装置4は、受信した伝送データから区切付加部によって付加された仮の区切コードC1を伝送データから除去する区切除去部(図示せず)を有している。ここで、区切除去部は、データ結合部41が分割データD1を結合する前に区切コードC1を除去するものとするが、分割データD1の結合後に区切コードC1を除去するようにしてもよい。その結果、下位端末機器5は、図4(d)に示すように区切コードC1が除去された状態の伝送データを、基準単位ごとに復調装置4から受け取ることができる。
In this embodiment, the
本実施形態の通信システムによれば、変調装置2の区切付加部が伝送データに区切コードを付加するので、上位端末機器3から変調装置2に出力される伝送データに区切コードが付加されていなくても、復調装置4において基準単位の伝送データを復元可能となる。すなわち、区切コードが予め付加されていない伝送データであっても、復調装置4は、変調装置2にて付加される仮の区切コードを利用して、基準単位ごとに伝送データを復元することができる。結果的に、下位端末機器5は、伝送データが分割して伝送されることに起因した通信エラーが生じることを回避できる。
According to the communication system of the present embodiment, since the delimiter adding unit of the
また、本実施形態では、復調装置4が区切付加部で付加された仮の区切コードを除去する区切除去部を有するので、仮の区切コードが付加された状態の伝送データが下位端末機器5に出力されることはない。つまり、区切付加部が付加する仮の区切コードは、変調装置2−復調装置4間でのみ使用され、下位端末機器5に引き渡される伝送データからは除去されることになる。したがって、上位端末機器3および下位端末機器5においては、区切付加部が付加した仮の区切コードの影響を受けることなく、伝送データの授受を行うことができる。
In this embodiment, since the
なお、下位端末機器5が区切付加部で付加された仮の区切コードを除去する機能を有する場合には、区切除去部を省略し、復調装置4は、仮の区別コードが付加されたままの伝送データを下位端末機器に引き渡してもよい。
When the lower-
その他の構成および機能は実施形態1と同様である。 Other configurations and functions are the same as those of the first embodiment.
(実施形態3)
本実施形態の通信システムは、変調装置2が、区切付加部により区切コードを付加する第1のモードと、付加しない第2のモードとの2つの動作モードを切り替えるモード切替部(図示せず)を有する点が実施形態2の通信システムと相違する。
(Embodiment 3)
In the communication system according to the present embodiment, a mode switching unit (not shown) in which the
本実施形態では、復調装置4は接続されている下位端末機器5から区切情報を取得する情報取得部(図示せず)を有している。区切情報は、予め付加されている区切コードと基準伝送時間とのいずれにより伝送データが基準単位に区切られているかを表す情報である。なお、復調装置4は、情報取得部で区切情報を取得するモードと取得しないモードとの2つのモードを、ユーザの操作により任意に切り替えることができる構成であってもよい。
In the present embodiment, the
復調装置4は、情報取得部で取得した区切情報を第2プロトコルの信号に変換して変調装置2に送信する機能を有する。ここでは、復調装置4が区切情報を送信する機能を有し、変調装置2が区切情報を受信する機能を有するものとするが、変調装置の機能と復調装置の機能とを一体化した変調復調装置を、それぞれ変調装置2、復調装置4として用いるようにしてもよい。
The
さらに、本実施形態では、モード切替部は、復調装置4から受信した区切情報に基づいて、動作モードを自動的に切り替えるように構成されている。すなわち、モード切替部は、伝送データが基準伝送時間により区切られている場合には動作モードを第1のモードとし、伝送データが区切コードにより区切られている場合には動作モードを第2のモードとする。
Further, in the present embodiment, the mode switching unit is configured to automatically switch the operation mode based on the delimiter information received from the
また、変調装置2が第1のモードで動作する場合には、区切付加部で付加された仮の区切コードを復調装置4の区切除去部にて除去するため、変調装置2の動作モードに合わせて復調装置4の動作モードも切り替えることが望ましい。そこで、本実施形態では、復調装置4は区切除去部により区切コードを除去する第1のモードと、除去しない第2のモードとの2つの動作モードを、情報取得部で取得した区切情報に基づいて自動的に切り替える機能を有する。つまり、復調装置4は、伝送データが基準伝送時間により区切られている場合には動作モードを第1のモードとし、伝送データが区切コードにより区切られている場合には動作モードを第2のモードとする。
In addition, when the
次に、本実施形態の通信システムの動作について、図5の動作説明図を参照して説明する。ここでは、図6に示すように、通信線W1にそれぞれ第1および第2の復調装置41,42を介して第1および第2の下位端末機器51,52が接続される通信システムにおいて、第1の復調装置41および第1の下位端末機器51が新たに接続される場面を想定する。なお、図5は左右方向に4つのレーンに分け、左のレーンから順に変調装置2、第1の復調装置41、第1の下位端末機器51、第2の復調装置42の各動作をレーンごとに表したものである。
Next, the operation of the communication system of the present embodiment will be described with reference to the operation explanatory diagram of FIG. Here, as shown in FIG. 6, the first and second lower-
第1の復調装置41は、電源が投入されると(S11)、第1の下位端末機器51に対して区切情報を要求する(S12)。この要求を受けた第1の下位端末機器51は、自身の区切情報を第1の復調装置41に対して返信する(S13)。第1の復調装置41は、第1の下位端末機器51から区切情報を受信し(S14)、その区切情報に基づいて自己の動作モードを設定する(S15)。
The first demodulator 4 1, when the power supply is turned (S11), and requests the delimiter information to the first lower terminal device 5 1 (S12). The first
さらに、第1の復調装置41は区切情報を第2プロトコルの信号に変換して通信線W1上に送出する(S16)。変調装置2は、復調装置41から送出された第2プロトコルの信号を通信線W1を介して受信し(S17)、受信した第2プロトコルの信号を区切情報に変換する。変調装置2は、この区切情報に基づいてモード切替部により自己の動作モードを自動的に設定する(S18)。
Furthermore,
また、第1の復調装置41から送出された第2プロトコルの信号は、通信線W1上に存在する他の変調装置2、あるいは復調装置(ここでは第2の復調装置42)にも受信される(S19)。第2の復調装置42は、受信した第2プロトコルの信号を区切情報に変換する。ここで、第2の復調装置42は、第2の下位端末機器52から既に区切情報を受信済みか否かを判断する(S20)。区切情報を受信済みでなければ(S20:N)、第2の復調装置42は、第1の復調装置41から受信した区切情報に基づいて自己の動作モードを設定する(S21)。一方、区切情報を受信済みであれば(S20:Y)、第1の復調装置41から受信した区切情報に基づく動作モードの設定を中止する(S22)。
The second protocol signal transmitted from the
また、いずれの復調装置4も、下位端末機器5から区切情報を受信すれば第2プロトコルの信号を用いて区切情報を通信線W1に送出する機能を有するが、先に、他の復調装置4から区切情報を受信している場合には区切情報の送出を中止する。この機能により、復調装置4は通信量を削減することができる。
Each
以上説明した本実施形態の通信システムによれば、変調装置2は、モード切替部を有することにより、伝送データが予め付加されている区切コードと基準伝送時間とのいずれにて基準単位に区切られている場合にも対応することができる。しかも、復調装置4は、下位端末機器5から区切情報を取得する情報取得部を有し、モード切替部は、復調装置4から受信した区切情報に基づいて、動作モードを自動的に切り替えるように構成されている。これにより、変調装置2の動作モードを切り替える操作の手間を省くことができるという利点がある。
According to the communication system of the present embodiment described above, the
また、モード切替部は、選択スイッチ(図示せず)の操作に応じて、いずれかの動作モードを択一的に選択するように構成されていてもよい。この場合、ユーザは選択スイッチを操作することによって動作モードを任意に選択可能であって、これにより区切付加部を有効にするか否かを任意に選択することができる。すなわち、ユーザは、上位端末機器3から出力される伝送データに予め区別コードが付加されていれば第2のモードを選択し、区別コードが付加されていなければ第1のモードを選択すればよい。
Further, the mode switching unit may be configured to selectively select any one of the operation modes in accordance with an operation of a selection switch (not shown). In this case, the user can arbitrarily select the operation mode by operating the selection switch, and thereby can arbitrarily select whether or not to enable the delimiter adding unit. That is, the user may select the second mode if a discrimination code is added in advance to the transmission data output from the higher-
ところで、伝送データに付加される区切コードの内容は、一律ではなく端末機器(の通信プロトコル)によって異なることがある。そこで、変調装置2および復調装置4においても、端末機器に合わせて様々な区切コードに対応できる構成とすることが望ましい。この構成では、区切情報は、区切コードと基準伝送時間とのいずれにより伝送データが基準単位に区切られているかだけでなく、区切コードにより伝送データが区切られている場合には区切コードの内容も含むものとする。変調装置2および復調装置4は、復調装置4に接続されている下位端末機器5から情報取得部が取得した区切情報に基づいて、登録されている区切コードの内容を自動的に変更する。これにより、変調装置2および復調装置4は、復調装置4に接続される下位端末機器5を変更した際に、区切コードの内容の変化に自動的に対応することが可能となる。
By the way, the content of the delimiter code added to the transmission data is not uniform and may differ depending on the terminal device (its communication protocol). Therefore, it is desirable that the
その他の構成および機能は実施形態2と同様である。 Other configurations and functions are the same as those of the second embodiment.
2 変調装置
3 (上位)端末機器
4 復調装置
5 (下位)端末機器
40 バッファ部
41 データ結合部
2 Modulator 3 (Upper)
Claims (5)
The demodulator includes an information acquisition unit that acquires delimiter information indicating whether the transmission data is delimited by the delimiter code added in advance and the transmission time from the terminal device on the receiving side, The delimiter information is converted into a signal of the second protocol and transmitted to the modulation device, and the mode switching unit sets the first mode when the transmission data is delimited by the transmission time, and 5. The communication system according to claim 4, wherein when the transmission data is delimited by the delimiter code, the operation mode is automatically switched based on the delimiter information so that the second mode is set. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010070771A JP5432790B2 (en) | 2010-03-25 | 2010-03-25 | Communications system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010070771A JP5432790B2 (en) | 2010-03-25 | 2010-03-25 | Communications system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011205414A true JP2011205414A (en) | 2011-10-13 |
JP5432790B2 JP5432790B2 (en) | 2014-03-05 |
Family
ID=44881570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010070771A Active JP5432790B2 (en) | 2010-03-25 | 2010-03-25 | Communications system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5432790B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013069442A1 (en) * | 2011-11-07 | 2013-05-16 | パナソニック株式会社 | Communication system and transmission unit employed in same |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63209336A (en) * | 1987-02-26 | 1988-08-30 | Nec Corp | Time division multiplex packet communication system |
JPH02192253A (en) * | 1989-01-20 | 1990-07-30 | Hitachi Ltd | Communication control processor |
JP2005057547A (en) * | 2003-08-05 | 2005-03-03 | Nec Corp | Packet communication system |
WO2008117722A1 (en) * | 2007-03-23 | 2008-10-02 | Panasonic Electric Works Co., Ltd. | Communication system and communication method |
JP2009225328A (en) * | 2008-03-18 | 2009-10-01 | Panasonic Electric Works Co Ltd | Relay apparatus |
-
2010
- 2010-03-25 JP JP2010070771A patent/JP5432790B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63209336A (en) * | 1987-02-26 | 1988-08-30 | Nec Corp | Time division multiplex packet communication system |
JPH02192253A (en) * | 1989-01-20 | 1990-07-30 | Hitachi Ltd | Communication control processor |
JP2005057547A (en) * | 2003-08-05 | 2005-03-03 | Nec Corp | Packet communication system |
WO2008117722A1 (en) * | 2007-03-23 | 2008-10-02 | Panasonic Electric Works Co., Ltd. | Communication system and communication method |
JP2009225328A (en) * | 2008-03-18 | 2009-10-01 | Panasonic Electric Works Co Ltd | Relay apparatus |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013069442A1 (en) * | 2011-11-07 | 2013-05-16 | パナソニック株式会社 | Communication system and transmission unit employed in same |
CN103931161A (en) * | 2011-11-07 | 2014-07-16 | 松下电器产业株式会社 | Communication system and transmission unit employed in same |
KR101541819B1 (en) | 2011-11-07 | 2015-08-04 | 파나소닉 주식회사 | Communication system and transmission unit employed in same |
US9548913B2 (en) | 2011-11-07 | 2017-01-17 | Panasonic Intellectual Property Management Co., Ltd. | Communication system and transmission unit employed in same |
Also Published As
Publication number | Publication date |
---|---|
JP5432790B2 (en) | 2014-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4936204B2 (en) | Communication system and communication method | |
CN108259068B (en) | Photovoltaic system safety control method, equipment and system | |
US11419175B2 (en) | Reconstructing a personal area network or system after a failure in the network or system | |
CN108183762B (en) | The method for synchronizing time of RapidIO network system and RapidIO network system | |
JP5369010B2 (en) | Communications system | |
JP5432790B2 (en) | Communications system | |
CN110825683B (en) | Data acquisition device and method for dynamically reconfigurable high-speed serial bus | |
US10891242B2 (en) | Embedded USB2 (eUSB2) repeater operation | |
JP4994280B2 (en) | Route change type network device and system | |
CN103190098B (en) | Communication system and transmission unit | |
CN113572629B (en) | Message transmission method, terminal and storage medium | |
JP2019176289A (en) | Radio communication device, radio communications system, and radio communication method | |
JP5379772B2 (en) | Communication system and superposition apparatus | |
JP4045415B2 (en) | Ethernet communication device | |
JP3712633B2 (en) | Packet communication circuit, packet communication device, power-off notification method, program, and recording medium | |
JP3682004B2 (en) | Optical transmission / reception method and optical transmission / reception apparatus | |
JPS62171349A (en) | Communication control equipment | |
CN116249152A (en) | Method and device for data transmission, wireless communication module and storage medium | |
JP4497248B2 (en) | Data transmission method and data transmission apparatus | |
CN114258125A (en) | Method, device and system for processing time synchronization fault | |
JP4497249B2 (en) | Data transmission method and data transmission apparatus | |
CN111830856A (en) | Train master control system | |
KR101482008B1 (en) | Method and Apparatus for H-ONU using a Sleep mode in TDM-PON | |
JPH10177547A (en) | Serial data communication circuit | |
JPH01231549A (en) | Repeater monitoring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20120118 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20121107 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130807 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130820 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131021 |
|
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: 20131112 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131206 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5432790 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |