[go: up one dir, main page]

JP2001313690A - Communication control device and method - Google Patents

Communication control device and method

Info

Publication number
JP2001313690A
JP2001313690A JP2000132731A JP2000132731A JP2001313690A JP 2001313690 A JP2001313690 A JP 2001313690A JP 2000132731 A JP2000132731 A JP 2000132731A JP 2000132731 A JP2000132731 A JP 2000132731A JP 2001313690 A JP2001313690 A JP 2001313690A
Authority
JP
Japan
Prior art keywords
modem
communication
data
type
communication control
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
JP2000132731A
Other languages
Japanese (ja)
Inventor
Masao Aihara
正男 合原
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 JP2000132731A priority Critical patent/JP2001313690A/en
Publication of JP2001313690A publication Critical patent/JP2001313690A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

(57)【要約】 【課題】モデムのタイプによらず、共通のアプリケーシ
ョンインターフェースを提供する通信制御装置および方
法を提供する。 【解決手段】モデムと接続される2つのシリアル・ポー
トを有する通信制御装置において、接続されたモデムが
単一のポートを有する第1タイプのモデムか複数ポート
を有する第2タイプのモデムかを判断する(S70
1)。第1タイプのモデムである場合は、当該モデムが
データ通信中か否かを判断し(S702)、データ通信
中でない場合は該モデムを介して受信したデータを制御
データとして、データ通信中である場合は該モデムを介
して受信したデータを通信データとしてアプリケーショ
ンに提供する(S703、S704)。また、第2タイ
プのモデムと判断された場合は、通信データと制御デー
タの通信をそれぞれ異なるシリアル・ポートを用いて行
う(S706)。
(57) Abstract: A communication control device and method for providing a common application interface regardless of the type of a modem. A communication controller having two serial ports connected to a modem determines whether the connected modem is a first type modem having a single port or a second type modem having a plurality of ports. Yes (S70
1). If the modem is of the first type, it is determined whether or not the modem is performing data communication (S702). If the modem is not performing data communication, data received via the modem is used as control data to perform data communication. In this case, the data received via the modem is provided to the application as communication data (S703, S704). If it is determined that the modem is of the second type, communication of communication data and control data is performed using different serial ports (S706).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、モデムなどの通信
機器を利用する通信制御装置及び方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device and method using communication equipment such as a modem.

【0002】[0002]

【従来の技術】モデム等を利用したデータ通信を行う場
合に、コンピュータと接続されるモデムには以下の2種
類がある。
2. Description of the Related Art When performing data communication using a modem or the like, there are the following two types of modems connected to a computer.

【0003】(A)シリアルポート1個でコンピュータ
と接続されるモデム このモデムでは、1個のシリアルポート経由でコンピュ
ータから送信されて来るデータを、モデムの制御のため
のコマンドと通信データに文脈で切り分ける。具体的に
は、通信相手と接続していない時は、モデムはコマンド
・モードであり、この時に、シリアルポート経由でモデ
ムに流れてきたデータは、コマンドと解釈される。反対
に、接続しているときは、モデムはオンライン・モード
であり、この時に流れてきたデータは、通信相手に送る
通信データとして解釈され、回線を介して通信相手に送
信される。また、オンライン・モード中に、シリアルポ
ート経由で特定のエスケープ・コードを受け取るとコマ
ンド・モードに変わり、その後、所定のコマンド(復帰
コマンドという)を受け取るとオンライン・モードに戻
る。この種のモデムとして代表的なものに、Hayes ATコ
マンド準拠のモデムがある。
(A) Modem Connected to Computer via One Serial Port In this modem, data transmitted from a computer via one serial port is converted into a command for controlling the modem and communication data in a context. Carve out. Specifically, when the modem is not connected to the communication partner, the modem is in the command mode, and at this time, data flowing to the modem via the serial port is interpreted as a command. Conversely, when connected, the modem is in the online mode, and the data flowing at this time is interpreted as communication data to be sent to the communication partner and transmitted to the communication partner via the line. In the online mode, when a specific escape code is received via the serial port, the mode is changed to the command mode, and thereafter, when a predetermined command (referred to as a return command) is received, the mode returns to the online mode. A typical modem of this type is a modem compliant with the Hayes AT command.

【0004】(B)シリアルポート2個でコンピュータ
と接続されるモデム このモデムでは、一方のシリアルポートをモデム制御の
ためのコマンド専用ポートとするものであり、他方のシ
リアルポートは通信データ専用ポートとするものであ
る。
(B) Modem connected to a computer with two serial ports In this modem, one serial port is used as a command dedicated port for modem control, and the other serial port is used as a communication data dedicated port. Is what you do.

【0005】従って、モデム制御のためのアプリケーシ
ョンは、タイプ(A)のモデムではモデムのモードを意
識して1つのシリアルポートを制御し、タイプ(B)の
モデムではモデムのモードを意識せずに2つのシリアル
ポートを制御することになる。
Therefore, an application for controlling the modem controls one serial port in the type (A) modem conscious of the mode of the modem, and in the type (B) modem unaware of the mode of the modem. It will control two serial ports.

