JP2005070975A - Repeater system and control system - Google Patents

Repeater system and control system Download PDF

Info

Publication number
JP2005070975A
JP2005070975A JP2003297764A JP2003297764A JP2005070975A JP 2005070975 A JP2005070975 A JP 2005070975A JP 2003297764 A JP2003297764 A JP 2003297764A JP 2003297764 A JP2003297764 A JP 2003297764A JP 2005070975 A JP2005070975 A JP 2005070975A
Authority
JP
Japan
Prior art keywords
communication
communication port
control
relay
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.)
Pending
Application number
JP2003297764A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Kanazawa
芳之 金澤
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2003297764A priority Critical patent/JP2005070975A/en
Publication of JP2005070975A publication Critical patent/JP2005070975A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a repeater system and a control system for controlling a device to be controlled with a communication port for serial transmission, such as a projection device from various controllers, such as personal computers. <P>SOLUTION: This repeater system 10 is provided with a first communication port 13 being a port for serial transmission connected to a device to be controlled, a second communication port 15 being a port for serial transmission connected to a first controller, corresponding to serial transmission and a second communication port 17 for LAN connected to a second controller corresponding to communication via an LAN cable different from serial transmission. This repeater system 10 is provided with a protocol converting function, such as character data preparation processing 105 and packet preparation processing 108 for relaying communication between the first communication port 13 and the second communication port 17 for LAN. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、パーソナルコンピュータ等の制御装置及び該制御装置により遠隔制御される映像装置等の被制御装置間の通信を中継する中継装置、並びにその装置を用いた制御システムに関し、特に制御装置及び被制御装置間で送受信される信号の通信規約を変換する中継装置及び制御システムに関する。   The present invention relates to a control device such as a personal computer, a relay device that relays communication between controlled devices such as video devices remotely controlled by the control device, and a control system using the device, and more particularly to the control device and the controlled device. The present invention relates to a relay device and a control system that convert communication protocols for signals transmitted and received between control devices.

例えば学校の視聴覚教室及びシアタールームに備え付けられるプロジェクション装置等の映像装置はRS−232C及びRS−422等の規格に基づくシリアル伝送用の通信ポートを備えており、シリアル伝送用の通信ポートを介してパーソナルコンピュータ及び専用の集中操作端末装置等の制御装置と接続することにより、映像装置は制御装置により遠隔制御される被制御装置として動作する。   For example, video devices such as projection devices installed in audiovisual classrooms and theater rooms of schools have communication ports for serial transmission based on standards such as RS-232C and RS-422, and the communication ports for serial transmission are used. By connecting with a control device such as a personal computer and a dedicated centralized operation terminal device, the video device operates as a controlled device that is remotely controlled by the control device.

このように映像装置を被制御装置とし制御装置にて遠隔操作することにより、被制御装置である映像装置は、シアタールームにある他の機器と共通のパーソナルコンピュータ用アプリケーションソフト及び専用の集中操作端末装置による操作を受け付け、また制御装置では、被制御装置を制御するための様々な管理情報を被制御装置から取得することが可能になる。   In this way, the video device as a controlled device is remotely controlled by the control device, so that the video device that is the controlled device is a personal computer application software that is common with other devices in the theater room and a dedicated central operation terminal An operation by the apparatus is accepted, and the control apparatus can acquire various management information for controlling the controlled apparatus from the controlled apparatus.

また近年では、プロジェクション装置等の映像装置の制御に建造物中の既存のLAN(Local Area Network)を使用するという要求が増加しており、これらの要求に対して、シリアル伝送用ポートと、LAN用の通信ポートとを備え、TCP/IP等のLANの通信を規定する通信規約及びシリアル伝送を規定する通信規約を相互に変換する機能を有する中継装置が、シリアル−TCP/IPプロトコル変換機として普及し始めている。   In recent years, there has been an increasing demand to use an existing LAN (Local Area Network) in a building for controlling a video device such as a projection device. In response to these requests, a serial transmission port and a LAN Is a serial-TCP / IP protocol converter that includes a communication port for communication, and has a function of mutually converting a communication protocol that defines LAN communication such as TCP / IP and a communication protocol that defines serial transmission. It has begun to spread.

このようなシリアル−TCP/IPプロトコル変換機と呼ばれる中継装置は、シリアル伝送用の一の通信ポートと、LAN用の一の通信ポートとを備え、夫々の通信ポートは、全二重又は半二重により、接続する他の装置と相互に通信を行い、送信及び受信のいずれにも使用することが可能である。   Such a relay device called a serial-TCP / IP protocol converter includes one communication port for serial transmission and one communication port for LAN. Each communication port is full-duplex or half-duplex. It is possible to communicate with other devices to be connected to each other and use it for both transmission and reception.

図14は、従来の中継装置を用いた制御システムの構成を示すブロック図である。図14中10a及び10bは中継装置であり、中継装置10a及び中継装置10bの間は、LAN用の通信ポートを介して、TCP/IP等のプロトコルにて規定されたイーサネット(登録商標)等のLANにて接続されている。   FIG. 14 is a block diagram showing a configuration of a control system using a conventional relay device. In FIG. 14, reference numerals 10a and 10b denote relay apparatuses. Between the relay apparatus 10a and the relay apparatus 10b, Ethernet (registered trademark) or the like defined by a protocol such as TCP / IP is provided via a LAN communication port. Connected via LAN.

さらに中継装置10aは、集中操作用パネル等の制御装置30にシリアル伝送用の通信ポートを介して接続し、中継装置10bは、プロジェクション装置等の被制御装置20にシリアル伝送用の通信ポートを介して接続している。   Further, the relay device 10a is connected to a control device 30 such as a centralized operation panel via a serial transmission communication port, and the relay device 10b is connected to a controlled device 20 such as a projection device via a serial transmission communication port. Connected.

図14に示した様に2台の中継装置10a,10bを用いて中継装置10a及び中継装置10b間をLANにて接続することにより、中継装置10a,10b及びLANを仮想的なシリアルケーブルとして用いることができるので、制御装置30により被制御装置20を、LANを介して制御することが可能になる。   As shown in FIG. 14, the relay devices 10a and 10b and the LAN are used as virtual serial cables by connecting the relay devices 10a and 10b with a LAN using two relay devices 10a and 10b. Therefore, the controlled device 20 can be controlled by the control device 30 via the LAN.

図15は、従来の中継装置を用いた制御システムの構成を示すブロック図である。図15に示す制御システムは、中継装置10により、パーソナルコンピュータ等の制御装置30及びプロジェクション装置等の被制御装置20を接続した構成であり、シリアル伝送用の通信ポートを有する被制御装置20を、LAN用の通信ポートを有する制御装置30により制御することができる。   FIG. 15 is a block diagram showing a configuration of a control system using a conventional relay device. The control system shown in FIG. 15 has a configuration in which a control device 30 such as a personal computer and a controlled device 20 such as a projection device are connected by a relay device 10, and the controlled device 20 having a communication port for serial transmission is It can be controlled by the control device 30 having a communication port for LAN.

そして図14及び図15等の制御システムにて用いられる中継装置は、例えばシリアル伝送用の通信ポートから受信したシリアル伝送のプロトコル(通信規約)に基づくキャラクタデータをTCP/IP等のプロトコルに基づくパケットに変換し、またLAN用の通信ポートからTCP/IP等のプロトコルに基づきパケット化されたデータを抽出してシリアル伝送のプロトコルに基づくキャラクタデータに変換するプロトコル変換機能を有している。   The relay device used in the control system shown in FIGS. 14 and 15, for example, transmits character data based on a serial transmission protocol (communication protocol) received from a serial transmission communication port to a packet based on a protocol such as TCP / IP. And a protocol conversion function for extracting data packetized from a LAN communication port based on a protocol such as TCP / IP and converting it into character data based on a serial transmission protocol.

制御装置であるパーソナルコンピュータと、シリアル通信機能を有する被制御装置である各種情報機器とを接続する装置とは、例えば特許文献1にも示されている。
特開平10−177547号公報
A device that connects a personal computer that is a control device and various information devices that are controlled devices having a serial communication function is also disclosed in Patent Document 1, for example.
Japanese Patent Laid-Open No. 10-177547

しかしながら従来の中継装置は、被制御装置が備えるシリアル伝送用の通信ポートをLAN用の通信ポートに置き換えるだけのものであるため、一のシリアル伝送用の通信ポートを備える被制御装置に従来の制御装置を接続した場合、被制御装置は見かけ上、一のLAN用の通信ポートを備える被制御装置となるため、LANを介しての制御を行うことが可能になる反面、従来からのハードウェア資源を活かしたシリアル伝送用の通信ポートを介しての制御を行うことができなくなるという問題がある。   However, since the conventional relay device simply replaces the serial transmission communication port provided in the controlled device with the LAN communication port, the conventional relay device has the conventional control over the controlled device provided with one serial transmission communication port. When a device is connected, the controlled device appears to be a controlled device having a single LAN communication port, so control can be performed via the LAN, but conventional hardware resources There is a problem that control cannot be performed via a communication port for serial transmission utilizing the above.

この問題は、図14を用いて説明した様に二の中継装置を用いることにより、シリアル伝送用の通信ポートを介しての制御が可能になるが、この場合、LANを単なる伝送路として使用するだけであり、マルチ接続及びブロードキャスト通信等のLANの特徴的な機能を使うことができないという問題がある。   As described with reference to FIG. 14, this problem can be controlled through the serial transmission communication port by using two relay devices. In this case, the LAN is used as a simple transmission path. However, there is a problem that the characteristic functions of the LAN such as multi-connection and broadcast communication cannot be used.

本発明は斯かる事情に鑑みてなされたものであり、被制御装置を接続するシリアル伝送用の第1通信ポートと、被制御装置を接続するシリアル伝送用及びLAN用の複数の第2通信ポートとを備えることにより、被制御装置をシリアル伝送用の通信ポート及びLAN用の通信ポートを備える装置として見なすことができるので、従来のハードウェア資源を活かした制御システム及びLANの特徴的な機能を使うことが可能な制御システムを実現することが可能な中継装置、及びその中継装置を備える制御システムの提供を目的とする。   The present invention has been made in view of such circumstances, and includes a first communication port for serial transmission for connecting a controlled device, and a plurality of second communication ports for serial transmission and LAN for connecting a controlled device. Since the controlled device can be regarded as a device having a communication port for serial transmission and a communication port for LAN, the characteristic functions of the control system and LAN utilizing the conventional hardware resources can be obtained. It is an object of the present invention to provide a relay device capable of realizing a control system that can be used, and a control system including the relay device.

