JP2000284977A - Port connection controller - Google Patents

Port connection controller

Info

Publication number
JP2000284977A
JP2000284977A JP11087640A JP8764099A JP2000284977A JP 2000284977 A JP2000284977 A JP 2000284977A JP 11087640 A JP11087640 A JP 11087640A JP 8764099 A JP8764099 A JP 8764099A JP 2000284977 A JP2000284977 A JP 2000284977A
Authority
JP
Japan
Prior art keywords
request
port
application
queue
control unit
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.)
Granted
Application number
JP11087640A
Other languages
Japanese (ja)
Other versions
JP3521797B2 (en
Inventor
Atsushi Misumi
淳 三角
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP08764099A priority Critical patent/JP3521797B2/en
Publication of JP2000284977A publication Critical patent/JP2000284977A/en
Application granted granted Critical
Publication of JP3521797B2 publication Critical patent/JP3521797B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain multi-data transfer by performing access form other application to a port even when the exclusive control of the port is operated for each application. SOLUTION: This device is provide width a non-port event controlling part 32 separately from a port event controlling part 17 which operates information transmission and reception with a USB device by relating an application with a USB port for operating exclusive control. In this case, the non-port event controlling part 32 directly performs the access of an event from the application to a pipe 34 exclusive for request transmission and a pipe 33 exclusive for request result reception without relating the application with the port.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はポートを介して接続
された機器等との通信制御を行うポート接続制御装置に
係わり、詳細には複数のアプリケーションからポート経
由でこれら機器等のデバイス情報のアクセスを制御する
ポート接続制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a port connection control device for controlling communication with devices and the like connected via ports, and more particularly to access to device information of these devices and the like from a plurality of applications via ports. To a port connection control device that controls

【0002】[0002]

【従来の技術】従来、パーソナルコンピュータ等のホス
トに通信装置等の周辺機器とポートを介して接続されて
いるものがある。この場合、ホストはポート接続制御装
置として、ポートを介して接続された機器等との通信制
御を行うことで、接続された周辺機器との間で通信情報
の送受信を行う。このようなポート接続制御装置と周辺
機器との接続技術に関して代表的なものに、米国電子工
業会(Electronic Industries Alliance:EIA)によ
って制定されたシリアルインタフェース規格であるRS
−232C(Recommended Standard 232C)がある。
2. Description of the Related Art Conventionally, there is a type in which a host such as a personal computer is connected to a peripheral device such as a communication device via a port. In this case, the host transmits and receives communication information to and from connected peripheral devices by controlling communication with devices and the like connected via the port as a port connection control device. A typical example of the connection technology between the port connection control device and the peripheral device is RS, which is a serial interface standard established by the Electronic Industries Alliance (EIA).
-232C (Recommended Standard 232C).

【0003】近年、ホストの集積化技術の進歩等による
中央処理装置(Central ProcessingUnit:以下、CPU
と略す。)やメモリなどの半導体デバイスの高速化が著
しい。これにともない、ホストの処理内容や周辺機器と
の通信内容が複雑高度化かつ大容量化している。このよ
うな状況では、もはや規格上の最大転送速度が19.2
キロビット毎秒(kbps)のRS−232Cは、周辺
機器との通信容量の点でボトルネックとなっている。そ
こで、新たなシリアルインタフェース規格として最大転
送速度12メガビット毎秒(Mbps)のユニバーサル
シリアルバス(Universal Serial Bus:以下、USBと
略す。)が提案されている。
In recent years, central processing units (hereinafter referred to as CPUs) have been developed due to advances in host integration technology and the like.
Abbreviated. ) And semiconductor devices such as memories have been significantly increased in speed. Along with this, the processing contents of the host and the contents of communication with peripheral devices are becoming more sophisticated and larger in capacity. In such a situation, the standard maximum transfer rate is no longer 19.2.
RS-232C at kilobits per second (kbps) is a bottleneck in terms of communication capacity with peripheral devices. Therefore, a Universal Serial Bus (hereinafter abbreviated as USB) with a maximum transfer rate of 12 megabits per second (Mbps) has been proposed as a new serial interface standard.

【0004】このUSBは、転送帯域を予め確保するこ
とでデータの遅延を回避してリアルタイム性が要求され
る音声や映像情報を転送するアイソクロナス転送や、大
量のデータを送るが転送帯域の確保が不要でデータ損失
が許されないようなモデムやターミナルアダプタ(Term
inal Adapter:以下、TAと略す。)などの通信情報を
転送するバルク転送など種々の転送方式が採用されてお
り、ホストとマルチメディア情報向けの周辺機器等との
接続方式に好適とされている。
[0004] In the USB, an isochronous transfer for transferring audio and video information which requires real-time performance by avoiding data delay by securing a transfer band in advance, and a large amount of data are sent, but the transfer band is secured. Modems and terminal adapters (Term
inal Adapter: hereinafter abbreviated as TA. ), And various transfer methods such as bulk transfer for transferring communication information are adopted, and are suitable for a connection method between a host and peripheral devices for multimedia information.

【0005】図7は従来のポート接続制御装置が適用さ
れた情報処理システムの構成の概要を表わしたものであ
る。この情報処理システムでは、ポート接続制御装置1
0とUSBデバイス11がUSBケーブル12を介して
接続されている。ポート接続制御装置10では、図示し
ないメモリに格納された第1および第2のアプリケーシ
ョン131、132が、図示しないCPUによって実行処
理されるようになっている。これら第1および第2のア
プリケーション131、132は、それぞれのアプリケー
ション実行時に、このポート接続制御装置10に接続さ
れたUSBデバイス11に対してアクセスを行う。この
アクセスとしては、USBデバイス11へのリクエスト
に応じて、USBデバイス11への情報転送やUSBデ
バイス11からの情報取得などがある。
FIG. 7 schematically shows the configuration of an information processing system to which a conventional port connection control device is applied. In this information processing system, the port connection control device 1
0 and a USB device 11 are connected via a USB cable 12. In the port connection control device 10, the first and second applications 13 1 and 13 2 stored in a memory (not shown) are executed by a CPU (not shown). The first and second applications 13 1 and 13 2 access the USB device 11 connected to the port connection control device 10 when executing the respective applications. The access includes information transfer to the USB device 11 and information acquisition from the USB device 11 in response to a request to the USB device 11.

【0006】USBデバイス11へのアクセスは、第1
および第2のアプリケーション13 1、132それぞれか
らイベントの形態でリクエストが送出され、USBデバ
イス制御部14に入力される。USBデバイス制御部1
4は、USBホストコントローラ制御部15を介してU
SBポート16の制御を行うようになっており、このU
SBポート16にはUSBケーブル12が接続されてい
る。USBデバイス制御部14は、ポートイベント制御
部17を備えており、第1および第2のアプリケーショ
ン131、132それぞれからのイベントやUSBケーブ
ル12を介してUSBデバイス11から入力されたリク
エスト結果を内容ごとに振り分けて、各アプリケーショ
ンとUSBデバイス11との間でデータ送受信を制御す
る。
[0006] Access to the USB device 11 is based on the first
And the second application 13 1, 13TwoEach
Request is sent in the form of an event from the USB device.
It is input to the chair control unit 14. USB device control unit 1
4 is transmitted via the USB host controller control unit 15 to U
The control of the SB port 16 is performed.
The USB cable 12 is connected to the SB port 16.
You. The USB device control unit 14 performs port event control
A first and a second application;
131, 13TwoEvents and USB cables from each
Request input from the USB device 11 via the
Sort the quest results by content, and
Control data transmission and reception between the USB device 11 and the USB device 11.
You.

【0007】USBデバイス11は、USBポート18
と、USB制御部19と、メモリ20とを備えている。
USBポート18は、USBケーブル12に接続されて
いる。USB制御部19は、ポート接続制御装置10か
ら送信されたアプリケーションのリクエストをUSBポ
ート18経由で受信し、そのリクエストに応じてメモリ
20に蓄積された情報の送受信制御をUSBポート18
との間で行う。メモリ20には、図示しないUSBデバ
イス実行部によって処理された結果が格納される。例え
ばUSBデバイス11がTAである場合、着信情報がデ
バイス情報として順次格納される。
The USB device 11 has a USB port 18
, A USB control unit 19 and a memory 20.
The USB port 18 is connected to the USB cable 12. The USB control unit 19 receives an application request transmitted from the port connection control device 10 via the USB port 18 and controls transmission and reception of information stored in the memory 20 in response to the request.
Do between. The memory 20 stores a result processed by a USB device execution unit (not shown). For example, when the USB device 11 is a TA, incoming information is sequentially stored as device information.

【0008】上述したようにUSBデバイス11のデバ
イス情報は、ポート接続制御装置10で処理される第1
および第2のアプリケーション131、132からのイベ
ントによってアクセスされる。これらイベントはUSB
デバイス制御部14によって管理される。
As described above, the device information of the USB device 11 is stored in the first
And an event from the second application 13 1 , 13 2 . These events are USB
It is managed by the device control unit 14.

【0009】図8は図7に示したUSBデバイス制御部
14の構成要部を表わしたものである。ただし、図7に
示したポート接続制御装置と同一部分には同一符号を付
している。USBデバイス制御部14は、上述したポー
トイベント制御部17と、リクエスト結果受信専用パイ
プ21と、リクエスト送信専用パイプ22と、データキ
ューである通信データ受信専用パイプ23と通信データ
送信専用パイプ24とを備えている。ポートイベント制
御部17は、各アプリケーションからイベントが入力さ
れると、そのイベントがUSBデバイス11への制御用
リクエストコマンドであるか、あるいはUSBデバイス
11に対する通信データ送受用イベントであるかの判別
を行う。入力されたイベントが制御用リクエストである
と判別されたときには、そのリクエストコマンドをリク
エスト送信専用パイプ22に渡す。一方、入力されたイ
ベントが通信データ送受用イベントであると判別された
ときには、そのリクエストが通信データ送信リクエスト
の場合は通信データ送信専用パイプ24にそのデータを
渡し、通信データ受信リクエストの場合はリクエスト結
果受信専用パイプ21からデータを受信データとして取
得する。USBデバイス11との間でUSBポートを介
して情報送受を行うUSBホストコントローラ制御部1
5の制御内容に応じて、順次これらのパイプからUSB
ホストコントローラ制御部15との間でリクエストある
いは通信データの受け渡しを行う。
FIG. 8 shows the main components of the USB device control unit 14 shown in FIG. However, the same parts as those of the port connection control device shown in FIG. 7 are denoted by the same reference numerals. The USB device control unit 14 includes the port event control unit 17, the request result reception dedicated pipe 21, the request transmission dedicated pipe 22, and the communication data reception dedicated pipe 23 and the communication data transmission dedicated pipe 24 which are data queues. Have. When an event is input from each application, the port event control unit 17 determines whether the event is a control request command for the USB device 11 or a communication data transmission / reception event for the USB device 11. . When it is determined that the input event is a control request, the request command is passed to the request transmission dedicated pipe 22. On the other hand, when it is determined that the input event is a communication data transmission / reception event, if the request is a communication data transmission request, the data is passed to the communication data transmission dedicated pipe 24, and if the request is a communication data reception request, the request is transmitted. The data is obtained as reception data from the result reception dedicated pipe 21. USB host controller control unit 1 for transmitting / receiving information to / from USB device 11 via a USB port
5 sequentially from these pipes according to the control contents of 5
A request or communication data is exchanged with the host controller control unit 15.

【0010】また、USBデバイス制御部14は、US
Bデバイス11から情報を受信したときには、USBポ
ート16およびUSBホストコントローラ制御部15を
介してこれを受信する。そしてこの情報が入力される
と、USBデバイス制御部14は、アプリケーションに
よって発行されたイベントに対する応答データである
か、あるいはUSBデバイス11からの受信用通信デー
タであるかの判別を行う。入力された受信情報がアプリ
ケーションによって発行されたイベントに対する応答デ
ータであると判別されたときには、その応答データをリ
クエスト結果受信専用パイプ21に渡す。一方、入力さ
れた受信情報がUSBデバイス11からの受信用通信デ
ータであると判別されたときには、通信データ受信専用
パイプ23にそのデータを渡す。
Also, the USB device control unit 14
When information is received from the B device 11, it is received via the USB port 16 and the USB host controller control unit 15. When this information is input, the USB device control unit 14 determines whether the data is response data to an event issued by the application or communication data for reception from the USB device 11. When the input reception information is determined to be response data to the event issued by the application, the response data is passed to the request result reception dedicated pipe 21. On the other hand, when it is determined that the input reception information is communication data for reception from the USB device 11, the data is transferred to the communication data reception dedicated pipe 23.

【0011】ポートイベント制御部17は、上述したよ
うにアプリケーションからの各イベントに対応して、各
送信専用パイプに振り分けるとともに、各受信専用パイ
プに格納された受信データを取り出してそのイベントを
発行したアプリケーションごとにその内容を引き渡す。
これによりポート接続制御装置10で実行される各アプ
リケーションとUSBポート16を介して接続されたU
SBデバイス11との間の情報送受を行う。
As described above, the port event control unit 17 allocates each event from the application to each dedicated transmission pipe, extracts the received data stored in each dedicated reception pipe, and issues the event. Deliver the content for each application.
As a result, each application executed by the port connection control device 10 is connected to the U connected via the USB port 16.
It transmits and receives information to and from the SB device 11.

【0012】[0012]

【発明が解決しようとする課題】このようなポート接続
制御装置は、オペレーティングシステム(Operating Sy
stem:以下、OSと略す。)と呼ばれる基本プログラム
によって、ユーザの各アプリケーションのデータやハー
ドウェア等の資源管理が行われる場合がある。このよう
なOSには、ポート接続制御用のライブラリが予め搭載
されている。通常、これらポート接続制御装置における
上述したようなポート接続制御にはこれらライブラリを
用いることで、開発工数の省略および信頼性の向上、互
換性の維持を図っている。このようなOSに用意されて
いるポート接続制御用ライブラリでは、USBポートを
仮想的にシリアル通信用に設けられたCOM(Communic
ation)ポートに見せて、アプリケーションごとにこの
COMポートを割り当てている。すなわち、COMポー
トが複数のアプリケーションに割り当てられないように
する。
[0005] Such a port connection control device is provided with an operating system (Operating System).
stem: Hereinafter, abbreviated as OS. ) May manage resources such as data and hardware of each application of the user. Such an OS is provided with a port connection control library in advance. Usually, these libraries are used for the port connection control as described above in these port connection control devices, so that development man-hours are reduced, reliability is improved, and compatibility is maintained. In a port connection control library prepared in such an OS, a COM (Communic
ation), the COM port is assigned to each application. That is, the COM port is not assigned to a plurality of applications.

【0013】図9はこのように一般的なOSでアプリケ
ーションごとにCOMポートが割り当てられている様子
をあらわしたものである。すなわち、各COMポートを
識別するためのポート番号25と、アプリケーション2
6とが1対1に対応付けられて登録されたテーブルが設
けられている。このようなテーブルを参照することによ
り、アクセス対象となるある特定のデバイスに対して、
複数のアプリケーションからアクセスされることを防止
して排他制御を行うことができる。図7に示したポート
接続制御装置10では、一般的にこのようなOSによっ
て用意されたポート接続制御用ライブラリによるポート
接続制御は、ポートイベント制御部17において行われ
ている。
FIG. 9 shows a state in which COM ports are assigned to respective applications in a general OS. That is, the port number 25 for identifying each COM port and the application 2
6 is registered in a one-to-one correspondence. By referring to such a table, for a specific device to be accessed,
Exclusive control can be performed while preventing access from a plurality of applications. In the port connection control device 10 shown in FIG. 7, the port connection control by the port connection control library prepared by such an OS is generally performed by the port event control unit 17.

【0014】したがって、従来のポート接続制御装置で
は通信を行う前には必ずCOMポートに対して“オープ
ン”処理を行って、仮想的にCOMポートと見なしてい
るUSBポートに接続されている各USBデバイスへの
アクセスを行っていた。すなわち、例えばUSBデバイ
スであるTAに対して仮想的なポートと見なしているC
OMポートをオープンして通信データの送受をしている
最中に、別のアプリケーションによってこのTAからの
着信情報を収集するといったデバイス情報の取得を行う
ことができなかった。これは、互換性や開発期間の短縮
のためOSの共通ライブラリなどを使用せざるを得ない
制約のもとでは、上述したマルチデータ転送を可能とす
るUSBの特徴を生かしきれないという問題があること
を意味する。
Therefore, the conventional port connection control device always performs an "open" process on the COM port before performing communication, and executes a "open" process on each of the USB ports virtually connected to the USB port regarded as the COM port. Access to the device. That is, for example, C which is regarded as a virtual port for TA which is a USB device
While transmitting and receiving communication data by opening the OM port, it was not possible to obtain device information such as collecting incoming information from the TA by another application. This has a problem that the above-mentioned feature of USB that enables multi-data transfer cannot be fully utilized under the constraint that a common library or the like of the OS must be used for compatibility and shortening the development period. Means that.

【0015】そこで本発明の目的は、アプリケーション
ごとにポートの排他制御が行われていても、別のアプリ
ケーションからこのポートをアクセスできるようにする
ことでマルチデータ転送を可能とするポート接続制御装
置を提供することにある。
Accordingly, an object of the present invention is to provide a port connection control device that enables multi-data transfer by allowing another application to access this port even if exclusive control of the port is performed for each application. To provide.

【0016】[0016]

【課題を解決するための手段】請求項1記載の発明で
は、(イ)それぞれ周辺デバイスが接続されている1ま
たは複数のポートと、(ロ)アプリケーションから周辺
デバイスそれぞれに対してデータの送信を要求するリク
エストをキューイングするリクエストキューと、(ハ)
リクエストに対応して周辺デバイスそれぞれから送信さ
れたリクエスト結果をキューイングするリクエスト結果
キューと、(ニ)アプリケーションごとにポートのいず
れかを対応付けることによって各アプリケーションにポ
ートを占有させこれらに接続されている周辺デバイスに
対するアプリケーションからの第1のリクエストをリク
エストキューにキューイングさせるとともにこの第1の
リクエストに対応してリクエスト結果キューにキューイ
ングされたリクエスト結果をアプリケーションに対して
通知するポートイベント制御手段と、(ホ)第1のリク
エストを送信したアプリケーションとは異なる別のアプ
リケーションからの周辺デバイスに対する第2のリクエ
ストをリクエストキューにキューイングさせるとともに
この第2のリクエストに対応してリクエスト結果キュー
にキューイングされたリクエスト結果を別のアプリケー
ションに対して通知する非ポートイベント制御手段と、
(ヘ)ポートイベント制御手段によってアプリケーショ
ンごとに対応付けられたポートを占有して周辺デバイス
とリクエストキューおよびリクエスト結果キューとの間
で第1および第2のリクエストおよびこれらに対応する
リクエスト結果を送受信するポート制御手段とをポート
接続制御装置に具備させる。
According to the first aspect of the present invention, (a) one or more ports to which each peripheral device is connected, and (b) data transmission from the application to each peripheral device. A request queue for queuing the requested request, and (c)
A request result queue for queuing the request result transmitted from each of the peripheral devices in response to the request, and (d) each application occupying a port by associating one of the ports with each application, and connected to these. Port event control means for queuing a first request from an application to a peripheral device in a request queue and notifying the application of a request result queued in a request result queue in response to the first request; (E) A second request for a peripheral device from another application different from the application that transmitted the first request is queued in a request queue, and the second request is And non-port event control means for notifying the queued request results in response to the request result queue in the fed versus another application,
(F) The port event control means occupies the port associated with each application, and transmits and receives the first and second requests and the corresponding request results between the peripheral device and the request queue and request result queue. The port connection control device is provided with the port control means.

【0017】すなわち請求項1記載の発明では、1また
複数のポートそれぞれに接続されている周辺デバイスと
の間で、アプリケーションによって要求されたデータ送
信リクエストをキューイングするリクエストキューと、
このリクエストに対応して周辺デバイスから送信された
リクエスト結果をキューイングするリクエスト結果キュ
ーとを設ける。ポートイベント制御手段でアプリケーシ
ョンごとにこれらポートのいずれかを対応付けることに
よって各アプリケーションにポートを占有させこれらに
接続されている周辺デバイスに対するアプリケーション
からの第1のリクエストをリクエストキューにキューイ
ングさせ、さらにこの第1のリクエストに対応してリク
エスト結果キューにキューイングされたリクエスト結果
をアプリケーションに対して通知させるようにする。ま
た、非ポートイベント制御手段で、第1のリクエストを
送信したアプリケーションとは異なる別のアプリケーシ
ョンからの周辺デバイスに対する第2のリクエストをリ
クエストキューにキューイングさせ、さらにこの第2の
リクエストに対応してリクエスト結果キューにキューイ
ングされたリクエスト結果をこの別のアプリケーション
に対して通知させるようにする。そしてポート制御手段
で、ポートイベント制御手段によってアプリケーション
ごとに対応付けられたポートを占有して周辺デバイスと
リクエストキューおよびリクエスト結果キューとの間で
第1および第2のリクエストおよびこれらに対応するリ
クエスト結果を送受信させるようにした。
That is, according to the first aspect of the present invention, there is provided a request queue for queuing a data transmission request requested by an application between a peripheral device connected to one or a plurality of ports,
A request result queue for queuing a request result transmitted from a peripheral device in response to the request is provided. The port event control means associates any one of these ports for each application, occupies the port for each application, queues a first request from the application to a peripheral device connected thereto to a request queue, The request result queued in the request result queue in response to the first request is notified to the application. The non-port event control means queues a second request for a peripheral device from another application different from the application that transmitted the first request in a request queue, and further responds to the second request. The request result queued in the request result queue is notified to this other application. Then, the port control means occupies the port associated with each application by the port event control means, and the first and second requests and the corresponding request results between the peripheral device and the request queue and the request result queue. Was sent and received.

【0018】請求項2記載の発明では、請求項1記載の
ポート接続制御装置で、非ポートイベント制御手段は第
1のリクエストを送信したアプリケーションとは異なる
複数の別のアプリケーションごとに設けられ、別のアプ
リケーションそれぞれからの周辺デバイスに対する第2
のリクエストをリクエストキューにキューイングさせる
とともにリクエスト結果キューにキューイングされたリ
クエスト結果を複数の別のアプリケーションのうち第2
のリクエストを送信したアプリケーションに対して通知
することを特徴としている。
According to a second aspect of the present invention, in the port connection control device according to the first aspect, the non-port event control means is provided for each of a plurality of different applications different from the application that transmitted the first request. Second for peripheral devices from each of the applications
Request is queued in a request queue and the request result queued in the request result queue is stored in a second one of a plurality of different applications.
The notification is sent to the application that sent the request.

【0019】すなわち請求項2記載の発明では、非ポー
トイベント制御手段を、第1のリクエストを送信したア
プリケーションとは異なる複数の別のアプリケーション
ごとに設け、それぞれ第1のリクエストを送信したアプ
リケーションとは異なる別のアプリケーションそれぞれ
からの周辺デバイスに対する第2のリクエストをリクエ
ストキューにキューイングさせ、リクエスト結果キュー
にキューイングされたリクエスト結果をこの第2のリク
エストを送信したアプリケーションに対して通知させる
ようにした。
That is, according to the second aspect of the present invention, the non-port event control means is provided for each of a plurality of different applications different from the application that transmitted the first request. A second request for a peripheral device from each of different different applications is queued in a request queue, and the result of the request queued in the request result queue is notified to the application that transmitted the second request. .

