TWI459237B - Method for dynamically loading gesture algorithm for touch panel - Google Patents

Method for dynamically loading gesture algorithm for touch panel Download PDF

Info

Publication number
TWI459237B
TWI459237B TW101122495A TW101122495A TWI459237B TW I459237 B TWI459237 B TW I459237B TW 101122495 A TW101122495 A TW 101122495A TW 101122495 A TW101122495 A TW 101122495A TW I459237 B TWI459237 B TW I459237B
Authority
TW
Taiwan
Prior art keywords
gesture
algorithm code
application
file
memory
Prior art date
Application number
TW101122495A
Other languages
Chinese (zh)
Other versions
TW201401103A (en
Inventor
Ying Chou Chu
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 filed Critical
Priority to TW101122495A priority Critical patent/TWI459237B/en
Publication of TW201401103A publication Critical patent/TW201401103A/en
Application granted granted Critical
Publication of TWI459237B publication Critical patent/TWI459237B/en

Links

Description

適用於觸控面板之手勢演算法之動態載入方法 Dynamic loading method for gesture algorithm for touch panel

本發明有關於觸控面板(touch panel),尤有關於一種應用於觸控面板之手勢演算法(finger gesture algorithm)之動態載入方法。 The invention relates to a touch panel, and more particularly to a dynamic loading method of a finger gesture algorithm applied to a touch panel.

隨著科技的演進,手勢觸控已成為電容式觸控面板的輸出輸入的不二選項。各應用手呈式App常搭配各種不同的手勢以操控應用程式,而為了判斷使用者使用哪一種手勢,也發展出各種不同的手勢演算法。一般而言,有些觸控面板廠商會將使用者常用的數種手勢演算法程式碼預先燒錄在韌體中,缺點是受限於韌體(firmware)容量大小、支援手勢演算法的數目有限,優點是速度較快。另外,有些觸控面板廠商則直接利用軟體來進行手勢演算法,優點是可支援的大量的手勢演算,缺點是會占用CPU或系統過多的資源,速度也明顯比較慢。 With the evolution of technology, gesture touch has become the second choice for the output of capacitive touch panels. Each application's hand-style app often uses a variety of different gestures to manipulate the application, and in order to determine which gesture the user uses, various gesture algorithms have also been developed. In general, some touch panel manufacturers pre-program the number of gesture algorithms commonly used by users in firmware. The disadvantages are limited by the size of the firmware and the number of gesture algorithms supported. The advantage is that the speed is faster. In addition, some touch panel manufacturers use software directly for gesture algorithms. The advantage is that a large number of gesture calculations can be supported. The disadvantage is that it will occupy too much resources of the CPU or system, and the speed is obviously slower.

有鑑於上述問題,因此提出本發明。 The present invention has been made in view of the above problems.

本發明之目的之一是提供一種手勢演算法之動態載入方法以解決上述的問題。 One of the objects of the present invention is to provide a dynamic loading method of a gesture algorithm to solve the above problems.

本發明之目的之一是提供一種手勢演算法之動態載入方法,能夠在記憶體容量有限的情況下,支援大量的手 勢演算法。 One of the objects of the present invention is to provide a dynamic loading method of a gesture algorithm capable of supporting a large number of hands in a case where the memory capacity is limited. Potential algorithm.

為達成上述目的,本發明之一實施例提供了一種方法,用以將至少一種手勢演算法動態載入一可多次寫入之記憶體,係適用於一行動裝置,該行動裝置至少設有一電容式觸控面板及一非揮發性記憶體裝置,其中,該電容式觸控面板至少設有一微控制器及該可多次寫入之記憶體,該方法包含以下步驟:判斷一目前正被開啟的應用程式是否有使用手勢;當該目前正被開啟的應用程式有使用手勢時,判斷該可多次寫入之記憶體的空間是否足夠;當記憶體空間不足時,根據一手勢演算法程式碼檔案之至少一手勢的權重,刪除該至少一手勢的演算法程式碼集之至少其中之一,其中各該手勢演算法的權重係與對應之應用程式之啟動序號有關;當記憶體空間足夠時,根據該目前正被開啟的應用程式所使用的至少一手勢,依序從該非揮發性記憶體裝置讀取相對應之手勢演算法程式碼集以產生一最新的手勢演算法程式碼檔案;以及,將該最新的手勢演算法程式碼檔案寫入該可多次寫入之記憶體。 In order to achieve the above object, an embodiment of the present invention provides a method for dynamically loading at least one gesture algorithm into a multi-write memory, which is applicable to a mobile device, and the mobile device is provided with at least one A capacitive touch panel and a non-volatile memory device, wherein the capacitive touch panel is provided with at least a microcontroller and the memory that can be written multiple times, the method comprising the steps of: determining that a currently being Whether the open application has gestures; when the currently open application has gestures, it determines whether the space of the memory that can be written multiple times is sufficient; when the memory space is insufficient, according to a gesture algorithm The weight of at least one gesture of the code file, deleting at least one of the algorithm code sets of the at least one gesture, wherein the weight of each gesture algorithm is related to a startup sequence number of the corresponding application; when the memory space is Sufficiently, correspondingly reading from the non-volatile memory device according to at least one gesture used by the application currently being opened Potential code algorithm to generate a new set of algorithms gesture code file; and, the latest gesture algorithm code file written to the memory of multiple write.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一個較佳實施例的詳細說明中,將可清楚的呈現。 The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments.

一般行動裝置都具有電容式觸控面板,而市面上大部份電容式觸控面板本身都具有微控制器(microcontroller unit,MCU)及韌體,以加速手勢觸控的相關操作。本發明特色之一是將一手勢演算法程式碼檔案(包含至少一種手勢的演算法程式碼集(programming code set))交給電容式觸控面板的微控制器來執行,由於不會占用系統CPU的時間及系統資源,所以速度快。本發明的另一特色是只要使用者新啟動一應用程式,即可動態更新該手勢演算法程式碼檔案並寫入至電容式觸控面板之可多次寫入之記憶體中(藉以使觸控面板的微控制器來執行),所以雖然該可多次寫入之記憶體之容量有限,仍可支援大量的手勢演算法。 General mobile devices have capacitive touch panels, and most capacitive touch panels on the market have microcontrollers (microcontrollers). Unit, MCU) and firmware to speed up the operation of gesture touch. One of the features of the present invention is that a gesture algorithm code file (a programming code set containing at least one gesture) is delivered to the microcontroller of the capacitive touch panel for execution, since the system is not occupied. CPU time and system resources, so the speed is fast. Another feature of the present invention is that as long as the user newly launches an application, the gesture algorithm code file can be dynamically updated and written into the multi-write memory of the capacitive touch panel (by means of touch The microcontroller of the control panel is executed), so although the capacity of the memory that can be written multiple times is limited, a large number of gesture algorithms can be supported.