【0006】[0006]

【発明が解決しようとする課題】以上説明したように、
モデムにはシリアルポート数が異なるものが存在し、そ
れに応じて制御方式も異なるものとなっている。そのた
め、モデム制御のための通信制御装置やアプリケーショ
ンの共通化は難しいという問題がある。
As described above,
Some modems have different numbers of serial ports, and the control methods are different accordingly. Therefore, there is a problem that it is difficult to standardize a communication control device and an application for modem control.

【0007】本発明は、上述の課題に鑑みてなされたも
のであり、その目的とするところは、アプリケーション
が、モデムのタイプを意識せずにモデムを使用可能とす
る通信制御装置および方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and has as its object to provide a communication control apparatus and method which enable an application to use a modem without being aware of the type of the modem. Is to do.

【0008】[0008]

【課題を解決するための手段】上記の目的を達成するた
めの本発明の一態様による通信制御装置は例えば以下の
構成を備える。すなわち、モデムと接続可能な複数のポ
ートを有する通信制御装置であって、接続されたモデム
が単一のポートを有する第1タイプのモデムか複数ポー
トを有する第2タイプのモデムかを判断する第1判断手
段と、前記第1判断手段により前記モデムが前記第1タ
イプであると判断された場合、前記モデムがデータ通信
中か否かを判断する第2判断手段と、前記第1判断手段
で、前記モデムが前記第2のタイプであると判断された
場合に前記モデムによる通信データと制御データの通信
をそれぞれ異なるポートを介して行う第1通信制御手段
と、前記第2判断手段で前記モデムがデータ通信中でな
いと判断された場合に前記モデムを介して受信したデー
タを制御データとして扱い、データ通信中であると判断
された場合は該モデムを介して受信したデータを通信デ
ータとして扱う第2通信制御手段とを備える。
A communication control apparatus according to one embodiment of the present invention for achieving the above object has, for example, the following configuration. That is, a communication control device having a plurality of ports connectable to a modem, the communication control device determining whether the connected modem is a first type modem having a single port or a second type modem having a plurality of ports. 1 determining means, when the first determining means determines that the modem is of the first type, second determining means for determining whether or not the modem is performing data communication; and First communication control means for performing communication of communication data and control data by the modem through different ports when the modem is determined to be of the second type; If it is determined that data communication is not being performed, data received via the modem is treated as control data. If it is determined that data communication is being performed, reception is performed via the modem. And a second communication control means for handling the communication data data.

【0009】また、上記の目的を達成するための本発明
の他の態様による通信制御方法は例えば以下の構成を備
える。すなわち、モデムと接続可能な複数のポートを有
する通信制御方法であって、接続されたモデムが単一の
ポートを有する第1タイプのモデムか複数ポートを有す
る第2タイプのモデムかを判断する第1判断工程と、前
記第1判断工程により前記モデムが前記第1タイプであ
ると判断された場合、前記モデムがデータ通信中か否か
を判断する第2判断工程と、前記第1判断工程で、前記
モデムが前記第2のタイプであると判断された場合に前
記モデムによる通信データと制御データの通信をそれぞ
れ異なるポートを介して行う第1通信制御工程と、前記
第2判断工程で前記モデムがデータ通信中でないと判断
された場合に前記モデムを介して受信したデータを制御
データとして扱い、データ通信中であると判断された場
合は該モデムを介して受信したデータを通信データとし
て扱う第2通信制御工程とを備える。
Further, a communication control method according to another aspect of the present invention for achieving the above object has, for example, the following configuration. That is, a communication control method having a plurality of ports connectable to a modem, the method comprising: determining whether the connected modem is a first type modem having a single port or a second type modem having a plurality of ports. A first determining step, a second determining step of determining whether or not the modem is performing data communication when the modem is determined to be of the first type in the first determining step; and A first communication control step of performing communication of communication data and control data by the modem through different ports when the modem is determined to be of the second type; and If it is determined that data communication is not being performed, data received via the modem is treated as control data. If it is determined that data communication is being performed, reception is performed via the modem. And a second communication control step that handles the communication data data.

【0010】[0010]

【発明の実施形態】以下、添付の図面を参照して本発明
の好適な実施形態を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0011】[第1の実施形態]以下、図面を参照して
本発明の詳細を説明する。
[First Embodiment] Hereinafter, the present invention will be described in detail with reference to the drawings.

【0012】図1および図2は、第1の実施形態にかか
る通信制御装置にモデムを接続した場合の構成を表すブ
ロック図である。これらの図1及び図2はそれぞれ、2
個のシリアルポートを持つ通信制御装置に、異なるタイ
プのモデムが接続された場合の構成を示すものである。
FIGS. 1 and 2 are block diagrams showing a configuration when a modem is connected to the communication control apparatus according to the first embodiment. These FIGS. 1 and 2 respectively show 2
This shows a configuration in the case where different types of modems are connected to a communication control device having serial ports.

