JP2005267377A - Position information conversion device, and data output program for position information conversion device - Google Patents
Position information conversion device, and data output program for position information conversion device Download PDFInfo
- Publication number
- JP2005267377A JP2005267377A JP2004080575A JP2004080575A JP2005267377A JP 2005267377 A JP2005267377 A JP 2005267377A JP 2004080575 A JP2004080575 A JP 2004080575A JP 2004080575 A JP2004080575 A JP 2004080575A JP 2005267377 A JP2005267377 A JP 2005267377A
- Authority
- JP
- Japan
- Prior art keywords
- data
- touch panel
- mouse
- mouse pointer
- position information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
Description
本発明は、タッチパネルやタブレットなどのタッチ位置データをマウスデータに変換して、ホストPCのモニタ画面上にマウスポインタを表示させる位置情報変換装置及びこの装置用のデータ出力プログラムに関する。 The present invention relates to a position information conversion apparatus that converts touch position data such as a touch panel or a tablet into mouse data and displays a mouse pointer on a monitor screen of a host PC, and a data output program for the apparatus.
コンピュータに接続して使用するポインティングデバイスとしては、マウスやトラックボールが一般的であるが、このほかに、指やペンなどでパネルにタッチすることで画面上の位置を指示したり、手書き文字の入力などを行うことができるタッチパネル付きの表示装置(以下、タッチパネルと称する。)やタブレットがある。 As a pointing device used by connecting to a computer, a mouse or a trackball is generally used, but in addition to this, the position on the screen can be indicated by touching the panel with a finger or a pen, or a handwritten character can be used. There are display devices with a touch panel (hereinafter referred to as touch panels) and tablets that can perform input and the like.
操作ボタンを2つ備えた一般的な形状のマウスやトラックボールの場合、OS(Operating System)に標準的に付属しているデバイスドライバを使用できるので、デバイスドライバを別途用意する必要はない。しかし、タッチパネルやタブレットは、メーカや機種によって出力データの形式が異なるため、個別にデバイスドライバが必要であった。また、タッチパネルやタブレットに添付されているデバイスドライバは、使用できるOSが限られている場合が多い。そのため、OSによってはタッチパネルやタブレットを使用できない場合があった。 In the case of a mouse or a trackball having a general shape with two operation buttons, a device driver that comes standard with an OS (Operating System) can be used, so there is no need to prepare a device driver separately. However, since the output data format of the touch panel or tablet differs depending on the manufacturer or model, an individual device driver is required. In many cases, device drivers attached to touch panels and tablets have limited OSs that can be used. For this reason, a touch panel or a tablet may not be used depending on the OS.
そこで、タッチパネルのタッチ位置データをマウスデータに置き換える変換装置が提案されている。例えば、タッチパネルの操作によって入力されるデータを、マウスの操作によって生成されるべきフォーマットのマウス互換データに変換して、マウスポートへ出力することで、特別なデバイスドライバやユーティリティソフトウェアを用いることなく、タッチパネルを情報処理装置本体に接続することができるマウスエミュレート回路が開示されている(例えば、特許文献1参照。)。
特許文献1に記載のマウスエミュレート回路では、複数のOS用のデバイスドライバを用意しておくことで、タッチパネル用の特別なデバイスドライバやユーティリティソフトウェアを用いることなく、タッチパネルを情報処理装置本体に接続して使用することができる。しかしながら、タッチパネルやタブレットは、上記のようにメーカや機種によって出力データの形式が異なっている。そのため、特許文献1に記載のマウスエミュレート回路の場合、タッチパネルの機種を変更する場合には、その機種に応じて個別にマウスエミュレート回路も変更しなければならない。そのため、タッチパネル付き表示装置の機種を容易に変更できないという問題があった。
In the mouse emulation circuit described in
また、特許文献1に記載のマウスエミュレート回路では、マウスポインタを次のポイントに移動させる際に、マウスポインタを一度原点に移動させてから次のポイント(座標)に移動させるという演算処理を行っている。これにより、マウスポインタの位置とタッチ位置とを正確に一致させることができる。しかしながら、マウスをドラッグ操作するように、タッチパネルを指やペン先などでタッチしたまま移動させる動作を行った場合、タッチ付き表示装置はこの操作中には常に上記の演算処理を行うため、負荷が大きくなってマウスポインタの追従性が悪くなるなどの問題が発生する。
In the mouse emulation circuit described in
さらに、特許文献1に記載のマウスエミュレート回路は、タッチ位置のデータをマウスデータに変換して情報処理装置本体に出力する構成であるため、情報処理装置本体でデータが受信されているか否かの確認はディスプレイに表示されるマウスポインタの位置を確認するしかなかった。そのため、場合によっては、マウスポインタが位置ずれを起こす場合があった。
Furthermore, since the mouse emulation circuit described in
そこで、本発明は、タッチパネルの機種にかかわらず、タッチパネルのタッチ位置データをマウスデータに変換してホストPCに出力し、またホストPCでのマウスデータの受信状態を確認できる位置情報変換装置及びこの装置用のデータ出力プログラムを提供することを目的とする。 Therefore, the present invention converts the touch position data of the touch panel into mouse data and outputs it to the host PC regardless of the type of the touch panel, and a position information conversion apparatus capable of confirming the reception state of the mouse data at the host PC, and this An object is to provide a data output program for a device.
この発明は、上記の課題を解決するための手段として、以下の構成を備えている。 The present invention has the following configuration as means for solving the above problems.
(1)マウスを接続するポートから入力されたマウスデータに基づいてモニタ画面上にマウスポインタを表示させるとともにマウスポインタの位置座標データ及びマウスデータの設定パラメータを出力するホストコンピュータに対して、タッチパネルのタッチ位置データをマウスデータに変換して出力する位置情報変換装置であって、
前記モニタ画面上に表示されている現在のマウスポインタの位置座標データを前記ホストコンピュータから取得するマウスポインタ座標取得手段と、
タッチパネルのタッチ位置の絶対座標データをマウスポインタの位置座標データに変換し、この位置座標データと、前記マウスポインタ座標取得手段が取得した現在のマウスポインタの位置座標データと、からマウスポインタの移動量を計算して、マウスデータとして前記ホストコンピュータへ出力する演算手段と、
を備えたことを特徴とする。
(1) A mouse pointer is displayed on the monitor screen based on mouse data input from a port to which a mouse is connected, and a touch panel is output to a host computer that outputs mouse pointer position coordinate data and mouse data setting parameters. A position information conversion device that converts touch position data into mouse data and outputs the mouse data,
Mouse pointer coordinate acquisition means for acquiring the position coordinate data of the current mouse pointer displayed on the monitor screen from the host computer;
The absolute coordinate data of the touch position of the touch panel is converted into the position coordinate data of the mouse pointer, and the amount of movement of the mouse pointer from the position coordinate data and the current mouse pointer position coordinate data acquired by the mouse pointer coordinate acquisition means Computing means for calculating and outputting to the host computer as mouse data;
It is provided with.
この構成においては、位置情報変換装置は、タッチパネルのタッチ位置の座標データと、ホストコンピュータから取得した現在のマウスポインタの位置座標データと、からマウスポインタの移動量を計算してマウスデータを出力する。したがって、タッチ位置データを確実にマウスデータに変換して表示させることができる。また、位置情報変換装置は、毎回、ホストコンピュータから現在のマウスポインタの位置座標データを取得して、このデータを用いてマウスポインタの移動量を計算し、マウスが出力するエンコーダパルスに相当する信号であるマウスデータを出力するので、積分誤差や量子化誤差などが発生することなく、正確にタッチ位置にマウスポインタを表示させることができる。 In this configuration, the position information conversion apparatus calculates the amount of movement of the mouse pointer from the coordinate data of the touch position of the touch panel and the current position data of the mouse pointer acquired from the host computer, and outputs the mouse data. . Therefore, touch position data can be reliably converted into mouse data and displayed. Further, the position information conversion device acquires the current position coordinate data of the mouse pointer from the host computer, calculates the amount of movement of the mouse pointer using this data, and outputs a signal corresponding to the encoder pulse output by the mouse. Since the mouse data is output, the mouse pointer can be accurately displayed at the touch position without causing an integration error or a quantization error.
なお、タッチパネルには、モニタの画面上に取り付けられたタッチパネルだけでなく、机上などで使用するタブレットやタッチパネルなどのポインティングデバイスを含むものとする。また、マウスには、トラックボール、タッチパッドなどのポインティングデバイスを含むものとする。 Note that the touch panel includes not only a touch panel attached on a monitor screen but also a pointing device such as a tablet or a touch panel used on a desk or the like. The mouse includes a pointing device such as a trackball or a touch pad.
(2)タッチパネルの機種判別コマンド、及びタッチパネルのタッチ位置座標データをマウスポインタの位置座標データに変換するデータ変換モジュールを、タッチパネルの機種毎に複数記憶する記憶手段と、
タッチパネルが接続されると、前記記憶手段から機種判別コマンドを読み出して、このタッチパネルから応答があるまで機種判別コマンドを順次切り換えながら出力する機種判別手段と、を備え、
前記演算手段は、前記タッチパネルから応答があった機種判別コマンドを使用する機種用のデータ変換モジュールを前記記憶手段から読み出して、タッチパネルのタッチ位置の絶対座標データをマウスポインタの位置座標データに変換することを特徴とする。
(2) Storage means for storing a plurality of touch panel model determination commands and a data conversion module for converting touch panel touch position coordinate data into mouse pointer position coordinate data for each touch panel model;
When a touch panel is connected, it comprises a model discrimination means for reading a model discrimination command from the storage means and outputting the model discrimination command while sequentially switching until there is a response from the touch panel,
The arithmetic means reads out a data conversion module for a model that uses a model discrimination command responded from the touch panel from the storage means, and converts absolute coordinate data of the touch position of the touch panel into position coordinate data of the mouse pointer. It is characterized by that.
この構成においては、位置情報変換装置はタッチパネルが接続されると、このタッチパネルに対して順次切り換えながら異なるタッチパネル用の機種判別コマンドを出力し、応答があった機種判別コマンドを使用するデータ変換モジュールを記憶手段から読み出す。そして、このデータ変換モジュールにより、タッチパネルのタッチ位置の座標データと、ホストコンピュータから取得した現在のマウスポインタの位置座標データと、からマウスポインタの移動量を計算してマウスデータを出力する。したがって、接続されたタッチパネルの機種にかかわらず、タッチ位置データを確実にマウスデータに変換して表示させることができる。また、ユーザは任意のタッチパネルを選択することができ、タッチパネルの機種変更も容易に行うことができる。 In this configuration, when the touch panel is connected to the position information conversion device, a model conversion command for a different touch panel is output while sequentially switching to the touch panel, and a data conversion module that uses the response type determination command is provided. Read from storage means. The data conversion module calculates the amount of movement of the mouse pointer from the coordinate data of the touch position of the touch panel and the current position data of the mouse pointer acquired from the host computer, and outputs the mouse data. Therefore, regardless of the connected touch panel model, the touch position data can be reliably converted into mouse data and displayed. Further, the user can select an arbitrary touch panel, and can easily change the model of the touch panel.
(3)ホストコンピュータの制御部に、このコンピュータに接続されたモニタに現在表示中のマウスポインタの位置座標データ及びマウスデータの設定パラメータをデータ出力ポートから出力させることを特徴とする。 (3) The control unit of the host computer outputs the position coordinate data of the mouse pointer currently displayed on the monitor connected to the computer and the setting parameter of the mouse data from the data output port.
この構成においては、位置情報変換装置用データ出力プログラムをコンピュータにロードすることで、このコンピュータに接続されたモニタに現在表示中のマウスポインタの位置座標データ、及びマウスデータの設定パラメータをデータ出力ポートから出力させることができる。したがって、このコンピュータのデータ出力ポートを位置情報変換装置のマウスポインタ座標取得手段に接続することで、位置情報変換装置は、ホストコンピュータからマウスポインタの現在の位置情報をや設定パラメータの情報を取得できるので、タッチパネルのタッチ位置をマウスデータに変換しても、これらの情報に基づいてマウスポインタを正確に移動させることができる。なお、マウスデータの設定パラメータとは、マウスポインタの移動速度や、マウスの移動量とマウスポインタの移動量との比のデータなど、マウスを接続するポートから入力されたマウスデータに基づいてモニタ画面上にマウスポインタを表示させるための情報データのことである。 In this configuration, by loading the data output program for the position information converter into the computer, the position coordinate data of the mouse pointer currently displayed on the monitor connected to the computer and the setting parameters of the mouse data are output to the data output port. Can be output from. Therefore, by connecting the data output port of this computer to the mouse pointer coordinate acquisition means of the position information conversion apparatus, the position information conversion apparatus can acquire the current position information of the mouse pointer and the setting parameter information from the host computer. Therefore, even if the touch position of the touch panel is converted into mouse data, the mouse pointer can be accurately moved based on such information. The mouse data setting parameters are the monitor screen based on the mouse data input from the port to which the mouse is connected, such as the movement speed of the mouse pointer and the data of the ratio of the mouse movement amount to the mouse pointer movement amount. It is information data for displaying the mouse pointer on the top.
本発明の位置情報変換装置は、タッチパネルが接続されると、このタッチパネルのコントローラに対して特定のコマンドを送信し、それに対する反応の有無を判別して機種を特定し、そのタッチパネルに応じたデータ変換モジュールをロードするので、その機種に応じてタッチ位置データをマウスデータに変換して表示させることができる。したがって、ユーザは任意のタッチパネルを選択することができ、タッチパネルの機種変更が容易になる。 When the touch panel is connected, the position information conversion device of the present invention transmits a specific command to the controller of the touch panel, determines the presence or absence of a response to the controller, specifies the model, and data corresponding to the touch panel Since the conversion module is loaded, the touch position data can be converted into mouse data for display according to the model. Therefore, the user can select an arbitrary touch panel, and the model of the touch panel can be easily changed.
また、マウスポインタを移動させる際に、タッチパネルから移動先の位置座標を取得するとともに、ホストPCから現在表示されているマウスポインタの位置座標を取得して、両座標から移動量を演算してマウスデータを生成・送信するので、マウスポインタの追従性が良くなる。さらに、マウスポインタ移動後の位置座標を次回のマウスデータ生成に使用するので、量子化誤差などの位置ずれを無くすことができる。 In addition, when moving the mouse pointer, the position coordinates of the movement destination are acquired from the touch panel, the position coordinates of the currently displayed mouse pointer are acquired from the host PC, the amount of movement is calculated from both coordinates, and the mouse is calculated. Since the data is generated and transmitted, the followability of the mouse pointer is improved. Furthermore, since the position coordinates after moving the mouse pointer are used for the next generation of mouse data, it is possible to eliminate positional deviations such as quantization errors.
図1は、本発明の実施形態に係る位置情報変換装置の概略構成を示すブロック図である。図1に示すように、位置情報変換装置1は、タッチパネル付き表示装置2及びホストPC3に接続し、タッチパネル付き表示装置2のタッチ位置データをマウスデータに変換してホストPC3に出力し、タッチパネル付き表示装置2に表示させるマウスポインタをタッチ位置に同期させる構成である。位置情報変換装置1は、このように動作するので、タッチパネル付き表示装置をホストPCに接続して常用する場合だけでなく、異なる機種のタッチパネル付き表示装置を交換しながらソフトウェアの動作を評価する場合などに使用することができる。
FIG. 1 is a block diagram showing a schematic configuration of a position information conversion apparatus according to an embodiment of the present invention. As shown in FIG. 1, the position
また、タッチパネル部を交換しながら異なる機種について動作を評価する場合には、モニタ23をホストPC3に常時接続して、タッチパネル部のみを別の機種に交換すると良い。
When evaluating the operation of different models while exchanging the touch panel unit, it is preferable to always connect the
位置情報変換装置1は、タッチパネルデータ送受信部11、データコントローラ12、CPU13、メモリ14、表示部15、マウスデータ送信部16、及びポインタ座標データ受信部17を備えている。また、タッチパネル付き表示装置2は、タッチパネル21、タッチパネルコントローラ22、及びモニタ23を備えており、タッチパネル21とタッチパネルコントローラ22によりタッチパネル部が構成されている。ホストPC3は、データポート31、マウスポート32、モニタポート33、通信ポート34、メモリ35、及びプロセッサ36を備えている。
The position
位置情報変換装置1は、タッチパネルデータ送受信部11をタッチパネル付き表示装置2のタッチパネルコントローラ22に接続し、マウスデータ送信部16をホストPC3のマウスポート32に接続し、ポインタ座標データ受信部17をホストPC3のデータポート31に接続して使用する。また、このとき、ホストPC3のモニタポート33をタッチパネル付き表示装置2のモニタ23に接続して使用する。
The position
位置情報変換装置1において、タッチパネルデータ送受信部11は、タッチパネルコントローラ22とデータの送受信を行うためのものである。すなわち、タッチパネルデータ送受信部11は、タッチパネルコントローラ22から応答があるまで機種判別コマンドを別の機種のものへ切換ながら出力し、タッチパネルコントローラ22から応答があった場合には、その応答データを受信する。
In the position
データコントローラ12は、タッチパネルデータ送受信部11、マウスデータ送信部16、及びポインタ座標データ受信部17を介してタッチパネル付き表示装置2やホストPC3とやりとりするデータを制御する。
The
CPU13は、位置情報変換装置1の各部の制御や演算を行う。また、CPU13は、メモリ14からデータ変換モジュールやマウスデータ生成モジュールを読み出して、タッチパネルのタッチ位置の座標データをマウスデータ(マウスポインタの座標データ)に変換したり、マウスポインタの移動量データを計算したりする。
The
メモリ14は、タッチパネルコントローラ22に対して出力するタッチパネルの機種判別コマンド、及びタッチパネル21のタッチ位置座標データをマウスポインタの位置座標データに変換するデータ変換モジュールを、複数のタッチパネル付き表示装置について記憶している。また、メモリ14は、タッチパネルのタッチ位置の座標データをマウスポインタの位置座標データに変換したデータと、モニタ23に現在表示中のマウスポインタの位置座標データと、からマウスポインタの移動量データを計算するマウスデータ生成モジュールCを記憶している。さらに、メモリ14は、データを書き換え可能であり、例えばフラッシュメモリで構成されている。
The
表示部15は、CPU13から出力された信号に基づいて位置情報変換装置1のユーザに伝達すべき情報を表示する。
The
マウスデータ送信部16は、CPU13から出力されて、データコントローラ12を介して送られてきたマウスデータをホストPC3へ送信する。
The mouse
ポインタ座標データ受信部17は、ホストPC3のデータポート31から出力されたモニタ23に現在表示中のマウスポインタの位置座標データを受信して、データコントローラ12へこのデータを出力する。
The pointer coordinate
タッチパネル付き表示装置2において、タッチパネル21は、ユーザが付属のスタイラスペンや指などでその表面をタッチされると、その位置情報(絶対座標データ)をタッチパネルコントローラ22へ出力する。
In the
タッチパネルコントローラ22は、タッチパネル21のタッチ位置情報を位置情報変換装置1のタッチパネルデータ送受信部11へ出力する。また、タッチパネルコントローラ22は、位置情報変換装置1から送信された機種判別コマンドを受信し、その機種判別コマンドが認識可能であると、この機種判別コマンドに対する応答データを出力する。機種判別コマンドとしては、機種名を問い合わせるコマンドを備えていないタッチパネル付き表示装置2の場合には、例えば、自己診断結果を問い合わせるコマンドを機種判別コマンドとして使用すると良い。このコマンドは、タッチパネル付き表示装置2のメーカや機種に応じて異なっているため、機種を判別するためのコマンドとして適している。もちろん、機種判別コマンドとしては、別のコマンドを使用することも可能である。なお、機種名を問い合わせるコマンドを備えているタッチパネル付き表示装置2の場合には、この機種問い合わせコマンドを使用するようにすることもできる。
The touch panel controller 22 outputs touch position information on the touch panel 21 to the touch panel data transmission /
モニタ23は、ホストPC3のモニタポート33から出力された文字・図形・マウスポインタなどの画像データに基づいて、これらの画像を表示する。
The
ホストPC3において、データポート31は、モニタ23に現在表示しているマウスポインタの位置情報(座標データ)やマウスデータの設定パラメータを位置情報変換装置1へ出力する。ここで、マウスデータの設定パラメータとは、マウスポインタの移動速度や、マウスの移動量とマウスポインタの移動量との比のデータなど、マウスを接続するポートから入力されたマウスデータに基づいてモニタ画面上にマウスポインタを表示させるための情報データのことである。
In the
マウスポート32は、位置情報変換装置1のマウスデータ送信部16から出力されたマウスデータを受信してプロセッサ36へ出力する。モニタポート33は、モニタ23に表示させる画像データを出力する。通信ポート34は、インターネット41に接続され、インターネット41の各サーバから各種の情報を取得することができる。メモリ35は、プロセッサ36で実行するプログラムや各装置のドライバを記憶する。
The
プロセッサ36は、ホストPC3の各部を制御するとともに、演算処理などを行う。また、プロセッサ36は、メモリ35から位置情報変換装置用ドライバ37、マウスドライバ38、及びモニタドライバ39を読み出してロードする。ここで、プロセッサ36は、位置情報変換装置用ドライバ37をロードすることで、位置情報変換装置1に対して、モニタ23に現在表示中のマウスポインタの位置座標データやマウスデータの設定パラメータ、すなわち、マウスポインタの移動速度や、マウスの移動量とマウスポインタの移動量との比のデータなど、マウスを接続するポートから入力されたマウスデータに基づいてモニタ画面上にマウスポインタを表示させるための情報データをデータポート31から出力することが可能となる。また、プロセッサ36は、マウスドライバ38をロードすることで、マウスポート32から入力されたマウスデータに基づいてモニタ23に表示させるマウスポインタの位置を制御することが可能となる。さらに、プロセッサ36は、モニタドライバ39をロードすることで、文字・図形・マウスポインタなどの画像をモニタ23に表示することが可能となる。
The
なお、位置情報変換装置1とホストPC3とは、RS−232CやUSBなどのシリアルバスを利用して接続すると良い。また、USBを使用する場合には、ホストPC3から位置情報変換装置1に対して電源を供給するようにしても良い。また、位置情報変換装置1とホストPC3とは、もちろん、パラレルバスを利用して接続しても良い。
Note that the location
次に、位置情報変換装置1の動作を説明する。図2は、モニタ画面に表示するマウスポインタの位置座標の関係を示す図である。位置情報変換装置1は、タッチパネル付き表示装置2が接続されると、タッチパネルコントローラ22に対して機種判別コマンドを送信して、そのタッチパネルの機種判別を行う。前記のように、一般的なタッチパネル付き表示装置は、メーカや機種によって出力データの形式が異なり、通常、ホストPCに接続された際に機種名が判別できる信号を出力するような仕様になっていない。一方、タッチパネル付き表示装置は、通常、起動時に自己診断を行い、その結果を内部に保持するように設定されている。そこで、本発明の実施形態に係る位置情報変換装置1は、接続されたタッチパネルに対して、自己診断結果の問い合わせコマンドを送信し、一定時間が経過するまでに応答があるか否かを確認する。そして、このコマンドに対して応答がない場合には、そのコマンドを使用可能な機種と異なる機種であるため、メモリ14から別の機種の自己診断結果問い合わせコマンドを読み出して、このコマンドをタッチパネルデータ送受信部11から送信して、その応答を確認する。位置情報変換装置1は、タッチパネル付き表示装置2から応答データが送られてくるまで、この動作を続ける。応答の有無を確認する時間は、例えば1秒などの一定時間に予め設定しておくと良い。また、この一定時間は、タッチパネル付き表示装置の応答時間などに応じて変更可能である。
Next, the operation of the position
一方、位置情報変換装置1は、タッチパネル付き表示装置2から応答があった場合には、その問い合わせコマンドを使用する機種用のデータ変換モジュールをメモリ14から読み出してロードする。さらに、CPU13は、このデータ変換モジュールを用いて、タッチパネルコントローラ22から出力されたタッチパネル21のタッチ位置座標データをマウスポインタの位置座標データ、つまり移動すべきマウスポインタの位置座標データB(X1,Y1)に変換する。続いて、CPU13は、ホストPC3のデータポート31から出力されているモニタ23に現在表示中のマウスポインタの位置座標データA(X0,Y0)を、ポインタ座標データ受信部17を介して取得する。さらに、CPU13は、メモリ14からマウスデータ生成モジュールを読み出してロードし、このモジュールを使用してA点とB点の位置座標データから、その差のデータであるマウスポインタの移動量データ(dx,dy)を計算して、マウスデータ(マウスプロトコルデータ)を生成する。そして、CPU13は、データコントローラ12にマウスデータ送信部16を介してマウスポート32へ、このマウスデータを出力させる。ホストPC3のプロセッサ36は、マウスポート32から入力されたマウスデータに基づいて、モニタ23に表示中のマウスポインタの位置を移動させる。位置情報変換装置1は、上記の処理を繰り返すことで、モニタ23に表示中のマウスポインタの位置を順次移動させる。
On the other hand, when there is a response from the
なお、現在表示中のマウスポインタの位置座標データAは、移動すべきマウスポインタの位置座標データBの取得前に取得するようにしても良い。 Note that the position coordinate data A of the currently displayed mouse pointer may be acquired before acquiring the position coordinate data B of the mouse pointer to be moved.
このように、本発明の位置情報変換装置は、タッチパネル(タッチパネル付き表示装置)が接続されると、このタッチパネルのコントローラに対して機種判別コマンドを送信し、それに対する反応があるまでコマンドを別の機種のものに順次切り換えることで機種を特定し、そのタッチパネルに応じたデータ変換モジュールをロードするので、その機種に応じてタッチ位置データをマウスデータに変換して表示させることができる。これにより、ユーザは任意のタッチパネルを選択することができ、タッチパネルの機種変更が容易になる。 As described above, when the touch panel (display device with a touch panel) is connected, the position information conversion apparatus of the present invention transmits a model determination command to the controller of the touch panel, and sends another command until there is a response to the command. Since the model is specified by sequentially switching to the model and the data conversion module corresponding to the touch panel is loaded, the touch position data can be converted into mouse data and displayed according to the model. Thereby, the user can select an arbitrary touch panel, and the model change of the touch panel is facilitated.
また、マウスポインタを移動させる際に、タッチパネルから移動先の位置座標を取得するとともに、ホストPCから現在表示されているマウスポインタの位置座標を取得して、両座標から移動量を演算してマウスデータを生成・送信するので、マウスポインタの追従性が良くなる。また、マウスポインタ移動後の位置座標を次回のマウスデータ生成に使用するので、量子化誤差などの位置ずれを無くすことができる。 In addition, when moving the mouse pointer, the position coordinates of the movement destination are acquired from the touch panel, the position coordinates of the currently displayed mouse pointer are acquired from the host PC, the amount of movement is calculated from both coordinates, and the mouse is calculated. Since the data is generated and transmitted, the followability of the mouse pointer is improved. In addition, since the position coordinates after moving the mouse pointer are used for the next generation of mouse data, it is possible to eliminate positional deviation such as quantization error.
ここで、位置情報変換装置1は、タッチパネル付き表示装置2から応答があると、その機種名をメモリ14に保持するように設定することができる。このように設定した場合、位置情報変換装置1は、電源を再投入された時などにメモリ14からこの機種名を読み出して、タッチパネル付き表示装置2に対して、まずこの機種の自己診断結果問い合わせコマンド(機種判別コマンド)を送信する。これにより、タッチパネル付き表示装置2の接続が分離されるまで、電源が再投入される毎に、タッチパネル付き表示装置2の機種をすぐに判別することができる。
Here, when there is a response from the
また、位置情報変換装置1では、メモリ14が記憶している判別コマンドやデータ変換モジュールを、ホストPC3を介して更新可能である。すなわち、ホストPC3は、通信ポート34を介してインターネット41に接続されているので、位置情報変換装置1をデータ追加・更新モードに設定して、タッチパネル付き表示装置のデータ変換モジュールや機種判別コマンド(機種問い合わせコマンド)を配布しているWebサイト42から新たな機種用のデータを取得し、データポート31を介してメモリ14のデータを追加・更新することができる。
Further, in the position
次に、位置情報変換装置1の具体的な動作についてフローチャートを用いて説明する。図3は、位置情報変換装置にタッチパネル付き表示装置が接続された時の動作を説明するためのフローチャートである。ここで、図3に示すフローチャートでは、説明を簡略化するために、位置情報変換装置1は、A社のある機種・B社のある機種の2種類のタッチパネル機種判別コマンドをメモリ14に格納している場合について説明する。
Next, a specific operation of the position
図3に示すように、位置情報変換装置1のCPU13は、タッチパネルデータ送受信部11にタッチパネル付き表示装置2が接続されるまで待機しており、タッチパネル付き表示装置2が接続されたことを検出すると(s1)、タッチパネル付き表示装置2の機種判別コマンドとしてA社製品の自己診断の問い合わせコマンドをメモリ14から読み出して、データコントローラ12を介してタッチパネルデータ送受信部11からタッチパネルコントローラ22へ、このコマンドを送信する(s2)。
As shown in FIG. 3, the
CPU13は、予め設定された一定時間が経過するまでの間に、タッチパネルコントローラ22から、このコマンドに対する応答があるか否かを確認する(s3)。そして、このコマンドに対して応答があった場合には、CPU13は、A社製品用のデータ変換モジュールAをメモリ14から読み出してロードする(s4)。続いて、CPU13は、表示部15に「A社タッチパネル変換システム」と表示する(s5)。これにより、位置情報変換装置1は、A社のタッチパネルデータを受信可能な状態となる(s6)。
The
一方、CPU13は、所定の時間が経過してもタッチパネルコントローラ22から、このコマンドに対する応答がない場合には、続いて、タッチパネルの機種判別コマンドとしてB社製品の自己診断の問い合わせコマンドをメモリ14から読み出して、データコントローラ12を介してタッチパネルデータ送受信部11からタッチパネル側へ、このコマンドを送信する(s11)。
On the other hand, if there is no response to this command from the touch panel controller 22 even after a predetermined time has elapsed, the
CPU13は、予め設定された一定時間が経過するまでの間に、タッチパネルコントローラ22から、このコマンドに対する応答があるか否かを確認する(s12)。そして、このコマンドに対して応答があった場合には、CPU13は、メモリ14からB社製品用のデータ変換モジュールBを読み出してロードする(s13)。さらに、表示部15に「B社タッチパネル変換システム」と表示する(s14)。これにより、位置情報変換装置1は、A社のタッチパネルデータを受信可能な状態となる(s6)。
The
一方、CPU13は、予め設定された一定時間が経過してもタッチパネルコントローラ22からこのコマンドに対する応答がない場合には、表示部15に例えば「本システムは、この機種に対応していません。」と表示して(s15)、処理を終了する。
On the other hand, if the
次に、位置情報変換装置1にタッチパネル付き表示装置2を接続後に、タッチパネルのタッチ位置座標データをマウスデータに変換する動作について説明する。図4は、タッチパネルデータ受信時の位置情報変換装置の動作を説明するためのフローチャートである。なお、位置情報変換装置1には、タッチパネル付き表示装置2としてA社のある機種が接続されたことを既に検出しており、CPU13には、A社のタッチパネル付き表示装置2が出力した絶対座標データをマウスポインタの位置座標データに変換するデータ変換モジュールAが、メモリ14から既に読み出されてロードされているものとする。また、CPU13には、マウスデータ変換モジュールが、メモリ14から既に読み出されてロードされているものとする。
Next, an operation of converting touch position coordinate data of the touch panel into mouse data after connecting the
位置情報変換装置1のCPU13は、タッチパネルコントローラ22から出力されたタッチパネル21のタッチ位置の座標データを受信するまで待機している。CPU13は、ユーザがタッチパネル21をタッチした位置B点の絶対座標データを受信すると(s21)、このデータをデータ変換モジュールAにより、モニタ23にマウスポインタを表示した場合の位置座標データB(X1,Y1)に変換する(s22)。
The
続いて、CPU13は、ホストPC3のモニタ23において現在表示中のマウスポインタの位置座標データA(X0,Y0)をポインタ座標データ受信部17を介して取得する(s23)。
Subsequently, the
そして、CPU13は、マウスデータ生成モジュールを使用して、次に表示する座標B(X1,Y1)と現在表示中の座標A(X0,Y0)とからその差のデータである移動量データ(dx,dy)=(X1−X0,Y1−Y0)を計算して、マウスプロトコルデータを生成する(s24)。さらに、CPU13は、このマウスプロトコルデータをマウスデータ送信部16からホストPC3へ送信する(s25)。
Then, using the mouse data generation module, the
CPU13は、タッチパネルコントローラ22からタッチ位置の座標データをタッチパネルデータ送受信部11が受信しているか否か、つまり、ユーザがタッチパネル21の別の位置をタッチしたり(マウスのクリック操作に相当)、タッチしながらそのポイントを移動したり(マウスのドラッグ操作に相当)しているかを確認する(s26)。CPU13は、タッチ位置の座標データを引き続き受信している場合には、s22以降の処理を行う。一方、CPU13は、タッチ位置の座標データを受信していない場合には、ユーザがタッチパネル21へのタッチをやめているので、タッチパネルへのタッチが停止されたことを伝える情報(マウスの左クリック停止に相当する情報)を含むマウスプロトコルデータを、マウスデータ生成モジュールを用いて生成する。そして、このマウスプロトコルデータをマウスデータ送信部16からホストPC3へ送信する(s27)。続いて、ステップs21の処理を行う。
The
1−位置情報変換装置
2−タッチパネル付き表示装置
3−ホストPC
11−タッチパネルデータ送受信部
12−データコントローラ
13−CPU
14−メモリ
15−表示部
16−マウスデータ送信部
17−ポインタ座標データ受信部
1-position information conversion device 2-display device with touch panel 3-host PC
11-Touch panel data transmission / reception unit 12-Data controller 13-CPU
14-memory 15-display unit 16-mouse data transmission unit 17-pointer coordinate data reception unit
Claims (3)
前記モニタ画面上に表示されている現在のマウスポインタの位置座標データを前記ホストコンピュータから取得するマウスポインタ座標取得手段と、
タッチパネルのタッチ位置の絶対座標データをマウスポインタの位置座標データに変換し、この位置座標データと、前記マウスポインタ座標取得手段が取得した現在のマウスポインタの位置座標データと、からマウスポインタの移動量を計算して、マウスデータとして前記ホストコンピュータへ出力する演算手段と、
を備えたことを特徴とする位置情報変換装置。 Touch position data on the touch panel for the host computer that displays the mouse pointer on the monitor screen based on the mouse data input from the port to which the mouse is connected and outputs the mouse pointer position coordinate data and mouse data setting parameters Is a position information conversion device that converts mouse data to output,
Mouse pointer coordinate acquisition means for acquiring the position coordinate data of the current mouse pointer displayed on the monitor screen from the host computer;
The absolute coordinate data of the touch position of the touch panel is converted into the position coordinate data of the mouse pointer, and the amount of movement of the mouse pointer from the position coordinate data and the current mouse pointer position coordinate data acquired by the mouse pointer coordinate acquisition means Computing means for calculating and outputting to the host computer as mouse data;
A position information conversion device comprising:
タッチパネルが接続されると、前記記憶手段から機種判別コマンドを読み出して、このタッチパネルから応答があるまで機種判別コマンドを順次切り換えながら出力する機種判別手段と、を備え、
前記演算手段は、前記タッチパネルから応答があった機種判別コマンドを使用する機種用のデータ変換モジュールを前記記憶手段から読み出して、タッチパネルのタッチ位置の絶対座標データをマウスポインタの位置座標データに変換する請求項1に記載の位置情報変換装置。 Storage means for storing a plurality of touch panel model identification commands and touch panel coordinate data of the touch panel into position data of the mouse pointer, for each touch panel model;
When a touch panel is connected, it comprises a model discrimination means for reading a model discrimination command from the storage means and outputting the model discrimination command while sequentially switching until there is a response from the touch panel,
The arithmetic means reads out a data conversion module for a model that uses a model discrimination command responded from the touch panel from the storage means, and converts absolute coordinate data of the touch position of the touch panel into position coordinate data of the mouse pointer. The position information conversion apparatus according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004080575A JP2005267377A (en) | 2004-03-19 | 2004-03-19 | Position information conversion device, and data output program for position information conversion device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004080575A JP2005267377A (en) | 2004-03-19 | 2004-03-19 | Position information conversion device, and data output program for position information conversion device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005267377A true JP2005267377A (en) | 2005-09-29 |
Family
ID=35091849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004080575A Pending JP2005267377A (en) | 2004-03-19 | 2004-03-19 | Position information conversion device, and data output program for position information conversion device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005267377A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012043400A (en) * | 2010-08-16 | 2012-03-01 | Fuji Xerox Co Ltd | Information processing system, information processing method and computer program |
CN109961479A (en) * | 2017-12-25 | 2019-07-02 | 大族激光科技产业集团股份有限公司 | Localization method and welding streamline applied to battery modules bus welding streamline |
-
2004
- 2004-03-19 JP JP2004080575A patent/JP2005267377A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012043400A (en) * | 2010-08-16 | 2012-03-01 | Fuji Xerox Co Ltd | Information processing system, information processing method and computer program |
CN109961479A (en) * | 2017-12-25 | 2019-07-02 | 大族激光科技产业集团股份有限公司 | Localization method and welding streamline applied to battery modules bus welding streamline |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8836653B1 (en) | Extending host device functionality using a mobile device | |
US20090135153A1 (en) | Display system, display device, and program | |
US20090058804A1 (en) | Information processing apparatus, kvm switch, server, and computer readable medium | |
US20170277614A1 (en) | Intelligent test robot system | |
JP2022126793A (en) | Method and device for controlling terminal, electronic apparatus, storage medium, and computer program | |
JP2014219885A (en) | Test support method and test support system | |
KR20160052952A (en) | Block and user terminal for modeling 3d shape and the method for modeling 3d shape using the same | |
CN107783669A (en) | Cursor generation system, method and computer program product | |
US10691254B2 (en) | Serial communication method and sensor controller | |
CN111531551A (en) | Safety demonstrator using universal tablet computer and demonstration method | |
US20160171132A1 (en) | Simulation device and simulation program | |
JP2024010237A (en) | Information input device, method, and program | |
US9285915B2 (en) | Method of touch command integration and touch system using the same | |
JP2005267377A (en) | Position information conversion device, and data output program for position information conversion device | |
US10461997B2 (en) | Information processing device and program | |
US11327601B2 (en) | Serial communication method and sensor controller | |
JP4054812B2 (en) | Coordinate input method, information processing apparatus, information processing system, and storage medium | |
JP2010176241A (en) | Programmable indicator, apparatus monitoring system, and control program | |
CN101251777A (en) | Computer system and control method thereof | |
JP2017151563A (en) | Information processing device, control method thereof, and program | |
JP6938234B2 (en) | Display system | |
JP5812608B2 (en) | I / O device switching system and switch | |
CN102722250A (en) | Method and system for interactive editing of image control points | |
CN209911963U (en) | Multicomputer switcher | |
EP2629184B1 (en) | Information processing system, information processing method, information processing program, and computer-readable recording medium on which information processing program is stored |