TW201539268A - Portable electronic apparatus and touch detecting method thereof - Google Patents

Portable electronic apparatus and touch detecting method thereof Download PDF

Info

Publication number
TW201539268A
TW201539268A TW103113688A TW103113688A TW201539268A TW 201539268 A TW201539268 A TW 201539268A TW 103113688 A TW103113688 A TW 103113688A TW 103113688 A TW103113688 A TW 103113688A TW 201539268 A TW201539268 A TW 201539268A
Authority
TW
Taiwan
Prior art keywords
touch
portable electronic
electronic device
screen
edge
Prior art date
Application number
TW103113688A
Other languages
Chinese (zh)
Other versions
TWI524230B (en
Inventor
Chih-Jing Lai
Original Assignee
Winbond Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Winbond Electronics Corp filed Critical Winbond Electronics Corp
Priority to TW103113688A priority Critical patent/TWI524230B/en
Publication of TW201539268A publication Critical patent/TW201539268A/en
Application granted granted Critical
Publication of TWI524230B publication Critical patent/TWI524230B/en

Links

Abstract

A portable electronic apparatus and a touch detecting method thereof are provided. In the method, a touch is detected by using a touch screen of the portable electronic apparatus. Then, whether the touch is located in an edge area of the touch screen is determined. When it is determined that the touch is located in the edge area of the touch screen, the touching time with no other detected touch is accumulated and determined whether to exceed a pre-defined time. When the accumulated time exceeds the pre-defined time, information related to the touch is removed from the event triggered by the touch until the touch is ended.

Description

可攜式電子裝置及其觸碰偵測方法 Portable electronic device and touch detection method thereof

本發明是有關於一種電子裝置及其觸碰偵測方法,且特別是有關於一種可攜式電子裝置及其觸碰偵測方法。 The present invention relates to an electronic device and a touch detection method thereof, and more particularly to a portable electronic device and a touch detection method thereof.

觸控螢幕是一種將電容式、電阻式或其他觸碰偵測元件整合在液晶等薄型顯示面板上的顯示裝置。由於觸控螢幕可同時提供顯示及觸碰輸入功能,且其操作上具有簡單、直覺的優點,因此逐漸成為手機、平板電腦、個人數位助理(Personal Digital Assistant,PDA)、多媒體播放器等可攜式電子裝置的基本配備。 The touch screen is a display device that integrates a capacitive, resistive or other touch detecting component on a thin display panel such as a liquid crystal. Since the touch screen can provide display and touch input functions at the same time, and its operation has the advantages of simplicity and intuition, it has gradually become a portable device, a tablet computer, a personal digital assistant (PDA), a multimedia player, and the like. Basic equipment for electronic devices.

為了方便攜帶,可攜式電子裝置對於外型均要求輕、薄、短、小,此將使得可攜式電子裝置所能配置的觸控螢幕的尺寸受到限制。而為了在有限的空間內配置更大的觸控螢幕,以提供使用者更大的顯示及觸碰操作區域,目前的可攜式電子裝置已朝窄邊框的方向來設計。 In order to facilitate carrying, the portable electronic device is required to be light, thin, short, and small in appearance, which will limit the size of the touch screen that can be configured by the portable electronic device. In order to configure a larger touch screen in a limited space to provide a larger display and touch operation area for the user, the current portable electronic device has been designed in the direction of a narrow frame.

然而,使用者在手持可攜式電子裝置操作時,其持握裝 置的手常會因為較窄的邊框而誤觸到觸控螢幕,結果常會造成可攜式電子裝置的誤動作。 However, when the user is operating the portable electronic device, the user holds the grip. The hand often touches the touch screen because of the narrow frame, and the result is often a malfunction of the portable electronic device.

本發明提供一種可攜式電子裝置及其觸碰偵測方法,可避免使用者持握裝置的手造成可攜式電子裝置的誤動作。 The present invention provides a portable electronic device and a touch detection method thereof, which can prevent a user from holding the device from causing a malfunction of the portable electronic device.

本發明的可攜式電子裝置的觸碰偵測方法,適用於具有觸控螢幕的可攜式電子裝置。此方法係利用觸控螢幕偵測觸碰,並判斷此觸碰之位置是否落在觸控螢幕的邊緣區域。當此觸碰之位置落在邊緣區域時,即累計此觸碰持續存在且觸控螢幕未偵測到其他觸碰的時間,並判斷所累計的時間是否超過預設時間。當所累計的時間超過預設時間時,自上述觸碰所觸發的事件中移除此觸碰的相關資訊,直到此觸碰結束為止。 The touch detection method of the portable electronic device of the present invention is applicable to a portable electronic device with a touch screen. This method uses the touch screen to detect the touch and determine whether the touch position falls on the edge area of the touch screen. When the touched position falls on the edge area, the accumulated touch continues to exist and the touch screen does not detect other touches, and it is determined whether the accumulated time exceeds the preset time. When the accumulated time exceeds the preset time, the related information of the touch is removed from the event triggered by the touch until the touch ends.

在本發明的一實施例中,上述的可攜式電子裝置更包括重力感測器,而在上述判斷觸碰之位置是否落在觸控螢幕的邊緣區域的步驟之前,所述方法更利用重力感測器偵測可攜式電子裝置的擺放狀態,其中此擺放狀態為橫放狀態及直立狀態其中之一。接著,將用以判斷觸碰之位置的邊緣區域設定為所偵測擺放狀態下觸控螢幕於水平方向上的兩個邊緣區域。 In an embodiment of the invention, the portable electronic device further includes a gravity sensor, and the method further utilizes gravity before the step of determining whether the touched position falls on an edge region of the touch screen. The sensor detects the placement state of the portable electronic device, wherein the placed state is one of a horizontally placed state and an upright state. Next, the edge area for determining the position of the touch is set to two edge areas of the touch screen in the horizontal direction in the detected placement state.

在本發明的一實施例中,在上述將用以判斷觸碰之位置的邊緣區域設定為所偵測擺放狀態下觸控螢幕於水平方向上的兩個邊緣區域的步驟之後,所述方法更利用重力感測器偵測擺放狀 態是否改變,而當擺放狀態改變時,將用以判斷觸碰之位置的邊緣區域調整為改變後的擺放狀態下觸控螢幕於水平方向上的兩個邊緣區域。 In an embodiment of the invention, after the step of determining the edge region of the touched position is the two edge regions of the touch screen in the horizontal direction in the detected state, the method Use gravity sensors to detect the placement Whether the state changes, and when the placement state is changed, the edge region for determining the position of the touch is adjusted to the two edge regions of the touch screen in the horizontal direction in the changed state.

在本發明的一實施例中,上述利用觸控螢幕偵測觸碰的步驟包括於螢幕關閉狀態下偵測螢幕喚醒訊號,而在偵測到螢幕喚醒訊號時,啟動觸控螢幕偵測位於邊緣區域的觸碰,以決定是否自觸碰所觸發的事件中移除觸碰的相關資訊。 In an embodiment of the invention, the step of detecting the touch by using the touch screen includes detecting the screen wake-up signal when the screen is off, and when the screen wake-up signal is detected, starting the touch screen detection is located at the edge. The touch of the area to determine whether to remove the relevant information of the touch from the event triggered by the touch.

本發明的可攜式電子裝置包括觸控螢幕、儲存單元及一個或多個處理單元。其中,觸控螢幕係用以偵測觸碰。儲存單元係用以記錄多個模組。處理單元係連接觸控螢幕及儲存單元,用以存取並執行儲存單元中記錄的模組。上述的模組包括觸碰位置判斷模組、觸碰時間判斷模組及觸碰資訊移除模組。其中,觸碰位置判斷模組會判斷觸控螢幕所偵測到的觸碰的位置是否落在觸控螢幕的邊緣區域。觸碰時間判斷模組會在觸碰位置判斷模組判斷觸碰位置落在邊緣區域時,累計此觸碰持續存在且觸控螢幕未偵測到其他觸碰的時間,並判斷所累計的時間是否超過預設時間。觸碰資訊移除模組會在觸碰時間判斷模組判斷其所累計的時間超過預設時間時,自觸碰所觸發的事件中將此觸碰的相關資訊移除,直到此觸碰結束為止。 The portable electronic device of the present invention comprises a touch screen, a storage unit and one or more processing units. Among them, the touch screen is used to detect touch. The storage unit is used to record a plurality of modules. The processing unit is connected to the touch screen and the storage unit for accessing and executing the modules recorded in the storage unit. The above module includes a touch position determination module, a touch time determination module, and a touch information removal module. The touch position determining module determines whether the touched position detected by the touch screen falls on the edge area of the touch screen. The touch time judging module will accumulate the time that the touch continues to exist and the touch screen does not detect other touches when the touch position judgment module determines that the touch position falls on the edge area, and judges the accumulated time. Whether it exceeds the preset time. The touch information removal module removes the related information of the touch from the event triggered by the touch when the touch time judgment module determines that the accumulated time exceeds the preset time until the touch ends. until.

在本發明的一實施例中,上述的可攜式電子裝置更包括重力感測器。此重力感測器是用以偵測可攜式電子裝置的擺放狀態,其中擺放狀態為橫放狀態及直立狀態其中之一。此外,上述 的模組更包括邊緣區域設定模組,其可將用以判斷觸碰位置的邊緣區域設定為重力感測器所偵測的擺放狀態下觸控螢幕於水平方向上的兩個邊緣區域。 In an embodiment of the invention, the portable electronic device further includes a gravity sensor. The gravity sensor is configured to detect a state in which the portable electronic device is placed, wherein the placed state is one of a horizontally placed state and an upright state. In addition, the above The module further includes an edge area setting module, which can set the edge area for determining the touch position as the two edge areas of the touch screen in the horizontal direction in the placed state detected by the gravity sensor.

在本發明的一實施例中,上述的邊緣區域設定模組更利用重力感測器偵測擺放狀態是否改變,並在擺放狀態改變時,將用以判斷觸碰位置的邊緣區域調整為改變後擺放狀態下觸控螢幕於水平方向上的兩個邊緣區域。 In an embodiment of the present invention, the edge area setting module further detects whether the placement state is changed by using a gravity sensor, and adjusts an edge area for determining the touch position to be changed when the placement state is changed. The two edge areas of the touch screen in the horizontal direction are changed after being placed.

在本發明的一實施例中,上述的觸碰位置判斷模組更在螢幕關閉狀態下偵測到螢幕喚醒訊號時,將觸控螢幕啟動以偵測位於邊緣區域的觸碰,據以決定是否自此觸碰所觸發的事件中將此觸碰的相關資訊移除。 In an embodiment of the present invention, when the touch position determination module detects the screen wake-up signal in the screen off state, the touch screen is activated to detect the touch in the edge area, thereby determining whether Remove information about this touch from the event triggered by this touch.

在本發明的一實施例中,上述的邊緣區域為與觸控螢幕至少一個邊緣相距為預設距離內的區域。 In an embodiment of the invention, the edge region is an area within a predetermined distance from at least one edge of the touch screen.

基於上述,本發明的可攜式電子裝置及其觸碰偵測方法藉由偵測位於觸控螢幕邊緣區域的觸碰,在觸碰持續存在且存在期間沒有偵測到其他觸碰的情況下,判定此觸碰為使用者誤觸,從而將此觸碰的相關資訊自其所觸發的事件中移除。藉此,可避免使用者手持可攜式電子裝置所造成的誤動作。 Based on the above, the portable electronic device and the touch detection method thereof of the present invention detect a touch located in an edge region of the touch screen, and if no touch is detected while the touch persists and there is no other touch detected during the presence of the touch screen , determining that the touch is a user's accidental touch, thereby removing the related information of the touch from the event triggered by the user. Thereby, the malfunction caused by the user holding the portable electronic device can be avoided.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

10、30、40、60‧‧‧可攜式電子裝置 10, 30, 40, 60‧‧‧ portable electronic devices

12、32、42、62‧‧‧觸控螢幕 12, 32, 42, 62‧‧‧ touch screens

14、44‧‧‧儲存單元 14, 44‧‧‧ storage unit

142、442‧‧‧觸碰位置判斷模組 142, 442‧‧‧ Touch position judgment module

144、444‧‧‧觸碰時間判斷模組 144, 444‧‧‧ Touch time judgment module

146、446‧‧‧觸碰資訊移除模組 146, 446‧‧‧Touch information removal module

16、48‧‧‧處理單元 16, 48‧‧ ‧ processing unit

34、622、624、626、628‧‧‧邊緣區域 34, 622, 624, 626, 628‧‧‧ marginal areas

448‧‧‧邊緣區域設定模組 448‧‧‧Edge area setting module

46‧‧‧重力感測器 46‧‧‧Gravity sensor

S202~S210‧‧‧本發明一實施例之觸碰偵測方法的步驟 S202~S210‧‧‧ steps of the touch detection method according to an embodiment of the present invention

S502~S508‧‧‧本發明一實施例之邊緣區域調整方法的步驟 S502~S508‧‧‧ steps of the edge area adjustment method according to an embodiment of the present invention

圖1是依照本發明一實施例所繪示之可攜式電子裝置的方塊圖。 FIG. 1 is a block diagram of a portable electronic device according to an embodiment of the invention.

圖2是依照本發明一實施例所繪示之觸碰偵測方法的流程圖。 2 is a flow chart of a touch detection method according to an embodiment of the invention.

圖3是依照本發明一實施例所繪示之邊緣區域的示意圖。 FIG. 3 is a schematic diagram of an edge region according to an embodiment of the invention.

圖4是依照本發明一實施例所繪示之可攜式電子裝置的方塊圖。 FIG. 4 is a block diagram of a portable electronic device according to an embodiment of the invention.

圖5是依照本發明一實施例所繪示之邊緣區域調整方法的流程圖。 FIG. 5 is a flow chart of a method for adjusting an edge region according to an embodiment of the invention.

圖6A及圖6B分別是依照本發明一實施例所繪示之邊緣區域設定的示意圖。 6A and 6B are schematic diagrams showing edge region settings according to an embodiment of the invention.

當使用者以單手持握可攜式電子裝置時,其手指時常會因為可攜式電子裝置的邊框過窄而誤觸到觸控螢幕,但此情況下觸控螢幕所偵測到的觸碰通常都是位於邊緣區域的長時間觸碰。本發明即利用此特點,針對位於觸控螢幕邊緣的觸碰累計其持續存在且存在期間沒有其他觸碰出現的時間,而當累計時間超過預設時間時,即判定此觸碰為使用者持握可攜式電子裝置所造成,並非使用者對於觸控螢幕的實際操作,從而將此觸碰自其所觸發的事件中移除。藉此,可達到避免使用者誤觸的目的。 When the user holds the portable electronic device in a single hand, the finger often touches the touch screen because the frame of the portable electronic device is too narrow, but in this case, the touch detected by the touch screen It is usually a long-term touch in the edge area. The present invention utilizes this feature to accumulate the duration of the touch at the edge of the touch screen and the time when no other touch occurs during the existence of the touch screen. When the accumulated time exceeds the preset time, the touch is determined to be the user. The effect of holding the portable electronic device is not the actual operation of the touch screen by the user, thereby removing the touch from the event it triggers. Thereby, the purpose of avoiding the user's accidental touch can be achieved.

圖1是依照本發明一實施例所繪示之可攜式電子裝置的方塊圖。請參照圖1,本實施例的可攜式電子裝置10例如是手機、智慧型手機、個人數位助理(Personal Digital Assistant,PDA)、平板電腦、電子書等具有觸控螢幕的電子裝置,但不限於此。可攜式電子裝置10包括觸控螢幕12、儲存單元14及一個或多個處理單元16,其功能分述如下:觸控螢幕12為一種整合觸碰偵測元件的顯示裝置,可同時提供顯示及輸入功能。此顯示裝置例如是液晶顯示器(Liquid Crystal Display,LCD)、發光二極體(Light-Emitting Diode,LED)顯示器、場發射顯示器(Field Emission Display,FED)或其他種類的顯示器,但不限於此。觸碰偵測元件係成列、成行地配置在顯示裝置上,用以偵測使用者手指、手掌或其他物體對於觸控螢幕12的觸碰。觸碰偵測元件可為例如電容式觸碰偵測元件、表面聲波觸碰偵測元件、電磁觸碰偵測元件或近場成像觸碰偵測元件,但不限於此。 FIG. 1 is a block diagram of a portable electronic device according to an embodiment of the invention. Referring to FIG. 1 , the portable electronic device 10 of the embodiment is, for example, a mobile phone, a smart phone, a personal digital assistant (PDA), a tablet computer, an e-book, and the like, but does not have an electronic device with a touch screen. Limited to this. The portable electronic device 10 includes a touch screen 12, a storage unit 14, and one or more processing units 16. The functions of the portable electronic device 10 are as follows: The touch screen 12 is a display device integrated with the touch detecting component, and can simultaneously provide display. And input functions. The display device is, for example, a liquid crystal display (LCD), a Light-Emitting Diode (LED) display, a Field Emission Display (FED), or the like, but is not limited thereto. The touch detection elements are arranged in a row and arranged on the display device for detecting the touch of the touch screen 12 by a user's finger, palm or other object. The touch detection component may be, for example, a capacitive touch detection component, a surface acoustic wave touch detection component, an electromagnetic touch detection component, or a near field imaging touch detection component, but is not limited thereto.

儲存單元14例如是任意型式的固定式或可移動式隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、快閃記憶體(Flash memory)、硬碟或其他類似裝置或這些裝置的組合,其係用以記錄可由處理單元16執行的多個模組,這些模組由處理單元16載入以執行本發明的觸碰偵測方法。 The storage unit 14 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory (Flash memory), hard A disc or other similar device or combination of these devices is used to record a plurality of modules executable by processing unit 16, which are loaded by processing unit 16 to perform the touch detection method of the present invention.

處理單元16例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置或這些裝置的組合。處理單元16係耦接至觸控螢幕12及儲存單元14,而可存取並執行記錄在儲存單元14中的模組,以執行觸碰偵測功能。 The processing unit 16 is, for example, a central processing unit (Central Processing Unit, CPU), or other programmable general purpose or special purpose microprocessor (Microprocessor), digital signal processor (DSP), programmable controller, special application integrated circuit (Application Specific Integrated Circuits (ASICs), Programmable Logic Devices (PLDs), or other similar devices or combinations of these devices. The processing unit 16 is coupled to the touch screen 12 and the storage unit 14, and can access and execute the module recorded in the storage unit 14 to perform the touch detection function.

上述模組包括觸碰位置判斷模組142、觸碰時間判斷模組144及觸碰資訊移除模組146,這些模組例如是電腦程式,其可載入處理單元16,從而執行觸碰偵測功能。以下即舉實施例說明可攜式電子裝置10執行觸碰偵測方法的詳細步驟。 The module includes a touch position determining module 142, a touch time determining module 144, and a touch information removing module 146. The modules are, for example, computer programs, which can be loaded into the processing unit 16 to perform touch detection. Test function. The following is a detailed description of the detailed steps of the portable electronic device 10 performing the touch detection method.

圖2是依照本發明一實施例所繪示之觸碰偵測方法的流程圖。請參照圖2,本實施例的方法適用於圖1的可攜式電子裝置10,以下即搭配可攜式電子裝置10中的各項元件說明本發明之觸碰偵測方法的詳細步驟:首先,由可攜式電子裝置10利用觸控螢幕12偵測使用者的觸碰(步驟S202),並由觸碰位置判斷模組142判斷此觸碰之位置是否落在觸控螢幕的邊緣區域(步驟S204)。其中,上述的邊緣區域例如是觸控螢幕12內與觸控螢幕12的至少一個邊緣相距為預設距離內的區域。此預設距離可依可攜式電子裝置10的邊框大小自動調整,例如可預設為0.5至1公分,且可由使用者手動調整。 2 is a flow chart of a touch detection method according to an embodiment of the invention. Referring to FIG. 2, the method of the present embodiment is applicable to the portable electronic device 10 of FIG. 1. Hereinafter, the detailed steps of the touch detection method of the present invention are described in conjunction with the components in the portable electronic device 10: The touch screen 12 detects the user's touch by the portable electronic device 10 (step S202), and the touch position determining module 142 determines whether the touch position falls on the edge region of the touch screen ( Step S204). The edge region is, for example, an area within the touch screen 12 that is within a predetermined distance from at least one edge of the touch screen 12 . The preset distance can be automatically adjusted according to the frame size of the portable electronic device 10, for example, can be preset to 0.5 to 1 cm, and can be manually adjusted by the user.

舉例來說,圖3是依照本發明一實施例所繪示之邊緣區域的示意圖。請參照圖3,本實施例的可攜式電子裝置30係將與觸控螢幕32上緣、下緣、左緣、右緣相距為1公分內的區域設定為用以判斷使用者觸碰位置的邊緣區域34。 For example, FIG. 3 is a schematic diagram of an edge region according to an embodiment of the invention. Referring to FIG. 3, the portable electronic device 30 of the present embodiment sets an area within 1 cm of the upper edge, the lower edge, the left edge, and the right edge of the touch screen 32 to determine the touch position of the user. Edge area 34.

回到圖2的流程,當觸碰位置判斷模組142判斷觸碰之位置並未落在邊緣區域時,則可判定此觸碰並非使用者誤觸,因此流程將回到步驟S202,繼續由觸控螢幕12偵測使用者的下個觸碰。反之,當觸碰位置判斷模組142判斷觸碰之位置落在觸控螢幕12的邊緣區域時,則判定此觸碰可能是使用者誤觸,而由觸碰時間判斷模組144累計此觸碰持續存在且存在期間觸控螢幕12並未偵測到其他觸碰的時間(步驟S206),並判斷此時間是否超過預設時間(步驟S208)。 Returning to the flow of FIG. 2, when the touch position determining module 142 determines that the touched position does not fall in the edge area, it can be determined that the touch is not a user's accidental touch, so the flow will return to step S202 and continue. The touch screen 12 detects the next touch of the user. On the other hand, when the touch position determining module 142 determines that the touched position falls on the edge area of the touch screen 12, it is determined that the touch may be a user's false touch, and the touch time determining module 144 accumulates the touch. The touch screen 12 does not detect the time of other touches during the duration of the touch (step S206), and determines whether the time exceeds the preset time (step S208).

詳言之,由於使用者以單手持握可攜式電子裝置10進行操作時,一般都是用另一隻手做操作,而在使用者用一隻手拿起可攜式電子裝置10到用另一隻手進行操作之間會有一個空檔。本實施例即利用此空檔來輔助判斷使用者在邊緣區域的觸碰是否是因手持可攜式電子裝置10所造成的誤觸。只有在觸碰時間超過預設時間且在此預設時間內未偵測到其他觸碰時,才認定此觸碰是使用者的誤觸。 In detail, when the user operates the portable electronic device 10 in a single hand, the user generally uses the other hand to operate, and the user picks up the portable electronic device 10 with one hand. There will be a gap between the other hand. In this embodiment, the gap is used to assist in determining whether the user's touch in the edge area is caused by the hand-held portable device 10. The touch is considered to be a user's false touch only if the touch time exceeds the preset time and no other touch is detected within the preset time.

需說明的是,上述的預設時間例如是介於0.5秒至1秒之間,但不限於此。其中,若是將預設時間設定地愈長,則可攜式電子裝置10偵測到誤觸的次數較少,但偵測的結果較為準確;反 之,若將預設時間設定地愈短,則可攜式電子裝置10很容易就會偵測到誤觸,但相對地偵測結果也會較不準確。因此,使用者可視其操作習慣隨時調整預設時間的長度。 It should be noted that the preset time mentioned above is, for example, between 0.5 seconds and 1 second, but is not limited thereto. If the preset time is set longer, the portable electronic device 10 detects fewer false touches, but the detection result is more accurate; If the preset time is set to be shorter, the portable electronic device 10 can easily detect the false touch, but the relative detection result is also less accurate. Therefore, the user can adjust the length of the preset time at any time according to his operating habits.

回到圖2的流程,當觸碰時間判斷模組144判斷其所累計的時間超過預設時間時,觸碰資訊移除模組146即會將此觸碰的相關資訊自其所觸發的事件中移除,直到此觸碰結束為止(步驟S210)。反之,流程將回到步驟S202,繼續由觸控螢幕12偵測使用者的下個觸碰。其中,由於在觸控螢幕12偵測到觸碰時,可攜式電子裝置10在觸控螢幕12上顯示的畫面可能是待機畫面、主選單畫面、目前正在執行之應用程式畫面等不同畫面,而對應於上述觸碰在觸控螢幕12的位置,上述觸碰可能會觸發不同的事件,例如在待機畫面下觸發解鎖事件、在主選單畫面下觸發應用程式的啟動事件、在應用程式畫面下觸發應用程式的操作事件等。然而,經由上述方法的判斷後,觸控螢幕12所偵測到的觸碰已被判定為誤觸,因此本實施例即藉由將此觸碰的相關資訊從其所觸發的事件中移除,而排除此觸碰所造成的誤動作。 Returning to the flow of FIG. 2, when the touch time determination module 144 determines that the accumulated time exceeds the preset time, the touch information removal module 146 will trigger the related information from the event triggered by the touch information removal module 146. It is removed until the end of the touch (step S210). Otherwise, the process returns to step S202 to continue detecting the next touch of the user by the touch screen 12. When the touch screen 12 detects a touch, the screen displayed on the touch screen 12 by the portable electronic device 10 may be a different screen such as a standby screen, a main menu screen, and an application screen currently being executed. Corresponding to the position of the touch on the touch screen 12, the touch may trigger different events, such as triggering an unlock event in the standby screen, triggering an application launch event in the main menu screen, and under the application screen. Trigger an application's operational events, etc. However, after the determination by the above method, the touch detected by the touch screen 12 has been determined to be a false touch, so in this embodiment, the related information of the touch is removed from the event triggered by the touch. , and eliminate the malfunction caused by this touch.

需說明的是,在本實施例中,觸碰偵測方法係適用在螢幕開啟狀態下的任何時間點,而可隨時偵測使用者的誤觸。然而,在另一實施例中,觸碰偵測方法可僅用在可攜式電子裝置從螢幕關閉狀態喚醒的瞬間。其中,上述的觸碰位置判斷模組142例如會在螢幕關閉狀態下偵測到螢幕喚醒訊號時,啟動觸控螢幕12以偵測位於邊緣區域的觸碰,並由觸碰資訊移除模組146決定是否 自此觸碰所觸發的事件中移除觸碰的相關資訊。詳言之,通常使用者開始使用可攜式電子裝置時,一般會以手持握可攜式電子裝置並按下電源鍵或Home鍵等實體按鍵以喚醒螢幕,之後才用另一手對觸控螢幕進行操作。本實施例即利用此空檔,在觸控螢幕被喚醒瞬間即偵測邊緣區域是否被使用者觸碰到,從而提早將誤觸排除。 It should be noted that, in this embodiment, the touch detection method is applicable to any time point in the on state of the screen, and the user's false touch can be detected at any time. However, in another embodiment, the touch detection method can be used only at the moment when the portable electronic device wakes up from the screen off state. The touch position determining module 142 activates the touch screen 12 to detect the touch in the edge area, for example, when the screen wake-up signal is detected in the screen off state, and the touch information removal module is removed. 146 decide whether Remove information about the touch from the event triggered by the touch. In particular, when a user starts to use a portable electronic device, the portable electronic device is held by hand and the physical button such as the power button or the Home button is pressed to wake up the screen, and then the touch screen is displayed with the other hand. Take action. In this embodiment, the gap is detected, and when the touch screen is awakened, the edge area is detected to be touched by the user, so that the false touch is eliminated early.

藉由上述方法,可攜式電子裝置即可準確判斷使用者在觸控螢幕邊緣的觸碰是否為誤觸,並據以將此觸碰自其所觸發的事件中移除,從而避免可攜式電子裝置的誤動作。 By the above method, the portable electronic device can accurately determine whether the touch of the user on the edge of the touch screen is an accidental touch, and accordingly, the touch is removed from the event triggered by the touch, thereby avoiding portability. Malfunction of the electronic device.

需說明的是,在上述實施例中,用來判斷觸碰位置的邊緣區域係預設在觸控螢幕的四個邊緣。而在另一實施例中,由於使用者在以單手持握時通常習慣握在可攜式電子裝置的兩側,故本發明的另一實施例可進一步偵測可攜式電子裝置的擺放方向,並據以調整邊緣區域的位置,以符合使用者的實際操作態樣。以下則再舉一實施例詳細說明。 It should be noted that, in the above embodiment, the edge area for determining the touch position is preset on the four edges of the touch screen. In another embodiment, another embodiment of the present invention can further detect the placement of the portable electronic device because the user is accustomed to being held on both sides of the portable electronic device when holding the hand in a single hand. Direction, and adjust the position of the edge area to match the actual operation of the user. The following is a detailed description of an embodiment.

圖4是依照本發明一實施例所繪示之可攜式電子裝置的方塊圖。請參照圖1,本實施例的可攜式電子裝置40例如是手機、智慧型手機、個人數位助理、平板電腦、電子書等具有觸控螢幕的電子裝置,但不限於此。可攜式電子裝置40包括觸控螢幕42、儲存單元44、重力感測器46及一個或多個處理單元48。其中,觸控螢幕42、儲存單元44及處理單元48的種類及功能係與前述實施例中的觸控螢幕12、儲存單元14及處理單元16相同或相似, 故在此不再贅述。 FIG. 4 is a block diagram of a portable electronic device according to an embodiment of the invention. Referring to FIG. 1 , the portable electronic device 40 of the embodiment is, for example, an electronic device with a touch screen such as a mobile phone, a smart phone, a personal digital assistant, a tablet computer, or an e-book, but is not limited thereto. The portable electronic device 40 includes a touch screen 42 , a storage unit 44 , a gravity sensor 46 , and one or more processing units 48 . The types and functions of the touch screen 42 , the storage unit 44 , and the processing unit 48 are the same as or similar to the touch screen 12 , the storage unit 14 , and the processing unit 16 in the foregoing embodiments. Therefore, it will not be repeated here.

與前述實施例不同的是,本實施例的可攜式電子裝置40額外配置有重力感測器46,其可用以偵測可攜式電子裝置40在三軸上的分量,從而得到可攜式電子裝置40目前的擺放狀態。 The portable electronic device 40 of the present embodiment is additionally configured with a gravity sensor 46, which can be used to detect the component of the portable electronic device 40 on the three axes, thereby obtaining a portable type. The electronic device 40 is currently placed.

此外,儲存單元44中儲存觸碰位置判斷模組442、觸碰時間判斷模組444、觸碰資訊移除模組446及邊緣區域設定模組448,其中觸碰位置判斷模組442、觸碰時間判斷模組444、觸碰資訊移除模組446係與前述實施例中的觸碰位置判斷模組142、觸碰時間判斷模組144、觸碰資訊移除模組146相同或相似,故其功能在此不再贅述。與前述實施例不同的是,本實施例係在偵測觸碰之前即由邊緣區域設定模組448利用重力感測器46偵測可攜式電子裝置40的擺放狀態,並據以決定後續用以判斷觸碰所在位置的邊緣區域。 In addition, the storage unit 44 stores the touch position determining module 442, the touch time determining module 444, the touch information removing module 446, and the edge area setting module 448, wherein the touch position determining module 442, touch The time determination module 444 and the touch information removal module 446 are the same as or similar to the touch position determination module 142, the touch time determination module 144, and the touch information removal module 146 in the foregoing embodiment. Its function will not be described here. Different from the foregoing embodiment, in this embodiment, the edge area setting module 448 detects the placement state of the portable electronic device 40 by using the gravity sensor 46 before detecting the touch, and determines the follow-up state accordingly. The edge area used to determine where the touch is.

詳言之,圖5是依照本發明一實施例所繪示之邊緣區域調整方法的流程圖。請參照圖5,本實施例的方法適用於圖4的可攜式電子裝置40,以下即搭配可攜式電子裝置40中的各項元件說明本發明之觸碰偵測方法的詳細步驟:首先,由可攜式電子裝置40利用重力感測器46偵測其擺放狀態(步驟S502),其中重力感測器46例如會偵測可攜式電子裝置40在三軸方向上的分量,從而判斷可攜式電子裝置40目前的擺放狀態係為橫放狀態或是直立狀態。 In detail, FIG. 5 is a flowchart of a method for adjusting an edge region according to an embodiment of the invention. Referring to FIG. 5 , the method of the present embodiment is applicable to the portable electronic device 40 of FIG. 4 . Hereinafter, the detailed steps of the touch detection method of the present invention are described in conjunction with various components of the portable electronic device 40 : first, The portable electronic device 40 detects the state of the portable electronic device 40 by using the gravity sensor 46 (step S502), wherein the gravity sensor 46 detects, for example, the component of the portable electronic device 40 in the three-axis direction, thereby It is judged that the current state of the portable electronic device 40 is in a horizontal state or an upright state.

接著,由邊緣區域設定模組448將後續用以判斷觸碰位 置的邊緣區域設定為重力感測器46所偵測的擺放狀態下觸控螢幕42於水平方向上的兩個邊緣區域(步驟S504)。 Then, the edge area setting module 448 is used to determine the touch position. The edge area is set to two edge areas of the touch screen 42 in the horizontal direction in the placed state detected by the gravity sensor 46 (step S504).

在設定完成後,邊緣區域設定模組448會繼續利用重力感測器46偵測可攜式電子裝置40的擺放狀態是否改變(步驟S506)。其中,若可攜式電子裝置40的擺放狀態未改變,則維持原先設定的邊緣區域;反之,可攜式電子裝置40的擺放狀態改變,則邊緣區域設定模組448會將用以判斷觸碰位置的邊緣區域調整為改變後的擺放狀態下觸控螢幕42於水平方向上的兩個邊緣區域(步驟S508)。 After the setting is completed, the edge area setting module 448 continues to use the gravity sensor 46 to detect whether the placement state of the portable electronic device 40 is changed (step S506). If the placement state of the portable electronic device 40 is unchanged, the originally set edge region is maintained; otherwise, if the placement state of the portable electronic device 40 is changed, the edge region setting module 448 is used to determine The edge area of the touch position is adjusted to the two edge areas of the touch screen 42 in the horizontal direction in the changed state (step S508).

舉例來說,圖6A及圖6B分別是依照本發明一實施例所繪示之邊緣區域設定的示意圖。請先參照圖6A,當可攜式電子裝置60利用重力感測器(未繪示)偵測到其擺放狀態為橫放狀態時,即會將此時觸控螢幕62的左邊緣區域622及右邊緣區域624設定為後續用以判斷觸碰位置的邊緣區域。請再參照圖6B,當可攜式電子裝置60利用重力感測器(未繪示)偵測到其擺放狀態改變為直立狀態時,即會將此時觸控螢幕62的左邊緣區域626及右邊緣區域628設定為後續用以判斷觸碰位置的邊緣區域。 For example, FIG. 6A and FIG. 6B are schematic diagrams of edge region settings according to an embodiment of the invention. Referring to FIG. 6A, when the portable electronic device 60 detects the placement state of the portable electronic device 60 by using a gravity sensor (not shown), the left edge region 622 of the touch screen 62 at this time will be 622. And the right edge region 624 is set as an edge region for subsequent determination of the touch position. Referring to FIG. 6B again, when the portable electronic device 60 detects that its placement state is changed to an upright state by using a gravity sensor (not shown), the left edge region 626 of the touch screen 62 at this time will be 626. And the right edge region 628 is set as an edge region for subsequent determination of the touch position.

綜上所述,本發明的可攜式電子裝置及其觸碰偵測方法係根據使用者手持可攜式電子裝置操作的態樣,偵測位於觸控螢幕邊緣區域的觸碰,在觸碰持續存在且存在期間沒有偵測到其他觸碰的情況下,判定此觸碰為使用者誤觸,從而將此觸碰的相關資訊自其所觸發的事件中移除。藉此,可避免使用者手持可攜式 電子裝置所造成的誤動作。本發明更根據可攜式電子裝置的擺放狀態動態調整上述的邊緣區域,使其符合目前使用者操作上可能發生誤觸的區域。 In summary, the portable electronic device and the touch detection method thereof of the present invention detect the touch located in the edge region of the touch screen according to the operation mode of the user's handheld portable electronic device, and touch If the touch persists and no other touch is detected during the presence, it is determined that the touch is a user's accidental touch, and the related information of the touch is removed from the event triggered by the user. Thereby, the user can be prevented from carrying the portable type Malfunction caused by electronic devices. According to the present invention, the edge region is dynamically adjusted according to the placement state of the portable electronic device to conform to an area where the current user operation may be mis-touched.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

S202~S210‧‧‧本發明一實施例之觸碰偵測方法的步驟 S202~S210‧‧‧ steps of the touch detection method according to an embodiment of the present invention

Claims (10)

一種可攜式電子裝置的觸碰偵測方法,適用於具有一觸控螢幕的一可攜式電子裝置,該方法包括下列步驟:利用該觸控螢幕偵測一觸碰,並判斷該觸碰之位置是否落在該觸控螢幕的一邊緣區域;當該觸碰之位置落在該邊緣區域時,累計該觸碰持續存在且該觸控螢幕未偵測到其他觸碰的時間,並判斷該時間是否超過預設時間;以及當該時間超過該預設時間時,自該觸碰所觸發的一事件中移除該觸碰的一相關資訊,直到該觸碰結束為止。 A touch detection method for a portable electronic device is applicable to a portable electronic device having a touch screen, the method comprising the steps of: detecting a touch by using the touch screen, and determining the touch Whether the position falls on an edge region of the touch screen; when the touched position falls on the edge region, the accumulated touch continues to exist and the touch screen does not detect other touches, and judges Whether the time exceeds the preset time; and when the time exceeds the preset time, a related information of the touch is removed from an event triggered by the touch until the touch ends. 如申請專利範圍第1項所述的可攜式電子裝置的觸碰偵測方法,其中該可攜式電子裝置更包括一重力感測器,而在判斷該觸碰之位置是否落在該觸控螢幕的該邊緣區域的步驟之前,更包括:利用該重力感測器偵測該可攜式電子裝置的一擺放狀態,其中該擺放狀態為橫放狀態及直立狀態其中之一;以及設定用以判斷該觸碰之位置的該邊緣區域為該擺放狀態下該觸控螢幕於一水平方向上的兩個邊緣區域。 The touch detection method of the portable electronic device according to the first aspect of the invention, wherein the portable electronic device further comprises a gravity sensor, and determining whether the touch position falls on the touch Before the step of controlling the edge region of the screen, the method further includes: detecting, by the gravity sensor, a placement state of the portable electronic device, wherein the placement state is one of a horizontally placed state and an upright state; The edge region set to determine the position of the touch is two edge regions of the touch screen in a horizontal direction in the placed state. 如申請專利範圍第2項所述的可攜式電子裝置的觸碰偵測方法,其中在設定用以判斷該觸碰之位置的該邊緣區域為該擺放狀態下該觸控螢幕於該水平方向上的兩個邊緣區域的步驟之後,更包括: 利用該重力感測器偵測該擺放狀態是否改變;以及當該擺放狀態改變時,調整用以判斷該觸碰之位置的該邊緣區域為改變後的該擺放狀態下該觸控螢幕於該水平方向上的兩個邊緣區域。 The method for detecting a touch of a portable electronic device according to claim 2, wherein the edge region in the position for determining the touch is the display state of the touch screen at the level After the steps of the two edge regions in the direction, it further includes: Using the gravity sensor to detect whether the placement state is changed; and when the placement state is changed, adjusting the edge region for determining the location of the touch is the changed touch screen state Two edge regions in the horizontal direction. 如申請專利範圍第1項所述的可攜式電子裝置的觸碰偵測方法,其中利用該觸控螢幕偵測該觸碰的步驟包括:於一螢幕關閉狀態下偵測一螢幕喚醒訊號;以及當偵測到該螢幕喚醒訊號時,啟動該觸控螢幕偵測位於該邊緣區域的該觸碰,以決定是否自該觸碰所觸發的該事件中移除該觸碰的該相關資訊。 The method for detecting a touch of a portable electronic device according to the first aspect of the invention, wherein the step of detecting the touch by using the touch screen comprises: detecting a screen wake-up signal in a screen off state; And when the screen wake-up signal is detected, the touch screen is activated to detect the touch located in the edge area to determine whether the related information of the touch is removed from the event triggered by the touch. 如申請專利範圍第1項所述的可攜式電子裝置的觸碰偵測方法,其中該邊緣區域為與該觸控螢幕至少一邊緣相距為一預設距離內的區域。 The method for detecting a touch of a portable electronic device according to claim 1, wherein the edge region is an area within a predetermined distance from at least one edge of the touch screen. 一種可攜式電子裝置,包括:一觸控螢幕,偵測一觸碰;一儲存單元,記錄多個模組;以及一或多個處理單元,連接該觸控螢幕及該儲存單元,以存取並執行該儲存單元中記錄的所述模組,所述模組包括:一觸碰位置判斷模組,判斷該觸控螢幕所偵測到的該觸碰的位置是否落在該觸控螢幕的一邊緣區域;一觸碰時間判斷模組,當該觸碰位置判斷模組判斷該觸碰之位置落在該邊緣區域時,累計該觸碰持續存在且該觸控螢幕未 偵測到其他觸碰的時間,並判斷該時間是否超過預設時間;以及一觸碰資訊移除模組,當該觸碰時間判斷模組判斷累計的該時間超過該預設時間時,自該觸碰所觸發的一事件中移除該觸碰的一相關資訊,直到該觸碰結束為止。 A portable electronic device includes: a touch screen for detecting a touch; a storage unit for recording a plurality of modules; and one or more processing units connected to the touch screen and the storage unit for storing Taking the module recorded in the storage unit, the module includes: a touch position determining module, determining whether the touched position detected by the touch screen falls on the touch screen An edge region; a touch time judging module, when the touch position judging module judges that the touch position falls on the edge region, the accumulated touch continues to exist and the touch screen is not Detecting the time of other touches and determining whether the time exceeds the preset time; and touching the information removal module, when the touch time determination module determines that the accumulated time exceeds the preset time, A related event triggered by the touch removes a related information of the touch until the touch ends. 如申請專利範圍第6項所述的可攜式電子裝置,更包括:一重力感測器,偵測該可攜式電子裝置的一擺放狀態,其中該擺放狀態為橫放狀態及直立狀態其中之一,所述模組更包括:一邊緣區域設定模組,設定用以判斷該觸碰之位置的該邊緣區域為該重力感測器所偵測的該擺放狀態下該觸控螢幕於一水平方向上的兩個邊緣區域。 The portable electronic device of claim 6, further comprising: a gravity sensor for detecting a state of being placed in the portable electronic device, wherein the placed state is a horizontal position and an upright position In one of the states, the module further includes: an edge area setting module, and the edge area configured to determine the position of the touch is the touch state detected by the gravity sensor The screen is in two edge areas in a horizontal direction. 如申請專利範圍第7項所述的可攜式電子裝置,其中該邊緣區域設定模組更利用該重力感測器偵測該擺放狀態是否改變,並在該擺放狀態改變時,調整用以判斷該觸碰之位置的該邊緣區域為改變後的該擺放狀態下該觸控螢幕於該水平方向上的兩個邊緣區域。 The portable electronic device of claim 7, wherein the edge area setting module further detects whether the placement state is changed by using the gravity sensor, and adjusts when the placement state is changed. The edge area for determining the position of the touch is the two edge areas of the touch screen in the horizontal direction in the changed state. 如申請專利範圍第6項所述的可攜式電子裝置,其中該觸碰位置判斷模組更在一螢幕關閉狀態下偵測到一螢幕喚醒訊號時,啟動該觸控螢幕偵測位於該邊緣區域的該觸碰,以決定是否自該觸碰所觸發的該事件中移除該觸碰的該相關資訊。 The portable electronic device of claim 6, wherein the touch position determining module activates the touch screen detection at the edge when a screen wake-up signal is detected in a screen off state. The touch of the area to determine whether the related information of the touch is removed from the event triggered by the touch. 如申請專利範圍第6項所述的可攜式電子裝置,其中該邊緣區域為與該觸控螢幕至少一邊緣相距為一預設距離內的區域。 The portable electronic device of claim 6, wherein the edge region is an area within a predetermined distance from at least one edge of the touch screen.
TW103113688A 2014-04-15 2014-04-15 Portable electronic apparatus and touch detecting method thereof TWI524230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103113688A TWI524230B (en) 2014-04-15 2014-04-15 Portable electronic apparatus and touch detecting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103113688A TWI524230B (en) 2014-04-15 2014-04-15 Portable electronic apparatus and touch detecting method thereof

Publications (2)

Publication Number Publication Date
TW201539268A true TW201539268A (en) 2015-10-16
TWI524230B TWI524230B (en) 2016-03-01

Family

ID=54851346

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103113688A TWI524230B (en) 2014-04-15 2014-04-15 Portable electronic apparatus and touch detecting method thereof

Country Status (1)

Country Link
TW (1) TWI524230B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI630506B (en) * 2017-06-23 2018-07-21 群邁通訊股份有限公司 Electronic device, system and method of preventing false touch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI630506B (en) * 2017-06-23 2018-07-21 群邁通訊股份有限公司 Electronic device, system and method of preventing false touch

Also Published As

Publication number Publication date
TWI524230B (en) 2016-03-01

Similar Documents

Publication Publication Date Title
US9785344B2 (en) Portable electronic apparatus and touch detecting method thereof
TWI567602B (en) Touch input determining method electronic apparatus applying the touch input determining method
TWI469006B (en) Touch panel system and electronic apparatus
US20140092049A1 (en) Touch-Control Method, Device, And Electronic Device
JP2009163345A5 (en)
TWI622900B (en) Portable electronic device, operating method for the same, and non-transitory computer readable recording
US10642417B2 (en) Method and apparatus for determining touching action and display device
WO2017161825A1 (en) Scrolling screenshot use method and terminal
JP5733634B2 (en) Power management apparatus, power management method, and power management program
EP3712752A1 (en) Touch recognition method and touch device
US10067668B2 (en) Portable electronic device, operating method for the same, and non-transitory computer readable recording medium
TWI524261B (en) Method for controlling electronic apparatus and electronic apparatus applying the method
TWI501112B (en) Handheld electronic apparatus and a method for activating an application of the handheld electronic apparatus
US20150242094A1 (en) Method for Processing Information and Electronic Device
CN105022518B (en) Portable electron device and its touch detecting method
WO2014146612A1 (en) Startup item consumed time acquisition method and device
WO2016065746A1 (en) Terminal device wakeup method and apparatus and storage medium
TWI524230B (en) Portable electronic apparatus and touch detecting method thereof
WO2015002300A1 (en) Portable terminal and control method
CN107626688B (en) Electronic device capable of automatically cleaning screen
TWI611320B (en) Handheld electornic device and operatoin method of the same
CN105190471A (en) Controlling transmit power of an antenna based on a touch display input location
EP2866134A1 (en) Portable electronic device and control method
US10503236B2 (en) Method, electronic device, and computer-readable recording medium for setting screen timeout time
TWI628598B (en) Electronic device and half-suspend controlling method thereof