JP2002051100A - Repeater and control method therefor - Google Patents

Repeater and control method therefor

Info

Publication number
JP2002051100A
JP2002051100A JP2000237127A JP2000237127A JP2002051100A JP 2002051100 A JP2002051100 A JP 2002051100A JP 2000237127 A JP2000237127 A JP 2000237127A JP 2000237127 A JP2000237127 A JP 2000237127A JP 2002051100 A JP2002051100 A JP 2002051100A
Authority
JP
Japan
Prior art keywords
interface
data
storage area
interfaces
combination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000237127A
Other languages
Japanese (ja)
Inventor
Hiroyuki Ishikawa
寛幸 石川
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.)
Naltec Inc
Original Assignee
Naltec Inc
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 Naltec Inc filed Critical Naltec Inc
Priority to JP2000237127A priority Critical patent/JP2002051100A/en
Publication of JP2002051100A publication Critical patent/JP2002051100A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a compact repeater, which can transfer the data of large capacitance at high speed and further reduces costs, and a control method therefor. SOLUTION: A buffer 32 of an interface converter 10 is virtually divided into nine blocks B0-B8. While only a job to use interfaces 23 and 25 is under progress, the blocks B1 and B3-B9 are assigned to the combination of the interfaces 23 and 25. When a job to use interfaces 22 and 26 is added during the progress of this job, on the other hand, the blocks B1, B3, B4 and B5 are assigned to the combination of the interfaces 23 and 25 and the blocks B0, B6, B7 and B8 are assigned to the combination of the interfaces 22 and 26. Thus, since the area of an incorporated memory can be effectively utilized, data can be transferred at high speed without increasing memory capacity and further, the cost reduction and compaction of the device can be attained.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、IEEE1284
インターフェースやIEEE1394インターフェース
などの同一または異なる種類の複数のインターフェース
を備えたインターフェース変換装置等の中継装置および
その制御方法に関するものである。
TECHNICAL FIELD The present invention relates to an IEEE 1284
The present invention relates to a relay device such as an interface conversion device including a plurality of interfaces of the same or different types such as an interface and an IEEE 1394 interface, and a control method thereof.

【0002】[0002]

【従来の技術】近年、次世代の高速シリアルデータ転送
用のインターフェースとして注目されているIEEE1
394インターフェースが搭載されたパーソナルコンピ
ュータ(以下、パソコン)が一般的になりつつあり、こ
のインターフェースを活用することで、デジタルビデオ
カメラやデジタルカメラで取った大容量の画像データを
高速でパソコン内に取り込むことができるようになって
きている。一方、IEEE1284インターフェース
は、いぜんとしてパソコンとプリンタとのデータ転送用
の標準的なインターフェースとして使用されている。
2. Description of the Related Art In recent years, IEEE1 has attracted attention as an interface for next-generation high-speed serial data transfer.
A personal computer (hereinafter referred to as a personal computer) equipped with a 394 interface is becoming popular, and by utilizing this interface, a large amount of image data taken by a digital video camera or a digital camera can be imported into the personal computer at high speed. It is becoming possible to do it. On the other hand, the IEEE 1284 interface is still used as a standard interface for data transfer between a personal computer and a printer.

【0003】[0003]

【発明が解決しようとする課題】このような規格が異な
るインターフェースが頻繁に使用される環境下でも、問
題なくデータの送受信を行えるように、IEEE139
4インターフェースを介して送信されたデータをIEE
E1284インターフェースを介してプリンタ等の周辺
機器に送信可能な中継装置(インターフェース変換装
置)が考えられる。このような中継装置では、各々のイ
ンターフェースごとに予め適当なサイズのバッファを割
り当て、規格の異なるインターフェースの各々に対応で
きるようにする必要がある。
[0006] Even in an environment where such interfaces having different standards are frequently used, data transmission and reception can be performed without problems by IEEE 139.
4 transmits data transmitted via the interface to IEEE
A relay device (interface conversion device) that can transmit to a peripheral device such as a printer via the E1284 interface is conceivable. In such a relay device, it is necessary to allocate a buffer of an appropriate size in advance for each interface so as to be able to cope with each interface having different standards.

【0004】さらに、近年、高解像度の画像データ、マ
ルチカラーのデータといった、データ容量の大きな印刷
データを転送する必要性が生じている。このため、転送
速度をさらに向上することが望まれている。しかしなが
ら、中継装置で転送速度を向上しようとした場合には、
高速の転送レートに対応するために記憶容量の大きなバ
ッファが必要になってしまい、中継装置のコストアップ
を招くと同時に、サイズ的にも大きなものになってしま
う。
Further, in recent years, it has become necessary to transfer print data having a large data capacity, such as high-resolution image data and multi-color data. Therefore, it is desired to further improve the transfer speed. However, when trying to improve the transfer speed with a relay device,
A buffer having a large storage capacity is required to cope with a high transfer rate, which increases the cost of the relay device and also increases the size.

【0005】一方、中継装置では、ネットワークハブの
ように複数の機器を接続できる汎用性も重要であり、同
一種類または転送レートの異なる複数のインターフェー
スを用意することが望ましい。例えば、IEEE139
4インターフェースおよびIEEE1284インターフ
ェースが1個づつしか用意されていなければ、プリンタ
とパソコンを1台づつしか接続できず中継装置の利用か
らはそれほど良くない。しかしながら、複数のインター
フェースに対応したアーキテクチャを単純に内蔵しただ
けでは、インターフェースの数の分だけバッファとなる
メモリの数を増やしたり、あるいは大容量のバッファが
必要になり、複数のインターフェースを備えた装置は非
常に大きく高価なものになってしまう。
On the other hand, versatility of connecting a plurality of devices, such as a network hub, is also important in a relay device, and it is desirable to prepare a plurality of interfaces of the same type or different transfer rates. For example, IEEE 139
If only four interfaces and one IEEE 1284 interface are provided, only one printer and one personal computer can be connected, which is not so good from the use of the relay device. However, simply incorporating an architecture that supports multiple interfaces requires an increase in the number of buffers to be used as much as the number of interfaces, or a large-capacity buffer is required. Can be very large and expensive.

【0006】そこで、本発明においては、画像データな
どの大容量のデータを情報処理装置に高速で転送するこ
とが可能であり、さらに、低コストでコンパクトな中継
装置およびその制御方法を提供することを目的としてい
る。また、複数のインターフェースを設けた場合でも、
必要となる記憶領域を必要最小限に抑え、装置の大幅な
コストアップおよび大型化を防ぐことができる中継装置
およびその制御方法を提供することを目的としている。
In view of the above, the present invention provides a low-cost and compact relay device capable of transferring large-capacity data such as image data to an information processing device at a high speed, and a control method therefor. It is an object. Also, even if you have multiple interfaces,
It is an object of the present invention to provide a relay device and a control method thereof that can minimize a necessary storage area and prevent a significant increase in cost and size of the device.

【0007】[0007]

【課題を解決するための手段】このため、本発明におい
ては、インターフェースあるいはデータを転送するイン
ターフェースの組合せの個々に割り当てられるメモリあ
るいはメモリ領域を固定するのではなく、ジョブの発生
に伴って構成されるインターフェースの組合せの数ある
いはその稼動状態に応じて、それぞれのインターフェー
スの組合せ、すなわち、ジョブに割り当てられるメモリ
領域を変化させるようにしている。これにより、バッフ
ァを有効利用して、メモリの数あるいはその容量をイン
ターフェースの数に応じて大幅に増やさなくても、デー
タを高速で転送できるようにしている。
Therefore, in the present invention, instead of fixing the memory or the memory area individually allocated to the interface or the combination of the interfaces for transferring the data, the present invention is configured in accordance with the generation of the job. In accordance with the number of interface combinations or the operating state of each interface, the combination of each interface, that is, the memory area allocated to the job is changed. As a result, data can be transferred at a high speed by effectively utilizing the buffer without greatly increasing the number of memories or the capacity thereof according to the number of interfaces.

【0008】すなわち、本発明の中継装置は、データの
入力および出力の少なくともいずれか一方が可能な複数
のインターフェースと、これらのインターフェースを組
合せて一方のインターフェースから他方のインターフェ
ースにデータを転送するデータ転送手段と、インターフ
ェースの組合せで中継されるデータの一時的な記憶領域
と、稼動中のインターフェースの組合せの各々に記憶領
域を部分的に割り当て可能な領域制御手段とを有し、領
域制御手段は、各インターフェースの組合せの数に応じ
て、それらに割り当てられる記憶領域の部分の比率を変
えることを特徴としている。また、本発明の中継装置の
制御方法は、データの入力および出力の少なくともいず
れ一方が可能な複数のインターフェースと、これらのイ
ンターフェースの組合せで中継されるデータの一時的な
記憶領域とを有し、インターフェースを組合せて一方の
インターフェースから他方のインターフェースにデータ
を転送する中継装置の制御方法であって、稼動中のイン
ターフェースの組合せの各々に記憶領域を部分的に割り
当てる工程と、各インターフェースの組合せの数に応じ
て、それらに割り当てられる記憶領域の部分の比率を変
える工程とを有することを特徴としている。
That is, the relay device of the present invention comprises a plurality of interfaces capable of at least one of data input and output, and a data transfer for combining these interfaces to transfer data from one interface to another interface. Means, a temporary storage area for data relayed by a combination of interfaces, and an area control means capable of partially allocating a storage area to each of the combinations of operating interfaces, wherein the area control means comprises: It is characterized in that the ratio of the storage area portion allocated to each interface is changed according to the number of combinations of the interfaces. Further, the control method of the relay device of the present invention has a plurality of interfaces capable of at least one of data input and output, and a temporary storage area for data relayed by a combination of these interfaces, A method of controlling a relay device for transferring data from one interface to another interface by combining interfaces, the method comprising: partially allocating a storage area to each of the active interface combinations; Changing the ratio of the portion of the storage area allocated to them in accordance with

【0009】本発明の中継装置およびその制御方法で
は、個々のインターフェースに対して記憶領域のある部
分を固定的に割り当てるのではなく、印刷用等のデータ
を転送するジョブの発生、終了に伴って構成されるイン
ターフェースの組合せの数に応じて、各インターフェー
スの組合せに割り当てられる記憶領域の部分の比率を変
化させることができる。複数のインターフェースが設け
られている装置において、各インターフェース用に記憶
領域の割り当てが固定されていると、複数のインターフ
ェースが同時に使用されることは非常に稀なので、使用
されていないインターフェースの記憶領域は無駄であ
り、記憶領域の利用効率は低く、機能の割に大きく高価
な装置になってしまう。しかしながら、本発明によれ
ば、記憶領域が稼動中のインターフェースの組合せに対
応して割り当てられるので、稼動中のジョブの数が少な
いときでも記憶領域のほとんどが有効に利用され、高速
でデータを転送できる。一方、ジョブの数が増えても、
インターフェースの組合せの数に応じて割り当てる記憶
領域の部分の比率を変えて全てのインターフェースの組
合せに記憶領域の一部分を割り当てできるので、全ての
ジョブで記憶領域を有効利用できる。このため、先行す
るジョブが終了してバッファ(記憶領域)が開放される
のを待つ必要はなく、迅速にジョブを実行できる。
In the relay apparatus and the control method according to the present invention, a certain portion of the storage area is not fixedly assigned to each interface, but a job for transferring data for printing or the like is generated and terminated. The ratio of the portion of the storage area allocated to each interface combination can be changed according to the number of configured interface combinations. In a device having a plurality of interfaces, if the storage area allocation is fixed for each interface, it is extremely rare that the plurality of interfaces are used at the same time. It is wasteful, the storage area utilization efficiency is low, and the device becomes large and expensive for its functions. However, according to the present invention, since the storage area is allocated corresponding to the combination of active interfaces, most of the storage area is effectively used even when the number of active jobs is small, and data is transferred at high speed. it can. On the other hand, even if the number of jobs increases,
Since a part of the storage area can be allocated to all the interface combinations by changing the ratio of the storage area portion to be allocated according to the number of interface combinations, the storage area can be effectively used for all jobs. Therefore, there is no need to wait for the preceding job to end and release the buffer (storage area), and the job can be executed quickly.

