JP3456234B2 - Target device - Google Patents

Target device

Info

Publication number
JP3456234B2
JP3456234B2 JP26662793A JP26662793A JP3456234B2 JP 3456234 B2 JP3456234 B2 JP 3456234B2 JP 26662793 A JP26662793 A JP 26662793A JP 26662793 A JP26662793 A JP 26662793A JP 3456234 B2 JP3456234 B2 JP 3456234B2
Authority
JP
Japan
Prior art keywords
parameter
command
group
read
parameters
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
JP26662793A
Other languages
Japanese (ja)
Other versions
JPH07121476A (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 JP26662793A priority Critical patent/JP3456234B2/en
Publication of JPH07121476A publication Critical patent/JPH07121476A/en
Application granted granted Critical
Publication of JP3456234B2 publication Critical patent/JP3456234B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、イニシエータ装置とS
CSI等のインタフェースを介して接続されるターゲッ
ト装置に関し、特に、イニシエータ装置によりパラメー
タの値がリード又はライトされるターゲット装置に関す
る。 【0002】 【従来の技術】従来において、小型計算機周辺の入出力
インタフェースとしてSCSI(Small Computer Syste
m Interface =スモール・コンピュータ・システム・イ
ンタフェース)が知られている。また近年においては、
SCSI−2(ANSI(アメリカ規格協会) X3T 9.2/86-
10)が定義されている。このSCSI−2の日本語版の
文献としては「スモールコンピュータシステムインタフ
ェース(SCSI−2)、技術資料、(社)日本事務機
会工業会、平成4年7月20日発行)がある。このSC
SI−2の定義によれば、SISC装置のターゲットと
して、従来からの磁気ディスク装置、光ディスク装置、
プリンタ装置に加えて、ファクシミリ装置アダプタなど
の通信装置を採用することが可能になっている。そし
て、上記SCSI−2の規約に準拠したコンピュータシ
ステムが実現されている。 【0003】なお、イニシエータとターゲットとがSC
SIバスを介して接続されて構成されるシステムとして
は、特開平5−1369285号公報に記載されたもの
が知られている。この公報のものは、SCSIのイニシ
エータの機能を有するホストコンピュータと、通信回線
を介したデータ通信機能及びSCSIのターゲットの機
能を備えた通信アダプタとをSCSIバスに接続し、そ
してホストコンピュータが、通信アダプタからデータを
受信する場合、通信アダプタに通信するデータがあるか
否かを確認するSCSIコマンドを定期的に実行し、デ
ータがあればそのデータ長を調べるSCSIコマンドを
実行した後、データを受信するSCSIコマンドを実行
することにより、双方向のデータ通信を行うようにして
いる。 【0004】上述したSCSI−2においては、一般的
にイニシエータがターゲット内のパラメータをリード
(読み出し)又はライト(書き込み)することができ
る。具体的には、イニシエータがコマンド・フェーズに
おいて、モードセンス(MODE SENSE)コマンド又はモー
ドセレクト(MODE SELECT )コマンドを使用して、ター
ゲットにリード又はライトの命令を送る。その後、デー
タ・フェーズに移行して、ライトのときはイニシエータ
からターゲットへデータが転送され、一方、リードのと
きはターゲットからイニシエータへデータが転送され
る。 【0005】このようなデータ転送が可能なSCSI−
2においては、データ・フェーズにおいて転送されるデ
ータ(パラメータ)は、ページと呼ばれる単位で転送さ
れるようになっているが、ユーザが自由に使用できるペ
ージ(つまりデータ)の個数が30個と限定されてい
る。 【0006】 【発明が解決しようとする課題】上述したように、上記
SCSIにおけるMODE SENSEコマンド/MODE SELECT コ
マンドを使用した従来のパラメータのリード/ライト方
法では、データ・フェーズにおいて転送されるデータ
(パラメータ)の個数が30個と限定されているので、
ターゲット側のパラメータ数が30個を越えて非常に多
い場合は、所定個数毎のパラメータをブロック化し、こ
のブロック化したブロック単位でデータ転送を実施しな
ければならない。 【0007】以上の問題点を具体例を挙げて説明する。
ここでパラメータの個数が3000であるとする。この
場合、ユーザが自由に使用できるデータの個数が30で
あるので、3000/30=100個を1ページ単位と
して30ページ分にブロック化しなければならない。こ
のブロック化した様子を図6に示す。図6において、P
0、P1、…、P29はそれぞれページを示し、またペ
ージP0において0〜99はパラメータの数(ここでは
100個となる)を示している。 【0008】図6において、ページP0の斜線で示され
る領域のパラメータをリードする場合は、イニシエータ
は、コマンド・フェーズで、ページP0全体をリードす
る旨を含むMODE SENSEコマンド及びMODE SELECT コマン
ドを使用して、ターゲットにリード命令を送る。その
後、データ・フェーズに移行する。そして、イニシエー
タには、データ・フェーズにおいてターゲットからのペ
ージP0全体が転送されるので、イニシエータは、転送
されたページP0内から、斜線で示される領域のパラメ
ータを読み込むことができる。 【0009】一方、ページP0の斜線で示される領域の
パラメータを書換えたい場合は、イニシエータは、コマ
ンド・フェーズでページP0全体をライトする旨を含む
MODESENSEコマンド及びMODE SELECT コマンドを使用し
て、ターゲットにライト命令を送る。そしてイニシエー
タは、データ・フェーズに移行して、新たな内容のペー
ジP0をターゲットへ転送する。この結果、ターゲット
において、変更前のページP0が、転送されたページP
0に更新される。 【0010】このように従来では、パラメータ単位でリ
ード/ライトすることはできず、100個分のパラメー
タを有するページ単位でリード/ライトしなければなら
なかった。このため、1つのパラメータについてアクセ
スしたい場合であっても、ページ単位で転送しなければ
ならないので、転送時間に多くの時間を必要とし、デー
タ転送処理効率が悪かった。 【0011】この発明は、データ転送処理効率を向上さ
せることのできるターゲット装置を提供することを目的
とする。 【0012】 【課題を解決するための手段】上記目的を達成するた
め、本発明は、イニシエータ装置(図1の2)と所定イ
ンターフェース(図1の1)を介して接続され、該イニ
シエータ装置によりグループ化されたパラメータ群の値
の読み出しまたは書き込みをグループ単位で行うターゲ
ット装置(図1の3)において、パラメータが属するグ
ループを特定するグループ情報と、該グループ内におけ
る該パラメータの位置を特定するパラメータ情報とを該
パラメータに対応させて記憶する記憶手段(図1の3
3)と、前記所定インターフェースを経て入力される前
記イニシエータ装置からの所望のパラメータに対応する
グループ情報およびパラメータ情報を含むバッファコマ
ンドを受信すると、該受信したグループ情報およびパラ
メータ情報に基づき、前記記憶手段に記憶された所望の
パラメータの読み出しまたは書き込みを行うアクセス手
段(図1の32)とを具備することを特徴とする。 【0013】 【作用】本発明においては、記憶手段にはパラメータ群
が、該各パラメータに対応して番地指定可能に保持さ
れ、アクセス手段が、所定インタフェースを経て入力さ
れるイニシエータ装置からの、所望のパラメータの番地
情報を含むリードバッファコマンド又はライトバッファ
コマンドを受信すると、前記記憶手段に対して、当該番
地情報に対応するパラメータをアクセスする。従って、
複数のパラメータが存在している場合であっても、番地
情報に対応するパラメータを、パラメータ単位でアクセ
スすることができる。 【0014】 【実施例】以下、本発明の実施例を、図1乃至図5を参
照して詳細に説明する。 【0015】図1は、本発明に係るターゲット装置を有
するコンピュータシステムの一実施例を示す構成図であ
る。同図において、SCSIバス1には、イニシエータ
装置2と、ターゲット装置3とが接続されている。 【0016】イニシエータ装置2において、主制御部2
1はパラメータのリード又はライト(以下、リード/ラ
イトという)の指示をリード/ライト処理部22に与え
る。リード/ライト処理部22は、予め設定されたフォ
ーマットに従って、リードバッファ(READ BUFFER )コ
マンド又はライトバッファ(WRITE BUFFER)コマンド
(以下、READ BUFFER コマンド/WRITE BUFFERコマンド
という)を作成して(この詳細については後述する)、
コマンド制御部23に渡す。コマンド制御部23では、
SCSIの各フェーズに従って、ターゲット装置3とS
CSIバス1を介してデータの送受を行う。 【0017】READ BUFFER コマンド/WRITE BUFFERコマ
ンドは、本来、SCSIバスを介してターゲットのメモ
リの信頼性をテストするために用いられるものである。
これらのコマンドも、MODE SENSEコマンド及びMODE SEL
ECT コマンドと同様に、従来はページ単位にアクセスす
るのに用いられていたものである。 【0018】ターゲット装置3において、コマンド制御
部31は、SCSIの各フェーズに従って、イニシエー
タ装置2とSCSIバス1を介してデータの送受を行
う。主制御部32は、コマンド制御部31から受け取っ
たREAD BUFFER コマンド/WRITE BUFFERコマンドに基づ
いてメモリ33をアクセスすると共に、アクセス結果を
コマンド制御部31に通知する。メモリ33は、パラメ
ータ群を、該各パラメータに対応して番地指定可能に保
持する(この詳細については後述する)。 【0019】ここで、請求項1に示した発明の構成要件
と、図1に示した構成要素との対応関係について説明す
る。上記イニシエータ装置はイニシエータ装置2に対応
し、上記ターゲット装置はターゲット装置3に対応し、
上記所定インタフェースはSCSIバス1に対応し、上
記記憶手段はメモリ33に対応し、上記アクセス手段は
主制御部33に対応している。 【0020】図2は、メモリ33に保持されるパラメー
タ群の保持形式を示している。ここでは、図6に示した
従来のパラメータ群と同じものを格納する場合について
説明する。この図2に示す例においては、メモリ33
に、グループ単位を表すレベルであるグループ番号領域
210と、グループに包含されるパラメータ単位を表す
レベルであるパラメータ領域220とが形成される。グ
ループ領域210において、符号0、1、2、…、29
はグループ番号を示し、パラメータ領域220における
グループ0に対応する領域において、符号0、1、2、
…、99はオフセット値を示している。同様に、グルー
プ2、…、29に対応する領域においても、0、1、
2、…、99のオフセット値が対応付けされている。各
オフセット値に対応する領域にはパラメータが格納され
ている。すなわち、図2に示す例においては、100個
単位のパラメータが30のグループにグルーピングされ
ていることになる。もちろん、グルーピングする際に
は、各グループのパラメータの数を同一にする必要はな
い。 【0021】そして、グループ番号とオフセット値を指
定することにより、特定のパラメータのリード/ライト
のアクセスを実施することができる。例えば図2に示さ
れる斜線部分の領域に対するリード/ライトのアクセス
を実施したい場合は、グループ番号としてグループ0を
指定し、オフセット値として「1」を指定することによ
り、オフセット値に対応する領域のパラメータに対して
アクセスすることができる。 【0022】なおターゲット装置3内のメモリ33は上
記SCSI−2に定義されている論理ユニット(すなわ
ち論理ユニット=ターゲットを介してアドレス指定可能
な物理的、仮想的周辺装置)として設定され、この論理
ユニットには、ターゲット装置3において一意に決定さ
れ、上記SCSI−2に定義されている論理ユニット番
号(すなわち論理ユニット番号=論理ユニットを区別す
るためにコード化された3ビットの識別子)が付与され
る。 【0023】図3は、上記SCSI−2のREAD BUFFER
コマンド/WRITE BUFFERコマンドのフォーマットを示し
ている。図3に示したフォーマットは上記SCSI−2
に定義されている内容と同様になっている。なお、この
実施例においては、バッファIDをグループ番号指定
(この例では0〜29)に割り当て、バッファオフセッ
トをグループ毎のオフセット値指定(この例では0〜9
9)に割り当てるようにしている。なお操作コードとし
て、リードのときは「3Ch」が、ライトのときは「3
Bh」がそれぞれ指定される。また論理ユニット番号と
して、ターゲット装置3内のメモリ33に対応する論理
ユニットを示す論理ユニット番号が指定される。 【0024】次に、本実施例のREAD BUFFER コマンド/
WRITE BUFFERコマンドを用いたパラメータのリード/ラ
イト処理について、図4及び図5を参照して説明する。
なお、図4はパラメータのリード処理動作のシーケンス
図を示し、図5はパラメータのライト処理動作のシーケ
ンス図を示している。 【0025】最初にリード処理について説明する。ここ
では、図2に示される斜線部分の領域のパラメータをリ
ードする場合の処理について説明する。 【0026】イニシエータ装置2において、主制御部2
1が、上記斜線部分の領域のパラメータをリードするよ
うリード/ライト処理部22に命令すると、図4に示す
ように、リード/ライト処理部22は、図3に示したフ
ォーマットのREAD BUFFER コマンドにおいて、操作コー
ドに「3Ch」を、論理ユニット番号に「メモリ33に
対応する論理ユニットを示す論理ユニット番号」を、モ
ードに「ベンダーモード」を、バッファIDに「パラメ
ータのグループ番号(この例ではグループ0を示す0の
値」を、バッファオフセットに「グループ毎のオフセッ
ト値(この例ではオフセット値1を示す1の値」をそれ
ぞれ設定する(S410)。 【0027】なおモードにベンダーモードを設定するこ
とにより、任意にコマンド内容を使用できるようになっ
ている。すなわちバッファID及びバッファオフセット
の内容は上記SCSI−2の規定に束縛されない。 【0028】上述したように各値が設定されたREAD BUF
FER コマンドはコマンド制御部23に渡されるので、コ
マンド制御部23は、コマンド・フェーズに従って、渡
されたREAD BUFFER コマンドをターゲット装置3へ転送
する(S420)。その後、コマンド制御部23は、デ
ータ・フェーズに移行して、ターゲット装置3からのパ
ラメータの受信待ちをする。 【0029】一方、ターゲット装置3においては、コマ
ンド制御部31が、コマンド・フェーズで、SCSIバ
ス1を経て入力されたイニシエータ装置2からのREAD B
UFFER コマンド受信して(S430)、主制御部32に
渡す。主制御部32では、受け取ったREAD BUFFER コマ
ンド内のバッファIDとバッファオフセットに基づい
て、該当するパラメータをメモリ33に記憶されている
データから検索する(S440)。この場合は、グルー
プ番号=0、オフセット値=1であるので、図2に示す
例において、斜線部分の領域のパラメータが検索される
こととなる。このようにして検索されたパラメータは主
制御部32からコマンド制御部31に渡される。すると
コマンド制御31は、データ・フェーズに移行して、主
制御部32から渡されたパラメータをイニシエータ装置
2へ転送する(S450)。 【0030】そしてイニシエータ装置2においては、デ
ータ・フェーズに移行しているコマンド制御部23は、
SCSIバス1を経て入力されたターゲット装置3から
のパラメータを受信する(S460)。このパラメータ
は、リード/ライト処理部22を経て、処理の依頼先で
ある主制御部21に入力される。 【0031】これ以降は、イニシエータ装置2及びター
ゲット装置3においては、SCSIに規定されているフ
ェーズに従う。 【0032】次に、ライト処理について説明する。ここ
では、図2に示される斜線部分の領域のパラメータをラ
イトする場合の処理について説明する。 【0033】イニシエータ装置2において、主制御部2
1が、上記斜線部分の領域のパラメータをライト(書き
換え)するようリード/ライト処理部22に命令する
と、図5に示すように、リード/ライト処理部22は、
図3に示したフォーマットのWRITE BUFFERコマンドにお
いて、上記リードの場合と同様に、操作コード、論理ユ
ニット番号、モード、バッファID及びバッファオフセ
ットに、各値を設定する(S510)。この場合は、操
作コードに「3Bh」が設定され、それ以外は上記リー
ドの場合において設定した内容と同一のものが設定され
る。 【0034】上述したように各値が設定されたWRITE BU
FFERコマンドはコマンド制御部23に渡されるので、コ
マンド制御部23は、コマンド・フェーズに従って、渡
されたWRITE BUFFERコマンドをターゲット装置3へ送信
する(S520)。その後、コマンド制御部23は、デ
ータ・フェーズに移行して、ライトしたいパラメータ値
をターゲット装置3へ送信する(S530)。 【0035】一方、ターゲット装置3においては、コマ
ンド制御部31が、SCSIバス1を通じて入力された
イニシエータ装置2からのWRITE BUFFERコマンドを受信
して(S540)、主制御部32に渡す。その後、デー
タ・フェーズに移行して、SCSIバス1を通じて入力
されたイニシエータ装置2からのパラメータ値を受信し
て(S550)、主制御部32に渡す。 【0036】主制御部32では、コマンド制御部31か
ら受け取ったWRITE BUFFERコマンド内のバッファIDと
バッファオフセットに基づいて、該当するパラメータを
メモリ33に記憶されているデータから検索すると共に
(S560)、該検索したパラメータを、コマンド制御
部31から受け取ったパラメータの値に変更する(書き
換える)(S570)。 【0037】これ以降は、イニシエータ装置2及びター
ゲット装置3においては、SCSIに規定されているフ
ェーズに従う。 【0038】なお上述した実施例では、パラメータ群
を、図2に示すような保持形式いわゆる2次元配列的に
保持するようにしているが、これに限定されることな
く、次のようにしても良い。すなわち、グループ0、グ
ループ1、…、グループ29をそれぞれ独立した領域と
し、そして上述したように、グループ番号とオフセット
値の指定により所望のパラメータを指定するようにして
も良い。換言すれば、グループというレベルと、該グル
ープに包含されるパラメータの下位レベルとに階層化す
るということである。 【0039】以上説明した様に本実施例によれば、ター
ゲット装置3内のメモリ33にはパラメータ群が、グル
ープ化され且つ該各パラメータに対応して番地指定可能
に保持され、そして主制御部32が、SCSIバス1及
びコマンド制御部31を経て入力されるイニシエータ装
置2からの、所望のパラメータの番地情報(ベージ番号
及びオフセット値)を含むREAD BUFFER コマンド/WRIT
E BUFFERコマンドに基づいてメモリ33内に格納されて
いるパラメータをアクセスするようにしているので、従
来の如く、MODE SENSEコマンド/MODE SELECT コマンド
を使用した場合において規定される、ユーザが自由に使
用可能なデータ数(すなわち30個)に制約されること
なく、READ BUFFER コマンド/WRITE BUFFERコマンドで
設定可能な個数のデータ(パラメータ)のアクセスを実
施することができる。 【0040】従って、パラメータのリード/ライトのア
クセス単位をパラメータ単位とすることができるので、
データ転送時間を短縮することができる。 【0041】 【発明の効果】以上詳細に説明したように、本発明によ
れば、記憶手段にはパラメータ群が、該各パラメータに
対応して番地指定可能に保持され、アクセス手段が、所
定インタフェースを経て入力されるイニシエータ装置か
らの、所望のパラメータの番地情報を含むリードバッフ
ァコマンド又はライトバッファコマンドを受信すると、
前記記憶手段に対して、当該番地情報に対応するパラメ
ータをアクセスするようにしているので、パラメータ単
位でアクセスすることができる。 【0042】しかも、複数のパラメータ中の1つのパラ
メータに対するアクセスであって、且つ、従来において
は所定個数のパラメータを有するブロック単位毎にアク
セスしなければならない様な場合であっても、本発明に
よれば、パラメータ単位で、該当するパラメータに対す
るアクセスを実施することができることとなり、よって
従来と比較して、パラメータ単位でデータ転送すること
ができ、データ転送時間を短縮することができる。 【0043】以上のことから、データ転送処理効率を向
上させるターゲット装置を提供することができるという
利点がある。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an initiator device and an S
The present invention relates to a target device connected via an interface such as CSI, and more particularly, to a target device in which parameter values are read or written by an initiator device. 2. Description of the Related Art Conventionally, SCSI (Small Computer System) has been used as an input / output interface around a small computer.
m Interface = small computer system interface). In recent years,
SCSI-2 (ANSI (American Standards Association) X3T 9.2 / 86-
10) is defined. The literature of the Japanese version of SCSI-2 is "Small Computer System Interface (SCSI-2), Technical Data, Japan Business Opportunities Association, published on July 20, 1992."
According to the definition of SI-2, as a target of the SISC device, a conventional magnetic disk device, an optical disk device,
In addition to the printer device, it is possible to employ a communication device such as a facsimile device adapter. Then, a computer system based on the SCSI-2 protocol is realized. Note that the initiator and the target are SC
As a system connected via an SI bus, a system described in Japanese Patent Application Laid-Open No. Hei 5-1369285 is known. In this publication, a host computer having a SCSI initiator function and a communication adapter having a data communication function via a communication line and a SCSI target function are connected to a SCSI bus. When receiving data from the adapter, the communication adapter periodically executes a SCSI command to check whether there is data to communicate, and if there is data, executes a SCSI command to check the data length, and then receives data. By executing the SCSI command, bi-directional data communication is performed. [0004] In the above-described SCSI-2, an initiator can generally read (read) or write (write) parameters in a target. Specifically, in the command phase, the initiator sends a read or write command to the target using a mode sense (MODE SENSE) command or a mode select (MODE SELECT) command. Thereafter, the process proceeds to the data phase, in which data is transferred from the initiator to the target in the case of writing, while data is transferred from the target to the initiator in the case of reading. [0005] SCSI-capable of such data transfer
In 2, the data (parameters) transferred in the data phase are transferred in units called pages, but the number of pages (ie, data) that can be freely used by the user is limited to 30. Have been. [0006] As described above, in the conventional parameter read / write method using the MODE SENSE command / MODE SELECT command in the SCSI, data (parameters) transferred in the data phase is used. ) Is limited to 30.
When the number of parameters on the target side exceeds 30 and is very large, it is necessary to block a predetermined number of parameters and to perform data transfer in block units. The above problems will be described with reference to specific examples.
Here, it is assumed that the number of parameters is 3000. In this case, since the number of data that can be freely used by the user is 30, 3000/30 = 100 data must be divided into 30 pages in units of one page. FIG. 6 shows this block. In FIG.
0, P1,..., P29 each indicate a page, and 0 to 99 in the page P0 indicate the number of parameters (here, 100). In FIG. 6, when reading parameters in a shaded area of page P0, the initiator uses a MODE SENSE command and a MODE SELECT command including a command to read the entire page P0 in a command phase. Sends a read command to the target. Then, it moves to the data phase. Then, since the entire page P0 from the target is transferred to the initiator in the data phase, the initiator can read the parameters of the area indicated by the diagonal lines from the transferred page P0. On the other hand, when it is desired to rewrite the parameters of the area of the page P0 indicated by the diagonal lines, the initiator includes writing the entire page P0 in the command phase.
Send a write command to the target using the MODESENSE and MODE SELECT commands. Then, the initiator shifts to the data phase and transfers the page P0 of the new content to the target. As a result, in the target, the page P0 before the change is
Updated to 0. As described above, conventionally, reading / writing cannot be performed in units of parameters, and reading / writing must be performed in units of pages having 100 parameters. For this reason, even if it is desired to access one parameter, the data must be transferred in page units, so that a long transfer time is required and the data transfer processing efficiency is poor. An object of the present invention is to provide a target device that can improve the efficiency of data transfer processing. In order to achieve the above object, the present invention is connected to an initiator device (2 in FIG. 1) via a predetermined interface (1 in FIG. 1), and is controlled by the initiator device. In a target device (3 in FIG. 1) that reads or writes values of grouped parameter groups in units of groups, group information for specifying a group to which a parameter belongs, and a parameter for specifying the position of the parameter in the group Storage means (3 in FIG. 1) for storing information and information in association with the parameter.
And 3) receiving buffer commands including group information and parameter information corresponding to desired parameters from the initiator device input via the predetermined interface, based on the received group information and parameter information. And an access means (32 in FIG. 1) for reading or writing a desired parameter stored in the memory. According to the present invention, a parameter group is held in the storage means so as to be able to specify an address corresponding to each parameter, and the access means is provided with a desired parameter from the initiator device input via a predetermined interface. When a read buffer command or a write buffer command including the address information of the parameter is received, the storage unit is accessed for the parameter corresponding to the address information. Therefore,
Even when there are a plurality of parameters, the parameters corresponding to the address information can be accessed in parameter units. An embodiment of the present invention will be described below in detail with reference to FIGS. FIG. 1 is a block diagram showing one embodiment of a computer system having a target device according to the present invention. In FIG. 1, an initiator device 2 and a target device 3 are connected to a SCSI bus 1. In the initiator device 2, the main control unit 2
Numeral 1 gives a read / write (hereinafter, read / write) instruction of a parameter to the read / write processing unit 22. The read / write processing unit 22 creates a read buffer (READ BUFFER) command or a write buffer (WRITE BUFFER) command (hereinafter, referred to as a READ BUFFER command / WRITE BUFFER command) in accordance with a preset format (for details of this, refer to FIG. Will be described later),
It is passed to the command control unit 23. In the command control unit 23,
The target device 3 and the S
Data is transmitted and received via the CSI bus 1. The READ BUFFER command / WRITE BUFFER command is originally used to test the reliability of the target memory via the SCSI bus.
These commands are also MODE SENSE command and MODE SEL
Like the ECT command, it has been used to access pages in the past. In the target device 3, the command control unit 31 sends and receives data to and from the initiator device 2 and the SCSI bus 1 in accordance with each SCSI phase. The main control unit 32 accesses the memory 33 based on the READ BUFFER command / WRITE BUFFER command received from the command control unit 31, and notifies the command control unit 31 of the access result. The memory 33 holds a parameter group so that an address can be designated corresponding to each parameter (the details will be described later). Here, the correspondence between the constituent elements of the invention described in claim 1 and the constituent elements shown in FIG. 1 will be described. The initiator device corresponds to the initiator device 2, the target device corresponds to the target device 3,
The predetermined interface corresponds to the SCSI bus 1, the storage means corresponds to the memory 33, and the access means corresponds to the main control unit 33. FIG. 2 shows a holding format of a parameter group held in the memory 33. Here, a case where the same parameter group as the conventional parameter group shown in FIG. 6 is stored will be described. In the example shown in FIG.
In addition, a group number area 210 which is a level indicating a group unit and a parameter area 220 which is a level indicating a parameter unit included in the group are formed. In the group area 210, reference numerals 0, 1, 2,.
Indicates a group number. In an area corresponding to group 0 in the parameter area 220, reference numerals 0, 1, 2,.
.., 99 indicate offset values. Similarly, in the areas corresponding to groups 2,.
2,..., 99 are associated with each other. A parameter is stored in an area corresponding to each offset value. That is, in the example shown in FIG. 2, the parameters in units of 100 are grouped into 30 groups. Of course, when grouping, it is not necessary to make the number of parameters of each group the same. By specifying a group number and an offset value, read / write access of a specific parameter can be performed. For example, when it is desired to execute read / write access to the shaded area shown in FIG. 2, by specifying group 0 as the group number and “1” as the offset value, the area corresponding to the offset value is designated. You can access parameters. The memory 33 in the target device 3 is set as a logical unit defined by the SCSI-2 (that is, a logical unit = a physical or virtual peripheral device addressable via a target). Each unit is uniquely assigned in the target device 3 and given a logical unit number defined in the SCSI-2 (that is, a logical unit number = a 3-bit identifier coded to distinguish the logical unit). You. FIG. 3 shows the READ BUFFER of the SCSI-2.
The format of the command / WRITE BUFFER command is shown. The format shown in FIG.
It is the same as the content defined in In this embodiment, a buffer ID is assigned to a group number designation (0 to 29 in this example), and a buffer offset is designated for each group by an offset value (0 to 9 in this example).
9). Note that the operation code is “3Ch” for read, and “3Ch” for write.
Bh "is specified. Further, a logical unit number indicating a logical unit corresponding to the memory 33 in the target device 3 is specified as the logical unit number. Next, the READ BUFFER command /
The parameter read / write processing using the WRITE BUFFER command will be described with reference to FIGS.
FIG. 4 is a sequence diagram of a parameter read processing operation, and FIG. 5 is a sequence diagram of a parameter write processing operation. First, the read processing will be described. Here, the processing in the case of reading the parameters of the shaded area shown in FIG. 2 will be described. In the initiator device 2, the main control unit 2
1 instructs the read / write processing unit 22 to read the parameters in the hatched area, as shown in FIG. 4, the read / write processing unit 22 executes the READ BUFFER command in the format shown in FIG. , The operation code is “3Ch”, the logical unit number is “logical unit number indicating the logical unit corresponding to the memory 33”, the mode is “vendor mode”, and the buffer ID is “parameter group number (in this example, group A value of 0 indicating 0 is set, and an offset value of each group (a value of 1 indicating an offset value of 1 in this example) is set as the buffer offset (S410) Note that the bender mode is set as the mode. As a result, the command contents can be arbitrarily used, that is, the buffer ID and the buffer off. The contents of the set are not bound by the above SCSI-2 rules [0028] The READ BUF in which each value is set as described above.
Since the FER command is passed to the command control unit 23, the command control unit 23 transfers the passed READ BUFFER command to the target device 3 according to the command phase (S420). After that, the command control unit 23 shifts to the data phase and waits for reception of a parameter from the target device 3. On the other hand, in the target device 3, the command control section 31 reads the READ B from the initiator device 2 input via the SCSI bus 1 in the command phase.
Upon receiving the UFFER command (S430), the command is passed to the main control unit 32. The main control unit 32 searches the data stored in the memory 33 for a corresponding parameter based on the buffer ID and the buffer offset in the received READ BUFFER command (S440). In this case, since the group number = 0 and the offset value = 1, in the example shown in FIG. 2, the parameters in the shaded area are searched. The parameters searched in this way are passed from the main control unit 32 to the command control unit 31. Then, the command control 31 shifts to the data phase and transfers the parameters passed from the main control unit 32 to the initiator device 2 (S450). In the initiator device 2, the command control unit 23 that has shifted to the data phase is
The parameters received from the target device 3 via the SCSI bus 1 are received (S460). These parameters are input via the read / write processing unit 22 to the main control unit 21 to which the processing is requested. Thereafter, the initiator device 2 and the target device 3 follow the phases defined by the SCSI. Next, the write process will be described. Here, a description will be given of a process for writing the parameters of the shaded area shown in FIG. In the initiator device 2, the main control unit 2
1 instructs the read / write processing unit 22 to write (rewrite) the parameters in the shaded area, as shown in FIG. 5, the read / write processing unit 22
In the WRITE BUFFER command of the format shown in FIG. 3, each value is set to the operation code, the logical unit number, the mode, the buffer ID, and the buffer offset as in the case of the above-mentioned read (S510). In this case, "3Bh" is set in the operation code, and otherwise, the same contents as those set in the case of the above read are set. As described above, the WRITE BU in which each value is set
Since the FFER command is passed to the command control unit 23, the command control unit 23 transmits the passed WRITE BUFFER command to the target device 3 according to the command phase (S520). Thereafter, the command control unit 23 shifts to the data phase and transmits the parameter value to be written to the target device 3 (S530). On the other hand, in the target device 3, the command control unit 31 receives the WRITE BUFFER command from the initiator device 2 input through the SCSI bus 1 (S540) and passes it to the main control unit 32. After that, the process proceeds to the data phase, receives the parameter value from the initiator device 2 input through the SCSI bus 1 (S550), and passes it to the main control unit 32. The main control unit 32 retrieves the corresponding parameter from the data stored in the memory 33 based on the buffer ID and the buffer offset in the WRITE BUFFER command received from the command control unit 31 (S560). The searched parameter is changed (rewritten) to the value of the parameter received from the command control unit 31 (S570). Thereafter, the initiator device 2 and the target device 3 follow the phase defined by the SCSI. In the above-described embodiment, the parameter groups are stored in a storage format as shown in FIG. 2, that is, in a two-dimensional array. However, the present invention is not limited to this. good. That is, the group 0, the group 1,..., And the group 29 may be independent areas, and the desired parameter may be specified by specifying the group number and the offset value as described above. In other words, hierarchies into a group and a lower level of parameters included in the group. As described above, according to the present embodiment, the parameters are grouped in the memory 33 in the target device 3 and held so that addresses can be designated corresponding to the respective parameters. A READ BUFFER command / WRIT 32 includes address information (page number and offset value) of a desired parameter from the initiator device 2 input via the SCSI bus 1 and the command control unit 31.
Since the parameters stored in the memory 33 are accessed based on the E BUFFER command, the user can freely use the parameters defined when the MODE SENSE command / MODE SELECT command is used, as in the related art. The data (parameters) of the number that can be set by the READ BUFFER command / WRITE BUFFER command can be accessed without being limited by the appropriate number of data (that is, 30). Therefore, the parameter read / write access unit can be set to the parameter unit.
Data transfer time can be reduced. As described in detail above, according to the present invention, a parameter group is held in a storage means so as to be able to designate an address corresponding to each parameter, and an access means is provided with a predetermined interface. When a read buffer command or a write buffer command including address information of a desired parameter is received from the initiator device input through
Since the parameter corresponding to the address information is accessed to the storage means, the parameter can be accessed in parameter units. Further, even if the access is to one of a plurality of parameters and the access must be made in units of blocks having a predetermined number of parameters in the related art, the present invention is not limited to this. According to this, access to the corresponding parameter can be performed in parameter units, so that data can be transferred in parameter units as compared with the related art, and the data transfer time can be reduced. As described above, there is an advantage that a target device capable of improving the data transfer processing efficiency can be provided.

【図面の簡単な説明】 【図1】本発明に係るターゲット装置を有するコンピュ
ータシステムの構成を示す構成図。 【図2】パラメータ群を保持する保持形式を説明するた
めの図。 【図3】READ BUFFER コマンド及びWRITE BUFFERコマン
ドのフォーマットの一例を示す図。 【図4】READ BUFFER コマンドを用いたパラメータのリ
ード処理動作を示すシーケンス図。 【図5】WRITE BUFFERコマンドを用いたパラメータのラ
イト処理動作を示すシーケンス図。 【図6】従来におけるパラメータのリード及びライトの
動作を説明するための図。 【符号の説明】 1…SCSIバス、2…イニシエータ装置、3…ターゲ
ット装置、21、32…主制御部、22…リーダ/ライ
ト処理部、23、31…コマンド制御部、33…メモ
リ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a configuration diagram showing a configuration of a computer system having a target device according to the present invention. FIG. 2 is a view for explaining a holding format for holding a parameter group; FIG. 3 is a diagram showing an example of a format of a READ BUFFER command and a WRITE BUFFER command. FIG. 4 is a sequence diagram showing a parameter read processing operation using a READ BUFFER command; FIG. 5 is a sequence diagram showing a parameter write processing operation using a WRITE BUFFER command. FIG. 6 is a diagram for explaining a conventional parameter read and write operation. [Description of Signs] 1 SCSI bus, 2 initiator device, 3 target device, 21, 32 main control unit, 22 reader / write processing unit, 23, 31 command control unit, 33 memory.

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 13/42 310 G06F 3/06 301 WPI(DIALOG)Continuation of the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 13/42 310 G06F 3/06 301 WPI (DIALOG)

Claims (1)

(57)【特許請求の範囲】 【請求項1】 イニシエータ装置と所定インターフェー
スを介して接続され、該イニシエータ装置によりグルー
プ化されたパラメータ群の値の読み出しまたは書き込み
をグループ単位で行うターゲット装置において、 パラメータが属するグループを特定するグループ情報
と、該グループ内における該パラメータの位置を特定す
るパラメータ情報とを該パラメータに対応させて記憶す
る記憶手段と、 前記所定インターフェースを経て入力される前記イニシ
エータ装置からの所望のパラメータに対応するグループ
情報およびパラメータ情報を含むバッファコマンドを受
信すると、該受信したグループ情報およびパラメータ情
報に基づき、前記記憶手段に記憶された所望のパラメー
タの読み出しまたは書き込みを行うアクセス手段とを具
備することを特徴とするターゲット装置。
(57) [Claim 1] In a target device which is connected to an initiator device via a predetermined interface and reads or writes a value of a parameter group grouped by the initiator device in a group unit, Storage means for storing group information for specifying a group to which a parameter belongs, and parameter information for specifying the position of the parameter in the group in association with the parameter; and from the initiator device input via the predetermined interface. When the buffer command including the group information and the parameter information corresponding to the desired parameter is received, an access for reading or writing the desired parameter stored in the storage means is performed based on the received group information and the parameter information. Target apparatus characterized by and means.
JP26662793A 1993-10-25 1993-10-25 Target device Expired - Fee Related JP3456234B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26662793A JP3456234B2 (en) 1993-10-25 1993-10-25 Target device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26662793A JP3456234B2 (en) 1993-10-25 1993-10-25 Target device

Publications (2)

Publication Number Publication Date
JPH07121476A JPH07121476A (en) 1995-05-12
JP3456234B2 true JP3456234B2 (en) 2003-10-14

Family

ID=17433453

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26662793A Expired - Fee Related JP3456234B2 (en) 1993-10-25 1993-10-25 Target device

Country Status (1)

Country Link
JP (1) JP3456234B2 (en)

Also Published As

Publication number Publication date
JPH07121476A (en) 1995-05-12

Similar Documents

Publication Publication Date Title
JP2582520B2 (en) Data transfer method between memory and auxiliary storage device
KR100345632B1 (en) A memory device and a method for controlling the same
US6748486B2 (en) Method, system, and data structures for superimposing data records in a first data format to memory in a second data format
US6513102B2 (en) Internal copy for a storage controller
JP2804115B2 (en) Disk file system
JPH05508038A (en) Unix peripheral interface
JPH11282629A (en) Method for dynamically mapping data and command between systems and signal carrier medium and device
JP2005293205A (en) Storage control device, control method, and control program
US5996045A (en) IDE disk drive arrangement that combines the capacity of a master drive and slave drive while hiding the presence of slave drive to a host computer
US6092170A (en) Data transfer apparatus between devices
US8010733B1 (en) Methods and apparatus for accessing content
JPH0527915A (en) Information recording and reproducing system
US6697866B1 (en) Access control method for data stored in fixed-block length format in computer configurations utilizing variable length data format interfaces
JP3456234B2 (en) Target device
US20050223180A1 (en) Accelerating the execution of I/O operations in a storage system
JP2001014219A (en) Method and device for controlling cache
JP3376316B2 (en) Disk array device, high-speed communication method used therefor, and recording medium recording control program therefor
JPH11149455A (en) Memory disk sharing method and its executing device
TW200809597A (en) Method and system for device to request and operate an external buffer provided from the host
JP2665180B2 (en) Disk cache buffer allocation method
JPS63213018A (en) External memory control device
JP4285202B2 (en) Compound computer system and compound I / O system
JP2857602B2 (en) Semiconductor file memory device
JPS59165165A (en) Fast input and output processing system
JPH0477916A (en) Magnetic disk device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees