JPH09167133A - Communication equipment, electronic equipment and controlling method for them - Google Patents

Communication equipment, electronic equipment and controlling method for them

Info

Publication number
JPH09167133A
JPH09167133A JP7329289A JP32928995A JPH09167133A JP H09167133 A JPH09167133 A JP H09167133A JP 7329289 A JP7329289 A JP 7329289A JP 32928995 A JP32928995 A JP 32928995A JP H09167133 A JPH09167133 A JP H09167133A
Authority
JP
Japan
Prior art keywords
buffer
buffers
interface
interfaces
reception
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.)
Withdrawn
Application number
JP7329289A
Other languages
Japanese (ja)
Inventor
Masahito Ochiai
将人 落合
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP7329289A priority Critical patent/JPH09167133A/en
Publication of JPH09167133A publication Critical patent/JPH09167133A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve communication efficiency by dynamically managing communication buffers in accordance with the use state of an interface. SOLUTION: A management table 600 manages the plural buffers of a communication equipment having serial I/F, parallel I/F and option I/F. Operation I/F number 603 shows the number of I/F during operation. A maximum acquirement possible number 602 shows the number of the buffers which is decided in accordance with the number of operation I/F and which respective I/F can acquire. When one I/F is in the middle of operation, all the buffers can be given to the I/F and the maximum acquirement possible number of the buffers becomes the number of all the buffers. When two I/Fs are in the middle of operation, the buffers are distributed to two I/Fs. Thus, the maximum acquirement possible number of the buffers becomes half of all the buffers. When an I/F reception flag (604, for example) is turned on, the buffer is provided to the I/F in a range that the number (605, for example) of the buffers which I/F uses does not exceed the maximum acquirement possible number of the buffers.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、通信装置、電子機
器、及びそれらの制御方法に係り、特に複数のインター
フェースと、複数のバッファを有する通信装置、電子機
器、及びそれらの制御方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication device, an electronic device, and a control method thereof, and more particularly to a communication device having a plurality of interfaces and a plurality of buffers, an electronic device, and a control method thereof. is there.

【0002】[0002]

【従来の技術】一般に、プリンタ装置は、ホストコンピ
ュータとの通信手段として、シリアルインターフェー
ス、パラレルインターフェースの他、拡張用のオプショ
ンインターフェース等を備えている。
2. Description of the Related Art Generally, a printer device is provided with a serial interface, a parallel interface, an optional interface for expansion, etc. as a communication means with a host computer.

【0003】従来、プリンタ装置は、装備された全イン
ターフェースを使用する場合、各インターフェースに対
して受信バッファを割り当て、どのインターフェースか
らでも受信できるような構成を有していた。かかるプリ
ンタ装置においては、受信バッファは、各インターフェ
ース毎に固定的かつ均等に割り当てられていた。したが
って、例えば、3種のインターフェースを備えたプリン
タ装置においては、ユーザが受信バッファ全体の容量を
30Kバイトに指定した場合、各インターフェースには
夫々10Kバイトの受信バッファが固定的に割り当てら
れることになる。
Conventionally, the printer apparatus has such a structure that when all the equipped interfaces are used, a receiving buffer is assigned to each interface and reception can be performed from any interface. In such a printer device, the reception buffer is fixedly and evenly allocated to each interface. Therefore, for example, in a printer having three types of interfaces, if the user specifies the total receiving buffer capacity to be 30 Kbytes, each interface is fixedly assigned with a receiving buffer of 10 Kbytes. .

【0004】以上のように、従来は、一旦各インターフ
ェースに対応して割り当てられた受信バッファは、その
インターフェースに専用の資源として固定的に扱われ、
制御されていた。
As described above, conventionally, the reception buffer once assigned to each interface is fixedly treated as a dedicated resource for that interface,
Was controlled.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来例は、次のような問題点を有している。すなわち、従
来は、各インターフェースに固定的に受信バッファを割
り当てていたため、一つのインターフェースでのみデー
タを受信している場合に、残りのインターフェースに割
り当てられた受信バッファを使用することができない。
したがって、受信バッファを効率的に使用することがで
きず、結果として、受信効率の向上を妨げる原因となっ
ていた。通信データの大規模化が進む中で、全体として
大規模な受信バッファを備えながら、その使用効率が低
いために、受信効率を向上させることができないことは
大きな課題であると言える。
However, the above conventional example has the following problems. That is, conventionally, since the receiving buffer is fixedly assigned to each interface, when the data is received by only one interface, the receiving buffers assigned to the remaining interfaces cannot be used.
Therefore, the reception buffer cannot be used efficiently, and as a result, it becomes a cause of hindering the improvement of reception efficiency. As the scale of communication data increases, it is a big problem that the reception efficiency cannot be improved because it has a large-scale reception buffer as a whole but its use efficiency is low.

【0006】このような問題点は、プリンタ装置に留ま
るものではなく、複数のインターフェースを備えた通信
装置、或いは、通信装置を含む情報処理装置、プリンタ
装置、その他の電子機器に共通の問題点として把握する
ことができる。
Such a problem is not limited to a printer device, and is a problem common to a communication device having a plurality of interfaces, an information processing device including the communication device, a printer device, and other electronic equipment. You can figure it out.

【0007】本発明は、上記問題点に鑑みてなされたも
のであり、通信バッファをインターフェースの使用状況
に応じて動的に管理することにより、通信効率を向上さ
せることを目的としている。
The present invention has been made in view of the above problems, and it is an object of the present invention to improve communication efficiency by dynamically managing a communication buffer according to the usage status of an interface.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するた
め、本発明に係る通信装置は、複数のインターフェース
手段と、複数のバッファとを有する通信装置であって、
前記複数のインターフェース手段のうち動作中のインタ
ーフェース手段を検出する検出手段と、前記動作中のイ
ンターフェース手段に対して多数のバッファを割り当て
るバッファ分配手段とを備え、前記動作中のインターフ
ェース手段は、割り当てられたバッファを用いて通信を
行うことを特徴とする。
In order to solve the above-mentioned problems, a communication device according to the present invention is a communication device having a plurality of interface means and a plurality of buffers,
The detecting means detects an operating interface means of the plurality of interface means, and a buffer distributing means for allocating a large number of buffers to the operating interface means. It is characterized in that communication is performed using a buffer.

【0009】本発明の好適な実施の態様に拠れば、例え
ば、前記分配手段は、前記動作中のインターフェース手
段以外のインターフェース手段に対しては、少数のバッ
ファを割り当てる。
According to a preferred embodiment of the present invention, for example, the distribution means allocates a small number of buffers to interface means other than the operating interface means.

【0010】また、例えば、前記バッファ分配手段は、
前記動作中のインターフェース手段が複数存在する場合
は、複数の前記動作中のインターフェース手段に対して
前記多数のバッファを分配して割り当てる。
Further, for example, the buffer distribution means is
When there are a plurality of operating interface units, the plurality of buffers are distributed and assigned to the plurality of operating interface units.

【0011】また、例えば、前記バッファは、受信バッ
ファである。
Further, for example, the buffer is a reception buffer.

【0012】また、本発明に係る電子機器は、複数のイ
ンターフェース手段と、複数のバッファとを有する電子
機器であって、前記複数のインターフェース手段のうち
動作中のインターフェース手段を検出する検出手段と、
前記動作中のインターフェース手段に対して多数のバッ
ファを割り当てるバッファ分配手段と、各インターフェ
ース手段によって受信された受信データを前記分配手段
によって割り当てられたバッファに格納する格納手段
と、前記割り当てられたバッファに格納された受信デー
タを解析する解析手段とを備えることを特徴とする。
The electronic equipment according to the present invention is an electronic equipment having a plurality of interface means and a plurality of buffers, and detecting means for detecting an operating interface means of the plurality of interface means,
Buffer distribution means for allocating a large number of buffers to the operating interface means, storage means for storing received data received by each interface means in the buffer allocated by the distribution means, and the allocated buffer And an analysis unit for analyzing the stored received data.