【0010】したがって、ジョブの数が少ないときは、
個々のジョブに大きな記憶容量を割り当てて高速で処理
でき、ジョブの数が多いときでも記憶容量を有効に活用
して、全てのジョブを待つことなく処理できる低コスト
でコンパクトな中継装置を提供できる。また、記憶領域
の分割比率を変えて、複数のインターフェースに対処で
きるので、個々のインターフェースの組合せに専用の記
憶領域を設けずに済み、複数のインターフェースが搭載
された中継装置をコストダウンでき、さらに、小型化で
きる。したがって、本発明により、パソコン、スキャ
ナ、プリンタ、デジタルビデオカメラ等の情報処理装置
および周辺機器を複数台接続でき、非常に汎用性の高
く、高性能で低コストな中継装置を提供できる。
Therefore, when the number of jobs is small,
It is possible to provide a low-cost and compact relay device which can allocate a large storage capacity to each job and can process the job at high speed, effectively utilize the storage capacity even when the number of jobs is large, and can process all jobs without waiting. . Further, since a plurality of interfaces can be dealt with by changing the division ratio of the storage area, it is not necessary to provide a dedicated storage area for a combination of individual interfaces, and the cost of a relay device equipped with a plurality of interfaces can be reduced. , Can be downsized. Therefore, according to the present invention, a plurality of information processing apparatuses such as a personal computer, a scanner, a printer, and a digital video camera, and a plurality of peripheral devices can be connected, and a highly versatile, high-performance, and low-cost relay apparatus can be provided.

【0011】本発明の中継装置は、転送するデータを一
時的に記憶できる領域を備えているので、同一規格のイ
ンターフェースが複数用意された装置だけでなく、例え
ば、IEEE1394、IEEE1284、SCSI、
RS−232C、USBなどの規格が異なり、転送レー
ト等が異なるインターフェースを備えた装置にも適用で
きる。したがって、本発明の中継装置を使用し情報処理
装置と組合せることができる、非常に柔軟性に富んだ情
報処理システムを構築できる。
Since the relay device of the present invention has an area in which data to be transferred can be temporarily stored, not only devices provided with a plurality of interfaces of the same standard but also, for example, IEEE 1394, IEEE 1284, SCSI,
The present invention can be applied to a device having an interface having a different standard such as RS-232C or USB and a different transfer rate. Therefore, a very flexible information processing system that can be combined with the information processing device using the relay device of the present invention can be constructed.

【0012】本発明の中継装置では、未使用の各々の出
力用のインターフェースが専用にアクセス可能な部分が
記憶領域に残るように、稼動中のインターフェースの組
合せに対して記憶領域を割り当てておくことが望まし
い。このようにすることにより、入力側(受信側)のイ
ンターフェースから新しいジョブが入力されると、専有
されている部分が開放されるのを待たずに受信したデー
タを格納できる。したがって、データ転送するジョブが
開始されると、即座にそのジョブを実行できるので、デ
ータ転送を開始するタイミングに遅れを生じさせず、デ
ータを転送する際に漏れてしまうのを防止できる。
In the relay apparatus of the present invention, a storage area is allocated to a combination of operating interfaces so that a portion of each unused output interface that can be exclusively accessed remains in the storage area. Is desirable. Thus, when a new job is input from the interface on the input side (reception side), the received data can be stored without waiting for the exclusive portion to be released. Therefore, when the job for data transfer is started, the job can be executed immediately, so that there is no delay in the timing for starting the data transfer, and it is possible to prevent data from being leaked at the time of data transfer.

【0013】IEEE1394、USB等では、データ
の送受信は所定の単位(パケット)で行われる。したが
って、パケットサイズのデータを一時記憶しておける単
位で記憶領域を分割し、それらをブロックとして割り当
てることにより、分割する際の記憶容量の無駄を防止で
きる。また、受信用にも少なくても1ブロック確保して
おけばデータを受信できる。このため、記憶領域をデー
タの送受信単位に応じた複数のブロックに分割してお
き、使用中のインターフェースの組合せの数に対してブ
ロック単位で記憶領域を増減すれば、割り当てる記憶領
域の容量を計算して逐次決定するなどの複雑な制御が不
要となり、記憶領域の割り当て制御が簡易になり、それ
に伴うハードウェアあるいはソフトウェア資源を省略で
きる。
In IEEE 1394, USB, and the like, data transmission and reception are performed in predetermined units (packets). Therefore, by dividing the storage area into units in which packet size data can be temporarily stored and allocating them as blocks, it is possible to prevent waste of storage capacity when dividing. Also, if at least one block is secured for reception, data can be received. For this reason, if the storage area is divided into a plurality of blocks according to the data transmission / reception unit, and the storage area is increased or decreased in block units with respect to the number of used interface combinations, the capacity of the allocated storage area is calculated. This eliminates the need for complicated control such as sequential determination, and simplifies storage area allocation control, thereby omitting hardware or software resources involved.

【0014】ブロック単位で記憶領域を増やすために
は、例えば、稼動中のインターフェースの組合せ(稼動
中のジョブ)の数により、各々のインターフェースの組
合せ(各々のジョブ)に割り当てられるブロックの最大
値を増減し、既に割り当てられているブロック数が該最
大値よりも少ないときに、一方のインターフェース、す
なわち、受信側インターフェースからのデータを新たに
割り当てられた記憶領域のブロックに転送するようにす
れば良い。また、このとき、未使用の出力用のインター
フェースの各々に対し少なくとも1つのブロックが残る
ように、ブロックの最大値を決定することが望ましい。
In order to increase the storage area in block units, for example, the maximum number of blocks allocated to each interface combination (each job) is determined by the number of active interface combinations (active jobs). When the number of blocks already allocated is smaller than the maximum value, data from one interface, that is, data from the receiving interface may be transferred to a block in a newly allocated storage area. . At this time, it is desirable to determine the maximum value of the blocks so that at least one block remains for each unused output interface.

【0015】これにより、稼動中のインターフェースの
組合せの数が減ったときに、それに対応してブロックを
割り当てることができ記憶領域を有効利用できる。ま
た、その組合せの数が増えたときは、最大値より割り当
てられるブロック数が少なくなるので、最大値に達する
まで受信が延期され、その分のブロックが他のインター
フェースの組合せから開放される。このようにして、ジ
ョブの数に応じて自動的に記憶領域の部分の割り当てが
変わるので、複数のインターフェースを常に有効利用で
きる。また、未使用の出力用のインターフェースに対し
少なくとも1つのブロックが残るように、ブロックの最
大値が決定されるので、入力側のインターフェースから
データ転送するジョブが入ってきたときは、そのジョブ
に関わるデータの格納を即座に実行できる。
Thus, when the number of active interface combinations decreases, blocks can be allocated correspondingly, and the storage area can be used effectively. When the number of the combinations increases, the number of blocks to be allocated becomes smaller than the maximum value. Therefore, the reception is postponed until the maximum value is reached, and the corresponding blocks are released from other interface combinations. In this way, the allocation of the storage area is automatically changed according to the number of jobs, so that a plurality of interfaces can always be used effectively. Further, the maximum value of the blocks is determined so that at least one block remains for the unused output interface. Therefore, when a job for data transfer comes in from the input side interface, the job related to the job is involved. Data can be stored immediately.

【0016】また、プリンタなどの周辺機器はペーパー
ジャム等によってエラー状態になり、ジョブが中断され
データ通信が不能になる。このような場合、中断してい
るジョブに割り当てられている記憶領域の部分が無駄な
ので、インターフェースの組合せうち、データの送信が
不能になったインターフェースの組合せに割り当てられ
ていた記憶領域の部分を開放して、インターフェースの
組合せに割り当てる記憶領域の部分の比率を変えること
が望ましい。
Further, peripheral devices such as a printer enter an error state due to a paper jam or the like, the job is interrupted, and data communication becomes impossible. In such a case, the portion of the storage area allocated to the interrupted job is useless, and therefore, of the interface combinations, the storage area portion allocated to the interface combination for which data transmission is disabled is released. Then, it is desirable to change the ratio of the portion of the storage area allocated to the combination of interfaces.

【0017】これにより、データ通信が正常に行われて
いるインターフェースの組合せ(ジョブ)のために割り
当てられる記憶容量を増加させることができ、インター
フェースの組合せの送受信速度を向上できる。なお、記
憶領域が、パケットサイズに応じてブロック単位に分割
されている場合には、エラーが発生するとブロック単位
で記憶領域の部分を開放するようにすれば、複雑なプロ
セスを経ることなく、簡単に記憶領域の開放処理を行う
ことができる。
Thus, it is possible to increase the storage capacity allocated for the interface combination (job) in which data communication is normally performed, and to improve the transmission / reception speed of the interface combination. In the case where the storage area is divided into blocks according to the packet size, if an error occurs, the storage area is opened in units of blocks so that simple processing can be performed without a complicated process. The storage area can be released at the same time.

【0018】インターフェースでエラーが発生したとき
にブロックを開放すると、そのブロックに記憶されてい
たデータの送受信がキャンセルされてしまうが、エラー
が解除されてデータの送受信ができるように復帰したと
きに、データの発信元に対しデータの再送をリクエスト
することにより、データをもれなく転送できる。
If a block is opened when an error occurs in the interface, the transmission and reception of data stored in the block is canceled. However, when the error is released and the system returns to be able to transmit and receive data, By requesting the data source to resend the data, the data can be transferred without omission.

【0019】本発明の中継装置およびその制御方法は、
コンピュータあるいはCPU等のプロセッサで実行可能
なソフトウェアあるいはファームウェアとして提供する
ことができ、ROM、メモリカード等のコンピュータあ
るいはプロセッサ読み取り可能な制御プログラム装置と
して、あるいは制御プログラムを記録媒体に記録して提
供できる。また、インターネット等の通信回線でファー
ムウェアをアップデートする際に、本発明の機能を加え
る形態などのプログラム装置として、またはネットワー
クにより配信される伝送媒体に埋め込んで提供すること
も可能である。
The relay device and the control method thereof according to the present invention
It can be provided as software or firmware executable by a processor such as a computer or a CPU, and can be provided as a computer or processor-readable control program device such as a ROM or a memory card, or a control program recorded on a recording medium and provided. Further, when the firmware is updated via a communication line such as the Internet, the firmware may be provided as a program device that adds the functions of the present invention or embedded in a transmission medium distributed over a network.

【0020】[0020]

【発明の実施の形態】以下に、図面を参照して本発明の
実施の形態を説明する。図1には本発明を適用した中継
装置(以下、インターフェース変換装置)およびパソコ
ン等の情報処理装置を用いて構築した情報処理システム
の一例を示してある。また、図2および図3には、それ
ぞれ、本例のインターフェース変換装置の概略のハード
ウェア構成図、および概略の機能ブロック図を示してあ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of an information processing system constructed using an information processing apparatus such as a relay apparatus (hereinafter, an interface conversion apparatus) and a personal computer to which the present invention is applied. 2 and 3 show a schematic hardware configuration diagram and a schematic functional block diagram of the interface conversion device of the present example, respectively.