【0020】請求項3記載の発明では、(イ)それぞれ
周辺デバイスが接続されている1または複数のポート
と、(ロ)周辺デバイスそれぞれに対して情報取得のリ
クエストをキューイングするリクエスト送信キューと、
(ハ)リクエスト送信キューにキューイングされたリク
エストに対応する周辺デバイスそれぞれからのリクエス
ト結果をキューイングするリクエスト結果受信キュー
と、(ニ)周辺デバイスそれぞれとの間の送受信データ
をキューイングする送受信データキューと、(ホ)アプ
リケーションごとにポートのうちのいずれかを排他的に
対応付けることによって各アプリケーションにこの対応
付けられたポートを占有させこれに接続された周辺デバ
イスに対するアプリケーションからのアクセス要求が周
辺デバイスに対する情報取得のリクエストか周辺デバイ
スとの間の通信データ送受信要求であるかを判別する判
別手段と、この判別手段によって周辺デバイスに対する
情報取得のリクエストであると判別されたときにはアク
セス要求をリクエスト送信キューに振り分け、判別手段
によって周辺デバイスとの間の通信データ送受信要求で
あると判別されたときには送受信データキューとアプリ
ケーションとの間で通信データを送受するとともに、リ
クエスト送信キューに振り分けられたアクセス要求に対
応してリクエスト結果受信キューにキューイングされて
いるリクエスト結果をアプリケーションに送信する第1
のリクエスト制御手段とを備えるポートイベント制御手
段と、(ヘ)アクセス要求を行ったアプリケーションと
は異なる別のアプリケーションからの周辺デバイスに対
する情報取得のリクエストをリクエスト送信キューにキ
ューイングさせるとともにこのリクエストに対応してリ
クエスト結果受信キューにキューイングされているリク
エスト結果を別のアプリケーションに送信する非ポート
イベント制御手段と、(ト)ポートイベント制御手段に
よってアプリケーションごとに対応付けられたポートを
占有して周辺デバイスとの間でリクエスト送信キュー、
リクエスト結果受信キューおよび送受信データキューに
キューイングされているリクエストおよびこれらに対応
するリクエスト結果および送受信データを送受信するポ
ート制御手段とをポート接続制御装置に具備させる。
According to the third aspect of the present invention, (a) one or more ports to which peripheral devices are respectively connected, and (b) a request transmission queue for queuing information acquisition requests to each of the peripheral devices. ,
(C) a request result reception queue for queuing a request result from each peripheral device corresponding to the request queued in the request transmission queue; and (d) transmission / reception data for queuing transmission / reception data between each peripheral device. The queue is exclusively associated with one of the ports for each application (e) so that each application occupies the port associated with the application and an access request from the application to a peripheral device connected to the application is transmitted to the peripheral device. Determining whether the request is an information acquisition request to the peripheral device or a request for transmitting and receiving communication data with the peripheral device; and if the determination unit determines that the request is an information acquisition request to the peripheral device, the access request is requested. When the request is determined to be a communication data transmission / reception request with a peripheral device by the determination unit, the communication data is transmitted / received between the transmission / reception data queue and the application, and the access request allocated to the request transmission queue is determined. First, the request result queued in the request result reception queue corresponding to the request is transmitted to the application.
And (f) queue a request for information acquisition for a peripheral device from another application different from the application that made the access request in a request transmission queue and respond to the request. Non-port event control means for transmitting the request results queued in the request result reception queue to another application, and (g) occupying a port associated with each application by the port event control means, and peripheral devices Request send queue between and
The port connection control device is provided with a request queued in the request result reception queue and the transmission / reception data queue and port control means for transmitting / receiving the request result and transmission / reception data corresponding to the requests.

【0021】すなわち請求項3記載の発明では、1また
複数のポートそれぞれに接続されている周辺デバイスと
の間で、ポートに接続された周辺デバイスに対して情報
取得のリクエストをキューイングするリクエスト送信キ
ューと、リクエスト送信キューにキューイングされたリ
クエストに対応する周辺デバイスからのリクエスト結果
をキューイングするリクエスト結果受信キューと、周辺
デバイスとの間の送受信データをキューイングする送受
信データキューとを設けている。そして、ポートイベン
ト制御手段により、アプリケーションごとにこれらポー
トのうちのいずれかを排他的に対応付けることによって
各アプリケーションにこの対応付けられたポートを占有
させ、判別手段によりこれに接続された周辺デバイスに
対するアプリケーションからのアクセス要求が周辺デバ
イスに対する情報取得のリクエストか周辺デバイスとの
間の通信データ送受信要求であるかを判別させ、第1の
リクエスト制御手段で、この判別手段によって周辺デバ
イスに対する情報取得のリクエストであると判別された
ときにはアクセス要求をリクエスト送信キューに振り分
け、判別手段によって周辺デバイスとの間の通信データ
送受信要求であると判別されたときには送受信データキ
ューとアプリケーションとの間で通信データを送受する
とともに、リクエスト送信キューに振り分けられたアク
セス要求に対応してリクエスト結果受信キューにキュー
イングされているリクエスト結果をアプリケーションに
送信するようにしている。また、非ポートイベント制御
手段で、アクセス要求を行ったアプリケーションとは異
なる別のアプリケーションからの周辺デバイスに対する
情報取得のリクエストをリクエスト送信キューにキュー
イングさせるとともにこのリクエストに対応してリクエ
スト結果受信キューにキューイングされているリクエス
ト結果を別のアプリケーションに送信するようにしてい
る。そして、ポート制御手段で、ポートイベント制御手
段によってアプリケーションごとに対応付けられたポー
トを占有して周辺デバイスとの間でリクエスト送信キュ
ー、リクエスト結果受信キューおよび送受信データキュ
ーにキューイングされているリクエストおよびこれらに
対応するリクエスト結果および送受信データを送受信さ
せるようにした。
That is, according to the third aspect of the present invention, a request transmission for queuing an information acquisition request to a peripheral device connected to a port is performed between the peripheral device connected to one or more ports. A queue, a request result reception queue for queuing a request result from a peripheral device corresponding to the request queued in the request transmission queue, and a transmission / reception data queue for queuing transmission / reception data with the peripheral device. I have. Then, the port event control means exclusively associates one of these ports for each application so that each application occupies the associated port, and the determination means applies the application to the peripheral device connected thereto. The first request control means determines whether the access request from the device is a request for information acquisition to the peripheral device or a request for transmission / reception of communication data with the peripheral device. When it is determined that there is a request, the access request is distributed to the request transmission queue, and when it is determined that the request is a communication data transmission / reception request with a peripheral device, the communication data is transmitted / received between the transmission / reception data queue and the application. Rutotomoni, and to transmit a request results in response to the access request that is distributed to the request transmission queue are queued in the request result receiving queue to the application. In addition, the non-port event control means queues a request for information acquisition for the peripheral device from another application different from the application that has made the access request in the request transmission queue, and in the request result reception queue in response to this request. The result of the queued request is sent to another application. The port control means occupies a port associated with each application by the port event control means, and requests that are queued in a request transmission queue, a request result reception queue, and a transmission / reception data queue with a peripheral device. Request results and transmission / reception data corresponding to these are transmitted and received.

【0022】請求項4記載の発明では、請求項3記載の
ポート接続制御装置で、非ポートイベント制御手段はア
クセス要求を行ったアプリケーションとは異なる複数の
別のアプリケーションごとに設けられ、これら別のアプ
リケーションそれぞれからの周辺デバイスに対する情報
取得のリクエストをリクエスト送信キューにキューイン
グさせるとともにこのリクエストに対応してリクエスト
結果受信キューにキューイングされているリクエスト結
果を別のアプリケーションに送信することを特徴として
いる。
According to a fourth aspect of the present invention, in the port connection control device according to the third aspect, the non-port event control means is provided for each of a plurality of different applications different from the application which has made the access request. Requests for information acquisition for peripheral devices from each application are queued in a request transmission queue, and the request results queued in a request result reception queue corresponding to the request are transmitted to another application. .

【0023】すなわち請求項4記載の発明では、アクセ
ス要求を行ったアプリケーションとは異なる複数の別の
アプリケーションごとに非ポートイベント制御手段を設
け、それぞれ各キューの振り分けを行わせるようにして
いる。
In other words, according to the fourth aspect of the present invention, the non-port event control means is provided for each of a plurality of different applications different from the application which made the access request, and each queue is distributed.

【0024】請求項5記載の発明では、請求項1〜請求
項4記載のポート接続制御装置で、ポートはユニバーサ
ルシリアルバスのポートであることを特徴としている。
According to a fifth aspect of the present invention, in the port connection control device according to the first to fourth aspects, the port is a port of a universal serial bus.

【0025】すなわち請求項5記載の発明では、ポート
をユニバーサルシリアルバスのポートにすることで、周
辺デバイスとの間の転送が高速となり、従来のポート接
続制御装置へも容易に適用することができる。
In other words, according to the fifth aspect of the present invention, since the port is a port of the universal serial bus, the transfer to and from the peripheral device can be performed at a high speed, and can be easily applied to a conventional port connection control device. .

【0026】請求項6記載の発明では、請求項5記載の
ポート接続制御装置で、周辺デバイスはターミナルアダ
プタであり、非ポートイベント制御手段における別のア
プリケーションはターミナルアダプタに保存されている
着信情報の取得を要求し取得した着信情報を表示するこ
とを特徴としている。
According to a sixth aspect of the present invention, in the port connection control device according to the fifth aspect, the peripheral device is a terminal adapter, and another application in the non-port event control means is an application for receiving the incoming information stored in the terminal adapter. It is characterized by displaying the incoming call information requested to be obtained.

【0027】すなわち請求項6記載の発明では、ポート
イベント制御手段で従来のようにターミナルアダプタに
接続されているポートを占有して通信データの送受を行
う一方、このターミナルアダプタに保存されている着信
情報を別のアプリケーションによって取得できること
で、リアルタイム性に優れた着信監視を行うことができ
る。
That is, according to the sixth aspect of the present invention, the port event control means occupies the port connected to the terminal adapter as in the prior art to transmit and receive communication data, while receiving the incoming call stored in the terminal adapter. Since the information can be obtained by another application, incoming call monitoring excellent in real time can be performed.

【0028】請求項7記載の発明では、請求項6記載の
ポート接続制御装置で、ポートと周辺デバイスとの間の
通信情報はマルチデータ転送されることを特徴としてい
る。
According to a seventh aspect of the present invention, in the port connection control device of the sixth aspect, communication information between the port and the peripheral device is transferred by multi-data.

【0029】すなわち請求項7記載の発明では、マルチ
データ転送を採用するようにしたので、データ転送の効
率を大幅に向上させることができ、より複雑な通信制御
を可能とする。
That is, in the present invention, since multi-data transfer is adopted, the efficiency of data transfer can be greatly improved, and more complicated communication control can be performed.

【0030】[0030]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

【0031】[0031]

【実施例】以下実施例につき本発明を詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to embodiments.

