JP2008228093A - Relay apparatus and communication control program - Google Patents
Relay apparatus and communication control program Download PDFInfo
- Publication number
- JP2008228093A JP2008228093A JP2007065698A JP2007065698A JP2008228093A JP 2008228093 A JP2008228093 A JP 2008228093A JP 2007065698 A JP2007065698 A JP 2007065698A JP 2007065698 A JP2007065698 A JP 2007065698A JP 2008228093 A JP2008228093 A JP 2008228093A
- Authority
- JP
- Japan
- Prior art keywords
- connection terminal
- information
- request information
- connection
- input
- 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
Abstract
Description
この発明は、中継装置に係り、特に、コネクションを確立することにより互いに連携して動作する第1機器及び第2機器の間に介在する中継装置及び当該中継装置を制御する通信制御プログラムに関する。 The present invention relates to a relay device, and more particularly, to a relay device interposed between a first device and a second device that operate in cooperation with each other by establishing a connection, and a communication control program for controlling the relay device.
従来、起動時にコネクションを確立して各種の情報を交換することにより複数の機器が連携して動作するシステムがある。例えば、複合機とコインキットを接続して、コピーを行う毎に課金を行うシステムや、複合機とICカードリーダを接続して、コピーを行う際にICカードの認証を行うシステムなどがある。 Conventionally, there is a system in which a plurality of devices operate in cooperation by establishing a connection at startup and exchanging various types of information. For example, there are a system in which a multifunction device and a coin kit are connected and charged each time copying is performed, and a system in which a multifunction device and an IC card reader are connected and IC card authentication is performed when copying is performed.
この種のシステムでは、起動時に複合機がコインキットやICカードリーダが接続されているかの問い合わせを行い、正常に応答を得られた場合に正常に起動し、応答が異常な場合や応答が得られない場合、エラーとなる。 In this type of system, the MFP inquires whether a coin kit or IC card reader is connected at startup, and starts normally when a response is obtained normally. Otherwise, an error occurs.
なお、関連技術として、特許文献1には、画像処理装置の機能を拡張するために情報処理装置を接続した画像処理システムが開示されている。
ところで、複合機の外部機器と通信するために提供しているインタフェースにパーソナル・コンピュータ(以下「PC」ともいう。)等の外部機器に接続してPCを複合機と連携して動作させるものとした場合、PCは汎用性が高いため、機能の拡張性が高くなる。 By the way, an interface provided to communicate with an external device of the multifunction device is connected to an external device such as a personal computer (hereinafter also referred to as “PC”) and the PC is operated in cooperation with the multifunction device. In this case, since the PC is highly versatile, the expandability of the function is high.
しかしながら、複合機とPCを同時に電源を投入した場合、一般的にPCの方が複合機よりも起動開始から通信可能な状態となるまでの起動時間が長い。このため、PCが複合機からの起動時のコネクションの確立の要求に答えられず、起動時にエラーが発生する場合がある、という問題点があった。 However, when the multifunction device and the PC are turned on at the same time, in general, the PC takes longer to start communication than the multifunction device until it becomes communicable. For this reason, there has been a problem in that the PC cannot answer the connection establishment request from the multifunction device and an error may occur at the time of startup.
本発明は上記問題点を解決するためになされたものであり、起動時のエラーの発生を防止することができる中継装置及び通信制御プログラムを提供することを目的とする。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a relay device and a communication control program that can prevent the occurrence of an error at startup.
上記目的を達成するため、請求項1に記載の発明は、コネクションを確立することにより互いに連携して動作する第1機器、及び第2機器の間に介在され、前記第1機器と電気的に接続されて前記第1機器からコネクションの確立を要求する要求情報が入力される第1接続端子と、前記第2機器と電気的に接続された第2接続端子と、前記第1接続端子に前記要求情報が入力された場合に、前記第2接続端子を介して前記第2機器が通信可能な状態であるか否かを判定する判定手段と、前記判定手段により通信不可能な状態であると判定された場合に、前記要求情報に対する応答情報を前記第1接続端子から前記第1機器へ送信するように制御する制御手段と、を備えている。
In order to achieve the above object, the invention described in
請求項1に記載の中継装置は、コネクションを確立することにより互いに連携して動作する第1機器、及び第2機器の間に介在されており、第1接続端子により、第1機器と電気的に接続されて第1機器からコネクションの確立を要求する要求情報が入力され、第2接続端子により、第2機器と電気的に接続されている。
The relay device according to
そして、本発明では、判定手段により、第1接続端子に要求情報が入力された場合に、第2接続端子を介して第2機器が通信可能な状態であるか否かが判定され、制御手段により、判定手段により通信不可能な状態であると判定された場合に、要求情報に対する応答情報が第1接続端子から第1機器へ送信されるように制御される。 In the present invention, when the request information is input to the first connection terminal by the determination means, it is determined whether or not the second device is communicable via the second connection terminal, and the control means Thus, when the determination unit determines that communication is impossible, control is performed such that response information for the request information is transmitted from the first connection terminal to the first device.
このように請求項1記載の発明によれば、起動時にコネクションの確立を要求する要求情報を出力する第1機器から第1接続端子に要求情報が入力された場合に、第2機器と電気的に接続された第2接続端子を介して第2機器が通信可能な状態であるか否かを判定し、通信不可能な状態であると判定された場合に、要求情報に対する応答情報を第1接続端子から第1機器へ送信するように制御しているので、起動時のエラーの発生を防止することができる。 Thus, according to the first aspect of the present invention, when the request information is input to the first connection terminal from the first device that outputs the request information for requesting establishment of the connection at the time of activation, the second device is electrically connected to the second device. It is determined whether or not the second device is in a communicable state via the second connection terminal connected to the terminal, and when it is determined that the second device is incapable of communication, response information for the request information is first Since control is performed so as to transmit from the connection terminal to the first device, it is possible to prevent the occurrence of an error during startup.
なお、本発明は、請求項2記載のように、前記第1機器が前記第2機器とコネクションを確立する際に必要な前記第2機器に関する情報を予め記憶した記憶手段と、前記記憶手段に記憶された情報に基づいて前記要求情報に対する応答情報を生成する生成手段と、をさらに備え、前記制御手段が、前記生成手段により生成された応答情報を送信するように制御してもよい。 According to a second aspect of the present invention, the storage device stores in advance information related to the second device that is necessary when the first device establishes a connection with the second device. Generation means for generating response information for the request information based on the stored information, and the control means may be controlled to transmit the response information generated by the generation means.
また、本発明は、請求項3記載のように、前記判定手段により通信可能な状態であると判定された場合に、前記要求情報を記憶する要求情報記憶手段をさらに備え、前記制御手段が、前記第2接続端子に前記第2機器から送信要求情報が入力された場合に、前記要求情報記憶手段に記憶された前記要求情報を前記第2接続端子から前記第2機器に対して送信するように制御してもよい。
The present invention further includes request information storage means for storing the request information when the determination means determines that communication is possible, as defined in
また、請求項1から請求項3の発明は、請求項4記載のように、前記第2接続端子が、複数の信号線により構成されると共に、所定の信号線の電圧レベルが前記第2機器が通信可能な状態であるか否かによって変化し、前記判定手段が、前記所定の信号線の電圧レベルに基づいて前記第2機器が通信可能な状態であるか否かを判定してもよい。 According to a first to third aspect of the present invention, as in the fourth aspect, the second connection terminal is composed of a plurality of signal lines, and a voltage level of a predetermined signal line is the second device. The determination unit may determine whether the second device is in a communicable state based on the voltage level of the predetermined signal line. .
また、請求項1から請求項3の発明は、請求項5記載のように、前記判定手段が、前記第2接続端子から前記第2機器に対して状態を問い合わせる問合情報を送信し、当該問合情報に対する応答情報に基づいて前記第2機器が通信可能な状態であるか否かを判定してもよい。
Further, in the invention of
一方、上記目的を達成するために、請求項6記載の発明は、コネクションを確立することにより互いに連携して動作する機器であり、起動時にコネクションの確立を要求する要求情報を出力する第1機器、及び起動開始から通信可能な状態となるまでの起動時間が前記第1機器に比較して長い第2機器の間に介在する中継装置により実行される通信制御プログラムであって、前記第1機器と電気的に接続されて前記第1機器から前記要求情報が入力される第1接続端子に前記要求情報が入力した場合に、前記第2機器と電気的に接続された第2接続端子を介して前記第2機器が通信可能な状態であるか否かを判定する判定ステップと、前記判定ステップにより通信不可能な状態であると判定された場合に、前記要求情報に対する応答情報を前記第1接続端子から前記第1機器へ送信するように制御する制御ステップと、を含んでいる。
On the other hand, in order to achieve the above object, the invention described in
よって、請求項6に記載の発明は、コンピュータに対して請求項1に記載の発明と同様に作用させることができるので、起動時のエラーの発生を防止することができる。
Therefore, since the invention described in
以上説明したように、本発明によれば、起動時にコネクションの確立を要求する要求情報を出力する第1機器から第1接続端子に要求情報が入力された場合に、第2機器と電気的に接続された第2接続端子を介して第2機器が通信可能な状態であるか否かを判定し、通信不可能な状態であると判定された場合に、要求情報に対する応答情報を第1接続端子から第1機器へ送信するように制御しているので、起動時のエラーの発生を防止することができる、という優れた効果が得られる。 As described above, according to the present invention, when request information is input to the first connection terminal from the first device that outputs request information for requesting establishment of a connection at the time of activation, the second device is electrically connected. It is determined whether or not the second device is in a communicable state via the connected second connection terminal. If it is determined that the second device is incapable of communication, response information for the request information is first connected. Since control is performed so as to transmit from the terminal to the first device, it is possible to obtain an excellent effect of preventing the occurrence of an error at the time of activation.
以下、図面を参照して、本発明の実施の形態について詳細に説明する。なお、以下では、本発明を複合機とPCを接続し、PCにICカードリーダを設けてICカードの認証を行うシステムの場合について説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following, the present invention will be described with respect to a system in which an MFP is connected to a PC and an IC card reader is provided on the PC to authenticate the IC card.
図1に示されるように、本実施の形態に係るシステムは、複合機10と、中継装置12と、PC14と、を備えており、複合機10とPC14との間に中継装置12が介在している。
As shown in FIG. 1, the system according to the present embodiment includes a
本実施の形態に係る複合機10は、所定の読込位置に載置された記録用紙から画像を読み込み、当該画像を示す画像データを取得するスキャナ22と、電子写真方式にて記録用紙上への画像の印刷を行う印刷エンジン部24と、コピー操作などの各種の操作指示が入力される操作ボタンが設けられた操作パネル26と、外部機器とシリアル通信を行うための接続端子28と、を備えている。
The
なお、本実施の形態に係る接続端子28は、RS232C規格に対応したコネクタ形状がD−Sub9pinのものとされている。接続端子28には、他端が中継装置12に接続されたケーブル29Aの一端が接続されている。
The
また、複合機10は、装置全体の動作を司るCPU(中央処理装置)30と、制御プログラムを含む各種プログラム等が予め記憶されたROM32と、各種データを一時的に記憶するRAM34と、各種データを記憶して保持するHDD(ハード・ディスク・ドライブ)36と、操作パネル26に設けられた操作ボタンに対する操作状態を検出する操作入力検出部38と、スキャナ22による光学的な画像の読み取りを制御するスキャナドライバ40と、前述した印刷エンジン部24の作動を制御する印刷エンジン制御部42と、接続端子28に接続され、接続端子28を介した中継装置12との間のデータを送受信を制御する通信制御部44と、を備えている。
The
CPU30、ROM32、RAM34、HDD36、操作入力検出部38、スキャナドライバ40、印刷エンジン制御部42、及び通信制御部44は、システムバスBUS1を介して相互に接続されている。従って、CPU30は、ROM32、RAM34、HDD36へのアクセスを行うことができると共に、スキャナドライバ40を介したスキャナ22の作動の制御、印刷エンジン制御部42を介した印刷エンジン部24の作動の制御、及び通信制御部44を介した中継装置12とのデータの送受信の制御、を各々行うことができる。また、CPU30は、操作入力検出部38を介して操作パネル26に設けられた操作ボタンに対するユーザの操作状態を把握することができる。
The
一方、中継装置12は、外部機器とシリアル通信を行うための第1接続端子52A及び第2接続端子52Bを備えている。
On the other hand, the
なお、本実施の形態に係る第1接続端子52A及び第2接続端子52Bも、RS232C規格に対応したコネクタ形状がD−Sub9pinのものとされている。第1接続端子52Aには、ケーブル29Aの他端が接続され、第2接続端子52Bには、他端がPC14に接続されたケーブル29Bの一端が接続されており、本実施の形態に係る中継装置12は、ケーブル29Aを介して複合機10から電力が供給されるものとされている。
The
また、中継装置12は、装置全体の動作を司るCPU56と、通信制御プログラムを含む各種プログラム等が予め記憶されたROM58と、各種データを一時的に記憶するRAM60と、各種データを記憶する不揮発性メモリ62と、第1接続端子52Aに接続され、第1接続端子52Aを介した複合機10との間のデータを送受信を制御する第1通信制御部64と、第2接続端子52Bに接続され、第2接続端子52Bを介したPC14との間のデータを送受信を制御する第2通信制御部66と、を備えている。
The
CPU56、ROM58、RAM60、不揮発性メモリ62、第1通信制御部64及び第2通信制御部66は、システムバスBUS2を介して相互に接続されている。従って、CPU56は、ROM58、RAM60、不揮発性メモリ62へのアクセスを行うことができると共に、第1通信制御部64を介した複合機10とのデータの送受信の制御、及び第2通信制御部66を介したPC14とのデータの送受信の制御、を各々行うことができる。
The
一方、PC14は、操作メニューやメッセージ等を表示するディスプレイ70と、ユーザからの各種の操作指示が入力されるキーボード72と、外部機器とシリアル通信を行うための接続端子74と、ICカードの読み取りを行うICカードリーダ76と、を備えている。
On the other hand, the PC 14 displays a
なお、本実施の形態に係る接続端子74も、RS232C規格に対応したコネクタ形状がD−Sub9pinのものとされている。接続端子74には、ケーブル29Bの他端が接続されている。
Note that the
また、PC14は、装置全体の動作を司るCPU80と、制御プログラムを含む各種プログラム等が予め記憶されたROM82と、各種データを一時的に記憶するRAM84と、各種データを記憶して保持するHDD86と、ディスプレイ70への各種情報の表示を制御するディスプレイドライバ88と、キーボード72に対する操作状態を検出する操作入力検出部90と、ネットワーク16に接続され、当該ネットワーク16に接続された図示しないサーバ装置との間で通信データの送受信を行うネットワークI/F(インタフェース)部92と、接続端子74に接続され、接続端子74を介した中継装置12との間のデータを送受信を制御する通信制御部94と、ICカードリーダ76によるICカードの読み取りを制御するカードリーダ制御部96と、を備えている。
The
CPU80、ROM82、RAM84、HDD86、ディスプレイドライバ88、操作入力検出部90、ネットワークI/F部92、通信制御部94、及びカードリーダ制御部96は、システムバスBUS3を介して相互に接続されている。従って、CPU80は、ROM82、RAM84、HDD86へのアクセスを行うことができると共に、ディスプレイドライバ88を介したディスプレイ70への各種情報の表示の制御、ネットワークI/F部92を介したネットワーク16に接続された図示しないサーバ装置とのデータの送受信の制御、通信制御部94を介した中継装置12とのデータの送受信の制御、及びカードリーダ制御部96を介したICカードリーダ76によるICカードの読み取りの制御、を行うことができる。また、CPU80は、操作入力検出部90を介してキーボード72に対するユーザの操作状態を把握することができる。
The
次に、本実施の形態に係るシステムの作用を説明する。 Next, the operation of the system according to the present embodiment will be described.
本実施の形態に係る複合機10は、操作パネル26にコピーを指示する操作ボタンが設けられており、当該操作ボタンが指定された場合、CPU30がスキャナドライバ40を介してスキャナ22を制御してスキャナ22によって所定の読込位置に載置された原稿画像を読み込ませ、印刷エンジン制御部42を介して印刷エンジン部24を制御して読み込んだ原稿画像を記録用紙に印刷させることにより、コピーを行うことが可能とされている。また、本実施の形態に係る複合機10は、接続端子28に入力されるコピー実施制御情報に基づいて、コピー動作の許可/不許可が制御されるものとされている。複合機10は、コピー動作の不許可を示すコピー実施制御情報が入力された場合、操作パネル26への操作に関わらずコピーが禁止され、接続端子28に許可情報が入力された場合、所定期間の間、操作パネル26への操作に応じてコピーを行うことが可能となる。
The
また、複合機10は、コピーを行った場合、コピーを行った用紙の種別や枚数を示す印刷情報や、コピーを行った際にエラーが発生した場合のエラー情報を接続端子28より出力する。また、複合機10は、印刷エンジン部24に設けられたトナーカートリッジに充填されたトナーの量が所定量以下になると、トナーの補給を要求するトナー補給要求情報を接続端子28より出力する。
In addition, when copying, the
一方、本実施の形態に係るPC14は、複合機10でコピーを許可するICカードを示す許可カード情報をHDD86に予め記憶している。
On the other hand, the
PC14は、起動する際に、コピー動作の不許可を示すコピー実施制御情報を接続端子74より出力する。また、PC14は、ICカードリーダ76にICカードがかざされて読み取ったICカードのカード情報が、HDD86に記憶された許可カード情報に登録されたものである場合に、コピー動作の許可を示すコピー実施制御情報を接続端子74より出力し、許可カード情報に登録されたものでない場合に、コピー動作の不許可を示すコピー実施制御情報を接続端子74より出力する。
When the
さらに、PC14は、接続端子74に入力される印刷情報やエラー情報、トナー補給要求情報をHDD86に記憶し、定期的に、HDD86に記憶した各情報をネットワークI/F部92を介してネットワーク16上の、図示しない保守センタに設けられたサーバ装置に送信する。これにより、保守センタでは、送信された印刷情報やエラー情報、トナー補給要求情報等に基づいて複合機10のメンテナンスを行うメンテナンス要員を派遣する。
Further, the
このように、本実施の形態に係る複合機10とPC14は、各種の情報を交換することにより互いに連携して動作するものとされており、中継装置12を介して各種の情報を交換されるものとされている。
As described above, the
中継装置12は、ケーブル29Aを介して複合機10から電力が供給されると、CPU56によって通信制御プログラムが実行されて、複合機10から第1接続端子52A及びPC14から第2接続端子52Bにそれぞれ入力された情報の中継を制御している。
When power is supplied from the
なお、本実施の形態に係る通信制御プログラムは、図2に示すように、複合機10やPC14から第1接続端子52A及び第2接続端子52Bに入力された各種の情報を一旦RAM60に記憶させ、複合機10やPC14から情報の送信を要求する送信要求情報が入力すると、RAM60に記憶した情報を送信させるように制御するものとされている。本実施の形態に係る中継装置12のRAM60には、第1接続端子52A及び第2接続端子52Bに入力された情報を各々最大30個記憶可能なように、複合機向けバッファ領域、PC向けバッファ領域が設けられている。
As shown in FIG. 2, the communication control program according to the present embodiment temporarily stores various information input to the
本実施の形態に係る複合機10及びPC14は、起動して通信可能な状態となると、一定期間(例えば、300ms)毎に、中継装置12に対して送信要求情報を送信して、中継装置12のRAM60に記憶された情報の送信を要求する。
When the
また、本実施の形態に係る複合機10は、起動時に、PC14が接続され、かつ、正常に動作しているかを確認するため、コネクションの確立を要求する要求情報を出力する。
In addition, at the time of activation, the
PC14は、コネクションを確立を要求する要求情報が入力すると、PC14の機器の種別を示す種別情報、シリアルナンバーを含んだ要求情報に対する応答情報を出力する。
When the request information requesting establishment of the connection is input, the
複合機10は、応答情報が入力された場合、PC10とコネクションを確立できたものとして正常に動作し、所定の時間以内に応答情報が入力しなかった場合、コネクションを確立できなかったものとしてエラーとなる。
When the response information is input, the
ところで、複合機10とPC14を同時に電源を投入した場合、一般的にPC14の方が複合機10よりも起動開始から通信可能な状態となるまでの起動時間が長い。このため、複合機10で起動時にエラーの発生する場合がある。
By the way, when the
そこで、本実施の形態に係る中継装置12では、不揮発性メモリ62にPC14の種別情報、シリアルナンバーを予め記憶しておき、PC14が通信不可能な状態である際に複合機10からコネクションの確立を要求する要求情報が入力された場合、要求情報に対する応答情報を生成するようにしている。なお、不揮発性メモリ62に予め記憶するPC14の種別情報、シリアルナンバーは、作業員が設定するものとしてもよく、また、中継装置12で正常時に中継されるコネクションの確立を要求する要求情報に対する応答情報から抽出して記憶するものとしてもよい。
Therefore, in the
図3には、複合機10より出力された情報がケーブル29Aを介して第1接続端子52Aに入力された際に、中継装置12のCPU56により実行される通信制御プログラムの第1接続端子情報受信処理の流れを示すフローチャートが示されている。
In FIG. 3, when the information output from the
同図のステップ100では、入力された情報が、情報の送信を要求する送信要求情報であるか否かを判定し、肯定判定となった場合はステップ120へ移行する一方、否定判定となった場合はステップ102へ移行する。
In
ステップ102では、入力された情報が、コネクションの確立を要求する要求情報であるか否かを判定し、肯定判定となった場合はステップ104へ移行する一方、否定判定となった場合はステップ110へ移行する。
In
ステップ104では、PC14が通信可能な状態であるか否かを判定する。
In
ここで、RS232C規格では、中継装置12とPC14とを接続するケーブル29Bの結線仕様は図4のようになっており、ケーブル29Bの各信号線の用途は図5に示すようになっており、第2接続端子52Bの第6ピンの電圧レベルによってPC14が通信可能な状態であるか否かを判断することができる。
Here, in the RS232C standard, the connection specifications of the cable 29B connecting the
そこで、本ステップ104では、第2接続端子52Bの第6ピンの電圧レベルを検出することにより、PC14が通信可能な状態であるか否かを判定しており、PC14が通信可能な状態である場合はステップ110へ移行し、PC14が通信不可能な状態である場合はステップ106へ移行する。
Therefore, in this
ステップ106では、不揮発性メモリ62に予め記憶したPC14の種別情報及びシリアルナンバーに基づいて、コネクションの確立を要求する要求情報に対する応答情報を生成し、次のステップ108では、生成した応答情報を複合機向けバッファ領域に記憶させて、本第1接続端子情報受信処理を終了する。
In
一方、ステップ110では、PC14から一定期間(例えば、30秒間)以上、アクセスが無かった否かを判定し、肯定判定となった場合はステップ114へ移行する一方、否定判定となった場合はステップ112へ移行する。
On the other hand, in
ステップ112では、PC向けバッファ領域に空きがあるか否かを判定し、肯定判定となった場合はステップ116へ移行する一方、否定判定となった場合はステップ114へ移行する。
In
ステップ114では、PC14のアクセスが無い、又はPC向けバッファ領域に空きが無い状態であるため、コピー動作の不許可を示すコピー実施制御情報を生成し、上記ステップ108へ移行して、生成したコピー実施制御情報を複合機向けバッファ領域に記憶させ、本第1接続端子情報受信処理を終了する。これにより、例えば、PC14でエラーが発生して通信不能状態となってしまった場合に、複合機10でのコピー動作が禁止される。
In
一方、ステップ116では、入力された情報をPC向けバッファ領域に記憶させ、処理終了となる。
On the other hand, in
一方、ステップ120では、入力された情報が、情報の送信を要求する送信要求情報であるため、複合機向けバッファ領域に情報が記憶されているか否かを判定し、肯定判定となった場合はステップ122へ移行する一方、否定判定となった場合はステップ124へ移行する。
On the other hand, in
ステップ122では、複合機向けバッファ領域に記憶された各情報を複合機10へ向けて順次送信し、本第1接続端子情報受信処理を終了する。
In
一方、ステップ124では、複合機10へ送信する情報が無いことを通知して、本第1接続端子情報受信処理を終了する。
On the other hand, in
一方、図6には、PC14より出力された情報がケーブル29Bを介して第2接続端子52Bに入力された際に、中継装置12のCPU56により実行される通信制御プログラムの第2接続端子情報受信処理の流れを示すフローチャートが示されている。
On the other hand, FIG. 6 shows the second connection terminal information reception of the communication control program executed by the
同図のステップ200では、入力された情報が、情報の送信を要求する送信要求情報であるか否かを判定し、肯定判定となった場合はステップ220へ移行する一方、否定判定となった場合はステップ202へ移行する。
In
ステップ202では、既に第1接続端子52Aに複合機10からコネクションの確立を要求する要求情報が入力済みであるか否かを判定し、肯定判定となった場合はステップ204へ移行する一方、否定判定となった場合はステップ206へ移行する。
In
ステップ204では、入力された情報を複合機向けバッファ領域に記憶させ、本第2接続端子情報受信処理を終了する。
In
一方、ステップ206では、複合機10が起動しておらず、コネクションが確立されていないため、PC14へエラーを通知して、本第2接続端子情報受信処理を終了する。
On the other hand, in
一方、ステップ220では、入力された情報が、情報の送信を要求する送信要求情報であるため、PC向けバッファ領域に情報が記憶されているか否かを判定し、肯定判定となった場合はステップ222へ移行する一方、否定判定となった場合はステップ224へ移行する。
On the other hand, in
ステップ222では、PC向けバッファ領域に記憶された情報をPC14へ向けて順次送信し、本第2接続端子情報受信処理を終了する。
In
一方、ステップ224では、PC14へ送信する情報が無いことを通知して、本第2接続端子情報受信処理を終了する。
On the other hand, in
これにより、中継装置12は、PC14が通信不可能な状態である際に複合機10からコネクションの確立を要求する要求情報が入力された場合、要求情報に対する応答情報を生成して複合機向けバッファ領域に記憶し、複合機10から入力する送信要求情報に応じて、複合機向けバッファ領域に記憶した応答情報を複合機10に送信するため、複合機10で起動時にPC14とコネクションを確立できないためにエラーが発生することを防止することできる。
As a result, when the request information requesting establishment of the connection is input from the
以上のように本実施の形態によれば、起動時に複合機10から第1接続端子52Aにコネクションの確立を要求する要求情報が入力された場合に、第2接続端子52Bを介してPC14が通信可能な状態であるか否かを判定し、通信不可能な状態であると判定された場合に、要求情報に対する応答情報を第1接続端子52Aから複合機10へ送信するように制御しているので、複合機10での起動時のエラーの発生を防止することができる。
As described above, according to the present embodiment, when request information for requesting establishment of a connection is input from the multi-function peripheral 10 to the
なお、本実施の形態では、複合機10が、コネクションの確立を要求する要求情報に対する応答情報としてPC14の機器の種別を示す種別情報、シリアルナンバーを含んだ応答情報を要求するため、中継装置12においてPC14の種別情報、シリアルナンバーを記憶する場合について説明したが、複合機10が、応答情報として種別情報、シリアルナンバーを必要とせず、応答を求めるものである場合、中継装置12はPC14の種別情報、シリアルナンバーを記憶せず、応答すればよい。
In the present embodiment, the
また、本実施の形態では、中継装置12とPC14をRS232C規格でシリアル通信を行うため、第2接続端子52Bの第6ピンの電圧レベルによってPC14の状態が判別できるが、例えば、LAN回線などを用いた場合、中継装置12は、PC14に対して状態を問い合わせる問合情報を送信し、当該問合情報に対する応答情報に基づいてPC14が通信可能な状態であるか否かを判定してもよい。
In this embodiment, since the
また、本実施の形態では、中継装置12は、複合機10やPC14から入力された各種の情報を一旦RAM60に記憶し、複合機10やPC14から情報の送信を要求する送信要求情報が入力すると、RAM60に記憶した情報を送信する場合について説明したが、本発明はこれに限定されるものではなく、例えば、第1接続端子52A及び第2接続端子52Bの第6ピンの電圧レベルに基づいて複合機10やPC14が通信可能な状態であるか否かを判定したり、あるいは、定期的に複合機10やPC14に対して状態を問い合わせる問合情報を送信し、当該問合情報に対する応答情報に基づいて複合機10やPC14が通信可能な状態であるか否かを判定して、複合機10やPC14が通信可能な状態であると、RAM60に記憶した情報を送信するようにしてもよい。
In the present embodiment, the
その他、本実施の形態で説明した複合機10、中継装置12、及びPC14の構成(図1、図2参照。)は、一例であり、本発明の主旨を逸脱しない範囲内において適宜変更可能であることは言うまでもない。また、中継装置12が接続される機器は複合機やPCに限定されるものではなく、適宜変更可能であることは言うまでもない。
In addition, the configurations (see FIGS. 1 and 2) of the
また、本実施の形態で説明した第1接続端子情報受信処理及び第2接続端子情報受信処理の流れ(図3及び図6参照。)も一例であり、本発明の主旨を逸脱しない範囲内において適宜変更可能であることは言うまでもない。 The flow of the first connection terminal information reception process and the second connection terminal information reception process (see FIGS. 3 and 6) described in the present embodiment is also an example, and within the scope not departing from the gist of the present invention. Needless to say, it can be changed as appropriate.
10 複合機(第1機器)
12 中継装置
14 PC(第2機器)
52A 第1接続端子
52B 第2接続端子
56 CPU(判定手段、制御手段、生成手段)
60 RAM(要求情報記憶手段)
62 不揮発性メモリ(記憶手段)
10 Multifunction machine (first equipment)
12
52A First connection terminal 52B
60 RAM (request information storage means)
62 Nonvolatile memory (storage means)
Claims (6)
前記第1機器と電気的に接続されて前記第1機器からコネクションの確立を要求する要求情報が入力される第1接続端子と、
前記第2機器と電気的に接続された第2接続端子と、
前記第1接続端子に前記要求情報が入力された場合に、前記第2接続端子を介して前記第2機器が通信可能な状態であるか否かを判定する判定手段と、
前記判定手段により通信不可能な状態であると判定された場合に、前記要求情報に対する応答情報を前記第1接続端子から前記第1機器へ送信するように制御する制御手段と、
を備えた中継装置。 Interposed between the first device and the second device that operate in cooperation with each other by establishing a connection,
A first connection terminal that is electrically connected to the first device and receives request information for requesting establishment of a connection from the first device;
A second connection terminal electrically connected to the second device;
A determination unit that determines whether the second device is in a communicable state via the second connection terminal when the request information is input to the first connection terminal;
Control means for controlling response information to the request information to be transmitted from the first connection terminal to the first device when it is determined by the determination means that communication is impossible;
A relay device comprising:
前記記憶手段に記憶された情報に基づいて前記要求情報に対する応答情報を生成する生成手段と、をさらに備え、
前記制御手段は、前記生成手段により生成された応答情報を送信するように制御する
請求項1記載の中継装置。 Storage means for storing in advance information related to the second device required when the first device establishes a connection with the second device;
Generating means for generating response information for the request information based on the information stored in the storage means;
The relay apparatus according to claim 1, wherein the control unit performs control so as to transmit the response information generated by the generation unit.
前記制御手段は、前記第2接続端子に前記第2機器から送信要求情報が入力された場合に、前記要求情報記憶手段に記憶された前記要求情報を前記第2接続端子から前記第2機器に対して送信するように制御する
請求項1又は請求項2記載の中継装置。 Further comprising request information storage means for storing the request information when it is determined by the determination means that communication is possible;
When the transmission request information is input from the second device to the second connection terminal, the control unit transmits the request information stored in the request information storage unit to the second device from the second connection terminal. The relay device according to claim 1, wherein the relay device is controlled to transmit to the relay device.
前記判定手段は、前記所定の信号線の電圧レベルに基づいて前記第2機器が通信可能な状態であるか否かを判定する
請求項1から請求項3の何れか1項記載の中継装置。 The second connection terminal includes a plurality of signal lines, and the voltage level of the predetermined signal line changes depending on whether or not the second device is in a communicable state.
The relay device according to any one of claims 1 to 3, wherein the determination unit determines whether or not the second device is in a communicable state based on a voltage level of the predetermined signal line.
請求項1から請求項3の何れか1項記載の中継装置。 Whether the determination means transmits inquiry information for inquiring about the state from the second connection terminal to the second device, and whether the second device is communicable based on response information to the inquiry information. The relay apparatus according to any one of claims 1 to 3, wherein a determination is made as to whether or not.
前記第1機器と電気的に接続されて前記第1機器から前記要求情報が入力される第1接続端子に前記要求情報が入力した場合に、前記第2機器と電気的に接続された第2接続端子を介して前記第2機器が通信可能な状態であるか否かを判定する判定ステップと、
前記判定ステップにより通信不可能な状態であると判定された場合に、前記要求情報に対する応答情報を前記第1接続端子から前記第1機器へ送信するように制御する制御ステップと、
をコンピュータに実行させる通信制御プログラム。 Devices that operate in cooperation with each other by establishing a connection, a first device that outputs request information for requesting establishment of a connection at the time of startup, and a startup time from when startup is started until communication is possible A communication control program executed by a relay device interposed between second devices that is longer than one device,
When the request information is input to a first connection terminal that is electrically connected to the first device and to which the request information is input from the first device, a second that is electrically connected to the second device. A determination step of determining whether the second device is in a communicable state via a connection terminal;
A control step for controlling to transmit response information to the request information from the first connection terminal to the first device when it is determined in the determination step that communication is impossible;
Communication control program for causing a computer to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007065698A JP2008228093A (en) | 2007-03-14 | 2007-03-14 | Relay apparatus and communication control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007065698A JP2008228093A (en) | 2007-03-14 | 2007-03-14 | Relay apparatus and communication control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008228093A true JP2008228093A (en) | 2008-09-25 |
Family
ID=39846137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007065698A Pending JP2008228093A (en) | 2007-03-14 | 2007-03-14 | Relay apparatus and communication control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008228093A (en) |
-
2007
- 2007-03-14 JP JP2007065698A patent/JP2008228093A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7669196B2 (en) | Data processing system, data generating device and data outputting device | |
CN110609663B (en) | Server system, printing apparatus, control method, and communication system | |
JP4741634B2 (en) | Image processing apparatus, image forming apparatus, and image transmitting apparatus | |
JP2015174373A (en) | Information processor, image formation device, control method thereof and program | |
JP2008299776A (en) | Electronic apparatus, application authenticating method, application performance system and application execution program | |
JP6848295B2 (en) | Image forming device and program | |
JP2010021947A (en) | Image forming apparatus | |
JP2015130565A (en) | Interlock display system, image processing apparatus and its program, interlock display method | |
JP5928742B2 (en) | Image forming apparatus, information terminal apparatus, image forming system, image forming apparatus management control method, image forming apparatus control program, and information terminal apparatus control program | |
JP7103008B2 (en) | Image forming device and program | |
JP5964669B2 (en) | Image forming apparatus, image forming system, and control method thereof | |
CN112188022B (en) | Image forming apparatus, control method thereof, and storage medium | |
US9584680B2 (en) | Function providing system and recording medium for using functions provided by server | |
JP2008228093A (en) | Relay apparatus and communication control program | |
JP2022085781A (en) | Information processing device, control method, and program | |
US9804808B2 (en) | Method for controlling printing apparatus, storage medium, and printing apparatus for communicating with a charge server to perform charging control related to printing | |
CN106797237B (en) | Communication system, communication method, and image forming apparatus | |
JP4639709B2 (en) | Image processing apparatus, display control method thereof, and display control program | |
JP2014119877A (en) | Information processing device, control method of information processing device, and program | |
US11314470B1 (en) | Image forming apparatus | |
KR102520413B1 (en) | Information processing apparatus and method for controlling the same | |
JP3934640B2 (en) | Image processing system, image forming apparatus, and search program | |
JP4572927B2 (en) | Information processing apparatus and user authentication program | |
JP2017102609A (en) | Communication equipment and control method thereof and program | |
JP2017091482A (en) | Print management server, program and printing system |