本発明は、第1通信ポート及び複数の第2通信ポートを備え、第1通信ポートを介して接続する装置及び第2通信ポートを介して接続する装置間の通信を中継する中継装置において、前記第1通信ポートは、シリアル伝送用ポートであり、前記第2通信ポートは、シリアル伝送用ポート及びシリアル伝送と異なる通信規約に基づいて通信処理を行う異規約ポートを含み、シリアル伝送用の通信規約に基づき送受信される信号及びシリアル伝送と異なる通信規約に基づき送受信される信号の通信規約を相互に変換する手段を備えることを特徴とする。   The present invention includes a first communication port and a plurality of second communication ports, and a relay device that relays communication between a device connected via the first communication port and a device connected via the second communication port. The first communication port is a serial transmission port, and the second communication port includes a serial transmission port and a different protocol port for performing communication processing based on a communication protocol different from that of serial transmission. And a means for mutually converting a communication protocol of a signal transmitted and received based on the communication protocol of a signal transmitted and received based on a communication protocol different from that of serial transmission.

本発明では、プロジェクション装置等の被制御装置に接続する第1通信ポートと、被制御装置を制御する制御装置を接続することが可能な複数種類の第2通信ポートとを備えることにより、従来から普及しているハードウェア資源を活かしたシリアル伝送用の通信規約に基づき制御を行う制御装置と、シリアル伝送と異なる通信規約に基づき制御を行う制御装置とを接続し、夫々の制御装置により被制御装置を制御することが可能である。   In the present invention, by providing a first communication port connected to a controlled device such as a projection device and a plurality of types of second communication ports capable of connecting a control device that controls the controlled device, A control device that performs control based on a communication protocol for serial transmission utilizing popular hardware resources and a control device that performs control based on a communication protocol different from serial transmission are connected to each other and controlled by each control device. It is possible to control the device.

本発明は、前記シリアル伝送用ポート及び/又は異規約ポートは複数であることを特徴とする。   The present invention is characterized in that there are a plurality of serial transmission ports and / or different protocol ports.

本発明では、第2通信ポートであるシリアル伝送用ポート及び/又は異規約ポートを複数備えることにより、被制御装置を複数の通信ポートを備える装置として用いることができるので、複数の制御装置を接続し、より複雑な管理及び操作等の制御を行うことが可能である。   In the present invention, by providing a plurality of serial transmission ports and / or different protocol ports as the second communication port, the controlled device can be used as a device having a plurality of communication ports, so that a plurality of control devices are connected. In addition, it is possible to control more complicated management and operation.

本発明は、第1通信ポートとの間の通信を中継する一の第2通信ポートを選択する手段を更に備えることを特徴とする。   The present invention further includes means for selecting one second communication port for relaying communication with the first communication port.

本発明では、第1通信ポートとの通信の中継を複数の第2通信ポートの中の選択された一の通信ポートに占有させることにより、被制御装置が複数の制御装置から同時に制御信号を受信したことを原因として、動作が異常になることを防止することが可能である。   In the present invention, a controlled device receives control signals from a plurality of control devices at the same time by occupying one selected communication port among a plurality of second communication ports for relaying communication with the first communication port. It is possible to prevent the operation from becoming abnormal due to the above.

本発明は、第1通信ポートとの間の通信を中継する一の第2通信ポートとして選択されていない他の第2通信ポートが、外部の装置から信号を受信した場合に、信号の送信元へ通信が不可であることを示す信号を送信する手段を更に備えることを特徴とする。   The present invention provides a signal transmission source when another second communication port not selected as one second communication port that relays communication with the first communication port receives a signal from an external device. The apparatus further comprises means for transmitting a signal indicating that communication is impossible.

本発明では、選択された一の第2通信ポートが通信の中継を占有するため中継不可能となる他の第2通信ポートが、制御装置から制御信号等の信号を受信した場合に、受信した信号を無効にして、信号の送信元の制御装置へ通信が不可であることを示すERR信号等の信号を送信することにより、制御装置側では被制御装置がビジー状態であることを認識し、所定時間待機後信号再送信等の処理を行うことが可能である。   In the present invention, when the selected second communication port occupies the relay of the communication and the other second communication port that cannot be relayed receives a signal such as a control signal from the control device, it is received. By invalidating the signal and transmitting a signal such as an ERR signal indicating that communication is not possible to the control device that transmitted the signal, the control device recognizes that the controlled device is busy, It is possible to perform processing such as signal retransmission after waiting for a predetermined time.

本発明は、第1通信ポートとの間の通信を中継する一の第2通信ポートとして選択されていない他の第2通信ポートが、外部の装置から信号を受信した場合に、受信した信号を記憶する手段と、記憶した信号に対応する第2通信ポートが、通信を中継する一の第2通信ポートとして選択されたときに、記憶している信号を、第1通信ポートを介して接続する装置へ送信する手段とを更に備えることを特徴とする。   In the present invention, when another second communication port that is not selected as one second communication port that relays communication with the first communication port receives a signal from an external device, the received signal is When the second communication port corresponding to the stored signal and the stored signal is selected as one second communication port for relaying communication, the stored signal is connected via the first communication port. And a means for transmitting to the apparatus.

本発明では、選択された一の第2通信ポートが通信の中継を占有するため中継不可能となる他の第2通信ポートが、接続している制御装置から制御信号等の信号を受信した場合に、内蔵しているメモリに記憶(バッファリング)し、一の第2通信ポートによる占有が解除され、記憶した信号に対応する第2通信ポートが選択された段階で、記憶している信号を第1通信ポートに接続している被制御装置へ送信することにより、第2通信ポートが受信した信号の中継の確実性を高めることが可能であり、また信号の再送信による制御装置側の処理不可及び通信負荷の増大を防止することが可能である。   In the present invention, when the selected second communication port occupies communication relay and another second communication port that cannot be relayed receives a signal such as a control signal from the connected control device The stored signal is stored (buffered) in the built-in memory, and when the second communication port corresponding to the stored signal is selected after the occupation by the second communication port is released, the stored signal is stored. By transmitting to the controlled device connected to the first communication port, it is possible to improve the certainty of relaying the signal received by the second communication port, and processing on the control device side by signal retransmission Impossibility and an increase in communication load can be prevented.

本発明は、前記異規約ポートは、TCP/IPとして規定された通信規約に基づいて通信処理を行うことを特徴とする。   The present invention is characterized in that the different protocol port performs communication processing based on a communication protocol defined as TCP / IP.

本発明では、広く普及しているTCP/IPとして規定された通信規約に対応させることにより、様々な通信網及び様々な制御機械に接続することが可能である。   In the present invention, it is possible to connect to various communication networks and various control machines by corresponding to the communication protocol defined as TCP / IP which is widely spread.

本発明は、上述した中継装置と、該中継装置に第1通信ポートを介して接続してある制御装置と、該制御装置に制御され、前記中継装置に第2通信ポートを介して接続してある被制御装置とを備えることを特徴とする。   The present invention includes the above-described relay device, a control device connected to the relay device via a first communication port, and a control device controlled by the control device and connected to the relay device via a second communication port. And a controlled device.

本発明では、プロジェクション装置等の被制御装置を、中継装置が備える第1通信ポートに接続し、パーソナルコンピュータ等の複数の制御装置を、中継装置が備える第2通信ポートに接続することにより、従来から普及しているハードウェア資源を活かしたシリアル伝送用の通信規約に基づき制御を行う制御装置と、シリアル伝送と異なる通信規約に基づき制御を行う制御装置とを接続し、夫々の制御装置により被制御装置を制御することが可能である。   In the present invention, a controlled device such as a projection device is connected to a first communication port included in a relay device, and a plurality of control devices such as a personal computer are connected to a second communication port included in the relay device. A control device that performs control based on a communication protocol for serial transmission that utilizes hardware resources that is widely used in Japan and a control device that performs control based on a communication protocol different from serial transmission are connected to each other and are controlled by each control device. It is possible to control the control device.

本発明の中継装置及び制御システムでは、プロジェクション装置等の被制御装置及びパーソナルコンピュータ等の制御装置間の通信を中継する中継装置に、RS−232C等のシリアル伝送用の通信規約に基づき被制御装置と接続するシリアル伝送用ポートである一の第1通信ポート、並びにシリアル伝送用ポート及びシリアル伝送と異なるTCP/IP等の通信規約に基づく異規約ポートを含む複数の第2通信ポートを備えさせる。   In the relay apparatus and control system of the present invention, the controlled apparatus based on the serial transmission communication protocol such as RS-232C is used as the relay apparatus that relays communication between the controlled apparatus such as the projection apparatus and the control apparatus such as the personal computer. A plurality of second communication ports including a first communication port that is a serial transmission port connected to the communication port and a different protocol port based on a communication protocol such as TCP / IP different from the serial transmission port and serial transmission.

この構成により、一のシリアル伝送用ポートのみを備える被制御装置をシリアル伝送用ポート及び異規約ポートを備える被制御用装置として用いることが可能となり、このため従来から普及しているハードウェア資源を活かしたシリアル伝送用の通信規約に基づき制御を行う制御装置と、インターネット及びLAN等の通信網で広く用いられるTCP/IP等の通信規約に基づき制御を行う制御装置とを夫々接続することが可能となるので、従来資産の有効活用並びにマルチ接続及びブロードキャスト通信等のLANの特徴的な機能の活用を行うことが可能である等、優れた効果を奏する。   With this configuration, it becomes possible to use a controlled device having only one serial transmission port as a controlled device having a serial transmission port and a different protocol port. It is possible to connect a control device that performs control based on the communication protocol for serial transmission utilized to a control device that performs control based on a communication protocol such as TCP / IP widely used in communication networks such as the Internet and LAN. As a result, it is possible to effectively use the conventional assets and to use the characteristic functions of the LAN such as multi-connection and broadcast communication.