【0013】本発明の好適な実施の態様に拠れば、例え
ば、前記解析手段は、前記受信データに含まれる印刷デ
ータを展開する手段を有し、前記電子機器は、展開した
印刷データに基づいて記録媒体に画像を形成する画像形
成手段をさらに備える。
According to a preferred embodiment of the present invention, for example, the analyzing means has means for expanding print data included in the received data, and the electronic device is based on the expanded print data. An image forming unit for forming an image on the recording medium is further provided.

【0014】また、例えば、前記分配手段は、前記動作
中のインターフェース手段以外のインターフェース手段
に対しては、少数のバッファを割り当てる。
Further, for example, the distributing means allocates a small number of buffers to the interface means other than the operating interface means.

【0015】また、例えば、前記バッファ分配手段は、
前記動作中のインターフェース手段が複数存在する場合
は、複数の前記動作中のインターフェース手段に対して
前記多数のバッファを分配して割り当てる。
Further, for example, the buffer distribution means is
When there are a plurality of operating interface units, the plurality of buffers are distributed and assigned to the plurality of operating interface units.

【0016】また、本発明に係る通信装置の制御方法
は、複数のインターフェースと、複数のバッファとを有
する通信装置の制御方法であって、前記複数のインター
フェースのうち動作中のインターフェースを検出する検
出工程と、検出した前記動作中のインターフェースに対
して多数のバッファを割り当てるバッファ分配工程と、
を備え、割り当てたバッファを用いて各インターフェー
スに通信を実行せしめることを特徴とする。
A control method for a communication device according to the present invention is a control method for a communication device having a plurality of interfaces and a plurality of buffers, wherein detection is performed to detect an operating interface among the plurality of interfaces. And a buffer distribution step of allocating a large number of buffers to the detected operating interface,
It is characterized in that each interface is made to execute communication using the allocated buffer.

【0017】本発明の好適な実施の態様に拠れば、例え
ば、前記分配工程は、前記動作中のインターフェース以
外のインターフェースに対しては、少数のバッファを割
り当てる。
According to a preferred embodiment of the present invention, for example, the distributing step allocates a small number of buffers to interfaces other than the operating interface.

【0018】また、例えば、前記バッファ分配工程は、
前記動作中のインターフェースが複数存在する場合は、
複数の前記動作中のインターフェースに対して前記多数
のバッファを分配して割り当てる。
Further, for example, in the buffer distribution step,
If there are multiple interfaces in operation,
Distributing and allocating the multiple buffers to multiple active interfaces.

【0019】また、本発明に係る電子機器の制御方法
は、複数のインターフェースと、複数のバッファとを有
する電子機器の制御方法であって、前記複数のインター
フェースのうち動作中のインターフェースを検出する検
出工程と、前記動作中のインターフェースに対して多数
のバッファを割り当てるバッファ分配工程と、各インタ
ーフェースによって受信された受信データを前記分配工
程において割り当てられたバッファに格納する格納工程
と、前記割り当てられたバッファに格納された受信デー
タを解析する解析工程とを備えることを特徴とする。
Further, an electronic device control method according to the present invention is a method for controlling an electronic device having a plurality of interfaces and a plurality of buffers, wherein a detection for detecting an operating interface among the plurality of interfaces is performed. A buffer distributing step for allocating a large number of buffers to the operating interface; a storing step for storing received data received by each interface in the buffer allocated in the distributing step; and the allocated buffer. And an analysis step of analyzing the received data stored in.

【0020】また、本発明に係るコンピュータ可読メモ
リは、複数のインターフェースと、複数のバッファとを
有する通信装置の制御手順を格納したコンピュータ可読
メモリであって、前記複数のインターフェースのうち動
作中のインターフェースを検出する検出工程のコード
と、前記動作中のインターフェースに対して多数のバッ
ファを割り当てるバッファ分配工程のコードとを備える
ことを特徴とする。
The computer-readable memory according to the present invention is a computer-readable memory that stores a control procedure of a communication device having a plurality of interfaces and a plurality of buffers, and the operating interface among the plurality of interfaces. And a buffer distribution process code for allocating a large number of buffers to the operating interface.

【0021】[0021]

【発明の実施の形態】以下、添付図面を参照しながら本
発明の好適な実施の形態の一例を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An example of a preferred embodiment of the present invention will be described below with reference to the accompanying drawings.

【0022】図1は、本実施の形態を適用するのに好適
なプリンタであるレーザビームプリンタの構成例を示す
断面図である。同図において、101は、レーザビーム
プリンタ(以下、LBPともいう)本体であり、不図示
のデータ源から文字パターンの登録や提携書式(フォー
ムデータ)などの登録が行なえるように構成されてい
る。また、LBP101は、不図示の外部機器から供給
される文字情報(文字コード)やフォーム情報あるいは
マクロ命令などを入力して記憶するとともに、それらの
情報に従って対応する文字パターンやフォームパターン
などを作成し、記録媒体である記録用紙上に画像を形成
する。
FIG. 1 is a sectional view showing an example of the arrangement of a laser beam printer which is a printer suitable for applying the present embodiment. In the figure, reference numeral 101 denotes a laser beam printer (hereinafter, also referred to as LBP) main body, which is configured to perform registration of character patterns and affiliated forms (form data) from a data source (not shown). . Further, the LBP 101 inputs and stores character information (character code) supplied from an external device (not shown), form information, or a macro command, and creates a corresponding character pattern or form pattern according to the information. An image is formed on a recording sheet which is a recording medium.

【0023】102は、操作のためのスイッチ及びプリ
ンタの状態を表示するLED表示器やLCD表示器が配
置されている操作パネルである。103は、LBP10
1全体の制御及び外部機器から供給される文字情報など
を解析するプリンタ制御ユニットである。このプリンタ
制御ユニット103は、主に文字情報に対応する文字パ
ターンをビデオ信号に変換してレーザドライバ106に
出力する。217は外部通信装置ユニットであり、プリ
ンタ制御ユニット103に接続されている。
Reference numeral 102 denotes an operation panel on which switches for operation and an LED display and an LCD display for displaying the status of the printer are arranged. 103 is LBP10
1 is a printer control unit for controlling the whole and analyzing character information and the like supplied from an external device. The printer control unit 103 mainly converts a character pattern corresponding to character information into a video signal and outputs the video signal to the laser driver 106. An external communication device unit 217 is connected to the printer control unit 103.

【0024】レーザドライバ106は、半導体レーザ1
07を駆動するための回路であり、入力されたビデオ信
号に応じて半導体レーザ107から発射されるレーザ光
105をオン/オフ切替えする。このレーザ光105
は、回転多面鏡104で左右方向に振らされて静電ドラ
ム108上を走査露光する。これにより、静電ドラム1
08上には文字パターンの静電潜像が形成されることに
なる。この潜像は、静電ドラム108の周囲に配置され
た現像ユニット109により現像された後、記録紙に転
写される。
The laser driver 106 is the semiconductor laser 1
This is a circuit for driving 07, and switches the laser light 105 emitted from the semiconductor laser 107 on / off in accordance with the input video signal. This laser light 105
Is horizontally swung by the rotary polygon mirror 104 to scan and expose on the electrostatic drum 108. As a result, the electrostatic drum 1
An electrostatic latent image of a character pattern will be formed on 08. The latent image is developed by the developing unit 109 arranged around the electrostatic drum 108 and then transferred to the recording paper.

【0025】この記録紙にはカットシートを用いてい
る。カットシート記録紙は、LBP101に接着した用
紙カセット112に収納され、給紙ローラ111及び搬
送ローラ110により装置内に取り込まれ静電ドラム1
08に供給される。転写された記録紙は排紙ローラ11
5によって、装置外に排紙される。
A cut sheet is used for this recording paper. The cut sheet recording paper is stored in a paper cassette 112 adhered to the LBP 101, and is taken into the apparatus by the paper feed roller 111 and the transport roller 110, and the electrostatic drum 1 is loaded.
08. The transferred recording paper is ejected by the ejection roller 11
5, the sheet is ejected to the outside of the apparatus.

【0026】図2は、プリンタ制御ユニット103の構
成例を示すブロック図である。回線制御部209は、パ
ラレル回線I/F部208A、シリアル回線I/F部2
08B、オプションI/F部215を制御し、各インタ
ーフェースを介した通信を可能にする。パラレル回線I
/F部208Aは、パラレル回線219に接続され、シ
リアル回線I/F部208Bは、シリアル回線220に
接続されている。また、オプションI/F部215は、
拡張バス216を介してネットワークボード217に接
続されている。そして、ネットワークボード217は、
ネットワーク218に接続されている。
FIG. 2 is a block diagram showing a configuration example of the printer control unit 103. The line control unit 209 includes a parallel line I / F unit 208A and a serial line I / F unit 2
08B, the option I / F unit 215 is controlled to enable communication via each interface. Parallel line I
The / F unit 208A is connected to the parallel line 219, and the serial line I / F unit 208B is connected to the serial line 220. Also, the option I / F unit 215
It is connected to the network board 217 via the expansion bus 216. And the network board 217 is
It is connected to the network 218.

【0027】202は、ROM204に格納されたプロ
グラムコードに基づいて、バス203に接続された各デ
バイスを制御するCPUである。205は、CPU20
2が使用するデータや、印刷データなどを一時的に記憶
するワーク領域として機能するRAMである。206
は、メモリ207を制御するメモリ制御部である。メモ
リ207は、各インターフェースによる受信の状況に応
じて動的に割り当てられる受信バッファ207aを含
む。
Reference numeral 202 denotes a CPU which controls each device connected to the bus 203 based on the program code stored in the ROM 204. 205 is the CPU 20
2 is a RAM that functions as a work area for temporarily storing data used by 2 and print data. 206
Is a memory control unit that controls the memory 207. The memory 207 includes a reception buffer 207a that is dynamically assigned according to the reception status of each interface.

【0028】210は、エンジン制御部であり、エンジ
ンインターフェース(I/F)部211を介して、プリ
ンタエンジン212を制御し、画像を形成せしめる。2
13は、パネル102を制御するパネル制御部である。
An engine control unit 210 controls the printer engine 212 via an engine interface (I / F) unit 211 to form an image. 2
A panel control unit 13 controls the panel 102.

【0029】図3は、ROM204に格納されたプログ
ラムの一部を概念的に示す図である。同図において、3
01は、メモリ制御部206を介してメモリ207を制
御し、受信バッファ207aを管理するバッファ管理部
(バッファ管理プログラム)である。302は、回線制
御部209を介して各インターフェース208A、20
8B、215を制御する受信制御部(受信制御プログラ
ム)である。303は、受信制御部302による制御の
下に受信されたデータを解析して、印刷データを展開し
てメモリ207上に描画するデータ展開部(データ展開
プログラム)303である。なお、ROM204には、
301〜303以外の機能を司るプログラム(例えば、
メモリ207上に描画した画像をエンジン制御部210
を介してプリンタエンジン212に出力するエンジン制
御プログラム等)も格納されている。
FIG. 3 is a diagram conceptually showing a part of the program stored in the ROM 204. In FIG.
A buffer management unit (buffer management program) 01 controls the memory 207 via the memory control unit 206 and manages the reception buffer 207a. Reference numeral 302 denotes each interface 208A, 20A via the line control unit 209.
8B, 215 is a reception control unit (reception control program). A data expansion unit (data expansion program) 303 analyzes data received under the control of the reception control unit 302, expands print data, and draws it on the memory 207. In addition, in the ROM 204,
A program that controls functions other than 301 to 303 (for example,
The image drawn on the memory 207 is used as the engine control unit 210.
An engine control program for outputting to the printer engine 212 via the) is also stored.

【0030】バッファ管理部301、受信制御部30
2、データ展開部303は、夫々ソフトウェアインター
フェースで接続されており、各制御部がソフトウェア通
信を行うことにより全体の制御がなされる。
Buffer management section 301, reception control section 30
2. The data expansion unit 303 is connected to each other through a software interface, and each control unit performs software communication to control the entire system.