【0032】図1は本発明の一実施例におけるポート接
続制御装置が適用された情報処理システムの構成の概要
を表わしたものである。ただし、図7に示した従来のポ
ート接続制御装置が適用された情報処理システムと同一
部分には同一符号を付している。本実施例における情報
処理システムでは、ポート接続制御装置30とUSBデ
バイス11が、USBケーブル12を介して接続されて
いる。ポート接続制御装置30では、図示しないメモリ
に格納された第1および第2のアプリケーション1
1、132が、図示しないCPUによって実行処理され
るようになっている。これら第1および第2のアプリケ
ーション131、132は、それぞれのアプリケーション
実行時に、このポート接続制御装置30に接続されたU
SBデバイス11に対してアクセスを行う。このアクセ
スとしては、USBデバイス11へのリクエストに応じ
て、USBデバイス11への情報転送やUSBデバイス
11からの情報取得などがある。USBデバイス11へ
のアクセスは、第1および第2のアプリケーション13
1、132それぞれからイベントの形態でリクエストが送
出され、USBデバイス制御部31に入力される。US
Bデバイス制御部31は、USBホストコントローラ制
御部15を介してUSBポート16の制御を行うように
なっており、このUSBポート16にはUSBケーブル
12が接続されている。
FIG. 1 shows an outline of the configuration of an information processing system to which a port connection control device according to an embodiment of the present invention is applied. However, the same parts as those of the information processing system to which the conventional port connection control device shown in FIG. 7 is applied are denoted by the same reference numerals. In the information processing system according to the present embodiment, the port connection control device 30 and the USB device 11 are connected via the USB cable 12. In the port connection control device 30, the first and second applications 1 stored in a memory (not shown)
3 1, 13 2, and is executed processed by a not-shown CPU. The first and second applications 13 1 and 13 2 are connected to the port connection control device 30 when the respective applications are executed.
The SB device 11 is accessed. The access includes information transfer to the USB device 11 and information acquisition from the USB device 11 in response to a request to the USB device 11. Access to the USB device 11 is performed by the first and second applications 13.
A request is sent from each of the devices 1 and 13 2 in the form of an event, and is input to the USB device control unit 31. US
The B device controller 31 controls the USB port 16 via the USB host controller controller 15, and the USB cable 12 is connected to the USB port 16.

【0033】USBデバイス制御部31は、ポートイベ
ント制御部17と、非ポートイベント制御部32と、リ
クエスト結果受信専用パイプ33と、リクエスト送信専
用パイプ34と、通信データ受信専用パイプ35と、通
信データ送信専用パイプ36とを備えている。ポートイ
ベント制御部17は、従来通り例えばOSによってポー
ト接続制御されている場合に、USBデバイスに接続さ
れているUSBポートを仮想的なCOMポートと見な
し、これとアプリケーションとを関連付けしてUSBデ
バイスに対するリクエストを制御することによって、ア
プリケーションごとにポートの排他制御を行う。非ポー
トイベント制御部32は、各アプリケーションごとに備
えられ、それぞれに対応するアプリケーションからのリ
クエストのみを制御する。ここでは、ポートイベント制
御部17は第2のアプリケーション132との間で、非
ポートイベント制御部32は第1のアプリケーション1
1との間で、それぞれイベントの形態で発行されたリ
クエストの制御をしている。
The USB device control unit 31 includes a port event control unit 17, a non-port event control unit 32, a request result reception dedicated pipe 33, a request transmission dedicated pipe 34, a communication data reception dedicated pipe 35, And a transmission-only pipe 36. The port event control unit 17 regards the USB port connected to the USB device as a virtual COM port when the port connection is controlled by the OS as in the past, associates this with the application, and associates the USB port with the application. By controlling the request, exclusive control of the port is performed for each application. The non-port event control unit 32 is provided for each application, and controls only requests from corresponding applications. Here, the port event control unit 17 between the second application 13 2, non-port event control unit 32 first application 1
Between 3 1 and has a control request issued in the event of the form, respectively.

【0034】USBデバイス11は、USBポート18
と、USB制御部19と、メモリ20とを備えている。
USBポート18は、USBケーブル12に接続されて
いる。USB制御部19は、ポート接続制御装置30か
ら送信されたアプリケーションのリクエストをUSBポ
ート18経由で受信し、そのリクエストに応じてメモリ
20に蓄積された情報の送受信制御をUSBポート18
との間で行う。メモリ20には、図示しないUSBデバ
イス実行部によって処理された結果が格納される。例え
ばUSBデバイス11がTAである場合、着信情報がデ
バイス情報として順次格納される。
The USB device 11 has a USB port 18
, A USB control unit 19 and a memory 20.
The USB port 18 is connected to the USB cable 12. The USB control unit 19 receives an application request transmitted from the port connection control device 30 via the USB port 18 and controls transmission and reception of information stored in the memory 20 in response to the request.
Do between. The memory 20 stores a result processed by a USB device execution unit (not shown). For example, when the USB device 11 is a TA, incoming information is sequentially stored as device information.

【0035】上述したようにUSBデバイス11のデバ
イス情報は、ポート接続制御装置30で処理される第1
および第2のアプリケーション131、132からのイベ
ントをによってアクセスされる。これらイベントはUS
Bデバイス制御部31によって管理される。
As described above, the device information of the USB device 11 is the first information processed by the port connection control device 30.
And events from the second application 13 1 , 13 2 . These events are US
It is managed by the B device control unit 31.

【0036】図2は図1に示したUSBデバイス制御部
31の構成要部を表わしたものである。ただし、図1に
示したポート接続制御装置と同一部分には同一符号を付
している。USBデバイス制御部31は、上述したポー
トイベント制御部17と、非ポートイベント制御部32
と、リクエスト結果受信専用パイプ33と、リクエスト
送信専用パイプ34と、データキューである通信データ
受信専用パイプ35および通信データ送信専用パイプ3
6とを備えている。リクエスト結果受信専用パイプ33
は、USBホストコントローラ15からリクエスト結果
が入力され、ポートイベント制御部17のみならず非ポ
ートイベント制御部32に対してもリクエスト結果を送
出する。リクエスト送信専用パイプ34は、ポートイベ
ント制御部17のみならず非ポートイベント制御部33
からのリクエストが入力される。通信データ受信専用パ
イプ35は、ポートイベント制御部17に対して受信し
た通信データを送出する。通信データ送信専用パイプ3
6は、ポートイベント制御部17からの送信用の通信デ
ータが入力される。
FIG. 2 shows the main components of the USB device control unit 31 shown in FIG. However, the same parts as those of the port connection control device shown in FIG. The USB device control unit 31 includes the port event control unit 17 and the non-port event control unit 32 described above.
A dedicated pipe 33 for receiving a request result, a dedicated pipe 34 for transmitting a request, a dedicated pipe 35 for receiving communication data and a dedicated pipe 3 for transmitting communication data.
6 is provided. Request result receiving pipe 33
Receives a request result from the USB host controller 15 and sends the request result not only to the port event control unit 17 but also to the non-port event control unit 32. The request transmission dedicated pipe 34 includes not only the port event control unit 17 but also the non-port event control unit 33.
The request from is input. The communication data reception dedicated pipe 35 sends out the received communication data to the port event control unit 17. Communication data transmission dedicated pipe 3
In 6, communication data for transmission from the port event control unit 17 is input.

【0037】ポートイベント制御部17は、第2のアプ
リケーション132からイベントが入力されると、その
イベントがUSBデバイス11への制御用リクエストコ
マンドであるか、あるいはUSBデバイス11に対する
の通信データ送受用リクエストであるかの判別を行う。
入力されたイベントが制御用リクエストであると判別さ
れたときには、そのリクエストコマンドをリクエスト送
信専用パイプ34に渡す。一方、入力されたイベントが
通信データ送受用リクエストであると判別されたときに
は、そのリクエストが通信データ送信用リクエストであ
る場合には通信データ送信専用パイプ36にそのデータ
を渡し、通信データ受信用リクエストの場合はリクエス
ト結果受信専用パイプ21からデータを受信データとし
て取得する。USBデバイス11との間でUSBポート
を介して情報送受を行うUSBホストコントローラ制御
部15の制御内容に応じて、順次これらのパイプからU
SBホストコントローラ制御部15との間でリクエスト
あるいは通信データの受け渡しを行う。
The port event control unit 17, the second application 13 2 from the event is input, whether the event is a control request command to the USB device 11, or communication data transmitted and received with respect to the USB device 11 Determine whether the request is a request.
When it is determined that the input event is a control request, the request command is passed to the request transmission dedicated pipe 34. On the other hand, when it is determined that the input event is a communication data transmission / reception request, if the request is a communication data transmission request, the data is passed to the communication data transmission dedicated pipe 36, and the communication data reception request is transmitted. In the case of, the data is acquired from the request result reception dedicated pipe 21 as reception data. In accordance with the control contents of the USB host controller control unit 15 that transmits and receives information to and from the USB device 11 via the USB port, U-ports are sequentially transmitted from these pipes.
A request or communication data is exchanged with the SB host controller control unit 15.

【0038】非ポートイベント制御部32は、第1のア
プリケーション131からイベントが入力されると、そ
のイベントを制御用リクエストとしてリクエスト送信専
用パイプ34に渡す。また、非ポートイベント制御部3
2は、このリクエスト送信専用パイプ34に渡したリク
エストに対するリクエスト結果の受信が通知されたとき
には、リクエスト結果受信専用パイプ33からこのリク
エスト結果を取得し、第1のアプリケーション131
引き渡す。USBデバイス11との間でUSBポートを
介して情報送受を行うUSBホストコントローラ制御部
15の制御内容に応じて、順次これらのパイプからUS
Bホストコントローラ制御部15との間でリクエストの
受け渡しを行う。
[0038] Non-port event control unit 32, when the first event from the application 13 1 is input, and passes the request transmission dedicated pipe 34 that event as the control request. In addition, the non-port event control unit 3
2, when receiving the request result to the request passed to the requestor only pipe 34 is notified, acquires the request result from the request result receiving dedicated pipe 33, passes the first application 13 1. In accordance with the control content of the USB host controller control unit 15 that transmits and receives information to and from the USB device 11 via the USB port, the USB is sequentially transmitted from these pipes.
The request is exchanged with the B host controller control unit 15.

【0039】USBデバイス制御部31は、USBデバ
イス11からの通信情報を受信したときには、USBポ
ート16およびUSBホストコントローラ制御部15を
介してこれを受信する。そしてこの情報が入力される
と、USBデバイス制御部31では、アプリケーション
によって発行されたイベントに対する応答データである
か、あるいはUSBデバイス11からの受信用通信デー
タであるかの判別を行う。入力された受信情報がアプリ
ケーションによって発行されたイベントに対する応答デ
ータであると判別されたときには、その応答データをリ
クエスト結果受信専用パイプ33に渡す。一方、入力さ
れた受信情報がUSBデバイス11からの受信用通信デ
ータであると判別されたときには、通信データ受信専用
パイプ34にそのデータを渡す。
When receiving the communication information from the USB device 11, the USB device control unit 31 receives the communication information via the USB port 16 and the USB host controller control unit 15. When this information is input, the USB device control unit 31 determines whether the data is response data to an event issued by the application or communication data for reception from the USB device 11. When it is determined that the input reception information is response data to an event issued by the application, the response data is passed to the request result reception dedicated pipe 33. On the other hand, when it is determined that the input reception information is the communication data for reception from the USB device 11, the data is passed to the communication data reception dedicated pipe.

【0040】なおUSBデバイス制御部31とUSBホ
ストコントローラ15との間およびUSBホストコント
ローラ15とUSBデバイス11との間は、それぞれリ
クエストやリクエスト結果、送受信データごとにどのア
プリケーションによって発行されたイベントのものであ
るかが対応付けられている。
It should be noted that, between the USB device controller 31 and the USB host controller 15 and between the USB host controller 15 and the USB device 11, a request, a request result, and an event issued by any application for each transmission / reception data. Is associated.