【0021】図1に示す情報処理システム1は、本例に
かかるインターフェース変換装置10を2台用いて、3
台のパソコンPC1、PC2、PC3、および4台のプ
リンタP1、P2、P3、P4を相互に接続したシステ
ム構成となっている。また、デジタルカメラDC1また
はデジタルビデオカメラDV1もインターフェース変換
装置10を介して情報処理システム1に接続できる。図
2および図3に詳しく示すように、本例のインターフェ
ース変換装置10は、IEEE1394用の3つのイン
ターフェースコネクタ2、3、4と、IEEE1284
用の3つのインターフェースコネクタ5、6、7とを有
している。例えば、インターフェース変換装置10のコ
ネクタ2、3には、それぞれ、パソコンPC1、PC3
がIEEE1394準拠のインターフェースケーブル1
1a、11bを介して接続され、コネクタ5、6、7に
は、それぞれ、プリンタP3、P2、P4がIEEE2
84準拠のインターフェースケーブル(セントロニクス
ケーブル)12b、12a、12dを介して接続されて
いる。また、パソコンPC2はIEEE1394準拠の
インターフェースケーブル11cを介してパソコンPC
3に接続され、パソコンPC3を経由してインターフェ
ース変換装置10に接続された形態となっている。さら
に、インターフェース変換装置10の残りのコネタク4
には、IEEE1394準拠のインターフェースケーブ
ル11dを介して他方のインターフェース変換装置10
が接続されている。
The information processing system 1 shown in FIG. 1 uses two interface converters 10 according to the present embodiment and
The system configuration is such that four personal computers PC1, PC2, PC3 and four printers P1, P2, P3, P4 are mutually connected. Also, the digital camera DC1 or the digital video camera DV1 can be connected to the information processing system 1 via the interface conversion device 10. As shown in detail in FIGS. 2 and 3, the interface conversion device 10 of the present embodiment includes three interface connectors 2, 3, and 4 for IEEE1394, and IEEE1284.
And three interface connectors 5, 6 and 7. For example, the connectors 2 and 3 of the interface conversion device 10 are respectively connected to personal computers PC1 and PC3.
Is an IEEE1394 compliant interface cable 1
1a and 11b, and printers P3, P2 and P4 are connected to the connectors 5, 6, and 7, respectively, according to the IEEE2 standard.
It is connected via an interface cable (centronics cable) 12b, 12a, 12d based on the 84 standard. The personal computer PC2 is connected to the personal computer PC2 via an interface cable 11c conforming to IEEE1394.
3 and connected to the interface conversion device 10 via the personal computer PC3. Furthermore, the remaining connectors 4 of the interface conversion device 10
Is connected to the other interface conversion device 10 via an interface cable 11d compliant with IEEE1394.
Is connected.

【0022】また、他方のインターフェース変換装置1
0のコネクタ4には、IEEE1394準拠のインター
フェースケーブル11eを介してデジタルカメラDC1
またはデジタルビデオカメラDV1が接続され、コネク
タ5には、セントロニクスケーブル12cを介してプリ
ンタP1が接続されている。このように構成された情報
処理システム1では、インターフェース変換装置10を
経由させることにより、各パソコンPC1、PC2、P
C3から各々のプリンタP1、P2、P3、P4に対し
て印刷データを転送してプリントアウトすることがで
き、また、デジタルカメラDC1またはデジタルビデオ
カメラDV1から各パソコンPC1、PC2、PC3あ
るいは各プリンタP1、P2、P3、P4に対して画像
データを転送できる。
The other interface converter 1
0 is connected to the digital camera DC1 via an IEEE1394 compliant interface cable 11e.
Alternatively, a digital video camera DV1 is connected, and a printer P1 is connected to the connector 5 via a Centronics cable 12c. In the information processing system 1 configured as above, each of the personal computers PC1, PC2, P
The print data can be transferred from C3 to each of the printers P1, P2, P3, and P4 and printed out, and each of the personal computers PC1, PC2, and PC3 or each of the printers P1 can be transferred from the digital camera DC1 or the digital video camera DV1. , P2, P3, and P4.

【0023】図2に示すように、本例のインターフェー
ス変換装置10は、CPU15、CPU用の制御プログ
ラムが記憶されたROM16、およびデータの一時記憶
領域や各種のプログラムの実行領域として利用されるR
AM17を有しており、これらがバス18を介して接続
されている。また、インターフェース変換装置10は、
IEEE1394に準拠したインターフェース回路19
およびIEEE1394用のドライバ21を有してお
り、CPU15がROM16に記録された制御プログラ
ムを実行することにより、これらのハードウェアを用い
てインターフェース間にデータを転送する処理を実行す
る。
As shown in FIG. 2, the interface converter 10 of the present embodiment includes a CPU 15, a ROM 16 storing a control program for the CPU, and a temporary storage area for data and an R area used as an execution area for various programs.
AM 17, which are connected via a bus 18. In addition, the interface conversion device 10
Interface circuit 19 conforming to IEEE1394
And a driver 21 for IEEE 1394, and the CPU 15 executes a control program recorded in the ROM 16 to execute a process of transferring data between the interfaces using these hardware.

【0024】図3に示すように、本例のインターフェー
ス変換装置10は、6つのインターフェース22、2
3、24、25、26および27と、入力側のインター
フェース22〜24から入力されるホスト側の機器、例
えば、コンピュータPC1、PC2、PC3、デジタル
カメラDC1、デジタルビデオカメラDV1などからの
コマンドを解析するコマンド解析部35と、ここで解析
されたコマンドを実行するコマンド実行部36と、イン
ターフェースの組合せで中継されるデータの一時的な記
憶領域となるバッファ32とを有している。インターフ
ェース22〜27は、それぞれ、インターフェース2〜
7と、インターフェース制御部2a〜7aを備えてい
る。また、コマンド実行部36は、インターフェース2
2〜27を組み合せて一方のインターフェースから他方
のインターフェースにデータを転送するデータ転送部3
1と、これらの稼動中のインターフェースの組合せの各
々にバッファ32の適当な領域を部分的に割り当てる領
域制御部33とを備えている。
As shown in FIG. 3, the interface converter 10 of the present embodiment has six interfaces 22 and 2.
3, 24, 25, 26, and 27 and commands from host-side devices, such as computers PC1, PC2, PC3, digital camera DC1, and digital video camera DV1, input from the input-side interfaces 22 to 24 are analyzed. A command analysis unit 35 for executing the analyzed command, and a buffer 32 serving as a temporary storage area for data relayed by a combination of interfaces. Interfaces 22 to 27 are respectively
7 and interface control units 2a to 7a. In addition, the command execution unit 36
Data transfer unit 3 for transferring data from one interface to the other interface by combining 2 to 27
1 and an area control unit 33 for partially allocating an appropriate area of the buffer 32 to each of these active interface combinations.

【0025】ここで、稼動中のインターフェースの組合
せとは、パソコンPC1からインターフェース変換装置
10を経由してプリンタP3でプリントアウトするとい
うジョブが発生したときには、インターフェース23と
インターフェース25が、稼動状態のインターフェース
の組合せになる。また、このインターフェースの組合せ
が稼動中にパソコンPC3からインターフェース変換装
置10を経由してプリンタP2でプリントアウトすると
いうジョブが発生すると、インターフェース22とイン
ターフェース26が、稼動中のインターフェースの組合
せになる。この状態では、前者の組合せと後者の組合せ
が同時に稼動状態になるので、稼動中のインターフェー
スの組合せの数は「2ヶ」となる。
Here, the combination of the operating interfaces means that when a job of printing out from the personal computer PC1 via the interface converter 10 by the printer P3 occurs, the interface 23 and the interface 25 are switched to the operating interface. Becomes the combination of When a job of printing out from the personal computer PC3 via the printer P2 via the interface conversion device 10 occurs while the combination of interfaces is operating, the interface 22 and the interface 26 are combined with the operating interface. In this state, the former combination and the latter combination are simultaneously activated, so that the number of active interface combinations is "2".

【0026】本例のインターフェース変換装置10で
は、6つのインターフェース22〜27のうち、3つの
インターフェース22、23、24は、IEEE139
4に準拠したものであり、残りの3つはIEEE128
4に準拠したものである。なお、インターフェースの数
は本例に限定されないのは勿論であり、また、インター
フェースが上記の規格のものに限定されることもない。
例えば、RS−232C、SCSI、USBタイプのイ
ンターフェースであっても良い。
In the interface converter 10 of this embodiment, three interfaces 22, 23, and 24 of the six interfaces 22 to 27 are connected to the IEEE 139.
4 and the remaining three are IEEE128
4. Note that the number of interfaces is not limited to this example, and the interfaces are not limited to those of the above-described standards.
For example, an RS-232C, SCSI, or USB type interface may be used.

【0027】バッファ32はRAM17に構成されてお
り、パソコンPC1〜PC3、デジタルカメラDC1、
デジタルビデオカメラDV1からインターフェース変換
装置10に転送されるデータのパケットサイズに対応し
た9ヶのブロックB0〜B8に仮想的に分割されてい
る。稼動中のインターフェースの組合せに割り当てられ
るブロックの決定や、その組合せからブロックの割り当
てを開放する処理等は領域制御部33によって行われる
ようになっている。このために、本例では、領域制御部
33は、稼動中のインターフェースの組合せ(ジョブ)
の数に応じて、それらに割り当てられるブロックの数を
変化させることにより、各ジョブで使用できる記憶容量
の比率を変化させる。
The buffer 32 is formed in the RAM 17, and includes personal computers PC1 to PC3, digital camera DC1,
It is virtually divided into nine blocks B0 to B8 corresponding to the packet size of data transferred from the digital video camera DV1 to the interface conversion device 10. The determination of the blocks to be allocated to the active interface combination, the process of releasing the block allocation from the combination, and the like are performed by the area control unit 33. For this reason, in the present example, the area control unit 33 determines the combination of active interfaces (job).
By changing the number of blocks allocated to them in accordance with the number of, the ratio of the storage capacity available for each job is changed.

【0028】本例のインターフェース変換装置10で
は、稼動中のインターフェースの組合せに割り当てるブ
ロックの数を変えるにあたって、領域制御部33によっ
て、稼動中のジョブ(稼動中のインターフェースの組合
せ)の数により各々のジョブ(インターフェースの組合
せ)に割り当てられるブロックの最大値(本例では、最
大予約ブロック数)を増減し、さらに、データ転送部3
2によって、既に割り当てられているブロックの数が上
記の最大値より少ないときに、入力側(受信側)のイン
ターフェースからのデータが新たに割り当てられたブロ
ックに転送するようにしている。本例では、IEEE1
394準拠のインターフェース22、23および24が
入力側のインターフェース、IEEE1284準拠のイ
ンターフェース25、26および27が出力側のインタ
ーフェースである。稼動中のインターフェースの数は、
例えば、出力側のインターフェース25〜27の使用状
況を見ることにより把握することができる。また、イン
ターフェース25〜27の使用状況を見ずに、各ジョブ
の情報をRAM17に一時的に格納しておき、ジョブの
情報から稼動中のインターフェースの数を把握しても良
く、この数を把握する方法はこれらに限定されない。
In the interface conversion apparatus 10 of the present embodiment, when changing the number of blocks to be assigned to a combination of active interfaces, the area control unit 33 uses the number of active jobs (combinations of active interfaces) to change each block. The maximum value of the blocks (in this example, the maximum number of reserved blocks) allocated to the job (combination of interfaces) is increased or decreased, and the data transfer unit 3
According to 2, when the number of blocks already allocated is smaller than the maximum value, data from the interface on the input side (reception side) is transferred to the newly allocated block. In this example, IEEE1
394-compliant interfaces 22, 23, and 24 are input-side interfaces, and IEEE1284-compliant interfaces 25, 26, and 27 are output-side interfaces. The number of active interfaces is
For example, it can be grasped by looking at the use status of the interfaces 25 to 27 on the output side. Alternatively, the information of each job may be temporarily stored in the RAM 17 without observing the usage status of the interfaces 25 to 27, and the number of active interfaces may be grasped from the job information. The method of performing is not limited to these.