【0013】図1は、本実施形態の通信制御装置に上述
のタイプ(B)のモデム(シリアルポート2個でコンピ
ュータと接続されるタイプのモデム)11を接続した場
合の構成図である。図1において、通信制御装置本体1
は、CPU2、メモリ3、第1及び第2シリアルポート
制御部4、5を含んでいる。メモリ3には、タイプ及び
ポートと名付けられた領域(以下、それぞれタイプ3
a、ポート3bという)がある。11はタイプ(B)の
モデムであり、2つのシリアルポートを有している。1
2は、コマンド・ポートであり、このポート経由で、モ
デムでのコマンドの受信およびモデムから通信制御装置
に情報の送信が行われる。13はデータ・ポートであ
り、回線接続時に、接続相手の通信機器とのデータの通
信が行われる。
FIG. 1 is a configuration diagram in the case where the above-mentioned type (B) modem (modem of a type connected to a computer through two serial ports) 11 is connected to the communication control apparatus of the present embodiment. In FIG. 1, a communication control device main body 1
Includes a CPU 2, a memory 3, and first and second serial port controllers 4 and 5. The memory 3 has areas named type and port (hereinafter, type 3 and port 3 respectively).
a, port 3b). Reference numeral 11 denotes a type (B) modem, which has two serial ports. 1
Reference numeral 2 denotes a command port through which a command is received by the modem and information is transmitted from the modem to the communication control device. Reference numeral 13 denotes a data port for performing data communication with a communication device of a connection partner when a line is connected.

【0014】また、第1シリアルポート制御部4にはモ
デムのデータ・ポート13が接続されており、第2シリ
アルポート制御部5にはモデムのコマンド・ポート12
が接続されている。
A data port 13 of a modem is connected to the first serial port control unit 4, and a command port 12 of the modem is connected to the second serial port control unit 5.
Is connected.

【0015】図2は、本実施形態の通信制御装置にタイ
プ(A)のモデム(シリアルポート1個でコンピュータ
と接続されるモデム)21を接続した場合の構成図であ
る。この場合は、第1シリアルポート制御部4にのみモ
デム21が接続されていて、第2シリアルポート制御部
5には何も接続されていない。
FIG. 2 is a configuration diagram in the case where a type (A) modem (a modem connected to a computer with one serial port) 21 is connected to the communication control apparatus of the present embodiment. In this case, the modem 21 is connected only to the first serial port control unit 4, and nothing is connected to the second serial port control unit 5.

【0016】次に、本実施形態の通信制御装置の処理の
流れを、図7に表すフローチャートを用いて説明する。
ステップ701では、通信制御装置にモデムが接続され
た場合に、接続されたモデムが単一のポートを有するタ
イプ(A)のモデムか、複数ポートを有するタイプ
(B)のモデムかを判断する。なお、この判断はタイプ
3aの内容により行われる。
Next, the flow of processing of the communication control device of the present embodiment will be described with reference to the flowchart shown in FIG.
In step 701, when a modem is connected to the communication control device, it is determined whether the connected modem is a type (A) modem having a single port or a type (B) modem having a plurality of ports. This determination is made based on the contents of the type 3a.

【0017】ステップS701で、タイプ(A)のモデ
ムが接続されていると判断された場合は、ステップS7
02〜S705により、図4で後述する処理を実行す
る。簡単に説明すると、ステップS702でモデムがデ
ータ通信中か否かを判断する。ステップS702で、モ
デムがデータ通信中でないと判断された場合は、ステッ
プS703に進み、モデムよりの受信データを制御デー
タとしてアプリケーションに提供するように処理を切換
る。一方、ステップS702でデータ通信中であれば、
ステップS704で、モデムよりの受信データを通信デ
ータとしてアプリケーションに提供するように処理を切
換る。ステップS705では、アプリケーションからモ
デムへのデータ提供を行う。アプリケーションからモデ
ムへのデータ提供はデータの通信中か否かに影響されな
い。
If it is determined in step S701 that a type (A) modem is connected, step S7 is executed.
From 02 to S705, the processing described later with reference to FIG. 4 is executed. Briefly, in step S702, it is determined whether the modem is performing data communication. If it is determined in step S702 that the modem is not performing data communication, the process advances to step S703 to switch the processing so as to provide the data received from the modem as control data to the application. On the other hand, if data communication is being performed in step S702,
In step S704, the process is switched so as to provide data received from the modem as communication data to the application. In step S705, the application provides data to the modem. The provision of data from the application to the modem is not affected by whether data is being communicated or not.

【0018】一方、ステップS701で、タイプ(B)
のモデムが接続されていると判断された場合は、ステッ
プS706へ進み、図3で後述するように、データ通信
と制御データの通信をそれぞれ異なるシリアルポート制
御部4、5を用いて行う用に処理を切換る。すなわち、
第1シリアルポート制御部4を介して通信されるデータ
を通信データ、第2シリアルポート制御部5を介して通
信されるデータを制御データとして、アプリケーション
との受渡を行う。
On the other hand, in step S701, type (B)
If it is determined that the modem is connected, the process proceeds to step S706 to perform data communication and control data communication using different serial port controllers 4 and 5 as described later with reference to FIG. Switch processing. That is,
The communication with the application is performed using data communicated via the first serial port control unit 4 as communication data and data communicated via the second serial port control unit 5 as control data.

【0019】以下、本実施形態にかかる装置の動作につ
いて、図3および図4を用いて説明する。図3および図
4は、それぞれタイプ(B)のモデム11を接続した場
合とタイプ(A)のモデム21を接続した場合の、本通
信制御装置のシリアルポート・ドライバの動作を示す図
である。図7で説明したように、メモリ3のタイプ3a
に格納された値により、接続されているモデムの種別を
判定し、図3で示す動作と図4で示す動作との間の切換
が行われる。すなわち、シリアルポート・ドライバはメ
モリ3におけるタイプ3aの領域の値によって動きを変
えるものであり、タイプ(A)であれば図4の動きを
し、タイプ(B)であれば図3の動きをする。
The operation of the apparatus according to the present embodiment will be described below with reference to FIGS. FIG. 3 and FIG. 4 are diagrams showing the operation of the serial port driver of the communication control device when the type (B) modem 11 is connected and when the type (A) modem 21 is connected, respectively. As described in FIG. 7, the type 3a of the memory 3
, The type of the connected modem is determined, and switching between the operation shown in FIG. 3 and the operation shown in FIG. 4 is performed. That is, the serial port driver changes the motion according to the value of the area of the type 3a in the memory 3. In the case of the type (A), the motion of FIG. 4 is performed, and in the case of the type (B), the motion of FIG. I do.

【0020】なお、図4に示す用に、タイプ(A)のモ
デム21には、データ入出力の為の信号線Rx、Txが
用意され、さらに情報信号線(例えば、CD(Carrier
Detect)と呼ばれる信号線)も用意されている。信号線
CDからの出力は、回線が接続中の時は1、そうでない
時は0になっている。
As shown in FIG. 4, the type (A) modem 21 is provided with signal lines Rx and Tx for data input / output, and further includes an information signal line (for example, CD (Carrier)).
Detect) is also available. The output from the signal line CD is 1 when the line is connected, and is 0 otherwise.

【0021】まず、タイプ(B)のモデムが接続されて
いる場合の動作(図7のステップS706)を説明す
る。図3において、アプリケーション(システムタス
ク、ミドルウェアなども含む)からのモデム・コマンド
の出力要求は、第2シリアルポート制御部5によって、
信号線TxDcを経由してモデムのコマンド・ポート1
2に送られる。モデム11のコマンド・ポート12から
第2シリアルポート制御部5にされる入力は、信号線R
xDcを経由して行われ、コマンド・バッファ101を
経由して、モデム・コマンドとしてアプリケーションに
渡される。
First, the operation when a type (B) modem is connected (step S706 in FIG. 7) will be described. In FIG. 3, an output request of a modem command from an application (including a system task, middleware, and the like) is sent by the second serial port control unit 5 by the second serial port control unit 5.
Command port 1 of modem via signal line TxDc
Sent to 2. The input from the command port 12 of the modem 11 to the second serial port control unit 5 is a signal line R
This is performed via xDc, and is passed to the application via the command buffer 101 as a modem command.

【0022】アプリケーションからのモデム・データの
出力要求は、第1シリアルポート制御部4によって、信
号線TxDdを経由してモデムのデータ・ポートへ送ら
れる。モデム11のデータ・ポート13から第1シリア
ルポート制御部4にされる入力は、信号線RxDdを経
由して行われ、データ・バッファ102を経由してアプ
リケーションにモデム・データとして渡される。
A request to output modem data from an application is sent by the first serial port control unit 4 to the data port of the modem via the signal line TxDd. The input from the data port 13 of the modem 11 to the first serial port control unit 4 is performed via the signal line RxDd, and is passed as modem data to the application via the data buffer 102.

【0023】次に、タイプ(A)のモデムが接続されて
いる場合の動作(図7のステップS702〜S705)
を説明する。図4において、シリアルポート・ドライバ
は、モデム21の信号線CDの変化を検知して、メモリ
3にあるポート3bの領域に、信号線CDからの出力が
0なら0、1ならば1を示す値を格納する。
Next, the operation when a type (A) modem is connected (steps S702 to S705 in FIG. 7)
Will be described. In FIG. 4, the serial port driver detects a change in the signal line CD of the modem 21, and indicates 0 if the output from the signal line CD is 1 and 1 if the output from the signal line CD is 0 in the area of the port 3b in the memory 3. Stores a value.