【0041】ポートイベント制御部17および非ポート
イベント制御部32は、上述したようにアプリケーショ
ンからの各イベントを各送信専用パイプに振り分けると
ともに、各受信専用パイプに格納されたイベントを取り
出してそのイベントに対応したアプリケーションにその
内容を引き渡す。さらに本実施例におけるポート接続制
御装置では、第2のアプリケーション132がポートイ
ベント制御部17を介してポートオープンした状態であ
っても、非ポートイベント制御部32によりイベント管
理を行うようにしたので、直接リクエスト送信専用パイ
プ34およびリクエスト結果受信専用パイプ33に対す
るアクセスを行うことができ、第1のアプリケーション
131は第2のアプリケーション132によってポートが
排他制御されているUSBデバイスに対して、ポートオ
ープンすることなくアクセスすることができる。
As described above, the port event control unit 17 and the non-port event control unit 32 distribute each event from the application to each transmission-only pipe, extract the event stored in each reception-only pipe, and convert the event into the event. Deliver the content to the corresponding application. Further port connection control device in this embodiment, even when the second application 13 2 has port open through the port event control unit 17, since the non-port event control unit 32 to perform the event management , it is possible to perform access to the request transmitted only pipe 34 and the request result reception dedicated pipe 33 directly, the first application 13 1 to the USB device port by a second application 13 2 has exclusive control port Can be accessed without opening.

【0042】図3はこのようなUSBデバイス制御部3
1における一連のイベント処理内容の概要を表わしたも
のである。まずUSBデバイス制御部31は、第1のア
プリケーション131あるいは第2のアプリケーション
132によってイベントが発行されたか否かを監視する
(ステップS40)。ここで、両アプリケーションから
も発行されたイベントがないと判別されたとき(ステッ
プS40:N)には、そのままイベント処理を終了する
(エンド)。一方、いずれかのアプリケーションからイ
ベントが発行されたと判別されたとき(ステップS4
0:Y)には、そのイベントが非ポート経由のイベント
であるか否かをチェックする(ステップS41)。この
非ポート経由とは、ポートイベント制御部17によって
アプリケーションごとのポートの排他制御を行わないア
プリケーションとして非ポートイベント制御部32によ
ってイベント処理を行うことを意味する。
FIG. 3 shows such a USB device control unit 3.
1 shows an outline of a series of event processing contents. First USB device controller 31, a first application 13 first or second event by an application 13 2 monitors whether or not issued (step S40). Here, when it is determined that there is no event issued from both applications (step S40: N), the event processing ends as it is (end). On the other hand, when it is determined that an event has been issued from any application (step S4).
At 0: Y), it is checked whether the event is a non-ported event (step S41). The term “via non-port” means that the event processing is performed by the non-port event control unit 32 as an application in which the port event control unit 17 does not perform exclusive control of the port for each application.

【0043】ステップS41において、図2に示したU
SBデバイス制御部31でこのイベントが第1のアプリ
ケーション131から発行されたイベントであるときに
は非ポート経由のイベントであるものとして(ステップ
S41:Y)、そのイベントをリクエストとしてリクエ
スト送信専用パイプ34に送信する(ステップS4
2)。その後、このリクエストはUSBホストコントロ
ーラ制御部15に入力されて、USBポート16を介し
てUSBデバイス11にリクエスト発行される。このU
SBデバイス11は、USBポート18を介してこのリ
クエストを受信すると、USB制御部19で受信したリ
クエストに応じてメモリ20のデバイス情報の取得が行
われる。この取得されたデバイス情報は、USB制御部
19によってUSBデバイス11からポート接続制御装
置30に送信される。この送信結果は、USBホストコ
ントローラ制御部15によって第1のアプリケーション
131に対応するものであるとしてリクエスト結果受信
専用パイプ33に入力される。そして、非ポートイベン
ト制御部32は、これをリクエスト結果として取得(ス
テップS43)し、イベント発行元の第1のアプリケー
ション131に対してイベント結果を通知して(ステッ
プS44)、一連のイベント処理を終了する(エン
ド)。
In step S41, the U shown in FIG.
When this event SB device control unit 31 is issued event from the first application 13 1 as is the event via non port (step S41: Y), the request transmission dedicated pipe 34 that event as a request Send (Step S4
2). After that, this request is input to the USB host controller control unit 15 and issued to the USB device 11 via the USB port 16. This U
Upon receiving this request via the USB port 18, the SB device 11 acquires device information from the memory 20 in response to the request received by the USB control unit 19. The obtained device information is transmitted from the USB device 11 to the port connection control device 30 by the USB control unit 19. The transmission result is input to the request result reception dedicated pipe 33 as corresponds to the first application 13 1 by the USB host controller control unit 15. Then, the non-port event control unit 32, which was obtained as a result of the request (step S43), and notifies the result of the event to the first application 13 1 Event Publisher (step S44), a series of event processing To end (end).

【0044】ステップS41において、図2に示したU
SBデバイス制御部31でこのイベントが第2のアプリ
ケーション132から発行されたイベントであるときに
は非ポート経由ではなく、ポート経由のイベントである
ものと判断される(ステップS41:N)。そして、ポ
ートイベント制御部17は、このイベントが通信データ
送受用リクエストであるか、制御用リクエストであるか
否かの判別を行う(ステップS45)。このイベント
は、アプリケーションとの間で予め決められたフォーマ
ットでUSBデバイス制御部31と送受され、このイベ
ントが通信データ送受用リクエストであるか、制御用リ
クエストであるかを容易に判別できるようになってい
る。そして、これが制御用リクエストであると判別され
たとき(ステップS45:N)には、このリクエストを
リクエスト送信専用パイプ34に送信する(ステップS
42)。その後、このリクエストはUSBホストコント
ローラ制御部15によって取り出され、USBポート1
6を介してUSBデバイス11にリクエスト発行され
る。このUSBデバイス11は、USBポート18を介
してこのリクエストを受信すると、USB制御部19で
受信したリクエストに応じてメモリ20のデバイス情報
の取得が行われる。この取得されたデバイス情報は、U
SB制御部19によってUSBデバイス11からポート
接続制御装置30に送信される。この送信結果は、US
Bホストコントローラ制御部15によって第2のアプリ
ケーション132に対応するものであるとしてリクエス
ト結果受信専用パイプ33に取得される。そして、ポー
トイベント制御部17は、これをリクエスト結果として
取得(ステップS43)し、イベント発行元の第2のア
プリケーション132に対してイベント結果として通知
して(ステップS44)、一連のイベント処理を終了す
る(エンド)。
In step S41, the U shown in FIG.
Is not through the non-port, it is determined that an event of ports through which the this event SB device control unit 31 is issued event from the second application 13 2 (step S41: N). Then, the port event control unit 17 determines whether this event is a communication data transmission / reception request or a control request (step S45). This event is transmitted to and received from the USB device control unit 31 in a predetermined format between the application and the USB device control unit 31, so that it can be easily determined whether the event is a communication data transmission / reception request or a control request. ing. When it is determined that this is a control request (step S45: N), the request is transmitted to the request transmission dedicated pipe 34 (step S45).
42). Thereafter, this request is fetched by the USB host controller control unit 15 and the USB port 1
6 is issued to the USB device 11. When the USB device 11 receives the request via the USB port 18, the device information of the memory 20 is obtained according to the request received by the USB control unit 19. The acquired device information is
The data is transmitted from the USB device 11 to the port connection control device 30 by the SB control unit 19. This transmission result is US
It is obtained in the request result reception dedicated pipe 33 as corresponds to the B host controller control unit 15 by a second application 13 2. Then, the port event control unit 17, which obtains (step S43) as the request result, and notifies the result of the event for the second application 13 the second event publisher (step S44), the sequence of event processing End (end).

【0045】ステップS45で、ポートイベント制御部
17に入力されたイベントが、通信データ送受用リクエ
ストであると判別されたとき(ステップS45:Y)に
は、さらに通信データ送信用リクエストであるか通信デ
ータ受信用リクエストであるか否かの判別を行う(ステ
ップS46)。そこで、入力されたイベントが通信デー
タ受信用リクエストであると判別されたとき(ステップ
S46:Y)には、通信データ受信専用パイプ35から
受信データを取得し(ステップS47)、これをイベン
ト発行元の第2のアプリケーション132に対してイベ
ント結果として通知して(ステップS44)、一連のイ
ベント処理を終了する(エンド)。
In step S45, when it is determined that the event input to the port event control unit 17 is a communication data transmission / reception request (step S45: Y), it is further determined whether the event is a communication data transmission request. It is determined whether the request is a data reception request (step S46). Therefore, when it is determined that the input event is a request for receiving communication data (step S46: Y), reception data is obtained from the communication data reception dedicated pipe 35 (step S47), and this is transmitted to the event issuer. the second can be notified to the application 13 2 as an event result of (step S44), and ends the series of event processing (eND).

【0046】ステップS46で、ポートイベント制御部
17に入力されたイベントが、通信データ送信用リクエ
ストであると判別されたとき(ステップS46:N)に
は、通信データ送信専用パイプ36に通信データを送信
して(ステップS48)、一連の処理を終了する(エン
ド)。
In step S46, when it is determined that the event input to the port event control unit 17 is a communication data transmission request (step S46: N), the communication data is transmitted to the communication data transmission dedicated pipe 36. After transmission (step S48), a series of processing ends (end).

【0047】このように本実施例におけるポート接続制
御装置30は、従来のようにアプリケーションごとにポ
ートを関連付けて各アプリケーションからUSBデバイ
ス11に対するアクセスについて排他制御を行うポート
イベント制御部17とは別に、アプリケーションからの
制御用リクエストについてリクエスト送信専用パイプ3
4およびリクエスト結果受信専用パイプ33に対してア
クセスする非ポートイベント制御部32を設けるように
したので、ポートイベント制御部17を介してあるアプ
リケーションがアクセス中のUSBデバイスに対して、
従来のようなポートオープン処理を行うことなく、同一
USBデバイス11に対してアクセスできるようにな
る。したがって、USBポート間では、第2のアプリケ
ーションによってポート接続制御装置30がUSBデバ
イス11とデータ転送をしている最中に、第1のアプリ
ケーションによってポート接続制御装置30がUSBデ
バイス11とデータ転送を行うといったマルチデータ転
送が可能となる。
As described above, the port connection control device 30 according to the present embodiment is different from the port event control unit 17 that associates a port for each application and performs exclusive control on access to the USB device 11 from each application as in the related art. Request transmission dedicated pipe 3 for control requests from applications
4 and the non-port event control unit 32 that accesses the request result reception dedicated pipe 33, the application via the port event control unit 17 can access the USB device being accessed.
It becomes possible to access the same USB device 11 without performing the port open processing as in the related art. Therefore, between the USB ports, while the port connection control device 30 is performing data transfer with the USB device 11 by the second application, the port connection control device 30 performs data transfer with the USB device 11 by the first application. Multi data transfer.

【0048】次に、本実施例におけるポート接続制御装
置の動作の把握を容易にするため、具体的な構成として
この本実施例におけるポート接続制御装置には、USB
デバイスとしてTAが接続されているものとして説明す
る。
Next, in order to facilitate understanding of the operation of the port connection control device in the present embodiment, a specific configuration of the port connection control device in this embodiment includes a USB.
Description will be made assuming that a TA is connected as a device.

【0049】図4は本実施例におけるポート接続制御装
置が適用される情報処理システムについてのより具体的
な構成の概要を表わしたものである。ただし、図1に示
す本実施例におけるポート接続制御装置が適用される情
報処理システムと同一部分には同一符号を付し、適宜説
明を省略する。この情報処理システムは、ポート接続制
御装置30とTA50がUSBケーブル12を介して接
続されている。ポート接続制御装置30は、図1に示す
ポート接続制御装置と同一であるため説明を省略する。
FIG. 4 shows an outline of a more specific configuration of an information processing system to which the port connection control device in this embodiment is applied. However, the same portions as those of the information processing system to which the port connection control device in the present embodiment shown in FIG. 1 is applied are denoted by the same reference numerals, and description thereof will be appropriately omitted. In this information processing system, the port connection control device 30 and the TA 50 are connected via the USB cable 12. The port connection control device 30 is the same as the port connection control device shown in FIG.