【0029】本例のインターフェース変換装置10で
は、領域制御部33によって、未使用の出力側のインタ
ーフェース25〜27の各々に対して少なくとも1つの
ブロックが残るように、上記の最大値が決定される。こ
の結果、出力用のインターフェース25、26および2
7のそれぞれに対してデータを記憶できるブロックが必
ず残り、いずれかのインターフェース22〜24からジ
ョブ開始コマンドやデータ等が入って、コマンド解析部
35により使用すべき出力側のインターフェースが決定
されると、その出力側インターフェースに割り当て可能
なように残されているブロック、例えば、ブロックB
1、B2またはB3が出力側のインターフェース25〜
27のいずれかに専用のブロックとして割り当てられ、
そのブロックにデータが即座に格納される。このため、
新しいジョブを開始するコマンドが入ってきたときに、
それに付随するデータを直ぐに格納することができる。
また、これらの新しく割り当てられる各ブロックも情報
のパケットサイズに対応した容量になっているので、ジ
ョブが発生したときにデータを漏らすことなく確実にジ
ョブを進行できる。なお、出力側のインターフェース2
5〜27のために残しておくブロックは、ジョブの進行
等に応じて動的に変化させても良く、また、予め決まっ
たものにしておいても良い。
In the interface converter 10 of the present embodiment, the maximum value is determined by the area control unit 33 so that at least one block remains for each of the unused output-side interfaces 25 to 27. . As a result, the output interfaces 25, 26 and 2
7, a block capable of storing data always remains, and a job start command, data, or the like is input from any of the interfaces 22 to 24, and the output interface to be used is determined by the command analyzer 35. , A block left to be assigned to its output interface, eg, block B
1, B2 or B3 is the output interface 25 to
27 as a dedicated block,
Data is immediately stored in the block. For this reason,
When a command to start a new job comes in,
The data accompanying it can be stored immediately.
Each of these newly allocated blocks also has a capacity corresponding to the packet size of the information, so that when a job occurs, the job can be surely advanced without leaking data. The output side interface 2
The blocks to be reserved for 5 to 27 may be dynamically changed in accordance with the progress of the job or the like, or may be predetermined.

【0030】さらに、本例のインターフェース変換装置
10では、領域制御部33により、稼動中のインターフ
ェースの組合せのうち、データ送信が不能になると、そ
のインターフェースの組合せに割り当てられていた記憶
領域のブロックが開放されるようにして上記の比率を変
えるようになっている。このために、データ送信が不能
になったインターフェースの組合せの数を減じて、稼動
中のインターフェースの組合せに割り当てられるブロッ
クの最大値(本例では、最大予約ブロック数)を増加さ
せる。また、領域制御部33により、データ送信不能に
なったインターフェースの組合せに割り当てられていた
ブロックを開放させる。
Further, in the interface conversion apparatus 10 of the present embodiment, when data transmission becomes impossible among the active interface combinations, the block of the storage area allocated to the interface combination is changed by the area control unit 33. The above ratio is changed so as to be opened. For this reason, the number of interface combinations for which data transmission is disabled is reduced, and the maximum number of blocks (the maximum number of reserved blocks in this example) allocated to the active interface combination is increased. In addition, the area control unit 33 releases the blocks assigned to the combination of interfaces for which data transmission is disabled.

【0031】図4にはインターフェース変換装置10に
おける処理をフローチャートを用いて示してある。図5
および図6は、RAM17あるいはCPU15のレジス
タ等の記憶領域の割り当て、あるいは記憶されるデータ
の代表的なものを限定的に示してある。図5(a)およ
び図6(a)は、パソコンからプリンタに接続された時
のものを示してあり、入力側インターフェースから入力
されるジョブを管理するためのプリンタデータ100の
例である。Cur101は現在印刷中のデータの受信番
号、Last102は受信済みデータの受信番号、Re
sNo103は予約したブロック番号、PQue(i)
はブロック番号を示すデータである。図5(b)および
図6(b)は、バッファ32のブロックをどのインター
フェースの組合せ、すなわち、ジョブに対して割り当て
たかを示し、図5(c)および図6(c)は各々のブロ
ックの使用状況を示すフラグデータ110である。ま
た、図5(d)および図6(d)は使用中のプリンタポ
ート数や予約ブロック数の管理データであり、UseP
orNo91は動作しているプリンタポート数、Max
BufNo92は最大予約ブロック数を示すデータであ
る。
FIG. 4 shows the processing in the interface conversion device 10 using a flowchart. FIG.
6 and FIG. 6 show a limited allocation of storage areas such as the registers of the RAM 17 or the CPU 15 or representative data to be stored. FIGS. 5A and 6A show a case where a personal computer is connected to a printer, and are examples of printer data 100 for managing a job input from an input-side interface. Cur 101 is the reception number of the data currently being printed, Last 102 is the reception number of the received data, Re
sNo103 is the reserved block number, PQue (i)
Is data indicating a block number. FIGS. 5B and 6B show which interface combination, that is, the job, is allocated to the block of the buffer 32. FIGS. 5C and 6C show the respective blocks. This is flag data 110 indicating the usage status. FIGS. 5D and 6D show management data of the number of printer ports in use and the number of reserved blocks.
orNo91 is the number of operating printer ports, Max
BufNo92 is data indicating the maximum number of reserved blocks.

【0032】なお、パソコンPC1からプリンタP3で
プリントアウトさせるというジョブ(以下、ジョブJ
1)が進行中に、パソコンPC3からプリンタP2でプ
リントアウトさせるという新規ジョブ(以下、ジョブJ
2)が発生したときの処理を代表して説明する。
A job for printing out from the personal computer PC1 by the printer P3 (hereinafter referred to as job J)
While the job 1) is in progress, a new job (hereinafter referred to as job J) for printing out from the personal computer PC3 by the printer P2
The process when 2) occurs will be described as a representative.

【0033】新規ジョブJ2が発生すると、このジョブ
J2で使用する出力側のインターフェース26は未使用
状態であるので、ステップ41で新規ジョブの受け付け
が許可される。また、このときブロックB1があまって
いるので、このブロックB1がジョブJ2で稼動するイ
ンターフェース22および26の組合せに直ぐに割り当
てられる。そして、このブロックB1を使用することに
より、タイムラグなく即座にジョブJ2が開始できる。
ジョブJ2を受け付けると、稼動中のインターフェース
の組合せの数は、ジョブJ1およびジョブJ2に対応す
るインターフェースの組合わせになるので「2ヶ」とな
る。ジョブJ2が受け付けられると、ジョブJ1に割り
当てられていたブロックB0、B3〜B9の一部をジョ
ブJ2に対して割り当てる処理がステップ42で開始さ
れる。
When a new job J2 is generated, the output interface 26 used in the job J2 is in an unused state, so that acceptance of the new job is permitted in step 41. At this time, since the block B1 has been completed, the block B1 is immediately assigned to the combination of the interfaces 22 and 26 operating in the job J2. Then, by using this block B1, the job J2 can be started immediately without a time lag.
When the job J2 is received, the number of operating interface combinations is “2” because the number of interface combinations corresponding to the job J1 and the job J2 is the same. When the job J2 is accepted, the process of allocating a part of the blocks B0, B3 to B9 assigned to the job J1 to the job J2 is started in step 42.

【0034】ステップ42においては、ジョブJ1(イ
ンターフェース23、25の組合せ)用に割り当てられ
ていた最大予約ブロック数(最大値MaxBufNo)
92を減少させる。ジョブJ1のみが実行されている状
態のときには、このジョブJ1における最大予約ブロッ
ク数92は全ブロック数「9」から残っている(未使用
の)出力用のインターフェースの数「2」を引いた
「7」に設定されているが、「4」に変更される。これ
により、ブロックの総数「9」のうち、残っている(未
使用の)出力用のインターフェースの数「1」を引いた
すべてが2つのジョブJ1およびJ2で利用可能にな
る。
In step 42, the maximum number of reserved blocks (maximum value MaxBufNo) allocated for job J1 (combination of interfaces 23 and 25)
Decrease 92. When only the job J1 is being executed, the maximum reserved block number 92 in the job J1 is obtained by subtracting the remaining (unused) output interface number “2” from the total block number “9”. 7 ", but is changed to" 4 ". As a result, of the total number of blocks “9”, all that is obtained by subtracting the number of remaining (unused) output interfaces “1” becomes available for the two jobs J1 and J2.

【0035】最大予約ブロックを増減させた直後は、ジ
ョブJ1で使用されていたブロックにデータが満たされ
た状態なので、変更された最大値(最大予約ブロック
数)の通りにはブロックを割り当てできない。
Immediately after the maximum reserved block is increased or decreased, the blocks used in the job J1 are filled with data, so that blocks cannot be allocated according to the changed maximum value (maximum number of reserved blocks).

【0036】このため、ステップ43において、ジョブ
J2のデータを受信しても、ステップ47で受信済パケ
ット数より最大予約ブロック数が多いと判断されるが、
ステップ48において、ブロックB1のデータが処理さ
れていないと、空きブロックがないと判断されて、デー
タの受信は行わずに、ステップ50において、パソコン
PC3へビジー信号が返される。
Therefore, even if the data of the job J2 is received in step 43, it is determined in step 47 that the maximum number of reserved blocks is larger than the number of received packets.
If the data of the block B1 has not been processed in step 48, it is determined that there is no empty block, and no data is received. In step 50, a busy signal is returned to the personal computer PC3.

【0037】一方、ジョブJ1が進行し、ステップ44
において、ブロックに格納されているデータがプリンタ
P3に送信されると、ステップ51で最大値以上のブロ
ックが開放され、ジョブJ2で使用できるようになる。
この開放されたブロックは、ジョブJ2の記憶領域とし
て利用可能であり、そのためのメモリ領域として割り当
てられる。ブロックが空くと、ステップ43でデータを
受信した際に、ステップ47で既に受信されているパケ
ット数より最大予約ブロック数92が多いと判断された
ときに、ステップ48において、空きブロックがあると
判断される。そして、ステップ49において、その開放
されたブロックに対してパソコンPC3から受信したデ
ータ、すなわち、インターフェース22および26の組
合せのジョブJ2のデータが一時的に格納される。
On the other hand, the job J1 proceeds, and
In step, when the data stored in the block is transmitted to the printer P3, the block having the maximum value or more is released in step 51, and can be used in the job J2.
The released block can be used as a storage area of the job J2, and is allocated as a memory area therefor. If the block is empty, when data is received in step 43 and it is determined in step 47 that the maximum number of reserved blocks 92 is larger than the number of packets already received, it is determined in step 48 that there is an empty block. Is done. Then, in step 49, the data received from the personal computer PC3, that is, the data of the job J2 of the combination of the interfaces 22 and 26, is temporarily stored in the opened block.

【0038】ジョブJ1のデータ、すなわち、パソコン
PC1から送られたデータをステップ43でデータ受信
したときは、最大予約ブロック数92が「7」から
「4」に減少されたので、ステップ47において、既に
受信されているパケット数より、最大予約ブロック数9
2が少ないと判断され、ステップ50において、パソコ
ンPC1にビジー信号が返される。このようなブロック
の開放処理およびデータ受信中断処理は、それぞれのジ
ョブJ1、J2、すなわち、各インターフェースの組合
せが使用するブロック数が、ステップ42で設定された
最大予約ブロック数92になるまで(図6参照)行われ
る。
When the data of the job J1, that is, the data sent from the personal computer PC1 is received in step 43, the maximum number of reserved blocks 92 has been reduced from "7" to "4". Maximum number of reserved blocks 9 based on the number of packets already received
2 is determined to be small, and in step 50, a busy signal is returned to the personal computer PC1. Such block release processing and data reception suspension processing are performed until the number of blocks used by each job J1, J2, that is, the combination of each interface reaches the maximum reserved block number 92 set in step 42 (see FIG. 6).