第1圖係根據本發明,顯示一行動裝置內部之應用程式、驅動程式及電容式觸控面板的記憶體之間的資料流。參考第1圖,一行動裝置(圖未示)具有一電容式觸控面板160,係支援多點式觸控(multi-touch)功能,即使使用者在同一時間按壓多個點,系統都能同時偵測到。該電容式觸控面板160至少包含一微控制器166、一非揮發性記憶體164及一可多次寫入之記憶體162。該微控制器166係用以執行儲存於該非揮發性記憶體164的韌體(firmware)、或儲存於該可多次寫入之記憶體162的手勢演算法程式碼檔案130,以進行手勢觸控的相關運算。 Figure 1 is a diagram showing the flow of data between an application, a driver, and a memory of a capacitive touch panel within a mobile device in accordance with the present invention. Referring to FIG. 1 , a mobile device (not shown) has a capacitive touch panel 160 that supports a multi-touch function, and even if the user presses multiple points at the same time, the system can Also detected at the same time. The capacitive touch panel 160 includes at least a microcontroller 166, a non-volatile memory 164, and a write-once memory 162. The microcontroller 166 is configured to execute a firmware stored in the non-volatile memory 164 or a gesture algorithm code file 130 stored in the write-once memory 162 for gesture touch Control related operations.

當該行動裝置的系統開機後,作業系統150隨即被載入,接著,各驅動程式(包含觸控面板驅動程式110)陸續開始運作。接著,當使用者開啟第一個應用程式140時, 應用程式140會先向作業系統150註冊(register)並同時報告基本資料,包含會使用到的所有手勢ID等。就第1圖的實施例而言,應用程式140註冊時會報告它會用到五種手勢(ID1~5)。接著,觸控面板驅動程式110會被作業系統150告知目前有一個應用程式140被載入,觸控面板驅動程式110便跟作業系統150查詢並讀取該應用程式140使用的五個手勢ID-1~5。至於,觸控面板驅動程式110跟作業系統150查詢並讀取的方式可以是藉由呼叫系統應用程序介面(system application programming interface)、呼叫回呼(callback)函式或是輪詢(polling)。 When the mobile device's system is powered on, the operating system 150 is loaded, and then each driver (including the touch panel driver 110) is operational. Then, when the user opens the first application 140, The application 140 will first register with the operating system 150 and simultaneously report the basic data, including all gesture IDs that will be used, and the like. In the embodiment of Figure 1, when the application 140 registers, it reports that it will use five gestures (ID1~5). Then, the touch panel driver 110 is notified by the operating system 150 that an application 140 is currently loaded, and the touch panel driver 110 queries the operating system 150 to read and read the five gesture IDs used by the application 140. 1~5. As for the touch panel driver 110 and the operating system 150, the manner of querying and reading may be by a system application programming interface, a callback function, or a polling.

然後,觸控面板驅動程式110根據手勢ID-1~5,依序讀取存放於一非揮發性記憶體裝置120的手勢演算法程式碼集,以產生一手勢演算法程式碼檔案130,接著,再將該檔案130寫入該觸控面板160的可多次寫入之記憶體162中。請注意,一般而言,使用者開啟一應用程式140到完全載入,需花費時間t。利用這段時間t,本發明同時亦建立該檔案130並寫入該可多次寫入之記憶體162中,所以使用者不會感覺到有時間差。 Then, the touch panel driver 110 sequentially reads the gesture algorithm code set stored in a non-volatile memory device 120 according to the gesture ID-1~5 to generate a gesture algorithm code file 130, and then The file 130 is written into the memory 162 of the touch panel 160 that can be written multiple times. Please note that in general, it takes time t for the user to open an application 140 to full load. Using this time t, the present invention also creates the file 130 and writes it into the memory 162 that can be written multiple times, so that the user does not feel a time difference.

非揮發性記憶體裝置120可以是,但不限於,記憶卡、唯讀記憶體、快閃記憶體等。非揮發性記憶體裝置120至少包含二個區域,即一起始區及一程式碼區(圖未示)。該起始區中預先存放各種手勢演算法程式碼集的大小(size)與其在該程式碼區的位址。而該程式碼區中預先儲存了電 容式觸控面板160支援的所有手勢演算法程式碼集,例如:若該電容式觸控面板160支援一百種手勢演算法,則非揮發性記憶體裝置120內就預先儲存了一百手勢演算法程式碼集。另外,每一手勢演算法程式碼集大小係取決於各手勢演算法的複雜度,例如:簡單的手勢演算法程式碼集之大小不到1K位元組(byte),而十指複雜之手勢演算法程式碼集之大小可能超過10K位元組。 The non-volatile memory device 120 can be, but is not limited to, a memory card, a read-only memory, a flash memory, and the like. The non-volatile memory device 120 includes at least two regions, that is, a start region and a code region (not shown). The size of the various gesture algorithm code sets and their addresses in the code area are pre-stored in the start area. And the pre-stored power in the code area All of the gesture algorithm code sets supported by the capacitive touch panel 160, for example, if the capacitive touch panel 160 supports one hundred gesture algorithms, the non-volatile memory device 120 stores a hundred gestures in advance. Algorithm code set. In addition, the size of each gesture algorithm code set depends on the complexity of each gesture algorithm. For example, the simple gesture algorithm code set size is less than 1K bytes, and the ten-finger complex gesture calculation The size of the legal code set may exceed 10K bytes.

可多次寫入之記憶體162可以是,但不限於,靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)及快閃記憶體(flash)。在上述三種記憶體中,只有靜態隨機存取記憶體可以和微控制器整合在同一個晶片;另外,靜態隨機存取記憶體的讀取與寫入速度最快,動態隨機存取記憶體稍慢,快閃記憶體最慢(尤其於寫入時,不但速度慢,還需特殊命令)。本發明係利用該微控制器166來執行儲存於該可多次寫入之記憶體162的手勢演算法程式碼檔案130,由於有大量的數學運算,故該可多次寫入之記憶體162最適合利用靜態隨機存取記憶體來實施,不但設計方便、效率最高、速度也最快。 The memory 162 that can be written multiple times can be, but is not limited to, a static random access memory (SRAM), a dynamic random access memory (DRAM), and a flash memory. Among the above three types of memory, only static random access memory can be integrated with the same chip on the microcontroller; in addition, the static random access memory has the fastest reading and writing speed, and the dynamic random access memory is slightly Slow, flash memory is the slowest (especially when writing, not only slow, but also special commands). The present invention utilizes the microcontroller 166 to execute the gesture algorithm code file 130 stored in the write-once memory 162. The memory 162 can be written multiple times due to a large number of mathematical operations. It is most suitable for implementation with static random access memory, which is not only easy to design, but also the most efficient and fastest.