【0050】TA50は、USBポート18と、USB
制御部19と、メモリ51と、外部端子であるISDN
(Integrated Services Digital Network)ポート52
と、ISDN制御部53と、外部端子であるアナログポ
ート54と、アナログ制御部55とを備えている。IS
DNポート52には、図示しないISDN回線が接続さ
れ、同様に図示しないISDN網との間で通信情報の送
受を行うことができるようになっている。アナログポー
ト54には、図示しないアナログ電話が接続され、この
接続されたアナログ電話はISDNポート52を介して
図示しないISDN網との間で通信情報の送受を行うこ
とができるようになっている。ISDN制御部53は、
ISDNポート52を制御し、メモリ51への通信デー
タの格納やメモリ51からの読み出しを行って、ISD
N回線を介して通信を行う。アナログ制御部55は、ア
ナログポート54を制御し、メモリ51への通信データ
の格納やメモリ51からの読み出しを行って、ISDN
網を介して通信を行う。このようにTA50では、US
B制御部19によってメモリ51とポート制御装置30
との間でUSBポート18を介して情報の送受信が行わ
れ、このメモリ51を介してISDN回線を通じて各網
との通信を行うことができる。
The TA 50 has a USB port 18 and a USB
The control unit 19, the memory 51, and an external terminal ISDN
(Integrated Services Digital Network) port 52
, An ISDN control unit 53, an analog port 54 as an external terminal, and an analog control unit 55. IS
An ISDN line (not shown) is connected to the DN port 52, so that communication information can be transmitted and received with an ISDN network (not shown). An analog telephone (not shown) is connected to the analog port 54, and the connected analog telephone can transmit and receive communication information to and from an ISDN network (not shown) via the ISDN port 52. The ISDN control unit 53 includes:
By controlling the ISDN port 52, storing communication data in the memory 51 and reading from the memory 51,
Communication is performed via the N line. The analog control unit 55 controls the analog port 54 to store communication data in the memory 51 and read from the memory 51,
Communicate via a network. Thus, in TA50, US
The memory 51 and the port controller 30 are controlled by the B controller 19.
Information is transmitted and received between the MFP 1 and the USB port 18 via the USB port 18, and communication with each network can be performed via the ISDN line via the memory 51.

【0051】ここでは、TA50がISDN回線を介し
てアナログ電話の着信情報をメモリ51に順次保存して
いるものとする。そして、ポート接続制御装置30で実
行される第2のアプリケーション132は、ポートイベ
ント制御部17によってポート経由でTA50に対して
USBポートをオープンし、TA50との間でデータ通
信を行っているものとする。また、ポート接続制御装置
30で実行される第1のアプリケーション131は、ポ
ート経由ではなく、非ポートイベント制御部32を介し
てTA50に接続されているアナログ電話回線の着信を
監視するアプリケーションであるものとする。
Here, it is assumed that the TA 50 sequentially stores the incoming call information of the analog telephone in the memory 51 via the ISDN line. The second application 13 2 executed by the port connection control unit 30 opens the USB ports to TA50 via the port by the port event control unit 17, which is performing data communication with the TA50 And The first application 13 1 to be executed by the port connection control unit 30, rather than through the port, is an application that monitors the incoming analog telephone line connected to TA50 via the non-port event control unit 32 Shall be.

【0052】したがって、第2のアプリケーション13
2は、USBデバイス制御部31のポートイベント制御
部17によって、アプリケーションとUSBポートを仮
想的なCOMポートと見なしての関連付けが行われて、
TA50に対する排他制御が行われ、両者間で通信デー
タの送受を行っている。ここで、アナログ電話の着信を
監視すべく第1のアプリケーション131からTA50
のメモリ51に保存されている着信情報の取得を行うよ
うに、USBデバイス制御部31に対して情報取得のリ
クエストが発行されたものとする。
Therefore, the second application 13
2 , the application and the USB port are associated by the port event control unit 17 of the USB device control unit 31 assuming that the application and the USB port are virtual COM ports.
Exclusive control is performed on the TA 50, and communication data is transmitted and received between the two. Here, the first application 13 1 in order to monitor the incoming analog telephone TA50
It is assumed that a request for information acquisition has been issued to the USB device control unit 31 so as to acquire the incoming call information stored in the memory 51.

【0053】従来のポート接続制御装置の場合、USB
デバイス制御部31では、一旦第2のアプリケーション
132に対してポートオープンを解除させ、改めてこの
ポートと第1のアプリケーション131との間でポート
オープン処理を行ってから、TA50からメモリ51に
保存されている着信情報の取得を行うリクエストを送信
していた。しかし、本実施例におけるポート接続制御装
置では、第1のアプリケーション131からの情報取得
を要求するイベントがUSBデバイス制御部31に入力
されると、非ポートイベント制御部32によってこのイ
ベントが通信データの送受信パイプとは独立して動作す
るリクエスト送信専用パイプ34に送信される。この着
信情報取得のリクエストを受けたUSBホストコントロ
ーラ制御部15は、USBポート16を介してTA50
との間でメモリ51に格納された着信情報の取得処理を
行う。
In the case of a conventional port connection control device, a USB
Save the device control section 31, temporarily release the port open second to the application 13 2, make the port open process with again this port and the first application 13 1, the TA50 in the memory 51 Was sent to get the incoming information. However, in the port connection control device according to the present embodiment, when an event requesting information acquisition from the first application 131 is input to the USB device control unit 31, the non-port event control unit 32 converts the event into communication data. Is transmitted to the request transmission dedicated pipe 34 which operates independently of the transmission / reception pipe of the request. The USB host controller control unit 15 that has received the request for acquiring the incoming call information transmits the TA 50 via the USB port 16.
The processing for acquiring the incoming call information stored in the memory 51 is performed between these steps.

【0054】図5はポート接続制御装置30のUSBホ
ストコントローラ制御部15とTA50のUSB制御部
19との間で行われる着信情報取得処理のシーケンスの
一例を表わしたものである。まず、上述したようにUS
Bデバイス制御部32のリクエスト送信専用パイプ34
から発行されたリクエストを受けたUSBホストコント
ローラ制御部15は、USBポート16を介してTA5
0に対して情報取得リクエスト60を発行する。これを
USBポート18経由で入力されたUSB制御部19
は、取得要求のあった情報の転送準備を行う。USBホ
ストコントローラ制御部15からは、その後要求した情
報の送信を要求する“IN”コマンド61 1が送信され
る。USB制御部19は、取得要求のあった情報の転送
準備が整わない間は、転送すべきデータのないことを示
す“NAK”コマンド621を返答する。この“NA
K”コマンド621を受けたUSBホストコントローラ
制御部15は、まだ転送準備が整わないことを認識し
て、所定の時間経過後再び“IN”コマンド612を送
出する。USBホストコントローラ制御部15は、取得
した情報が転送されるまで“IN”コマンド612〜6
Nを送出する。やがて、メモリ51に要求のあった情
報の転送準備が整ったときに、この着信情報をUSB制
御部19によりUSBポート18を介して受信データ6
2を取得する。
FIG. 5 shows the USB port of the port connection controller 30.
Strike controller control unit 15 and USB control unit of TA50
Of the incoming information acquisition process performed between
This is an example. First, as mentioned above,
Request transmission dedicated pipe 34 of B device control unit 32
USB host controller that received the request issued by
The roller control unit 15 controls the TA5 via the USB port 16.
0, an information acquisition request 60 is issued. this
USB controller 19 input via USB port 18
Prepares for transfer of the information requested to be acquired. USB ho
The strike controller control unit 15 then sends the requested information.
"IN" command 61 for requesting the transmission of a report 1Is sent
You. The USB control unit 19 transfers information requested to be acquired.
Indicates that there is no data to transfer while not ready
"NAK" command 621Reply. This "NA
K "command 621USB host controller
The control unit 15 recognizes that the transfer is not ready yet.
After a lapse of a predetermined time, the “IN” command 61TwoSend
Put out. The USB host controller control unit 15 obtains
"IN" command 61 until the transferred information is transferredTwo~ 6
1NIs sent. Eventually, the information requested in the memory 51
When the information is ready to be forwarded, the incoming
The received data 6 via the USB port 18 by the control unit 19
3TwoTo get.

【0055】このように取得された受信データは、これ
に先立ってリクエスト送信専用パイプ34に送信された
リクエストに対するリクエスト結果であるとして、US
Bデバイス制御部31のリクエスト結果受信専用パイプ
33に送出され、そのリクエストの発行元である第1の
アプリケーション131に通知される。第1のアプリケ
ーション131は、このリクエスト結果を受けて着信の
監視情報の表示等を行う。
It is assumed that the received data thus obtained is a request result for a request transmitted to the request transmission dedicated pipe 34 prior to this,
Sent to the request result reception dedicated pipe 33 of the B-device control unit 31, it is notified to the first application 13 1 which is issuing the request. First application 13 1 makes a display of monitoring information of the incoming receiving this request results.

【0056】変形例 Modification

【0057】本実施例におけるポート接続制御装置で
は、非ポート経由の第1のアプリケーションが非ポート
イベント制御部32に対して、ポート経由の第2のアプ
リケーションがポートイベント制御部17に対して、そ
れぞれイベントを発行するようにしていた。本変形例に
おけるポート接続制御装置では、非ポート経由アプリケ
ーションが複数の場合のポート接続制御装置について
も、非ポート経由のアプリケーションごとに非ポートイ
ベント制御部を設けることで本実施例におけるポート接
続制御装置と同様に別のアプリケーションでポートオー
プンされているUSBデバイスに対してアクセスするこ
とができる。本変形例におけるポート接続制御装置の構
成は図1に示した本実施例におけるポート接続制御装置
の構成と同様であるが、USBデバイス制御部の構成が
異なる。
In the port connection control device according to the present embodiment, the first application via the non-port communicates with the non-port event controller 32, and the second application via the port communicates with the port event controller 17 respectively. Event was to be issued. In the port connection control device according to the present modification, the port connection control device according to the present embodiment is also provided by providing a non-port event control unit for each non-port application via a non-port application. In the same way as the above, another application can access a USB device whose port is open. The configuration of the port connection control device in this modification is the same as the configuration of the port connection control device in the present embodiment shown in FIG. 1, but the configuration of the USB device control unit is different.

【0058】図6は本変形例におけるポート接続制御装
置のUSBデバイス制御部70の構成の概要を表わした
ものである。ただし、図2に示したUSBデバイス制御
部と同一部分には同一符号を付し、説明を省略する。こ
こでは、非ポート経由のアプリケーションとして第1お
よび第3のアプリケーション131、133とし、ポート
経由のアプリケーションとして第2のアプリケーション
132とする。このように本変形例におけるUSBデバ
イス制御部70では、第1のアプリケーション131
対応して第1の非ポートイベント制御部711が、第3
のアプリケーション133に対応して第2の非ポートイ
ベント制御部712がそれぞれ設けられている。第2の
アプリケーション132については、従来のUSBデバ
イス制御部と同様に、ポートイベント制御部17によっ
て1対1にアプリケーションごとにUSBポートを仮想
的なCOMポートと見なして、これを割り当てて排他制
御が行われている。第1および第2の非ポートイベント
制御部711、712の動作については本実施例における
非ポートイベント制御部32と同一である。リクエスト
結果受信専用パイプ33は、ポートイベント制御部17
のみならず第1および第2の非ポートイベント制御部7
1、712に対してもリクエスト結果を送出する。リク
エスト送信専用パイプ34は、ポートイベント制御部1
7のみならず第1および第2の非ポートイベント制御部
711、712からのリクエストが入力される。
FIG. 6 shows an outline of the configuration of the USB device control section 70 of the port connection control device in this modification. However, the same parts as those of the USB device control unit shown in FIG. Here, the first and third applications 13 1 and 13 3 are assumed to be applications via a non-port, and the second application 13 2 is assumed to be an application via a port. Thus the USB device controller 70 in the present modification, the first non-port event control unit 71 1 is corresponding to the first application 13 1, 3
Application 13 3 corresponding to the second non-port event control unit 71 2 are respectively provided. The second application 13 2, like a conventional USB device controller, the port event control unit 17 is regarded as a virtual COM port USB port for each application in a one-to-one, exclusive control by assigning this Has been done. The operations of the first and second non-port event controllers 71 1 and 71 2 are the same as those of the non-port event controller 32 in the present embodiment. The request result receiving pipe 33 is connected to the port event control unit 17.
Not only the first and second non-port event controllers 7
Also it sends a result request to 1 1, 71 2. The request transmission dedicated pipe 34 is connected to the port event control unit 1.
Requests from the first and second non-port event control units 71 1 and 71 2 are input as well as the request.

【0059】USBデバイス制御部70とUSBホスト
コントローラ15との間およびUSBホストコントロー
ラ15とUSBデバイスとの間は、それぞれリクエスト
やリクエスト結果、送受信データごとにどのアプリケー
ションからのイベントのものであるかが対応付けられて
いる。したがって、本変形例におけるポート接続制御装
置の動作については本実施例と同様であるため説明を省
略する。
The application between the USB device controller 70 and the USB host controller 15 and the application between the USB host controller 15 and the USB device for each request, request result, and transmission / reception data are determined. Are associated. Therefore, the operation of the port connection control device according to the present modification is the same as that of the present embodiment, and a description thereof will be omitted.

【0060】このように本実施例および本変形例におけ
るポート接続制御装置は、従来のようにアプリケーショ
ンごとにポートを関連付けて各アプリケーションからU
SBデバイス11に対するアクセスについて排他制御を
行うポートイベント制御部17とは別に、アプリケーシ
ョンごとにアプリケーションとポートとの関連付けを行
うことなく直接アプリケーションからのイベントをリク
エスト送信専用パイプ34およびリクエスト結果受信専
用パイプ33にアクセスする非ポートイベント制御部を
設けるようにしたので、互換性等のためにポートイベン
ト制御部によるポートの排他制御を行うアプリケーショ
ンとは異なる別のアプリケーションから、このポートオ
ープンされているUSBデバイスに対してもアクセスす
ることができるようになる。
As described above, the port connection control device according to the present embodiment and the modification example associates a port with each application and sets
Apart from the port event control unit 17 that performs exclusive control on access to the SB device 11, an event from the application is directly transmitted to the request transmission only pipe 34 and the request result reception dedicated pipe 33 without associating the application with the port for each application. A non-port event control unit for accessing the port is provided. For compatibility and the like, another application different from the application that performs the exclusive control of the port by the port event control unit may be used to connect the USB device whose port is opened to the USB device. You can also access it.

【0061】なお本実施例および本変形例におけるポー
ト接続制御装置は、ポートを介して接続されるデバイス
をUSB方式によって接続されるUSBデバイスについ
て説明したが、これに限定されるものではない。マルチ
データ転送を採用するポート接続方式であれば、その種
類に限定されない。
In the port connection control device according to the present embodiment and the modification, a device connected via a port has been described as a USB device connected by a USB system, but the present invention is not limited to this. As long as the port connection method adopts multi data transfer, the type is not limited.

【0062】[0062]

【発明の効果】以上説明したように請求項1記載の発明
によれば、従来のようにアプリケーションごとにポート
を関連付けて各アプリケーションから占有されているポ
ートを介して周辺デバイスに対するアクセスについて排
他制御を行うポートイベント制御手段とは別に、非ポー
トイベント制御手段を設けてアプリケーションとポート
との関連付けを行うことなく直接アプリケーションから
のイベントをキューイングするようにしたので、ポート
の排他制御を行ってあるアプリケーションからアクセス
している周辺デバイスに対して、これとは異なる別のア
プリケーションからもアクセスすることができるように
なる。
As described above, according to the first aspect of the present invention, a port is associated with each application as in the prior art, and exclusive control is performed on access to a peripheral device via a port occupied by each application. Apart from the port event control means to be performed, a non-port event control means is provided to queue events from the application directly without associating the application with the port, so that an application that performs exclusive control of the port It is possible to access the peripheral device accessed from another application from another application different from this.

【0063】また請求項3記載の発明によれば、従来の
ようにアプリケーションごとにポートを関連付けて各ア
プリケーションから周辺デバイスに対するアクセスにつ
いて排他制御を行うポートイベント制御手段とは別に、
アプリケーションからの制御用リクエストについてリク
エスト送信キューおよびリクエスト結果受信キューに対
してアクセスする非ポートイベント制御手段を設けるよ
うにした。これにより、ポートの排他制御を行ってある
アプリケーションからアクセスしている周辺デバイスに
対して、これとは異なる別のアプリケーションからもア
クセスすることができるようになる一方、アクセス対象
となる周辺デバイスに対して同時に異なるアプリケーシ
ョンから通信データの送受が行われることがなく排他制
御の信頼性を維持させて、装置の簡素化も図ることがで
きる。
According to the third aspect of the present invention, apart from the port event control means for exclusively controlling access to peripheral devices from each application by associating a port with each application as in the prior art,
A non-port event control means for accessing a request transmission queue and a request result reception queue for a control request from an application is provided. As a result, a peripheral device that is being accessed from an application that has performed exclusive control of a port can be accessed from another application that is different from the peripheral device. Thus, communication data is not transmitted and received from different applications at the same time, the reliability of exclusive control is maintained, and the apparatus can be simplified.

【0064】さらに請求項2または請求項4記載の発明
によれば、それぞれ請求項1または請求項3記載の発明
に対して、複数のアプリケーションごとに非ポートイベ
ント制御手段を設けて、それぞれアプリケーションごと
にアプリケーションとポートとの関連付けを行うことな
く直接アプリケーションからのイベントをキューイング
するようにした。これにより、従来のポートイベント制
御手段によるポートの排他制御に伴う、ポートオープン
処理を行うことなく、複数のアプリケーションから同一
デバイスに対してアクセスすることが可能となる。
Further, according to the second or fourth aspect of the present invention, a non-port event control means is provided for each of a plurality of applications, and Queue events from applications directly without associating applications with ports. As a result, it is possible to access the same device from a plurality of applications without performing the port open process associated with the exclusive control of the port by the conventional port event control means.

【0065】さらに請求項5記載の発明によれば、ポー
トをユニバーサルシリアルバスのポートにすることで、
周辺デバイスとの間の転送が高速となり、従来のポート
接続制御装置へも容易に適用することができる。
According to the fifth aspect of the present invention, the port is a universal serial bus port,
Transfer to and from a peripheral device is performed at high speed, and it can be easily applied to a conventional port connection control device.

【0066】さらにまた請求項6記載の発明によれば、
ポートイベント制御手段で従来のようにターミナルアダ
プタに接続されているポートを占有して通信データの送
受を行う一方、このターミナルアダプタに保存されてい
る着信情報を別のアプリケーションによって取得できる
ことで、リアルタイム性に優れた着信監視を行うことが
できる。
Further, according to the invention described in claim 6,
While the port event control means occupies the port connected to the terminal adapter as in the prior art and transmits and receives communication data, the incoming information stored in the terminal adapter can be obtained by another application, thereby realizing real-time communication. Excellent incoming call monitoring can be performed.

【0067】さらに請求項7記載の発明によれば、マル
チデータ転送を採用するようにしたので、データ転送の
効率を大幅に向上させることができ、より複雑な通信制
御を可能とする。
Further, according to the seventh aspect of the present invention, since multi-data transfer is adopted, the efficiency of data transfer can be greatly improved, and more complicated communication control can be performed.

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

【図1】本実施例におけるポート接続制御装置が適用さ
れた情報処理システムの構成の概要を示す構成図であ
る。
FIG. 1 is a configuration diagram illustrating an outline of a configuration of an information processing system to which a port connection control device according to an embodiment is applied.

【図2】本実施例におけるポート接続制御装置のデバイ
ス制御部の構成要部を示す構成図である。
FIG. 2 is a configuration diagram illustrating a main configuration of a device control unit of the port connection control device according to the embodiment.

【図3】本実施例におけるデバイス制御部の一連のイベ
ント処理内容の概要を示す流れ図である。
FIG. 3 is a flowchart showing an outline of a series of event processing contents of a device control unit in the embodiment.

【図4】本実施例におけるポート接続制御装置が適用さ
れた情報処理システムのより具体的な構成の概要を示す
構成図である。
FIG. 4 is a configuration diagram illustrating an outline of a more specific configuration of an information processing system to which the port connection control device according to the present embodiment is applied.

【図5】ポート接続制御装置のUSBホストコントロー
ラ制御部とTAのUSB制御部との間で行われる着信情
報取得のシーケンスの一例を示すシーケンス図である。
FIG. 5 is a sequence diagram illustrating an example of a sequence of acquiring incoming call information performed between a USB host controller control section of the port connection control device and a TA USB control section.

【図6】本変形例におけるデバイス制御部の構成要部を
示す構成図である。
FIG. 6 is a configuration diagram illustrating a main configuration of a device control unit according to the modification.

【図7】従来のポート接続制御装置が適用された情報処
理システムの構成の概要を示す構成図である。
FIG. 7 is a configuration diagram illustrating an outline of a configuration of an information processing system to which a conventional port connection control device is applied.

【図8】従来のポート接続制御装置のデバイス制御部の
構成要部を示す構成図である。
FIG. 8 is a configuration diagram showing a main configuration of a device control unit of a conventional port connection control device.

【図9】従来のアプリケーションとUSBボートの間の
割り当て状況を説明するための説明図である。
FIG. 9 is an explanatory diagram for explaining a conventional assignment situation between an application and a USB port.

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