【0039】ステップ45は、ジョブに何らかの原因で
エラーが発生したときの処理である。出力先のプリンタ
に、紙詰まり、紙切れ、インクやトナーなどの消耗品切
れなどが発生すると、エラー状態になり、データの送受
信が不能になる。このような場合には、そのエラーを起
こしているジョブ(インターフェースの組合せ)に対し
て割り当てられているブロックは無駄になるので、本例
のインターフェース変換装置10では、エラー発生した
ジョブに割り当てられているブロックを開放する。
Step 45 is a process when an error occurs in the job for some reason. If the output destination printer becomes jammed, out of paper, or out of consumables such as ink or toner, an error occurs, and data transmission / reception becomes impossible. In such a case, the blocks assigned to the job in which the error has occurred (combination of interfaces) are wasted, so the interface conversion device 10 of the present embodiment assigns the blocks assigned to the job in which the error has occurred. Release the block that is

【0040】例えば、ステップ45において、プリンタ
P3でエラーが発生してデータの送受信が不調になる
と、ステップ52において、インターフェース23およ
び25の組合せ(ジョブJ1)に割り当てられているブ
ロックのうち、データを送信中であったブロック以外の
ブロックが開放される。このため、インターフェース2
2、26の組合せ(ジョブJ2)の側でそれらを利用す
ることができ、データ通信が正常に行われているインタ
ーフェースの組合せ(ジョブ)のために割り当てられる
記憶容量を増加させることができる。したがって、イン
ターフェースの組合せの送受信速度を向上できる。この
ため、本例のインターフェース変換装置10では、最大
予約ブロック数92の数をエラーが発生していないジョ
ブの数に対応した値に変更する。
For example, in step 45, if an error occurs in the printer P3 and transmission / reception of data becomes abnormal, in step 52, data of the blocks assigned to the combination of the interfaces 23 and 25 (job J1) is deleted. Blocks other than the block being transmitted are released. Therefore, interface 2
They can be used on the side of the combination of 2, 26 (job J2), and the storage capacity allocated for the combination (job) of the interface in which data communication is normally performed can be increased. Therefore, the transmission / reception speed of the combination of interfaces can be improved. Therefore, in the interface conversion device 10 of the present example, the number of the maximum reserved blocks 92 is changed to a value corresponding to the number of jobs in which no error has occurred.

【0041】このようなエラー処理を行うと、エラーが
発生したプリンタへのデータの送受信が途中でキャンセ
ルされてしまうが、エラーが解除された後に、データの
発信元であるパソコンに対し、データの再送をリクエス
トすることが可能である。このような機能により、エラ
ー発生前にブロックに格納したデータを喪失させること
になく、エラー解消後もデータ転送を正常に行うことが
できる。
When such error processing is performed, transmission / reception of data to / from the printer in which the error occurred is canceled in the middle. However, after the error is cleared, the data is transmitted to the personal computer which is the data transmission source. It is possible to request retransmission. With such a function, data transfer can be performed normally even after the error is resolved, without losing the data stored in the block before the error occurs.

【0042】一方、ステップ46において、ジョブが終
了すると、そのジョブで使用していたブロックを開放す
る。例えば、ジョブJ2に先立って進行していたジョブ
J1が終了した場合には、ジョブJ1で使用していたブ
ロックB0、B3、B4、B5を開放し、未使用になっ
た出力用のインターフェース25に対応して1つのブロ
ックは残すようにして、他のブロックはジョブJ2で利
用できるようにする。このため、ステップ53におい
て、ジョブJ2における最大予約ブロック数92を
「4」から「7」にアップさせる。これにより、ジョブ
J2におけるデータ転送のためのメモリ領域が増加し、
転送速度を向上できる。
On the other hand, when the job is completed in step 46, the blocks used in the job are released. For example, when the job J1 that has been proceeding prior to the job J2 is completed, the blocks B0, B3, B4, and B5 used in the job J1 are released, and the unused output interface 25 is used. Correspondingly, one block is left, and the other block is made available for the job J2. Therefore, in step 53, the maximum number of reserved blocks 92 in the job J2 is increased from “4” to “7”. This increases the memory area for data transfer in job J2,
Transfer speed can be improved.

【0043】このように、稼動中のインターフェースの
組合せの数が減ったときは、最大予約ブロック数92が
増えるので、それに対応してその他の稼動中のインター
フェースの組合せに対し、今まで使用していたブロック
を開放して利用することができる。このため、記憶領域
(バッファ32)を有効利用できる。一方、インターフ
ェースの組合せ(ジョブ)の数が増えたときは、最大予
約ブロック数92が減り、使用しているブロックの数よ
りも最大予約ブロック数92が少なくなり、使用してい
るブロック数が最大予約ブロック数92に低下するま
で、稼動中のジョブにおけるデータ受信は中断される。
このようにして、稼動中のジョブの数に応じて自動的に
ブロックの割り当てが変わるので、複数のインターフェ
ースを常に有効利用できる。
As described above, when the number of active interface combinations decreases, the maximum number of reserved blocks 92 increases. Accordingly, other active interface combinations have been used up to now. You can use the open blocks. Therefore, the storage area (buffer 32) can be used effectively. On the other hand, when the number of interface combinations (jobs) increases, the maximum number of reserved blocks 92 decreases, the maximum number of reserved blocks 92 becomes smaller than the number of used blocks, and the number of used blocks becomes the maximum. Until the number of reserved blocks drops to 92, data reception in the running job is suspended.
In this way, the allocation of blocks is automatically changed according to the number of running jobs, so that a plurality of interfaces can always be used effectively.

【0044】すなわち、本例のインターフェース変換装
置10では、個々のインターフェース22〜27に専用
のメモリ領域を固定的に割り当てるのではなく、ジョブ
の発生、すなわち、インターフェースの組合せが発生し
た時点で、各ジョブに対して適切な容量のメモリ領域を
割り当てるようにしている。このため、ジョブが発生す
ると、ジョブの数に関わらず、常に装置10に内蔵され
たメモリ領域であるバッファ32の領域のほぼ全てを有
効利用でき、メモリの利用効率が非常に高い。したがっ
て、装置10に内蔵されたバッファ32の領域のほぼ全
てを常に最大限利用できるので、個々のインターフェー
スに専用のバッファを用意しておくより装置内で用意し
ておくメモリの容量が少なくても十分な転送効率を確保
できる。したがって、複数のインターフェースが組み込
まれたインターフェース変換装置をコンパクトにでき、
また、低コストで提供できる。
That is, in the interface converter 10 of the present embodiment, a dedicated memory area is not fixedly allocated to each of the interfaces 22 to 27, but when a job is generated, that is, when a combination of interfaces is generated, each An appropriate amount of memory area is allocated to the job. For this reason, when a job occurs, almost all of the area of the buffer 32, which is a memory area built in the apparatus 10, can be used effectively regardless of the number of jobs, and the memory utilization efficiency is extremely high. Therefore, almost all of the area of the buffer 32 built in the device 10 can always be used to the maximum, so that even if the capacity of the memory prepared in the device is smaller than preparing a dedicated buffer for each interface, Sufficient transfer efficiency can be secured. Therefore, the interface converter incorporating a plurality of interfaces can be made compact,
Also, it can be provided at low cost.

【0045】また、本例のインターフェース変換装置1
0では、ジョブの数が少ないときは、個々のジョブに大
きな記録容量を割り当てておくことができるので、高速
で処理できる。その一方で、ジョブの数が多くなって
も、個々のジョブに対して記憶領域の一部分を利用でき
るので、1つのジョブが終了するまで、その他のジョブ
の開始をストップする必要はなくタイムラグなくジョブ
を開始できる。したがって、複数のインターフェースに
対しても柔軟に対処できるので、個々のインターフェー
スの組合せに専用の記憶領域を設けずにすみ、複数のイ
ンターフェースが搭載された中継装置をコストダウンお
よび小型化できる。このため、本例により、パソコン、
スキャナ、プリンタ、デジタルカメラ等の情報処理装置
および周辺機器を複数台接続できる非常に汎用性が高
く、高性能で低コストなインターフェース変換装置を提
供できる。
The interface conversion device 1 of this embodiment
In the case of 0, when the number of jobs is small, a large recording capacity can be allocated to each job, so that high-speed processing can be performed. On the other hand, even if the number of jobs increases, a part of the storage area can be used for each job, so it is not necessary to stop the start of other jobs until one job is completed, and the job can be executed without time lag. Can start. Therefore, since a plurality of interfaces can be flexibly dealt with, it is not necessary to provide a dedicated storage area for a combination of individual interfaces, and it is possible to reduce the cost and size of the relay device having the plurality of interfaces. Therefore, in this example, the personal computer,
A highly versatile, high-performance, and low-cost interface converter that can connect a plurality of information processing devices such as scanners, printers, digital cameras, and peripheral devices can be provided.

【0046】図7ないし図13にはインターフェース変
換装置10で行われる処理のより細かいプロセスを示し
てある。図7(a)はデータの入力側の処理を示してい
る。図7(a)に示すように、まず、ステップ91で、
いずれかの入力側インターフェース22〜24からジョ
ブの開始コマンドが入力され、それが新規ジョブである
と認識されると、ステップ92でコマンド「Open
Port」に対応した処理としてジョブ開始処理が実行
される。この開始処理は、図8に示すように、まず、ス
テップ61において、認識された新規ジョブを開始でき
る状態、すなわち、新規ジョブで使用される出力側のイ
ンターフェース25、26または27が未使用状態であ
ると、ステップ62において、動作しているプリンタポ
ートの数91、すなわち、IEEE1284準拠のイン
ターフェースの使用数を1つカウントアップする。次
に、ステップ63において、稼動中、すなわち、動作し
ているプリンタポート数に応じて稼動中のインターフェ
ースの組合せの数を把握して、最大予約ブロック数92
を変更する。上述した例では、ジョブJ1、J2のそれ
ぞれに4ヶのブロックが割り当てられるように、最大予
約ブロック数92を「7」から「4」に変更する。そし
て、ステップ64において、新規ジョブで使用されるプ
リンタの情報(プリンタデータ)100を初期化し、新
規ジョブを開始する準備が完了する。
FIGS. 7 to 13 show a more detailed process of the processing performed by the interface conversion device 10. FIG. FIG. 7A shows processing on the data input side. As shown in FIG. 7A, first, in step 91,
If a job start command is input from any of the input interfaces 22 to 24 and is recognized as a new job, in step 92 the command “Open” is issued.
A job start process is executed as a process corresponding to “Port”. As shown in FIG. 8, in the start process, first, in step 61, a state in which the recognized new job can be started, that is, the output interface 25, 26, or 27 used in the new job is in an unused state. If there is, in step 62, the number 91 of operating printer ports, that is, the number of used IEEE1284-compliant interfaces is counted up by one. Next, in step 63, the number of active interface combinations is grasped according to the number of operating interfaces, that is, the number of operating printer ports.
To change. In the example described above, the maximum number of reserved blocks 92 is changed from “7” to “4” so that four blocks are assigned to each of the jobs J1 and J2. Then, in step 64, the printer information (printer data) 100 used for the new job is initialized, and preparations for starting the new job are completed.

【0047】この準備が整うと、図7(a)に基づい
て、ステップ93でジョブが受け付けられたと判断さ
れ、さらに、ステップ94において新規ジョブのデータ
を格納するためのブロックの予約コマンド「Check
and Reserve FIFO」を受信可能にな
る。このブロック予約処理(ステップ98)も、そのコ
マンド「Check and Reserve FIF
O」に対応した処理として実行される。図9に示すよう
に、ステップ65において使用中のブロック数が最大予
約ブロック数92が超えていないか否かが判断される。
最大予約ブロック数92を超えていなければ、ステップ
66で、空きブロックのチェックとそのブロックを新規
ジョブに割り当てるための処理が行われる。すなわち、
データを格納できるブロックのチェックが行われると共
に、そのブロックに対するデータのコピー処理のリクエ
ストが発生される。そして、ステップ67において、リ
クエストしたブロックの使用許可が下りると、ステップ
68において、その許可されたブロックの番号をプリン
タデータ100の予約したブロック番号ResNo10
3にセットする。この番号のセットが終わると、ブロッ
ク予約処理が終了する。
When this preparation is completed, it is determined based on FIG. 7A that the job has been accepted in step 93, and further, in step 94, a block reservation command "Check" for storing data of a new job is checked.
and Reserve FIFO "can be received. This block reservation process (step 98) also uses the command “Check and Reserve FIF”.
This is executed as a process corresponding to “O”. As shown in FIG. 9, in step 65, it is determined whether the number of blocks in use does not exceed the maximum reserved block number 92.
If the maximum reserved block number 92 is not exceeded, at step 66, a check for an empty block and a process for allocating the block to a new job are performed. That is,
A block in which data can be stored is checked, and a request for a data copy process for the block is issued. Then, in step 67, when the use permission of the requested block is lowered, in step 68, the number of the permitted block is changed to the reserved block number ResNo10 of the printer data 100.
Set to 3. When this number setting is completed, the block reservation processing ends.

【0048】このブロック予約処理の終了後、再び図7
(a)に戻ると、ステップ95でホストからのデータを
受信するコマンド「Print Data」を受け付け
可能になる。そして、ステップ99でデータ受信処理が
開始される。この処理もデータ受信コマンド「Prin
t Data」に対応した処理として行われる。図10
に示すように、データ受信処理(ステップ99)では、
ステップ71において、ブロック予約処理(ステップ9
8)が正常に終了していることを判断し、ステップ72
でプリンタデータ100のブロック番号を示すデータP
Que(i)の部分にブロック予約処理で予約したブロ
ックの番号を書き込む。ステップ73において、予約し
た番号のブロックに印刷データをコピー(格納)する。
予約したブロックにデータが満たされると、ステップ7
4において、プリンタデータ100の受信済のデータの
受信番号Last102を1つカウントアップし、ステ
ップ75において、ResNo103の予約したブロッ
ク番号をクリアする。この番号のクリアによって所定の
パケットサイズのデータの受信処理が終了し、次のパケ
ットのデータ受信の処理に移行する。すなわち、次のパ
ケットデータを別のブロックに格納するために、ブロッ
ク予約処理(ステップ98)およびデータ受信処理(ス
テップ99)が行われる。
After the end of the block reservation processing, FIG.
Returning to (a), a command “Print Data” for receiving data from the host in step 95 can be accepted. Then, in step 99, the data receiving process is started. This processing is also performed by the data reception command “Prin
This is performed as processing corresponding to “t Data”. FIG.
As shown in the figure, in the data receiving process (step 99),
In step 71, block reservation processing (step 9)
It is determined that step 8) has been completed normally, and step 72
Is the data P indicating the block number of the printer data 100.
The number of the block reserved in the block reservation processing is written in the portion of Que (i). In step 73, the print data is copied (stored) in the block of the reserved number.
If the reserved block is filled with data, step 7
In step 4, the reception number Last102 of the received data of the printer data 100 is counted up by one, and in step 75, the reserved block number of ResNo103 is cleared. By the clearing of this number, the reception processing of the data of the predetermined packet size ends, and the processing shifts to the processing of data reception of the next packet. That is, a block reservation process (step 98) and a data reception process (step 99) are performed to store the next packet data in another block.

【0049】一方、このようなデータ受信処理と並行し
て、図7(b)に示す出力側のインターフェース25、
26または27からプリンタに対してデータを送信する
処理も進行する。この出力側の処理は、ステップ101
において、プリンタにデータを送信するタイミングにな
ると、ステップ102においてその処理が実行される。
この処理は図11に示してある。まず、ステップ76に
おいて、所定のブロックに格納されたデータを送信する
ためのアドレス設定が行われる。そして、ステップ77
において、所定のアドレスのデータが出力側のインター
フェースを介してプリンタに送信される。このデータ送
信はステップ79において、そのブロックに格納されて
いるデータの全てが送信され終わるまで継続される。ブ
ロック内のデータが送信され終わると、ステップ80に
おいて、プリンタデータ100の現在印刷中のデータの
受信番号Cur101の番号を1つカウントアップす
る。これにより、所定のブロックに格納されたデータの
送信処理が終了する。データの送信中に、プリンタとの
間で通信エラーが発生すると、ステップ78からステッ
プ81に移行する割り込み処理が発生して、通信エラー
処理が実行される。この処理では、図12に示すよう
に、ステップ82において、プリンタデータ100の受
信済データの受信番号Last102を、現在印刷中の
データの受信番号Cur101に対し1つカウントダウ
ンしたデータとする。
On the other hand, in parallel with such data reception processing, the output side interface 25 shown in FIG.
The process of transmitting data from 26 or 27 to the printer also proceeds. The processing on the output side is performed in step 101.
, When it is time to transmit data to the printer, the process is executed in step 102.
This process is shown in FIG. First, in step 76, an address for transmitting data stored in a predetermined block is set. And step 77
In, data at a predetermined address is transmitted to the printer via the output-side interface. This data transmission is continued in step 79 until all of the data stored in the block has been transmitted. When the data in the block has been transmitted, in step 80, the number of the receiving number Cur101 of the data currently being printed of the printer data 100 is counted up by one. Thereby, the transmission processing of the data stored in the predetermined block ends. If a communication error occurs between the printer and the printer during data transmission, an interrupt process that shifts from step 78 to step 81 occurs, and the communication error process is executed. In this process, as shown in FIG. 12, in step 82, the reception number Last102 of the received data of the printer data 100 is set to data obtained by counting down the reception number Cur101 of the data currently being printed by one.

【0050】図7(a)に戻って、ステップ96で進行
中のジョブが終了すると、ステップ97のジョブエンド
処理が行われる。この処理もジョブエンドを示すコマン
ド「Close Port」に対応した処理として実行
される。図13に示すように、まず、ステップ85にお
いて、動作しているプリンタポート数を1つカウントダ
ウンさせる。そして、ステップ86において、動作して
いるプリンタポート数に応じて最大予約ブロック数を変
更する。図4を参照に説明した処理の例では、最大予約
ブロック数92を「4」から「8」に変更する。
Returning to FIG. 7A, when the ongoing job is completed in step 96, the job end process in step 97 is performed. This process is also executed as a process corresponding to the command “Close Port” indicating the job end. As shown in FIG. 13, first, in step 85, the number of operating printer ports is counted down by one. Then, in step 86, the maximum reserved block number is changed according to the number of operating printer ports. In the example of the processing described with reference to FIG. 4, the maximum reserved block number 92 is changed from “4” to “8”.

【0051】なお、本例のインターフェース変換装置1
0では、1つのメモリにバッファ32を設定し、それら
を仮想的に分割しているが、個々のバッファに対応した
複数、すなわち、物理的に異なるメモリを設けても良い
し、複数のメモリを適当に分割しても良い。また、上述
した装置は全て例示に過ぎず、例えば、分割するブロッ
クの数は9ヶに限定されず、8ヶ以下、または10ヶ以
上でも良く、装置に搭載されるインターフェースの数
や、内蔵されるメモリ容量、また、データのパケットサ
イズに応じて決定することが可能である。
The interface conversion device 1 of the present embodiment
In the case of 0, the buffer 32 is set in one memory and is virtually divided. However, a plurality of memories corresponding to the individual buffers, that is, physically different memories may be provided. It may be divided appropriately. Further, all of the above-described devices are merely examples. For example, the number of blocks to be divided is not limited to nine, and may be eight or less, or ten or more. It can be determined according to the memory capacity and the data packet size.

【0052】また、本例では、バッファ32をデータの
パケットサイズに応じてブロック分けすることで、領域
確保や領域開放等の制御を簡単にして、それらの制御の
ためのソフトウェアおよびハードウェア資源を削減して
いるのが、フラグメント化されたパケットを再編成して
転送したり、送受信するデータ量が一定でない場合はバ
リアブルにすることも可能である。
Further, in this example, by dividing the buffer 32 into blocks according to the data packet size, control such as area reservation and area release is simplified, and software and hardware resources for the control are reduced. The reason for this is that fragmented packets can be rearranged and transferred, or variable when the amount of data to be transmitted and received is not constant.

【0053】また、上述の説明においては、本例のイン
ターフェース変換装置10を経由して、パソコンからプ
リンタにデータを転送する処理を説明したが、デジタル
カメラDC1やデジタルビデオカメラDV1から装置1
0を経由してパソコンまたはプリンタにデータを転送す
る処理や、パソコンPC1から装置10を経由してパソ
コンPC3にデータを転送する処理であっても良い。ま
た、データ通信エラーの例としてプリンタのエラー状態
を説明したが、スキャナ、デジタルカメラ、デジタルビ
デオカメラなどの周辺機器においてもエラー状態は発生
するので、プリンタ以外の周辺機器に対しても上述した
処理は適用できる。
In the above description, the processing for transferring data from the personal computer to the printer via the interface converter 10 of the present embodiment has been described.
For example, a process of transferring data to a personal computer or a printer via the PC 10 or a process of transferring data from the personal computer PC1 to the personal computer PC3 via the device 10 may be used. Further, the error state of the printer has been described as an example of the data communication error. However, since the error state also occurs in peripheral devices such as a scanner, a digital camera, and a digital video camera, the above-described processing is performed for the peripheral devices other than the printer. Is applicable.

【0054】さらに、IEEE1394インターフェー
スを介して取得したデータをIEEE1284インター
フェースから送信しているが、前述したように、インタ
ーフェースはこれらに限る必要はないので、例えば、I
EEE1394とUSB、SCSIとIEEE1394
などの組合せのデータ転送であっても勿論良い。さらに
また、データが入力されるインターフェースとデータが
出力されるインターフェースが1対1になっている例を
説明したが、1つのインターフェースからデータが入力
され、2つ以上のインターフェースからデータを転送す
る処理に対しても本発明を適用可能である。
Further, the data obtained through the IEEE 1394 interface is transmitted from the IEEE 1284 interface. However, as described above, the interface is not limited to these.
IEEE 1394 and USB, SCSI and IEEE 1394
Of course, a combination of data transfer may be used. Furthermore, an example has been described in which an interface to which data is input and an interface to which data is output are one-to-one. However, a process in which data is input from one interface and data is transferred from two or more interfaces The present invention is also applicable to

【0055】上述したインターフェース変換装置および
装置の処理方法は、コンピュータあるいはCPU、AS
IC等のプロセッサで実行可能なソフトウェアあるいは
ファームウェア等のプログラム製品の形態で提供するこ
とができる。また、ROMや、メモリカードのような携
帯型のメモリ等のコンピュータあるいはプロセッサ読み
取り可能な記録媒体に記録して提供できる。さらに、イ
ンターネット等の通信回線でファームウェアをアップデ
ートする際に、各種の機能を加える態様で通信回線から
配信される伝送媒体に含めて提供することも可能であ
る。
The interface conversion device and the processing method of the device described above are executed by a computer, CPU, or AS.
It can be provided in the form of a program product such as software or firmware executable by a processor such as an IC. Further, it can be provided by being recorded on a computer or a processor-readable recording medium such as a ROM or a portable memory such as a memory card. Further, when the firmware is updated on a communication line such as the Internet, the firmware can be provided in a form of adding various functions to transmission media distributed from the communication line.

