Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3362547B2 - Communication adapter - Google Patents
[go: Go Back, main page]

JP3362547B2 - Communication adapter - Google Patents

Communication adapter

Info

Publication number
JP3362547B2
JP3362547B2 JP05776795A JP5776795A JP3362547B2 JP 3362547 B2 JP3362547 B2 JP 3362547B2 JP 05776795 A JP05776795 A JP 05776795A JP 5776795 A JP5776795 A JP 5776795A JP 3362547 B2 JP3362547 B2 JP 3362547B2
Authority
JP
Japan
Prior art keywords
communication
phase
host device
adapter
facsimile
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.)
Expired - Fee Related
Application number
JP05776795A
Other languages
Japanese (ja)
Other versions
JPH08256252A (en
Inventor
和也 川端
茂樹 石野
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP05776795A priority Critical patent/JP3362547B2/en
Publication of JPH08256252A publication Critical patent/JPH08256252A/en
Application granted granted Critical
Publication of JP3362547B2 publication Critical patent/JP3362547B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Facsimile Transmission Control (AREA)
  • Computer And Data Communications (AREA)
  • Facsimiles In General (AREA)

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、ファクシミリ装置等の
外部の通信装置と通信回線を介して接続され、かつSC
SIバス等のバスを介してポーリングを行うイニシエー
タの機能を有するホスト装置と接続された通信アダプタ
に関し、特にホスト装置が通信アダプタにポーリングを
行う際、通信アダプタと外部の通信装置との通信フェー
ズをホスト装置に正確に通知して、ホスト装置との整合
性をとる通信アダプタに関する。 【0002】 【従来の技術】従来、ホスト装置のSCSIバスにファ
クシミリアダプタ等の通信アダプタを接続し、ホスト装
置と通信アダプタとの双方向通信を行う通信システムが
知られている。この結果、通信アダプタを介してホスト
装置と通信装置との間の通信が実現される。 【0003】ここで、SCSI(Small Computer Syste
m Interface)とは、ANSI(American National Sta
ndard Institute)によって制定された規格である。こ
のSCSI規格によれば、その仕様上、命令を出すイニ
シエータと、命令を受け取り、実行するターゲットとの
間でコマンド/データの転送が行われる。 【0004】従って、従来の通信システムにおけるホス
ト装置及び通信アダプタは、ともにイニシエータの機能
とターゲットの機能を合わせ持つことにより、双方向通
信を実現していた。 【0005】しかし、ホスト装置として使用されるパソ
コンあるいはワークステーション等は、通常、イニシエ
ータの機能のみを有しているものが多い。従って、イニ
シエータの機能のみを有したホスト装置とターゲットの
機能のみを有した通信アダプタとがSCSIバスで接続
された場合、ターゲットからイニシエータへの通信(送
信)を行うことができない。この結果、通信アダプタ
は、通信回線を介して接続された外部の通信装置から受
信したデータを有していることをホスト装置に通知する
ことが困難であった。 【0006】この問題点を解決するため、特開平5−1
36928号公報には、イニシエータとしてのホスト装
置が、ターゲットとしての通信アダプタに対して外部か
ら通信回線を介して受信したデータがあるか否かを、S
CSIコマンドを用いて定期的に確認、即ちポーリング
することにより、ホスト装置と通信アダプタとの間の双
方向通信を実現するデータ通信装置が記載されている。 【0007】このデータ通信装置では、受信したデータ
のみならず、通信アダプタと外部の通信装置との間の通
信フェーズも通知される(後述する図3(d)の通信フ
ェーズCP参照)。ここで、通信フェーズとは、通信状
態を管理するための通信プロトコル上の規約である。 【0008】例えば、通信アダプタがファクシミリアダ
プタであり、外部の通信装置がファクシミリ装置である
場合、このファクシミリアダプタとファクシミリ装置と
の間では、図7に示すようなファクシミリ通信の通信フ
ェーズ(通信フェーズA〜E)をもって通信状態が管理
される。 【0009】図7において、フェーズAは、呼設定及び
回線確立のシーケンスである。フェーズBは、ファクシ
ミリメッセージ伝送の前処理の過程であり、端末、伝送
路などの状態確認及び端末制御のためのシーケンスであ
る。ここでは、端末の送受信準備状態、同期状態の確認
等が行われる。フェーズCは、ファクシミリメッセージ
伝送とメッセージ伝送中の制御を行うフェーズであり、
メッセージ伝送とその確認及び同期の保持等が行われ
る。フェーズDは、メッセージ終了と受信確認などを行
う過程であり、連続送信を行う場合はフェーズBまたは
フェーズCに戻って送信が繰り返される。フェーズE
は、呼の復旧すなわち回線切断の過程である。従って、
ファクシミリ通信の場合、通常、通信フェーズA→B→
C→D→Eを経て、通信が管理、実行されることにな
る。 【0010】 【発明が解決しようとする課題】しかしながら、上記従
来のデータ通信装置では、通信フェーズBが、非常に短
時間で終了して、次の通信フェーズCに移行してしまう
ので、ホスト装置からの通信アダプタ(ファクシミリア
ダプタ)へのポーリングの間隔あるいはタイミングによ
っては、ホスト装置が通信フェーズBを確認できない状
態が発生する。 【0011】この結果、ホスト装置と通信アダプタとの
間の通信の整合性が取れなくなる場合が生じ、誤動作や
システムダウンが発生する場合が生じるという問題点が
あった。 【0012】そこで、本発明は、かかる問題点を除去
し、通信アダプタと外部の通信装置との間の通信フェー
ズを正確に確認することにより、ホスト装置と通信アダ
プタとの間の整合性を取り、誤動作やシステムダウンを
防止することができる通信アダプタを提供することを目
的とする。 【0013】 【課題を解決するための手段】本発明は、バスを介して
イニシエーターとしてのホスト装置に接続され、通信回
線を介して外部の通信装置に接続されるターゲットとし
ての通信アダプタにおいて、前記通信装置と通信アダプ
タとの間の通信フェーズを管理して記憶する管理手段
と、前記管理手段による管理内容に基づいて前記ホスト
装置に対して未通知の通信フェーズがあるか否かを判断
する判断手段と、前記判断手段が未通知の通信フェーズ
があると判断した場合、前記ホスト装置のポーリング要
求に対し、未通知の通信フェーズを当該ホスト装置に通
知する通知手段とを具備することを特徴とする。 【0014】 【作用】本発明では、管理手段が、通信アダプタとこの
通信アダプタと通信回線を介して接続される外部の通信
装置との間の通信フェーズを管理して記憶する。そし
て、判断手段は、ホスト装置に対して未通知の通信フェ
ーズが管理手段に記憶されていか否かを判断する。通知
手段は、ホスト装置のポーリング要求に対してその都度
通信フェーズを通知するが、判断手段により未通知の通
信フェーズがあると判断された場合、ホスト装置のポー
リング要求に対して、未通知であって記憶手段に記憶さ
れている、例えば最古の通信フェーズを通知する。 【0015】これにより、ホスト装置と通信アダプタと
の間の通信の整合性を維持することができる。 【0016】 【実施例】以下、図面を参照して本発明の一実施例につ
いて説明する。 【0017】図1は、本発明の一実施例であるファクシ
ミリアダプタを含む通信システムの構成を示す図であ
る。 【0018】図1において、本通信システムは、ファク
シミリアダプタ10、ファクシミリアダプタとSCSI
バスBを介して接続されるホスト装置20、及びファク
シミリアダプタ10と通信回線Lを介して接続されるフ
ァクシミリ装置30から構成される。 【0019】ファクシミリアダプタ10は、イニシエー
タであるホスト装置20に対するターゲットの機能を有
し、ファクシミリアダプタ10の全体を制御するCPU
11、通信回線Lと接続されてファクシミリ装置30と
の通信制御を行う通信制御部12、通信制御部12にお
ける通信フェーズを順次記憶し、ホスト装置に通知され
た通信フェーズを削除する通信フェーズ記憶部13、通
信フェーズ記憶部13に記憶された通信フェーズがホス
ト装置20に対して未通知であるものがあるか否かを判
断する通信フェーズ判断部14、SCSIバスBに接続
され、ホスト装置20のポーリング要求に対し、最古の
通信フェーズから順に通知する制御を含めたホスト装置
20との間の通信制御を行うSCSI制御部15を有す
る。なお、通信制御部12、通信フェーズ記憶部13、
通信フェーズ判断部14及びSCSI制御部15は、内
部バスB1を介してCPUに接続され、それぞれ、CP
U11の制御を受ける。 【0020】ホスト装置20は、SCSIバスを介して
ファクシミリアダプタ10に対して定期的にポーリング
を行い、ファクシミリアダプタ10がファクシミリ装置
30からデータを受信した場合に、この受信したデータ
の獲得を行う。また、ホスト装置20は、ファクシミリ
アダプタ10に対するイニシエータの機能を有し、ファ
クシミリアダプタ10を介してファクシミリ装置30に
対してファクシミリ送信を行うことができる。 【0021】なお、ファクシミリアダプタ10とファク
シミリ装置30との間の通信は、図7に示すファクシミ
リ通信の通信フェーズの管理のもとに、通常のファクシ
ミリ通信が行われる。 【0022】次に、ホスト装置20とファクシミリアダ
プタ10との間の通信手順について説明する。 【0023】図2は、ホスト装置20とファクシミリア
ダプタ10との間の概略シーケンスを示す図である。図
2において、ホスト装置20は、ファクシミリアダプタ
10に対して、ファクシミリ装置30からの受信がある
か否かを定期的なポーリングにより問い合わせる(S
1)。ここで、通信制御部12がファクシミリ装置30
から通信回線Lを介してファクシミリの着信を受ける
と、SCSI制御部15は、受信が発生したことをホス
ト装置20に通知する(S2)。この受信発生の通知を
受けたホスト装置20は、ファクシミリアダプタ10に
対して、SCSIのLUN(Logical Unit Number)の
割当要求を行う。これに対し、ファクシミリアダプタ1
0は、着信のあった通信回線LとLUNとを対応づけて
割り当てた後、この割り当てられたLUNをホスト装置
20に対して通知する(S3)。このLUNは、今回フ
ァクシミリアダプタ10が着信したファクシミリ通信の
ものであることを、ホスト装置20とファクシミリアダ
プタ10との間で相互に認識するための識別情報であ
る。従って、この後のシーケンスにおいて、この設定さ
れたLUNは、今回のホスト装置20とファクシミリア
ダプタ10との間の通信が終了するまで、その都度、用
いられることになる。 【0024】一方、ファクシミリアダプタ10から設定
されたLUNを受信したホスト装置20は、ファクシミ
リアダプタ10に対してファクシミリ受信が可能である
ことを通知するFAX受信を発行する(S4)。その
後、ホスト装置20は、ファクシミリアダプタ10に対
し、SCSIコマンドの「SEND MESSAGE」を使用して、
定期的にFAXステータス要求を行う(S5)。 【0025】このFAXステータス要求を受けたファク
シミリアダプタ10は、後述する通信フェーズの履歴管
理処理及び通信フェーズの問合せ/通知処理を行って、
通信フェーズを設定し、この設定した通信フェーズを含
めてホスト装置20に対し、SCSIコマンドの「GET
MESSAGE」を使用したFAXステータスを通知する(S
6)。 【0026】その後、上述したS5及びS6のシーケン
スをホスト装置20のポーリングにより必要回数繰り返
す。 【0027】そして、ファクシミリアダプタ10のファ
クシミリ着信が終了(ファクシミリ通信の通信フェーズ
E)後、ファクシミリアダプタ10は、ホスト装置20
からのFAXステータス要求(S7)に対し、通信フェ
ーズEを含むFAXステータス(S8)を通知する。こ
のFAXステータスS8を受信したホスト装置20は、
現在割り当てられているLUNの解放を通知し(S
9)、ホスト装置20とファクシミリアダプタ10との
間における今回設定されたLUNの通信を終了する。 【0028】ここで、図3を参照して、FAXステータ
ス要求及びFAXステータスの詳細構成について説明す
る。なお、上述したように、FAXステータス要求及び
FAXステータスは、SCSIの規格を用いている。 【0029】図3(a)及び(b)は、FAXステータ
ス要求のコマンドフォーマット及びデータフォーマット
を示す図である。図3(a)は、SCSIコマンドであ
る「SEND MESSAGE(6)」のフォーマットを示しており、
このコマンドには、ファクシミリアダプタ10によって
設定されたLUN30が書き込まれる。また、図3
(b)は、SCSIデータである「SEND MESSAGE DAT
A」のフォーマットと示しており、ファクシミリアダプ
タ10に通知すべきデータが送信される。 【0030】図3(c)及び(d)は、FAXステータ
スのコマンドフォーマット及びデータフォーマットを示
す図である。図(c) は、SCSIコマンドである「G
ET MESSAGE(6)」のフォーマットを示しており、FAX
ステータス要求のコマンドと同様に、設定されたLUN
31が書き込まれる。また、図(d)は、SCSIデー
タである「GET MESSAGE DATA」のフォーマットを示して
おり、このデータには、ファクシミリ装置30とファク
シミリアダプタ10との間の通信フェーズCPが書き込
まれて、ホスト装置20に通知されるとともに、ファク
シミリ通信の状況や結果が5バイトから187バイトの
間に格納されて、ホスト装置20に送信される。 【0031】次に、ファクシミリアダプタ10における
通信フェーズの履歴管理処理及び通信フェーズの問合せ
/通知処理について図4及び図5を参照して順次説明す
る。 【0032】図4に示すように通信フェーズの履歴管理
処理手順では、まず、通信制御部12が通信回線Lを介
してファクシミリ装置30からの着信を受け付けると、
CPU11は、通信フェーズ記憶部13を初期化する
(ステップ101)。その後、通信制御部12によるフ
ァクシミリ通信のプロトコルに従った通信制御が行われ
る(ステップ102)。この通信手順を監視してCPU
11が、通信フェーズが変化したか否かを判断する(ス
テップ103)。通信フェーズが変化しない場合は、ス
テップ103の判断を繰り返し、通信フェーズが変化し
た場合は、通信フェーズ記憶部13に新しい通信フェー
ズを追加記憶し(ステップ104)、ステップ103に
移行する。 【0033】このようにして、通信フェーズ記憶部13
には、通信フェーズに変化が生じる度に新しい通信フェ
ーズが順次記憶され、通信フェーズの履歴が管理される
ことになる。 【0034】次に、図5に示すように、通信フェーズの
問合せ/通知処理では、まず、SCSI制御部15がS
CSIバスBを介してホスト装置20からFAXステー
タス要求を受信したか否かを判断し(ステップ20
1)、FAXステータス要求を受信するまで、ステップ
201の判断を繰り返す。SCSI制御部15がFAX
ステータス要求を受信すると、通信フェーズ判断部14
は、まず通信フェーズ記憶部13に通信フェーズが記憶
されているか否かを判断する(ステップ202)。この
結果、通信フェーズ記憶部13に通信フェーズが記憶さ
れている場合、通信フェーズ判断部14は、通信フェー
ズ記憶部13に記憶されている最も古い通信フェーズを
SCSI制御部15に通知し(ステップ203)、通信
フェーズ記憶部13に記憶されている最も古い通信フェ
ーズを削除し(ステップ204)、ステップ206に移
行する。一方、ステップ202で通信フェーズ記憶部1
3に通信フェーズが記憶されていない場合、通信フェー
ズ判断部14は、通信制御部12における現在の通信フ
ェーズをSCSI制御部15に通知し(ステップ20
5)、ステップ206に移行する。ステップ206で
は、SCSI制御部15が、通知された通信フェーズを
図3(d)に示すSCSIデータの一部として、ホスト
装置20に通知し、ステップ201に移行して上述した
処理を通信フェーズEになるまで繰り返す。 【0035】すなわち、通信フェーズの通知漏れがある
場合には通信フェーズ記憶部13に通信フェーズが記憶
され、この記憶された通信フェーズのうち最も古い通信
フェーズがホスト装置20に通知され、通信フェーズの
通知漏れがない場合には通信フェーズ記憶部13に通信
フェーズが記憶されず、現在の通信フェーズがホスト装
置20に通知されることになる。従って、ホスト装置2
0は、ファクシミリアダプタ10とファクシミリ装置3
0との間の通信フェーズを正確に認識することができ
る。そして、この結果によりホスト装置20とファクシ
ミリアダプタ10との間の整合性がとれ、ホスト装置2
0の誤動作あるいはシステムダウンを未然に防止するこ
とができる。 【0036】さらに、図6を参照して通信フェーズ記憶
部13の詳細構成について説明する。ここで、通信フェ
ーズ記憶部13は、リングバッファ方式を採用した記憶
管理を行っており、通信フェーズが変化する度に通信フ
ェーズは登録され、ホスト装置20に通知が終了した時
点で、この登録された通信フェーズは削除される。 【0037】図6において、通信フェーズ記憶部13に
は、通信フェーズを読み込む位置を示す読込ポインタと
通信フェーズを書き込む位置を示す書込ポインタを有し
ている。書込ポインタ及び読込ポインタは初期化時にお
いては、先頭アドレスに位置しており、書込ポインタは
通信フェーズの登録を行うと書込ポインタの値を「1」
加算し、読込ポインタは、通信フェーズの通知が終了す
ると読み込んだ通信フェーズを削除し、読込ポインタの
値を「1」加算する。従って、通信フェーズの通知に遅
れが生じない場合は、書込ポインタと読込ポインタの示
す位置は同じになり、書込ポインタ及び読込ポインタが
示す位置に通信フェーズは登録されておらず、現在の通
信フェーズが通知されることになる。図6の記憶内容で
は、現在の通信フェーズは通信フェーズDであり、通信
フェーズB及び通信フェーズCが通知されていないこと
を示す。なお、書込ポインタ及び読込ポインタは、最終
アドレスに到達した後、先頭アドレスに戻り、同様な処
理を繰り返す。 【0038】 【発明の効果】以上詳細に説明したように、本発明で
は、ホスト装置と通信アダプタとの間の通信の整合性が
とられ、ホスト装置及び通信アダプタの誤動作あるいは
システムダウンを未然に防止することができるという利
点を有する。 【0039】
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external communication apparatus such as a facsimile apparatus connected via a communication line, and
Regarding a communication adapter connected to a host device having an initiator function of performing polling via a bus such as an SI bus, particularly when the host device polls the communication adapter, a communication phase between the communication adapter and an external communication device is set. The present invention relates to a communication adapter that accurately notifies a host device and takes consistency with the host device. 2. Description of the Related Art Conventionally, there has been known a communication system in which a communication adapter such as a facsimile adapter is connected to a SCSI bus of a host device and bidirectional communication between the host device and the communication adapter is performed. As a result, communication between the host device and the communication device is realized via the communication adapter. Here, SCSI (Small Computer System)
m Interface is ANSI (American National Sta
ndard Institute). According to the SCSI standard, command / data transfer is performed between an initiator that issues an instruction and a target that receives and executes the instruction. Therefore, both the host device and the communication adapter in the conventional communication system have realized the two-way communication by having both the function of the initiator and the function of the target. However, many personal computers or workstations used as host devices usually have only the function of an initiator. Therefore, when the host device having only the function of the initiator and the communication adapter having only the function of the target are connected by the SCSI bus, communication (transmission) from the target to the initiator cannot be performed. As a result, it has been difficult for the communication adapter to notify the host device that it has data received from an external communication device connected via a communication line. In order to solve this problem, Japanese Patent Laid-Open Publication No.
Japanese Patent No. 36928 discloses that a host device as an initiator determines whether or not there is data received from the outside via a communication line to a communication adapter as a target.
A data communication device that realizes bidirectional communication between a host device and a communication adapter by periodically confirming, that is, polling using a CSI command is described. In this data communication device, not only the received data but also a communication phase between the communication adapter and the external communication device is notified (see a communication phase CP in FIG. 3 (d) described later). Here, the communication phase is a rule on a communication protocol for managing a communication state. For example, when the communication adapter is a facsimile adapter and the external communication device is a facsimile device, a communication phase (communication phase A) of facsimile communication between the facsimile adapter and the facsimile device as shown in FIG. To E), the communication state is managed. In FIG. 7, a phase A is a sequence of call setting and line establishment. Phase B is a pre-processing step of facsimile message transmission, and is a sequence for confirming the state of terminals and transmission paths and controlling the terminals. Here, confirmation of the transmission / reception preparation state and the synchronization state of the terminal is performed. Phase C is a phase for performing facsimile message transmission and controlling during message transmission.
Message transmission and its confirmation and synchronization maintenance are performed. Phase D is a process of performing message termination and acknowledgment, and in the case of performing continuous transmission, returning to phase B or phase C and repeating transmission. Phase E
Is the process of call recovery, ie, line disconnection. Therefore,
In the case of facsimile communication, communication phase A → B →
Through C → D → E, communication is managed and executed. However, in the above conventional data communication apparatus, the communication phase B ends in a very short time and shifts to the next communication phase C. Depending on the interval or timing of polling of the communication adapter (facsimile adapter) from the host, a state occurs in which the host device cannot confirm the communication phase B. As a result, the communication between the host device and the communication adapter may become inconsistent, and a malfunction or a system down may occur. Therefore, the present invention eliminates such a problem and accurately confirms the communication phase between a communication adapter and an external communication device, thereby ensuring consistency between the host device and the communication adapter. It is another object of the present invention to provide a communication adapter capable of preventing malfunction and system down. According to the present invention, there is provided a communication adapter as a target which is connected to a host device as an initiator via a bus and is connected to an external communication device via a communication line. Management means for managing and storing a communication phase between the communication device and the communication adapter; and determining whether or not there is a communication phase that has not been notified to the host device based on the management content of the management means. Determining means, and notifying means for notifying the host device of the unreported communication phase in response to a polling request from the host device when the determining means determines that there is a communication phase not notified. And According to the present invention, the management means manages and stores the communication phase between the communication adapter and an external communication device connected to the communication adapter via the communication line. Then, the determining means determines whether or not the communication phase not notified to the host device is stored in the managing means. The notifying means notifies the communication phase in response to the polling request from the host device each time. However, if the determining means determines that there is a communication phase not notified, the notifying means does not notify the polling request from the host device. For example, the oldest communication phase stored in the storage means is notified. Thus, it is possible to maintain communication consistency between the host device and the communication adapter. Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a configuration of a communication system including a facsimile adapter according to one embodiment of the present invention. In FIG. 1, the communication system includes a facsimile adapter 10, a facsimile adapter and a SCSI.
It comprises a host device 20 connected via a bus B, and a facsimile device 30 connected via a communication line L to a facsimile adapter 10. The facsimile adapter 10 has a function of a target for the host device 20 as an initiator, and controls the whole of the facsimile adapter 10.
11, a communication control unit 12 connected to the communication line L for controlling communication with the facsimile machine 30, a communication phase storage unit for sequentially storing communication phases in the communication control unit 12, and deleting the communication phase notified to the host device 13. a communication phase determining unit 14 for determining whether or not any of the communication phases stored in the communication phase storage unit 13 has not been notified to the host device 20; It has a SCSI control unit 15 that performs communication control with the host device 20 including control for notifying the polling request in order from the oldest communication phase. The communication control unit 12, the communication phase storage unit 13,
The communication phase determination unit 14 and the SCSI control unit 15 are connected to the CPU via the internal bus B1,
Under the control of U11. The host device 20 periodically polls the facsimile adapter 10 via the SCSI bus, and when the facsimile adapter 10 receives data from the facsimile device 30, acquires the received data. Further, the host device 20 has an initiator function for the facsimile adapter 10 and can perform facsimile transmission to the facsimile device 30 via the facsimile adapter 10. In the communication between the facsimile adapter 10 and the facsimile apparatus 30, normal facsimile communication is performed under the management of the communication phase of the facsimile communication shown in FIG. Next, a communication procedure between the host device 20 and the facsimile adapter 10 will be described. FIG. 2 is a diagram showing a schematic sequence between the host device 20 and the facsimile adapter 10. In FIG. 2, the host device 20 inquires of the facsimile adapter 10 whether there is reception from the facsimile device 30 by periodic polling (S20).
1). Here, the communication control unit 12 is connected to the facsimile machine 30.
Receives the incoming facsimile via the communication line L, the SCSI controller 15 notifies the host device 20 that the reception has occurred (S2). The host device 20, which has received the notification of the occurrence of the reception, issues a SCSI LUN (Logical Unit Number) allocation request to the facsimile adapter 10. In contrast, facsimile adapter 1
0 assigns the communication line L and the LUN that have received the call in association with each other, and then notifies the host device 20 of the assigned LUN (S3). This LUN is identification information for mutually recognizing the facsimile communication received by the facsimile adapter 10 between the host device 20 and the facsimile adapter 10. Therefore, in the subsequent sequence, the set LUN is used each time until the communication between the host device 20 and the facsimile adapter 10 is completed. On the other hand, the host device 20, which has received the set LUN from the facsimile adapter 10, issues a facsimile reception to the facsimile adapter 10 notifying that facsimile reception is possible (S4). Thereafter, the host device 20 uses the SCSI command “SEND MESSAGE” to the facsimile adapter 10 to
A FAX status request is made periodically (S5). The facsimile adapter 10 having received the FAX status request performs a communication phase history management process and a communication phase inquiry / notification process which will be described later.
A communication phase is set, and the SCSI command “GET” is sent to the host device 20 including the set communication phase.
FAX status using "MESSAGE" (S
6). Thereafter, the above-described sequence of S5 and S6 is repeated as many times as necessary by polling of the host device 20. After the facsimile reception of the facsimile adapter 10 ends (communication phase E of facsimile communication), the facsimile adapter 10
The FAX status (S8) including the communication phase E is notified to the FAX status request (S7). The host device 20, which has received the FAX status S8,
The release of the currently allocated LUN is notified (S
9) The communication of the currently set LUN between the host device 20 and the facsimile adapter 10 ends. Here, the detailed configuration of the FAX status request and the FAX status will be described with reference to FIG. As described above, the FAX status request and the FAX status use the SCSI standard. FIGS. 3A and 3B are diagrams showing a command format and a data format of a FAX status request. FIG. 3A shows the format of the SCSI command "SEND MESSAGE (6)".
The LUN 30 set by the facsimile adapter 10 is written in this command. FIG.
(B) shows “SEND MESSAGE DAT” which is SCSI data.
A "format, and data to be notified to the facsimile adapter 10 is transmitted. FIGS. 3C and 3D are diagrams showing a command format and a data format of the facsimile status. Figure (c) shows the SCSI command "G
ET MESSAGE (6) "format and fax
As with the status request command, the set LUN
31 is written. FIG. 4D shows the format of “GET MESSAGE DATA” which is SCSI data. In this data, a communication phase CP between the facsimile device 30 and the facsimile adapter 10 is written, and the host device At the same time, the status and the result of facsimile communication are stored between 5 bytes and 187 bytes and transmitted to the host device 20. Next, the history management processing of the communication phase and the inquiry / notification processing of the communication phase in the facsimile adapter 10 will be sequentially described with reference to FIGS. As shown in FIG. 4, in the history management processing procedure of the communication phase, first, when the communication control unit 12 receives an incoming call from the facsimile machine 30 via the communication line L,
The CPU 11 initializes the communication phase storage unit 13 (Step 101). Thereafter, communication control is performed by the communication control unit 12 in accordance with the facsimile communication protocol (step 102). This communication procedure is monitored and the CPU
11 determines whether the communication phase has changed (step 103). If the communication phase does not change, the determination in step 103 is repeated. If the communication phase changes, a new communication phase is additionally stored in the communication phase storage unit 13 (step 104), and the process proceeds to step 103. As described above, the communication phase storage unit 13
Each time a change occurs in the communication phase, a new communication phase is sequentially stored, and the history of the communication phase is managed. Next, as shown in FIG. 5, in the inquiry / notification process of the communication phase, first, the SCSI control unit 15
It is determined whether a FAX status request has been received from the host device 20 via the CSI bus B (step 20).
1) Repeat the determination in step 201 until a FAX status request is received. SCSI controller 15 is fax
Upon receiving the status request, the communication phase determining unit 14
First determines whether a communication phase is stored in the communication phase storage unit 13 (step 202). As a result, when a communication phase is stored in the communication phase storage unit 13, the communication phase determination unit 14 notifies the SCSI control unit 15 of the oldest communication phase stored in the communication phase storage unit 13 (step 203). ), Delete the oldest communication phase stored in the communication phase storage unit 13 (step 204), and proceed to step 206. On the other hand, in step 202, the communication phase storage unit 1
When the communication phase is not stored in the communication control unit 3, the communication phase determination unit 14 notifies the SCSI control unit 15 of the current communication phase in the communication control unit 12 (step 20).
5) Go to step 206. In step 206, the SCSI control unit 15 notifies the host device 20 of the notified communication phase as a part of the SCSI data shown in FIG. 3D, and proceeds to step 201 to execute the above-described processing in the communication phase E. Repeat until. That is, if there is any omission in communication phase notification, the communication phase is stored in the communication phase storage unit 13, the oldest communication phase among the stored communication phases is notified to the host device 20, and the communication phase If there is no notification omission, the communication phase is not stored in the communication phase storage unit 13, and the current communication phase is notified to the host device 20. Therefore, the host device 2
0 indicates the facsimile adapter 10 and the facsimile machine 3
The communication phase between 0 can be accurately recognized. As a result, consistency between the host device 20 and the facsimile adapter 10 is obtained, and the host device 2
0 malfunction or system down can be prevented beforehand. Further, a detailed configuration of the communication phase storage unit 13 will be described with reference to FIG. Here, the communication phase storage unit 13 performs storage management employing the ring buffer method, and the communication phase is registered each time the communication phase changes, and when the notification to the host device 20 is completed, the registered communication phase is registered. The communication phase is deleted. In FIG. 6, the communication phase storage unit 13 has a read pointer indicating a position where the communication phase is read and a write pointer indicating a position where the communication phase is written. The write pointer and the read pointer are located at the head address at the time of initialization, and when the communication phase is registered, the value of the write pointer is set to “1”.
When the notification of the communication phase is completed, the read pointer deletes the read communication phase and adds "1" to the value of the read pointer. Therefore, when there is no delay in the notification of the communication phase, the positions indicated by the write pointer and the read pointer are the same, and the communication phase is not registered at the position indicated by the write pointer and the read pointer, and the current communication is not performed. The phase will be notified. The storage contents in FIG. 6 indicate that the current communication phase is the communication phase D, and the communication phase B and the communication phase C are not notified. After reaching the final address, the write pointer and the read pointer return to the head address and repeat the same processing. As described above in detail, according to the present invention, the communication between the host device and the communication adapter is made consistent, and the malfunction of the host device and the communication adapter or the system down can be prevented. It has the advantage that it can be prevented. [0039]

【図面の簡単な説明】 【図1】本発明の一実施例であるファクシミリアダプタ
を含む通信システムの構成を示す図。 【図2】ホスト装置20とファクシミリアダプタ10と
の間の概略シーケンスを示す図。 【図3】FAXステータス要求及びFAXステータスの
詳細構成を示す図。 【図4】ファクシミリアダプタ10における通信フェー
ズの履歴管理処理手順を示すフローチャート。 【図5】ファクシミリアダプタ10における通信フェー
ズの問合せ/通知処理手順を示すフローチャート。 【図6】通信フェーズ記憶部13の詳細構成を示す図。 【図7】ファクシミリ通信の通信フェーズの概要を示す
図。 【符号の説明】 10…ファクシミリアダプタ 20…ホスト装置 30…ファクシミリ装置 11…CPU 12…通信制
御部 13…通信フェーズ記憶部 14…通信フェーズ判断部 15…SCSI制御部 L…通信回線 B…SCSIバ
ス B1…内部バス
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing a configuration of a communication system including a facsimile adapter according to one embodiment of the present invention. FIG. 2 is a diagram showing a schematic sequence between the host device 20 and the facsimile adapter 10; FIG. 3 is a diagram showing a detailed configuration of a FAX status request and a FAX status. FIG. 4 is a flowchart showing a history management processing procedure of a communication phase in the facsimile adapter 10; FIG. 5 is a flowchart showing a communication phase inquiry / notification processing procedure in the facsimile adapter 10; FIG. 6 is a diagram showing a detailed configuration of a communication phase storage unit 13; FIG. 7 is a diagram showing an outline of a communication phase of facsimile communication. [Description of Signs] 10 facsimile adapter 20 host device 30 facsimile device 11 CPU 12 communication control unit 13 communication phase storage unit 14 communication phase determination unit 15 SCSI control unit L communication line B SCSI bus B1: Internal bus

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/32 - 1/34 H04N 1/00 - 1/00 108 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/32-1/34 H04N 1/00-1/00 108