【0031】受信制御部302は、バッファ管理部30
1より、受信バッファを獲得し、受信データをその受信
バッファに保存し、その受信バッファをデータ展開部3
03に引き渡すことにより受信データの転送を行う。ま
た、データ展開部303は、転送された受信バッファ内
に格納された受信データを解析し、印刷データをメモリ
207上に展開し、受信バッファが不要になったら、そ
れをバッファ管理部301に開放(返却)する。
The reception control unit 302 includes a buffer management unit 30.
1, the reception buffer is acquired, the reception data is stored in the reception buffer, and the reception buffer is stored in the data expansion unit 3
The received data is transferred by passing it to 03. Further, the data expansion unit 303 analyzes the received data stored in the transferred reception buffer, expands the print data on the memory 207, and releases the reception buffer to the buffer management unit 301 when the reception buffer becomes unnecessary. (return.

【0032】図4は、回線制御部209に備えられたレ
ジスタの一部構成例を概念的に示す図である。受信制御
部302(すなわち、CPU202)は、レジスタ40
0の内容を参照することにより、受信を要求しているイ
ンターフェースを認識することができる。
FIG. 4 is a diagram conceptually showing a partial structural example of a register provided in the line control unit 209. The reception control unit 302 (that is, the CPU 202) uses the register 40
By referring to the contents of 0, the interface requesting reception can be recognized.

【0033】このレジスタ400は、インターフェース
部208A、208B、215の夫々の状態を示すフラ
グビットを有している。401は、オプションI/F部
215に対する受信要求を示すオプションI/F受信ビ
ットである。402は、シリアルI/F部208Bに対
する受信要求を示すシリアルI/F受信ビットである。
403は、パラレルI/F部208Aに対する受信要求
を示すパラレルI/F受信ビットである。
The register 400 has flag bits indicating the respective states of the interface units 208A, 208B and 215. An option I / F reception bit 401 indicates a reception request to the option I / F unit 215. A serial I / F reception bit 402 indicates a reception request to the serial I / F unit 208B.
A parallel I / F reception bit 403 indicates a reception request to the parallel I / F unit 208A.

【0034】図5は、バッファ構造の一例を概念的に示
す図である。同図において、500はバッファ情報であ
り、Nextポインタ501、使用中フラグ502、使
用I/F503、バッファレングス504、バッファポ
インタ505を含む。Nextポインタ501は、この
バッファをキューイングするためのポインタである。5
02は、このバッファが使用中であるか否かを示す使用
中フラグである。503は、このバッファがいずれのイ
ンターフェースから受信したデータを保持しているかを
示すのフラグである。504は、受信したデータのレン
グスを示すバッファレングス情報である。505は、実
メモリを指示するバッファポインタであり、メモリ空間
506(実体はメモリ207)の対応する位置を指示し
ている。受信データは、このバッファポインタが指示す
るメモリ領域に格納されている。
FIG. 5 is a diagram conceptually showing an example of the buffer structure. In the figure, reference numeral 500 denotes buffer information, which includes a Next pointer 501, a busy flag 502, a used I / F 503, a buffer length 504, and a buffer pointer 505. The Next pointer 501 is a pointer for queuing this buffer. 5
02 is a busy flag indicating whether or not this buffer is in use. Reference numeral 503 is a flag indicating which interface this buffer holds data received from. 504 is buffer length information indicating the length of the received data. Reference numeral 505 is a buffer pointer that points to a real memory, and points to a corresponding position in the memory space 506 (actually, the memory 207). The received data is stored in the memory area designated by this buffer pointer.

【0035】本実施の形態においては、バッファ情報5
00は、1Kバイトのバッファ領域を管理する。また、
バッファ管理部301は、60個のバッファ情報500
を有し、全体で60Kバイトのバッファ領域207aを
管理している。
In this embodiment, the buffer information 5
00 manages a 1 Kbyte buffer area. Also,
The buffer management unit 301 uses 60 pieces of buffer information 500.
And manages a buffer area 207a of 60 Kbytes in total.

【0036】図6は、バッファ構造を管理するための管
理テーブルの一例を示す図である。同図において、60
0は管理テーブルであり、601〜609を含む。60
1は、未使用バッファの個数を示す未使用バッファ個数
情報である。602は、確保可能なバッファの最大個数
を示す最大獲得可能個数情報であり、本実施の形態にお
いては、60個である。603は、現在データを受信中
のインターフェースの個数を示す動作I/F個数情報で
ある。
FIG. 6 is a diagram showing an example of a management table for managing the buffer structure. In the figure, 60
Reference numeral 0 is a management table, which includes 601 to 609. 60
1 is unused buffer number information indicating the number of unused buffers. 602 is maximum acquirable number information indicating the maximum number of buffers that can be secured, and is 60 in the present embodiment. Reference numeral 603 is operation I / F number information indicating the number of interfaces currently receiving data.

【0037】604は、シリアル回線I/F部208B
からの受信要求を示す受信フラグであり、同様に、60
6、608は、夫々パラレル回線I/F部208A、オ
プションI/F部215からの受信要求を示す受信フラ
グである。また、605は、シリアル回線I/F部20
8Bからの受信において現在使用中のバッファの個数を
示す。同様に、607、609は、夫々パラレル回線I
/F部208A、オプションI/F部215からの受信
において、現在使用中のバッファの個数を示す。
604 is a serial line I / F unit 208B
Is a reception flag indicating a reception request from the
Reference numerals 6 and 608 are reception flags indicating reception requests from the parallel line I / F unit 208A and the option I / F unit 215, respectively. Further, 605 is a serial line I / F unit 20.
Indicates the number of buffers currently in use for reception from 8B. Similarly, 607 and 609 are parallel lines I, respectively.
Indicates the number of buffers currently being used in reception from the / F unit 208A and the option I / F unit 215.

【0038】本実施の形態においては、いずれのインタ
ーフェースからの受信も可能にすべく、初期状態におい
て、シリアルI/F使用個数605、パラレルI/F使
用個数606、オプションI/F使用個数609を夫々
1とし、夫々1個の受信バッファを予め各インターフェ
ースに対して割り当てている。したがって、初期状態に
おいては、未使用バッファ個数601は、57個となっ
ている。
In the present embodiment, the serial I / F usage number 605, the parallel I / F usage number 606, and the option I / F usage number 609 are initially set in order to enable reception from any interface. Each is set to 1, and one reception buffer is assigned to each interface in advance. Therefore, in the initial state, the number of unused buffers 601 is 57.

【0039】図7は、受信制御部302において、受信
要求に係るインターフェースを特定する処理を示すフロ
ーチャートである。前述のように、受信制御部302の
実体は、ROM204に格納されたプログラムコード
と、それに基づいて動作するCPU202を含む。ま
た、この処理は、例えば、いずれかのインターフェース
に対する受信要求が発生する都度実行される。
FIG. 7 is a flow chart showing a process of specifying the interface relating to the reception request in the reception control unit 302. As described above, the substance of the reception control unit 302 includes the program code stored in the ROM 204 and the CPU 202 that operates based on the program code. Further, this processing is executed, for example, every time a reception request for any interface is generated.

【0040】受信制御部302は、レジスタ400を参
照し、いずれのインターフェースに対して受信要求が発
生しているかを判定する。すなわち、先ず、レジスタ4
00のシリアルI/F受信ビット401がオンになって
いるか否かを判定し(ステップS701)、オンになっ
ている場合は、シリアル回線I/F部208Bによる受
信を実行するものとする(ステップS702)。シリア
ルI/F受信ビット402がオフになっている場合は、
パラレルI/F受信ビット403がオンになっているか
否かを判定し(ステップS703)、オンになっている
場合は、パラレル回線I/F部208Aによる受信を実
行するものとする(ステップS704)。また、パラレ
ルI/F受信ビット401がオフになっている場合は、
オプションI/F受信ビット401がオンになっている
か否かを判定し(ステップS705)、オンになってい
る場合は、オプションI/F部215による受信を実行
するものとする。
The reception control section 302 refers to the register 400 to determine which interface the reception request is made to. That is, first, the register 4
It is determined whether the serial I / F reception bit 401 of 00 is turned on (step S701), and if it is turned on, reception by the serial line I / F unit 208B is executed (step S701). S702). If the serial I / F reception bit 402 is off,
It is determined whether or not the parallel I / F reception bit 403 is turned on (step S703), and if it is turned on, reception by the parallel line I / F unit 208A is executed (step S704). . When the parallel I / F reception bit 401 is off,
It is determined whether or not the option I / F reception bit 401 is turned on (step S705), and if it is turned on, reception by the option I / F unit 215 is executed.

【0041】図8は、受信制御部302において、受信
要求に係るインターフェースを介してデータを受信する
処理を示すフローチャートである。前述のように、受信
制御部302の実体は、ROM204に格納されたプロ
グラムコードと、それに基づいて動作するCPU202
を含む。また、この処理は、図7のフローチャートに係
る処理によって、受信要求に係るインターフェースを特
定した後に実行される。なお、1つのインターフェース
を介してデータを受信中に、他のインターフェースから
の受信要求が発生した場合には、以下の処理は並列に実
行されることになる。
FIG. 8 is a flow chart showing a process of receiving data in the reception control unit 302 via the interface relating to the reception request. As described above, the substance of the reception control unit 302 is the program code stored in the ROM 204 and the CPU 202 that operates based on the program code.
including. Further, this processing is executed after the interface related to the reception request is specified by the processing according to the flowchart of FIG. 7. Note that, while receiving data via one interface, if a reception request from another interface occurs, the following processing will be executed in parallel.

【0042】先ず、ステップS801では、動作I/F
個数603に1を加算し、現在動作中のインターフェー
スの個数を確定する。次いで、ステップS802では、
回線制御部209を制御し、受信要求に係るインターフ
ェースを介して、データを受信する。このとき、受信制
御部302は、上記の処理により受信すべきインターフ
ェースを特定している。また、受信バッファは、受信要
求に係るインターフェースに対して割り当てられている
ものを使用する(各バッファを単位として受信する)。
First, in step S801, the operation I / F
1 is added to the number 603 to determine the number of interfaces currently in operation. Then, in step S802,
The line controller 209 is controlled to receive data via the interface relating to the reception request. At this time, the reception control unit 302 identifies the interface to be received by the above processing. Further, as the reception buffer, the one allocated to the interface relating to the reception request is used (each buffer is received as a unit).

【0043】ステップS803では、割り当てられた受
信バッファを用いて全データの受信が終了したか否かを
判定する。そして、受信が終了したと判断した場合に
は、ステップS813でバッファ情報500のバッファ
レングス504と使用I/F503をセットし、ステッ
プS814でそのバッファをデータ展開部301に転送
する。ここまでの処理により、受信の動作を終了したの
で、次いで、ステップS815では、管理テーブル60
0の動作I/F個数情報603から1を減じる。
In step S803, it is determined whether or not the reception of all data has been completed using the assigned reception buffer. When it is determined that the reception is completed, the buffer length 504 and the used I / F 503 of the buffer information 500 are set in step S813, and the buffer is transferred to the data expansion unit 301 in step S814. Since the reception operation has been completed by the processing up to this point, next, in step S815, the management table 60
1 is subtracted from the operation I / F number information 603 of 0.

