JP2010147994A - Serial communication conversion apparatus, monitor and control system - Google Patents

Serial communication conversion apparatus, monitor and control system Download PDF

Info

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
mail
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
Application number
JP2008325494A
Other languages
Japanese (ja)
Inventor
Mitsuyo Ishida
美津代 石田
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Electric Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Electric Works Co Ltd filed Critical Panasonic Electric Works Co Ltd
Priority to JP2008325494A priority Critical patent/JP2010147994A/en
Publication of JP2010147994A publication Critical patent/JP2010147994A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

【課題】 シリアルインターフェースのみしか備えない機器の監視及び制御を遠隔から行うことを目的とする。
【解決手段】 メールメッセージ情報からシリアルコマンドに変換し、シリアルコマンドからメールメッセージ情報に変換するための変換情報テーブル14A、14Bを記憶しておき、メール通信部13がメッセージ情報を取得した場合に、当該メッセージ情報をコマンドメッセージ変換処理部12によりシリアルコマンドに変換して、当該シリアルコマンドをシリアル通信部11によってターゲット機器2に送出し、シリアル通信部11がシリアルコマンドを取得した場合に、当該シリアルコマンドをコマンドメッセージ変換処理部12によりメッセージ情報に変換して、当該メッセージ情報をメール通信部13によってメールサーバに送出する。
【選択図】 図2
PROBLEM 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 Patent Document 1 below).

この技術において、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.

また、シリアルインターフェースしか備えない機器の設定や制御を行う場合には、機器が設置されている現場まで作業員が出向き、機器設定専用のパーソナルコンピュータ等を機器に接続して行うことが多い。
特開平5−316576号公報
Further, when setting or controlling a device having only a serial interface, an operator often goes to the site where the device is installed and connects a personal computer dedicated to device setting to the device.
JP-A-5-316576

しかしながら、上述した技術においては、現場に行かないと機器の設定や制御を行うことができない、シリアル通信により出力した警報等の情報を遠隔地の携帯端末などで受信したいという要望がある。   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 communication conversion device 1, a target device 2 to be monitored and controlled, a router 3, a mail server 4, and a mobile phone 5a. And a remote operation terminal 5 such as a personal computer 5b.

ターゲット機器2は、所定のシリアル通信方式に従って動作するシリアルインターフェース2aを備え、当該シリアルインターフェース2aを介してシリアル通信変換装置1と通信を行う。これにより、ターゲット機器2は、シリアル通信変換装置1等を介して、遠隔操作用端末5と通信が可能となる。ターゲット機器2としては、例えば空調機器、照明機器、防犯機器などの各種の機器である。   The target device 2 includes a serial interface 2a that operates according to a predetermined serial communication method, and communicates with the serial communication conversion device 1 via the serial interface 2a. As a result, the target device 2 can communicate with the remote operation terminal 5 via the serial communication conversion device 1 or the like. Examples of the target device 2 include various devices such as an air conditioner, a lighting device, and a security device.

ターゲット機器2は、シリアル通信変換装置1との間でシリアルコマンド(監視制御コマンド)の通信を行って、現在状態の監視、制御が行われる。シリアルコマンドは、リクエストコマンド及び当該リクエストコマンドに対する応答であるレスポンスコマンド、異常などを自発的に通知する通知コマンドを含む。なお、以下の説明においては、リクエストコマンド、レスポンスコマンド、通知コマンドを特に区別しない場合には、「シリアルコマンド」の用語を使用し、これらを区別する場合には、それぞれの名称を使用するものとする。このようなシリアルコマンドは、シリアル通信変換装置1により当該コマンドの内容がメールメッセージ情報に変換されて、遠隔操作用端末5に供給される。逆に、遠隔操作用端末5からのメールメッセージ情報は、シリアル通信変換装置1によりシリアルコマンドに変換されて、ターゲット機器2に供給される。これにより、ターゲット機器2は、遠隔操作用端末5と通信を行うことができる。   The target device 2 performs serial command (monitoring control command) communication with the serial communication conversion device 1 to monitor and control the current state. The serial command includes a request command, a response command that is a response to the request command, and a notification command that spontaneously notifies an abnormality or the like. In the following description, the term “serial command” is used when there is no particular distinction between a request command, response command, and notification command, and each name is used when they are distinguished. To do. Such serial commands are converted into mail message information by the serial communication conversion device 1 and supplied to the remote operation terminal 5. On the contrary, the mail message information from the remote operation terminal 5 is converted into a serial command by the serial communication conversion device 1 and supplied to the target device 2. Accordingly, the target device 2 can communicate with the remote operation terminal 5.

メールサーバ4は、遠隔操作用端末5との間で所定のメール通信プロトコルに従ってメールメッセージ情報の送受信を行うと共に、シリアル通信変換装置1との間でも、所定のメール通信プロトコルに従ってメールメッセージ情報の送受信を行う。この所定のメール通信プロトコルは、POP(Post Office Protocol)3などが挙げられる。このメールメッセージ情報としては、ターゲット機器2を監視又は制御するリクエスト情報含むリクエストメールメッセージ情報、ターゲット機器2へのリクエストに対するレスポンスメールメッセージ情報、ターゲット機器2から遠隔操作用端末5に対して通知する通知メールメッセージ情報が含まれる。   The mail server 4 transmits / receives mail message information to / from the remote operation terminal 5 according to a predetermined mail communication protocol, and also transmits / receives mail message information to / from the serial communication conversion device 1 according to the predetermined mail communication protocol. I do. An example of the predetermined mail communication protocol is POP (Post Office Protocol) 3. The mail message information includes request mail message information including request information for monitoring or controlling the target device 2, response mail message information for a request to the target device 2, and notification sent from the target device 2 to the remote operation terminal 5. Contains email message information.

メールサーバ4には、シリアル通信変換装置1及び遠隔操作用端末5のメールアカウント情報が登録される。このメールアカウント情報としては、メールアドレス、IP(Internet Protocol)アドレス等が含まれる。これにより、メールサーバ4は、遠隔操作用端末5とシリアル通信変換装置1との間でメールメッセージ情報を転送できる。   In the mail server 4, mail account information of the serial communication conversion device 1 and the remote operation terminal 5 is registered. The mail account information includes a mail address, an IP (Internet Protocol) address, and the like. Thereby, the mail server 4 can transfer the mail message information between the remote operation terminal 5 and the serial communication conversion device 1.

遠隔操作用端末5は、メールサーバ4との間で所定のメール通信プロトコルに従ってメールメッセージ情報の送受信を行う。遠隔操作用端末5は、ターゲット機器2を監視又は制御したいユーザによって操作され、ターゲット機器2の現在の動作状態を表示する。遠隔操作用端末5は、ユーザの操作に従ってターゲット機器2に対するリクエスト情報を含むリクエストメールメッセージ情報を生成して、メールサーバ4に対して送信する。これにより、遠隔操作用端末5は、メールサーバ4、シリアル通信変換装置1等を介してターゲット機器2にリクエストコマンドを送出できる。また、遠隔操作用端末5は、ターゲット機器2がレスポンスコマンド又は通知コマンドを送出すると、シリアル通信変換装置1、メールサーバ4等を介して、レスポンスメールメッセージ情報、通知メールメッセージ情報を受信し、当該受信した情報を表示できる。   The remote operation terminal 5 transmits / receives mail message information to / from the mail server 4 according to a predetermined mail communication protocol. The remote operation terminal 5 is operated by a user who wants to monitor or control the target device 2 and displays the current operation state of the target device 2. The remote operation terminal 5 generates request mail message information including request information for the target device 2 according to a user operation, and transmits the request mail message information to the mail server 4. Thereby, the remote operation terminal 5 can send a request command to the target device 2 via the mail server 4, the serial communication conversion device 1, or the like. Further, when the target device 2 sends a response command or a notification command, the remote operation terminal 5 receives the response mail message information and the notification mail message information via the serial communication converter 1, the mail server 4, etc. Received information can be displayed.