第2a圖及2b圖根據第1圖的實施例,顯示手勢演算法程式碼檔案的二種格式(format)。請參考第2a圖,手勢演算法程式碼檔案130a的格式包含一個標頭(header)130a0及至少一手勢演算法程式碼集130a1~130aN(N為大於或等於1之正整數)。請同時參考第1圖及第2a圖,當觸控面板驅動 程式110讀取該應用程式140使用的手勢ID之前,先判斷該手勢演算法程式碼檔案130a是否已存在,若未存在,則先建立該標頭130a0;若已存在,則開啟並更新該標頭130a0。之後,觸控面板驅動程式110根據讀取到的手勢ID-1~5,依序讀取存放於該非揮發性記憶體裝置120的手勢演算法程式碼集,並依序排列該些手勢演算法程式碼集以連結成一個檔案130a。其中,標頭130a0包含,但不限於,目前檔案130a包含之手勢演算法程式碼集的總數、每一種手勢演算法的ID、每一手勢演算法程式碼集存放於130a1~a5區的啟始位址或指標(pointer)、目前檔案130a的大小、及目前該可多次入之記憶體162的剩餘空間(以下簡稱:目前記憶體的剩餘空間)等欄位。 Figures 2a and 2b show two formats of gesture algorithm code files according to the embodiment of Figure 1. Referring to FIG. 2a, the format of the gesture algorithm code file 130a includes a header 130a0 and at least one gesture algorithm code set 130a1~130aN (N is a positive integer greater than or equal to 1). Please refer to Figure 1 and Figure 2a at the same time, when the touch panel is driven Before the program 110 reads the gesture ID used by the application 140, it is first determined whether the gesture algorithm code file 130a already exists. If not, the header 130a0 is first established; if it is already present, the target is opened and updated. Head 130a0. Then, the touch panel driver 110 sequentially reads the gesture algorithm code set stored in the non-volatile memory device 120 according to the read gesture ID-1~5, and sequentially arranges the gesture algorithms. The code set is linked into a file 130a. The header 130a0 includes, but is not limited to, the total number of gesture algorithm code sets included in the current file 130a, the ID of each gesture algorithm, and the set of each gesture algorithm code set stored in the 130a1~a5 area. The address or pointer, the size of the current file 130a, and the remaining space of the currently multiplexable memory 162 (hereinafter referred to as the remaining space of the current memory) and the like.

第2a圖的手勢演算法程式碼檔案130a的格式是比較直觀,直接排列該些手勢演算法程式碼集而連結成一個檔案。然而,觀察這些手勢操控,可發現一些共同行為,例如:加速、按壓、或滑動等。有鑑於此,本發明歸納出各種手勢演算法之間的共同行為,並將至少一種共同行為的對應演算法程式碼集存放於130cb區,至於各種手勢之獨特行為之演算法程式碼集再依序存放於130b1~130bN(N為大於或等於1之正整數)中,如第2b圖所示。而根據第1圖的實施例,若觸控面板驅動程式110根據相同手勢ID-1~5可以產生二種檔案130a及130b,則檔案130b大小 通常會小於檔案130a,這是因為檔案130b已將共同行為的對應演算法程式碼集抽離出來並存放於130cb區。至於標頭130b0除了包含標頭130a0所包含的內容之外,還需包含各共同行為的對應演算法程式碼集存放於130cb區的位址或指標,以便該微控制器166能順利找到對程式碼集以便執行。 The format of the gesture algorithm code file 130a of Fig. 2a is relatively straightforward, and the gesture algorithm code sets are directly arranged and linked into one file. However, observing these gesture manipulations can reveal some common behaviors such as acceleration, pressing, or sliding. In view of this, the present invention summarizes the common behavior between various gesture algorithms, and stores at least one corresponding algorithmic code set of the common behavior in the 130cb area, and the algorithm code set of the unique behavior of various gestures is further determined. The order is stored in 130b1~130bN (N is a positive integer greater than or equal to 1), as shown in Figure 2b. According to the embodiment of FIG. 1, if the touch panel driver 110 can generate two files 130a and 130b according to the same gesture ID-1~5, the size of the file 130b. It is usually smaller than the file 130a because the file 130b has extracted the corresponding algorithm code set of the common behavior and stored it in the 130cb area. As for the header 130b0, in addition to the content included in the header 130a0, the corresponding algorithm code set of each common behavior needs to be stored in the address or indicator of the 130cb area, so that the microcontroller 166 can successfully find the program. The code set is executed.

電路設計者可依據系統要求的讀取或寫入速度、及該可多次寫入之記憶體162之硬體成本與設計方便度,選擇適合的手勢演算法程式碼檔案格式(130a或130b)與檔案大小、及該可多次寫入之記憶體162之種類與容量大小。而根據本發明,最晚被啟動的應用程式具有最高優先權,其使用的手勢演算法應全部被包含於該手勢演算法程式碼檔案130中,故電路設計者選擇的手勢演算法程式碼檔案大小、及該可多次寫入之記憶體162之容量大小應適當,不能過小,否則產生該手勢演算法程式碼檔案的過程將會沒有效率。 The circuit designer can select a suitable gesture algorithm code file format (130a or 130b) according to the read or write speed required by the system, and the hardware cost and design convenience of the memory 162 that can be written multiple times. And the size of the file, and the type and capacity of the memory 162 that can be written multiple times. According to the present invention, the latest launched application has the highest priority, and the gesture algorithm used should be all included in the gesture algorithm code file 130, so the circuit designer selects the gesture algorithm code file. The size and the size of the memory 162 that can be written multiple times should be appropriate, and should not be too small, otherwise the process of generating the gesture algorithm code file will be inefficient.

以下將介紹本發明如何動態更新手勢演算法程式碼檔案(皆適用於檔案130a及檔案130b)。為簡化說明,以下圖式與實施例僅以手勢演算法程式碼檔案130a為例作介紹,同時,假設該可多次寫入之記憶體162容量等於64K位元組且該手勢演算法程式碼檔案130a的檔案大小被設定為小於或等於64K位元組。在此請注意,前述該可多次寫入之記憶體162的容量等於64K位元組、及該手勢演算 法程式碼檔案130的檔案大小被設定為小於或等於64K位元組,僅只為本發明之一實施例,而非本發明的限制。 The following describes how the present invention dynamically updates the gesture algorithm code files (both applicable to file 130a and file 130b). To simplify the description, the following figures and embodiments only take the gesture algorithm code file 130a as an example, and assume that the memory 162 capacity that can be written multiple times is equal to 64K bytes and the gesture algorithm code The file size of the file 130a is set to be less than or equal to 64K bytes. Please note that the capacity of the above-mentioned multi-write memory 162 is equal to 64K bytes, and the gesture calculation The file size of the program code file 130 is set to be less than or equal to 64K bytes, and is merely an embodiment of the present invention, and is not a limitation of the present invention.

第3圖係根據本發明,顯示一應用程式App-N被載入前後該手勢演算法程式碼檔案130a內容之差異。請參考第3圖,在該應用程式App-N被載入前,該手勢演算法程式碼檔案130a僅包含五種手勢ID-1~ID-5之演算法程式碼集(時間為T)。當該應用程式App-N被載入時(時間為T+1),由於該應用程式App-N使用了五種手勢,其中有三種手勢ID-1~ID-3已存在於檔案130a中,而有二種手勢ID-14~ID-25則尚未存在於檔案130a中。假設該觸控面板驅動程式110判斷檔案130a即使再包含二種手ID-14~ID-25的演算法程式碼集仍不會超過64K位元組(該可多次寫入之記憶體162的容量),則該檔案130a會被更新如圖所示(時間為T+2)。 Figure 3 is a diagram showing the difference in the content of the gesture algorithm code file 130a before and after an application App-N is loaded, in accordance with the present invention. Referring to FIG. 3, before the application App-N is loaded, the gesture algorithm code file 130a contains only five algorithms ID sets of ID-1~ID-5 (time T). When the application App-N is loaded (time is T+1), since the application App-N uses five gestures, three of the gestures ID-1~ID-3 already exist in the file 130a. There are two kinds of gestures ID-14~ID-25 that are not yet in the file 130a. It is assumed that the touch panel driver 110 determines that the file 130a does not exceed the 64K byte even if the algorithm code set of the two hand ID-14~ID-25 is further included (the memory 162 that can be written multiple times) Capacity), the file 130a will be updated as shown (time T + 2).

依照應用程式被啟動的順序,作業系統150會給予每一個應用程式一個啟動序號(serial number),換言之,一應用程式之啟動序號越大,表示該應用程式越晚被啟動。根據本發明,最晚被啟動的應用程式具有最高優先權,其使用的手勢演算法必須全部被包含於該手勢演算法程式碼檔案130a中。第4圖根據本發明一實施例,說明依據不同應用程式的啟動序號,該手勢演算法程式碼檔案130a動態併入手勢演算法程式碼集之過程。 Depending on the order in which the applications are launched, the operating system 150 will give each application a serial number. In other words, the larger the activation number of an application, the later the application is launched. In accordance with the present invention, the latest launched application has the highest priority and the gesture algorithms used must all be included in the gesture algorithm code file 130a. FIG. 4 illustrates a process in which the gesture algorithm code file 130a is dynamically incorporated into the gesture algorithm code set according to the activation sequence number of different applications according to an embodiment of the present invention.

本實施例中,該觸控面板驅動程式110會給予每一種 手勢一個權重(weighting),而權重大小係取決於應用程式的啟動序號。若相同應用程式被重複開啟,則相對應手勢的權重等於啟動序號之累加,例如:手勢ID-4的權重等於(1+2=3)。例外的是最晚被開啟的應用程式之相對應手勢的權重等於無限大(表示具最高優先權,檔案130a應包含該應用程式使用之所有手勢)。 In this embodiment, the touch panel driver 110 will give each type Gestures are weighted, and the weight is determined by the application's startup sequence number. If the same application is repeatedly turned on, the weight of the corresponding gesture is equal to the accumulation of the activation sequence number, for example, the weight of the gesture ID-4 is equal to (1+2=3). The exception is that the weight of the corresponding gesture of the latest open application is equal to infinity (indicating the highest priority, file 130a should contain all gestures used by the application).

請參考第4圖,當僅有應用程式App-1被載入時(啟動序號為1),檔案130a僅包含五種手勢ID-1、ID-21、ID-35、ID-4、ID-15的演算法程式碼集。之後,當應用程式App-2也被載入時(啟動序號為2),由於應用程式App-2使用的手勢ID-4、ID-35的演算法程式碼已包含於檔案130a,所以該觸控面板驅動程式110僅需判斷檔案130a再併入一種手勢ID-2的演算法程式碼集是否會超過64K位元組(該可多次寫入之記憶體162的容量)。若否,檔案130a將總共包含六種手勢ID-1、ID-21、ID-35、ID-4、ID-15、ID-2的演算法程式碼集。最後,當應用程式App-3被載入時(啟動序號為3),由於應用程式App-3使用的手勢ID-1、ID-21、ID-35的演算法程式碼集已包含於檔案130a中,所以該觸控面板驅動程式110僅需判斷檔案130a再併入手勢ID-25、ID-14的演算法程式碼集是否會超過64K位元組。若否,則檔案130a將總共包含八種手勢ID-1、ID-21、ID-35、ID-4、ID-15、ID-2、ID-14、ID-25的演算法程式碼集。若會超過64K位元組,則優先剔除檔案130a中權 重最小的手勢,在第4圖的實施例中,由於最晚被開啟的應用程式App-3之手勢ID-1、ID-21、ID-35、ID-14、ID-25的權重等於無限大,而手勢ID-15的權重最小,所以優先被剔除,以容納手勢ID-25、ID-14的演算法程式碼集。若碰到至少二種手勢具相同的權重最小值的情況,就再依據使用率高低(請參考第5圖之說明),從該至少二種手勢中優先剔除掉使用率較低的手勢演算法程式碼集。依此類推,直到檔案130a可併入手勢ID-25、ID-14的演算法程式碼集且不會超過64K位元組為止。 Referring to FIG. 4, when only application App-1 is loaded (start sequence number is 1), file 130a contains only five gestures ID-1, ID-21, ID-35, ID-4, ID- 15 algorithmic code set. After that, when the application App-2 is also loaded (the startup sequence number is 2), since the gesture code of the gesture ID-4 and the ID-35 used by the application App-2 is already included in the file 130a, the touch The control panel driver 110 only needs to determine whether the archive 130a and the algorithm code set of the gesture ID-2 will exceed the 64K byte (the capacity of the write-once memory 162). If not, the file 130a will contain a total of six algorithmic code sets for gestures ID-1, ID-21, ID-35, ID-4, ID-15, ID-2. Finally, when the application App-3 is loaded (starting sequence number is 3), the algorithm code set of the gestures ID-1, ID-21, and ID-35 used by the application App-3 is already included in the file 130a. Therefore, the touch panel driver 110 only needs to determine whether the archive 130a is merged into the gesture ID-25, ID-14 algorithm code set will exceed 64K bytes. If not, the file 130a will contain a total of eight algorithmic code sets for gesture ID-1, ID-21, ID-35, ID-4, ID-15, ID-2, ID-14, ID-25. If it exceeds 64K bytes, the right in file 130a is removed first. The smallest gesture, in the embodiment of FIG. 4, the weights of the gestures ID-1, ID-21, ID-35, ID-14, and ID-25 of the latest application App-3 are equal to infinity. Large, and the weight of the gesture ID-15 is the smallest, so the priority is removed to accommodate the algorithm code set of the gesture ID-25, ID-14. If at least two gestures have the same weight minimum value, then according to the usage rate (refer to the description of FIG. 5), the gesture algorithm with lower usage rate is preferentially removed from the at least two gestures. The code set. And so on, until the archive 130a can be incorporated into the algorithmic code set of the gesture ID-25, ID-14 and will not exceed the 64K byte.