Claims (1)

(57)【特許請求の範囲】 【請求項1】 バスを介してイニシエーターとしてのホ
スト装置に接続され、通信回線を介して外部の通信装置
に接続されるターゲットとしての通信アダプタにおい
て、 前記通信装置と通信アダプタとの間の通信フェーズを管
理して記憶する管理手段と、 前記管理手段による管理内容に基づいて前記ホスト装置
に対して未通知の通信フェーズがあるか否かを判断する
判断手段と、 前記判断手段が未通知の通信フェーズがあると判断した
場合、前記ホスト装置のポーリング要求に対し、未通知
の通信フェーズを当該ホスト装置に通知する通知手段と
を具備することを特徴とする通信アダプタ。
Claims: 1. A communication adapter as a target connected to a host device as an initiator via a bus and connected to an external communication device via a communication line. Management means for managing and storing a communication phase between the device and the communication adapter; and determining means for determining whether or not there is a communication phase that has not been notified to the host device based on the management content of the management means. And a notifying unit for notifying the host device of the unnotified communication phase in response to the polling request of the host device when the determining unit determines that there is a communication phase of which the notification has not been performed. Communication adapter.
JP05776795A 1995-03-16 1995-03-16 Communication adapter Expired - Fee Related JP3362547B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05776795A JP3362547B2 (en) 1995-03-16 1995-03-16 Communication adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05776795A JP3362547B2 (en) 1995-03-16 1995-03-16 Communication adapter