なお、メールサーバ4は、遠隔操作用端末5におけるターゲット機器2の監視・制御用のアプリケーションにより生成されたメールメッセージ情報を受信したことにより自動的にシリアル通信変換装置1に当該メールメッセージ情報を転送しても良い。すなわち、メールサーバ4は、遠隔操作用端末5とシリアル通信変換装置1とを紐付ける対応テーブルが記憶させておき、メールサーバ4は、所定の遠隔操作用端末5からリクエストメールメッセージ情報を受信した場合には、自動的にメールメッセージ情報を転送できるようにしても良い。   The mail server 4 automatically transfers the mail message information to the serial communication conversion device 1 upon receiving the mail message information generated by the monitoring / control application for the target device 2 in the remote operation terminal 5. You may do it. That is, the mail server 4 stores a correspondence table for associating the remote operation terminal 5 with the serial communication conversion device 1, and the mail server 4 has received the request mail message information from the predetermined remote operation terminal 5. In this case, the mail message information may be automatically transferred.

シリアル通信変換装置1は、図2に示すように、ターゲット機器2と接続されたシリアル通信部11と、メールサーバ4と通信を行うメール通信部13と、メールメッセージ情報とシリアルコマンドとの変換を行うコマンドメッセージ変換処理部12と、変換情報テーブル14A、14Bと、コマンドメッセージ登録処理部15と、メールアカウント情報登録処理部16とを備える。   As shown in FIG. 2, the serial communication conversion device 1 converts a serial communication unit 11 connected to the target device 2, a mail communication unit 13 that communicates with the mail server 4, and conversion between mail message information and a serial command. A command message conversion processing unit 12 to perform, conversion information tables 14A and 14B, a command message registration processing unit 15, and a mail account information registration processing unit 16 are provided.

シリアル通信変換装置1は、ターゲット機器2とシリアル通信をするためのシリアルインターフェース1a及びルータ3と通信をするためのLANインターフェース1bを備えている。シリアル通信変換装置1は、シリアルインターフェース1aを介してターゲット機器2のシリアルインターフェース2aとシリアル通信を行う。   The serial communication conversion device 1 includes a serial interface 1 a for serial communication with the target device 2 and a LAN interface 1 b for communication with the router 3. The serial communication conversion device 1 performs serial communication with the serial interface 2a of the target device 2 via the serial interface 1a.

シリアル通信部11は、所定のシリアル通信方式に従って動作するシリアルインターフェース1aを構成し、ターゲット機器2に接続される。シリアル通信部11は、ターゲット機器2との間で、ターゲット機器2に対する監視又は制御を行うシリアルコマンド(リクエストコマンド、レスポンスコマンド、通知コマンド)を通信するシリアル通信を行う。   The serial communication unit 11 constitutes a serial interface 1 a that operates according to a predetermined serial communication method, and is connected to the target device 2. The serial communication unit 11 performs serial communication with the target device 2 to communicate serial commands (request command, response command, notification command) for monitoring or controlling the target device 2.

メール通信部13は、メールサーバ4とメールメッセージ情報の通信を行う。メール通信部13は、ルータ3及びインターネット網NTを介して、所定のメール通信プロトコルに従って、メールメッセージ情報を送受信する。この所定のメール通信プロトコルは、SMTP(Simple Mail Transfer Protocol)などが挙げられる。このメールメッセージ情報としては、ターゲット機器2を監視又は制御するリクエスト情報含むリクエストメールメッセージ情報、ターゲット機器2へのリクエストに対するレスポンスメールメッセージ情報、ターゲット機器2から遠隔操作用端末5に対して通知する通知メールメッセージ情報が含まれる。   The mail communication unit 13 communicates with the mail server 4 for mail message information. The mail communication unit 13 transmits and receives mail message information via the router 3 and the Internet network NT according to a predetermined mail communication protocol. An example of the predetermined mail communication protocol is SMTP (Simple Mail Transfer Protocol). The mail message information includes request mail message information including request information for monitoring or controlling the target device 2, response mail message information for a request to the target device 2, and notification sent from the target device 2 to the remote operation terminal 5. Contains email message information.

コマンドメッセージ変換処理部12は、メールメッセージ情報を取得した場合にシリアルコマンドを生成する変換処理、シリアルコマンドを取得した場合にメールメッセージ情報を生成する変換処理を行う機能を備える。この変換処理を行うとき、コマンドメッセージ変換処理部12は、変換情報テーブル14A、14Bを参照する。コマンドメッセージ変換処理部12は、メール通信部13からメールメッセージ情報を受信した時には、「メール→シリアル方向」の第1変換情報テーブル14Aを参照して、シリアルコマンドを生成してシリアル通信部11に供給する。コマンドメッセージ変換処理部12は、シリアル通信部11からシリアルコマンドを受信した時には、「シリアル→メール方向」の第2変換情報テーブル14Bを参照して、メールメッセージ情報を生成してメール通信部13に供給する。   The command message conversion processing unit 12 has a function of performing a conversion process for generating a serial command when mail message information is acquired, and a conversion process for generating mail message information when a serial command is acquired. When performing this conversion processing, the command message conversion processing unit 12 refers to the conversion information tables 14A and 14B. When the command message conversion processing unit 12 receives the mail message information from the mail communication unit 13, the command message conversion processing unit 12 generates a serial command by referring to the first conversion information table 14 </ b> A of “mail → serial direction” and sends it to the serial communication unit 11. Supply. When receiving the serial command from the serial communication unit 11, the command message conversion processing unit 12 refers to the second conversion information table 14 B of “serial → mail direction”, generates mail message information, and sends it to the mail communication unit 13. Supply.

第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 conversion processing unit 12 receives the mail message information, the command message conversion processing unit 12 compares the subject information and the text information included in the received mail message information with the subject information and the text information in the first conversion information table 14A to determine the serial number. Determine the command. Of course, when there are a plurality of types of serial commands for the mail message information, the type information for the serial commands may be set.

例えば、件名情報が「温度異常確認」、本文情報が「現在の温度状況は?」であるメールメッセージ情報を受信した場合、コマンド列が「&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 remote operation terminal 5, and are included in the mail message information. The command message conversion processing unit 12 recognizes the variable and incorporates it into the serial command.

具体的には、受信したメールメッセージ情報の本文情報が「温度センサー(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 conversion processing unit 12 receives a serial command, the command message conversion processing unit 12 compares the type information and command string included in the received serial command with the type information and command string of the second conversion information table 14B, and sends mail message information. To decide.

ここで、シリアルコマンドのコマンド列には、ターゲット機器2の状態によって変化される数字、文字がある場合には、(%数字:文字数)として含まれる。(%数字)は、メールメッセージ情報の本文情報における(%数字)と同じ位置に割り当てられる。また、種別情報としては、ターゲット機器2から送信されるレスポンスコマンド、通知コマンドの何れかが設定される。また、メールメッセージ情報における文字列変換情報は、シリアルコマンドにおける(%数字)を文字列に変換して、本文情報に組み入れたい場合に、該当する(%数字)、シリアルコマンド内の文字、変換文字の順に登録される。   Here, if there are numbers and characters that change depending on the state of the target device 2 in the command sequence of the serial command, they are included as (% number: number of characters). (% Number) is assigned to the same position as (% number) in the text information of the mail message information. As the type information, either a response command or a notification command transmitted from the target device 2 is set. In addition, the character string conversion information in the mail message information corresponds to (% number), the character in the serial command, the conversion character when converting (% number) in the serial command to a character string and incorporating it into the text information. Are registered in the order.

具体的には、受信したシリアルコマンドが「#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 communication conversion device 1. However, even if the conversion information tables 14A and 14B are not stored, they are provided separately. A method of reading the conversion information tables 14A and 14B from the stored storage device or a method of converting by a predetermined calculation may be adopted.

コマンドメッセージ登録処理部15は、変換情報テーブル14A、14Bに登録されているシリアルコマンド、メールメッセージ情報を登録する処理を行う。また、メールアカウント情報登録処理部16は、遠隔操作用端末5のメールアカウント情報を追加又は削除する処理を行う。変換情報テーブル14A、14Bに設定登録、メールアカウント情報の設定登録は、シリアル通信変換装置1のデータ登録モード時に行われる。このデータ登録モードにおいては、シリアル通信部11によりシリアルコマンドを受信し、当該シリアルコマンドによって各種の情報が登録される。   The command message registration processing unit 15 performs processing for registering serial commands and mail message information registered in the conversion information tables 14A and 14B. Further, the mail account information registration processing unit 16 performs a process of adding or deleting the mail account information of the remote operation terminal 5. Setting registration in the conversion information tables 14A and 14B and mail account information setting registration are performed in the data registration mode of the serial communication conversion apparatus 1. In this data registration mode, a serial command is received by the serial communication unit 11, and various types of information are registered by the serial command.

変換情報テーブル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 terminal 6 is connected to the serial communication conversion device 1. The setting terminal 6 is operated by an administrator of the serial communication conversion device 1. From this setting terminal 6, information for setting conversion information tables 14A and 14B and setting mail account information is supplied as serial commands.

設定用端末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 terminal 6, the information is received by the serial communication unit 11. The command message registration request and the command message are used by the command message registration processing unit 15 for setting registration of the conversion information tables 14A and 14B. When the setting registration of the conversion information tables 14 </ b> A and 14 </ b> B is completed, the command message registration processing unit 15 transmits a command message registration confirmation and message to the setting terminal 6 via the serial communication unit 11.

また、設定用端末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 terminal 6, it is received by the mail account information registration processing unit 16 through the serial communication unit 11. The mail account information registration processing unit 16 acquires mail account information included in the mail account information registration request. The mail account information registration processing unit 16 supplies the stored mail account information to the setting terminal 6 via the serial communication unit 11 when a confirmation request for the mail account information is supplied from the setting terminal 6. To do. When new mail account information is registered, the mail account information registration processing unit 16 transmits the mail account information to the mail server 4 to enable communication using the mail account information.

「監視制御システムの動作」
「メールメッセージ情報受信時の動作」
つぎに、上述したように構成された監視制御システムにおいて、遠隔操作用端末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 target device 2 is controlled by the remote operation terminal 5, the operation when the serial communication conversion device 1 receives the mail message information is shown in FIG. This will be described with reference to a flowchart. In the following explanation of the operation, the target device 2 is an air conditioner, and a temperature abnormality confirmation operation for confirming whether or not the temperature measured by the target device 2 is abnormal is confirmed by the remote operation terminal 5. An example will be described.

先ず、遠隔操作用端末5により、件名情報が「温度異常確認」、本文情報が「現在の温度状況は?」というメールメッセージ情報をメールサーバ4に対して送信する。そして、このメールメッセージ情報は、メールサーバ4によりシリアル通信変換装置1に対して送信され、インターネット網NT及びルータ3を介して、シリアル通信変換装置1により受信される。なお、遠隔操作用端末5は、シリアル通信変換装置1を宛先に設定してメールメッセージ情報を作成しても良く、遠隔操作用端末5から送信されたメールメッセージ情報はメールサーバ4により自動的にシリアル通信変換装置1に送信するものとしても良い。   First, the remote operation terminal 5 transmits to the mail server 4 mail message information that the subject information is “temperature abnormality confirmation” and the text information is “current temperature status?”. This mail message information is transmitted to the serial communication conversion device 1 by the mail server 4 and received by the serial communication conversion device 1 via the Internet network NT and the router 3. The remote operation terminal 5 may create mail message information by setting the serial communication conversion device 1 as a destination. The mail message information transmitted from the remote operation terminal 5 is automatically transmitted by the mail server 4. The data may be transmitted to the serial communication conversion device 1.

シリアル通信変換装置1によりメールメッセージ情報を受信すると、ステップS1によりメール通信部13により宛先情報の確認などの処理を行い、当該メールメッセージ情報をコマンドメッセージ変換処理部12に供給する。   When the mail message information is received by the serial communication conversion device 1, the mail communication unit 13 performs processing such as confirmation of the destination information in step S1, and supplies the mail message information to the command message conversion processing unit 12.

次のステップS2において、コマンドメッセージ変換処理部12は、ステップS1にて受信したメールメッセージ情報の件名情報が、「メール→シリアル方向」の第1変換情報テーブル14Aの同一の件名情報(subject)として登録されているか否かを判定する。同一の件名情報が登録されていない場合にはステップS3において当該メールメッセージ情報を破棄して処理を終了する。一方、同一の件名情報が登録されている場合にはステップS4に処理を進める。ここで、受信したメールメッセージ情報の件名情報は「温度異常確認」であるので、図3(a)における登録番号がNo.1のメールメッセージ情報に該当する。   In the next step S2, the command message conversion processing unit 12 sets the subject information of the mail message information received in step S1 as the same subject information (subject) in the first conversion information table 14A of “mail → serial direction”. It is determined whether it is registered. If the same subject information is not registered, the mail message information is discarded in step S3 and the process is terminated. On the other hand, if the same subject information is registered, the process proceeds to step S4. Here, since the subject information of the received mail message information is “temperature abnormality confirmation”, the registration number in FIG. Corresponds to 1 mail message information.

ステップS4において、コマンドメッセージ変換処理部12は、ステップS1にて受信したメールメッセージ情報の本文情報「現在の温度状況は?」が、第1変換情報テーブル14Aの本文情報として登録されている内容と同じか否かを判定する。このとき、コマンドメッセージ変換処理部12は、本文情報における可変文字部分については省いて、相互の本文情報を比較する。受信したメールメッセージ情報の本文情報と第1変換情報テーブル14Aに登録された本文情報とが同じ内容である場合にはステップS6に処理を進め、そうではない場合にはステップS5にてメールメッセージ情報を破棄する。ここで、受信したメールメッセージ情報の本文情報は「現在の温度状況は?」であるので、図3(a)における登録番号がNo.1のメールメッセージ情報に該当する。   In step S4, the command message conversion processing unit 12 determines that the text information “What is the current temperature?” Of the mail message information received in step S1 is registered as the text information in the first conversion information table 14A. Determine whether they are the same. At this time, the command message conversion processing unit 12 omits the variable character portion in the text information and compares the text information. If the text information of the received mail message information and the text information registered in the first conversion information table 14A have the same content, the process proceeds to step S6, and if not, the mail message information is sent in step S5. Is discarded. Here, since the text information of the received mail message information is “What is the current temperature status?”, The registration number in FIG. Corresponds to 1 mail message information.

ステップS6において、コマンドメッセージ変換処理部12は、ステップS2にて判定されたメールメッセージ情報と同じ件名情報が登録され、且つステップS4にて判定されたメールメッセージ情報と同じ内容の本文情報が登録された登録番号のシリアルコマンドを、第1変換情報テーブル14Aから引用する。ここで、受信したメールメッセージ情報の件名情報は「温度異常確認」、本文情報は「現在の温度状況は?」であるので、図3(a)における登録番号がNo.1のメールメッセージ情報に対応した、シリアルコマンドのコマンド列「&R000」を引用できる。   In step S6, the command message conversion processing unit 12 registers the same subject information as the mail message information determined in step S2, and the text information having the same contents as the mail message information determined in step S4. The serial command of the registered number is quoted from the first conversion information table 14A. Here, since the subject information of the received mail message information is “temperature abnormality confirmation” and the text information is “current temperature status?”, The registration number in FIG. The command string “& R000” of the serial command corresponding to the mail message information of 1 can be cited.

次のステップS7において、コマンドメッセージ変換処理部12は、ステップS6にて引用したシリアルコマンドの中に可変文字は存在するか否かを判定する。シリアルコマンドの中に可変文字が存在しない場合にはステップS9に処理を進め、シリアルコマンドの中に可変文字が存在する場合にはステップS8に処理を進める。ここで、ステップS6にてシリアルコマンドのコマンド列「&R000」を引用した場合には、ステップS7の判定は否定となり、ステップS9に処理は進められる。   In the next step S7, the command message conversion processing unit 12 determines whether or not a variable character exists in the serial command quoted in step S6. If there are no variable characters in the serial command, the process proceeds to step S9. If there are variable characters in the serial command, the process proceeds to step S8. If the command string “& R000” of the serial command is quoted in step S6, the determination in step S7 is negative and the process proceeds to step S9.

ステップS8において、コマンドメッセージ変換処理部12は、メールメッセージ情報の本文情報に含まれる可変文字を、ステップS6にて引用したシリアルコマンドに組み込む。   In step S8, the command message conversion processing unit 12 incorporates the variable characters included in the text information of the mail message information into the serial command quoted in step S6.

ステップS9において、シリアル通信部11により、コマンドメッセージ変換処理部12によって変換されたシリアルコマンドをターゲット機器2に送信する。ここで、シリアルコマンドのコマンド列が「&R000」である場合、ターゲット機器2に対して当該コマンド列を送信することにより、現在にターゲット機器2が計測している温度が異常であるかの確認動作をさせることができる。   In step S <b> 9, the serial communication unit 11 transmits the serial command converted by the command message conversion processing unit 12 to the target device 2. Here, when the command sequence of the serial command is “& R000”, the command sequence is transmitted to the target device 2 to check whether the temperature currently measured by the target device 2 is abnormal. Can be made.

「シリアルコマンド受信時の動作」
つぎに、上述したように構成された監視制御システムにおいて、シリアル通信変換装置1がシリアルコマンドを受信した時の動作を図5のフローチャートを参照して説明する。なお、以下の動作説明においては、ターゲット機器2が空調機器であり、当該ターゲット機器2が温度異常確認についてのリクエストコマンドを受信したことに対して、レスポンスコマンドをシリアル通信変換装置1に返信する動作について説明する。
"Operation when receiving serial command"
Next, the operation when the serial communication conversion apparatus 1 receives the serial command in the monitoring control system configured as described above will be described with reference to the flowchart of FIG. In the following description of the operation, the target device 2 is an air conditioner, and the response command is returned to the serial communication conversion device 1 in response to the target device 2 receiving a request command for temperature abnormality confirmation. Will be described.

先ず、ターゲット機器2が温度異常確認についてのコマンド列「&R000」を受信すると、当該シリアルコマンド(リクエストコマンド)を解釈し、ターゲット機器2により内蔵の温度センサの状態を表すレスポンスコマンドを生成する。この時、ターゲット機器2は、コマンド列「#R00001N02L」のレスポンスコマンドをシリアル通信変換装置1に返信したとする。そして、このシリアルコマンドは、シリアル通信変換装置1に対して送出される。   First, when the target device 2 receives the command string “& R000” for confirming the temperature abnormality, the serial command (request command) is interpreted, and the target device 2 generates a response command indicating the state of the built-in temperature sensor. At this time, it is assumed that the target device 2 returns a response command of the command string “# R00001N02L” to the serial communication conversion device 1. The serial command is sent to the serial communication conversion device 1.

シリアル通信変換装置1によりシリアルコマンドを受信すると、ステップS11によりシリアル通信部11により所定のシリアル通信規格に関する処理を行い、当該シリアルコマンドをコマンドメッセージ変換処理部12に供給する。   When the serial command is received by the serial communication conversion device 1, the serial communication unit 11 performs processing related to a predetermined serial communication standard in step S11 and supplies the serial command to the command message conversion processing unit 12.

次のステップ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 conversion processing unit 12 determines whether or not the serial command received in step S11 is registered as the same command string in the second conversion information table 14B of “serial to mail direction”. judge. At this time, the command message conversion processing unit 12 omits the variable character portion in the command sequence and compares the command sequences with each other. If the same command sequence is not registered, the serial command is discarded in step S13 and the process is terminated. On the other hand, if the same command sequence is registered, the process proceeds to step S14. Here, the command string “# R000 (% 1: 2) (% 2: 1) (% 3: 2) (% 4: 1)” is registered in the second conversion information table 14B, and is received in step S11. Since the command string of the serial command is “# R00001N02L”, the registration number in FIG. Corresponds to 1 command sequence.

ステップS14において、コマンドメッセージ変換処理部12は、ステップS12にて判定されたコマンド列と同じ登録番号と対応付けられて第2変換情報テーブル14Bに登録されているメールメッセージ情報を、第2変換情報テーブル14Bから引用する。ここで、図3(b)における登録番号がNo.1のシリアルコマンドに対応した、メールメッセージ情報の件名情報、本文情報、文字列変換情報を引用できる。   In step S14, the command message conversion processing unit 12 converts the mail message information registered in the second conversion information table 14B in association with the same registration number as the command sequence determined in step S12 into the second conversion information. Quote from Table 14B. Here, the registration number in FIG. The subject information, text information, and character string conversion information of the mail message information corresponding to one serial command can be cited.

次のステップS15において、コマンドメッセージ変換処理部12は、ステップS14にて引用したメールメッセージ情報の中に可変文字は存在するか否かを判定する。メールメッセージ情報の中に可変文字が存在しない場合にはステップS17に処理を進め、メールメッセージ情報の中に可変文字が存在する場合にはステップS18に処理を進める。ここで、ステップS14のおいて、図3(b)に示す登録番号がNo.1に対応したメールメッセージ情報を引用したので、ステップS15の判定は肯定となり、ステップS16に処理は進められる。   In the next step S15, the command message conversion processing unit 12 determines whether or not a variable character exists in the mail message information quoted in step S14. If there is no variable character in the mail message information, the process proceeds to step S17, and if there is a variable character in the mail message information, the process proceeds to step S18. Here, in step S14, the registration number shown in FIG. Since the mail message information corresponding to 1 is quoted, the determination in step S15 is affirmative, and the process proceeds to step S16.

ステップS16において、コマンドメッセージ変換処理部12は、シリアルコマンド内の可変文字を、ステップS14にて引用したメールメッセージ情報における本文情報に組み込む。ここで、ステップS14にて「温度センサー(%1)は(%2)度、温度センサー(%3)は(%4)度」が引用され、シリアルコマンドのコマンド列「#R00001N02L」内の可変文字は(%1)(%3)であるので、「温度センサー(01)は(%2)度、温度センサー(02)は(%4)度」とする。   In step S16, the command message conversion processing unit 12 incorporates the variable characters in the serial command into the text information in the mail message information cited in step S14. Here, in step S14, “temperature sensor (% 1) is (% 2) degrees, temperature sensor (% 3) is (% 4) degrees” is quoted, and variable in the command string “# R00001N02L” of the serial command. Since the characters are (% 1) and (% 3), “temperature sensor (01) is (% 2) degrees and temperature sensor (02) is (% 4) degrees”.

次のステップS17において、コマンドメッセージ変換処理部12は、ステップS14にて引用したメールメッセージ情報中に文字列変換が存在するか否かを判定する。文字列変換が存在する場合にはステップS18に処理を進め、文字列変換が存在しない場合にはステップS19にてメールメッセージ情報を破棄する。ここで、シリアルコマンド内の%2、%4は文字列変換の必要があるので、ステップS18に処理を進めることを判定する。   In the next step S17, the command message conversion processing unit 12 determines whether or not character string conversion exists in the mail message information quoted in step S14. If character string conversion exists, the process proceeds to step S18. If character string conversion does not exist, the mail message information is discarded in step S19. Here, since% 2 and% 4 in the serial command need to be converted into character strings, it is determined that the process proceeds to step S18.

ステップS18において、コマンドメッセージ変換処理部12により文字列変換を行い、ステップS17にて正常に文字列変換が可能であったか否かを判定する。ここで、ステップS14にて「温度センサー(%1)は(%2)度、温度センサー(%3)は(%4)度」が引用され、シリアルコマンドのコマンド列「#R00001N02L」のうち、(%2)はNであるので変換文字は「正常」、(%4)はLであるので変換文字は「下限異常」となり、正常に文字列変換が可能であるので、ステップS20に処理を進めることになる。   In step S18, the command message conversion processing unit 12 performs character string conversion, and in step S17, it is determined whether or not the character string can be normally converted. Here, in step S14, “temperature sensor (% 1) is (% 2) degrees, temperature sensor (% 3) is (% 4) degrees” is quoted, and in the command string “# R00001N02L” of the serial command, Since (% 2) is N, the converted character is “normal”, and (% 4) is L, so the converted character is “lower limit abnormal”, and the character string can be converted normally. Will proceed.

次のステップS20において、コマンドメッセージ変換処理部12は、ステップS18にて変換した文字を、ステップS16にて可変文字が組み込まれたメールメッセージ情報の本文情報に組み込む。ここで、ステップS16においてメールメッセージ情報の本文情報が「温度センサー(01)は(%2)度、温度センサー(02)は(%4)度」とされたので、ステップS20において、コマンドメッセージ変換処理部12は、(%2)に「正常」、(%4)に「下限異常」を組み込み、「温度センサー(01)は(正常)、温度センサー(02)は(下限異常)」とする。   In the next step S20, the command message conversion processing unit 12 incorporates the characters converted in step S18 into the text information of the mail message information in which variable characters are incorporated in step S16. Here, since the text information of the mail message information is “(% 2) degrees for temperature sensor (01) and (% 4) degrees for temperature sensor (02)” in step S16, command message conversion is performed in step S20. The processing unit 12 incorporates “normal” in (% 2) and “lower limit error” in (% 4), and sets “temperature sensor (01) as (normal) and temperature sensor (02) as (lower limit error)”. .

次のステップS21において、メール通信部13は、ステップS20にて変換されたメールメッセージ情報の本文情報及び件名情報を含むメールメッセージ情報を送信する。これにより、このメールメッセージ情報は、ルータ3、インターネット網NT及びメールサーバ4を介して、遠隔操作用端末5に送信される。そして、遠隔操作用端末5では、メールメッセージ情報によってリクエストしたターゲット機器2の温度異常確認に対するレスポンスとして、「温度センサー(01)は(正常)、温度センサー(02)は(下限異常)」であることをユーザに提示することができる。   In the next step S21, the mail communication unit 13 transmits mail message information including the text information and subject information of the mail message information converted in step S20. Thereby, the mail message information is transmitted to the remote operation terminal 5 via the router 3, the Internet network NT and the mail server 4. In the remote operation terminal 5, “temperature sensor (01) is (normal), temperature sensor (02) is (lower limit abnormality)” as a response to the temperature abnormality confirmation of the target device 2 requested by the mail message information. This can be presented to the user.

なお、上述した図4を参照して、メールメッセージ情報を受信した時にターゲット機器2にリクエストコマンドを送信するためのシリアル通信変換装置1の処理説明を行い、上述した図5を参照して、ターゲット機器2からのレスポンスコマンドを受信した時にメールメッセージ情報を送信するシリアル通信変換装置1の処理説明を行ったが、ターゲット機器2から通知コマンドを受信した場合には図5と同様の処理を行って、ターゲット機器2の状態を表すメールメッセージ情報を生成して、メールサーバ4に送信することができる。   In addition, with reference to FIG. 4 mentioned above, the processing of the serial communication conversion apparatus 1 for transmitting a request command to the target device 2 when mail message information is received will be described. With reference to FIG. The processing of the serial communication conversion apparatus 1 that transmits mail message information when receiving a response command from the device 2 has been described. When a notification command is received from the target device 2, the same processing as in FIG. 5 is performed. The mail message information representing the state of the target device 2 can be generated and transmitted to the mail server 4.

[実施形態の効果]
以上説明したように、本発明を適用した監視制御システムによれば、シリアル通信変換装置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 communication conversion device 1, the mail message information is converted into a serial command, and the serial command is targeted. When the serial command is sent to the device 2 and acquired by the serial communication converter 1, the serial command is converted into mail message information and the mail message information is sent to the mail server 4, so only the serial interface 2a is provided. It is possible to control and monitor the target device 2 using the serial command via the mail server 4 only by connecting the target device 2 that is not present to the serial communication conversion device 1.

すなわち、ターゲット機器2がシリアルインターフェース2aしか備えず、汎用ネットワーク網であるインターネット網NTから見てスタンドアロン状態となっているターゲット機器2であっても、シリアル通信変換装置1によって、インターネット網NT及びメールサーバ4を介して遠隔操作用端末5から操作することができる。   In other words, even if the target device 2 includes only the serial interface 2a and is in a stand-alone state when viewed from the Internet network NT that is a general-purpose network, the serial communication conversion device 1 causes the Internet network NT and the mail. It can be operated from the remote operation terminal 5 via the server 4.

また、この監視制御システムによれば、シリアル通信変換装置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 communication conversion apparatus 1, and the mail message information and the message information are converted by the command message conversion processing unit 12 with reference to the conversion information tables 14A and 14B. Since serial commands can be converted into each other, the interface for monitoring and controlling the target device 2 should be user-friendly simply by registering mail message information that can be easily understood by the user in association with the serial command. Can do.

[第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 conversion processing unit 12 of the serial communication conversion device 1 includes a received message storage unit 12a. Different from the system.

この監視制御システムにおけるシリアル通信変換装置1は、メール通信部13によりメールメッセージ情報を受信した時に、コマンドメッセージ変換処理部12によって受信メッセージ記憶部12aに当該メールメッセージ情報を記録する。また、当該メールメッセージ情報から変換されたリクエストコマンドを、ターゲット機器2に対して送信する。そして、シリアル通信変換装置1は、受信メッセージ記憶部12aにメールメッセージ情報を記録している期間においては、ターゲット機器2からレスポンスコマンドを受信するまでは次のリクエストコマンドをターゲット機器2に対して送信しない。   When the serial communication conversion device 1 in this monitoring control system receives mail message information by the mail communication unit 13, the command message conversion processing unit 12 records the mail message information in the received message storage unit 12a. In addition, the request command converted from the mail message information is transmitted to the target device 2. The serial communication conversion device 1 transmits the next request command to the target device 2 until the response command is received from the target device 2 during the period when the mail message information is recorded in the received message storage unit 12a. do not do.

また、シリアル通信変換装置1は、メール通信部13によりメールメッセージ情報を受信して受信メッセージ記憶部12aに記憶させた時からの時間を計時し、レスポンスコマンドがターゲット機器2から返信されない場合には、エラー情報を含むメールメッセージ情報を、メールサーバ4を介して遠隔操作用端末5に送信する。   Further, the serial communication conversion device 1 measures the time from when the mail message information is received by the mail communication unit 13 and stored in the received message storage unit 12a, and when the response command is not returned from the target device 2. The mail message information including the error information is transmitted to the remote operation terminal 5 via the mail server 4.

「メールメッセージ情報受信時の動作」
上述したように構成された監視制御システムにおいて、遠隔操作用端末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 remote operation terminal 5 and the mail message information is received by the serial communication conversion device 1 will be described with reference to FIGS. I will explain.

シリアル通信変換装置1は、メールメッセージ情報を受信すると、第1実施形態と同様にステップS1〜ステップS5の処理を行い、ステップS4にて肯定判定がされると、ステップS31に処理を進める。   When the serial communication conversion device 1 receives the mail message information, the serial communication conversion device 1 performs the processing from step S1 to step S5 as in the first embodiment, and when an affirmative determination is made in step S4, the processing proceeds to step S31.

ステップS31において、コマンドメッセージ変換処理部12は、ステップS1にて受信したメールメッセージ情報のうち件名情報(subject)、本文情報を受信メッセージ記憶部12aに保存する。そして、コマンドメッセージ変換処理部12は、ステップS6〜ステップS8の処理を行ってシリアルコマンドを生成すると、ステップS32に処理を進める。   In step S31, the command message conversion processing unit 12 stores subject information (subject) and text information in the mail message information received in step S1 in the received message storage unit 12a. Then, when the command message conversion processing unit 12 performs the processes of Steps S6 to S8 to generate a serial command, the process proceeds to Step S32.

ステップS32において、シリアル通信部11により、現在においてターゲット機器2に対してリクエストコマンドを送信中ではないか否かを判定する。リクエストコマンドを送信中である場合にはステップS33に処理を進め、リクエストコマンドを送信中ではない場合にはステップS9に処理を進める。   In step S32, the serial communication unit 11 determines whether a request command is currently being transmitted to the target device 2. If the request command is being transmitted, the process proceeds to step S33. If the request command is not being transmitted, the process proceeds to step S9.

ステップ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 target device 2. That is, since the target device 2 is not currently executing processing for the request command, the target device 2 transmits a request command for new monitoring and control to the target device 2. Substantially simultaneously, in step S34, the command message conversion processing unit 12 sets a response reception timer for measuring the recording time of the received message storage unit 12a to a predetermined threshold value. As a result, the serial communication conversion device 1 can start a countdown from when the request command is transmitted until the error information is transmitted to the remote operation terminal 5.

一方、ステップS33において、シリアル通信部11は、リクエストコマンドをシリアル送信バッファに保存して処理を終了する。このシリアル送信バッファは、シリアル通信部11に標準的に内蔵されている機能である。   On the other hand, in step S33, the serial communication unit 11 stores the request command in the serial transmission buffer and ends the process. This serial transmission buffer is a function built in the serial communication unit 11 as standard.

また、シリアル通信変換装置1は、ステップS34にてレスポンス受信タイマーをセットした後に、所定期間ごとに図8に示す処理を行う。なお、以下の処理は、コマンドメッセージ変換処理部12にて行うこととしているが、別個のモジュールにより実現しても良いことは勿論である。   Further, after setting the response reception timer in step S34, the serial communication conversion device 1 performs the process shown in FIG. 8 every predetermined period. The following processing is performed by the command message conversion processing unit 12, but it is needless to say that it may be realized by a separate module.

ステップS41において、コマンドメッセージ変換処理部12は、ステップS34にてセットしたレスポンス受信タイマーがタイムアウトしたか否かを判定する。レスポンス受信タイマーがタイムアウトしていない場合には所定時間後に再判定を行い、レスポンス受信タイマーがタイムアウトした場合にはステップS42に処理を進める。   In step S41, the command message conversion processing unit 12 determines whether or not the response reception timer set in step S34 has timed out. If the response reception timer has not timed out, re-determination is performed after a predetermined time. If the response reception timer has timed out, the process proceeds to step S42.

ステップS42において、コマンドメッセージ変換処理部12は、受信メッセージ記憶部12aに保存された最も記録時刻が古いメールメッセージ情報を読み出す。   In step S42, the command message conversion processing unit 12 reads out the mail message information with the oldest recording time stored in the received message storage unit 12a.

次のステップS43において、コマンドメッセージ変換処理部12は、エラー情報を含むメールメッセージ情報を作成する。この時、コマンドメッセージ変換処理部12は、例えば、件名情報として「Re:(受信メッセージ記憶部12aに保存された件名情報)」、本文情報として「ターゲット機器のリクエストに失敗しました。(以下受信メッセージ記憶部12aに保存された本文情報)」をエラー情報として含むメールメッセージ情報を作成する。   In the next step S43, the command message conversion processing unit 12 creates mail message information including error information. At this time, the command message conversion processing unit 12, for example, “Re: (subject information stored in the received message storage unit 12a)” as the subject information and “target device request failed as the body information. Mail message information including “text information stored in the message storage unit 12a)” as error information is created.

次のステップS45において、メール通信部13は、ステップS44にて作成されたメールメッセージ情報をメールサーバ4に送信する。これにより、エラー情報を含むメールメッセージ情報は、メールサーバ4によって転送されて、遠隔操作用端末5に受信され、遠隔操作用端末5によって、リクエストコマンドに対するエラー情報を提示することができる。   In the next step S <b> 45, the mail communication unit 13 transmits the mail message information created in step S <b> 44 to the mail server 4. Thus, the mail message information including the error information is transferred by the mail server 4 and received by the remote operation terminal 5, and the error information for the request command can be presented by the remote operation terminal 5.

次のステップS46において、コマンドメッセージ変換処理部12により、シリアル通信部11のシリアル送信バッファにリクエストコマンドが有るか否かを判定する。シリアル送信バッファにリクエストコマンドがある場合にはステップS47に処理を進め、ない場合には処理を終了する。   In the next step S46, the command message conversion processing unit 12 determines whether or not there is a request command in the serial transmission buffer of the serial communication unit 11. If there is a request command in the serial transmission buffer, the process proceeds to step S47, and if not, the process ends.

ステップS47において、コマンドメッセージ変換処理部12は、ターゲット機器2に対して、シリアル送信バッファに保存されていたリクエストコマンドを送信する。   In step S47, the command message conversion processing unit 12 transmits the request command stored in the serial transmission buffer to the target device 2.

次のステップS48において、コマンドメッセージ変換処理部12は、レスポンス受信タイマーをセットする。   In the next step S48, the command message conversion processing unit 12 sets a response reception timer.

このように、シリアル通信変換装置1は、レスポンス受信タイマーがタイムアウトした時には、エラー情報を含むメールメッセージ情報を送信し、既にシリアル送信バッファにリクエストコマンドが保存されている場合には当該リクエストコマンドを送信してレスポンス受信タイマーをセットすることができる。   As described above, the serial communication conversion device 1 transmits the mail message information including the error information when the response reception timer times out, and transmits the request command when the request command is already stored in the serial transmission buffer. The response reception timer can be set.

「シリアルコマンド受信時の動作」
つぎに、第2実施形態として示す監視制御システムにおいて、シリアル通信変換装置1によりシリアルコマンドを受信した時の処理を図9を参照して説明する。
"Operation when receiving serial command"
Next, processing when a serial command is received by the serial communication conversion device 1 in the monitoring control system shown as the second embodiment will be described with reference to FIG.

シリアルコマンドを受信した時には、第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 conversion processing unit 12 refers to the serial command type information received in step S11, and determines whether or not the received serial command type is a response. If the type of serial command is response, the process proceeds to step S52. If not, the process proceeds to step S21 to send mail message information.

ステップS52において、コマンドメッセージ変換処理部12は、レスポンス受信タイマーをリセットする。これにより、リクエストコマンドに対するレスポンスコマンドの送出できる場合には、エラー情報を送信することを禁止する。   In step S52, the command message conversion processing unit 12 resets the response reception timer. This prohibits sending error information when a response command to the request command can be sent.

ステップS53において、コマンドメッセージ変換処理部12は、受信メッセージ記憶部12aに保存された最も記録時刻が古いメールメッセージ情報を読み出す。   In step S53, the command message conversion processing unit 12 reads the mail message information with the oldest recording time stored in the received message storage unit 12a.

次のステップS54において、コマンドメッセージ変換処理部12は、ステップS20にて作成したメールメッセージ情報の本文情報に、当該レスポンスコマンドの内容を含むメールメッセージ情報を作成する元となった、遠隔操作用端末5からのリクエストメールメッセージ情報の本文情報を付加する。   In the next step S54, the command message conversion processing unit 12 creates the mail message information including the content of the response command in the body information of the mail message information created in step S20. The body information of the request mail message information from 5 is added.

例えば第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 conversion processing unit 12 determines whether or not there is a request command in the serial transmission buffer of the serial communication unit 11. If there is a request command in the serial transmission buffer, the process proceeds to step S56, and if not, the process proceeds to step S21 to transmit the mail message information.

ステップS56において、コマンドメッセージ変換処理部12は、ターゲット機器2に対して、シリアル送信バッファに保存されていたリクエストコマンドを送信する。   In step S56, the command message conversion processing unit 12 transmits the request command stored in the serial transmission buffer to the target device 2.

次のステップS57において、コマンドメッセージ変換処理部12は、レスポンス受信タイマーをセットし、ステップS21にてメールメッセージ情報を送信する。   In the next step S57, the command message conversion processing unit 12 sets a response reception timer, and transmits mail message information in step S21.

これにより、シリアル通信変換装置1は、第1実施形態の例を用いれば、
件名情報(subject):温度異常確認の応答
本文情報:温度センサー01は正常、温度センサー02は下限異常です。
>現在の温度状況は?
というメールメッセージ情報を送信することができる。
Thereby, if the serial communication converter 1 uses the example of 1st Embodiment,
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 remote operation terminal 5 and creating the response mail message information for the request mail message information, Information indicating a response to the request mail message information can be included in the response mail message information. For example, the text information of the request mail message information can be added to the text information of the response mail message information.

これにより、例えば災害時などにおいてターゲット機器2から発せられる警報としての通知コマンドが頻発している場面であっても、リクエストメールメッセージ情報とレスポンスメールメッセージ情報との関連が分かるように遠隔操作用端末5にレスポンスを通知することができる。これにより、遠隔操作用端末5のユーザにとっては、どのリクエストメールメッセージ情報に対してレスポンスメールメッセージ情報が送信されたかを明確に知ることができ、ターゲット機器2の制御結果を簡単に知ることができる。   Thus, for example, even in a scene where a notification command as an alarm issued from the target device 2 frequently occurs at the time of a disaster or the like, the remote operation terminal so that the relation between the request mail message information and the response mail message information can be understood 5 can be notified of the response. Thereby, it is possible for the user of the remote operation terminal 5 to clearly know to which request mail message information the response mail message information has been transmitted, and to easily know the control result of the target device 2. .

[第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 remote operation terminal 5 such as the mobile phone 5a or the personal computer 5b that is remote from the target device 2. Register information and change information. Specifically, the serial communication conversion device 1 registers a command message as a registration processing means for registering and changing information in the conversion information tables 14A and 14B based on the mail message information received by the serial communication conversion device 1. The processing unit 15 is operated.

コマンドメッセージ登録処理部15は、遠隔操作用端末5から送信された変換情報テーブル14A,14Bの設定メールメッセージが、メール通信部13を介して供給される。これに応じて、コマンドメッセージ登録処理部15は、受信した変換情報テーブル14A,14Bの設定メールメッセージに基づいて、変換情報テーブル14A,14Bの内容を設定する。そして、この変換情報テーブル14A,14Bの設定が完了すると、変換情報テーブルの設定メールメッセージを送信した遠隔操作用端末5に対して、変換情報テーブルの設定応答メールメッセージを送信する。   The command message registration processing unit 15 is supplied with the setting mail message of the conversion information tables 14 </ b> A and 14 </ b> B transmitted from the remote operation terminal 5 via the mail communication unit 13. In response to this, the command message registration processing unit 15 sets the contents of the conversion information tables 14A and 14B based on the received setting mail message of the conversion information tables 14A and 14B. When the settings of the conversion information tables 14A and 14B are completed, the conversion information table setting response mail message is transmitted to the remote operation terminal 5 that has transmitted the conversion information table setting mail 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 registration processing unit 15, specific mail message information as shown in FIG. 11 is used. According to the mail message information of FIG. 11, specific subject information (subject) and text information are defined for each operation type for the conversion information tables 14A and 14B, and stored so that the command message conversion processing unit 12 can refer to them. ing. Examples of the operation type include reading, addition, change, and deletion of the conversion information tables 14A and 14B.

変換情報テーブル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 registration processing unit 15 receives the mail message information for operating the conversion information tables 14A and 14B, whether the subject information and the text information correspond to the subject information and the text information defined by FIG. to decide. When the subject information and the text information defined by FIG. 11 are applicable, the process described in the “description column” corresponding to the subject information and the text information is performed, and “the text content of the response mail” is performed. Is created and transmitted to the remote operation terminal 5. Here, the subject information of the mail message information is obtained by adding “Re:” to the subject information of the mail message information transmitted from the remote operation terminal 5.

第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 remote operation terminal 5 and presented to the user in a predetermined layout.

このように監視制御システムによれば、シリアル通信変換装置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 communication conversion device 1. Information in the information tables 14A and 14B can be added remotely.

なお、上述の実施の形態は本発明の一例である。このため、本発明は、上述の実施形態に限定されることはなく、この実施の形態以外であっても、本発明に係る技術的思想を逸脱しない範囲であれば、設計等に応じて種々の変更が可能であることは勿論である。   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実施形態として示す監視制御システムのブロック図である。It is a block diagram of a supervisory control system shown as a 1st embodiment of the present invention. 本発明の第1実施形態として示す監視制御システムにおいて、シリアル通信変換装置の内部構成を示すブロック図である。1 is a block diagram showing an internal configuration of a serial communication conversion device in a monitoring control system shown as a first embodiment of the present invention. (a)は、メールメッセージ情報からシリアルコマンドを生成する第1変換情報テーブルを示し、(b)は、シリアルコマンドからメールメッセージ情報を生成する第2変換情報テーブルを示す。(A) shows the 1st conversion information table which produces | generates a serial command from mail message information, (b) shows the 2nd conversion information table which produces | generates mail message information from a serial command. 本発明の第1実施形態として示す監視制御システムにおいて、メールメッセージ情報を受信したことに対してシリアルコマンドを送信するシリアル通信変換装置の処理手順を示すフローチャートである。4 is a flowchart showing a processing procedure of a serial communication conversion apparatus that transmits a serial command in response to reception of mail message information in the monitoring control system shown as the first embodiment of the present invention. 本発明の第1実施形態として示す監視制御システムにおいて、シリアルコマンドを受信したことに対してメールメッセージ情報を送信するシリアル通信変換装置の処理手順を示すフローチャートである。4 is a flowchart showing a processing procedure of a serial communication conversion apparatus that transmits mail message information in response to reception of a serial command in the monitoring control system shown as the first embodiment of the present invention. 本発明の第2実施形態として示す監視制御システムにおいて、シリアル通信変換装置の内部構成を示すブロック図である。In the supervisory control system shown as 2nd Embodiment of this invention, it is a block diagram which shows the internal structure of a serial communication converter. 本発明の第2実施形態として示す監視制御システムにおいて、メールメッセージ情報を受信したことに対してシリアルコマンドを送信するシリアル通信変換装置の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the serial communication conversion apparatus which transmits a serial command with respect to having received mail message information in the monitoring control system shown as 2nd Embodiment of this invention. 本発明の第2実施形態として示す監視制御システムにおいて、レスポンス受信タイマーを監視するシリアル通信変換装置の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the serial communication converter which monitors a response reception timer in the monitoring control system shown as 2nd Embodiment of this invention. 本発明の第2実施形態として示す監視制御システムにおいて、シリアルコマンドを受信したことに対してメールメッセージ情報を送信するシリアル通信変換装置の処理手順を示すフローチャートである。In the supervisory control system shown as 2nd Embodiment of this invention, it is a flowchart which shows the process sequence of the serial communication converter which transmits mail message information with respect to having received the serial command. 本発明の第3実施形態として示す監視制御システムのブロック図である。It is a block diagram of the supervisory control system shown as 3rd Embodiment of this invention. 本発明の第3実施形態として示すシリアル通信変換装置において、変換情報テーブルを操作するためのメールメッセージ情報を示す図である。It is a figure which shows the mail message information for operating the conversion information table in the serial communication converter shown as 3rd Embodiment of this invention. 第1変換情報テーブルを簡易言語で表した図である。It is the figure which represented the 1st conversion information table in the simple language. 第2変換情報テーブルを簡易言語で表した図である。It is the figure which represented the 2nd conversion information table in the simple language.

符号の説明Explanation of symbols

1 シリアル通信変換装置
1a シリアルインターフェース
1b LANインターフェース
2 ターゲット機器
2a シリアルインターフェース
3 ルータ
4 メールサーバ
5 遠隔操作用端末
5a 携帯電話
5b パーソナルコンピュータ
6 設定用端末
11 シリアル通信部
12 コマンドメッセージ変換処理部
12a 受信メッセージ記憶部
13 メール通信部
14A 第1変換情報テーブル
14B 第2変換情報テーブル
15 コマンドメッセージ登録処理部
16 メールアカウント情報登録処理部
DESCRIPTION OF SYMBOLS 1 Serial communication converter 1a Serial interface 1b LAN interface 2 Target apparatus 2a Serial interface 3 Router 4 Mail server 5 Remote operation terminal 5a Mobile phone 5b Personal computer 6 Setting terminal 11 Serial communication part 12 Command message conversion process part 12a Reception message Storage unit 13 Mail communication unit 14A First conversion information table 14B Second conversion information table 15 Command message registration processing unit 16 Mail account information registration processing unit

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.
前記変換処理手段は、前記対象機器へのリクエストを示す前記メッセージ情報を受信して前記監視制御コマンドを前記対象機器に送信し、当該対象機器から当該リクエストへのレスポンスとしての監視制御コマンドを受信してメッセージ情報に変換する際に、当該メッセージ情報に、前記リクエストを示すメッセージ情報のレスポンスであることを示す情報を含めることを特徴とする請求項1又は請求項2に記載のシリアル通信変換装置。   The conversion processing means receives the message information indicating a request to the target device, transmits the monitoring control command to the target device, and receives a monitoring control command as a response to the request from the target device. 3. The serial communication conversion device according to claim 1, wherein the message information includes information indicating that it is a response to the message information indicating the request. 前記メール通信手段により受信した前記メッセージ情報に基づいて、前記メッセージ情報と前記監視制御コマンドとを対応づける情報を前記変換情報テーブルに登録する登録処理手段を備えることを特徴とする請求項2に記載のシリアル通信変換装置。   The registration processing means for registering, in the conversion information table, information associating the message information with the monitoring control command based on the message information received by the mail communication means. Serial communication converter. 所定のシリアル通信方式により通信を行う対象機器と、
メッセージ情報の授受を行うメールサーバと、
前記複数の対象機器及び前記メールサーバと通信が可能とされるシリアル通信変換装置と、
前記メールサーバを介して、前記シリアル通信変換装置との間でメッセージ情報の授受を行う遠隔操作用端末とを備え、
前記シリアル通信変換装置は、
前記メールサーバとメッセージ情報の通信を行うメール通信手段と、
前記対象機器と接続され、当該対象機器との間で、当該対象機器に対する監視又は制御を行う監視制御コマンドのシリアル通信を行うシリアル通信手段と、
前記メール通信手段により前記メッセージ情報を取得した場合に前記監視制御コマンドを生成する変換処理と、前記シリアル通信手段により前記監視制御コマンドを取得した場合に前記メッセージ情報を生成する変換処理とを行う変換処理手段とを備え、
前記メール通信手段が前記メッセージ情報を取得した場合に、当該メッセージ情報を前記変換処理手段により前記監視制御コマンドに変換して、当該監視制御コマンドを前記シリアル通信手段によって前記対象機器に送出し、
前記シリアル通信手段が前記監視制御コマンドを取得した場合に、当該監視制御コマンドを前記変換処理手段により前記メッセージ情報に変換して、当該メッセージ情報を前記メール通信手段によって前記メールサーバに送出すること
を特徴とする監視制御システム。
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.
JP2008325494A 2008-12-22 2008-12-22 Serial communication conversion apparatus, monitor and control system Pending JP2010147994A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018074301A (en) * 2016-10-26 2018-05-10 サイレックス・テクノロジー株式会社 Conversion device and control method of the same

Cited By (1)

* Cited by examiner, † Cited by third party
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