【0044】一方、ステップS803で、未だ全データ
を受信していないと判断した場合には、ステップS80
4で、受信データが割り当てられた受信バッファの容量
(1kバイト)を満たしたか否かを判定し、受信バッフ
ァが満たされていない場合にはステップS802に戻っ
てステップS802〜S803を繰り返す。
On the other hand, if it is determined in step S803 that all data has not been received yet, step S80
In step 4, it is determined whether or not the received data satisfies the allocated receiving buffer capacity (1 kbyte). If the receiving buffer is not full, the process returns to step S802 and steps S802 to S803 are repeated.

【0045】そして、割り当てられた受信バッファが一
杯になったら、ステップS805に進み、バッファ情報
500のバッファレングス情報504と使用I/F情報
503をセットし、ステップS816でその受信バッフ
ァをデータ展開部301に転送する。
When the allocated receive buffer is full, the process proceeds to step S805, the buffer length information 504 and the used I / F information 503 of the buffer information 500 are set, and the receive buffer is expanded in step S816. Transfer to 301.

【0046】次いで、ステップS807では、新たな受
信バッファを獲得するために、現在使用中のインターフ
ェースに対応するI/F受信フラグ(604、606、
608のいずれか)をセットし、ステップS808で
は、バッファ管理部301から受信バッファを獲得する
(ただし、獲得できない場合もある)。
Next, in step S807, in order to acquire a new reception buffer, the I / F reception flag (604, 606,
608) is set, and in step S808, the reception buffer is acquired from the buffer management unit 301 (however, it may not be acquired in some cases).

【0047】ステップS809では、新たな受信バッフ
ァを獲得できたか否かを判定し、獲得できない場合に
は、ステップS810で回線制御部209をビジーと
し、受信不能であることを示す。そして、新たな受信バ
ッファを獲得できるまでステップS807〜ステップS
809を繰り返す。新たな受信バッファを獲得できた場
合には、ステップS811でビジー状態を解除する。
In step S809, it is determined whether or not a new reception buffer has been acquired. If the new reception buffer cannot be acquired, the line control unit 209 is set to busy in step S810 to indicate that reception is impossible. Then, steps S807 to S are performed until a new reception buffer can be acquired.
809 is repeated. If a new reception buffer can be acquired, the busy state is canceled in step S811.

【0048】以上の処理は、全データを受信するまで繰
り返し実行される。
The above processing is repeatedly executed until all data is received.

【0049】次に、バッファ管理部301における動作
について説明する。図9及び図10は、バッファ管理部
301における動作例を示すフローチャートである。な
お、前述のように、バッファ管理部301の実体は、R
OM204に格納されたプログラムコードと、それに基
づいて動作するCPU202を含む。
Next, the operation of the buffer management unit 301 will be described. 9 and 10 are flowcharts showing an operation example in the buffer management unit 301. As described above, the substance of the buffer management unit 301 is R
It includes a program code stored in the OM 204 and a CPU 202 that operates based on the program code.

【0050】バッファ管理部301は、動作中のインタ
ーフェースの個数に応じて、使用可能なバッファの個数
である最大獲得可能個数602を設定し、その最大獲得
可能個数の範囲で受信バッファを提供する。また、この
動作は、受信制御部302から受信バッファの獲得要求
を受ける都度、実行される。
The buffer management unit 301 sets the maximum obtainable number 602, which is the number of usable buffers, according to the number of operating interfaces, and provides the receive buffer within the range of the maximum obtainable number. Further, this operation is executed each time a reception buffer acquisition request is received from the reception control unit 302.

【0051】受信制御部302から受信バッファの獲得
要求を受けると、先ず、ステップS901で、管理テー
ブル600の未使用バッファ個数情報601を参照し、
未使用の受信バッファがあるか否かを判定する。そし
て、未使用の受信バッファがない場合には、ステップS
923に進み、受信バッファの獲得ができない旨の制御
情報(”バッファ獲得不成功”)を受信制御部302に
通知する。
When receiving the acquisition request of the reception buffer from the reception control unit 302, first, in step S901, the unused buffer number information 601 of the management table 600 is referred to,
It is determined whether there is an unused receive buffer. If there is no unused receive buffer, step S
In step 923, the reception control unit 302 is notified of control information indicating that the reception buffer cannot be acquired (“buffer acquisition failure”).

【0052】一方、未使用の受信バッファが存在する場
合は、ステップS902に進み、バッファ情報500の
使用中フラグ502がオフ(未使用を示す)になってい
る受信バッファを検索する。
On the other hand, if there is an unused receiving buffer, the process proceeds to step S902, and a receiving buffer in which the in-use flag 502 of the buffer information 500 is off (indicating unused) is searched.

【0053】ステップS904〜S908では、動作中
のインターフェースの個数に応じて最大獲得可能個数6
02を設定する。すなわち、動作中のインターフェース
の個数を示す動作I/F個数情報603を参照し、その
個数が1であれば、全バッファをその動作中のインター
フェースに割り当てても良いため、最大獲得可能個数情
報602を58とする(残りの2個は、他のインターフ
ェースのために予め確保されている)。また、動作I/
F個数が2の場合には、2個のインターフェースが動作
しているため、最大獲得可能個数602を全バッファの
2分の1、すなわち29とする。また、動作I/F個数
が3個の場合には、3個のインターフェースが動作して
いるため、最大獲得可能個数602を全バッファの3分
の1、すなわち20とする。
In steps S904 to S908, the maximum obtainable number is 6 according to the number of operating interfaces.
Set 02. That is, the operation I / F number information 603 indicating the number of operating interfaces is referred to, and if the number is 1, all buffers may be allocated to the operating interface, so the maximum obtainable number information 602. 58 (the other two are reserved in advance for other interfaces). Also, operation I /
When the number of F is 2, since two interfaces are operating, the maximum obtainable number 602 is ½ of all buffers, that is, 29. When the number of operating I / Fs is 3, three interfaces are operating, so the maximum obtainable number 602 is one-third of all buffers, that is, 20.

【0054】ステップS909、S911では、獲得要
求を発したインターフェースを判別するため、管理テー
ブル600のI/F受信フラグ605、607、609
を参照する。以下、該当するI/Fフラグをクリアした
後、I/F使用個数と最大獲得可能個数とを比較し、I
/F使用個数が最大獲得個数に満たなければ、該当する
I/F使用個数に1を加算する。
In steps S909 and S911, the I / F reception flags 605, 607, and 609 of the management table 600 are determined in order to determine the interface that issued the acquisition request.
See After clearing the corresponding I / F flag, the number of I / Fs used is compared with the maximum obtainable number, and I
If the number of used / Fs is less than the maximum number acquired, 1 is added to the corresponding number of used I / Fs.

【0055】すなわち、シリアルI/F受信フラグ60
4がオンになっている場合は、そのI/Fフラグ604
をクリアし(ステップS910)、シリアルI/F使用
個数情報605と最大獲得可能個数情報602を比較
し、シリアルI/F使用個数情報605が最大獲得個数
情報602に満たない場合には、シリアルI/F使用個
数情報605に1を加算する(ステップS917)。一
方、シリアルI/F使用個数情報605が最大獲得可能
個数情報602と等しい場合には、受信バッファを獲得
できないため、”バッファ獲得不成功”を受信制御部3
02に通知する(ステップS923)。
That is, the serial I / F reception flag 60
4 is on, the I / F flag 604
Is cleared (step S910), the serial I / F used number information 605 is compared with the maximum obtainable number information 602, and if the serial I / F used number information 605 is less than the maximum obtainable number information 602, the serial I / F number is acquired. 1 is added to the / F used number information 605 (step S917). On the other hand, when the serial I / F usage number information 605 is equal to the maximum obtainable number information 602, the reception buffer cannot be obtained, and therefore "buffer acquisition failure" is received.
02 is notified (step S923).