Publications (2)

Publication Number Publication Date
JPH08256252A JPH08256252A (en) 1996-10-01
JP3362547B2 true JP3362547B2 (en) 2003-01-07

Family

ID=13065037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05776795A Expired - Fee Related JP3362547B2 (en) 1995-03-16 1995-03-16 Communication adapter

Country Status (1)

Country Link
JP (1) JP3362547B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE0401530D0 (en) * 2004-06-15 2004-06-15 Hms Ind Networks Ab Status indicator

Also Published As

Publication number Publication date
JPH08256252A (en) 1996-10-01

Similar Documents

Publication Publication Date Title
JP3993893B2 (en) Application programming interface for data transfer over bus and bus management
US7587627B2 (en) System and method for disaster recovery of data
JPH076099A (en) System and method for duplexing of remote data
EP0496177A1 (en) Method of transmitting data by buffer chaining between a host computer and a communication controller
CN112616024A (en) USB camera data acquisition method and device, electronic equipment and storage medium
JPH11327815A (en) Communication control method and apparatus, and communication system
JP3400772B2 (en) Packet transmission / reception processing device
JP3362547B2 (en) Communication adapter
JP3588416B2 (en) Printing system, print server device and terminal device
JP2023057210A (en) Information processing device, information processing method, and information processing program
JP3088683B2 (en) Data communication system
JP3580081B2 (en) Facsimile machine
JPH0628277A (en) File transfer device
JP2853607B2 (en) Communication system between jobs
JP2000059402A (en) Data transfer device, data transfer system and method, image processing device, and recording medium
JPH0586578B2 (en)
JPS6258579B2 (en)
JPH10214247A (en) External storage device interface
JP2576076B2 (en) Message rescue method for data communication system
JP2948380B2 (en) Data communication device
JPH05143498A (en) Method for coping with communication fault in distributed system
JPH0997237A (en) Input telegraphic message guaranteeing method for on-line transaction processing system
JPH02120956A (en) Communication control system
JPH0285947A (en) Data transmission system
JPH02233051A (en) Line controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071025

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081025

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091025

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101025

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111025

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees