JP2000222317A - Communication controller - Google Patents

Communication controller

Info

Publication number
JP2000222317A
JP2000222317A JP11022587A JP2258799A JP2000222317A JP 2000222317 A JP2000222317 A JP 2000222317A JP 11022587 A JP11022587 A JP 11022587A JP 2258799 A JP2258799 A JP 2258799A JP 2000222317 A JP2000222317 A JP 2000222317A
Authority
JP
Japan
Prior art keywords
communication
transfer size
communication speed
determining
dma
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
JP11022587A
Other languages
Japanese (ja)
Inventor
Yasushi Niikura
康史 新倉
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 JP11022587A priority Critical patent/JP2000222317A/en
Publication of JP2000222317A publication Critical patent/JP2000222317A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain efficient data communication capable of confirming the end of DMA transfer at a fixed interval or within fixed time even when communication speeds are different at the time of operating data communication by DMA transfer. SOLUTION: This communication controller is provided with a data table that a communication speed is correspondent to a DMA transfer size. Then, the communication speed is decided, and the DMA transfer size is decided by referring to a data table from the communicating speed. This decided transfer size is set in a DMAC 1-5. Thus, the DMA transfer of data is operated according to the set transfer size to that data communication can be operated by the DMAC 1-5. Therefore, even when the communication speeds are different, the end of the DMA transfer can be confirmed at a fixed interval or within a fixed time.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、DMA(ダイレク
トメモリアクセス)転送によりデータ通信を行うことが
できる通信制御装置、制御方法、およびコンピュータ読
取可能な記憶媒体に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a communication control device, a control method, and a computer-readable storage medium capable of performing data communication by DMA (Direct Memory Access) transfer.

【0002】[0002]

【従来の技術】まず、この種の通信制御装置における従
来例について、図6に基づいて説明する。なお、通信制
御装置の基本的構成は、後述の実施例で説明する図1に
示すものと共通であるので、以下の動作説明では、図1
に示す各構成要素および符号、すなわちCPU1−1、
ROM1−2、RAM1−3、BUS1−4、DMAC
(DMAコントローラ)1−5、MODEM(変復調装
置)1−6、NCU(網制御装置)1−7を一部援用し
て説明する。
2. Description of the Related Art First, a conventional example of this type of communication control device will be described with reference to FIG. Note that the basic configuration of the communication control device is the same as that shown in FIG. 1 described in an embodiment to be described later.
, Ie, CPU1-1,
ROM1-2, RAM1-3, BUS1-4, DMAC
(DMA controller) 1-5, MODEM (modulator / demodulator) 1-6, and NCU (network controller) 1-7 will be partially explained.

【0003】図6は、従来の通信制御装置において、D
MA転送を用いてデータ通信を行う場合の動作例を示す
フローチャートである。
FIG. 6 shows a conventional communication control device,
9 is a flowchart illustrating an operation example when performing data communication using MA transfer.

【0004】まず、ステップ6−1では、DMAC1−
5にDMA転送サイズを設定するステップであり、DM
A転送サイズは通信速度などによらず常に一定である。
First, in step 6-1, DMAC1-
5 is a step of setting the DMA transfer size to
The A transfer size is always constant regardless of the communication speed.

【0005】ステップ6−2は、DMA転送終了後、次
のDMA転送があるか否かを判断するステップであり、
もし次のDMA転送があるときには、ステップ6−1へ
再び移行し、次のDMA転送がないときは終了する。
Step 6-2 is a step for judging whether or not there is a next DMA transfer after the end of the DMA transfer.
If there is the next DMA transfer, the process returns to step 6-1. If there is no next DMA transfer, the process ends.

【0006】以上のような動作により、DMA転送のサ
イズが常に一定であるため、通信速度により、一定間
隔、または、一定時間以内でデータ送受信の終了確認を
することができなかった。
Due to the above-described operation, the size of the DMA transfer is always constant, so that the end of data transmission / reception cannot be confirmed within a certain interval or within a certain time depending on the communication speed.

【0007】[0007]

【発明が解決しようとする課題】上述のように従来の技
術においては、DMA転送によってデータ通信を行う場
合に、DMA転送のサイズが常に一定であるため、通信
速度が異なる場合に、一定間隔、または、一定時間以内
でデータ送受信の終了確認ができないという欠点があっ
た。
As described above, in the prior art, when performing data communication by DMA transfer, the size of the DMA transfer is always constant. Another disadvantage is that the end of data transmission / reception cannot be confirmed within a certain time.

【0008】そこで本発明は、DMA転送によってデー
タ通信を行う場合に、通信速度が異なる場合でも、一定
間隔、または、一定時間以内にDMA転送の終了を確認
でき、効率のよいデータ通信を行うことができる通信制
御装置を提供することを目的とする。
Accordingly, the present invention provides a method for performing efficient data communication by confirming the end of a DMA transfer within a fixed interval or within a fixed time, even when data communication is performed by DMA transfer, even if the communication speed is different. It is an object of the present invention to provide a communication control device capable of performing the following.

【0009】[0009]

【課題を解決するための手段】本発明は、DMA転送を
用いたデータ通信が可能なDMACを有する通信制御装
置において、通信速度を決定する通信速度決定手段と、
通信速度からDMAの転送サイズを決定する転送サイズ
決定手段と、DMACに転送サイズを設定する設定手段
とを有し、前記通信速度決定手段により決定された通信
速度を基に、前記転送サイズ決定手段によりDMAの転
送サイズを決定し、前記設定手段により前記DMA転送
サイズを設定することにより、通信速度が異なる場合で
も、一定間隔、または、一定時間以内にDMA転送の終
了を確認でき、効率のよいデータ通信を行うことができ
る。
According to the present invention, there is provided a communication control device having a DMAC capable of performing data communication using DMA transfer, a communication speed determining means for determining a communication speed,
Transfer size determining means for determining a transfer size of the DMA from the communication speed; and setting means for setting a transfer size in the DMAC, wherein the transfer size determining means is based on the communication speed determined by the communication speed determining means. The transfer size of the DMA is determined by the above, and by setting the DMA transfer size by the setting means, even if the communication speed is different, the end of the DMA transfer can be confirmed within a certain interval or within a certain time, which is efficient. Data communication can be performed.

【0010】[0010]

【発明の実施の形態および実施例】図1は、本発明の一
実施例による通信制御装置の概略構成を示すブロック図
である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing a schematic configuration of a communication control device according to one embodiment of the present invention.

【0011】図1において、CPU1−1は、ROM1
−2等に記憶されたプログラムやデータに基づいて、装
置全体の動作を行うものであり、ROM1−2は、例え
ば図2に示すようなデータテーブルや、図4に示すフロ
ーチャートに対応するプログラムを記憶(プリセット)
したものである。
In FIG. 1, a CPU 1-1 has a ROM 1
The operation of the entire apparatus is performed based on the programs and data stored in the ROM-2, and the ROM 1-2 stores, for example, a data table as shown in FIG. 2 or a program corresponding to the flowchart shown in FIG. Memory (preset)
It was done.

【0012】RAM1−3は、DMAC(ダイレクトメ
モリアクセスコントローラ)1−5との間でやり取りす
るデータや、各種プログラムのワークエリアとして機能
するものであり、BUS1−4は、各構成要素間でデー
タの送受を行うためのものである。
The RAM 1-3 functions as data exchanged with the DMAC (Direct Memory Access Controller) 1-5 and as a work area for various programs, and the BUS 1-4 is used as a data area between the constituent elements. For sending and receiving.

【0013】DMAC1−5は、MODEM(変復調装
置)1−6とRAM1−3との間のDMA転送を制御す
るものである。
The DMAC 1-5 controls the DMA transfer between the MODEM (modulator / demodulator) 1-6 and the RAM 1-3.

【0014】MODEM1−6は、DMAC1−5から
受け取ったデータをITU−Tの勧告に従い、適宜変調
してNCU(網制御装置)1−7に送信したり、NCU
1−7から受け取ったデータをITU−Tの勧告に従
い、復調してDMAC1−5に転送するものである。
The MODEM 1-6 modulates the data received from the DMAC 1-5 as appropriate according to the recommendations of the ITU-T, and transmits the modulated data to an NCU (network control unit) 1-7.
The data received from 1-7 is demodulated and transferred to the DMAC 1-5 according to the recommendations of ITU-T.

【0015】NCU1−7は、MODEM1−6からの
データを回線に送出したり、回線からのデータをMOD
EM1−6に受信させたり、発呼や着呼の制御を行うも
のである。
The NCU 1-7 sends the data from the MODEM 1-6 to the line and modulates the data from the line to the MOD.
EM1-6 receives the call and controls outgoing and incoming calls.

【0016】図2は、本実施例による通信速度から転送
サイズを決定するためのデータテーブルを示す説明図で
ある。このデータテーブルは、通信速度に対してDMA
転送するサイズをテーブル化し、ROM1−2に格納し
てある。このテーブルデータは、図4に示すフローチャ
ートのステップ4−2で使用される。
FIG. 2 is an explanatory diagram showing a data table for determining a transfer size from a communication speed according to the present embodiment. This data table has a DMA
The size to be transferred is tabulated and stored in the ROM 1-2. This table data is used in step 4-2 of the flowchart shown in FIG.

【0017】図3は、ITU−Tの勧告T.30に規定
されているファクシミリ通信手順の一例を示す説明図で
ある。
FIG. 3 is a diagram of ITU-T Recommendation T.30. FIG. 3 is an explanatory diagram showing an example of a facsimile communication procedure specified in 30.

【0018】図3において、DIS3−1は、受信装置
の受信能力などを示す信号であり、受信装置の受信可能
な通信速度がデータとして含まれている。
In FIG. 3, DIS 3-1 is a signal indicating the receiving capability of the receiving device and the like, and includes the communication speed at which the receiving device can receive data.

【0019】また、DCS3−2は、DIS3−1を受
信したことにより、受信装置の受信能力と、送信装置の
送信能力から、通信が可能な能力を決定し、それを受信
装置に伝える信号であり、送信可能な通信速度がデータ
として含まれている。
The DCS 3-2 receives the DIS 3-1 and determines a communication-capable capability from the receiving capability of the receiving device and the transmitting capability of the transmitting device. Yes, and the transmission speed at which transmission is possible is included as data.

【0020】また、TCF3−3は、DCS3−2で示
した通信速度で通信上のエラーが無いことを確認するた
めのダミーデータを送信する信号である。また、CFR
3−4は、TCF3−3で送信したダミーデータに異常
がないことを示すための信号である。
The TCF 3-3 is a signal for transmitting dummy data for confirming that there is no communication error at the communication speed indicated by the DCS 3-2. Also, CFR
3-4 is a signal indicating that the dummy data transmitted by the TCF 3-3 has no abnormality.

【0021】PIX3−5は、伝送される画データであ
り、Q3−6は、画データ3−5の送信を終了したこと
を示す信号である。また、MCF3−7は、画データ3
−5が正常に受信出来たことを示す信号である。最後に
DCN3−8は、通信を切断することを示す信号であ
る。
PIX3-5 is image data to be transmitted, and Q3-6 is a signal indicating that transmission of image data 3-5 has been completed. The MCF 3-7 stores the image data 3
-5 is a signal indicating that the signal has been successfully received. Finally, DCN3-8 is a signal indicating that communication is to be disconnected.

【0022】図4は、本実施例の動作を示すフローチャ
ートであり、このフローチャートに対応するプログラム
がROM1−2に格納されているものとする。
FIG. 4 is a flowchart showing the operation of this embodiment. It is assumed that a program corresponding to this flowchart is stored in the ROM 1-2.

【0023】図4において、ステップ4−1では、DI
S3−1の受信可能な通信速度と、送信装置の送信可能
な通信速度から決定された通信速度をDCS3−2で送
り、DCS3−2の通信速度データをRAM1−3に格
納しておく。
In FIG. 4, in step 4-1 the DI
The communication speed determined from the receivable communication speed in S3-1 and the receivable communication speed of the transmitting device is sent by the DCS 3-2, and the communication speed data of the DCS 3-2 is stored in the RAM 1-3.

【0024】ステップ4−2では、ステップ4−1でR
AM1−3に格納された通信速度データを基に、ROM
1−2に格納されている図2のテーブルを参照して、D
MA転送サイズを決定し、それをRAM1−3に格納す
る。
In step 4-2, R in step 4-1
ROM based on the communication speed data stored in AM1-3
With reference to the table of FIG.
The MA transfer size is determined and stored in the RAM 1-3.

【0025】ステップ4−3では、ステップ4−2でR
AM1−3に格納されたDMA転送サイズをBUS1−
4を通してDMAC1−5に転送バッファサイズとして
設定する。
In step 4-3, R in step 4-2
The DMA transfer size stored in AM1-3 is changed to BUS1-
4, the transfer buffer size is set in the DMAC 1-5.

【0026】ステップ4−4は、ステップ4−3で設定
したバッファの転送が終了した場合に、次のDMA転送
が有るか否かを判断する処理であり、次のDMA転送が
有る場合はステップ4−3の設定処理に移行し、次のD
MA転送が無い場合は終了する。
Step 4-4 is a process for judging whether or not there is the next DMA transfer when the transfer of the buffer set in step 4-3 is completed. The processing shifts to the setting processing of 4-3, and the next D
If there is no MA transfer, the process ends.

【0027】以上のような動作において、ステップ4−
4でのバッファ転送が終了するまでの時間は、通信速度
によらずに常に一定になる。
In the above operation, step 4-
The time until the end of the buffer transfer in No. 4 is always constant regardless of the communication speed.

【0028】図5は、図4のフローチャートに示す各工
程(ステップ)がROM1−2のどの部分にあるかを示
す説明図である。図5において、5−1は、ステップ4
−1の通信速度を決定する工程が格納されているエリア
である。
FIG. 5 is an explanatory diagram showing where each step (step) shown in the flowchart of FIG. 4 is located in the ROM 1-2. In FIG. 5, 5-1 is step 4
This is an area in which a step of determining a communication speed of -1 is stored.

【0029】また、5−2は、ステップ4−2のDMA
転送サイズを決定する工程が格納されているエリアであ
る。さらに、5−3は、ステップ4−3のDMAC1−
5に転送バッファサイズを設定する工程が格納されてい
るエリアである。
5-2 is the DMA of step 4-2.
This is an area in which a process for determining a transfer size is stored. Further, 5-3 corresponds to the DMAC1-
5 is an area in which a step of setting a transfer buffer size is stored.

【0030】なお、以上の実施例では、制御プログラム
の各工程が予めROM1−2に格納されている例につい
て説明したが、格納する記憶媒体は他にフロッピーディ
スク、CD−ROM、ハードディスク、メモリカード、
光磁気ディスクなどを用いることができる。
Although the above embodiment has been described with respect to an example in which the steps of the control program are stored in the ROM 1-2 in advance, the storage medium to be stored may be a floppy disk, CD-ROM, hard disk, memory card, or the like. ,
A magneto-optical disk or the like can be used.

【0031】また、記憶エリアとしてもRAMも書き換
え可能な記録媒体として、フロッピーディスク、ハード
ディスク、メモリカードなどを用いることができる。
Further, a floppy disk, hard disk, memory card, or the like can be used as a recording medium in which both the storage area and the RAM can be rewritten.

【0032】また、外部の記憶媒体に記憶されたプログ
ラムを装置内に適宜取り込んで処理するようなシステム
であってもよい。
Further, the system may be such that a program stored in an external storage medium is appropriately loaded into the apparatus and processed.

【0033】また、以上の実施例では、DMAの転送サ
イズをデータテーブルを参照して通信速度より求めてい
たが、このようなデータテーブルを参照するのでなな
く、計算で求めるようにしてもよい。
In the above embodiment, the transfer size of the DMA is determined from the communication speed with reference to the data table. However, the transfer size may be determined by calculation instead of referring to such a data table. .

【0034】また、以上の実施例では、通信制御装置と
してファクシミリ装置を例に説明したが、ファクシミリ
装置でなく、他のデータ通信装置であってもよい。
In the above embodiment, a facsimile apparatus has been described as an example of a communication control apparatus, but other data communication apparatuses may be used instead of the facsimile apparatus.

【0035】[0035]

【発明の効果】以上説明したように、本発明によれば、
DMA転送によってデータ通信を行う場合に、通信速度
が異なる場合でも、一定間隔、または、一定時間以内に
DMA転送の終了を確認でき、効率のよいデータ通信を
行うことができる。
As described above, according to the present invention,
When data communication is performed by DMA transfer, even if the communication speed is different, the end of the DMA transfer can be confirmed within a fixed interval or within a fixed time, and efficient data communication can be performed.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】本実施例による通信速度から転送サイズを決定
するためのデータテーブルを示す説明図である。
FIG. 2 is an explanatory diagram illustrating a data table for determining a transfer size from a communication speed according to the embodiment;

【図3】ITU−Tの勧告T.30に規定されているフ
ァクシミリ通信手順の一例を示す説明図である。
[Fig. 3] ITU-T Recommendation T. FIG. 3 is an explanatory diagram showing an example of a facsimile communication procedure specified in 30.

【図4】本実施例の動作を示すフローチャートである。FIG. 4 is a flowchart illustrating the operation of the present embodiment.

【図5】本実施例における各工程のROM内における格
納状態を示す説明図である。
FIG. 5 is an explanatory diagram showing a storage state in a ROM of each step in the embodiment.

【図6】従来例の動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of the conventional example.

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

1−1…CPU、 1−2…ROM、 1−3…RAM、 1−4…BUS、 1−5…DMAC、 1−6…MODEM、 1−7…NCU。 1-1 CPU, 1-2 ROM, 1-3 RAM, 1-4 BUS, 1-5 DMAC, 1-6 MODEM, 1-7 NCU.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 DMA転送を用いたデータ通信が可能な
DMACを有する通信制御装置において、 通信速度を決定する通信速度決定手段と、 通信速度からDMAの転送サイズを決定する転送サイズ
決定手段と、 DMACに転送サイズを設定する設定手段とを有し、 前記通信速度決定手段により決定された通信速度を基
に、前記転送サイズ決定手段によりDMAの転送サイズ
を決定し、前記設定手段により前記DMA転送サイズを
設定することを特徴とする通信制御装置。
1. A communication control device having a DMAC capable of performing data communication using DMA transfer, comprising: a communication speed determining means for determining a communication speed; a transfer size determining means for determining a DMA transfer size from the communication speed; Setting means for setting a transfer size in the DMAC, wherein a transfer size of the DMA is determined by the transfer size determining means based on the communication speed determined by the communication speed determining means, and the DMA transfer is performed by the setting means. A communication control device for setting a size.
【請求項2】 DMA転送を用いたデータ通信が可能な
DMACを有する通信制御装置の制御方法において、 通信速度を決定する通信速度決定工程と、 通信速度からDMAの転送サイズを決定する転送サイズ
決定工程と、 DMACに転送サイズを設定する設定工程とを有し、 前記通信速度決定工程により決定された通信速度を基
に、前記転送サイズ決定工程によりDMAの転送サイズ
を決定し、前記設定工程により前記DMA転送サイズを
設定することを特徴とする通信制御装置の制御方法。
2. A method for controlling a communication control device having a DMAC capable of performing data communication using DMA transfer, comprising: a communication speed determination step of determining a communication speed; and a transfer size determination of determining a DMA transfer size from the communication speed. And a setting step of setting a transfer size in the DMAC. Based on the communication speed determined in the communication speed determining step, a transfer size of the DMA is determined by the transfer size determining step. A method for controlling a communication control device, wherein the DMA transfer size is set.
【請求項3】 DMA転送を用いたデータ通信が可能な
DMACを有する通信制御装置の制御プログラムを記憶
したコンピュータ読取可能な記憶媒体において、 通信速度を決定する通信速度決定工程と、 通信速度からDMAの転送サイズを決定する転送サイズ
決定工程と、 DMACに転送サイズを設定する設定工程とを含み、 前記通信速度決定工程により決定された通信速度を基
に、前記転送サイズ決定工程によりDMAの転送サイズ
を決定し、前記設定工程により前記DMA転送サイズを
設定するよう処理する制御プログラムを記憶したことを
特徴とする記憶媒体。
3. A communication speed determining step of determining a communication speed in a computer-readable storage medium storing a control program of a communication control device having a DMAC capable of performing data communication using DMA transfer; A transfer size determining step of determining a transfer size of the DMAC, and a setting step of setting a transfer size in the DMAC. The transfer size of the DMA is determined by the transfer size determining step based on the communication speed determined in the communication speed determining step. And a control program for determining the DMA transfer size in the setting step.
JP11022587A 1999-01-29 1999-01-29 Communication controller Pending JP2000222317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11022587A JP2000222317A (en) 1999-01-29 1999-01-29 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11022587A JP2000222317A (en) 1999-01-29 1999-01-29 Communication controller

Publications (1)

Publication Number Publication Date
JP2000222317A true JP2000222317A (en) 2000-08-11

Family

ID=12086997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11022587A Pending JP2000222317A (en) 1999-01-29 1999-01-29 Communication controller

Country Status (1)

Country Link
JP (1) JP2000222317A (en)

Similar Documents

Publication Publication Date Title
JP3354443B2 (en) Communication device
JPH07107255A (en) Image information transfer control system
JP2000222317A (en) Communication controller
JP2000222344A (en) Communication controller
JPH1174983A (en) Data communication equipment
JP3282132B2 (en) Facsimile machine
JP3534140B2 (en) Communication device
JPH0614175A (en) Information transmission equipment
JP3409812B2 (en) Facsimile modem
JP2001203869A (en) Facsimile gateway system
JP3355822B2 (en) Facsimile machine
JPH10290351A (en) Communication terminal
JPH09312749A (en) Transmission control system for facsimile equipment
JPH01191524A (en) Correction system for line distortion
JPH11298664A (en) Communication equipment
JP2001203746A (en) Facsimile gateway device
JP2001292285A (en) Image communication equipment
JPH04294678A (en) Modem device for facsimile equipment
JPH01200780A (en) Method for transmission control of facsimile equipment
JPH05183717A (en) Facsimile equipment
JPH03150965A (en) Transmission/reception method in facsimile equipment or the like
JPH06233104A (en) Transmitting method for facsimile or the like
JPH02217072A (en) Facsimile equipment
JPH10150546A (en) Facsimile equipment
JPH0250569A (en) Facsimile equipment