【0056】[0056]

【発明の効果】以上説明したように、本発明において
は、個々のインターフェースに固定的にメモリ領域を割
り当てるのではなく、稼動中のインターフェースの組み
合せの数に応じて、それぞれのインターフェースの組合
せ(ジョブ)に割り当てられる記憶容量を動的に変化さ
せるようにしている。このため、稼動中のジョブの数が
少ないときには記憶領域のほとんどを、そのジョブに対
して割り当てることができ、メモリ、すなわち、記憶領
域を有効利用できる。一方、稼動中のジョブの数が多い
ときには、インターフェースの組合せの数に応じて割り
当てられる記憶領域の部分の比率を変えて全てのジョブ
で記憶領域全体を有効利用できる。
As described above, in the present invention, a memory area is not fixedly allocated to each interface, but a combination of each interface (job ) Is dynamically changed. Therefore, when the number of active jobs is small, most of the storage area can be allocated to the job, and the memory, that is, the storage area can be used effectively. On the other hand, when the number of active jobs is large, the entire storage area can be effectively used for all jobs by changing the ratio of the storage area portion allocated according to the number of interface combinations.

【0057】したがって、ジョブの数が少ないときは、
個々のジョブに大きな記憶容量を割り当てて高速で処理
でき、ジョブの数が多いときでも記憶容量を有効に活用
して、全てのジョブをタイムラグが発生することなく開
始できる。また、記憶領域を有効利用できるので、装置
に内蔵するメモリの容量も必要以上に増やさなくても良
い。さらに、複数のインターフェースが設けられている
場合でも、個々のインターフェースの組合せに専用の記
憶領域を設けずに済むので、複数のインターフェースが
搭載された中継装置をコストダウンでき、さらに、小型
化できる。これにより、パソコン、スキャナ、プリン
タ、デジタルビデオカメラ等の情報処理装置および周辺
機器を複数台接続でき、非常に汎用性が高く、高性能で
低コストな中継装置を提供できる。
Therefore, when the number of jobs is small,
A large storage capacity can be allocated to each job so that processing can be performed at high speed. Even when the number of jobs is large, the storage capacity can be effectively used and all jobs can be started without a time lag. Further, since the storage area can be effectively used, the capacity of the memory built in the apparatus does not need to be increased more than necessary. Further, even when a plurality of interfaces are provided, it is not necessary to provide a dedicated storage area for a combination of the individual interfaces. Therefore, the cost of the relay apparatus having the plurality of interfaces can be reduced, and the size can be further reduced. As a result, a plurality of information processing devices such as a personal computer, a scanner, a printer, and a digital video camera and peripheral devices can be connected, and a highly versatile, high-performance, low-cost relay device can be provided.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を適用したインターフェース変換装置を
用いて構成した情報処理システムの概略構成図である。
FIG. 1 is a schematic configuration diagram of an information processing system configured using an interface conversion device to which the present invention has been applied.

【図2】本例のインターフェース変換装置の概略のハー
ドウェア構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a schematic hardware configuration of an interface conversion device according to the present embodiment.

【図3】本例のインターフェース変換装置の概略の機能
ブロック図である。
FIG. 3 is a schematic functional block diagram of the interface conversion device of the present embodiment.

【図4】本例のインターフェース変換装置の概略の処理
を示すフローチャートである。
FIG. 4 is a flowchart showing a schematic process of the interface conversion device of the present example.

【図5】本例のインターフェース変換装置におけるプリ
ンタデータの詳細、およびブロックの使用状況を説明す
るための図である。
FIG. 5 is a diagram for explaining details of printer data and a use state of blocks in the interface conversion device of the present example.

【図6】本例のインターフェース変換装置におけるブロ
ックの使用状況の変移を説明するための図である。
FIG. 6 is a diagram for explaining a change in the use state of a block in the interface conversion device of the present example.

【図7】本例のインターフェース変換装置における詳細
な処理を示すフローチャートである。
FIG. 7 is a flowchart showing detailed processing in the interface conversion device of the present example.

【図8】本例のインターフェース変換装置におけるジョ
ブ開始処理を示すフローチャートである。
FIG. 8 is a flowchart illustrating a job start process in the interface conversion device of the present example.

【図9】本例のインターフェース変換装置におけるブロ
ック予約処理を示すフローチャートである。
FIG. 9 is a flowchart showing a block reservation process in the interface conversion device of the present example.

【図10】本例のインターフェース変換装置におけるデ
ータ受信処理を示すフローチャートである。
FIG. 10 is a flowchart showing a data receiving process in the interface conversion device of the present example.

【図11】本例のインターフェース変換装置におけるデ
ータ送信処理を示すフローチャートである。
FIG. 11 is a flowchart illustrating a data transmission process in the interface conversion device of the present example.

【図12】本例のインターフェース変換装置における通
信エラー処理を示すフローチャートである。
FIG. 12 is a flowchart illustrating communication error processing in the interface conversion device of the present example.

【図13】本例のインターフェース変換装置におけるジ
ョブエンド処理を示すフローチャートである。
FIG. 13 is a flowchart illustrating job end processing in the interface conversion device of the present example.

【符号の説明】[Explanation of symbols]

1・・情報処理システム 2〜7・・インターフェースコネクタ 10・・インターフェース変換装置 22〜24・・IEEE1394準拠のインターフェー
ス 25〜27・・IEEE1284準拠のインターフェー
ス 31・・データ転送部 32・・バッファ(記憶領域) 33・・領域制御部 35・・コマンド解析部 36・・コマンド実行部 92・・最大予約ブロック数(最大値) B0〜B8・・ブロック J1、J2・・ジョブ PC1、PC2、PC3・・パソコン P1、P2、P3、P4・・プリンタ DC1・・デジタルカメラ DV・・デジタルビデオカメラ
1 Information processing system 2-7 Interface connector 10 Interface converter 22-24 IEEE1394 compliant interface 25-27 IEEE1284 compliant interface 31 Data transfer unit 32 Buffer (storage area) 33) Area control unit 35 Command analysis unit 36 Command execution unit 92 Maximum number of reserved blocks (maximum value) B0 to B8 Blocks J1, J2 Job PC1, PC2, PC3 PC P1, P2, P3, P4 Printer DC1 Digital camera DV Digital video camera

Claims (22)