また本発明では、第1通信ポートとの間の通信を中継する一の第2通信ポートを選択し、選択した一の第2通信ポートに第1通信ポートとの間の通信の中継を占有させ、選択された一の第2通信ポート以外の中継不可能となる他の第2通信ポートが、制御信号等の信号を受信した場合に、受信した信号を無効にして、信号の送信元の制御装置へ中継が不可能であることを示すERR信号等の信号を送信する。   In the present invention, one second communication port that relays communication with the first communication port is selected, and the selected second communication port is made to occupy the relay of communication with the first communication port. When the other second communication port other than the selected second communication port receives a signal such as a control signal, the received signal is invalidated to control the signal transmission source. A signal such as an ERR signal indicating that relaying is impossible is transmitted to the apparatus.

この構成により、制御装置側では被制御装置がビジー状態であると認識し、所定時間待機後信号再送信等の処理を行うことが可能になり、また被制御装置側にとっては複数の制御装置から同時に制御信号を受信することがなくなるので、複数の制御信号を同時に受信したことを原因として動作が異常になることを防止することが可能である等、優れた効果を奏する。   With this configuration, the control device recognizes that the controlled device is busy, and can perform processing such as signal retransmission after waiting for a predetermined time. Since the control signals are not received at the same time, it is possible to prevent the operation from becoming abnormal due to the simultaneous reception of a plurality of control signals.

さらに本発明では、選択した第2通信ポート以外の中継不可能となる、選択されていない他の第2通信ポートが、制御装置から制御信号等の信号を受信した場合に、受信した信号を内蔵しているメモリ等の記憶手段に一時的に記録して、記憶した信号に対応する第2通信ポートが、通信を中継する第2通信ポートとして選択されたときに、記憶した信号を被制御装置へ送信するバッファリングを行う。   Further, according to the present invention, when a second communication port other than the selected second communication port that cannot be relayed receives a signal such as a control signal from the control device, the received signal is incorporated. When the second communication port corresponding to the stored signal temporarily recorded in the storage means such as a memory is selected as the second communication port for relaying communication, the stored signal is controlled. Buffering to send to.

この構成により、制御装置から受信した信号を被制御装置に確実に伝えることが可能となり、しかも受信した信号を無効化する必要がないため中継装置の処理不可を軽減し、信号の再送信を行う必要がないため、信号の再送信処理が不要となるので制御装置側の処理負荷を軽減し、更に再送信が行われないため通信負荷の増大を防止することが可能である等、優れた効果を奏する。   With this configuration, the signal received from the control device can be reliably transmitted to the controlled device, and the received signal does not need to be invalidated, thereby reducing the inability to process the relay device and retransmitting the signal. This eliminates the need for signal re-transmission processing, thus reducing the processing load on the control device side, and further preventing the increase in communication load because re-transmission is not performed. Play.

以下、本発明をその実施の形態を示す図面に基づいて詳述する。
実施の形態1.
図1は本発明の実施の形態1における制御システムの構成を示すブロック図である。図1中10は、本発明の中継装置であり、中継装置10は、プロジェクション装置等の被制御装置20と、パーソナルコンピュータ及び集中操作用パネル等の複数の制御装置31,32とに接続しており、被制御装置20及び制御装置31,32間の通信を中継する処理を行う。
Hereinafter, the present invention will be described in detail with reference to the drawings illustrating embodiments thereof.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of a control system according to Embodiment 1 of the present invention. In FIG. 1, reference numeral 10 denotes a relay device according to the present invention. The relay device 10 is connected to a controlled device 20 such as a projection device and a plurality of control devices 31 and 32 such as a personal computer and a centralized operation panel. Thus, processing for relaying communication between the controlled device 20 and the control devices 31 and 32 is performed.

中継装置10及び被制御装置20間は、RS−232C及びRS−422等のシリアル伝送用の通信規約(プロトコル)に基づき通信処理を行うシリアルケーブルにて接続されている。   The relay device 10 and the controlled device 20 are connected by a serial cable that performs communication processing based on a communication protocol (protocol) for serial transmission such as RS-232C and RS-422.

中継装置10及び制御装置31,32間は、シリアル伝送用の通信処理を行うシリアルケーブル、又はシリアル伝送と異なる通信規約、具体的にはイーサネット(登録商標)等のLAN及びインターネット等の通信網にて用いられるTCP/IP等のLAN用の通信規約に基づき通信処理を行う10BASE−T等の規格のLANケーブルにて接続されている。   Between the relay device 10 and the control devices 31 and 32, a serial cable for performing communication processing for serial transmission, or a communication protocol different from serial transmission, specifically, a LAN such as Ethernet (registered trademark) and a communication network such as the Internet. Are connected by a LAN cable of a standard such as 10BASE-T that performs communication processing based on a communication protocol for LAN such as TCP / IP.

なお以降の説明では、シリアルケーブルにて中継装置10に接続する制御装置を第1制御装置31、LANケーブルにて中継装置10に接続する制御装置を第2制御装置32とする。   In the following description, a control device connected to the relay device 10 via a serial cable is referred to as a first control device 31, and a control device connected to the relay device 10 via a LAN cable is referred to as a second control device 32.

図2は本発明の実施の形態1における中継装置10の内部構成を示すブロック図である。中継装置10は、装置全体を制御するプロセッサ11、プロセッサ11の制御に基づきシリアルケーブルを介して被制御装置20との通信を制御する被制御側シリアルドライバレシーバ12、及びシリアルケーブルを接続する端子を含み被制御側シリアルドライバレシーバ12に制御されて被制御装置20との通信を行う第1通信ポート13を備えている。   FIG. 2 is a block diagram showing an internal configuration of relay apparatus 10 according to Embodiment 1 of the present invention. The relay device 10 includes a processor 11 that controls the entire device, a controlled-side serial driver receiver 12 that controls communication with the controlled device 20 via a serial cable based on the control of the processor 11, and a terminal that connects the serial cable. A first communication port 13 that is controlled by the controlled serial driver receiver 12 and communicates with the controlled device 20 is provided.

第1通信ポート13は、信号をキャラクタデータとしてシリアルに伝送するRS−232C及びRS−422等の規格に基づくシリアル伝送用ポートである。   The first communication port 13 is a serial transmission port based on standards such as RS-232C and RS-422 that serially transmit signals as character data.

また中継装置10は、プロセッサ11の制御に基づきシリアルケーブルを介して第1制御装置31との通信を制御する制御側シリアルドライバレシーバ14、及びシリアルケーブルを接続する端子を含み制御側シリアルドライバレシーバ14に制御されて第1制御装置31との通信を行うシリアル用第2通信ポート15を備えている。   The relay device 10 includes a control-side serial driver receiver 14 that controls communication with the first control device 31 via a serial cable based on the control of the processor 11, and a terminal that connects the serial cable. And a second serial communication port 15 that communicates with the first control device 31 under the control of the first control device 31.

シリアル用第2通信ポート15は、RS−232C及びRS−422等の規格に基づくシリアル伝送用ポートである。   The serial second communication port 15 is a serial transmission port based on standards such as RS-232C and RS-422.

さらに中継装置10は、プロセッサ11の制御に基づきLANケーブルを介して第2制御装置32との通信を制御する制御側ネットワークインターフェースコントローラ16、及びLANケーブルを接続する端子を含み制御側ネットワークインターフェースコントローラ16に制御されて第2制御装置32との通信を行うLAN用第2通信ポート17を備えている。   Furthermore, the relay device 10 includes a control-side network interface controller 16 that controls communication with the second control device 32 via a LAN cable based on the control of the processor 11 and a terminal that connects the LAN cable. The second communication port 17 for LAN that performs communication with the second control device 32 under the control of the second control device 32 is provided.

LAN用第2通信ポート17は、シリアル伝送と異なる通信規約に基づいて通信処理を行う異規約ポート、ここではTCP/IP等のLAN用の通信規約に基づき、信号をパケット化して伝送するLANポートである。   The second LAN communication port 17 is a different protocol port for performing communication processing based on a communication protocol different from that for serial transmission. Here, the LAN port is used for packetizing and transmitting a signal based on a LAN communication protocol such as TCP / IP. It is.

そして中継装置10は、第1通信ポート13を介して接続する被制御装置20と、シリアル用第2通信ポート15を介して接続する第1制御装置31又はLAN用第2通信ポート17を介して接続する第2制御装置32との間の通信の中継を行う。   The relay device 10 is connected to the controlled device 20 connected via the first communication port 13 and the first control device 31 connected via the serial second communication port 15 or the LAN second communication port 17. It relays communication with the second control device 32 to be connected.

プロセッサ11は、制御側シリアルドライバレシーバ14を介して第1制御装置31と信号を送受信する場合に、送受信する信号を一時的に記憶するメモリ等の手段である制御側シリアルバッファ101、制御側ネットワークインターフェースコントローラ16を介して第2制御装置32と信号を送受信する場合に、送受信する信号を一時的に記憶するメモリ等の手段である制御側LANバッファ102、及び被制御側シリアルドライバレシーバ12を介して被制御装置20と信号を送受信する場合に、送受信する信号を一時的に記憶するメモリ等の手段である被制御側シリアルバッファ103を有している。   When the processor 11 transmits / receives a signal to / from the first control device 31 via the control-side serial driver receiver 14, the processor 11 temporarily stores a signal to be transmitted / received, such as a control-side serial buffer 101, a control-side network. When transmitting / receiving a signal to / from the second control device 32 via the interface controller 16, the control side LAN buffer 102 which is a means such as a memory for temporarily storing the transmitted / received signal and the controlled side serial driver receiver 12 are used. When a signal is transmitted / received to / from the controlled device 20, the controlled-side serial buffer 103, which is a means such as a memory for temporarily storing the transmitted / received signal, is provided.

さらにプロセッサ11は、被制御装置20へ送信すべき信号を、制御側シリアルバッファ101に記憶されている信号及び制御側LANバッファ102にて記憶されている信号の中から選択する手段として第1セレクタ104を備えている。   Further, the processor 11 selects a signal to be transmitted to the controlled device 20 from a signal stored in the control-side serial buffer 101 and a signal stored in the control-side LAN buffer 102 as a first selector. 104 is provided.

そして第1セレクタ104が切り替わることにより、制御側シリアルバッファ101及び制御側LANバッファ102の中のいずれか一つと、被制御側シリアルバッファ103との間に経路が設定され、選択された第1制御装置31又は第2制御装置32から受信した信号を被制御装置20へ送信することが可能となる。   When the first selector 104 is switched, a path is set between one of the control-side serial buffer 101 and the control-side LAN buffer 102 and the controlled-side serial buffer 103, and the selected first control is selected. A signal received from the device 31 or the second control device 32 can be transmitted to the controlled device 20.

