TWI709071B - Touch pad driving system and method - Google Patents
Touch pad driving system and method Download PDFInfo
- Publication number
- TWI709071B TWI709071B TW107147411A TW107147411A TWI709071B TW I709071 B TWI709071 B TW I709071B TW 107147411 A TW107147411 A TW 107147411A TW 107147411 A TW107147411 A TW 107147411A TW I709071 B TWI709071 B TW I709071B
- Authority
- TW
- Taiwan
- Prior art keywords
- touch
- touchpad
- touch panel
- controller
- driver
- Prior art date
Links
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
Description
本發明係關於觸控板之技術領域,尤指一種觸控板驅動系統及方法。The present invention relates to the technical field of touch panels, in particular to a touch panel driving system and method.
觸控板(touch pad)在各類消費性電子產品及電腦裝置上,已逐漸成為標準配備,例如,在現今之筆記型電腦上皆具有一觸控板,以提供使用者除了滑鼠、鍵盤之外的另一種輸入功能,且隨著觸控感測技術之發展,觸控板也已由僅提供單指操控功能進步至能以各種不同觸控手勢來進行多種輸入,更增加了觸控板之應用性。Touch pads have gradually become standard equipment in various consumer electronic products and computer devices. For example, today’s notebook computers have a touch pad to provide users with the exception of mouse and keyboard In addition to another input function, and with the development of touch sensing technology, the touchpad has evolved from only providing single-finger control functions to being able to perform multiple inputs with various touch gestures, and more touch The applicability of the board.
由於觸控板係設置在例如為筆記型電腦之電子產品上以作為一硬體輸入裝置,因此必須搭配軟體之驅動程式才能適當地工作,如圖1所示,係說明習知觸控板的驅動程式架構,其中,在裝置硬體部分的觸控板101是由一觸控板控制器103所控制,在系統軟體部分則包括有觸控板驅動程式104、服務常駐程式105及應用程式106等。服務常駐程式105係為常駐於系統之程式,其用以負責呼叫應用程式106,觸控板控制器103係經由例如PS/2或I2C等連接與觸控板驅動程式104溝通,特定而言,對於使用者在觸控板101上碰觸之觸控手勢操作,觸控板控制器103會對應產生觸控資料,例如包括碰觸之座標、面積及強度等,而觸控板驅動程式104即負責收集該等觸控資料,並由應用程式依據所收集之觸控資料進行手勢等處理以決定使用者所進行之觸控手勢,再將之上報至作業系統(Operating System,OS)以完成對應之觸控操作。Since the touchpad is set on an electronic product such as a notebook computer as a hardware input device, it must be equipped with a software driver to work properly. As shown in Figure 1, it illustrates the conventional touchpad. Driver architecture, where the
以前述觸控板的驅動程式架構,手勢等處理係由應用程式106所負責,而當作業系統忙碌時,應用程式106之系統優先權較低,此時如果應用程式106意外關閉,則需要服務常駐程式105來重新呼叫應用程式106,導致觸控板101反應遲緩或無法使用,且由於透過應用程式106使用Windows API(Application Programming Interface)上報系統會有權限之問題,因此,如果應用程式106意外停頓,將會造成觸控板101無法再使用。With the aforementioned touchpad driver architecture, the
因此,習知之觸控板的驅動程式架構仍有不甚完善之處,而有予以改善之必要。Therefore, the driver structure of the conventional touch panel is still imperfect, and it is necessary to improve it.
本發明之目的主要係在提供一種觸控板驅動系統及方法,其中,手勢處理的速度不容易延遲而可提高觸控之順暢度,且當系統異常而進行不斷電重啟時,觸控板仍然可以作為一滑鼠來使用而不至於造成系統當機,此外,在一實施例中,可在觸控板驅動程式中選擇性地設置擁有與硬體HID裝置同等的權限的虛擬裝置,而無在Windows API上報系統中所遭遇之系統權限的問題。The purpose of the present invention is mainly to provide a touch panel driving system and method, in which the speed of gesture processing is not easy to delay and can improve the smoothness of touch, and when the system is abnormal and restarts without power, the touch panel It can still be used as a mouse without causing the system to crash. In addition, in one embodiment, a virtual device with the same permissions as the hardware HID device can be selectively set in the touchpad driver, and There is no system permission problem encountered in the Windows API reporting system.
依據本發明之一特色,本發明提出一種觸控板驅動系統,其包含一觸控板控制器,耦接至一觸控板,以對於在該觸控板上所接收的觸控手勢操作信號,對應產生觸控資料;一觸控板驅動程式,收集該觸控板控制器所產生之觸控資料;一應用程式,負責設定觸控手勢參數;以及一服務常駐程式,負責呼叫該應用程式及提供觸控手勢處理。According to a feature of the present invention, the present invention provides a touch panel driving system, which includes a touch panel controller coupled to a touch panel to respond to touch gesture operation signals received on the touch panel , Corresponding to generate touch data; a touchpad driver, which collects the touch data generated by the touchpad controller; an application program, responsible for setting touch gesture parameters; and a service resident program, responsible for calling the application program And provide touch gesture processing.
依據本發明之另一特色,本發明提出一種觸控板驅動方法,其係實現於一觸控板驅動系統包含一觸控板控制器、一觸控板驅動程式、一應用程式及一服務常駐程式,該觸控板控制器可運作於一預設之滑鼠模式或一上報觸控座標模式,該驅動方法包含步驟:(A)該服務常駐程式確認該觸控板驅動程式是否存在;(B)當確認該觸控板驅動程式存在,該服務常駐程式透過該觸控板驅動程式持續傳送一切換指令至該觸控板控制器;(C)於收到切換指令後,將該觸控板控制器切換為該上報觸控座標模式;(D)該觸控板控制器判斷是否已超過一預定時間而無收到該觸控板驅動程式之切換指令,若是,將該觸控板控制器切換該滑鼠模式,否則,執行步驟(A)。According to another feature of the present invention, the present invention provides a touchpad driving method, which is implemented in a touchpad driving system including a touchpad controller, a touchpad driver, an application and a service resident The touchpad controller can operate in a default mouse mode or a reporting touch coordinate mode. The driving method includes steps: (A) The service resident program confirms whether the touchpad driver exists; (B) When it is confirmed that the touchpad driver exists, the service resident program continuously sends a switching command to the touchpad controller through the touchpad driver; (C) After receiving the switching command, touch The control panel controller switches to the reporting touch coordinate mode; (D) The touch panel controller determines whether it has exceeded a predetermined time without receiving the switch command of the touch panel driver, if so, the touch control The board controller switches the mouse mode, otherwise, proceed to step (A).
以上概述與接下來的詳細說明皆為示範性質,是為了進一步說明本發明的申請專利範圍,而有關本發明的其他目的與優點,將在後續的說明與圖式加以闡述。The above summary and the following detailed description are exemplary in nature, and are intended to further illustrate the scope of the patent application of the present invention. Other objectives and advantages of the present invention will be described in the following description and drawings.
為了使本發明的目的、技術方案及優點更加清楚明白,以下結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅僅用以解釋本發明,並不用於限定本發明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
圖2係本發明之觸控板驅動系統的使用環境示意圖,其中,觸控板驅動系統係安裝於一例如為筆記型電腦21之電子產品上,該筆記型電腦21上則設置有一觸控板23以作為一輸入裝置,此觸控板23可作為一滑鼠使用,亦即,使用者以手指在觸控板23上滑移或觸壓來進行相當於滑鼠之移動或按鍵之操作,此外,依據所安裝之觸控板驅動系統,觸控板23更可作為一觸控輸入裝置,以供使用者以之多種預先定義之觸控手勢來進行各式各樣輸入操作,而在觸控板23上接收觸控手勢操作信號。雖本發明係以筆記型電腦作為具體實施例說明,但本領域中具有通常知識者當可將本發明應用在各種人機介面的電子產品上,因此此實施例並不用以限制本發明。FIG. 2 is a schematic diagram of the use environment of the touch panel driving system of the present invention, wherein the touch panel driving system is installed on an electronic product such as a
圖3係本發明之觸控板驅動系統之一實施例的架構圖。該觸控板驅動系統30包括一觸控板控制器301 、一觸控板驅動程式303、一服務常駐程式305及一應用程式307。其中,觸控板控制器301係耦接至該觸控板23,以對於在觸控板23上所接收的觸控手勢操作信號,對應產生觸控資料,例如包括碰觸之座標、面積及強度等,且觸控板控制器301經由例如PS/2或I2C等連接而與觸控板驅動程式303溝通,以使觸控板驅動程式303收集該等觸控資料。FIG. 3 is a structural diagram of an embodiment of the touch panel driving system of the present invention. The
於前述之觸控板驅動系統30中,觸控手勢處理係由服務常駐程式305所提供,而觸控手勢參數設定則由應用程式307所負責,其中之觸控手勢處理係包括選取項目(點選觸控板23)、捲動(使用者兩根手指放在觸控板23上,然後水平或垂直滑動)、放大或縮小(使用者兩根手指放在觸控板23上,然後捏合或展開)、顯示更多的命令 (使用者兩根手指在觸控板23上點選,或按下右下角)、查看所有開啟的視窗(使用者三指放在觸控板23上,以離開使用者的方向撥動手指)、顯示桌面(使用者三指放在觸控板23上,以朝向使用者的方向撥動手指)、在開啟的視窗之間切換(使用者三指放在觸控板23上,向右或向左撥動)等,而觸控手勢參數則包括碰觸點移動速度、觸控靈敏度等。In the aforementioned
因此,常駐於系統之服務常駐程式305除了用以負責呼叫應用程式307之外,亦提供觸控手勢處理之功能,以根據前述觸控板驅動程式303所收集的觸控資料而判斷對應之觸控手勢。相較於習知技術,本發明之觸控板驅動系統30係將手勢處理由應用程式307移至服務常駐程式305來處理,但觸控手勢參數設定仍由應用程式307所負責。如此,由於服務常駐程式305在作業系統中具有較高優先權(高於應用程式307),因此,將手勢處理放在服務常駐程式305來處理將使得手勢處理的速度不容易延遲,因而提高了觸控之順暢度,且參數設定由應用程式307負責,則可符合UWP(Universal Windows Platform)之規範而具有極佳之系統相容性。Therefore, the
圖4係本發明之觸控板驅動方法之流程圖,其係執行於如圖3所示之觸控板驅動系統30。其中,前述觸控板驅動系統30中之觸控板控制器301係可運作於一滑鼠模式或一上報觸控座標模式,觸控板控制器301運作於滑鼠模式表示該觸控板23係組態為相當於一滑鼠之方式來提供電子產品輸入之功能;觸控板控制器301運作於上報觸控座標模式係表示該觸控板控制器301可將使用者於觸控板23上碰觸之觸控手勢操作所對應產生的觸控資料(包括碰觸之座標、面積及強度等)上報至觸控板驅動程式303,以提供電子產品手勢觸控之輸入功能。4 is a flowchart of the touch panel driving method of the present invention, which is executed in the touch
於本發明之觸控板驅動方法中,觸控板控制器301係預設為滑鼠模式,並在有需要時才切換為上報觸控座標模式,首先,服務常駐程式305常駐於系統中運行(步驟S401),並確認觸控板驅動程式303是否存在(步驟S402),若觸控板驅動程式303不存在,服務常駐程式305仍持續運行以確認觸控板驅動程式303是否存在,反之,若觸控板驅動程式303存在,則服務常駐程式305透過觸控板驅動程式303持續傳送一切換指令至觸控板控制器301(步驟S403),該觸控板控制器301收到切換指令後便切換為上報觸控座標模式(步驟S404),而該觸控板控制器301並會判斷在一預定時間內是否有收到觸控板驅動程式303之切換指令,亦即是否已超過該預定時間而無收到該觸控板驅動程式之切換指令(步驟S405),其中該預定時間係例如為0.2~0.8秒,較佳為 0.5秒,若尚未超時,則流程回至步驟S401執行,亦即服務常駐程式305常駐於系統中運行,若已超時而無收到切換指令,則顯示觸控板驅動程式303已異常,因此將該觸控板控制器301切換滑鼠模式(步驟S406)。依據本發明之一實施例,於前述步驟S403中,服務常駐程式305是透過觸控板驅動程式303以一定時的方式持續傳送切換指令至觸控板控制器301,亦即,每隔一固定時間便需傳送切換指令,但本發明不限於此。在本發明之另外實施例中,前述步驟S403中之傳送切換指令的方式也可以是不定時持續的方式,例如,兩次傳送切換指令的時間間隔並非固定不變。In the touchpad driving method of the present invention, the
以前述觸控板驅動方法,服務常駐程式305會先確認觸控板驅動程式303是否存在,當觸控板驅動程式303存在時才會下指令給觸控板驅動程式303,以由觸控板驅動程式303持續發出切換指令給觸控板控制器301切換為上報觸控座標模式,而在該預定時間內,若觸控板驅動程式303沒有發送切換指令,則將觸控板控制器301切換回滑鼠模式。如此,當系統異常而進行電子產品之不斷電重啟時,觸控板控制器301將會自動切換變為滑鼠模式,使得該觸控板23仍然可以作為一滑鼠來使用以輸出鼠標給系統工作,而不至於造成系統當機而完全無法操控電子產品之窘境。Using the aforementioned touchpad driving method, the
圖5係本發明之觸控板驅動系統之另一實施例的架構圖,其係與圖3之觸控板驅動系統30的實施例類似,但於圖5之觸控板驅動系統50的觸控板驅動程式503中可再設置虛擬裝置(Virtual Device)509,例如,電腦鍵盤和盲文顯示機、指點裝置(滑鼠、軌跡球、觸控板、指點杆、光筆)、觸控式螢幕、數位繪圖板、控制杆、手柄、類比搖杆、指紋掃描器等,由觸控板驅動程式503產生虛擬HID(Human Interface Device)裝置,亦可透過虛擬裝置509來虛擬出其他HID裝置,例如遊戲板(Game Pad)等裝置,並由觸控板驅動程式503將虛擬裝置509上報至作業系統, 使得虛擬裝置509擁有與硬體HID裝置同等的權限,而無在Windows API上報系統中所遭遇之系統權限的問題。除此之外,本實施例之觸控板驅動系統50的觸控板控制器501 、觸控板驅動程式503、服務常駐程式505及應用程式507之運作皆與圖3之觸控板驅動系統30的實施例相同,故不再贅述。FIG. 5 is a structural diagram of another embodiment of the touch panel driving system of the present invention, which is similar to the embodiment of the touch
上述實施例僅係為了方便說明而舉例而已,本發明所主張之權利範圍自應以申請專利範圍所述為準,而非僅限於上述實施例。The above-mentioned embodiments are merely examples for the convenience of description, and the scope of rights claimed in the present invention should be subject to the scope of the patent application, rather than limited to the above-mentioned embodiments.
101:觸控板
103:觸控板控制器
104:觸控板驅動程式
105:服務常駐程式
106:應用程式
21:筆記型電腦
23:觸控板
30,50:觸控板驅動系統
301,501:觸控板控制器
303,503:觸控板驅動程式
305,505:服務常駐程式
307,507:應用程式
509:虛擬裝置
S401~S406:步驟
101: Touchpad
103: Touchpad controller
104: Touchpad driver
105: Service resident program
106: Application
21: laptop
23:
圖1係習知之觸控板的驅動程式架構圖。 圖2係本發明之觸控板驅動系統的使用環境示意圖。 圖3係本發明之觸控板驅動系統之一實施例的架構圖。 圖4係本發明之觸控板驅動方法之流程圖。 圖5係本發明之觸控板驅動系統之另一實施例的架構圖。Figure 1 is a diagram of the driver structure of a conventional touchpad. FIG. 2 is a schematic diagram of the use environment of the touch panel driving system of the present invention. FIG. 3 is a structural diagram of an embodiment of the touch panel driving system of the present invention. FIG. 4 is a flowchart of the touch panel driving method of the present invention. FIG. 5 is a structural diagram of another embodiment of the touch panel driving system of the present invention.
S401-S406:步驟 S401-S406: steps
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107147411A TWI709071B (en) | 2018-12-27 | 2018-12-27 | Touch pad driving system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107147411A TWI709071B (en) | 2018-12-27 | 2018-12-27 | Touch pad driving system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202024892A TW202024892A (en) | 2020-07-01 |
TWI709071B true TWI709071B (en) | 2020-11-01 |
Family
ID=73004965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107147411A TWI709071B (en) | 2018-12-27 | 2018-12-27 | Touch pad driving system and method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI709071B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5157384A (en) * | 1989-04-28 | 1992-10-20 | International Business Machines Corporation | Advanced user interface |
US6185686B1 (en) * | 1996-09-12 | 2001-02-06 | Open Security Solutions, Llc | Computer system and process for accessing an encrypted and self-decrypting digital information product while restricting access to decrypted digital information |
TW448396B (en) * | 1998-12-28 | 2001-08-01 | Alps Electric Co Ltd | Personal computer device |
CN1355475A (en) * | 2000-12-01 | 2002-06-26 | 英业达股份有限公司 | Rolling control method and device of data window |
TW200538912A (en) * | 2004-02-17 | 2005-12-01 | Microsoft Corp | Always ready computing device |
-
2018
- 2018-12-27 TW TW107147411A patent/TWI709071B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5157384A (en) * | 1989-04-28 | 1992-10-20 | International Business Machines Corporation | Advanced user interface |
US6185686B1 (en) * | 1996-09-12 | 2001-02-06 | Open Security Solutions, Llc | Computer system and process for accessing an encrypted and self-decrypting digital information product while restricting access to decrypted digital information |
TW448396B (en) * | 1998-12-28 | 2001-08-01 | Alps Electric Co Ltd | Personal computer device |
CN1355475A (en) * | 2000-12-01 | 2002-06-26 | 英业达股份有限公司 | Rolling control method and device of data window |
TW200538912A (en) * | 2004-02-17 | 2005-12-01 | Microsoft Corp | Always ready computing device |
Also Published As
Publication number | Publication date |
---|---|
TW202024892A (en) | 2020-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5039911B2 (en) | Data processing device, input / output device, touch panel control method, storage medium, and program transmission device | |
RU2523169C2 (en) | Panning content using drag operation | |
US8276085B2 (en) | Image navigation for touchscreen user interface | |
US7944437B2 (en) | Information processing apparatus and touch pad control method | |
US20120212420A1 (en) | Multi-touch input control system | |
US10223057B2 (en) | Information handling system management of virtual input device interactions | |
US20130002586A1 (en) | Mode switch method of multi-function touch panel | |
KR20130052749A (en) | Touch based user interface device and methdo | |
KR19990063614A (en) | Graphical user interface system of multi-user / multi pointing device | |
WO2017114318A1 (en) | Control method and control device for working mode of touch screen | |
JP2010160773A (en) | Auxiliary method for cursor movement control of touch pad | |
TW201319884A (en) | Touch control device and method | |
KR20130137069A (en) | Method of simulating the touch screen operation by means of a mouse | |
US11150854B2 (en) | Display control method, apparatus, and electronic device | |
CN104808906A (en) | Electronic equipment with touch display screen and touch display screen control method | |
US20150100901A1 (en) | Information processing device, method, and program | |
JP2005092476A (en) | Multi-user/multi-pointing device graphical user interface system | |
JP2004086735A (en) | Electronic device and operating mode switching method | |
TWI483172B (en) | Method and system for arranging a user interface of the electronic device | |
TW201346656A (en) | Signal transmitting method for touch input device | |
TWI497357B (en) | Multi-touch pad control method | |
TWI709071B (en) | Touch pad driving system and method | |
CN105183353B (en) | Multi-touch input method for touch equipment | |
TWI547862B (en) | Multi - point handwriting input control system and method | |
JP5607667B2 (en) | Data processing device, input / output device, touch panel control method, storage medium, and program transmission device |