第5圖根據本發明,說明依據不同應用程式的啟動序號及各手勢使用時間,以計算該手勢演算法程式碼檔案130a中各手勢之權重與使用率的一個例子。在第5圖的實施例中,該觸控面板驅動程式110亦會給予每一種手勢一個權重,而權重大小係取決於應用程式的啟動序號及手勢的使用時間。請參考第5圖,假設當應用程式App-3被載入後(啟動序號為30),系統共開啟四個應用程式(其中應用程式App-1被開啟二次,而其他啟動序號的應用程式已被關閉),而且,該可多次寫入之記憶體162的空間足夠容納六種手勢演算法程式碼。在本實施例中,各種手勢的權重等於相對應應用程式之啟動序號乘上使用時間(單位為秒),例如:手勢ID-3的權重等於應用程式App-2之啟動序號乘上使用時間:7 * 4=28。同樣地,最晚被開啟的應用程式之相對應手勢的權重等於無限大(表示具最高優先 權,檔案130a應包含該應用程式使用之所有手勢),例如:最晚被開啟的應用程式App-3之手勢ID-5、ID-6的權重等於無限大。若相同應用程式被重複開啟,則相對應手勢的權重等於啟動序號乘上使用時間之累加,例如:手勢ID-1的權重等於(12×1+13×24)=324,而手勢ID-2的權重等於(5×1+19×24)=461。當然,稍後,若相同應用程式之一被關閉(圖未示),則相對應手勢的權重須減去被關閉的應用程式之權重,例如:假設啟動序號等於1之應用程式App-1被關閉時,手勢ID-1的權重等於324-(12×1)=312,而手勢ID-2的權重等於461-(5×1)=456。 FIG. 5 illustrates an example of calculating the weight and usage rate of each gesture in the gesture algorithm code file 130a according to the activation sequence number and the gesture usage time of different applications according to the present invention. In the embodiment of FIG. 5, the touch panel driver 110 also gives each gesture a weight, and the weight is determined by the activation number of the application and the usage time of the gesture. Please refer to Figure 5, suppose that when the application App-3 is loaded (starting sequence number is 30), the system has four applications open (the application App-1 is opened twice, and other applications with the serial number are activated). It has been turned off), and the space of the write-once memory 162 is sufficient to accommodate six gesture algorithm codes. In this embodiment, the weights of the various gestures are equal to the activation sequence number of the corresponding application multiplied by the usage time (in seconds), for example, the weight of the gesture ID-3 is equal to the activation sequence number of the application App-2 multiplied by the usage time: 7 * 4=28. Similarly, the weight of the corresponding gesture for the latest open application is equal to infinity (indicating the highest priority) Right, file 130a should contain all the gestures used by the application. For example, the latest application ID-3 of the application App-3 has a weight equal to infinity. If the same application is repeatedly turned on, the weight of the corresponding gesture is equal to the sum of the activation sequence number and the usage time. For example, the weight of the gesture ID-1 is equal to (12×1+13×24)=324, and the gesture ID-2 The weight is equal to (5 × 1 + 19 × 24) = 461. Of course, later, if one of the same applications is closed (not shown), the weight of the corresponding gesture must be subtracted from the weight of the closed application. For example, suppose the application App-1 with the startup number equal to 1 is When off, the weight of gesture ID-1 is equal to 324-(12x1)=312, and the weight of gesture ID-2 is equal to 461-(5×1)=456.

在第5圖的實施例中,若使用者接著開啟下一個應用程式App-4(會使用到手勢,圖未示),但該可多次寫入之記憶體162的空間已無法再多容納一種手勢演算法程式碼時,該觸控面板驅動程式110會根據各種手勢的權重,將具最小權重的一種手勢演算法程式碼集剔除。在第5圖的實施例中,手勢ID-3的權重最小,所以優先被剔除,以容納下一個應用程式的手勢演算法程式碼集。假設此時至少二種手勢具相同的權重最小值,則該觸控面板驅動程式110可以再比較該至少二種手勢的使用率,最後是使用率最低的手勢被剔除。依此類推,直到檔案130a可併入應用程式App-4所有的手勢的演算法程式碼集且不會超過64K位元組為止。 In the embodiment of FIG. 5, if the user then opens the next application App-4 (a gesture is used, the figure is not shown), but the space of the memory 162 that can be written multiple times can no longer be accommodated. In a gesture algorithm code, the touch panel driver 110 rejects a gesture algorithm code set with a minimum weight according to the weight of various gestures. In the embodiment of Figure 5, the weight of gesture ID-3 is the smallest, so the priority is culled to accommodate the gesture algorithm code set of the next application. Assuming that at least two gestures have the same weight minimum value at this time, the touch panel driver 110 can compare the usage rates of the at least two gestures, and finally the gesture with the lowest usage rate is rejected. And so on, until the archive 130a can be incorporated into the algorithmic code set of all gestures of the application App-4 and will not exceed the 64K byte.

在此請注意,在本說明書與申請專利範圍中,「使用 率」的定義如下:單一手勢的總使用時間/所有手勢的使用時間,其中,時間的單位是秒。例如:手勢a,共使用了三次,使用時間依序是1秒、2秒、1秒;手勢b,共使用了二次,使用時間依序是2秒、3秒;手勢c,只使用了一次,使用時間是3秒。因此,手勢a的總使用時間是4秒、手勢b的總使用時間是5秒、手勢c的總使用時間是3秒,而所有手勢總使用時間是12秒。故,手勢a的使用率是33%,手勢b為42%,手勢c為25%。 Please note that in this specification and the scope of patent application, "use The rate is defined as follows: the total usage time of a single gesture/the usage time of all gestures, where the unit of time is seconds. For example: gesture a, used a total of three times, the use time is 1 second, 2 seconds, 1 second; gesture b, used a total of two times, the use time is 2 seconds, 3 seconds; gesture c, only used Once, the usage time is 3 seconds. Therefore, the total usage time of gesture a is 4 seconds, the total usage time of gesture b is 5 seconds, the total usage time of gesture c is 3 seconds, and the total usage time of all gestures is 12 seconds. Therefore, the usage rate of gesture a is 33%, the gesture b is 42%, and the gesture c is 25%.

第6圖為本發明手勢演算法之動態載入方法之流程圖。本發明用以將至少一種手勢演算法動態載入一可多次寫入之記憶體162中,係適用於一行動裝置,該行動裝置至少設有一電容式觸控面板160及一非揮發性記憶體120,其中,該電容式觸控面板至少設有一微控制器166及該可多次寫入之記憶體162。 Figure 6 is a flow chart of the dynamic loading method of the gesture algorithm of the present invention. The present invention is used to dynamically load at least one gesture algorithm into a multi-write memory 162, which is suitable for a mobile device. The mobile device is provided with at least one capacitive touch panel 160 and a non-volatile memory. The body 120 has at least one microcontroller 166 and the memory 162 that can be written multiple times.

在執行本發明之方法前,該行動裝置的系統已開機、作業系統150已被載入,且觸控面板驅動程式110也已開始運作。在本實施例中,由於供該手勢演算法程式碼檔案動態寫入之該可多次寫入之記憶體162大小等於64K位元組,故該手勢演算法程式碼檔案130的檔案大小被設定為小於或等於64K位元組。以下根據第1圖及第6圖,詳細說明本發明手勢演算法之動態載入方法。 Prior to performing the method of the present invention, the system of the mobile device has been powered on, the operating system 150 has been loaded, and the touch panel driver 110 has also begun operation. In this embodiment, since the size of the write-once memory 162 for the gesture algorithm code file is dynamically equal to 64K bytes, the file size of the gesture algorithm code file 130 is set. Is less than or equal to 64K bytes. Hereinafter, the dynamic loading method of the gesture algorithm of the present invention will be described in detail based on FIGS. 1 and 6.

步驟S602:判斷使用者目前是否正開啟一應用程式。就第1圖的實施例而言,當使用者目前正開啟一應用程式 140時,應用程式140會先向作業系統150註冊並同時報告基本資料,包含會使用到的所有手勢ID-1~5等。接著,觸控面板驅動程式110會被作業系統150告知目前有一個應用程式140被載入,之後,執行步驟S604。反之,若觸控面板驅動程式110未被作業系統150告知,則重覆執行本步驟。 Step S602: Determine whether the user is currently opening an application. In the embodiment of Figure 1, when the user is currently opening an application At 140 o'clock, the application 140 first registers with the operating system 150 and simultaneously reports the basic data, including all the gesture IDs 1~5 that will be used. Next, the touch panel driver 110 is notified by the operating system 150 that an application 140 is currently loaded, and then proceeds to step S604. On the other hand, if the touch panel driver 110 is not notified by the operating system 150, this step is repeated.