10、30 ポート接続制御装置 11 USBデバイス 12 USBケーブル 131〜133 第1〜第3のアプリケーション 14、31 USBデバイス制御部 15 USBホストコントローラ制御部 16、18 USBポート 17 ポートイベント制御部 171、172 第1、第2の非ポートイベント制御部 19 USB制御部 20、51 メモリ 21、33 リクエスト結果受信専用パイプ 22、34 リクエスト送信専用パイプ 23、35 通信データ受信専用パイプ 24、36 通信データ送信専用パイプ 32 非ポートイベント制御部 50 TA 52 ISDNポート 53 ISDN制御部 54 アナログポート 55 アナログ制御部10, 30 port connection control device 11 USB device 12 USB cable 13 1 to 13 3 first to third application 14, 31 USB device control unit 15 USB host controller control unit 16, 18 USB port 17 port event control unit 17 1 , 17 2 First and second non-port event control unit 19 USB control unit 20, 51 Memory 21, 33 Request result reception dedicated pipe 22, 34 Request transmission dedicated pipe 23, 35 Communication data reception dedicated pipe 24, 36 Communication data Transmission dedicated pipe 32 Non-port event control unit 50 TA 52 ISDN port 53 ISDN control unit 54 Analog port 55 Analog control unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 それぞれ周辺デバイスが接続されている
1または複数のポートと、 アプリケーションから前記周辺デバイスそれぞれに対し
てデータの送信を要求するリクエストをキューイングす
るリクエストキューと、 前記リクエストに対応して前記周辺デバイスそれぞれか
ら送信されたリクエスト結果をキューイングするリクエ
スト結果キューと、 アプリケーションごとに前記ポートのいずれかを対応付
けることによって各アプリケーションに前記ポートを占
有させこれらに接続されている周辺デバイスに対する前
記アプリケーションからの第1のリクエストを前記リク
エストキューにキューイングさせるとともにこの第1の
リクエストに対応して前記リクエスト結果キューにキュ
ーイングされたリクエスト結果を前記アプリケーション
に対して通知するポートイベント制御手段と、 前記第1のリクエストを送信したアプリケーションとは
異なる別のアプリケーションからの前記周辺デバイスに
対する第2のリクエストを前記リクエストキューにキュ
ーイングさせるとともにこの第2のリクエストに対応し
て前記リクエスト結果キューにキューイングされたリク
エスト結果を前記別のアプリケーションに対して通知す
る非ポートイベント制御手段と、 前記ポートイベント制御手段によってアプリケーション
ごとに対応付けられた前記ポートを占有して前記周辺デ
バイスと前記リクエストキューおよびリクエスト結果キ
ューとの間で前記第1および第2のリクエストおよびこ
れらに対応するリクエスト結果を送受信するポート制御
手段とを具備することを特徴とするポート接続制御装
置。
1. A request queue for queuing a request for data transmission from an application to each of the peripheral devices, one or more ports to which the peripheral devices are connected, A request result queue for queuing a request result transmitted from each of the peripheral devices; and an application for a peripheral device connected to the application by occupying the port by associating each application with one of the ports for each application. The first request from the application is queued in the request queue, and the request result queued in the request result queue corresponding to the first request is sent to the application. Port event control means for notifying the request, and queuing a second request for the peripheral device from another application different from the application that transmitted the first request to the request queue, and A non-port event control unit that notifies the request result queued in the request result queue to the another application, and occupies the port associated with each application by the port event control unit. Port connection means for transmitting and receiving the first and second requests and corresponding request results between the peripheral device and the request queue and request result queue. Apparatus.
【請求項2】 前記非ポートイベント制御手段は前記第
1のリクエストを送信したアプリケーションとは異なる
複数の別のアプリケーションごとに設けられ、前記別の
アプリケーションそれぞれからの前記周辺デバイスに対
する第2のリクエストを前記リクエストキューにキュー
イングさせるとともに前記リクエスト結果キューにキュ
ーイングされたリクエスト結果を前記複数の別のアプリ
ケーションのうち前記第2のリクエストを送信したアプ
リケーションに対して通知することを特徴とする請求項
1記載のポート接続制御装置。
2. The non-port event control means is provided for each of a plurality of different applications different from the application that has transmitted the first request, and receives a second request from each of the different applications to the peripheral device. 2. The method according to claim 1, further comprising: queuing the request in the request queue and notifying a request result queued in the request result queue to an application that has transmitted the second request among the plurality of other applications. The port connection control device according to the above.
【請求項3】 それぞれ周辺デバイスが接続されている
1または複数のポートと、 前記周辺デバイスそれぞれに対して情報取得のリクエス
トをキューイングするリクエスト送信キューと、 前記リクエスト送信キューにキューイングされたリクエ
ストに対応する前記周辺デバイスそれぞれからのリクエ
スト結果をキューイングするリクエスト結果受信キュー
と、 前記周辺デバイスそれぞれとの間の送受信データをキュ
ーイングする送受信データキューと、 アプリケーションごとに前記ポートのうちのいずれかを
排他的に対応付けることによって各アプリケーションに
この対応付けられたポートを占有させこれに接続された
周辺デバイスに対する前記アプリケーションからのアク
セス要求が前記周辺デバイスに対する情報取得のリクエ
ストか前記周辺デバイスとの間の通信データ送受信要求
であるかを判別する判別手段と、この判別手段によって
前記周辺デバイスに対する情報取得のリクエストである
と判別されたときには前記アクセス要求を前記リクエス
ト送信キューに振り分け、前記判別手段によって前記周
辺デバイスとの間の通信データ送受信要求であると判別
されたときには前記送受信データキューと前記アプリケ
ーションとの間で通信データを送受するとともに、前記
リクエスト送信キューに振り分けられたアクセス要求に
対応して前記リクエスト結果受信キューにキューイング
されている前記リクエスト結果を前記アプリケーション
に送信する第1のリクエスト制御手段とを備えるポート
イベント制御手段と、 前記アクセス要求を行ったアプリケーションとは異なる
別のアプリケーションからの前記周辺デバイスに対する
情報取得のリクエストを前記リクエスト送信キューにキ
ューイングさせるとともにこのリクエストに対応して前
記リクエスト結果受信キューにキューイングされている
前記リクエスト結果を前記別のアプリケーションに送信
する非ポートイベント制御手段と、 前記ポートイベント制御手段によってアプリケーション
ごとに対応付けられた前記ポートを占有して前記周辺デ
バイスとの間で前記リクエスト送信キュー、前記リクエ
スト結果受信キューおよび前記送受信データキューにキ
ューイングされているリクエストおよびこれらに対応す
るリクエスト結果および送受信データを送受信するポー
ト制御手段とを具備することを特徴とするポート接続制
御装置。
3. One or a plurality of ports to which respective peripheral devices are connected, a request transmission queue for queuing information acquisition requests to the respective peripheral devices, and requests queued in the request transmission queue A request result reception queue for queuing a request result from each of the peripheral devices, a transmission / reception data queue for queuing transmission / reception data between the peripheral devices, and one of the ports for each application. By exclusively associating each application with a port associated with the application, and determining whether an access request from the application to a peripheral device connected thereto is an information acquisition request to the peripheral device. A determining unit that determines whether the request is a communication data transmission / reception request with a peripheral device, and when the determining unit determines that the request is an information acquisition request for the peripheral device, the access request is distributed to the request transmission queue. When the determination unit determines that the request is a communication data transmission / reception request with the peripheral device, the communication unit transmits / receives communication data between the transmission / reception data queue and the application, and allocates the access request allocated to the request transmission queue. A port event control unit comprising: a first request control unit for transmitting the request result queued in the request result reception queue to the application corresponding to the request result queue; of An information acquisition request from the application to the peripheral device is queued in the request transmission queue, and the request result queued in the request result reception queue is transmitted to the another application in response to the request. Non-port event control means, and occupy the port associated with each application by the port event control means, and queue the request transmission queue, the request result reception queue, and the transmission / reception data queue with the peripheral device. A port control unit for transmitting / receiving the request being sent, the request result corresponding to the request, and transmission / reception data.
【請求項4】 前記非ポートイベント制御手段は前記ア
クセス要求を行ったアプリケーションとは異なる複数の
別のアプリケーションごとに設けられ、これら別のアプ
リケーションそれぞれからの前記周辺デバイスに対する
情報取得のリクエストを前記リクエスト送信キューにキ
ューイングさせるとともにこのリクエストに対応して前
記リクエスト結果受信キューにキューイングされている
前記リクエスト結果を前記別のアプリケーションに送信
することを特徴とする請求項3記載のポート接続制御装
置。
4. The non-port event control means is provided for each of a plurality of different applications different from the application that has made the access request, and sends a request for information acquisition to the peripheral device from each of these other applications. 4. The port connection control device according to claim 3, wherein the request is queued in a transmission queue, and the request result queued in the request result reception queue is transmitted to the another application in response to the request.
【請求項5】前記ポートはユニバーサルシリアルバスの
ポートであることを特徴とする請求項1〜請求項4記載
のポート接続制御装置。
5. The port connection control device according to claim 1, wherein said port is a universal serial bus port.
【請求項6】 前記周辺デバイスはターミナルアダプタ
であり、前記別のアプリケーションは前記ターミナルア
ダプタに保存されている着信情報の取得を要求し取得し
た着信情報を表示することを特徴とする請求項5記載の
ポート接続制御装置。
6. The terminal device according to claim 5, wherein the peripheral device is a terminal adapter, and the another application requests acquisition of the incoming information stored in the terminal adapter and displays the acquired incoming information. Port connection control device.
【請求項7】 前記ポートと前記周辺デバイスとの間の
通信情報はマルチデータ転送されることを特徴とする請
求項6記載のポート接続制御装置。
7. The port connection control device according to claim 6, wherein communication information between said port and said peripheral device is transferred by multi-data.
JP08764099A 1999-03-30 1999-03-30 Port connection control device Expired - Fee Related JP3521797B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08764099A JP3521797B2 (en) 1999-03-30 1999-03-30 Port connection control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08764099A JP3521797B2 (en) 1999-03-30 1999-03-30 Port connection control device

Publications (2)

Publication Number Publication Date
JP2000284977A true JP2000284977A (en) 2000-10-13
JP3521797B2 JP3521797B2 (en) 2004-04-19

Family

ID=13920593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08764099A Expired - Fee Related JP3521797B2 (en) 1999-03-30 1999-03-30 Port connection control device

Country Status (1)

Country Link
JP (1) JP3521797B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119847A (en) * 2004-10-20 2006-05-11 Vodafone Kk Traveling object communication terminal
JP2007307779A (en) * 2006-05-18 2007-11-29 Seiko Epson Corp Built-in equipment, electronic equipment, control method of built-in equipment, program, and recording medium
JP2011186718A (en) * 2010-03-08 2011-09-22 Seiko Epson Corp Control device, control method thereof, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119847A (en) * 2004-10-20 2006-05-11 Vodafone Kk Traveling object communication terminal
JP2007307779A (en) * 2006-05-18 2007-11-29 Seiko Epson Corp Built-in equipment, electronic equipment, control method of built-in equipment, program, and recording medium
JP2011186718A (en) * 2010-03-08 2011-09-22 Seiko Epson Corp Control device, control method thereof, and program
US9058133B2 (en) 2010-03-08 2015-06-16 Seiko Epson Corporation Control device, control method for a control device, and recording medium

Also Published As

Publication number Publication date
JP3521797B2 (en) 2004-04-19

Similar Documents

Publication Publication Date Title
US6243783B1 (en) Application programming interface for managing and automating data transfer operations between applications over a bus structure
US6651119B2 (en) Method for allocating priorities to plurality of DMA engines for processing data packets based on bus phase and transactions status
US6871237B2 (en) System for controlling data transfer protocol with a host bus interface
US4768150A (en) Application program interface to networking functions
US6785894B1 (en) Virtual device driver
US5860022A (en) Computer system and method of issuing input/output commands therefrom
CN101115054B (en) For the buffer of the memory mapped of network interface controller
JP3364587B2 (en) System and method for controlling transmission of relatively large data objects in a communication system
US6185607B1 (en) Method for managing network data transfers with minimal host processor involvement
EP1783609A1 (en) Processing management device, computer system, distributed processing method, and computer program
KR101705596B1 (en) Server device connecting usb device and device sharing method
AU2654200A (en) Method and apparatus for extending the range of the universal serial bus protocol
JPH10507023A (en) Shared memory system
US7577782B2 (en) Application programming interface for data transfer and bus management over a bus structure
EP1768024A1 (en) Processing management device, computer system, distributed processing method, and computer program
JPH10229410A (en) Data processor, electronic device, and communication system
JP3521797B2 (en) Port connection control device
US6457079B1 (en) Communication apparatus with means for allocating alternate designation information to each function unit, and communication system with said two communication apparatuses
US6108694A (en) Memory disk sharing method and its implementing apparatus
JP2000339267A (en) Pci bus control system
US6421745B1 (en) Asynchronous connections with scattering page tables for transmitting data from a producer device to a consumer device over an IEEE 1394 serial data bus
JP2001325212A (en) Method and device for transmitting data block from source processor to destination processor in multiprocessor system
JP3070749B2 (en) Header prediction method and communication control processing device
JP2000244585A (en) Bus interface circuit
JP3645696B2 (en) PCI bus / S / T interface connection device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040202

LAPS Cancellation because of no payment of annual fees