JP2010147994A - Serial communication conversion apparatus, monitor and control system - Google Patents
Serial communication conversion apparatus, monitor and control system Download PDFInfo
- Publication number
- JP2010147994A JP2010147994A JP2008325494A JP2008325494A JP2010147994A JP 2010147994 A JP2010147994 A JP 2010147994A JP 2008325494 A JP2008325494 A JP 2008325494A JP 2008325494 A JP2008325494 A JP 2008325494A JP 2010147994 A JP2010147994 A JP 2010147994A
- Authority
- JP
- Japan
- Prior art keywords
- information
- message information
- command
- conversion
- 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
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
- Telephonic Communication Services (AREA)
Abstract
【課題】 シリアルインターフェースのみしか備えない機器の監視及び制御を遠隔から行うことを目的とする。
【解決手段】 メールメッセージ情報からシリアルコマンドに変換し、シリアルコマンドからメールメッセージ情報に変換するための変換情報テーブル14A、14Bを記憶しておき、メール通信部13がメッセージ情報を取得した場合に、当該メッセージ情報をコマンドメッセージ変換処理部12によりシリアルコマンドに変換して、当該シリアルコマンドをシリアル通信部11によってターゲット機器2に送出し、シリアル通信部11がシリアルコマンドを取得した場合に、当該シリアルコマンドをコマンドメッセージ変換処理部12によりメッセージ情報に変換して、当該メッセージ情報をメール通信部13によってメールサーバに送出する。
【選択図】 図2PROBLEM TO BE SOLVED: To remotely monitor and control a device having only a serial interface.
When conversion information tables 14A and 14B for converting mail message information into a serial command and converting from a serial command into mail message information are stored, and the mail communication unit 13 acquires the message information, When the message information is converted into a serial command by the command message conversion processing unit 12, the serial command is sent to the target device 2 by the serial communication unit 11, and the serial communication unit 11 acquires the serial command, the serial command Is converted into message information by the command message conversion processing unit 12, and the message information is sent to the mail server by the mail communication unit 13.
[Selection] Figure 2
Description
本発明は、対象機器の監視及び制御を行うためのシリアル通信変換装置、監視制御システムに関する。 The present invention relates to a serial communication conversion device and a monitoring control system for monitoring and controlling a target device.
従来より、対象機器を監視、制御する技術としては、シリアルインターフェースを備えた対象機器を制御するものが知られている(下記の特許文献1を参照)。
Conventionally, as a technique for monitoring and controlling a target device, a technology for controlling a target device having a serial interface is known (see
この技術において、LANに接続されない対象機器は、LANインターフェースを備えず、シリアルインターフェースで対象機器の設定や制御を行っているものが多い。このようなシリアルインターフェースを用いた通信は、リクエスト・レスポンス形式で行われることが多い。 In this technique, many target devices that are not connected to a LAN do not have a LAN interface, and the target devices are set and controlled using a serial interface. Communication using such a serial interface is often performed in a request / response format.
また、シリアルインターフェースしか備えない機器の設定や制御を行う場合には、機器が設置されている現場まで作業員が出向き、機器設定専用のパーソナルコンピュータ等を機器に接続して行うことが多い。
しかしながら、上述した技術においては、現場に行かないと機器の設定や制御を行うことができない、シリアル通信により出力した警報等の情報を遠隔地の携帯端末などで受信したいという要望がある。 However, in the above-described technique, there is a demand for receiving information such as an alarm output by serial communication with a remote portable terminal or the like, in which it is impossible to set and control the device without going to the site.
そこで、本発明は、上述した実情に鑑みて提案されたものであり、シリアルインターフェースのみしか備えない機器の監視及び制御を遠隔から行うことができるシリアル通信変換装置、監視制御システムを提供することを目的とする。 Therefore, the present invention has been proposed in view of the above-described circumstances, and provides a serial communication conversion device and a monitoring control system capable of remotely monitoring and controlling a device having only a serial interface. Objective.
本発明は、メールサーバとメッセージ情報の通信を行うメール通信手段と、対象機器と接続され、当該対象機器との間で、当該対象機器に対する監視又は制御を行う監視制御コマンドのシリアル通信を行うシリアル通信手段と、メール通信手段によりメッセージ情報を取得した場合に監視制御コマンドを生成する変換処理と、シリアル通信手段により監視制御コマンドを取得した場合にメッセージ情報を生成する変換処理とを行う変換処理手段とを備え、上述の課題を解決するために、メール通信手段がメッセージ情報を取得した場合に、当該メッセージ情報を変換処理手段により監視制御コマンドに変換して、当該監視制御コマンドをシリアル通信手段によって対象機器に送出し、シリアル通信手段が監視制御コマンドを取得した場合に、当該監視制御コマンドを変換処理手段によりメッセージ情報に変換して、当該メッセージ情報をメール通信手段によってメールサーバに送出することを特徴とする。 The present invention relates to a serial communication for serial communication of a monitoring control command for monitoring or controlling the target device between the target device and a mail communication means for communicating message information with a mail server. Conversion processing means for performing communication processing, conversion processing for generating a monitoring control command when message information is acquired by mail communication means, and conversion processing for generating message information when monitoring control command is acquired by serial communication means In order to solve the above-described problem, when the mail communication means acquires message information, the message information is converted into a monitoring control command by the conversion processing means, and the monitoring control command is converted by the serial communication means. When it is sent to the target device and the serial communication means acquires the monitoring control command, Converts the monitoring control command to the message information by the conversion processing means, characterized in that it sends to the mail server by the mail communication means the message information.
また、本発明は、メッセージ情報と監視制御コマンドとを対応づけて登録した変換情報テーブルを記憶する記憶手段を備え、変換処理部により、記憶手段に記憶された変換情報テーブルを参照して、メッセージ情報と監視制御コマンドとを相互に変換する。 In addition, the present invention includes a storage unit that stores a conversion information table in which message information and a monitoring control command are registered in association with each other, and the conversion processing unit refers to the conversion information table stored in the storage unit to Information and monitoring control commands are converted to each other.
更に、本発明は、変換処理手段により、対象機器へのリクエストを示すメッセージ情報を受信して監視制御コマンドを対象機器に送信し、当該対象機器から当該リクエストへのレスポンスとしての監視制御コマンドを受信してメッセージ情報に変換する際に、当該メッセージ情報に、リクエストを示すメッセージ情報のレスポンスであることを示す情報を含めることが望ましい。 Further, according to the present invention, the conversion processing means receives message information indicating a request to the target device, transmits a monitoring control command to the target device, and receives the monitoring control command as a response to the request from the target device. When converting to message information, it is desirable to include information indicating that the message information is a response to the message information indicating the request.
更にまた、本発明は、メール通信手段により受信したメッセージ情報に基づいて、メッセージ情報と監視制御コマンドとを対応づける情報を変換情報テーブルに登録する登録処理手段を備えていても良い。 Furthermore, the present invention may comprise registration processing means for registering information associating message information with the monitoring control command in the conversion information table based on the message information received by the mail communication means.
本発明に係る監視制御システムは、所定のシリアル通信方式により通信を行う対象機器と、メッセージ情報の授受を行うメールサーバと、複数の対象機器及びメールサーバと通信が可能とされるシリアル通信変換装置と、メールサーバを介して、シリアル通信変換装置との間でメッセージ情報の授受を行う遠隔操作用端末とを備える。この監視制御システムにおいて、シリアル通信変換装置は、メールサーバとメッセージ情報の通信を行うメール通信手段と、対象機器と接続され、当該対象機器との間で、当該対象機器に対する監視又は制御を行う監視制御コマンドのシリアル通信を行うシリアル通信手段と、メール通信手段によりメッセージ情報を取得した場合に監視制御コマンドを生成する変換処理と、シリアル通信手段により監視制御コマンドを取得した場合にメッセージ情報を生成する変換処理とを行う変換処理手段とを備え、上述の課題を解決するために、メール通信手段がメッセージ情報を取得した場合に、当該メッセージ情報を変換処理手段により監視制御コマンドに変換して、当該監視制御コマンドをシリアル通信手段によって対象機器に送出し、シリアル通信手段が監視制御コマンドを取得した場合に、当該監視制御コマンドを変換処理手段によりメッセージ情報に変換して、当該メッセージ情報をメール通信手段によってメールサーバに送出する。 A monitoring control system according to the present invention includes a target device that communicates by a predetermined serial communication method, a mail server that exchanges message information, and a serial communication conversion device that can communicate with a plurality of target devices and the mail server. And a remote operation terminal that exchanges message information with the serial communication conversion device via the mail server. In this monitoring control system, the serial communication conversion device is connected to a mail communication means for communicating message information with a mail server and a target device, and performs monitoring or control of the target device with the target device. Serial communication means for performing serial communication of control commands, conversion processing for generating a monitoring control command when message information is acquired by mail communication means, and message information when the monitoring control command is acquired by serial communication means Conversion processing means for performing conversion processing, and in order to solve the above-described problem, when the mail communication means acquires message information, the message processing information is converted into a monitoring control command by the conversion processing means, Send monitoring control commands to the target device via serial communication means If the signal means obtains the monitoring control command, converts the message information by the conversion processing means the monitoring control command and sends the message information to the mail server by the mail communication means.
本発明に係るシリアル通信変換装置及び監視制御システムによれば、メッセージ情報を取得した場合に、当該メッセージ情報を監視制御コマンドに変換して、当該監視制御コマンドを対象機器に送出し、シリアル通信変換装置により監視制御コマンドを取得した場合に、当該監視制御コマンドをメッセージ情報に変換して、当該メッセージ情報をメールサーバに送出するので、シリアルインターフェースしか備えない対象機器をシリアル通信変換装置に接続するのみで、メールサーバを介して監視制御コマンドを用いた対象機器の制御及び監視を行うことができる。 According to the serial communication conversion device and the monitoring control system of the present invention, when message information is acquired, the message information is converted into a monitoring control command, the monitoring control command is sent to the target device, and serial communication conversion is performed. When the monitoring control command is acquired by the device, the monitoring control command is converted into message information and the message information is sent to the mail server. Therefore, only the target device having a serial interface is connected to the serial communication conversion device. Thus, it is possible to control and monitor the target device using the monitoring control command via the mail server.
また、本発明に係るシリアル通信変換装置によれば、変換情報テーブルを記憶しておき、当該変換情報テーブルを参照してメッセージ情報と監視制御コマンドとを相互に変換できるので、ユーザに容易に理解できるメッセージ情報を監視制御コマンドに対応付けて登録しておくだけで、対象機器の監視、制御するユーザインターフェースをユーザフレンドリーなものとすることができる。 In addition, according to the serial communication conversion device of the present invention, since the conversion information table is stored and the message information and the monitoring control command can be mutually converted with reference to the conversion information table, the user can easily understand the conversion information table. The user interface for monitoring and controlling the target device can be made user-friendly simply by registering possible message information in association with the monitoring control command.
更にまた、本発明に係るシリアル通信変換装置によれば、リクエストを示すメッセージ情報を受信して、当該メッセージ情報に対するレスポンスとしてのメッセージ情報を作成する際に、当該レスポンスに、当該リクエストを示すメッセージ情報のレスポンスであることを示す情報を含めることができる。これにより、リクエストを示すメッセージ情報とレスポンスを示すメッセージ情報との関連が分かるように、レスポンスを通知することができる。 Furthermore, according to the serial communication conversion device of the present invention, when message information indicating a request is received and message information as a response to the message information is generated, message information indicating the request is included in the response. Information indicating that this is a response can be included. Thereby, the response can be notified so that the relation between the message information indicating the request and the message information indicating the response can be understood.
更にまた、本発明に係るシリアル通信変換装置によれば、シリアル通信変換装置により受信したメッセージ情報に基づいて、変換情報テーブルの読み込み、情報の追加、変更、削除を行うことができるので、当該変換情報テーブルの情報を遠隔で追加等をすることができる。 Furthermore, according to the serial communication conversion device of the present invention, the conversion information table can be read, information added, changed, and deleted based on the message information received by the serial communication conversion device. Information in the information table can be added remotely.
以下、本発明の実施の形態について図面を参照して説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[第1実施形態]
「監視制御システムの構成」
本発明の実施形態として示す監視制御システムは、図1に示すように、シリアル通信変換装置1と、監視対象及び制御対象となるターゲット機器2と、ルータ3と、メールサーバ4と、携帯電話5aやパーソナルコンピュータ5bなどの遠隔操作用端末5とを備える。
[First Embodiment]
"Monitoring and Control System Configuration"
As shown in FIG. 1, the monitoring control system as an embodiment of the present invention includes a serial
ターゲット機器2は、所定のシリアル通信方式に従って動作するシリアルインターフェース2aを備え、当該シリアルインターフェース2aを介してシリアル通信変換装置1と通信を行う。これにより、ターゲット機器2は、シリアル通信変換装置1等を介して、遠隔操作用端末5と通信が可能となる。ターゲット機器2としては、例えば空調機器、照明機器、防犯機器などの各種の機器である。
The
ターゲット機器2は、シリアル通信変換装置1との間でシリアルコマンド(監視制御コマンド)の通信を行って、現在状態の監視、制御が行われる。シリアルコマンドは、リクエストコマンド及び当該リクエストコマンドに対する応答であるレスポンスコマンド、異常などを自発的に通知する通知コマンドを含む。なお、以下の説明においては、リクエストコマンド、レスポンスコマンド、通知コマンドを特に区別しない場合には、「シリアルコマンド」の用語を使用し、これらを区別する場合には、それぞれの名称を使用するものとする。このようなシリアルコマンドは、シリアル通信変換装置1により当該コマンドの内容がメールメッセージ情報に変換されて、遠隔操作用端末5に供給される。逆に、遠隔操作用端末5からのメールメッセージ情報は、シリアル通信変換装置1によりシリアルコマンドに変換されて、ターゲット機器2に供給される。これにより、ターゲット機器2は、遠隔操作用端末5と通信を行うことができる。
The
メールサーバ4は、遠隔操作用端末5との間で所定のメール通信プロトコルに従ってメールメッセージ情報の送受信を行うと共に、シリアル通信変換装置1との間でも、所定のメール通信プロトコルに従ってメールメッセージ情報の送受信を行う。この所定のメール通信プロトコルは、POP(Post Office Protocol)3などが挙げられる。このメールメッセージ情報としては、ターゲット機器2を監視又は制御するリクエスト情報含むリクエストメールメッセージ情報、ターゲット機器2へのリクエストに対するレスポンスメールメッセージ情報、ターゲット機器2から遠隔操作用端末5に対して通知する通知メールメッセージ情報が含まれる。
The mail server 4 transmits / receives mail message information to / from the
メールサーバ4には、シリアル通信変換装置1及び遠隔操作用端末5のメールアカウント情報が登録される。このメールアカウント情報としては、メールアドレス、IP(Internet Protocol)アドレス等が含まれる。これにより、メールサーバ4は、遠隔操作用端末5とシリアル通信変換装置1との間でメールメッセージ情報を転送できる。
In the mail server 4, mail account information of the serial
遠隔操作用端末5は、メールサーバ4との間で所定のメール通信プロトコルに従ってメールメッセージ情報の送受信を行う。遠隔操作用端末5は、ターゲット機器2を監視又は制御したいユーザによって操作され、ターゲット機器2の現在の動作状態を表示する。遠隔操作用端末5は、ユーザの操作に従ってターゲット機器2に対するリクエスト情報を含むリクエストメールメッセージ情報を生成して、メールサーバ4に対して送信する。これにより、遠隔操作用端末5は、メールサーバ4、シリアル通信変換装置1等を介してターゲット機器2にリクエストコマンドを送出できる。また、遠隔操作用端末5は、ターゲット機器2がレスポンスコマンド又は通知コマンドを送出すると、シリアル通信変換装置1、メールサーバ4等を介して、レスポンスメールメッセージ情報、通知メールメッセージ情報を受信し、当該受信した情報を表示できる。
The
なお、メールサーバ4は、遠隔操作用端末5におけるターゲット機器2の監視・制御用のアプリケーションにより生成されたメールメッセージ情報を受信したことにより自動的にシリアル通信変換装置1に当該メールメッセージ情報を転送しても良い。すなわち、メールサーバ4は、遠隔操作用端末5とシリアル通信変換装置1とを紐付ける対応テーブルが記憶させておき、メールサーバ4は、所定の遠隔操作用端末5からリクエストメールメッセージ情報を受信した場合には、自動的にメールメッセージ情報を転送できるようにしても良い。
The mail server 4 automatically transfers the mail message information to the serial
シリアル通信変換装置1は、図2に示すように、ターゲット機器2と接続されたシリアル通信部11と、メールサーバ4と通信を行うメール通信部13と、メールメッセージ情報とシリアルコマンドとの変換を行うコマンドメッセージ変換処理部12と、変換情報テーブル14A、14Bと、コマンドメッセージ登録処理部15と、メールアカウント情報登録処理部16とを備える。
As shown in FIG. 2, the serial
シリアル通信変換装置1は、ターゲット機器2とシリアル通信をするためのシリアルインターフェース1a及びルータ3と通信をするためのLANインターフェース1bを備えている。シリアル通信変換装置1は、シリアルインターフェース1aを介してターゲット機器2のシリアルインターフェース2aとシリアル通信を行う。
The serial
シリアル通信部11は、所定のシリアル通信方式に従って動作するシリアルインターフェース1aを構成し、ターゲット機器2に接続される。シリアル通信部11は、ターゲット機器2との間で、ターゲット機器2に対する監視又は制御を行うシリアルコマンド(リクエストコマンド、レスポンスコマンド、通知コマンド)を通信するシリアル通信を行う。
The
メール通信部13は、メールサーバ4とメールメッセージ情報の通信を行う。メール通信部13は、ルータ3及びインターネット網NTを介して、所定のメール通信プロトコルに従って、メールメッセージ情報を送受信する。この所定のメール通信プロトコルは、SMTP(Simple Mail Transfer Protocol)などが挙げられる。このメールメッセージ情報としては、ターゲット機器2を監視又は制御するリクエスト情報含むリクエストメールメッセージ情報、ターゲット機器2へのリクエストに対するレスポンスメールメッセージ情報、ターゲット機器2から遠隔操作用端末5に対して通知する通知メールメッセージ情報が含まれる。
The
コマンドメッセージ変換処理部12は、メールメッセージ情報を取得した場合にシリアルコマンドを生成する変換処理、シリアルコマンドを取得した場合にメールメッセージ情報を生成する変換処理を行う機能を備える。この変換処理を行うとき、コマンドメッセージ変換処理部12は、変換情報テーブル14A、14Bを参照する。コマンドメッセージ変換処理部12は、メール通信部13からメールメッセージ情報を受信した時には、「メール→シリアル方向」の第1変換情報テーブル14Aを参照して、シリアルコマンドを生成してシリアル通信部11に供給する。コマンドメッセージ変換処理部12は、シリアル通信部11からシリアルコマンドを受信した時には、「シリアル→メール方向」の第2変換情報テーブル14Bを参照して、メールメッセージ情報を生成してメール通信部13に供給する。
The command message
第1変換情報テーブル14Aは、メールメッセージ情報からシリアルコマンドを生成するに際して参照され、図3(a)に示すように構成されている。第1変換情報テーブル14Aは、登録番号ごとに、メールメッセージ情報とシリアルコマンドとの対応関係が登録されている。メールメッセージ情報には、件名情報(subject)と本文情報とが含まれる。シリアルコマンドには、コマンド列とが含まれている。コマンドメッセージ変換処理部12は、メールメッセージ情報を受信した時に、受信したメールメッセージ情報に含まれる件名情報及び本文情報と、第1変換情報テーブル14Aの件名情報及び本文情報とを比較して、シリアルコマンドを決定する。なお、メールメッセージ情報に対するシリアルコマンドの種別が複数ある場合には、シリアルコマンドにおける種別情報を設定しても良いことは勿論である。
The first conversion information table 14A is referred to when a serial command is generated from mail message information, and is configured as shown in FIG. In the first conversion information table 14A, the correspondence between the mail message information and the serial command is registered for each registration number. The mail message information includes subject information (subject) and text information. The serial command includes a command string. When the command message
例えば、件名情報が「温度異常確認」、本文情報が「現在の温度状況は?」であるメールメッセージ情報を受信した場合、コマンド列が「&R000」のシリアルコマンドを生成する。また、件名情報が「閾値の設定」、本文情報が「温度センサー(%1)の上限値を(%2)度に設定」であるメールメッセージ情報を受信した場合、コマンド列が「&R001(%1)(%2)」のシリアルコマンドを生成する。ここで、(%1)、(%2)は変数であり、遠隔操作用端末5に対するユーザの操作によって決定されて、メールメッセージ情報に含まれる。そして、コマンドメッセージ変換処理部12により当該変数が認識されることにより、シリアルコマンドに組み入れられる。
For example, when mail message information having subject information “confirm temperature abnormality” and text information “What is the current temperature status?” Is received, a serial command having a command string “& R000” is generated. In addition, when mail message information with subject information “setting threshold” and body information “setting upper limit of temperature sensor (% 1) at (% 2) degrees” is received, the command string is “& R001 (% 1) (% 2) "serial command is generated. Here, (% 1) and (% 2) are variables, which are determined by the user's operation on the
具体的には、受信したメールメッセージ情報の本文情報が「温度センサー(02)の上限値を(080)度に設定」である場合、シリアルコマンドのコマンド列は「&R00102080」と変換される。 Specifically, when the text information of the received mail message information is “Set the upper limit value of the temperature sensor (02) to (080) degrees”, the command string of the serial command is converted to “& R00102080”.
第2変換情報テーブル14Bは、シリアルコマンドからメールメッセージ情報を生成するに際して参照され、図3(b)に示すように構成されている。第2変換情報テーブル14Bは、登録番号ごとに、メールメッセージ情報とシリアルコマンドとの対応関係が登録されている。メールメッセージ情報には、件名情報(subject)と本文情報と文字列変換情報が含まれる。シリアルコマンドには、種別情報とコマンド列とが含まれている。コマンドメッセージ変換処理部12は、シリアルコマンドを受信した時に、受信したシリアルコマンドに含まれる種別情報及びコマンド列と、第2変換情報テーブル14Bの種別情報及びコマンド列とを比較して、メールメッセージ情報を決定する。
The second conversion information table 14B is referred to when mail message information is generated from a serial command, and is configured as shown in FIG. In the second conversion information table 14B, the correspondence between the mail message information and the serial command is registered for each registration number. The mail message information includes subject information (subject), text information, and character string conversion information. The serial command includes type information and a command string. When the command message
ここで、シリアルコマンドのコマンド列には、ターゲット機器2の状態によって変化される数字、文字がある場合には、(%数字:文字数)として含まれる。(%数字)は、メールメッセージ情報の本文情報における(%数字)と同じ位置に割り当てられる。また、種別情報としては、ターゲット機器2から送信されるレスポンスコマンド、通知コマンドの何れかが設定される。また、メールメッセージ情報における文字列変換情報は、シリアルコマンドにおける(%数字)を文字列に変換して、本文情報に組み入れたい場合に、該当する(%数字)、シリアルコマンド内の文字、変換文字の順に登録される。
Here, if there are numbers and characters that change depending on the state of the
具体的には、受信したシリアルコマンドが「#R00001N02L」である場合、メールメッセージ情報の本文情報を「温度センサー(01)は正常、温度センサー(02)は下限異常です」と変換される。 Specifically, when the received serial command is “# R00001N02L”, the text information of the mail message information is converted to “temperature sensor (01) is normal, temperature sensor (02) is lower limit abnormal”.
なお、この実施形態においては、変換情報テーブル14A、14Bをシリアル通信変換装置1に記憶している例を示しているが、変換情報テーブル14A、14Bを記憶しない構成であっても、別個に設けられた記憶装置から変換情報テーブル14A、14Bを読み出す方式、所定の演算によって変換する方式を採用しても良い。
In this embodiment, the conversion information tables 14A and 14B are stored in the serial
コマンドメッセージ登録処理部15は、変換情報テーブル14A、14Bに登録されているシリアルコマンド、メールメッセージ情報を登録する処理を行う。また、メールアカウント情報登録処理部16は、遠隔操作用端末5のメールアカウント情報を追加又は削除する処理を行う。変換情報テーブル14A、14Bに設定登録、メールアカウント情報の設定登録は、シリアル通信変換装置1のデータ登録モード時に行われる。このデータ登録モードにおいては、シリアル通信部11によりシリアルコマンドを受信し、当該シリアルコマンドによって各種の情報が登録される。
The command message
変換情報テーブル14A、14Bの設定及び変更時、メールアカウント情報の追加及び削除時において、シリアル通信変換装置1には、設定用端末6が接続される。設定用端末6は、シリアル通信変換装置1の管理者により操作される。この設定用端末6からは、シリアルコマンドとして変換情報テーブル14A、14Bの設定、メールアカウント情報の設定をするための情報が供給される。
When the conversion information tables 14A and 14B are set and changed, and when the mail account information is added and deleted, the setting
設定用端末6からシリアルコマンド及びメールメッセージ情報の変更内容を含むコマンドメッセージ登録要求が供給されると、当該情報をシリアル通信部11により受信する。そして、当該コマンドメッセージ登録要求及びコマンドメッセージは、コマンドメッセージ登録処理部15により、変換情報テーブル14A、14Bの設定登録に用いられる。変換情報テーブル14A、14Bの設定登録が完了すると、コマンドメッセージ登録処理部15は、シリアル通信部11を介して、コマンドメッセージ登録確認及びメッセージを設定用端末6に送信する。
When a command message registration request including the change contents of the serial command and the mail message information is supplied from the setting
また、設定用端末6からメールアカウント情報の変更内容を含むメールアカウント登録要求が供給されると、シリアル通信部11を介してメールアカウント情報登録処理部16により受信する。メールアカウント情報登録処理部16は、メールアカウント情報の登録要求に含まれるメールアカウント情報を取得する。また、メールアカウント情報登録処理部16は、設定用端末6からメールアカウント情報の確認要求が供給されると、シリアル通信部11を介して、保持しているメールアカウント情報を設定用端末6に供給する。メールアカウント情報登録処理部16は、新たなメールアカウント情報が登録されると、当該メールアカウント情報をメールサーバ4に送信することにより、当該メールアカウント情報を用いた通信が可能となる。
Further, when a mail account registration request including the change contents of the mail account information is supplied from the setting
「監視制御システムの動作」
「メールメッセージ情報受信時の動作」
つぎに、上述したように構成された監視制御システムにおいて、遠隔操作用端末5によりターゲット機器2の制御を行う際に、シリアル通信変換装置1がメールメッセージ情報を受信した時の動作を図4のフローチャートを参照して説明する。なお、以下の動作説明においては、ターゲット機器2が空調機器であり、当該ターゲット機器2にて計測している温度が異常であるか否かを遠隔操作用端末5によって確認する温度異常確認動作をさせる時を例にとって説明する。
"Operation of the supervisory control system"
"Operation when receiving mail message information"
Next, in the monitoring control system configured as described above, when the
先ず、遠隔操作用端末5により、件名情報が「温度異常確認」、本文情報が「現在の温度状況は?」というメールメッセージ情報をメールサーバ4に対して送信する。そして、このメールメッセージ情報は、メールサーバ4によりシリアル通信変換装置1に対して送信され、インターネット網NT及びルータ3を介して、シリアル通信変換装置1により受信される。なお、遠隔操作用端末5は、シリアル通信変換装置1を宛先に設定してメールメッセージ情報を作成しても良く、遠隔操作用端末5から送信されたメールメッセージ情報はメールサーバ4により自動的にシリアル通信変換装置1に送信するものとしても良い。
First, the
シリアル通信変換装置1によりメールメッセージ情報を受信すると、ステップS1によりメール通信部13により宛先情報の確認などの処理を行い、当該メールメッセージ情報をコマンドメッセージ変換処理部12に供給する。
When the mail message information is received by the serial
次のステップS2において、コマンドメッセージ変換処理部12は、ステップS1にて受信したメールメッセージ情報の件名情報が、「メール→シリアル方向」の第1変換情報テーブル14Aの同一の件名情報(subject)として登録されているか否かを判定する。同一の件名情報が登録されていない場合にはステップS3において当該メールメッセージ情報を破棄して処理を終了する。一方、同一の件名情報が登録されている場合にはステップS4に処理を進める。ここで、受信したメールメッセージ情報の件名情報は「温度異常確認」であるので、図3(a)における登録番号がNo.1のメールメッセージ情報に該当する。
In the next step S2, the command message
ステップS4において、コマンドメッセージ変換処理部12は、ステップS1にて受信したメールメッセージ情報の本文情報「現在の温度状況は?」が、第1変換情報テーブル14Aの本文情報として登録されている内容と同じか否かを判定する。このとき、コマンドメッセージ変換処理部12は、本文情報における可変文字部分については省いて、相互の本文情報を比較する。受信したメールメッセージ情報の本文情報と第1変換情報テーブル14Aに登録された本文情報とが同じ内容である場合にはステップS6に処理を進め、そうではない場合にはステップS5にてメールメッセージ情報を破棄する。ここで、受信したメールメッセージ情報の本文情報は「現在の温度状況は?」であるので、図3(a)における登録番号がNo.1のメールメッセージ情報に該当する。
In step S4, the command message
ステップS6において、コマンドメッセージ変換処理部12は、ステップS2にて判定されたメールメッセージ情報と同じ件名情報が登録され、且つステップS4にて判定されたメールメッセージ情報と同じ内容の本文情報が登録された登録番号のシリアルコマンドを、第1変換情報テーブル14Aから引用する。ここで、受信したメールメッセージ情報の件名情報は「温度異常確認」、本文情報は「現在の温度状況は?」であるので、図3(a)における登録番号がNo.1のメールメッセージ情報に対応した、シリアルコマンドのコマンド列「&R000」を引用できる。
In step S6, the command message
次のステップS7において、コマンドメッセージ変換処理部12は、ステップS6にて引用したシリアルコマンドの中に可変文字は存在するか否かを判定する。シリアルコマンドの中に可変文字が存在しない場合にはステップS9に処理を進め、シリアルコマンドの中に可変文字が存在する場合にはステップS8に処理を進める。ここで、ステップS6にてシリアルコマンドのコマンド列「&R000」を引用した場合には、ステップS7の判定は否定となり、ステップS9に処理は進められる。
In the next step S7, the command message
ステップS8において、コマンドメッセージ変換処理部12は、メールメッセージ情報の本文情報に含まれる可変文字を、ステップS6にて引用したシリアルコマンドに組み込む。
In step S8, the command message
ステップS9において、シリアル通信部11により、コマンドメッセージ変換処理部12によって変換されたシリアルコマンドをターゲット機器2に送信する。ここで、シリアルコマンドのコマンド列が「&R000」である場合、ターゲット機器2に対して当該コマンド列を送信することにより、現在にターゲット機器2が計測している温度が異常であるかの確認動作をさせることができる。
In step S <b> 9, the
「シリアルコマンド受信時の動作」
つぎに、上述したように構成された監視制御システムにおいて、シリアル通信変換装置1がシリアルコマンドを受信した時の動作を図5のフローチャートを参照して説明する。なお、以下の動作説明においては、ターゲット機器2が空調機器であり、当該ターゲット機器2が温度異常確認についてのリクエストコマンドを受信したことに対して、レスポンスコマンドをシリアル通信変換装置1に返信する動作について説明する。
"Operation when receiving serial command"
Next, the operation when the serial
先ず、ターゲット機器2が温度異常確認についてのコマンド列「&R000」を受信すると、当該シリアルコマンド(リクエストコマンド)を解釈し、ターゲット機器2により内蔵の温度センサの状態を表すレスポンスコマンドを生成する。この時、ターゲット機器2は、コマンド列「#R00001N02L」のレスポンスコマンドをシリアル通信変換装置1に返信したとする。そして、このシリアルコマンドは、シリアル通信変換装置1に対して送出される。
First, when the
シリアル通信変換装置1によりシリアルコマンドを受信すると、ステップS11によりシリアル通信部11により所定のシリアル通信規格に関する処理を行い、当該シリアルコマンドをコマンドメッセージ変換処理部12に供給する。
When the serial command is received by the serial
次のステップS12において、コマンドメッセージ変換処理部12は、ステップS11にて受信したシリアルコマンドが、「シリアル→メール方向」の第2変換情報テーブル14Bの同一のコマンド列として登録されているか否かを判定する。このとき、コマンドメッセージ変換処理部12は、コマンド列における可変文字部分については省いて、相互のコマンド列を比較する。同一のコマンド列が登録されていない場合にはステップS13において当該シリアルコマンドを破棄して処理を終了する。一方、同一のコマンド列が登録されている場合にはステップS14に処理を進める。ここで、第2変換情報テーブル14Bにはコマンド列「#R000(%1:2)(%2:1)(%3:2)(%4:1)」が登録され、ステップS11にて受信したシリアルコマンドのコマンド列は「#R00001N02L」であるので、図3(b)における登録番号がNo.1のコマンド列に該当する。
In the next step S12, the command message
ステップS14において、コマンドメッセージ変換処理部12は、ステップS12にて判定されたコマンド列と同じ登録番号と対応付けられて第2変換情報テーブル14Bに登録されているメールメッセージ情報を、第2変換情報テーブル14Bから引用する。ここで、図3(b)における登録番号がNo.1のシリアルコマンドに対応した、メールメッセージ情報の件名情報、本文情報、文字列変換情報を引用できる。
In step S14, the command message
次のステップS15において、コマンドメッセージ変換処理部12は、ステップS14にて引用したメールメッセージ情報の中に可変文字は存在するか否かを判定する。メールメッセージ情報の中に可変文字が存在しない場合にはステップS17に処理を進め、メールメッセージ情報の中に可変文字が存在する場合にはステップS18に処理を進める。ここで、ステップS14のおいて、図3(b)に示す登録番号がNo.1に対応したメールメッセージ情報を引用したので、ステップS15の判定は肯定となり、ステップS16に処理は進められる。
In the next step S15, the command message
ステップS16において、コマンドメッセージ変換処理部12は、シリアルコマンド内の可変文字を、ステップS14にて引用したメールメッセージ情報における本文情報に組み込む。ここで、ステップS14にて「温度センサー(%1)は(%2)度、温度センサー(%3)は(%4)度」が引用され、シリアルコマンドのコマンド列「#R00001N02L」内の可変文字は(%1)(%3)であるので、「温度センサー(01)は(%2)度、温度センサー(02)は(%4)度」とする。
In step S16, the command message
次のステップS17において、コマンドメッセージ変換処理部12は、ステップS14にて引用したメールメッセージ情報中に文字列変換が存在するか否かを判定する。文字列変換が存在する場合にはステップS18に処理を進め、文字列変換が存在しない場合にはステップS19にてメールメッセージ情報を破棄する。ここで、シリアルコマンド内の%2、%4は文字列変換の必要があるので、ステップS18に処理を進めることを判定する。
In the next step S17, the command message
ステップS18において、コマンドメッセージ変換処理部12により文字列変換を行い、ステップS17にて正常に文字列変換が可能であったか否かを判定する。ここで、ステップS14にて「温度センサー(%1)は(%2)度、温度センサー(%3)は(%4)度」が引用され、シリアルコマンドのコマンド列「#R00001N02L」のうち、(%2)はNであるので変換文字は「正常」、(%4)はLであるので変換文字は「下限異常」となり、正常に文字列変換が可能であるので、ステップS20に処理を進めることになる。
In step S18, the command message
次のステップS20において、コマンドメッセージ変換処理部12は、ステップS18にて変換した文字を、ステップS16にて可変文字が組み込まれたメールメッセージ情報の本文情報に組み込む。ここで、ステップS16においてメールメッセージ情報の本文情報が「温度センサー(01)は(%2)度、温度センサー(02)は(%4)度」とされたので、ステップS20において、コマンドメッセージ変換処理部12は、(%2)に「正常」、(%4)に「下限異常」を組み込み、「温度センサー(01)は(正常)、温度センサー(02)は(下限異常)」とする。
In the next step S20, the command message
次のステップS21において、メール通信部13は、ステップS20にて変換されたメールメッセージ情報の本文情報及び件名情報を含むメールメッセージ情報を送信する。これにより、このメールメッセージ情報は、ルータ3、インターネット網NT及びメールサーバ4を介して、遠隔操作用端末5に送信される。そして、遠隔操作用端末5では、メールメッセージ情報によってリクエストしたターゲット機器2の温度異常確認に対するレスポンスとして、「温度センサー(01)は(正常)、温度センサー(02)は(下限異常)」であることをユーザに提示することができる。
In the next step S21, the
なお、上述した図4を参照して、メールメッセージ情報を受信した時にターゲット機器2にリクエストコマンドを送信するためのシリアル通信変換装置1の処理説明を行い、上述した図5を参照して、ターゲット機器2からのレスポンスコマンドを受信した時にメールメッセージ情報を送信するシリアル通信変換装置1の処理説明を行ったが、ターゲット機器2から通知コマンドを受信した場合には図5と同様の処理を行って、ターゲット機器2の状態を表すメールメッセージ情報を生成して、メールサーバ4に送信することができる。
In addition, with reference to FIG. 4 mentioned above, the processing of the serial
[実施形態の効果]
以上説明したように、本発明を適用した監視制御システムによれば、シリアル通信変換装置1によりメールメッセージ情報を取得した場合に、当該メールメッセージ情報をシリアルコマンドに変換して、当該シリアルコマンドをターゲット機器2に送出し、シリアル通信変換装置1によりシリアルコマンドを取得した場合に、当該シリアルコマンドをメールメッセージ情報に変換して、当該メールメッセージ情報をメールサーバ4に送出するので、シリアルインターフェース2aしか備えないターゲット機器2をシリアル通信変換装置1に接続するのみで、メールサーバ4を介してシリアルコマンドを用いたターゲット機器2の制御及び監視を行うことができる。
[Effect of the embodiment]
As described above, according to the monitoring control system to which the present invention is applied, when mail message information is acquired by the serial
すなわち、ターゲット機器2がシリアルインターフェース2aしか備えず、汎用ネットワーク網であるインターネット網NTから見てスタンドアロン状態となっているターゲット機器2であっても、シリアル通信変換装置1によって、インターネット網NT及びメールサーバ4を介して遠隔操作用端末5から操作することができる。
In other words, even if the
また、この監視制御システムによれば、シリアル通信変換装置1に変換情報テーブル14A、14Bを記憶しておき、当該変換情報テーブル14A、14Bを参照してコマンドメッセージ変換処理部12によってメールメッセージ情報とシリアルコマンドとを相互に変換できるので、ユーザに容易に理解できるメールメッセージ情報をシリアルコマンドに対応付けて登録しておくだけで、ターゲット機器2の監視、制御するインターフェースをユーザフレンドリーなものとすることができる。
Further, according to this monitoring control system, the conversion information tables 14A and 14B are stored in the serial
[第2実施形態]
つぎに、本発明の第2実施形態について説明する。なお、この第2実施形態として示す監視制御システムにおいて、第1実施形態と同じ部分については同一符号を付することによりその詳細な説明を省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In addition, in the monitoring control system shown as this 2nd Embodiment, the detailed description is abbreviate | omitted by attaching | subjecting the same code | symbol about the same part as 1st Embodiment.
第2実施形態として示す監視制御システムは、図6に示すように、シリアル通信変換装置1のコマンドメッセージ変換処理部12に、受信メッセージ記憶部12aを備える点で、第1実施形態として示す監視制御システムとは異なる。
As shown in FIG. 6, the monitoring control system shown as the second embodiment is the monitoring control shown as the first embodiment in that the command message
この監視制御システムにおけるシリアル通信変換装置1は、メール通信部13によりメールメッセージ情報を受信した時に、コマンドメッセージ変換処理部12によって受信メッセージ記憶部12aに当該メールメッセージ情報を記録する。また、当該メールメッセージ情報から変換されたリクエストコマンドを、ターゲット機器2に対して送信する。そして、シリアル通信変換装置1は、受信メッセージ記憶部12aにメールメッセージ情報を記録している期間においては、ターゲット機器2からレスポンスコマンドを受信するまでは次のリクエストコマンドをターゲット機器2に対して送信しない。
When the serial
また、シリアル通信変換装置1は、メール通信部13によりメールメッセージ情報を受信して受信メッセージ記憶部12aに記憶させた時からの時間を計時し、レスポンスコマンドがターゲット機器2から返信されない場合には、エラー情報を含むメールメッセージ情報を、メールサーバ4を介して遠隔操作用端末5に送信する。
Further, the serial
「メールメッセージ情報受信時の動作」
上述したように構成された監視制御システムにおいて、遠隔操作用端末5によりメールメッセージ情報が送信され、当該メールメッセージ情報をシリアル通信変換装置1により受信したときの動作を図7及び図8を参照して説明する。
"Operation when receiving mail message information"
In the monitoring and control system configured as described above, the operation when the mail message information is transmitted from the
シリアル通信変換装置1は、メールメッセージ情報を受信すると、第1実施形態と同様にステップS1〜ステップS5の処理を行い、ステップS4にて肯定判定がされると、ステップS31に処理を進める。
When the serial
ステップS31において、コマンドメッセージ変換処理部12は、ステップS1にて受信したメールメッセージ情報のうち件名情報(subject)、本文情報を受信メッセージ記憶部12aに保存する。そして、コマンドメッセージ変換処理部12は、ステップS6〜ステップS8の処理を行ってシリアルコマンドを生成すると、ステップS32に処理を進める。
In step S31, the command message
ステップS32において、シリアル通信部11により、現在においてターゲット機器2に対してリクエストコマンドを送信中ではないか否かを判定する。リクエストコマンドを送信中である場合にはステップS33に処理を進め、リクエストコマンドを送信中ではない場合にはステップS9に処理を進める。
In step S32, the
ステップS32にてリクエストコマンドを送信中ではないと判定した場合には、ステップS9に処理を進めてターゲット機器2にリクエストコマンドを送信する。すなわち、ターゲット機器2は、現在においてリクエストコマンドに対する処理を実行している最中ではないので、新たな監視、制御をするためのリクエストコマンドをターゲット機器2に送信する。略同時的にステップS34において、コマンドメッセージ変換処理部12は、受信メッセージ記憶部12aの記録時間を計時するレスポンス受信タイマーを、所定の閾値にセットする。これにより、シリアル通信変換装置1は、リクエストコマンドを送出してからエラー情報を遠隔操作用端末5に送信するまでのカウントダウンを開始することができる。
If it is determined in step S32 that the request command is not being transmitted, the process proceeds to step S9 and the request command is transmitted to the
一方、ステップS33において、シリアル通信部11は、リクエストコマンドをシリアル送信バッファに保存して処理を終了する。このシリアル送信バッファは、シリアル通信部11に標準的に内蔵されている機能である。
On the other hand, in step S33, the
また、シリアル通信変換装置1は、ステップS34にてレスポンス受信タイマーをセットした後に、所定期間ごとに図8に示す処理を行う。なお、以下の処理は、コマンドメッセージ変換処理部12にて行うこととしているが、別個のモジュールにより実現しても良いことは勿論である。
Further, after setting the response reception timer in step S34, the serial
ステップS41において、コマンドメッセージ変換処理部12は、ステップS34にてセットしたレスポンス受信タイマーがタイムアウトしたか否かを判定する。レスポンス受信タイマーがタイムアウトしていない場合には所定時間後に再判定を行い、レスポンス受信タイマーがタイムアウトした場合にはステップS42に処理を進める。
In step S41, the command message
ステップS42において、コマンドメッセージ変換処理部12は、受信メッセージ記憶部12aに保存された最も記録時刻が古いメールメッセージ情報を読み出す。
In step S42, the command message
次のステップS43において、コマンドメッセージ変換処理部12は、エラー情報を含むメールメッセージ情報を作成する。この時、コマンドメッセージ変換処理部12は、例えば、件名情報として「Re:(受信メッセージ記憶部12aに保存された件名情報)」、本文情報として「ターゲット機器のリクエストに失敗しました。(以下受信メッセージ記憶部12aに保存された本文情報)」をエラー情報として含むメールメッセージ情報を作成する。
In the next step S43, the command message
次のステップS45において、メール通信部13は、ステップS44にて作成されたメールメッセージ情報をメールサーバ4に送信する。これにより、エラー情報を含むメールメッセージ情報は、メールサーバ4によって転送されて、遠隔操作用端末5に受信され、遠隔操作用端末5によって、リクエストコマンドに対するエラー情報を提示することができる。
In the next step S <b> 45, the
次のステップS46において、コマンドメッセージ変換処理部12により、シリアル通信部11のシリアル送信バッファにリクエストコマンドが有るか否かを判定する。シリアル送信バッファにリクエストコマンドがある場合にはステップS47に処理を進め、ない場合には処理を終了する。
In the next step S46, the command message
ステップS47において、コマンドメッセージ変換処理部12は、ターゲット機器2に対して、シリアル送信バッファに保存されていたリクエストコマンドを送信する。
In step S47, the command message
次のステップS48において、コマンドメッセージ変換処理部12は、レスポンス受信タイマーをセットする。
In the next step S48, the command message
このように、シリアル通信変換装置1は、レスポンス受信タイマーがタイムアウトした時には、エラー情報を含むメールメッセージ情報を送信し、既にシリアル送信バッファにリクエストコマンドが保存されている場合には当該リクエストコマンドを送信してレスポンス受信タイマーをセットすることができる。
As described above, the serial
「シリアルコマンド受信時の動作」
つぎに、第2実施形態として示す監視制御システムにおいて、シリアル通信変換装置1によりシリアルコマンドを受信した時の処理を図9を参照して説明する。
"Operation when receiving serial command"
Next, processing when a serial command is received by the serial
シリアルコマンドを受信した時には、第1実施形態と同様にステップS11〜ステップS20の処理を行うことによりメールメッセージ情報を作成して、ステップS51に処理を進める。 When the serial command is received, the mail message information is created by performing the processes of steps S11 to S20 as in the first embodiment, and the process proceeds to step S51.
ステップS51において、コマンドメッセージ変換処理部12は、ステップS11にて受信したシリアルコマンドの種別情報を参照して、当該受信したシリアルコマンドの種別がレスポンスか否かを判定する。シリアルコマンドの種別がレスポンスである場合にはステップS52に処理を進め、レスポンスではない場合にはステップS21に処理を進めてメールメッセージ情報を送信する。
In step S51, the command message
ステップS52において、コマンドメッセージ変換処理部12は、レスポンス受信タイマーをリセットする。これにより、リクエストコマンドに対するレスポンスコマンドの送出できる場合には、エラー情報を送信することを禁止する。
In step S52, the command message
ステップS53において、コマンドメッセージ変換処理部12は、受信メッセージ記憶部12aに保存された最も記録時刻が古いメールメッセージ情報を読み出す。
In step S53, the command message
次のステップS54において、コマンドメッセージ変換処理部12は、ステップS20にて作成したメールメッセージ情報の本文情報に、当該レスポンスコマンドの内容を含むメールメッセージ情報を作成する元となった、遠隔操作用端末5からのリクエストメールメッセージ情報の本文情報を付加する。
In the next step S54, the command message
例えば第1実施形態にて示した例を用いると、リクエストメールメッセージ情報に本文情報「現在の温度状況は?」が含まれている場合に対して、レスポンスメールメッセージ情報に本文情報「温度センサー(01)は(正常)、温度センサー(02)は(下限異常)」が含まれている場合、当該本文情報「温度センサー(01)は(正常)、温度センサー(02)は(下限異常)「現在の温度状況は?」」とする。 For example, when the example shown in the first embodiment is used, when the request mail message information includes the text information “What is the current temperature?”, The response mail message information includes the text information “temperature sensor ( 01) is (normal), the temperature sensor (02) is (lower limit abnormal) ”, the text information“ temperature sensor (01) is (normal), temperature sensor (02) is (lower limit abnormal) ” "What is the current temperature status?"
次のステップS55において、コマンドメッセージ変換処理部12により、シリアル通信部11のシリアル送信バッファにリクエストコマンドが有るか否かを判定する。シリアル送信バッファにリクエストコマンドがある場合にはステップS56に処理を進め、ない場合にはステップS21に処理を進めてメールメッセージ情報を送信する。
In the next step S55, the command message
ステップS56において、コマンドメッセージ変換処理部12は、ターゲット機器2に対して、シリアル送信バッファに保存されていたリクエストコマンドを送信する。
In step S56, the command message
次のステップS57において、コマンドメッセージ変換処理部12は、レスポンス受信タイマーをセットし、ステップS21にてメールメッセージ情報を送信する。
In the next step S57, the command message
これにより、シリアル通信変換装置1は、第1実施形態の例を用いれば、
件名情報(subject):温度異常確認の応答
本文情報:温度センサー01は正常、温度センサー02は下限異常です。
>現在の温度状況は?
というメールメッセージ情報を送信することができる。
Thereby, if the
Subject information (subject): Response to temperature abnormality confirmation Body information: Temperature sensor 01 is normal, temperature sensor 02 is lower limit abnormality.
> What is the current temperature status?
Can be sent.
[実施形態の効果]
以上説明したように、第2実施形態に係る監視制御システムによれば、遠隔操作用端末5からリクエストメールメッセージ情報を受信して、当該リクエストメールメッセージ情報に対するレスポンスメールメッセージ情報を作成する際に、当該レスポンスメールメッセージ情報に、当該リクエストメールメッセージ情報のレスポンスであることを示す情報を含めることができる。例えばリクエストメールメッセージ情報の本文情報を、レスポンスメールメッセージ情報の本文情報に付加することができる。
[Effect of the embodiment]
As described above, according to the monitoring control system according to the second embodiment, when receiving the request mail message information from the
これにより、例えば災害時などにおいてターゲット機器2から発せられる警報としての通知コマンドが頻発している場面であっても、リクエストメールメッセージ情報とレスポンスメールメッセージ情報との関連が分かるように遠隔操作用端末5にレスポンスを通知することができる。これにより、遠隔操作用端末5のユーザにとっては、どのリクエストメールメッセージ情報に対してレスポンスメールメッセージ情報が送信されたかを明確に知ることができ、ターゲット機器2の制御結果を簡単に知ることができる。
Thus, for example, even in a scene where a notification command as an alarm issued from the
[第3実施形態]
つぎに、本発明の第3実施形態について説明する。なお、この第3実施形態として示す監視制御システムにおいて、上述した第1実施形態と同じ部分については同一符号を付することによりその詳細な説明を省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. In addition, in the monitoring control system shown as this 3rd Embodiment, the detailed description is abbreviate | omitted by attaching | subjecting the same code | symbol about the same part as 1st Embodiment mentioned above.
第3実施形態として示す監視制御システムは、図10に示すように、ターゲット機器2から遠隔地にある携帯電話5aやパーソナルコンピュータ5b等の遠隔操作用端末5の操作によって、変換情報テーブル14A、14Bへの情報登録、情報変更を行う。具体的には、シリアル通信変換装置1は、シリアル通信変換装置1により受信したメールメッセージ情報に基づいて、変換情報テーブル14A、14Bに対して情報の登録、変更をする登録処理手段としてコマンドメッセージ登録処理部15を動作させる。
As shown in FIG. 10, the monitoring control system shown as the third embodiment converts the conversion information tables 14A and 14B by operating the
コマンドメッセージ登録処理部15は、遠隔操作用端末5から送信された変換情報テーブル14A,14Bの設定メールメッセージが、メール通信部13を介して供給される。これに応じて、コマンドメッセージ登録処理部15は、受信した変換情報テーブル14A,14Bの設定メールメッセージに基づいて、変換情報テーブル14A,14Bの内容を設定する。そして、この変換情報テーブル14A,14Bの設定が完了すると、変換情報テーブルの設定メールメッセージを送信した遠隔操作用端末5に対して、変換情報テーブルの設定応答メールメッセージを送信する。
The command message
コマンドメッセージ登録処理部15によって変換情報テーブル14A、14Bの登録、変更を行う場合には、図11に示すような特定のメールメッセージ情報を用いる。図11のメールメッセージ情報によれば、変換情報テーブル14A、14Bに対する操作種別ごとに、特定の件名情報(subject)、本文情報が規定されており、コマンドメッセージ変換処理部12によって参照可能に記憶されている。操作種別としては、変換情報テーブル14A、14Bの読み込み、追加、変更、削除が挙げられる。
When registering or changing the conversion information tables 14A and 14B by the command message
変換情報テーブル14A、14Bを操作するためのメールメッセージ情報における件名情報としては、「変換情報テーブル14A、14Bの読み込み」、「追加」、「変更」、「削除」が挙げられ、本文情報としては、変換情報テーブル14A、14Bを区別する情報(MailToSerial,SerialToMail)、登録番号、件名情報、本文情報、シリアルコマンドが含まれる。 Examples of subject information in the mail message information for operating the conversion information tables 14A and 14B include “reading of the conversion information tables 14A and 14B”, “addition”, “change”, and “deletion”. , Information for distinguishing the conversion information tables 14A and 14B (MailToSerial, SerialToMail), registration number, subject information, text information, and serial command are included.
そして、コマンドメッセージ登録処理部15は、変換情報テーブル14A、14Bを操作するメールメッセージ情報を受信した時に、件名情報及び本文情報が図11によって規定された件名情報及び本文情報に該当しているかを判断する。そして、図11によって規定された件名情報及び本文情報に該当している場合には、当該件名情報及び本文情報に対応した「説明欄」に記述された処理を行い、「応答メールの本文内容」に相当する内容を本文情報としたメールメッセージ情報を作成して、遠隔操作用端末5に送信する。ここで、メールメッセージ情報の件名情報には、遠隔操作用端末5から送信されたメールメッセージ情報の件名情報に対して「Re:」を付加したものとなる。
Then, when the command message
第1変換情報テーブル14Aは、例えば図12に示すような簡易言語によってメールメッセージ情報とシリアルコマンドとの対応関係が記述され、これによって、図3(a)に示すように件名情報、本文情報及びコマンド列が対応付けられる。また、第2変換情報テーブル14Bは、図13に示すような簡易言語によってメールメッセージ情報とシリアルコマンドとの対応関係が記述され、これによって、図3(b)に示すように件名情報、本文情報及び文字列変換情報が対応付けられる。そして、この簡易言語は、変換情報テーブル14A、14Bの変更時において本文情報に記載しても良い。そして、この簡易言語は遠隔操作用端末5によって解釈されて、所定のレイアウトでユーザに提示することができる。
In the first conversion information table 14A, for example, the correspondence between the mail message information and the serial command is described in a simple language as shown in FIG. 12, and as a result, as shown in FIG. A command string is associated. Further, in the second conversion information table 14B, the correspondence between the mail message information and the serial command is described in a simple language as shown in FIG. 13, and as a result, subject information and text information as shown in FIG. And character string conversion information are associated with each other. This simple language may be written in the text information when the conversion information tables 14A and 14B are changed. The simple language can be interpreted by the
このように監視制御システムによれば、シリアル通信変換装置1により受信したメールメッセージ情報に基づいて、変換情報テーブル14A、14Bの読み込み、情報の追加、変更、削除を行うことができるので、当該変換情報テーブル14A、14Bの情報を遠隔で追加等をすることができる。
As described above, according to the monitoring control system, the conversion information tables 14A and 14B can be read, and information can be added, changed, and deleted based on the mail message information received by the serial
なお、上述の実施の形態は本発明の一例である。このため、本発明は、上述の実施形態に限定されることはなく、この実施の形態以外であっても、本発明に係る技術的思想を逸脱しない範囲であれば、設計等に応じて種々の変更が可能であることは勿論である。 The above-described embodiment is an example of the present invention. For this reason, the present invention is not limited to the above-described embodiment, and various modifications can be made depending on the design and the like as long as the technical idea according to the present invention is not deviated from this embodiment. Of course, it is possible to change.
1 シリアル通信変換装置
1a シリアルインターフェース
1b LANインターフェース
2 ターゲット機器
2a シリアルインターフェース
3 ルータ
4 メールサーバ
5 遠隔操作用端末
5a 携帯電話
5b パーソナルコンピュータ
6 設定用端末
11 シリアル通信部
12 コマンドメッセージ変換処理部
12a 受信メッセージ記憶部
13 メール通信部
14A 第1変換情報テーブル
14B 第2変換情報テーブル
15 コマンドメッセージ登録処理部
16 メールアカウント情報登録処理部
DESCRIPTION OF
Claims (5)
対象機器と接続され、当該対象機器との間で、当該対象機器に対する監視又は制御を行う監視制御コマンドのシリアル通信を行うシリアル通信手段と、
前記メール通信手段により前記メッセージ情報を取得した場合に前記監視制御コマンドを生成する変換処理と、前記シリアル通信手段により前記監視制御コマンドを取得した場合に前記メッセージ情報を生成する変換処理とを行う変換処理手段とを備え、
前記メール通信手段が前記メッセージ情報を取得した場合に、当該メッセージ情報を前記変換処理手段により前記監視制御コマンドに変換して、当該監視制御コマンドを前記シリアル通信手段によって前記対象機器に送出し、
前記シリアル通信手段が前記監視制御コマンドを取得した場合に、当該監視制御コマンドを前記変換処理手段により前記メッセージ情報に変換して、当該メッセージ情報を前記メール通信手段によって前記メールサーバに送出すること
を特徴とするシリアル通信変換装置。 A mail communication means for communicating message information with the mail server;
Serial communication means connected to the target device and performing serial communication of a monitoring control command for monitoring or controlling the target device with the target device;
A conversion process for generating the monitoring control command when the message information is acquired by the mail communication unit and a conversion process for generating the message information when the monitoring control command is acquired by the serial communication unit Processing means,
When the mail communication means acquires the message information, the message information is converted into the monitoring control command by the conversion processing means, and the monitoring control command is sent to the target device by the serial communication means,
When the serial communication unit acquires the monitoring control command, the conversion processing unit converts the monitoring control command into the message information, and sends the message information to the mail server by the mail communication unit. A serial communication conversion device.
前記変換処理部は、前記記憶手段に記憶された前記変換情報テーブルを参照して、前記メッセージ情報と前記監視制御コマンドとを相互に変換すること
を特徴とする請求項1に記載のシリアル通信変換装置。 Storage means for storing a conversion information table in which the message information and the monitoring control command are registered in association with each other;
The serial communication conversion according to claim 1, wherein the conversion processing unit converts the message information and the monitoring control command to each other with reference to the conversion information table stored in the storage unit. apparatus.
メッセージ情報の授受を行うメールサーバと、
前記複数の対象機器及び前記メールサーバと通信が可能とされるシリアル通信変換装置と、
前記メールサーバを介して、前記シリアル通信変換装置との間でメッセージ情報の授受を行う遠隔操作用端末とを備え、
前記シリアル通信変換装置は、
前記メールサーバとメッセージ情報の通信を行うメール通信手段と、
前記対象機器と接続され、当該対象機器との間で、当該対象機器に対する監視又は制御を行う監視制御コマンドのシリアル通信を行うシリアル通信手段と、
前記メール通信手段により前記メッセージ情報を取得した場合に前記監視制御コマンドを生成する変換処理と、前記シリアル通信手段により前記監視制御コマンドを取得した場合に前記メッセージ情報を生成する変換処理とを行う変換処理手段とを備え、
前記メール通信手段が前記メッセージ情報を取得した場合に、当該メッセージ情報を前記変換処理手段により前記監視制御コマンドに変換して、当該監視制御コマンドを前記シリアル通信手段によって前記対象機器に送出し、
前記シリアル通信手段が前記監視制御コマンドを取得した場合に、当該監視制御コマンドを前記変換処理手段により前記メッセージ情報に変換して、当該メッセージ情報を前記メール通信手段によって前記メールサーバに送出すること
を特徴とする監視制御システム。 A target device that communicates with a predetermined serial communication method;
A mail server for sending and receiving message information;
A serial communication conversion device capable of communicating with the plurality of target devices and the mail server;
A remote operation terminal for sending and receiving message information to and from the serial communication conversion device via the mail server;
The serial communication converter is
Mail communication means for communicating message information with the mail server;
Serial communication means connected to the target device and performing serial communication of a monitoring control command for monitoring or controlling the target device with the target device;
A conversion process for generating the monitoring control command when the message information is acquired by the mail communication unit and a conversion process for generating the message information when the monitoring control command is acquired by the serial communication unit Processing means,
When the mail communication means acquires the message information, the message information is converted into the monitoring control command by the conversion processing means, and the monitoring control command is sent to the target device by the serial communication means,
When the serial communication unit acquires the monitoring control command, the conversion processing unit converts the monitoring control command into the message information, and sends the message information to the mail server by the mail communication unit. Characteristic supervisory control system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008325494A JP2010147994A (en) | 2008-12-22 | 2008-12-22 | Serial communication conversion apparatus, monitor and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008325494A JP2010147994A (en) | 2008-12-22 | 2008-12-22 | Serial communication conversion apparatus, monitor and control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010147994A true JP2010147994A (en) | 2010-07-01 |
Family
ID=42567910
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008325494A Pending JP2010147994A (en) | 2008-12-22 | 2008-12-22 | Serial communication conversion apparatus, monitor and control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010147994A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018074301A (en) * | 2016-10-26 | 2018-05-10 | サイレックス・テクノロジー株式会社 | Conversion device and control method of the same |
-
2008
- 2008-12-22 JP JP2008325494A patent/JP2010147994A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018074301A (en) * | 2016-10-26 | 2018-05-10 | サイレックス・テクノロジー株式会社 | Conversion device and control method of the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4290190B2 (en) | Group management system, server device, and program | |
US8693999B2 (en) | Communication apparatus, maintenance system, maintenance method and computer program | |
CN101459564A (en) | Information processing device and home network system | |
JP6347146B2 (en) | Image recording apparatus, recording system, and program | |
JP2005072764A (en) | Apparatus control system, apparatus therefor, and apparatus control method | |
CN101115315A (en) | Administrator device, control method and control program | |
JP4698129B2 (en) | Control device | |
CN1717953B (en) | Remote control, remote control method and remote controlled device | |
JP4612296B2 (en) | Status information providing apparatus and method, computer program therefor, recording medium recording the program, and computer programmed by the program | |
JP2005102060A (en) | Data structure, external server, home communication device, and communication method of command data | |
JP2010147994A (en) | Serial communication conversion apparatus, monitor and control system | |
JP2006196956A (en) | Terminal device | |
JP2012141660A (en) | Control device and program | |
JP3498725B2 (en) | Remote control device and method | |
CN117008546A (en) | Monitoring method and device for equipment data, electronic equipment and storage medium | |
JP4826801B2 (en) | Communications system | |
JP2009225481A (en) | Communication apparatus, communication control method and communication control program | |
JP2002278902A (en) | Device control system by using electronic mail | |
JP6572488B2 (en) | Conversion device and control method of conversion device | |
JP3737503B2 (en) | Monitoring system, monitoring method and program thereof | |
JP6352838B2 (en) | Wireless communication device | |
JP7131828B2 (en) | Communication system and communication port connection status confirmation method | |
JP2004295873A (en) | REMOTE CONTROL DEVICE, REMOTE CONTROL METHOD, AND REMOTE CONTROL DEVICE | |
KR100645597B1 (en) | Robot remote control service method and device | |
JP2004241985A (en) | Intercom unit |