步驟S604:判斷該應用程式是否有使用手勢。如上所述,當觸控面板驅動程式110向作業系統150查詢後,例如:藉由呼叫系統應用程序介面、呼叫回呼函式或是輪詢方式,可讀取到該應用程式140使用的五個手勢ID-1~5,之後,跳到步驟S606繼續執行。反之,若觸控面板驅動程式110所讀取到的值等於0或是未獲得作業系統150回應,表示該應用程式不使用手勢,然後,回到步驟S602。 Step S604: Determine whether the application has a usage gesture. As described above, after the touch panel driver 110 queries the operating system 150, for example, by using a call system application interface, a call back call function, or a polling method, the five used by the application 140 can be read. The gestures ID-1~5, after which, the process goes to step S606 to continue. On the other hand, if the value read by the touch panel driver 110 is equal to 0 or the operating system 150 does not respond, it indicates that the application does not use the gesture, and then returns to step S602.

步驟S606:判斷該檔案130是否已存在。若該應用程式140是使用者開啟的第一個程式(啟動序號=1),則該檔案130尚未存在,之後,跳到步驟S614繼續執行(如上所述,此時,該可多次寫入之記憶體162容量須足夠容納該應用程式(啟動序號=1)使用之所有手勢)。否則,該檔案130已存在,並跳到步驟S608繼續執行。 Step S606: It is judged whether the file 130 already exists. If the application 140 is the first program opened by the user (starting sequence number = 1), the file 130 does not yet exist, and then, the process goes to step S614 to continue execution (as described above, at this time, the writeable multiple times The memory 162 capacity must be sufficient to accommodate all gestures used by the application (start sequence number = 1). Otherwise, the file 130 already exists and jumps to step S608 to continue execution.

步驟S608:根據最後載入之應用程式使用的所有手勢,判斷是否需更新該檔案130。觸控面板驅動程式110逐一比對五個手勢ID-1~5及該手勢演算法程式碼檔案130,判斷五個手勢ID-1~5是否皆已包含於該手勢演算法 程式碼檔案130中。若該檔案130已包含目前載入應用程式140使用的所有手勢ID-1~5,則該檔案130無須更新,然後,回到步驟S602。反之,若至少有一種手勢(假設為ID-1)尚未包含於該手勢演算法程式碼檔案130中,則須更新該檔案130,接著,執行步驟S610。 Step S608: judging whether the file 130 needs to be updated according to all the gestures used by the last loaded application. The touch panel driver 110 compares the five gestures ID-1~5 and the gesture algorithm code file 130 one by one, and determines whether the five gestures ID-1~5 are included in the gesture algorithm. The code file is in the file 130. If the file 130 already contains all the gesture IDs -1~5 currently used by the application 140, the file 130 does not need to be updated, and then returns to step S602. On the other hand, if at least one gesture (assumed to be ID-1) is not included in the gesture algorithm code file 130, the file 130 must be updated, and then step S610 is performed.

步驟S610:判斷記憶體空間是否足夠。觸控面板驅動程式110從該非揮發性記憶體裝置120的啟始區域讀取手勢ID1演算法程式碼集的大小,同時,亦透過讀取該檔案130的標頭130a或130b中的目前記憶體的剩餘空間欄位。若目前記憶體的剩餘空間大於該手勢ID1之演算法程式碼集的大小,表示目前該可多次寫入之記憶體162之空間足夠再容納手勢ID-1之演算法程式碼,故跳到步驟S614繼續執行。否則,表示該可多次寫入之記憶體162之空間已不足,再跳到步驟S612執行。 Step S610: Determine whether the memory space is sufficient. The touch panel driver 110 reads the size of the gesture ID1 algorithm code set from the start region of the non-volatile memory device 120, and also reads the current memory in the header 130a or 130b of the file 130. The remaining space field. If the remaining space of the current memory is larger than the size of the algorithm code set of the gesture ID1, it indicates that the space of the memory 162 that can be written multiple times is enough to accommodate the algorithm code of the gesture ID-1, so skip to Step S614 continues with execution. Otherwise, it means that the space of the memory 162 that can be written multiple times is insufficient, and then jumps to step S612 for execution.

步驟S612:從該檔案130中刪除至少一種手勢演算法程式碼集。首先,比較已包含於該檔案130之各種手勢的權重,刪除權重最小的一種手勢演算法程式碼集。若至少二種的手勢具權重相同的權重最小值,再繼續比較該至少二種手勢的使用率,並刪除使用率最低的一種手勢演算法程式碼集。其中,各種手勢的權重等於相對應用程式之啟動序號乘上手勢使用時間之累加(請參考第5圖之說明)。 Step S612: Delete at least one gesture algorithm code set from the file 130. First, the weights of the various gestures already included in the file 130 are compared, and a gesture algorithm code set with the smallest weight is deleted. If at least two gestures have the same weight minimum value, continue to compare the usage rates of the at least two gestures, and delete a gesture algorithm code set with the lowest usage rate. Among them, the weight of each gesture is equal to the increment of the activation number of the relative application multiplied by the usage time of the gesture (please refer to the description of Figure 5).

步驟S614:產生一手勢演算法程式碼檔案130。若檔案130尚未存在,觸控面板驅動程式110可以先建立該標 頭130a0或130b0。之後,根據手勢ID-1~5,依序讀取存放於該非揮發性記憶體裝置120的手勢演算法程式碼集,並依序排列該些手勢演算法程式碼集以連結成一個檔案130。 Step S614: Generate a gesture algorithm code file 130. If the file 130 does not exist yet, the touch panel driver 110 may first establish the target. Head 130a0 or 130b0. Then, according to the gesture ID-1~5, the gesture algorithm code set stored in the non-volatile memory device 120 is sequentially read, and the gesture algorithm code sets are sequentially arranged to be connected into one file 130.

若檔案130已存在且手勢ID-1尚未包含於該手勢演算法程式碼檔案130中,則觸控面板驅動程式110讀取存放於該非揮發性記憶體裝置120的手勢ID-1演算法程式碼集,並將手勢ID-1演算法程式碼集排列於檔案130之適當位置,以完成檔案130之更新。 If the file 130 already exists and the gesture ID-1 is not included in the gesture algorithm code file 130, the touch panel driver 110 reads the gesture ID-1 algorithm code stored in the non-volatile memory device 120. The set, and the gesture ID-1 algorithm code set is arranged in the appropriate position of the file 130 to complete the update of the file 130.

步驟S616:將該檔案130寫入該可多次寫入之記憶體162。觸控面板驅動程式110將該檔案130寫入該可多次寫入之記憶體162後,即完成本發明手勢演算法之動態載入方法之所有步驟。 Step S616: The file 130 is written into the memory 162 that can be written multiple times. After the touch panel driver 110 writes the file 130 to the write-once memory 162, all the steps of the dynamic loading method of the gesture algorithm of the present invention are completed.

以上雖以實施例說明本發明,但並不因此限定本發明之範圍,只要不脫離本發明之要旨,該行業者可進行各種變形或變更,都屬本發明之範疇。 The present invention has been described above by way of examples, and the scope of the present invention is not limited thereto, and various modifications and changes can be made by those skilled in the art without departing from the scope of the invention.

110‧‧‧觸控面板驅動程式 110‧‧‧Touch Panel Driver

120‧‧‧非揮發性記憶體裝置 120‧‧‧Non-volatile memory device

130、130a、130b‧‧‧手勢演算法程式碼檔案 130, 130a, 130b‧‧‧ gesture algorithm code file

130a0、130b0‧‧‧標頭 130a0, 130b0‧‧ ‧ header

130a1~a5‧‧‧各手勢演算法程式碼集 130a1~a5‧‧‧ each gesture algorithm code set

130cb‧‧‧至少一種共同行為的對應演算法程式碼集存放區 130cb‧‧‧ at least one corresponding algorithm for the common behavior code set storage area

130b1~b7‧‧‧各種手勢之獨特行為之演算法程式碼集 130b1~b7‧‧‧ Algorithms for the unique behavior of various gestures

140‧‧‧應用程式 140‧‧‧Application

150‧‧‧作業系統 150‧‧‧ operating system

160‧‧‧電容式觸控面板 160‧‧‧Capacitive touch panel

162‧‧‧可多次寫入之記憶體 162‧‧‧Memory that can be written multiple times

164‧‧‧非揮發性記憶體 164‧‧‧ Non-volatile memory

166‧‧‧微控制器 166‧‧‧Microcontroller

第1圖係根據本發明,顯示一行動裝置內部之應用程式、驅動程式及電容式觸控面板的記憶體之間的資料流。 Figure 1 is a diagram showing the flow of data between an application, a driver, and a memory of a capacitive touch panel within a mobile device in accordance with the present invention.

第2a圖及2b圖根據第1圖的實施例,顯示手勢演算法程式碼檔案的二種格式。 Figures 2a and 2b show two formats of gesture algorithm code files according to the embodiment of Figure 1.

第3圖係根據本發明,顯示一應用程式App-N被載入前後該手勢演算法程式碼檔案130a內容之差異。 Figure 3 is a diagram showing the difference in the content of the gesture algorithm code file 130a before and after an application App-N is loaded, in accordance with the present invention.

第4圖根據本發明一實施例,說明依據不同應用程式的啟動序號,該手勢演算法程式碼檔案130a動態併入手勢演算法程式碼集之過程。 FIG. 4 illustrates a process in which the gesture algorithm code file 130a is dynamically incorporated into the gesture algorithm code set according to the activation sequence number of different applications according to an embodiment of the present invention.

第5圖根據本發明,說明依據不同應用程式的啟動序號及各手勢使用時間,以計算該手勢演算法程式碼檔案130a中各手勢之權重與使用率的一個例子。 FIG. 5 illustrates an example of calculating the weight and usage rate of each gesture in the gesture algorithm code file 130a according to the activation sequence number and the gesture usage time of different applications according to the present invention.

第6圖為本發明手勢演算法之動態載入方法之流程圖。 Figure 6 is a flow chart of the dynamic loading method of the gesture algorithm of the present invention.

Claims (14)

一種方法,用以將至少一種手勢演算法動態載入一可多次寫入之記憶體,係適用於一行動裝置,該行動裝置至少設有一電容式觸控面板及一非揮發性記憶體裝置,其中,該電容式觸控面板至少設有一微控制器及該可多次寫入之記憶體,該方法包含以下步驟:判斷一目前正被開啟的應用程式是否有使用手勢;當該目前正被開啟的應用程式有使用手勢時,判斷該可多次寫入之記憶體的空間是否足夠;當記憶體空間不足時,根據一手勢演算法程式碼檔案之至少一手勢的權重,刪除該至少一手勢的演算法程式碼集之至少其中之一,其中該手勢演算法程式碼檔案包含該至少一手勢的演算法程式碼集,以及各該手勢的權重係與對應之應用程式之啟動序號有關;當記憶體空間足夠時,根據該目前正被開啟的應用程式所使用的至少一手勢,依序從該非揮發性記憶體裝置讀取相對應之手勢演算法程式碼集以產生一最新的手勢演算法程式碼檔案;其中該非揮發性記憶體裝置至少包含一起始區及一程式碼區;以及,其中該起始區中預先存放各種手勢演算法程式碼集的大小(size)與其在該程式碼區的位址,該判斷該可多次寫入之記憶體的空間是否足夠包含:比較該目前正被開啟的應用程式使用的手勢及該手勢演算法程式碼檔案包含的手勢以判斷是否需更新該手勢演算法程式碼檔案;以及當 需更新該手勢演算法程式碼檔案時,讀取該非揮發性記憶體裝置的啟始區以估算尚未載入之至少一手勢演算法程式碼集之一容量,以及讀取該手勢演算法程式碼檔案的目前記憶體剩餘空間欄位,藉以比較該目前記憶體剩餘空間及該尚未載入之手勢演算法程式碼集的容量;以及將該最新的手勢演算法程式碼檔案寫入該可多次寫入之記憶體。 A method for dynamically loading at least one gesture algorithm into a write-once memory for a mobile device, the mobile device having at least one capacitive touch panel and a non-volatile memory device The capacitive touch panel includes at least one microcontroller and the memory that can be written multiple times, and the method includes the following steps: determining whether an application currently being opened has a use gesture; when the current When the opened application has a gesture, it is determined whether the space of the memory that can be written multiple times is sufficient; when the memory space is insufficient, the at least one gesture weight of the gesture algorithm code file is deleted according to the weight of at least one gesture of the gesture algorithm code file. At least one of a set of algorithmic code sets, wherein the gesture algorithm code file file includes an algorithm code set of the at least one gesture, and the weight of each gesture is related to a startup sequence number of the corresponding application. When the memory space is sufficient, according to at least one gesture used by the currently open application, sequentially from the non-volatile memory And reading a corresponding gesture algorithm code set to generate an latest gesture algorithm code file; wherein the non-volatile memory device includes at least a start area and a code area; and wherein the start area is Pre-storing the size of each gesture algorithm code set and its address in the code area, and determining whether the space of the write-once memory is sufficient to: compare the currently open application The gesture used and the gesture contained in the gesture algorithm code file to determine whether the gesture algorithm code file needs to be updated; When the gesture algorithm code file needs to be updated, the start region of the non-volatile memory device is read to estimate a capacity of at least one gesture algorithm code set that has not been loaded, and the gesture algorithm code is read. The current memory remaining space field of the file, thereby comparing the current memory remaining space and the capacity of the unloaded gesture algorithm code set; and writing the latest gesture algorithm code file to the multiple times Write memory. 如申請專利範圍第1項所記載之方法,係藉由一觸控面板驅動程式來實施。 The method described in claim 1 is implemented by a touch panel driver. 如申請專利範圍第1項所記載之方法,其中該手勢演算法程式碼檔案更包含一標頭。 The method as recited in claim 1, wherein the gesture algorithm code file further includes a header. 如申請專利範圍第3項所記載之方法,其中該手勢演算法程式碼檔案中各該手勢的演算法程式碼集包含至少一獨特行為之手勢演算法程式碼集,以及其中各該手勢的演算法程式碼集更包含至少一共同行為的演算法程式碼集。 The method as recited in claim 3, wherein the algorithm code set of each gesture in the gesture algorithm code file file includes at least one unique behavior gesture algorithm code set, and the calculation of each of the gestures The legal code set further includes an algorithm code set of at least one common behavior. 如申請專利範圍第1項所記載之方法,其中該手勢演算法程式碼檔案之大小係小於或等於該可多次寫入之記憶體之容量。 The method of claim 1, wherein the size of the gesture algorithm code file is less than or equal to the capacity of the memory that can be written multiple times. 如申請專利範圍第1項所記載之方法,其中該刪除步驟中,更根據該手勢演算法程式碼檔案中各種手勢的使用率,以刪除該些手勢演算法程式碼集之至少其中之一。 The method of claim 1, wherein in the deleting step, at least one of the gesture algorithm code sets is deleted according to the usage rate of the gestures in the gesture algorithm code file. 如申請專利範圍第1項所記載之方法,其中該可多次寫入之記憶體為靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)及快閃記憶體(flash)之其一。 The method of claim 1, wherein the memory that can be written multiple times is a static random access memory (SRAM), a dynamic random access memory (DRAM), and a flash memory. One of them. 如申請專利範圍第1項所記載之方法,其中該判斷該目前正被開啟的應用程式是否有使用手勢之步驟包含:判斷一使用者目前是否正開啟一應用程式;當該使用者目前正開啟該應用程式時,向一作業系統查詢該目前正被開啟的應用程式所使用的手勢;以及根據該作業系統的一回傳值,判斷該目前正被開啟的應用程式是否使用手勢。 The method of claim 1, wherein the step of determining whether the currently open application has a gesture comprises: determining whether a user is currently opening an application; when the user is currently opening The application queries an operating system for a gesture used by the application that is currently being opened; and determines whether the application currently being opened uses a gesture based on a return value of the operating system. 如申請專利範圍第8項所記載之方法,其中該查詢方式為呼叫系統應用程序介面(system API)、呼叫回呼(callback)函式及輪詢(polling)之其一。 The method of claim 8, wherein the query mode is one of a call system application interface (system API), a callback call function, and a polling. 如申請專利範圍第1項所記載之方法,其中當該手勢演算法程式碼檔案之一手勢的對應之應用程式只啟動一次時,該手勢的權重等於該對應之應用程式的啟動序號。 The method of claim 1, wherein when the corresponding application of the gesture of the gesture algorithm code file is only started once, the weight of the gesture is equal to the activation sequence number of the corresponding application. 如申請專利範圍第1項所記載之方法,其中當該手勢演算法程式碼檔案之一手勢的對應之應用程式啟動超過一次時,該手勢的權重等於該些對應之應用程式的啟動序號的累加值。 The method of claim 1, wherein when the corresponding application of the gesture of the gesture algorithm code file is activated more than once, the weight of the gesture is equal to the accumulation of the activation serial numbers of the corresponding applications. value. 如申請專利範圍第1項所記載之方法,其中各該手勢的權重更與各該手勢的使用時間有關。。 The method as recited in claim 1, wherein the weight of each of the gestures is more related to the usage time of each of the gestures. . 如申請專利範圍第12項所記載之方法,其中當該手勢演算法程式碼檔案之一手勢的對應之應用程式啟動超過一次時,該手勢的權重等於該些對應之應用程式的啟動序號乘上該手勢使用時間的累加值。 The method of claim 12, wherein when the corresponding application of the gesture of the gesture algorithm code file is activated more than once, the weight of the gesture is equal to the activation sequence number of the corresponding application. This gesture uses the accumulated value of time. 如申請專利範圍第12項所記載之方法,其中當該手勢演算法程式碼檔案之一手勢的對應之應用程式只啟動一次時,該手勢的權重等於該對應之應用程式的啟動序號乘上該 手勢使用時間。 The method of claim 12, wherein when the corresponding application of the gesture of the gesture algorithm code file is only started once, the weight of the gesture is equal to the startup serial number of the corresponding application multiplied by Gesture usage time.
TW101122495A 2012-06-22 2012-06-22 Method for dynamically loading gesture algorithm for touch panel TWI459237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101122495A TWI459237B (en) 2012-06-22 2012-06-22 Method for dynamically loading gesture algorithm for touch panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101122495A TWI459237B (en) 2012-06-22 2012-06-22 Method for dynamically loading gesture algorithm for touch panel