なおLAN用第2通信ポート17を介して受信した信号は、LAN用の通信規約に基づくパケット化された信号であるので、キャラクタデータ化処理(又はキャラクタデータ化回路)105にてキャラクタ化された上で、キャラクタバッファ106に一時的に記憶された後、第1セレクタ104へ送られる。   Since the signal received via the second LAN communication port 17 is a packetized signal based on the LAN communication protocol, it is characterized by the character data conversion process (or character data conversion circuit) 105. Above, the data is temporarily stored in the character buffer 106 and then sent to the first selector 104.

またプロセッサ11は、被制御装置20から受信して被制御側シリアルバッファ103に記憶されている信号の送信先となる装置を、第1制御装置31及び第2制御装置32の中から選択する手段として第2セレクタ107を備えている。   Further, the processor 11 selects, from the first control device 31 and the second control device 32, a device that is a transmission destination of a signal received from the controlled device 20 and stored in the controlled-side serial buffer 103. The second selector 107 is provided.

そして第2セレクタ107が切り替わることにより、被制御側シリアルバッファ103と、制御側シリアルバッファ101及び制御側LANバッファ102の中のいずれか一つとの間に経路が設定され、被制御装置20から受信した信号を、選択された第1制御装置31又は第2制御装置32へ送信することが可能となる。   When the second selector 107 is switched, a path is set between the controlled-side serial buffer 103 and any one of the control-side serial buffer 101 and the control-side LAN buffer 102 and received from the controlled device 20. This signal can be transmitted to the selected first control device 31 or second control device 32.

なお被制御用シリアルバッファ103を介して受信した信号は、キャラクタデータであるため、第2セレクタ107から制御側LANバッファ102へ送る時に、パケット化処理(又はパケット化回路)108によりパケット化した上で、制御側LANバッファ102へ送られる。   Since the signal received via the controlled serial buffer 103 is character data, it is packetized by the packetization process (or packetization circuit) 108 when sent from the second selector 107 to the control-side LAN buffer 102. Is sent to the control-side LAN buffer 102.

さらにプロセッサ11は、第1セレクタ104及び第2セレクタ107の切替処理の同期を取り、経路を設定する時間を管理するホールドタイマ109を備えている。   Furthermore, the processor 11 includes a hold timer 109 that synchronizes the switching processing of the first selector 104 and the second selector 107 and manages the time for setting a path.

このように中継装置10は、プロセッサ11の制御により、第1通信ポート13との間に経路を設定して通信を中継する一の第2通信ポートを、シリアル用第2通信ポート15及びLAN用第2通信ポート17の中から選択する第1セレクタ104及び第2セレクタ107並びにホールドタイマ109を備えている。   In this way, the relay device 10 sets a second communication port for relaying communication by setting a path with the first communication port 13 under the control of the processor 11, the second communication port for serial 15 and the LAN. A first selector 104, a second selector 107, and a hold timer 109 that are selected from the second communication port 17 are provided.

また中継装置10は、プロセッサ11の制御により、シリアル伝送用の通信規約に基づき送受信されるキャラクタデータ及びLAN用の通信規約に基づき送受信されるパケット化されたデータの通信規約を相互に変換すべく、キャラクタデータ化処理105、キャラクタバッファ106及びパケット化処理108等の各種処理プログラムを備えている。   Further, the relay device 10 should convert the communication protocol of the character data transmitted / received based on the communication protocol for serial transmission and the communication protocol of packetized data transmitted / received based on the communication protocol for LAN, under the control of the processor 11. And various processing programs such as a character data conversion process 105, a character buffer 106, and a packetization process 108.

次に本発明の中継装置10における被制御装置20と、第1制御装置31又は第2制御装置32との間の信号の送受信及び経路の切替について説明する。   Next, signal transmission / reception and path switching between the controlled apparatus 20 and the first control apparatus 31 or the second control apparatus 32 in the relay apparatus 10 of the present invention will be described.

シリアル伝送用の通信規約に基づく通信では、LAN用の通信規約に基づく通信の様に複数の装置へ同時にパケットを送信することができない。そのため中継装置10では、被制御装置20と通信する装置を、第1制御装置31及び第2制御装置32の中の一の制御装置を選択し、選択した制御装置に通信を占有させて、他の制御装置から割込が起こらない様に制御しなければならず、選択した制御装置に通信を占有させるべく第1セレクタ104及び第2セレクタ107が機能する。   In communication based on the communication protocol for serial transmission, packets cannot be transmitted simultaneously to a plurality of devices as in communication based on the communication protocol for LAN. Therefore, the relay device 10 selects one control device among the first control device 31 and the second control device 32 as the device that communicates with the controlled device 20, makes the selected control device occupy the communication, and so on. The first selector 104 and the second selector 107 function so as to occupy the selected control device with communication.

また第1制御装置31又は第2制御装置32から中継装置10を介して被制御装置20へ送信される信号は、操作及び管理情報要求等の制御信号であり、被制御装置20から第1制御装置31又は第2制御装置32へ送信される信号は、制御信号に対する操作完了、操作不可能及び管理情報等の応答信号である。   The signal transmitted from the first control device 31 or the second control device 32 to the controlled device 20 via the relay device 10 is a control signal such as an operation and management information request. The signal transmitted to the device 31 or the second control device 32 is a response signal such as operation completion for the control signal, operation inability and management information.

即ち被制御装置20から第1制御装置31又は第2制御装置32へ送信される応答信号とは、制御信号に対する応答であるため、制御信号及び応答信号の通信を確実に行うためにも、選択した一の制御装置に被制御装置20との通信を占有させなければならず、また通信終了後は占有状態を解除し、他の制御装置が通信できるようにしなければならない。   That is, since the response signal transmitted from the controlled device 20 to the first control device 31 or the second control device 32 is a response to the control signal, the control signal and the response signal can be selected to ensure communication. The one control device must occupy communication with the controlled device 20, and after the communication is completed, the occupied state must be released so that another control device can communicate.

図3は本発明の実施の形態1における中継装置10の中継処理を示すタイムチャートである。図3に示すタイムチャートでは、上からシリアル用第2通信ポート15、LAN用第2通信ポート17、そして第1通信ポート13による通信状況を示し、横方向に時間を取って、通信状況の経時的な変化を示している。   FIG. 3 is a time chart showing relay processing of the relay device 10 according to Embodiment 1 of the present invention. In the time chart shown in FIG. 3, the communication status by the second communication port 15 for serial, the second communication port 17 for LAN, and the first communication port 13 is shown from the top. Changes.

図3中時刻T0 〜T1 が、被制御装置20と通信する一の制御装置として、第1制御装置31が選択され、被制御装置20との通信を第1制御装置31が占有し、第1通信ポート13及びシリアル用第2通信ポート15間に経路が設定された時間帯であり、時刻T2 〜T3 が、被制御装置20と通信する一の制御装置として、第2制御装置32が選択され、被制御装置20との通信を第2制御装置32が占有し、第1通信ポート13及びLAN用第2通信ポート17間に経路が設定された時間帯である。   The first control device 31 is selected as one control device that communicates with the controlled device 20 at times T0 to T1 in FIG. 3, the first control device 31 occupies communication with the controlled device 20, and the first control device 31 The second control device 32 is selected as one control device in which the route is set between the communication port 13 and the second serial communication port 15 and the times T2 to T3 communicate with the controlled device 20. The second control device 32 occupies communication with the controlled device 20 and a time zone in which a path is set between the first communication port 13 and the second communication port 17 for LAN.

図3に示す様に、時刻T0 に到達後、中継装置10は、第1制御装置31から被制御装置20へ送信される制御信号を中継し、また制御信号に対して被制御装置20から第1制御装置31へ送信される応答信号を中継する。   As shown in FIG. 3, after reaching time T0, the relay device 10 relays the control signal transmitted from the first control device 31 to the controlled device 20, and the control device 20 receives the control signal from the controlled device 20 in response to the control signal. 1 The response signal transmitted to the control device 31 is relayed.

そして中継装置10では、応答信号の中継が終了した後の時刻T1 において、第1制御装置31による占有状態を解除し、時刻T2 において第2制御装置32及び被制御装置20間に経路を設定する。   The relay device 10 releases the occupied state by the first control device 31 at time T1 after the relay of the response signal is completed, and sets a path between the second control device 32 and the controlled device 20 at time T2. .

さらに時刻T2 以降、中継装置10は、第2制御装置32から被制御装置20へ送信される制御信号を中継し、また制御信号に対して被制御装置20から第2制御装置32へ送信される応答信号を中継する。   Further, after time T2, the relay device 10 relays the control signal transmitted from the second control device 32 to the controlled device 20, and transmits the control signal from the controlled device 20 to the second control device 32. Relay the response signal.

そして中継装置10では、応答信号の中継が終了した後、時刻T3 において第2制御装置32による占有状態を解除する。   Then, the relay device 10 releases the occupied state by the second control device 32 at time T3 after the relay of the response signal is completed.

ただし図3のタイムチャートを用いて説明した通信方法は、本来一の制御装置と一の被制御装置20との間での通信を前提にした通信方法であるので、各通信の終了を示す終了コードが存在しない場合又は応答信号が存在しない場合が考えられる。その様な場合には経路の切替に関する問題が生じる可能性がある。   However, since the communication method described with reference to the time chart of FIG. 3 is originally a communication method premised on communication between one control device and one controlled device 20, an end indicating the end of each communication. It is conceivable that there is no code or no response signal. In such a case, there is a possibility that a problem related to the switching of the route may occur.

そこで中継装置10が、被制御装置20へ送信される信号を中継した段階で、経路の占有とプロセッサ11のホールドタイマ109による占有時間の計測とを開始し、計測している占有時間が予め設定している所定時間に到達した段階で経路の占有を解除するという通信方法が考えられる。   Therefore, when the relay apparatus 10 relays the signal transmitted to the controlled apparatus 20, the occupation of the path and the measurement of the occupation time by the hold timer 109 of the processor 11 are started, and the measured occupation time is set in advance. A communication method is considered in which the occupation of the route is released when the predetermined time is reached.

なおその場合、予め設定される占有時間とは、最低限必要な時間に若干の余裕時間を見越して設定される。また占有時間はユーザの操作により任意の値に設定することが可能である。そして占有時間がカウントされていない場合にのみ制御信号の中継の開始を行うことができる。   In that case, the preset occupation time is set in anticipation of some margin time in the minimum necessary time. The occupation time can be set to an arbitrary value by the user's operation. The relay of the control signal can be started only when the occupation time is not counted.

図4は本発明の実施の形態1における中継装置10の中継処理を示すタイムチャートである。図4に示すタイムチャートでは、上からシリアル用第2通信ポート15、LAN用第2通信ポート17、そして第1通信ポート13による通信状況を示し、横方向に時間を取って、通信状況の経時的な変化を示している。   FIG. 4 is a time chart showing relay processing of the relay device 10 according to Embodiment 1 of the present invention. In the time chart shown in FIG. 4, the communication status by the serial second communication port 15, the LAN second communication port 17, and the first communication port 13 is shown from the top. Changes.

図4中時刻T0 において、中継装置10では、第1制御装置31から被制御装置20へ送信される信号の中継が開始され、同時に経路の占有及び占有時間の計測が開始され、時刻T1 において、計測している占有時間が予め設定している所定時間に到達して経路の占有が解除される。   At time T0 in FIG. 4, the relay device 10 starts relaying a signal transmitted from the first control device 31 to the controlled device 20, and simultaneously starts occupying the route and measuring the occupied time. At time T1, The occupied time being measured reaches a predetermined time set in advance, and the occupation of the route is released.

占有時間として規定されている時刻T0 〜時刻T1 の間隔は、図4に示す様に、第1制御装置31から被制御装置20へ送信される制御信号を中継し、被制御装置20から第1制御装置31へ送信される応答信号を中継する時間と比べて若干の余裕時間を見越している。   As shown in FIG. 4, the interval between time T0 and time T1 defined as the occupation time relays a control signal transmitted from the first control device 31 to the controlled device 20, and the first time from the controlled device 20 is the first. Compared to the time for relaying the response signal transmitted to the control device 31, a slight margin is expected.

そして時刻T1 到達後は、占有が解除されるため第1制御装置31及び第2制御装置32の双方が被制御装置20へ制御信号を送信することが可能な状態となり、図4では、時刻T2 の時点で第2制御装置32から被制御装置20へ制御信号が送信されているため、時刻T2 〜時刻T3 の間は第2制御装置32及び被制御装置20間の通信のために経路が占有されることとなる。   Then, after reaching time T1, since the occupation is released, both the first control device 31 and the second control device 32 can transmit a control signal to the controlled device 20, and in FIG. Since the control signal is transmitted from the second control device 32 to the controlled device 20 at the time of, the path is occupied for communication between the second control device 32 and the controlled device 20 between time T2 and time T3. Will be.

次に占有時間の計測方法の詳細について説明する。図5は本発明の実施の形態1における中継装置10の中継処理を示すタイムチャートである。図5に示すタイムチャートでは、上側がシリアル用第2通信ポート15、そして下側が第1通信ポート13による通信状況を示し、横方向に時間を取って通信状況の経時的な変化を示している。   Next, the details of the occupation time measurement method will be described. FIG. 5 is a time chart showing relay processing of the relay device 10 according to Embodiment 1 of the present invention. In the time chart shown in FIG. 5, the upper side shows the communication status by the second communication port 15 for serial and the lower side shows the communication status by the first communication port 13, and shows the time-dependent change of the communication status by taking time in the horizontal direction. .

図5に示す様に占有時間は、第1制御装置31から被制御装置20へ制御信号の中継が開始された時点から計測される。ただし図5に示す様に制御信号は、伝送する情報の単位となる、複数のキャラクタデータとして送信され、図5に示す例では、五のキャラクタデータにて構成されている。   As shown in FIG. 5, the occupation time is measured from the time when the relay of the control signal is started from the first control device 31 to the controlled device 20. However, as shown in FIG. 5, the control signal is transmitted as a plurality of character data, which is a unit of information to be transmitted, and is composed of five character data in the example shown in FIG.

占有時間は、各キャラクタデータを中継した時点から計測を開始するため、図5に示す例では、T11,T12,T13,T14,T15として示される夫々の時点から占有時間の計測を開始し、占有時間の終了は、最後のキャラクタデータを送信した時点であるT15から所定時間経過後のT20の時点となる。   Since the occupation time starts from the time when each character data is relayed, in the example shown in FIG. 5, the measurement of the occupation time is started from each time indicated as T11, T12, T13, T14, and T15. The end of the time is a time point T20 after a predetermined time has elapsed from the time point T15 when the last character data is transmitted.

なお図5にて示される様に、応答信号も複数のキャラクタデータからなり、また占有時間は制御信号の送信開始から応答信号の送信完了までの最低限必要な時間に余裕時間を見越した時間が設定される。   As shown in FIG. 5, the response signal is also composed of a plurality of character data, and the occupation time is the time required for the marginal time from the minimum required time from the start of transmission of the control signal to the completion of transmission of the response signal. Is set.

次に被制御装置20との通信が一方の制御装置により占有されている場合に、中継不可能となる他方の通信について説明する。   Next, the other communication that cannot be relayed when the communication with the controlled device 20 is occupied by one control device will be described.

本発明の中継装置10では、一方の被制御装置20との通信が一方の制御装置により占有されている場合に、中継不可能となる他方の制御装置から被制御装置20へ送信すべき制御信号を受信した場合、受信した制御信号を被制御装置20へ送信せずに、制御信号に対して通信が不可であることを示すERR信号を送信する。   In the relay device 10 of the present invention, when communication with one controlled device 20 is occupied by one control device, a control signal to be transmitted from the other control device to the controlled device 20 that cannot be relayed Is received, an ERR signal indicating that communication is not possible with respect to the control signal is transmitted without transmitting the received control signal to the controlled apparatus 20.

ERR信号は、本来、通信内容の間違い及び通信を受け入れることができない場合に被制御装置20から制御装置へ送信する信号であり、本発明の中継装置10では、中継することができない場合にERR信号を送信することにより、制御装置側に被制御装置20が通信不可能なビジー状態であると認識させる。   The ERR signal is a signal that is originally transmitted from the controlled device 20 to the control device when an error in communication content and communication cannot be accepted. In the relay device 10 of the present invention, the ERR signal is transmitted when the relay cannot be performed. , The control device 20 recognizes that the controlled device 20 is in a busy state where communication is impossible.

制御装置側では、ERR信号を受信して被制御装置20が通信不可能なビジー状態であると認識した場合、所定時間待機後、再度制御信号を送信する処理を行う。   On the control device side, when receiving the ERR signal and recognizing that the controlled device 20 is in a busy state where communication is not possible, after waiting for a predetermined time, the control device transmits the control signal again.

図6は本発明の実施の形態1における中継装置10の中継処理を示すタイムチャートである。図6に示すタイムチャートでは、上からシリアル用第2通信ポート15、LAN用第2通信ポート17、そして第1通信ポート13による通信状況を示し、横方向に時間を取って、通信状況の経時的な変化を示している。   FIG. 6 is a time chart showing relay processing of the relay device 10 according to Embodiment 1 of the present invention. In the time chart shown in FIG. 6, the communication status by the second communication port 15 for serial, the second communication port 17 for LAN, and the first communication port 13 is shown from the top. Changes.

図6は、図4において、第1制御装置31及び被制御装置20間の通信の中継により経路が占有される時刻T0 〜時刻T1 の間に第2制御装置32から制御信号を受信した状況を示しており、図6に示すように本発明の中継装置10では、受信した制御信号に対して通信が不可であることを示すERR信号を送信している。   FIG. 6 shows a situation in which a control signal is received from the second control device 32 during the time T0 to time T1 when the route is occupied by relaying communication between the first control device 31 and the controlled device 20 in FIG. As shown in FIG. 6, the relay apparatus 10 of the present invention transmits an ERR signal indicating that communication is not possible for the received control signal.

そして第2制御装置32では、ERR信号を受信することにより被制御装置20が通信することができない状態であると認識し、所定時間待機後、再度制御信号を送信し、中継装置10では、再度送信された制御信号を占有時間が終了した後で受信しているので、被制御装置20へ受信した制御信号を送信する中継処理を開始する。   Then, the second control device 32 recognizes that the controlled device 20 cannot communicate by receiving the ERR signal, transmits a control signal again after waiting for a predetermined time, and the relay device 10 again Since the transmitted control signal is received after the occupation time has expired, a relay process for transmitting the received control signal to the controlled apparatus 20 is started.

次に本発明の中継装置10の処理をフローチャートを用いて説明する。図7は本発明の実施の形態1における中継装置10による第1制御装置31及び被制御装置20間の通信の中継処理を示すフローチャートである。   Next, processing of the relay apparatus 10 according to the present invention will be described using a flowchart. FIG. 7 is a flowchart showing a relay process of communication between the first control device 31 and the controlled device 20 by the relay device 10 according to the first embodiment of the present invention.

中継装置10では、プロセッサ11の制御により、シリアル用第2通信ポート15に接続する第1制御装置31から制御信号を受信し(S101)、中継の可否を判定し(S102)、中継可能であると判定した場合(S102:YES)、第1セレクタ104及び第2セレクタ107により、一のシリアル用第2通信ポート15及び第1通信ポート13間の通信のみを中継可能とする占有を開始し(S103)、ホールドタイマ109にて占有時間の計測を開始して(S104)、一のシリアル用第2通信ポート15に接続する第1制御装置31及び第1通信ポート13に接続する被制御装置20間の通信の中継を開始する(S105)。   The relay device 10 receives the control signal from the first control device 31 connected to the serial second communication port 15 under the control of the processor 11 (S101), determines whether relaying is possible (S102), and can relay. Is determined (S102: YES), the first selector 104 and the second selector 107 start occupying only the communication between the second serial communication port 15 and the first communication port 13 that can be relayed ( S103), the hold timer 109 starts measuring the occupation time (S104), and the first control device 31 connected to the second serial communication port 15 and the controlled device 20 connected to the first communication port 13. Relay of communication between them is started (S105).

ステップS102における中継の可否の判定は、他の通信の中継をしているか否か、即ちLAN用第2通信ポート17及び第1通信ポート13間の通信の中継のための占有時間の計測中であるか否かを判定することにより行われる。   Whether or not relaying is possible is determined in step S102 as to whether or not other communication is being relayed, that is, the occupation time for relaying communication between the second communication port 17 for LAN and the first communication port 13 is being measured. This is done by determining whether or not there is.

そして中継装置10では、プロセッサ11の制御により、計測している占有時間が所定時間に到達したことを検出した時点で(S106)、一のシリアル用第2通信ポート15による占有を解除し(S107)、処理を終了する。   When the relay device 10 detects that the measured occupation time has reached a predetermined time under the control of the processor 11 (S106), the relay device 10 releases the occupation by the second serial communication port 15 (S107). ), The process is terminated.

ステップS102において、中継可能ではないと判定した場合(S102:NO)、中継装置10では、プロセッサ11の制御により、制御信号の送信元である第1制御装置31へ、通信が不可であることを示すERR信号を送信し(S108)、処理を終了する。   If it is determined in step S102 that relaying is not possible (S102: NO), the relay device 10 cannot communicate with the first control device 31 that is the transmission source of the control signal under the control of the processor 11. An ERR signal is transmitted (S108), and the process is terminated.

図8は本発明の実施の形態1における中継装置10による第2制御装置31及び被制御装置20間の通信の中継処理を示すフローチャートである。   FIG. 8 is a flowchart showing a relay process of communication between the second control device 31 and the controlled device 20 by the relay device 10 according to the first embodiment of the present invention.

中継装置10では、プロセッサ11の制御により、LAN用第2通信ポート17に接続する第2制御装置32から制御信号を受信し(S201)、中継の可否を判定し(S202)、中継可能であると判定した場合(S202:YES)、一のLAN用第2通信ポート17及び第1通信ポート13間の通信のみを中継可能とする占有を開始し(S203)、占有時間の計測を開始して(S204)、一のLAN用第2通信ポート17に接続する第2制御装置32及び第1通信ポート13に接続する被制御装置20間の通信の中継を開始する(S205)。   The relay device 10 receives the control signal from the second control device 32 connected to the second LAN communication port 17 under the control of the processor 11 (S201), determines whether or not relaying is possible (S202), and can relay. (S202: YES), occupancy is started so that only communication between the second LAN communication port 17 and the first communication port 13 can be relayed (S203), and measurement of the occupancy time is started. (S204), relay of communication between the second control device 32 connected to one LAN second communication port 17 and the controlled device 20 connected to the first communication port 13 is started (S205).

なお通信の中継に際し、中継装置10では、プロセッサ11の制御により、中継する信号の通信規約を相互に変換する(S206)。   When relaying communication, the relay device 10 mutually converts the communication protocol of signals to be relayed under the control of the processor 11 (S206).

即ち第2制御装置31からLAN用第2通信ポート17を介して受信した制御信号は、LAN用の通信規約に基づくパケット化された信号であるので、キャラクタデータ化処理105によりキャラクタデータに変換する。   That is, since the control signal received from the second control device 31 via the second LAN communication port 17 is a packetized signal based on the LAN communication protocol, it is converted into character data by the character data conversion processing 105. .

また被制御装置20から第1通信ポート13を介して受信した応答信号は、キャラクタデータであるため、パケット化処理108によりパケット化する。   Further, since the response signal received from the controlled device 20 via the first communication port 13 is character data, it is packetized by the packetizing process 108.

このようにキャラクタデータ化処理105及びパケット化処理108等のプログラムの処理により、通信規約を相互に変換する機能を実現する。   In this way, a function for mutually converting the communication protocol is realized by processing of the program such as the character data conversion processing 105 and the packetization processing 108.

そして中継装置10では、プロセッサ11の制御により、計測している占有時間が所定時間に到達したことを検出した時点で(S207)、一のLAN用第2通信ポート17による占有を解除し(S208)、処理を終了する。   When the relay device 10 detects that the measured occupation time has reached a predetermined time under the control of the processor 11 (S207), the relay device 10 releases the occupation by the second LAN communication port 17 (S208). ), The process is terminated.

ステップS202において、中継可能ではないと判定した場合(S202:NO)、中継装置10では、プロセッサ11の制御により、制御信号の送信元である第2制御装置32へ、通信が不可であることを示すERR信号を送信し(S209)、処理を終了する。   If it is determined in step S202 that relaying is not possible (S202: NO), the relay device 10 determines that communication to the second control device 32 that is the transmission source of the control signal is not possible under the control of the processor 11. An ERR signal is transmitted (S209), and the process is terminated.

なお被制御装置20との通信が一方の制御装置により占有されている場合、上述した様に中継不可能となる他方の制御装置に対してERR信号を送信するのではなく、他方の制御装置から受信した制御信号をバッファリングして、占有が解除された段階でバッファリングした制御信号を被制御装置20へ送信するようにしても良い。   If communication with the controlled device 20 is occupied by one control device, the ERR signal is not transmitted to the other control device that cannot be relayed as described above, but from the other control device. The received control signal may be buffered, and the buffered control signal may be transmitted to the controlled device 20 when the occupation is released.

次にバッファリングにより通信の中継を制御する処理についてフローチャートを用いて説明する。図9は本発明の実施の形態1における中継装置10による第1制御装置31及び被制御装置20間の通信の中継処理を示すフローチャートである。   Next, processing for controlling communication relay by buffering will be described with reference to a flowchart. FIG. 9 is a flowchart showing a relay process of communication between the first control device 31 and the controlled device 20 by the relay device 10 according to the first embodiment of the present invention.

中継装置10では、プロセッサ11の制御により、シリアル用第2通信ポート15に接続する第1制御装置31から制御信号を受信し(S301)、中継の可否を判定し(S302)、中継可能であると判定した場合(S302:YES)、一のシリアル用第2通信ポート15及び第1通信ポート13間の通信のみを中継可能とする占有を開始し(S303)、ホールドタイマ109にて占有時間の計測を開始して(S304)、一のシリアル用第2通信ポート15に接続する第1制御装置31及び第1通信ポート13に接続する被制御装置20間の通信の中継を開始する(S305)。   The relay device 10 receives a control signal from the first control device 31 connected to the serial second communication port 15 under the control of the processor 11 (S301), determines whether relaying is possible (S302), and can relay. (S302: YES), occupancy is started so that only communication between the second serial communication port 15 and the first communication port 13 can be relayed (S303). Measurement is started (S304), and relaying of communication between the first control device 31 connected to one serial second communication port 15 and the controlled device 20 connected to the first communication port 13 is started (S305). .

そして中継装置10では、プロセッサ11の制御により、計測している占有時間が所定時間に到達したことを検出した時点で(S306)、一のシリアル用第2通信ポート15による占有を解除し(S307)、処理を終了する。   Then, in the relay device 10, when it is detected by the control of the processor 11 that the measured occupation time has reached the predetermined time (S306), the occupation by one serial second communication port 15 is released (S307). ), The process is terminated.

ステップS302において、中継可能ではないと判定した場合(S302:NO)、中継装置10では、プロセッサ11の制御により、バッファリング処理として、受信した制御信号を制御側シリアルバッファ101に一時的に記憶する(S308)。   If it is determined in step S302 that relaying is not possible (S302: NO), the relay device 10 temporarily stores the received control signal in the control-side serial buffer 101 as buffering processing under the control of the processor 11. (S308).

そして中継装置10では、プロセッサ11の制御により、他の通信の中継による占有の解除を検出した時点で(S309)、ステップS303へ進み、制御用シリアルバッファ101に一時的に記憶した制御信号を被制御装置20へ送信する。   When the relay device 10 detects the release of occupation by relay of another communication under the control of the processor 11 (S309), the process proceeds to step S303, and the control signal temporarily stored in the control serial buffer 101 is received. It transmits to the control apparatus 20.

図10は本発明の実施の形態1における中継装置10による第2制御装置31及び被制御装置20間の通信の中継処理を示すフローチャートである。   FIG. 10 is a flowchart showing a relay process of communication between the second control device 31 and the controlled device 20 by the relay device 10 according to the first embodiment of the present invention.

中継装置10では、プロセッサ11の制御により、LAN用第2通信ポート17に接続する第2制御装置32から制御信号を受信し(S401)、中継の可否を判定し(S402)、中継可能であると判定した場合(S402:YES)、一のLAN用第2通信ポート17及び第1通信ポート13間の通信のみを中継可能とする占有を開始し(S403)、占有時間の計測を開始して(S404)、一のLAN用第2通信ポート17に接続する第2制御装置32及び第1通信ポート13に接続する被制御装置20間の通信の中継を開始する(S405)。   The relay device 10 receives the control signal from the second control device 32 connected to the second LAN communication port 17 under the control of the processor 11 (S401), determines whether relaying is possible (S402), and can relay. (S402: YES), occupancy is started so that only communication between the second LAN communication port 17 and the first communication port 13 can be relayed (S403), and measurement of the occupancy time is started. (S404), relay of communication between the second control device 32 connected to the second LAN second communication port 17 and the controlled device 20 connected to the first communication port 13 is started (S405).

なお通信の中継に際し、中継装置10では、プロセッサ11の制御により、中継する信号の通信規約を相互に変換する(S406)。   When relaying communication, the relay device 10 mutually converts the communication protocol of signals to be relayed under the control of the processor 11 (S406).

そして中継装置10では、プロセッサ11の制御により、計測している占有時間が所定時間に到達したことを検出した時点で(S407)、一のLAN用第2通信ポート17による占有を解除し(S408)、処理を終了する。   When the relay device 10 detects that the measured occupation time has reached a predetermined time under the control of the processor 11 (S407), the relay device 10 releases the occupation by the second LAN second communication port 17 (S408). ), The process is terminated.

ステップS402において、中継可能ではないと判定した場合(S402:NO)、中継装置10では、プロセッサ11の制御により、バッファリング処理として、受信した制御信号を制御側LANバッファ102に一時的に記憶する(S409)。   If it is determined in step S402 that relaying is not possible (S402: NO), the relay device 10 temporarily stores the received control signal in the control-side LAN buffer 102 as buffering processing under the control of the processor 11. (S409).

そして中継装置10では、プロセッサ11の制御により、他の通信の中継による占有の解除を検出した時点で(S410)、ステップS303へ進み、制御側LANバッファ102に一時的に記憶した制御信号を被制御装置20へ送信する。   When the relay device 10 detects the release of occupation by relay of another communication under the control of the processor 11 (S410), the process proceeds to step S303, and the control signal temporarily stored in the control-side LAN buffer 102 is received. It transmits to the control apparatus 20.

このようにバッファリングを行うことにより、制御装置から受信した信号を被制御装置20に確実に伝えることが可能となり、しかも受信した信号を無効化する必要がないため中継装置10の処理不可を軽減し、信号の再送信を行う必要がないため、信号の再送信処理が不要となるので制御装置側の処理負荷を軽減し、更に再送信が行われないため通信負荷の増大を防止することが可能である。   By performing buffering in this way, it becomes possible to reliably transmit the signal received from the control device to the controlled device 20, and it is not necessary to invalidate the received signal, thereby reducing the inability to process the relay device 10. However, since there is no need to retransmit the signal, the signal retransmission process is not required, so that the processing load on the control device side is reduced, and further, the retransmission is not performed, thereby preventing an increase in communication load. Is possible.

ただし受信した信号を無効化してERR信号を送信する処理を適用する場合には、制御用シリアルバッファ101及び制御側LANバッファ102を小容量化することができるので、中継装置10の製造コストを抑制することが可能である。   However, when applying the processing of invalidating the received signal and transmitting the ERR signal, the capacity of the control serial buffer 101 and the control-side LAN buffer 102 can be reduced, thereby reducing the manufacturing cost of the relay device 10. Is possible.

上述した様に本発明の実施の形態1では、一のシリアル伝送用ポートのみを備える被制御装置20をシリアル伝送用ポート及び異規約ポートを備える被制御用装置20として用いることが可能となり、このため従来から普及しているハードウェア資源を活かしたシリアル伝送用の通信規約に基づき制御を行う第1制御装置31と、インターネット及びLAN等の通信網で広く用いられるTCP/IP等の通信規約に基づき制御を行う第2制御装置32とを夫々接続することが可能となるので、従来資産の有効活用並びにマルチ接続及びブロードキャスト通信等のLANの特徴的な機能の活用を行うことが可能となる。   As described above, in the first embodiment of the present invention, the controlled device 20 having only one serial transmission port can be used as the controlled device 20 having a serial transmission port and a different protocol port. Therefore, the first control device 31 that performs control based on the communication protocol for serial transmission utilizing the hardware resources that have been widely used, and the communication protocol such as TCP / IP widely used in communication networks such as the Internet and LAN. Since it is possible to connect to the second control device 32 that performs control based on each of them, it is possible to make effective use of conventional assets and to use characteristic functions of the LAN such as multi-connection and broadcast communication.

実施の形態2.
実施の形態2における中継装置10は、実施の形態1において、シリアル伝送用の第2通信ポートを複数備える形態である。図11は本発明の実施の形態2における中継装置10の内部構成を示すブロック図である。
Embodiment 2. FIG.
The relay device 10 according to the second embodiment is a mode including a plurality of second communication ports for serial transmission in the first embodiment. FIG. 11 is a block diagram showing an internal configuration of relay apparatus 10 according to Embodiment 2 of the present invention.

中継装置10は、複数の制御側シリアルドライバレシーバ14及びシリアル用第2通信ポート15を備え、またプロセッサ11内に複数の制御側シリアルバッファ101を有することにより、複数の第1制御装置31を接続することを可能とした構成である。なお実施の形態1と同様の構成要素については、その同一符号を付し、その説明を省略する。   The relay device 10 includes a plurality of control-side serial driver receivers 14 and a second serial communication port 15, and has a plurality of control-side serial buffers 101 in the processor 11, thereby connecting a plurality of first control devices 31. It is the structure which enabled it to do. In addition, about the component similar to Embodiment 1, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

実施の形態2において、第1通信ポート13との経路が設定されるのは、複数のシリアル用第2通信ポート15及びLAN用第2通信ポート17の中の選択された一の第2通信ポートのみである。   In the second embodiment, the route to the first communication port 13 is set by selecting one second communication port selected from the plurality of second communication ports 15 for serial and the second communication port 17 for LAN. Only.

なお実施の形態2における中継処理については実施の形態1と同様であるので、実施の形態1を参照するものとし、その説明を省略する。   Note that the relay process in the second embodiment is the same as that in the first embodiment, so the first embodiment will be referred to and the description thereof will be omitted.

実施の形態3.
実施の形態3における中継装置10は、実施の形態1において、LAN用の第2通信ポートを複数備える形態である。図12は本発明の実施の形態3における中継装置10の内部構成を示すブロック図である。
Embodiment 3 FIG.
The relay device 10 according to the third embodiment is a mode provided with a plurality of second communication ports for LAN in the first embodiment. FIG. 12 is a block diagram showing an internal configuration of relay apparatus 10 according to Embodiment 3 of the present invention.

中継装置10は、複数の制御側ネットワークインターフェースコントローラ16及びLAN用第2通信ポート17を備え、またプロセッサ11内に複数の制御側LANバッファ102を有することにより、複数の第2制御装置32を接続することを可能とした構成である。なお実施の形態1と同様の構成要素については、同一符号を付し、その説明を省略する。   The relay device 10 includes a plurality of control-side network interface controllers 16 and a second LAN communication port 17, and has a plurality of control-side LAN buffers 102 in the processor 11, thereby connecting a plurality of second control devices 32. It is the structure which enabled it to do. In addition, about the component similar to Embodiment 1, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

実施の形態3において、第1通信ポート13との経路が設定されるのは、シリアル用第2通信ポート15及び複数のLAN用第2通信ポート17の中の選択された一の第2通信ポートのみである。   In the third embodiment, the route to the first communication port 13 is set by selecting a second communication port selected from the second communication port 15 for serial and the second communication port 17 for LAN. Only.

なお実施の形態3における中継処理については実施の形態1と同様であるので、実施の形態1を参照するものとし、その説明を省略する。   Note that the relay processing in the third embodiment is the same as that in the first embodiment, so that the first embodiment is referred to and the description thereof is omitted.

前記実施の形態3では、複数のLAN用第2通信ポート17を用いた信号の送受信のいずれに対しても、一組のキャラクタデータ化処理105及びキャラクタバッファ106並びにパケット化処理108を共用する形態を示しているが、LAN用第2通信ポート17の数と同数のキャラクタデータ化処理105及びキャラクタバッファ106並びにパケット化処理108を用意し、各LAN用第2通信ポート17に対して夫々異なるこれらの処理プログラムを用いる形態であっても良い。   In the third embodiment, a set of character data conversion processing 105, character buffer 106, and packetization processing 108 is shared for both transmission and reception of signals using the plurality of LAN second communication ports 17. However, the same number of character data conversion processes 105, character buffers 106, and packetization processes 108 as the number of LAN second communication ports 17 are prepared, and these are different for each LAN second communication port 17. The processing program may be used.

実施の形態4.
実施の形態4における中継装置10は、実施の形態3において、集線機能を有するイーサネットハブコントローラを設けた構成である。図13は本発明の実施の形態4における中継装置10の内部構成を示すブロック図である。
Embodiment 4 FIG.
The relay device 10 according to the fourth embodiment has a configuration in which an Ethernet hub controller having a concentration function is provided in the third embodiment. FIG. 13 is a block diagram showing an internal configuration of relay apparatus 10 according to Embodiment 4 of the present invention.

中継装置10は、複数のLAN用第2通信ポート17に接続して集線機能を有するイーサネットハブコントローラ18を備えており、イーサネットハブコントローラ18により、複数のLAN用第2通信ポート17と、一の制御側ネットワークインターフェースコントローラ16との間が接続される。なお実施の形態1と同様の構成要素については、同一符号を付し、その説明を省略する。   The relay device 10 includes an Ethernet hub controller 18 that is connected to a plurality of second LAN communication ports 17 and has a concentrating function. The Ethernet hub controller 18 connects the plurality of second LAN communication ports 17 and one The control-side network interface controller 16 is connected. In addition, about the component similar to Embodiment 1, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

実施の形態4において、第1通信ポート13との経路が設定されるのは、シリアル用第2通信ポート15及び複数のLAN用第2通信ポート17の中の選択された一の第2通信ポートのみである。   In the fourth embodiment, the route to the first communication port 13 is set by selecting a second communication port selected from the second communication port 15 for serial and the second communication port 17 for LAN. Only.

なお実施の形態4における中継処理については実施の形態1と同様であるので、実施の形態1を参照するものとし、その説明を省略する。   Note that the relay process in the fourth embodiment is the same as that in the first embodiment, so the first embodiment will be referred to and the description thereof will be omitted.

実施の形態4における中継装置10では、イーサネットハブコントローラ18を設けることにより、夫々一のネットワークインターフェースコントローラ16及び制御側LANバッファ102にて対応することが可能となるので、実施の形態3における中継装置10と比較して、接続する第2制御装置32の数が大きい場合、構成を簡略化し、また製造コストを抑制することが可能となる。   In the relay apparatus 10 according to the fourth embodiment, since the Ethernet hub controller 18 is provided, the network interface controller 16 and the control-side LAN buffer 102 can cope with each, so the relay apparatus according to the third embodiment. When the number of second control devices 32 to be connected is large compared to 10, the configuration can be simplified and the manufacturing cost can be suppressed.

なお実施の形態3においては、夫々のネットワークインターフェースコントローラ16にて異なるIPアドレスが割り当てられるが、実施の形態4においては、ネットワークインターフェースコントローラ16が一であるため、一のIPアドレスを時分割で共用することとなる。   In the third embodiment, each network interface controller 16 is assigned a different IP address. However, in the fourth embodiment, since the network interface controller 16 is one, one IP address is shared in a time-sharing manner. Will be.

前記実施の形態2乃至実施の形態4において、シリアル用第2通信ポート15及びLAN用第2通信ポート17のいずれかを複数備える形態を示したが、シリアル用第2通信ポート15及びLAN用第2通信ポート17の双方が複数であっても良い。   In the second to fourth embodiments, the embodiment has been described in which a plurality of the second serial communication port 15 and the second LAN communication port 17 are provided. However, the second serial communication port 15 and the second LAN communication port 17 are provided. The two communication ports 17 may be plural.

また前記実施の形態1乃至実施の形態4では、プロジェクション装置等の被制御装置20とパーソナルコンピュータ等の制御装置31,32との通信を中継する中継装置10を示したが、本発明はこれに限らず、シリアル伝送用のポートを備える装置と、シリアル伝送用のポートを備える装置及びシリアル伝送と異なる通信規約に基づき通信処理を行う異規約ポートを備える装置とを接続する様々な用途に展開することが可能である。   In the first to fourth embodiments, the relay device 10 that relays communication between the controlled device 20 such as a projection device and the control devices 31 and 32 such as a personal computer has been described. The present invention is not limited to this, and it is expanded to various uses for connecting a device having a serial transmission port, a device having a serial transmission port, and a device having a different protocol port for performing communication processing based on a communication protocol different from that of serial transmission. It is possible.

発明の実施の形態1における制御システムの構成を示すブロック図である。It is a block diagram which shows the structure of the control system in Embodiment 1 of invention. 本発明の実施の形態1における中継装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置の中継処理を示すタイムチャートである。It is a time chart which shows the relay process of the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置の中継処理を示すタイムチャートである。It is a time chart which shows the relay process of the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置の中継処理を示すタイムチャートである。It is a time chart which shows the relay process of the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置の中継処理を示すタイムチャートである。It is a time chart which shows the relay process of the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置による第1制御装置及び被制御装置間の通信の中継処理を示すフローチャートである。It is a flowchart which shows the relay process of the communication between the 1st control apparatus and controlled apparatus by the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置による第2制御装置及び被制御装置間の通信の中継処理を示すフローチャートである。It is a flowchart which shows the relay process of communication between the 2nd control apparatus and controlled apparatus by the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置による第1制御装置及び被制御装置間の通信の中継処理を示すフローチャートである。It is a flowchart which shows the relay process of the communication between the 1st control apparatus and controlled apparatus by the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における中継装置による第2制御装置及び被制御装置間の通信の中継処理を示すフローチャートである。It is a flowchart which shows the relay process of communication between the 2nd control apparatus and controlled apparatus by the relay apparatus in Embodiment 1 of this invention. 本発明の実施の形態2における中継装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the relay apparatus in Embodiment 2 of this invention. 本発明の実施の形態3における中継装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the relay apparatus in Embodiment 3 of this invention. 本発明の実施の形態4における中継装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the relay apparatus in Embodiment 4 of this invention. 従来の中継装置を用いた制御システムの構成を示すブロック図である。It is a block diagram which shows the structure of the control system using the conventional relay apparatus. 従来の中継装置を用いた制御システムの構成を示すブロック図である。It is a block diagram which shows the structure of the control system using the conventional relay apparatus.

符号の説明Explanation of symbols

10 中継装置
11 プロセッサ
12 被制御用シリアルドライバレシーバ
13 第1通信ポート
14 制御側シリアルドライバレシーバ
15 シリアル用第2通信ポート
16 制御側ネットワークインターフェースコントローラ
17 LAN用第2通信ポート
18 イーサネットハブコントローラ
101 制御側シリアルバッファ
102 制御側LANバッファ
103 被制御側シリアルバッファ
104 第1セレクタ
105 キャラクタデータ化処理
106 キャラクタバッファ
107 第2セレクタ
108 パケット化処理
109 ホールドタイマ
20 被制御装置
31 第1制御装置
32 第2制御装置
DESCRIPTION OF SYMBOLS 10 Relay apparatus 11 Processor 12 Controlled serial driver receiver 13 1st communication port 14 Control side serial driver receiver 15 2nd serial communication port 16 Control side network interface controller 17 2nd communication port for LAN 18 Ethernet hub controller 101 Control side Serial buffer 102 Control side LAN buffer 103 Controlled side serial buffer 104 First selector 105 Character data conversion processing 106 Character buffer 107 Second selector 108 Packetization processing 109 Hold timer 20 Controlled device 31 First control device 32 Second control device

Claims (7)

第1通信ポート及び複数の第2通信ポートを備え、第1通信ポートを介して接続する装置及び第2通信ポートを介して接続する装置間の通信を中継する中継装置において、
前記第1通信ポートは、シリアル伝送用ポートであり、
前記第2通信ポートは、シリアル伝送用ポート及びシリアル伝送と異なる通信規約に基づいて通信処理を行う異規約ポートを含み、
シリアル伝送用の通信規約に基づき送受信される信号及びシリアル伝送と異なる通信規約に基づき送受信される信号の通信規約を相互に変換する手段を備える
ことを特徴とする中継装置。
In a relay device comprising a first communication port and a plurality of second communication ports, relaying communication between a device connected via the first communication port and a device connected via the second communication port,
The first communication port is a serial transmission port;
The second communication port includes a serial transmission port and a different protocol port for performing communication processing based on a communication protocol different from serial transmission,
A relay apparatus comprising: means for mutually converting a communication protocol of a signal transmitted / received based on a communication protocol for serial transmission and a signal transmitted / received based on a communication protocol different from serial transmission.
前記シリアル伝送用ポート及び/又は異規約ポートは複数であることを特徴とする請求項1に記載の中継装置。   The relay apparatus according to claim 1, wherein there are a plurality of serial transmission ports and / or different protocol ports. 第1通信ポートとの間の通信を中継する一の第2通信ポートを選択する手段を更に備えることを特徴とする請求項1又は請求項2に記載の中継装置。   The relay apparatus according to claim 1 or 2, further comprising means for selecting one second communication port for relaying communication with the first communication port. 第1通信ポートとの間の通信を中継する一の第2通信ポートとして選択されていない他の第2通信ポートが、外部の装置から信号を受信した場合に、信号の送信元へ通信が不可であることを示す信号を送信する手段を更に備えることを特徴とする請求項3に記載の中継装置。   When another second communication port not selected as one second communication port that relays communication with the first communication port receives a signal from an external device, communication to the signal transmission source is not possible The relay apparatus according to claim 3, further comprising means for transmitting a signal indicating that 第1通信ポートとの間の通信を中継する一の第2通信ポートとして選択されていない他の第2通信ポートが、外部の装置から信号を受信した場合に、
受信した信号を記憶する手段と、
記憶した信号に対応する第2通信ポートが、通信を中継する一の第2通信ポートとして選択されたときに、記憶している信号を、第1通信ポートを介して接続する装置へ送信する手段と
を更に備えることを特徴とする請求項3に記載の中継装置。
When another second communication port not selected as one second communication port that relays communication with the first communication port receives a signal from an external device,
Means for storing the received signal;
Means for transmitting a stored signal to a device connected via the first communication port when the second communication port corresponding to the stored signal is selected as one second communication port for relaying communication. The relay apparatus according to claim 3, further comprising:
前記異規約ポートは、TCP/IPとして規定された通信規約に基づいて通信処理を行うことを特徴とする請求項1乃至請求項5のいずれかひとつに記載の中継装置。   6. The relay device according to claim 1, wherein the different protocol port performs communication processing based on a communication protocol defined as TCP / IP. 請求項1乃至請求項6のいずれかひとつに記載の中継装置と、
該中継装置に第1通信ポートを介して接続してある制御装置と、
該制御装置に制御され、前記中継装置に第2通信ポートを介して接続してある被制御装置と
を備えることを特徴とする制御システム。
A relay device according to any one of claims 1 to 6;
A control device connected to the relay device via a first communication port;
A controlled apparatus controlled by the control apparatus and connected to the relay apparatus via a second communication port.
JP2003297764A 2003-08-21 2003-08-21 Repeater system and control system Pending JP2005070975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003297764A JP2005070975A (en) 2003-08-21 2003-08-21 Repeater system and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003297764A JP2005070975A (en) 2003-08-21 2003-08-21 Repeater system and control system

Publications (1)

Publication Number Publication Date
JP2005070975A true JP2005070975A (en) 2005-03-17

Family

ID=34403499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003297764A Pending JP2005070975A (en) 2003-08-21 2003-08-21 Repeater system and control system

Country Status (1)

Country Link
JP (1) JP2005070975A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009516432A (en) * 2005-11-14 2009-04-16 ラントロニクス・インコーポレイテツド Device server for daisy chain connection via Ethernet (registered trademark)
JP2018019283A (en) * 2016-07-28 2018-02-01 サイレックス・テクノロジー株式会社 Communication equipment, serial communication equipment, communication method, and control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009516432A (en) * 2005-11-14 2009-04-16 ラントロニクス・インコーポレイテツド Device server for daisy chain connection via Ethernet (registered trademark)
JP2018019283A (en) * 2016-07-28 2018-02-01 サイレックス・テクノロジー株式会社 Communication equipment, serial communication equipment, communication method, and control program

Similar Documents

Publication Publication Date Title
JPH0832644A (en) Signal receiving device
JPH11331218A (en) Information processing unit, information processing method and served medium
JPH07235947A (en) Electronic equipment
JP2008162737A (en) Radio transmission data controller
US6272114B1 (en) Data processing apparatus/method and electronic apparatus with such apparatus/method
JPH11215135A (en) Method and equipment for radio communication and radio communication controller
JP2005167780A (en) Streaming data transmission device and transmission method
JP2012015778A (en) Communication processing device and communication processing method
JP2008028430A (en) Transmitter apparatus
US20060174027A1 (en) Method and apparatus for transmission queue in communication system
JP2005070975A (en) Repeater system and control system
JP2002261866A (en) Radio transmission device and method therefor
JP4690857B2 (en) Bulk transmission system
EP3266506B1 (en) Information processing apparatus, information processing method, information processing system, and control program
KR100568232B1 (en) Network device and method for efficient data transmission/reception using transport layer in mobile ad-hoc network
JP2006050244A (en) Radio communication equipment
KR101475179B1 (en) The converter of wireless network switch based on ICMP and the method for conversion
JP3148733B2 (en) Signal processing device and signal processing system
JP3629119B2 (en) Network system
JP4573459B2 (en) Wireless terminal device, transmission control device, wireless transmission control method, and program
JPH0697983A (en) Network system
JP2752742B2 (en) Packet transmission device
US20050262252A1 (en) Method and device for performing communication on a bus structured network
KR20060096623A (en) Method for guarantee reliability of datagram protocol under real-time environment
EP3422195A1 (en) Device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050810

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080605

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080610

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080804

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080826