【0056】また、パラレルI/F受信フラグ606が
オンになっている場合は、そのI/Fフラグ606をク
リアし(ステップS912)、パラレルI/F使用個数
情報607と最大獲得可能個数情報602を比較し、パ
ラレルI/F使用個数情報607が最大獲得個数情報6
02に満たない場合には、パラレルI/F使用個数情報
607に1を加算する(ステップS918)。一方、パ
ラレルI/F使用個数情報607が最大獲得可能個数情
報602と等しい場合には、受信バッファを獲得できな
いため、”バッファ獲得不成功”を受信制御部302に
通知する(ステップS923)。
If the parallel I / F reception flag 606 is turned on, the I / F flag 606 is cleared (step S912), and the parallel I / F usage number information 607 and the maximum obtainable number information 602 are acquired. And the parallel I / F usage number information 607 indicates the maximum acquisition number information 6
If the number is less than 02, 1 is added to the parallel I / F usage number information 607 (step S918). On the other hand, when the parallel I / F usage number information 607 is equal to the maximum obtainable number information 602, the reception buffer cannot be obtained, and therefore "buffer acquisition failure" is notified to the reception control unit 302 (step S923).

【0057】また、オプションI/F受信フラグ608
がオンになっている場合は、そのI/Fフラグ608を
クリアし(ステップS913)、オプションI/F使用
個数情報609と最大獲得可能個数情報602を比較
し、オプションI/F使用個数情報609が最大獲得個
数情報602に満たない場合には、オプションI/F使
用個数情報609に1を加算する(ステップS91
9)。一方、オプションI/F使用個数情報609が最
大獲得可能個数情報602と等しい場合には、バッファ
を獲得できないため、”バッファ獲得不成功”を受信制
御部302に通知する(ステップS923)。
Also, the option I / F reception flag 608
Is turned on, the I / F flag 608 is cleared (step S913), the option I / F used number information 609 is compared with the maximum obtainable number information 602, and the option I / F used number information 609 is set. Is less than the maximum acquired number information 602, 1 is added to the option I / F used number information 609 (step S91).
9). On the other hand, when the option I / F usage number information 609 is equal to the maximum obtainable number information 602, the buffer cannot be obtained, and therefore "buffer acquisition failure" is notified to the reception control unit 302 (step S923).

【0058】ステップS920〜S922では、管理テ
ーブル600を更新して、受信バッファの獲得に成功し
たことを受信制御部302に通知する。すなわち、ステ
ップS920において、管理テーブル600の未使用バ
ッファ個数601から1減じる。次に、ステップS92
1では、バッファ情報500(ステップS902で検索
したもの)の使用中フラグ502をオンにし、ステップ
S922では、受信バッファの獲得に成功した旨(”バ
ッファ獲得成功”)を受信制御部302に通知する。
In steps S920 to S922, the management table 600 is updated to notify the reception control section 302 that the reception buffer has been successfully acquired. That is, in step S920, the number of unused buffers 601 in the management table 600 is decremented by 1. Next, step S92
In 1, the busy flag 502 of the buffer information 500 (searched in step S902) is turned on, and in step S922, the reception control unit 302 is notified that the reception buffer has been successfully acquired (“buffer acquisition success”). .

【0059】なお、複数のインターフェースが動作中の
場合には、その動作に係るインターフェースに対応して
受信制御部302より受信バッファの獲得要求がなさ
れ、一連の処理がそれに対応して実行される。
When a plurality of interfaces are in operation, the reception control unit 302 makes a reception buffer acquisition request corresponding to the interface related to the operation, and a series of processing is executed correspondingly.

【0060】以上のように、動作中のインターフェース
の個数に応じて、そのインターフェースに割り当てる受
信バッファの個数を動的に制御し、動作中のインターフ
ェースが少ない場合には、そのインターフェースに対し
て集中して受信バッファを割り当て、動作中のインター
フェースが多い場合には、そのインターフェースに対し
て受信バッファを分配することにより受信バッファの使
用効率を向上させることができる。
As described above, the number of receiving buffers allocated to an interface is dynamically controlled according to the number of operating interfaces, and when the number of operating interfaces is small, concentrate on the interface. When a large number of operating interfaces are allocated by allocating the reception buffers, the reception buffers can be distributed to the interfaces to improve the use efficiency of the reception buffers.

【0061】次に、データ展開部303の動作について
説明する。図11は、データ展開部303における動作
例を示すフローチャートである。なお、前述のように、
データ展開部303の実体は、ROM204に格納され
たプログラムコードと、それに基づいて動作するCPU
202を含む。
Next, the operation of the data expansion section 303 will be described. FIG. 11 is a flowchart showing an operation example in the data expansion unit 303. As mentioned above,
The substance of the data expansion unit 303 is a program code stored in the ROM 204 and a CPU that operates based on the program code.
Including 202.

【0062】データ展開部303は、受信制御部302
から転送(論理的な転送)された受信バッファのデータ
を解析・展開し、その受信バッファが不要になったらバ
ッファ制御部301に返却(開放)し、受信制御部30
2からの受信バッファの転送待ち状態になる。
The data expansion unit 303 is a reception control unit 302.
The data in the reception buffer transferred (logically transferred) from is analyzed and expanded, and when the reception buffer is no longer needed, it is returned (opened) to the buffer control unit 301, and the reception control unit 30
Waiting for transfer of the receive buffer from 2.

【0063】先ず、ステップS1101では、受信制御
部302から転送された受信バッファのデータを解析
し、メモリ207上の所定の展開領域(不図示)に展開
する。展開したデータ(ビットマップデータ)は、エン
ジン制御部210に順次転送され、プリンタエンジン2
12によって画像が形成される。
First, in step S1101, the data in the reception buffer transferred from the reception control unit 302 is analyzed and expanded in a predetermined expansion area (not shown) on the memory 207. The expanded data (bitmap data) is sequentially transferred to the engine control unit 210, and the printer engine 2
An image is formed by 12.

【0064】ステップS1102〜S1106では、転
送に係る受信バッファに関係するインターフェースを、
その受信バッファのバッファ情報500の使用I/F情
報503を参照することによって確認し、管理テーブル
600の対応するインターフェースの使用個数から1減
じる。
In steps S1102 to S1106, the interfaces related to the reception buffer for transfer are
It is confirmed by referring to the used I / F information 503 of the buffer information 500 of the reception buffer, and the used number of the corresponding interface of the management table 600 is decremented by one.

【0065】すなわち、バッファ情報500の使用I/
F情報503を参照し、その結果、シリアル回線I/F
部208Bを使用している場合は、シリアルI/F使用
個数605から1減じる。また、パラレルI/F部21
5を使用している場合は、パラレルI/F使用個数60
7から1減じる。また、オプションI/F215を使用
している場合は、オプションI/F使用個数609から
1減じる。
That is, the use I / of the buffer information 500
F information 503 is referred to, and as a result, serial line I / F
When the unit 208B is used, the serial I / F usage number 605 is reduced by one. In addition, the parallel I / F unit 21
If 5 is used, the number of parallel I / Fs used is 60
Subtract 1 from 7. Further, when the option I / F 215 is used, the option I / F usage number 609 is reduced by one.

【0066】次いで、ステップS1107では、該当す
るバッファ情報500の使用中フラグ502をオフに
し、ステップS1108では、管理テーブル600の未
使用バッファ個数601に1加算する。
Next, in step S1107, the in-use flag 502 of the corresponding buffer information 500 is turned off, and in step S1108, 1 is added to the unused buffer number 601 of the management table 600.

【0067】なお、複数のインターフェースに対する受
信要求が競合した場合におけるバッファ管理部301、
受信制御部302、データ展開部303の調停は、公知
の技術に基づいて行えば十分である。
The buffer management unit 301 in the case where reception requests for a plurality of interfaces conflict with each other,
The arbitration of the reception control unit 302 and the data expansion unit 303 may be performed based on a known technique.

【0068】以上のように、本実施の形態に拠れば、イ
ンターフェースの使用状況に応じて、受信バッファを動
的に割り当てることにより、受信バッファを効率的に使
用することができる。
As described above, according to the present embodiment, the receiving buffer can be efficiently used by dynamically allocating the receiving buffer according to the usage status of the interface.

【0069】上記の説明は、3つのインターフェースに
対して受信バッファを動的に割り当てるものであるが、
本発明はこれに限定されるものではなく、3つ以外の複
数のインターフェースに対して受信バッファを動的に割
り当てる場合にも適用可能である。また、インターフェ
ースの種類に関しても、異なる種類の通信方式のインタ
ーフェースで構成するのみならず、同一の通信方式のイ
ンターフェースが複数含まれても良い。
Although the above description dynamically allocates the reception buffer to the three interfaces,
The present invention is not limited to this, and can be applied to the case where the receiving buffer is dynamically assigned to a plurality of interfaces other than three. Also, regarding the type of interface, not only the interfaces of different types of communication methods may be configured, but also a plurality of interfaces of the same communication method may be included.

【0070】また、上記の説明は、複数のインターフェ
ースが動作中に、その動作に係る各インターフェースに
対して均等にバッファを割り当てるものであるが、例え
ば、各インターフェースの有する通信速度等に応じて、
相応の個数の受信バッファを分配しても良い。
In the above description, while a plurality of interfaces are in operation, buffers are evenly allocated to each interface related to the operation. For example, depending on the communication speed of each interface,
A corresponding number of receive buffers may be distributed.

【0071】また、上記の説明は、プリンタ装置におけ
る受信バッファの割り当てに関するものであるが、本発
明は、複数のインターフェースを有する通信装置、或い
は、その通信装置を含む情報処理装置等の電子機器に関
して広く適用可能なことは自明である。
Although the above description relates to the allocation of the reception buffer in the printer device, the present invention relates to a communication device having a plurality of interfaces or an electronic device such as an information processing device including the communication device. It is self-evident that it is widely applicable.

【0072】また、一般に、受信バッファに比して送信
バッファの容量は小さくても良いが、本発明を送信バッ
ファに適用することもできるし、受信バッファと送信バ
ッファの双方に適用することもできる。
In general, the capacity of the transmission buffer may be smaller than that of the reception buffer, but the present invention can be applied to the transmission buffer, or can be applied to both the reception buffer and the transmission buffer. .

【0073】なお、本発明は、複数の機器(例えば、ホ
ストコンピュータ、インタフェイス機器、リーダ、プリ
ンタなど)から構成されるシステムに適用しても、一つ
の機器からなる装置(例えば、複写機、ファクシミリ装
置など)に適用してもよい。また、本発明の目的は、前
述した実施形態の機能を実現するソフトウェアのプログ
ラムコードを記録した記憶媒体を、システムあるいは装
置に供給し、そのシステムあるいは装置のコンピュータ
(またはCPUやMPU)が記憶媒体に格納されたプロ
グラムコードを読出し実行することによっても、達成さ
れることは言うまでもない。
Even when the present invention is applied to a system composed of a plurality of devices (eg, host computer, interface device, reader, printer, etc.), a device composed of one device (eg, copying machine, (For example, a facsimile machine). Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the program.

【0074】この場合、記憶媒体から読出されたプログ
ラムコード自体が本発明の新規な機能を実現することに
なり、そのプログラムコードを記憶した記憶媒体は本発
明を構成することになる。
In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.

【0075】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD−ROM、CD
−R、磁気テープ、不揮発性のメモリカード、ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0076】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0077】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0078】[0078]

【発明の効果】以上説明したように本発明に拠れば、通
信バッファをインターフェースの使用状況に応じて動的
に管理することにより、受信効率を向上させることがで
きるという効果がある。
As described above, according to the present invention, it is possible to improve the reception efficiency by dynamically managing the communication buffer according to the usage status of the interface.

【0079】[0079]

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

【図1】実施の形態を適用するのに好適なプリンタであ
るレーザビームプリンタの構成例を示す断面図である。
FIG. 1 is a cross-sectional view showing a configuration example of a laser beam printer which is a printer suitable for applying an embodiment.

【図2】プリンタ制御ユニットの構成例を示すブロック
図である。
FIG. 2 is a block diagram illustrating a configuration example of a printer control unit.

【図3】ROMに格納されたプログラムの一部を概念的
に示す図である。
FIG. 3 is a diagram conceptually showing a part of a program stored in a ROM.

【図4】回線制御部に備えられたレジスタの一部構成例
を概念的に示す図である。
FIG. 4 is a diagram conceptually illustrating a partial configuration example of a register included in a line control unit.

【図5】バッファ構造の一例を概念的に示す図である。FIG. 5 is a diagram conceptually showing an example of a buffer structure.

【図6】バッファ構造を管理するための管理テーブルの
一例を示す図である。
FIG. 6 is a diagram showing an example of a management table for managing a buffer structure.

【図7】受信制御部において、受信要求に係るインター
フェースを特定する処理を示すフローチャートである。
FIG. 7 is a flowchart showing a process of identifying an interface relating to a reception request in the reception control unit.

【図8】受信制御部において、受信要求に係るインター
フェースを介してデータを受信する処理を示すフローチ
ャートである。
FIG. 8 is a flowchart showing a process of receiving data in the reception control unit via the interface relating to the reception request.

【図9】バッファ管理部における動作例を示すフローチ
ャートである。
FIG. 9 is a flowchart illustrating an operation example of a buffer management unit.

【図10】バッファ管理部における動作例を示すフロー
チャートである。
FIG. 10 is a flowchart illustrating an operation example of a buffer management unit.

【図11】データ展開部における動作例を示すフローチ
ャートである。
FIG. 11 is a flowchart showing an operation example in a data expansion unit.

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 複数のインターフェース手段と、複数の
バッファとを有する通信装置であって、 前記複数のインターフェース手段のうち動作中のインタ
ーフェース手段を検出する検出手段と、 前記動作中のインターフェース手段に対して多数のバッ
ファを割り当てるバッファ分配手段と、 を備え、前記動作中のインターフェース手段は、割り当
てられたバッファを用いて通信を行うことを特徴とする
通信装置。
1. A communication device having a plurality of interface means and a plurality of buffers, wherein the detecting means detects an operating interface means of the plurality of interface means, and the operating interface means. And a buffer distributing unit that allocates a large number of buffers, wherein the operating interface unit performs communication using the allocated buffer.
【請求項2】 前記分配手段は、前記動作中のインター
フェース手段以外のインターフェース手段に対しては、
少数のバッファを割り当てることを特徴とする請求項1
に記載の通信装置。
2. The distribution means, with respect to interface means other than the operating interface means,
2. A small number of buffers are allocated, and
The communication device according to claim 1.
【請求項3】 前記バッファ分配手段は、前記動作中の
インターフェース手段が複数存在する場合は、複数の前
記動作中のインターフェース手段に対して前記多数のバ
ッファを分配して割り当てることを特徴とする請求項1
または請求項2に記載の通信装置。
3. The buffer distributing means distributes and allocates the large number of buffers to a plurality of operating interface means when a plurality of operating interface means exist. Item 1
Alternatively, the communication device according to claim 2.
【請求項4】 前記バッファは、受信バッファであるこ
とを特徴とする請求項1乃至請求項3のいずれか1項に
記載の通信装置。
4. The communication device according to claim 1, wherein the buffer is a reception buffer.
【請求項5】 複数のインターフェース手段と、複数の
バッファとを有する電子機器であって、 前記複数のインターフェース手段のうち動作中のインタ
ーフェース手段を検出する検出手段と、 前記動作中のインターフェース手段に対して多数のバッ
ファを割り当てるバッファ分配手段と、 各インターフェース手段によって受信された受信データ
を前記分配手段によって割り当てられたバッファに格納
する格納手段と、 前記割り当てられたバッファに格納された受信データを
解析する解析手段と、 を備えることを特徴とする電子機器。
5. An electronic device having a plurality of interface means and a plurality of buffers, wherein the detecting means detects an operating interface means of the plurality of interface means, and the operating interface means. Buffer distribution means for allocating a large number of buffers, storage means for storing the received data received by each interface means in the buffer allocated by the distribution means, and analysis of the received data stored in the allocated buffer An electronic device comprising: an analyzing unit.
【請求項6】 前記解析手段は、前記受信データに含ま
れる印刷データを展開する手段を有し、 前記電子機器は、展開した印刷データに基づいて記録媒
体に画像を形成する画像形成手段をさらに備えることを
特徴とする請求項5に記載の電子機器。
6. The analyzing means includes means for expanding print data included in the received data, and the electronic device further includes an image forming means for forming an image on a recording medium based on the expanded print data. The electronic device according to claim 5, further comprising:
【請求項7】 前記分配手段は、前記動作中のインター
フェース手段以外のインターフェース手段に対しては、
少数のバッファを割り当てることを特徴とする請求項5
または請求項6に記載の通信装置。
7. The distributing means, with respect to interface means other than the operating interface means,
6. The allocation of a small number of buffers.
Alternatively, the communication device according to claim 6.
【請求項8】 前記バッファ分配手段は、前記動作中の
インターフェース手段が複数存在する場合は、複数の前
記動作中のインターフェース手段に対して前記多数のバ
ッファを分配して割り当てることを特徴とする請求項5
乃至請求項7のいずれか1項に記載の電子機器。
8. The buffer distributing means distributes and allocates the large number of buffers to a plurality of operating interface means when a plurality of operating interface means exist. Item 5
The electronic device according to claim 7.
【請求項9】 複数のインターフェースと、複数のバッ
ファとを有する通信装置の制御方法であって、 前記複数のインターフェースのうち動作中のインターフ
ェースを検出する検出工程と、 検出した前記動作中のインターフェースに対して多数の
バッファを割り当てるバッファ分配工程と、 を備え、割り当てたバッファを用いて各インターフェー
スに通信を実行せしめることを特徴とする通信装置の制
御方法。
9. A method of controlling a communication device having a plurality of interfaces and a plurality of buffers, the method comprising: a detecting step of detecting an operating interface among the plurality of interfaces; A method of controlling a communication device, comprising: a buffer distribution step of allocating a large number of buffers to each interface, and causing each interface to execute communication using the allocated buffer.
【請求項10】 前記分配工程は、前記動作中のインタ
ーフェース以外のインターフェースに対しては、少数の
バッファを割り当てることを特徴とする請求項9に記載
の通信装置の制御方法。
10. The method according to claim 9, wherein the distributing step allocates a small number of buffers to interfaces other than the operating interface.
【請求項11】 前記バッファ分配工程は、前記動作中
のインターフェースが複数存在する場合は、複数の前記
動作中のインターフェースに対して前記多数のバッファ
を分配して割り当てることを特徴とする請求項9または
請求項10に記載の通信装置の制御方法。
11. The buffer distributing step, in the case where there are a plurality of operating interfaces, distributing and allocating the large number of buffers to a plurality of operating interfaces. Alternatively, the method of controlling the communication device according to claim 10.
【請求項12】 複数のインターフェースと、複数のバ
ッファとを有する電子機器の制御方法であって、 前記複数のインターフェースのうち動作中のインターフ
ェースを検出する検出工程と、 前記動作中のインターフェースに対して多数のバッファ
を割り当てるバッファ分配工程と、 各インターフェースによって受信された受信データを前
記分配工程において割り当てられたバッファに格納する
格納工程と、 前記割り当てられたバッファに格納された受信データを
解析する解析工程と、を備えることを特徴とする電子機
器の制御方法。
12. A method of controlling an electronic device having a plurality of interfaces and a plurality of buffers, comprising: a detecting step of detecting an operating interface among the plurality of interfaces; and a detecting step for the operating interface. A buffer distributing step of allocating a number of buffers, a storing step of storing received data received by each interface in the buffer allocated in the distributing step, and an analyzing step of analyzing the received data stored in the allocated buffer A method for controlling an electronic device, comprising:
【請求項13】 複数のインターフェースと、複数のバ
ッファとを有する通信装置の制御手順を格納したコンピ
ュータ可読メモリであって、 前記複数のインターフェースのうち動作中のインターフ
ェースを検出する検出工程のコードと、 前記動作中のインターフェースに対して多数のバッファ
を割り当てるバッファ分配工程のコードと、 を備えることを特徴とするコンピュータ可読メモリ。
13. A computer-readable memory that stores a control procedure of a communication device having a plurality of interfaces and a plurality of buffers, and a code of a detection step of detecting an operating interface among the plurality of interfaces, A code for a buffer distribution step that allocates a number of buffers to the operating interface;
JP7329289A 1995-12-18 1995-12-18 Communication equipment, electronic equipment and controlling method for them Withdrawn JPH09167133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7329289A JPH09167133A (en) 1995-12-18 1995-12-18 Communication equipment, electronic equipment and controlling method for them

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7329289A JPH09167133A (en) 1995-12-18 1995-12-18 Communication equipment, electronic equipment and controlling method for them

Publications (1)

Publication Number Publication Date
JPH09167133A true JPH09167133A (en) 1997-06-24

Family

ID=18219797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7329289A Withdrawn JPH09167133A (en) 1995-12-18 1995-12-18 Communication equipment, electronic equipment and controlling method for them

Country Status (1)

Country Link
JP (1) JPH09167133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010044569A (en) * 2008-08-12 2010-02-25 Ricoh Co Ltd Information transfer circuit, information processor, control method of information transfer circuit, control program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010044569A (en) * 2008-08-12 2010-02-25 Ricoh Co Ltd Information transfer circuit, information processor, control method of information transfer circuit, control program, and recording medium

Similar Documents

Publication Publication Date Title
CN100378619C (en) Information processing apparatus and its control method
US20070070403A1 (en) Information processing apparatus, information processing method, and program
JP3007103B2 (en) Printing control device
CN103809922A (en) Image forming system
JP2000158724A (en) Image-processing apparatus, image processing method and recording medium
JPH10222319A (en) Printing device and printing control method
JPH10289066A (en) Image processor and its method
US5860026A (en) Information processing system for controlling operations of input/output devices of another clusters according to control instructions issued from a cluster
JPH09167133A (en) Communication equipment, electronic equipment and controlling method for them
JPH09107426A (en) Print controller, printer, print job processing method for print controller
JPH0199364A (en) Composite copying system
JP2816184B2 (en) Printing control device
JP2787835B2 (en) Print processing method and apparatus
JPH11119942A (en) Printer control system and recording medium recorded with printer control program
JP3700367B2 (en) Print control device
JP2981400B2 (en) Printing apparatus and data processing method for printing apparatus
US6629155B1 (en) Data input/output method and apparatus and storage medium
JP3200363B2 (en) Print control device, data processing method of print control device, and storage medium
JP3037537B2 (en) Printing system and printing device used in the printing system
JP2001146049A (en) Printer system, drawing processing method using the same and recording medium having program performing drawing processing recorded thereon
JP3414285B2 (en) Data registration device and storage medium storing data registration program
JPH05278273A (en) Output method and its device
JP2003039747A (en) Image forming apparatus and method of controlling the same
JP3105983B2 (en) Printing method and apparatus
JPH0761063A (en) Printer

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030304