【特許請求の範囲】[Claims] 【請求項1】 データの入力および出力の少なくともい
ずれか一方が可能な複数のインターフェースと、 これらのインターフェースを組合せて一方の前記インタ
ーフェースから他方の前記インターフェースにデータを
転送するデータ転送手段と、 前記インターフェースの組合せで中継されるデータの一
時的な記憶領域と、 稼動中の前記インターフェースの組合せの各々に前記記
憶領域を部分的に割り当て可能な領域制御手段とを有
し、 前記領域制御手段は、各インターフェースの組合せの数
に応じて、それらに割り当てられる前記記憶領域の部分
の比率を変えることを特徴とする中継装置。
A plurality of interfaces capable of at least one of input and output of data; data transfer means for combining these interfaces to transfer data from one of said interfaces to another of said interfaces; A temporary storage area for data relayed by a combination of: and an area control unit capable of partially allocating the storage area to each of the combinations of the operating interfaces. A relay device, wherein a ratio of a portion of the storage area allocated to them is changed according to the number of combinations of interfaces.
【請求項2】 請求項1において、前記一方のインター
フェースと前記他方のインターフェースとは規格が異な
ることを特徴とする中継装置。
2. The relay device according to claim 1, wherein the one interface and the other interface have different standards.
【請求項3】 請求項1において、前記領域制御手段
は、未使用の出力用のインターフェースが専用にアクセ
ス可能な領域が前記記憶領域に残るように、前記稼動中
のインターフェースの組合せに前記記憶領域を割り当て
ることを特徴とする中継装置。
3. The storage area control unit according to claim 1, wherein the area control means stores the storage area in the combination of the operating interfaces such that an area exclusively accessible to an unused output interface remains in the storage area. A relay device.
【請求項4】 請求項1において、前記記憶領域はデー
タの送受信単位に応じた複数のブロックに分割されてお
り、 前記領域制御手段は、稼動中の前記インターフェースの
組合せの数により、各々の前記インターフェースの組合
せに割り当てられる前記ブロックの最大値を増減し、 前記データ転送手段は、既に割り当てられている前記ブ
ロックの数が前記最大値よりも少ないときに、前記一方
のインターフェースからのデータを新たに割り当てられ
た前記記憶領域のブロックに転送することを特徴とする
中継装置。
4. The storage area according to claim 1, wherein the storage area is divided into a plurality of blocks in accordance with a data transmission / reception unit, and the area control means determines the number of each of the active interface combinations based on the number of active interface combinations. Increasing or decreasing the maximum value of the blocks allocated to the combination of interfaces, the data transfer means newly renews the data from the one interface when the number of blocks already allocated is less than the maximum value. A relay device for transferring data to a block in the allocated storage area.
【請求項5】 請求項1において、前記領域制御手段
は、稼動中の前記インターフェースの組合せのうちの1
つでデータの送信が不能になると、不能になった前記イ
ンターフェースの組合せに割り当てられていた前記記憶
領域の部分が開放されるようにし、前記比率を変えるこ
とを特徴とする中継装置。
5. The apparatus according to claim 1, wherein the area control means is configured to select one of the active interface combinations.
When the data transmission becomes impossible, the portion of the storage area allocated to the disabled interface combination is released, and the ratio is changed.
【請求項6】 請求項4において、前記領域制御手段
は、未使用の出力用のインターフェースの各々に対し少
なくとも1つのブロックが残るように、前記ブロックの
最大値を決定することを特徴とする中継装置。
6. The relay according to claim 4, wherein the area control means determines a maximum value of the unused output interface such that at least one block remains for each of the output interfaces. apparatus.
【請求項7】 請求項4において、前記領域制御手段
は、稼動中の前記インターフェースの組合せのうちの1
つでデータの送信が不能になると、不能になった前記イ
ンターフェースの組合せの数を減じて前記最大値を増加
し、 前記データ中継手段は、不能になった前記インターフェ
ースの組合せに割り当てられていた前記記憶領域のブロ
ックを開放することを特徴とする中継装置。
7. The system according to claim 4, wherein the area control means is configured to select one of the active interface combinations.
When the transmission of data is disabled, the maximum value is increased by reducing the number of disabled interface combinations, and the data relay unit is assigned to the disabled interface combination. A relay device for releasing a block of a storage area.
【請求項8】 請求項1に記載の中継装置と、この装置
に対してデータの送受信を行う情報処理装置とを有する
ことを特徴とする情報処理システム。
8. An information processing system, comprising: the relay device according to claim 1; and an information processing device that transmits and receives data to and from the relay device.
【請求項9】 データの入力および出力の少なくともい
ずれか一方が可能な複数のインターフェースと、これら
のインターフェースの組合せで中継されるデータの一時
的な記憶領域とを有し、前記インターフェースを組合せ
て一方の前記インターフェースから他方の前記インター
フェースにデータを転送する中継装置の制御方法であっ
て、 稼動中の前記インターフェースの組合せの各々に前記記
憶領域を部分的に割り当てる工程と、 各インターフェースの組合せの数に応じて、それらに割
り当てられる前記記憶領域の部分の比率を変える工程と
を有することを特徴とする中継装置の制御方法。
9. It has a plurality of interfaces capable of at least one of data input and output, and a temporary storage area for data relayed by a combination of these interfaces. A method of controlling a relay device for transferring data from the interface to the other interface, wherein the storage area is partially allocated to each of the active interface combinations; Changing the ratio of the portion of the storage area allocated to them according to the method.
【請求項10】 請求項9において、前記一方のインタ
ーフェースと前記他方のインターフェースとは規格が異
なることを特徴とする中継装置の制御方法。
10. The method according to claim 9, wherein the one interface and the other interface have different standards.
【請求項11】 請求項9において、さらに、未使用の
出力用のインターフェースが専用にアクセス可能な領域
が前記記憶領域に残るように、前記稼動中のインターフ
ェースの組合せに前記記憶領域を割り当てる工程を有す
ることを特徴とする中継装置の制御方法。
11. The method according to claim 9, further comprising: allocating the storage area to the active interface combination such that an area exclusively accessible to an unused output interface remains in the storage area. A method for controlling a relay device, comprising:
【請求項12】 請求項9において、さらに、データの
送受信単位に応じた複数のブロックに分割された記憶領
域を用いて、稼動中の前記インターフェースの組合せの
数により、各々の前記インターフェースの組合せに割り
当てられる前記ブロックの最大値を増減する工程と、 既に割り当てられている前記ブロックの数が前記最大値
よりも少ないときに、前記一方のインターフェースから
のデータを新たに割り当てられた前記記憶領域のブロッ
クに転送する工程とを有することを特徴とする中継装置
の制御方法。
12. The interface combination according to claim 9, further comprising: using a storage area divided into a plurality of blocks corresponding to a data transmission / reception unit, based on the number of active interface combinations. Increasing or decreasing the maximum value of the allocated block; and when the number of the blocks already allocated is less than the maximum value, the block of the storage area to which data from the one interface is newly allocated. Transferring to a relay device.
【請求項13】 請求項9において、さらに、稼動中の
前記インターフェースの組合せのうちの1つでデータの
送信が不能になると、不能になった前記インターフェー
スの組合せに割り当てられていた前記記憶領域の部分が
開放されるようにし、前記比率を変える工程を有するこ
とを特徴とする中継装置の制御方法。
13. The storage area according to claim 9, further comprising, when data transmission is disabled in one of the operating interface combinations, the storage area allocated to the disabled interface combination. A method of controlling a relay device, comprising a step of changing the ratio so that a portion is opened.
【請求項14】 請求項12において、前記最大値を増
減する工程では、未使用の出力用のインターフェースの
各々に対し少なくとも1つのブロックが残るように、前
記ブロックの最大値を決定することを特徴とする中継装
置の制御方法。
14. The method of claim 12, wherein the step of increasing or decreasing the maximum value determines the maximum value of the block such that at least one block remains for each unused output interface. Control method of the relay device.
【請求項15】 請求項12において、さらに、稼動中
の前記インターフェースの組合せのうちの1つでデータ
の送信が不能になると、不能になった前記インターフェ
ースの組合せの数を減じて前記最大値を増加する工程
と、 不能になった前記インターフェースの組合せに割り当て
られていた前記記憶領域のブロックを開放する工程とを
有することを特徴とする中継装置の制御方法。
15. The method of claim 12, further comprising: when data transmission is disabled on one of the active interface combinations, reducing the number of disabled interface combinations to increase the maximum value. A method for controlling a relay device, comprising: increasing the number of blocks; and releasing a block of the storage area allocated to the disabled combination of interfaces.
【請求項16】 データの入力および出力の少なくとも
いずれか一方が可能な複数のインターフェースと、これ
らのインターフェースの組合せで中継されるデータの一
時的な記憶領域とを有し、前記インターフェースを組合
せて一方の前記インターフェースから他方の前記インタ
ーフェースにデータを転送する中継装置の制御プログラ
ムであって、 前記インターフェースの組合せを発生させるリクエスト
を受け付けたときに、前記インターフェースの組合せの
各々に前記記憶領域を部分的に割り当てる工程と、 前記インターフェースの組合せの発生または終了後に、
各インターフェースの組合せの数に応じて、それらに割
り当てられる前記記録領域の部分の比率を変える工程と
を実行可能な命令を有する前記制御プログラムが記録さ
れていることを特徴とするコンピュータまたはプロセッ
サ読み取り可能な記録媒体。
16. An interface comprising a plurality of interfaces capable of at least one of input and output of data, and a temporary storage area for data relayed by a combination of these interfaces. A control program of a relay device for transferring data from the interface to the other interface, wherein, when a request for generating the interface combination is received, the storage area is partially stored in each of the interface combinations. Assigning, and after the occurrence or termination of the interface combination,
Changing the ratio of the portion of the recording area assigned to each interface according to the number of combinations of the respective interfaces. Recording medium.
【請求項17】 請求項16において、前記一方のイン
ターフェースと前記他方のインターフェースとは規格が
異なる前記制御プログラムが記録されていることを特徴
とするコンピュータまたはプロセッサ読み取り可能な記
録媒体。
17. The computer or processor readable recording medium according to claim 16, wherein said one interface and said other interface record said control program having different standards.
【請求項18】 請求項16において、さらに、未使用
の出力用のインターフェースが専用にアクセス可能な領
域が前記記憶領域に残るように、前記稼動中のインター
フェースの組合せに前記記憶領域を割り当てることを特
徴とするコンピュータまたはプロセッサ読み取り可能な
記録媒体。
18. The method according to claim 16, further comprising: allocating the storage area to the combination of the operating interfaces so that an area exclusively accessible to an unused output interface remains in the storage area. Computer or processor-readable recording medium characterized by the following.
【請求項19】 請求項16において、さらに、データ
の送受信単位に応じた複数のブロックに分割された記憶
領域を用いて、稼動中の前記インターフェースの組合せ
の数により、各々の前記インターフェースの組合せに割
り当てられる前記ブロックの最大値を増減する工程と、 既に割り当てられている前記ブロックの数が前記最大値
よりも少ないときに、前記一方のインターフェースから
のデータを新たに割り当てられた前記記憶領域のブロッ
クに転送する工程とを実行可能な命令を有する前記制御
プログラムが記録されていることを特徴とするコンピュ
ータまたはプロセッサ読み取り可能な記録媒体。
19. The method according to claim 16, further comprising: using a storage area divided into a plurality of blocks corresponding to a data transmission / reception unit, and determining the number of combinations of the active interfaces. Increasing or decreasing the maximum value of the allocated block; and when the number of blocks already allocated is less than the maximum value, the block of the storage area to which data from the one interface is newly allocated. A computer or processor-readable recording medium, wherein the control program having instructions capable of executing the steps of:
【請求項20】 請求項16において、さらに、稼動中
の前記インターフェースの組合せのうちの1つでデータ
の送信が不能になると、不能になった前記インターフェ
ースの組合せに割り当てられていた前記記憶領域の部分
が開放されるようにし、前記比率を変える工程を実行可
能な命令を有する前記制御プログラムが記録されている
ことを特徴とするコンピュータまたはプロセッサ読み取
り可能な記録媒体。
20. The storage area according to claim 16, further comprising, when data transmission is disabled in one of the operating interface combinations, the storage area allocated to the disabled interface combination. A computer- or processor-readable recording medium, wherein the control program is recorded with instructions for causing a part to be opened and executing the step of changing the ratio.
【請求項21】 請求項19において、前記最大値を増
減する工程では、未使用の出力用のインターフェースの
各々に対し少なくとも1つの前記ブロックが残るよう
に、前記ブロックの最大値を決定する工程を実行可能な
命令を有する前記制御プログラムが記録されていること
を特徴とするコンピュータまたはプロセッサ読み取り可
能な記録媒体。
21. The method of claim 19, wherein the step of increasing or decreasing the maximum comprises determining the maximum of the block such that at least one of the blocks remains for each unused output interface. A computer- or processor-readable recording medium on which the control program having executable instructions is recorded.
【請求項22】 請求項19において、さらに、稼動中
の前記インターフェースの組合せのうちの1つでデータ
の送信が不能になると、不能になった前記インターフェ
ースの組合せの数を減じて前記最大値を増加する工程
と、 不能になった前記インターフェースの組合せに割り当て
られていた前記記憶領域のブロックを開放する工程とを
実行可能な命令を有する前記制御プログラムが記録され
ていることを特徴とするコンピュータまたはプロセッサ
読み取り可能な記録媒体。
22. The method according to claim 19, further comprising, when data transmission is disabled on one of the active interface combinations, reducing the number of disabled interface combinations to increase the maximum value. A computer storing the control program having instructions capable of executing an increasing step and a step of releasing a block of the storage area assigned to the disabled interface combination. Processor readable recording medium.
JP2000237127A 2000-08-04 2000-08-04 Repeater and control method therefor Pending JP2002051100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000237127A JP2002051100A (en) 2000-08-04 2000-08-04 Repeater and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000237127A JP2002051100A (en) 2000-08-04 2000-08-04 Repeater and control method therefor

Publications (1)

Publication Number Publication Date
JP2002051100A true JP2002051100A (en) 2002-02-15

Family

ID=18729039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000237127A Pending JP2002051100A (en) 2000-08-04 2000-08-04 Repeater and control method therefor

Country Status (1)

Country Link
JP (1) JP2002051100A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7428600B2 (en) 2002-04-26 2008-09-23 Seiko Epson Corporation Data transfer control device, electronic equipment, and data transfer control method
JP2013225221A (en) * 2012-04-20 2013-10-31 Fujitsu Ltd Communication control device, method, program and system
JP2018125710A (en) * 2017-02-01 2018-08-09 セイコーエプソン株式会社 Printing device and memory management method of printing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7428600B2 (en) 2002-04-26 2008-09-23 Seiko Epson Corporation Data transfer control device, electronic equipment, and data transfer control method
JP2013225221A (en) * 2012-04-20 2013-10-31 Fujitsu Ltd Communication control device, method, program and system
US9307005B2 (en) 2012-04-20 2016-04-05 Fujitsu Limited Communication control system, method, and apparatus
JP2018125710A (en) * 2017-02-01 2018-08-09 セイコーエプソン株式会社 Printing device and memory management method of printing device

Similar Documents

Publication Publication Date Title
US6333789B1 (en) Printing system, method and apparatus for processing a plurality of types of information different in priority
US6412022B1 (en) Simultaneous print and scan logical channel network multifunction peripheral
JPH10289074A (en) Job processing management method in multi-function print system
JPH10222331A (en) Printing system
JPH09224044A (en) Distribution system
JP4612176B2 (en) Multifunction printing method and multifunction printing system
EP1408401A2 (en) Printing method and printer
JP2000122817A (en) Network printer
JP4451562B2 (en) Method for prioritizing the use of basic resources in a multi-function printing system, method for managing the processing of multiple jobs and apparatus thereof
JP3337131B2 (en) Printer control device, task control method, and recording medium recording program
JP4678938B2 (en) Job content management method and management apparatus for system resources in an electrophotographic copying system
JPH08195764A (en) Lan interface device
JP6343913B2 (en) Image forming apparatus and image forming apparatus control method
JP2000035870A (en) Print system and printer
JP2002051100A (en) Repeater and control method therefor
CN110971621A (en) Embedded multi-CPU interconnection circuit based on SDIO interface, interconnection method and driving method
JP4328032B2 (en) Image processing device
US6731395B1 (en) Network printer with watch dog timer
JPH11149455A (en) Memory disk sharing method and its executing device
JP2000181656A (en) Printing data managing device and printing data managing method
JP7368051B2 (en) USB devices and control methods for USB devices
KR20010095103A (en) An intelligent bus interconnect unit
US6618164B1 (en) Network printer and network printing method
JP2002268940A (en) Image processor
JP4067199B2 (en) Data processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070717

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100205

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100601