【0024】アプリケーションからのモデム・コマンド
とモデム・データの出力要求は、第1シリアルポート制
御部4によって、信号線TxDを経由してモデム21に
送られる。モデム21からの入力は、ポート3bの内容
を検出し、ポート3bの内容が0ならコマンド・バッフ
ァ101を経由してモデム・コマンドとしてアプリケー
ションに提供される(ステップS703による処理設
定)。一方、ポート3bの内容が1ならばデータ・バッ
ファ102を経由してモデム・データとしてアプリケー
ションに提供される(ステップS704による処理設
定)。これにより、モデム21が回線に接続していると
きは、モデム21からの入力はモデム・データとしてア
プリケーションに提供され、回線が切断されているとき
はモデム21からの入力はモデム・コマンドとしてアプ
リケーションに提供される。
A request for outputting a modem command and modem data from an application is sent by the first serial port control unit 4 to the modem 21 via the signal line TxD. The input from the modem 21 detects the content of the port 3b, and if the content of the port 3b is 0, it is provided to the application as a modem command via the command buffer 101 (processing setting in step S703). On the other hand, if the content of the port 3b is 1, it is provided to the application as modem data via the data buffer 102 (processing setting in step S704). Thus, when the modem 21 is connected to the line, the input from the modem 21 is provided to the application as modem data, and when the line is disconnected, the input from the modem 21 is transmitted to the application as a modem command. Provided.

【0025】また、モデムがオンライン・モード中に、
エスケープ・コードを送って一時的にコマンド・モード
にしたときは、ポート3bの内容も一時的に0になり、
復帰コマンドを送ってオンライン・モードに戻ったとき
は、ポート3bの内容も1に戻される。なお、この場合
の処理設定については図7のステップS702における
判定が、ポート3bの内容に基づいて行われる(ポート
3bが1ならばデータ通信中である)ことから明らかで
あろう。
Also, while the modem is in the online mode,
When the escape mode is sent to temporarily enter the command mode, the contents of the port 3b are temporarily set to 0,
When returning to the online mode by sending a return command, the contents of the port 3b are also returned to 1. Note that the process setting in this case is apparent from the fact that the determination in step S702 of FIG. 7 is performed based on the contents of the port 3b (if the port 3b is 1, data communication is being performed).

【0026】このようにして、タイプ(A)のモデム2
1を接続した場合でも、モデムがオンライン・モードの
時はモデム・データとして、コマンド・モードの時はモ
デム・コマンドとしてアプリケーションへデータが提供
される。
In this way, the modem 2 of the type (A)
Even when 1 is connected, data is provided to the application as modem data when the modem is in the online mode and as a modem command when in the command mode.

【0027】以上説明したように、本発明の第1の実施
形態にかかる通信制御装置によれば、タイプ(A)とタ
イプ(B)のいずれのタイプのモデムも制御可能な、共
通のインターフェースをアプリケーションに提供でき
る。
As described above, according to the communication control apparatus according to the first embodiment of the present invention, a common interface capable of controlling both types (A) and (B) of a modem is provided. Can be provided to the application.

【0028】[第2の実施形態]本発明の第2の実施形
態では、単一のシリアルポートを有し、信号線CDが無
いモデムを動作させる通信制御装置を提供する。図5お
よび図6は、タイプ(A)のモデムであって信号線CD
が無い場合の本実施形態に係る通信制御装置の構成とそ
の動作を示す図である。図5において、第1シリアルポ
ート制御部4とモデム21’は信号線RxDとTxDで
接続されている。本実施形態に係るモデム21’は、回
線接続時に“CONNECT”という文字列を第1シリアルポ
ート制御部4に送り、回線が切断されたときは“NO CAR
RIER”という文字列を第1シリアルポート制御部4に送
る。
[Second Embodiment] In a second embodiment of the present invention, there is provided a communication control device having a single serial port and operating a modem having no signal line CD. FIGS. 5 and 6 show a type (A) modem and a signal line CD.
FIG. 3 is a diagram showing a configuration and an operation of the communication control device according to the present embodiment when there is no data. In FIG. 5, the first serial port control unit 4 and the modem 21 'are connected by signal lines RxD and TxD. The modem 21 ′ according to the present embodiment sends a character string “CONNECT” to the first serial port control unit 4 when a line is connected, and “NO CAR” when the line is disconnected.
The character string “RIER” is sent to the first serial port control unit 4.

【0029】図6は、メモリ3のタイプ3aの値が単一
のシリアルポートを有するモデムを示している場合のシ
リアルポート・ドライバの動作を説明する図である。ア
プリケーションからのモデム・コマンドとモデム・デー
タの出力要求に対する動作は、第1の実施形態で説明し
たものと同じである。一方、モデム21’から通信制御
装置1にデータ入力するときの動作が、第1の実施形態
で説明したものと異なる。モデム21’から通信制御装
置への入力は、第1シリアルポート制御部4に送られ、
入力データが“CONNECT”か“NO CARRIER”に一致する
かが検査される。“CONNECT”と一致すればポート3b
には1が、“NO CARRIER”と一致すればポート3bには
0が格納される。そして、ポート3bの内容が1であれ
ばデータ・バッファ102を経由してモデム・データと
してアプリケーションに提供され、ポート3bの内容が
0であればコマンド・バッファ101を経由してコマン
ド・データとしてアプリケーションに提供される。
FIG. 6 is a diagram for explaining the operation of the serial port driver when the value of the type 3a of the memory 3 indicates a modem having a single serial port. The operation in response to a request for outputting a modem command and modem data from an application is the same as that described in the first embodiment. On the other hand, the operation when data is input from the modem 21 'to the communication control device 1 is different from that described in the first embodiment. An input from the modem 21 ′ to the communication control device is sent to the first serial port control unit 4,
It is checked whether the input data matches "CONNECT" or "NO CARRIER". Port 3b if it matches "CONNECT"
Is stored in the port 3b if it matches "NO CARRIER". If the content of the port 3b is 1, it is provided to the application as modem data via the data buffer 102, and if the content of the port 3b is 0, the application is provided as command data via the command buffer 101. Provided to

【0030】なお、タイプ3aの値が、シリアルポート
2個でコンピュータと接続されるタイプ(B)のモデム
であるときのシリアルポート・ドライバの動作は、第1
の実施形態で説明したものと同じである。
The operation of the serial port driver when the value of type 3a is a type (B) modem connected to a computer through two serial ports is as follows.
This is the same as that described in the embodiment.

【0031】また、第1の実施形態で説明したものと同
様に、モデムがオンライン・モード中に、通信制御装置
からエスケープ・コードを送って一時的にコマンド・モ
ードになったときは、ポートも一時的に0になり、復帰
コマンドを送ってオンライン・モードに戻ったときはポ
ートも1に戻される。
Similarly to the case described in the first embodiment, when the modem temporarily enters the command mode by sending an escape code from the communication control device while the modem is in the online mode, the port is also changed to the command mode. It temporarily goes to 0, and when returning to online mode by sending a return command, the port is also returned to 1.

【0032】このようにして、モデムがオンライン・モ
ードの時はモデム・データに、コマンド・モードの時は
モデム・コマンドに入力データが送られる。
In this way, when the modem is in the online mode, the input data is sent to the modem data, and when the modem is in the command mode, the input data is sent to the modem command.

【0033】以上説明したように、本発明の第2の実施
形態にかかる通信制御装置によれば、信号線CDを備え
ない場合でも、タイプ(A)とタイプ(B)のいずれの
タイプのモデムも制御可能な、共通のアプリケーション
を提供できる。
As described above, according to the communication control apparatus according to the second embodiment of the present invention, even if no signal line CD is provided, either type (A) or type (B) modem Can also provide a common application that can be controlled.

【0034】なお、本発明は、複数の機器(例えばホス
トコンピュータ、インタフェイス機器、リーダ、プリン
タなど)から構成されるシステムに適用しても、一つの
機器からなる装置(例えば、複写機、ファクシミリ装置
など)に適用してもよい。
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but can be applied to a single device (for example, a copier, a facsimile). Device).

【0035】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納された
プログラムコードを読み出し実行することによっても、
達成されることは言うまでもない。この場合、記憶媒体
から読み出されたプログラムコード自体が前述した実施
形態の機能を実現することになり、そのプログラムコー
ドを記憶した記憶媒体は本発明を構成することになる。
また、コンピュータが読み出したプログラムコードを実
行することにより、前述した実施形態の機能が実現され
るだけでなく、そのプログラムコードの指示に基づき、
コンピュータ上で稼働しているオペレーティングシステ
ム(OS)などが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
An object of the present invention is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer (a computer) of the system or the apparatus. Or a CPU or MPU) reads out and executes the program code stored in the storage medium,
Needless to say, this is achieved. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
In addition, by the computer executing the readout program code, not only the functions of the above-described embodiments are realized, but also based on the instructions of the program code,
The operating system (OS) running on the computer performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

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

【0037】[0037]

【発明の効果】以上説明したように、本発明によれば、
アプリケーションがモデムのタイプを意識せずにモデム
を使用することが可能となる。
As described above, according to the present invention,
The application can use the modem without being aware of the type of the modem.

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

【図1】第1の実施形態にかかる通信制御装置にタイプ
(B)のモデムを接続した場合の構成を表すブロック図
である。
FIG. 1 is a block diagram illustrating a configuration when a type (B) modem is connected to a communication control device according to a first embodiment.

【図2】第1の実施形態にかかる通信制御装置にタイプ
(A)のモデムを接続した場合の構成を表すブロック図
である。
FIG. 2 is a block diagram illustrating a configuration in a case where a type (A) modem is connected to the communication control device according to the first embodiment;

【図3】タイプ(B)のモデムを接続した場合の、本通
信制御装置のシリアルポート・ドライバの動作を示す図
である。
FIG. 3 is a diagram showing an operation of a serial port driver of the communication control device when a type (B) modem is connected.

【図4】タイプ(A)のモデムを接続した場合の、本通
信制御装置のシリアルポート・ドライバの動作を示す図
である。
FIG. 4 is a diagram showing an operation of a serial port driver of the communication control device when a type (A) modem is connected.

【図5】第2の実施形態にかかる通信制御装置にタイプ
(A)のモデムを接続し、このモデムに信号線CDが無
い場合の構成を表すブロック図である。
FIG. 5 is a block diagram illustrating a configuration in which a type (A) modem is connected to the communication control device according to the second embodiment, and the modem has no signal line CD.

【図6】タイプ(A)のモデムに信号線CDが無い場合
の、本通信制御装置のシリアルポート・ドライバの動作
を示す図である。
FIG. 6 is a diagram showing the operation of the serial port driver of the communication control device when the type (A) modem does not have the signal line CD.

【図7】本発明の実施形態にかかる通信制御装置におけ
る処理の流れを表したフローチャートである。
FIG. 7 is a flowchart illustrating a flow of a process in the communication control device according to the embodiment of the present invention.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 モデムと接続可能な複数のポートを有す
る通信制御装置であって、 接続されたモデムが単一のポートを有する第1タイプの
モデムか複数ポートを有する第2タイプのモデムかを判
断する第1判断手段と、 前記第1判断手段により前記モデムが前記第1タイプで
あると判断された場合、前記モデムがデータ通信中か否
かを判断する第2判断手段と、 前記第1判断手段で、前記モデムが前記第2のタイプで
あると判断された場合に前記モデムによる通信データと
制御データの通信をそれぞれ異なるポートを介して行う
第1通信制御手段と、 前記第2判断手段で前記モデムがデータ通信中でないと
判断された場合に前記モデムを介して受信したデータを
制御データとして扱い、データ通信中であると判断され
た場合は該モデムを介して受信したデータを通信データ
として扱う第2通信制御手段とを備えることを特徴とす
る通信制御装置。
1. A communication control device having a plurality of ports connectable to a modem, wherein the connected modem is a first type modem having a single port or a second type modem having a plurality of ports. First judging means for judging; second judging means for judging whether or not the modem is in data communication when the first judging means judges that the modem is the first type; First communication control means for performing communication of communication data and control data by the modem through different ports when the determination means determines that the modem is the second type; and the second determination means In the case where it is determined that the modem is not performing data communication, the data received via the modem is treated as control data. A communication control device, characterized in that it comprises a second communication control means for handling the received data as the communication data Te.
【請求項2】 前記第1判断手段は、前記モデムが前記
第1タイプか前記第2タイプかを示す情報を記憶するメ
モリを有し、該メモリの情報に基づいて該第1タイプか
第2のタイプかを判断することを特徴とする請求項1記
載の通信制御装置。
2. The first judging means has a memory for storing information indicating whether the modem is the first type or the second type. Based on the information in the memory, the first judging means has the first type or the second type. 2. The communication control device according to claim 1, wherein the communication control device determines whether the communication control device is of the type.
【請求項3】 前記第2判断手段は、前記ポートに設け
られた、前記通信データおよび制御データの通信のため
の信号線とは別の情報信号線からの情報に基づき、前記
モデムがデータ通信中か否かを判断することを特徴とす
る請求項1に記載の通信制御装置。
3. The modem according to claim 2, wherein said second judging means performs data communication based on information from an information signal line provided in said port and different from a signal line for communication of said communication data and control data. The communication control device according to claim 1, wherein it is determined whether or not the communication is in progress.
【請求項4】 前記第2判断手段は、前記ポートの前記
通信データおよび制御データの通信のための信号線を介
して前記モデムから入力される情報に基づき、該モデム
がデータ通信中か否かを判断することを特徴とする請求
項1に記載の通信制御装置。
4. The system according to claim 1, wherein the second determining unit is configured to determine whether the modem is performing data communication based on information input from the modem via a signal line for communication of the communication data and control data of the port. The communication control device according to claim 1, wherein:
【請求項5】 モデムと接続可能な複数のポートを有す
る通信制御方法であって、 接続されたモデムが単一のポートを有する第1タイプの
モデムか複数ポートを有する第2タイプのモデムかを判
断する第1判断工程と、 前記第1判断工程により前記モデムが前記第1タイプで
あると判断された場合、前記モデムがデータ通信中か否
かを判断する第2判断工程と、 前記第1判断工程で、前記モデムが前記第2のタイプで
あると判断された場合に前記モデムによる通信データと
制御データの通信をそれぞれ異なるポートを介して行う
第1通信制御工程と、 前記第2判断工程で前記モデムがデータ通信中でないと
判断された場合に前記モデムを介して受信したデータを
制御データとして扱い、データ通信中であると判断され
た場合は該モデムを介して受信したデータを通信データ
として扱う第2通信制御工程とを備えることを特徴とす
る通信制御方法。
5. A communication control method having a plurality of ports connectable to a modem, wherein the connected modem is a first type modem having a single port or a second type modem having a plurality of ports. A first determining step of determining; if the first determining step determines that the modem is of the first type, a second determining step of determining whether the modem is performing data communication; A first communication control step of performing communication of communication data and control data by the modem through different ports when the modem is determined to be of the second type in the determining step; In the case where it is determined that the modem is not performing data communication, the data received via the modem is treated as control data. Communication control method characterized in that it comprises a second communication control step of handling the received data as the communication data Te.
【請求項6】 前記第1判断工程は、前記モデムが前記
第1タイプか前記第2タイプかを示す情報を記憶するメ
モリを有し、該メモリの情報に基づいて該第1タイプか
第2のタイプかを判断することを特徴とする請求項5記
載の通信制御方法。
6. The first determining step includes a memory for storing information indicating whether the modem is the first type or the second type, based on the information in the memory. 6. The communication control method according to claim 5, wherein the type of the communication control is determined.
【請求項7】 前記第2判断工程は、前記ポートに設け
られた、前記通信データおよび制御データの通信のため
の信号線とは別の情報信号線からの情報に基づき、前記
モデムがデータ通信中か否かを判断することを特徴とす
る請求項5に記載の通信制御方法。
7. The modem according to claim 2, wherein the second judging step is a step in which the modem performs data communication based on information from an information signal line provided in the port and different from a signal line for communication of the communication data and control data. The communication control method according to claim 5, wherein it is determined whether or not the communication is in progress.
【請求項8】 前記第2判断工程は、前記ポートの前記
通信データおよび制御データの通信のための信号線を介
して前記モデムから入力される情報に基づき、該モデム
がデータ通信中か否かを判断することを特徴とする請求
項5に記載の通信制御方法。
8. The second determining step is based on information input from the modem via a signal line for communication of the communication data and control data of the port, and determines whether the modem is performing data communication. The communication control method according to claim 5, wherein:
【請求項9】 請求項5乃至8のいずれかに記載の通信
制御方法をコンピュータにより実現させるための制御プ
ログラムを格納する記憶媒体。
9. A storage medium for storing a control program for causing a computer to implement the communication control method according to claim 5.
JP2000132731A 2000-05-01 2000-05-01 Communication control device and method Withdrawn JP2001313690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000132731A JP2001313690A (en) 2000-05-01 2000-05-01 Communication control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000132731A JP2001313690A (en) 2000-05-01 2000-05-01 Communication control device and method

Publications (1)

Publication Number Publication Date
JP2001313690A true JP2001313690A (en) 2001-11-09

Family

ID=18641367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000132731A Withdrawn JP2001313690A (en) 2000-05-01 2000-05-01 Communication control device and method

Country Status (1)

Country Link
JP (1) JP2001313690A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036435A (en) * 2005-07-25 2007-02-08 Hitachi Communication Technologies Ltd Modem control method
US7765414B2 (en) 2002-08-15 2010-07-27 Htc Corporation Circuit and operating method for integrated interface of PDA and wireless communication system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7765414B2 (en) 2002-08-15 2010-07-27 Htc Corporation Circuit and operating method for integrated interface of PDA and wireless communication system
US7925904B2 (en) 2002-08-15 2011-04-12 Htc Corporation Circuit and operating method for integrated interface of PDA and wireless communication system
US8417977B2 (en) 2002-08-15 2013-04-09 Htc Corporation Operating method for integrated interface of PDA and wireless communication system
JP2007036435A (en) * 2005-07-25 2007-02-08 Hitachi Communication Technologies Ltd Modem control method

Similar Documents

Publication Publication Date Title
WO2004029814A2 (en) Interface integrated circuit device for a usb connection
KR100285956B1 (en) Apparatus and method for controlling synchronous and asynchronous devices connected to high speed serial bus
JPH07114456A (en) Automatic operation device of computer operation terminal device
US20040243755A1 (en) USB apparatus having dual-function of host and hub, and control method thereof
US6058440A (en) Programmable and adaptive resource allocation device and resource use recorder
JP2001313690A (en) Communication control device and method
US6216176B1 (en) Method of passing right to use input/output port between softwares
US6700887B1 (en) Packet transfer apparatus which generates access reject command during a DMA transfer
JP3750467B2 (en) USB simulation apparatus and storage medium
US20050138236A1 (en) Direct memory access control device and method for automatically updating data transmisson size from peripheral
JP4793798B2 (en) Microcomputer
JP2002176456A (en) Electronic device and information update method
JP2002055887A (en) Transmission controller, transmission control method, information processor and information recording medium
JP2000155738A (en) Data processing device
JP2639248B2 (en) Communication interface device
JP3304895B2 (en) Method and apparatus for connecting auxiliary recording device
KR100190706B1 (en) Method for transmitting command between main board and motor control boarder
KR20020090024A (en) Downloading method of contents via communication network and apparatus thereof
JP3111448B2 (en) Composite device
JP3068701U (en) Printer device
JP2948380B2 (en) Data communication device
JPH04148344A (en) Rom emulator
KR0174979B1 (en) System having interface function between different central processing units and control method thereof
KR920008604A (en) Interface circuit between PC and peripheral device
JP2002024152A (en) Device and method for transferring data

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: 20070703