Publications (2)

Publication Number Publication Date
TW201401103A TW201401103A (en) 2014-01-01
TWI459237B true TWI459237B (en) 2014-11-01

Family

ID=50345064

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101122495A TWI459237B (en) 2012-06-22 2012-06-22 Method for dynamically loading gesture algorithm for touch panel

Country Status (1)

Country Link
TW (1) TWI459237B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI496047B (en) * 2013-03-19 2015-08-11 Compal Electronics Inc Touch apparatus and operating method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM347623U (en) * 2007-01-05 2008-12-21 Apple Inc Handheld mobile communication device
TW201011775A (en) * 2008-08-04 2010-03-16 Sandisk Il Ltd Managing storage of cached content
US20110173204A1 (en) * 2010-01-08 2011-07-14 Microsoft Corporation Assigning gesture dictionaries

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM347623U (en) * 2007-01-05 2008-12-21 Apple Inc Handheld mobile communication device
TW201011775A (en) * 2008-08-04 2010-03-16 Sandisk Il Ltd Managing storage of cached content
US20110173204A1 (en) * 2010-01-08 2011-07-14 Microsoft Corporation Assigning gesture dictionaries

Also Published As

Publication number Publication date
TW201401103A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
US9122493B2 (en) Retrieving boot instructions from nonvolatile memory
JP5636034B2 (en) Mediation of mount times for data usage
US7908469B2 (en) Method for executing power on self test on a computer system and updating SMBIOS information partially
US9563446B2 (en) Binary file generation
US20050086551A1 (en) Memory optimization for a computer system having a hibernation mode
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
EP3926466A1 (en) Electronic device which prefetches application and method therefor
EP2765503A1 (en) Method and electronic device of the file system prefetching and boot-up method
GB2418043A (en) Storing data
US6637023B1 (en) Method and system for updating read-only software modules
CN111240601B (en) Method, device, equipment and storage medium for determining superblock of partitioned space
US8156278B2 (en) Non-volatile data storage system and method thereof
KR100816763B1 (en) Electronic system using flash memory module by a main storage and booting method thereof
CN111897743A (en) Data storage device and loading method of logical-to-physical address mapping table
TWI475485B (en) Firmware flashing method and related computer system
TWI459237B (en) Method for dynamically loading gesture algorithm for touch panel
US7917487B2 (en) Portable application registry
US11847086B2 (en) Method and apparatus for configuring MMIOH base address of server system
US10671526B2 (en) Electronic computing device, method for adjusting the trigger mechanism of a garbage collection function, and non-transitory computer readable storage medium thereof
US20050060530A1 (en) Method for displaying information of updating BIOS
CN110515665B (en) Starting method, system and device of processor system
TWI614684B (en) Field firmware upgrading method and computer-readable medium
EP3772063A1 (en) Memory device including plurality of buffer areas for supporting fast write and fast read and storage device including the same
KR20060095133A (en) Method for operating system program stored in non-volatile memory
EP3771982A1 (en) Storage device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees