+

CN105022518B - Portable electronic device and touch detection method thereof - Google Patents

Portable electronic device and touch detection method thereof Download PDF

Info

Publication number
CN105022518B
CN105022518B CN201410178123.4A CN201410178123A CN105022518B CN 105022518 B CN105022518 B CN 105022518B CN 201410178123 A CN201410178123 A CN 201410178123A CN 105022518 B CN105022518 B CN 105022518B
Authority
CN
China
Prior art keywords
touch
screen
touch screen
fringe region
electron device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410178123.4A
Other languages
Chinese (zh)
Other versions
CN105022518A (en
Inventor
赖志菁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Winbond Electronics Corp
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 CN201410178123.4A priority Critical patent/CN105022518B/en
Publication of CN105022518A publication Critical patent/CN105022518A/en
Application granted granted Critical
Publication of CN105022518B publication Critical patent/CN105022518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A portable electronic device and a touch detection method thereof are provided. The method detects touch by using a touch screen of the portable electronic device and judges whether the touch position falls in the edge area of the touch screen. When the touch position is in the edge area, the time that the touch is continuously present and the touch screen does not detect other touches is accumulated, and whether the accumulated time exceeds the preset time is judged. And when the accumulated time exceeds the preset time, removing the relevant information of the touch from the event triggered by the touch until the touch is finished.

Description

便携式电子装置及其触摸检测方法Portable electronic device and touch detection method thereof

技术领域technical field

本发明涉及一种电子装置及其触摸检测方法,且特别涉及一种便携式电子装置及其触摸检测方法。The invention relates to an electronic device and a touch detection method thereof, and in particular to a portable electronic device and a touch detection method thereof.

背景技术Background technique

触控屏幕是一种将电容式、电阻式或其他触摸检测元件整合在液晶等平板显示面板上的显示装置。由于触控屏幕可同时提供显示及触摸输入功能,且其操作上具有简单、直观的优点,因此逐渐成为手机、平板电脑、个人数码助理(Personal Digital Assistant,PDA)、多媒体播放器等便携式电子装置的基本配件。A touch screen is a display device that integrates capacitive, resistive or other touch detection elements on a flat 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 is simple and intuitive, it has gradually become a mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), multimedia player and other portable electronic devices. basic accessories.

为了方便携带,便携式电子装置对于外型均要求轻、薄、短、小,此将使得便携式电子装置所能配置的触控屏幕的尺寸受到限制。而为了在有限的空间内配置更大的触控屏幕,以提供使用者更大的显示及触摸操作区域,目前的便携式电子装置已朝窄边框的方向来设计。For the convenience of portability, portable electronic devices are required to be light, thin, short, and small in appearance, which will limit the size of the touch screen that can be configured in the portable electronic device. In order to configure a larger touch screen in a limited space to provide users with a larger display and touch operation area, the current portable electronic devices have been designed in the direction of narrow borders.

然而,使用者在手持便携式电子装置操作时,其持握装置的手常会因为较窄的边框而误触到触控屏幕,结果常会造成便携式电子装置的误动作。However, when a user holds a portable electronic device for operation, the hand holding the device often accidentally touches the touch screen due to the narrow frame, which often causes malfunction of the portable electronic device.

发明内容Contents of the invention

本发明提供一种便携式电子装置及其触摸检测方法,可避免使用者持握装置的手造成便携式电子装置的误动作。The invention provides a portable electronic device and a touch detection method thereof, which can avoid malfunction of the portable electronic device caused by a user's hand holding the device.

本发明的便携式电子装置的触摸检测方法,适用于具有触控屏幕的便携式电子装置。此方法是利用触控屏幕检测触摸,并判断此触摸的位置是否落在触控屏幕的边缘区域。当此触摸的位置落在边缘区域时,即累计此触摸持续存在且触控屏幕未检测到其他触摸的时间,并判断所累计的时间是否超过预设时间。当所累计的时间超过预设时间时,自上述触摸所触发的事件中移除此触摸的相关信息,直到此触摸结束为止。The touch detection method for a portable electronic device of the present invention is suitable for a portable electronic device with a touch screen. This method is to use the touch screen to detect touch, and judge whether the position of the touch falls on the edge area of the touch screen. When the position of the touch falls on the edge area, the time during which the touch continues to exist and no other touch is detected by the touch screen is accumulated, and it is judged whether the accumulated time exceeds a 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 present invention, the above-mentioned portable electronic device further includes a gravity sensor, and before the step of judging whether the touched position falls on the edge area of the touch screen, the method also uses the gravity sensor to detect whether the portable electronic device The placement state of the electronic device, wherein the placement state is one of a horizontal state and an upright state. Next, the edge areas used for determining the touched position are set as two edge areas of the touch screen in the horizontal direction in the detected placement state.

在本发明的一实施例中,在上述将用于判断触摸的位置的边缘区域设定为所检测摆放状态下触控屏幕于水平方向上的两个边缘区域的步骤之后,所述方法还利用重力感应器检测摆放状态是否改变,而当摆放状态改变时,将用于判断触摸的位置的边缘区域调整为改变后的摆放状态下触控屏幕于水平方向上的两个边缘区域。In an embodiment of the present invention, after the above-mentioned step of setting the edge area used for determining the touch position as the two edge areas of the touch screen in the horizontal direction in the detected placement state, the method further Use the gravity sensor to detect whether the placement state has changed, and when the placement state changes, adjust the edge area used to judge the touch position to the two edge areas of the touch screen in the horizontal direction in the changed placement state .

在本发明的一实施例中,上述利用触控屏幕检测触摸的步骤包括于屏幕关闭状态下检测屏幕唤醒信号,而在检测到屏幕唤醒信号时,启动触控屏幕检测位于边缘区域的触摸,以决定是否自触摸所触发的事件中移除触摸的相关信息。In an embodiment of the present invention, the step of using the touch screen to detect the touch includes detecting a screen wake-up signal when the screen is off, and when the screen wake-up signal is detected, the touch screen is activated to detect a touch located in the edge area, so as to Determines whether to remove touch-related information from events triggered by touches.

本发明的便携式电子装置包括触控屏幕、储存单元及一个或多个处理单元。其中,触控屏幕用于检测触摸。储存单元用于存储多个功能模块。处理单元连接触控屏幕及储存单元,用于存取并执行储存单元中存储的功能模块。上述的功能模块包括触摸位置判断模块、触摸时间判断模块及触摸信息移除模块。其中,触摸位置判断模块会判断触控屏幕所检测到的触摸的位置是否落在触控屏幕的边缘区域。触摸时间判断模块会在触摸位置判断模块判断触摸位置落在边缘区域时,累计此触摸持续存在且触控屏幕未检测到其他触摸的时间,并判断所累计的时间是否超过预设时间。触摸信息移除模块会在触摸时间判断模块判断其所累计的时间超过预设时间时,自触摸所触发的事件中将此触摸的相关信息移除,直到此触摸结束为止。The portable electronic device of the present invention includes a touch screen, a storage unit and one or more processing units. Wherein, the touch screen is used to detect touch. The storage unit is used for storing multiple functional modules. The processing unit is connected to the touch screen and the storage unit for accessing and executing the function modules stored in the storage unit. The above functional modules include a touch position judgment module, a touch time judgment module and a touch information removal module. Wherein, the touch position judging module judges whether the touched position detected by the touch screen falls on the edge area of the touch screen. The touch time judging module will, when the touch position judging module judges that the touch position falls on the edge area, accumulate the time that the touch persists and no other touch is detected on the touch screen, and judge whether the accumulated time exceeds the preset time. The touch information removal module will remove the relevant information of the touch from the event triggered by the touch when the touch time judging module judges that the accumulated time exceeds the preset time until the touch ends.

在本发明的一实施例中,上述的便携式电子装置还包括重力感应器。此重力感应器用于检测便携式电子装置的摆放状态,其中摆放状态为横放状态及直立状态其中之一。此外,上述的功能模块还包括边缘区域设定模块,其可将重力感应器所检测的摆放状态下触控屏幕于水平方向上的两个边缘区域设定为用于判断触摸位置的边缘区域。In an embodiment of the present invention, the above-mentioned portable electronic device further includes a gravity sensor. The gravity sensor is used to detect the placement state of the portable electronic device, wherein the placement state is one of a horizontal state and an upright state. In addition, the above-mentioned functional module also includes an edge area setting module, which can set the two edge areas of the touch screen in the horizontal direction detected by the gravity sensor as the edge areas for judging the touch position .

在本发明的一实施例中,上述的边缘区域设定模块还利用重力感应器检测摆放状态是否改变,并在摆放状态改变时,将改变后摆放状态下触控屏幕于水平方向上的两个边缘区域调整为用于判断触摸位置的边缘区域。In an embodiment of the present invention, the above-mentioned edge area setting module also uses the gravity sensor to detect whether the placement state changes, and when the placement state changes, the touch screen in the changed placement state is placed in the horizontal direction The two edge areas of are adjusted to be the edge areas for judging the touch position.

在本发明的一实施例中,上述的触摸位置判断模块还在屏幕关闭状态下检测到屏幕唤醒信号时,将触控屏幕启动以检测位于边缘区域的触摸,据以决定是否自此触摸所触发的事件中将此触摸的相关信息移除。In an embodiment of the present invention, when the above-mentioned touch position judging module detects the screen wake-up signal when the screen is off, it activates the touch screen to detect the touch located in the edge area, so as to determine whether the touch is triggered by the touch. The relevant information of this touch is removed from the event.

在本发明的一实施例中,上述的边缘区域为与触控屏幕至少一个边缘相距为预设距离内的区域。In an embodiment of the present invention, the aforementioned edge area is an area within a preset 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 the touch located at the edge area of the touch screen, and if the touch continues to exist and no other touch is detected during the existence, it is determined that the touch is a false touch by the user, This removes information about this touch from the event it triggered. Therefore, the malfunction caused by the user holding the portable electronic device can be avoided.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合说明书附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.

附图说明Description of drawings

图1是依照本发明一实施例所绘示的便携式电子装置的模块图。FIG. 1 is a block diagram of a portable electronic device according to an embodiment of the invention.

图2是依照本发明一实施例所绘示的触摸检测方法的流程图。FIG. 2 is a flowchart of a touch detection method according to an embodiment of the invention.

图3是依照本发明一实施例所绘示的边缘区域的示意图。FIG. 3 is a schematic diagram of an edge area 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 flowchart of a method for adjusting an edge region according to an embodiment of the invention.

图6A及图6B分别是依照本发明一实施例所绘示的边缘区域设定的示意图。FIG. 6A and FIG. 6B are respectively schematic diagrams illustrating edge area settings according to an embodiment of the present invention.

附图标记说明:Explanation of reference signs:

10、30、40、60:便携式电子装置;10, 30, 40, 60: portable electronic devices;

12、32、42、62:触控屏幕;12, 32, 42, 62: touch screen;

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: edge area;

448:边缘区域设定模块;448: edge area setting module;

46:重力感应器;46: gravity sensor;

S202~S210:本发明一实施例之触摸检测方法的步骤;S202-S210: Steps of a touch detection method according to an embodiment of the present invention;

S502~S508:本发明一实施例之边缘区域调整方法的步骤。S502-S508: Steps of a method for adjusting an edge region according to an embodiment of the present invention.

具体实施方式Detailed ways

当使用者以单手持握便携式电子装置时,其手指时常会因为便携式电子装置的边框过窄而误触到触控屏幕,但此情况下触控屏幕所检测到的触摸通常都是位于边缘区域的长时间触摸。本发明即利用此特点,针对位于触控屏幕边缘的触摸累计其持续存在且存在期间没有其他触摸出现的时间,而当累计时间超过预设时间时,即判定此触摸为使用者持握便携式电子装置所造成,并非使用者对于触控屏幕的实际操作,从而将此触摸自其所触发的事件中移除。因此,可达到避免使用者误触的目的。When a user holds a portable electronic device with one hand, his finger often touches the touch screen by mistake because the bezel of the portable electronic device is too narrow, but in this case the touch detected by the touch screen is usually located in the edge area prolonged touch. The present invention utilizes this feature to accumulate the time during which the touch at the edge of the touch screen lasts without other touches. Caused by the device, rather than the user's actual manipulation of the touch screen, the touch is removed from the event it triggered. Therefore, the purpose of avoiding accidental touch by the user can be achieved.

图1是依照本发明一实施例所绘示的便携式电子装置的模块图。请参照图1,本实施例的便携式电子装置10例如是手机、智能手机、个人数码助理(Personal DigitalAssistant,PDA)、平板电脑、电子书等具有触控屏幕的电子装置,但不限于此。便携式电子装置10包括触控屏幕12、储存单元14及一个或多个处理单元16,其功能分别如下:FIG. 1 is a block diagram of a portable electronic device according to an embodiment of the invention. Please refer to FIG. 1 , the portable electronic device 10 of this embodiment is, for example, a mobile phone, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), a tablet computer, an e-book, and other electronic devices with a touch screen, but is not limited thereto. The portable electronic device 10 includes a touch screen 12, a storage unit 14 and one or more processing units 16, and its functions are as follows:

触控屏幕12为一种整合触摸检测元件的显示装置,可同时提供显示及输入功能。此显示装置例如是液晶显示器(Liquid Crystal Display,LCD)、发光二极体(Light-Emitting Diode,LED)显示器、场发射显示器(Field Emission Display,FED)或其他种类的显示器,但不限于此。触摸检测元件是成列、成行地配置在显示装置上,用于检测使用者手指、手掌或其他物体对于触控屏幕12的触摸。触摸检测元件可为例如电容式触摸检测元件、表面声波触摸检测元件、电磁触摸检测元件或近场成像触摸检测元件,但不限于此。The touch screen 12 is a display device integrating touch detection elements, which can provide both display and input functions. The display device is, for example, a liquid crystal display (Liquid Crystal Display, LCD), a light-emitting diode (Light-Emitting Diode, LED) display, a field emission display (Field Emission Display, FED) or other types of displays, but not limited thereto. The touch detection elements are arranged in columns and rows on the display device, and are used to detect the touch of the touch screen 12 by the user's finger, palm or other objects. The touch detection element may be, for example, a capacitive touch detection element, a surface acoustic wave touch detection element, an electromagnetic touch detection element or a near-field imaging touch detection element, but is not limited thereto.

储存单元14例如是任意类型的固定式或可移动式随机存取存储器(RandomAccess 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 (Random Access Memory, RAM), readable memory (Read-Only Memory, ROM), flash memory (Flash memory), optical disc or other similar devices Or a combination of these devices, which are used to store a plurality of functional modules that can be executed by the processing unit 16, and these functional modules are loaded by the processing unit 16 to execute the touch detection method of the present invention.

处理单元16例如是中央处理单元(Central Processing Unit,CPU),或是其他可编程的一般用途或特殊用途的微处理器(Microprocessor)、数字信号处理器(DigitalSignal Processor,DSP)、可编程控制器、特殊应用集成电路(Application SpecificIntegrated 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 (Digital Signal Processor, DSP), programmable controller , application specific integrated circuits (Application Specific Integrated Circuits, ASIC), programmable logic device (Programmable Logic Device, PLD) or other similar devices or a combination 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 function modules stored in the storage unit 14 to perform a touch detection function.

上述功能模块包括触摸位置判断模块142、触摸时间判断模块144及触摸信息移除模块146,这些功能模块例如是电脑程序,其可载入处理单元16,从而执行触摸检测功能。以下即举实施例说明便携式电子装置10执行触摸检测方法的详细步骤。The above-mentioned functional modules include a touch position determination module 142 , a touch time determination module 144 and a touch information removal module 146 . These functional modules are, for example, computer programs that can be loaded into the processing unit 16 to perform touch detection functions. The following is an example to illustrate the detailed steps of the portable electronic device 10 performing the touch detection method.

图2是依照本发明一实施例所绘示的触摸检测方法的流程图。请参照图2,本实施例的方法适用于图1的便携式电子装置10,以下即搭配便携式电子装置10中的各项元件说明本发明的触摸检测方法的详细步骤:FIG. 2 is a flowchart of a touch detection method according to an embodiment of the invention. Please refer to FIG. 2 , the method of this embodiment is applicable to the portable electronic device 10 in FIG. 1 , and the detailed steps of the touch detection method of the present invention are described below in combination with various components in the portable electronic device 10:

首先,由便携式电子装置10利用触控屏幕12检测使用者的触摸(步骤S202),并由触摸位置判断模块142判断此触摸的位置是否落在触控屏幕的边缘区域(步骤S204)。其中,上述的边缘区域例如是触控屏幕12内与触控屏幕12的至少一个边缘相距为预设距离内的区域。此预设距离可依便携式电子装置10的边框大小自动调整,例如可预设为0.5至1公分,且可由使用者手动调整。Firstly, the portable electronic device 10 uses the touch screen 12 to detect the user's touch (step S202), and the touch position determination module 142 determines whether the touch position falls on the edge area of the touch screen (step S204). Wherein, the aforementioned edge area is, for example, an area within a predetermined distance from at least one edge of the touch screen 12 in the touch screen 12 . The preset distance can be automatically adjusted according to the frame size of the portable electronic device 10 , for example, it can be preset at 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 area according to an embodiment of the present invention. Please refer to FIG. 3 , the portable electronic device 30 of the present embodiment sets the area within 1 cm away from the upper edge, lower edge, left edge, and right edge of the touch screen 32 as the edge for judging the user's touch position. Area 34.

回到图2的流程,当触摸位置判断模块142判断触摸的位置并未落在边缘区域时,则可判定此触摸并非使用者误触,因此流程将回到步骤S202,继续由触控屏幕12检测使用者的下个触摸。反之,当触摸位置判断模块142判断触摸的位置落在触控屏幕12的边缘区域时,则判定此触摸可能是使用者误触,而由触摸时间判断模块144累计此触摸持续存在且存在期间触控屏幕12并未检测到其他触摸的时间(步骤S206),并判断此时间是否超过预设时间(步骤S208)。Returning to the process of FIG. 2, when the touch position judging module 142 judges that the touched position does not fall in the edge area, it can be determined that the touch is not a user's mistaken touch, so the process will return to step S202, and continue to be controlled by the touch screen 12. Detects the user's next touch. On the contrary, when the touch position judging module 142 judges that the touched position falls on the edge area of the touch screen 12, then it is judged that the touch may be a user's mistaken touch, and the touch time judging module 144 accumulates that the touch continues to exist and is touched during the existence. The control screen 12 does not detect the time of other touches (step S206), and judge whether this time exceeds the preset time (step S208).

具体而言,由于使用者以单手持握便携式电子装置10进行操作时,一般都是用另一只手做操作,而在使用者用一只手拿起便携式电子装置10到用另一只手进行操作之间会有一个空档。本实施例即利用此空档来辅助判断使用者在边缘区域的触摸是否是因手持便携式电子装置10所造成的误触。只有在触摸时间超过预设时间且在此预设时间内未检测到其他触摸时,才认定此触摸是使用者的误触。Specifically, when the user holds the portable electronic device 10 with one hand for operation, he usually uses the other hand for operation, and when the user picks up the portable electronic device 10 with one hand to use the other hand There will be a gap between operations. In this embodiment, this gap is used to help determine whether the user's touch on the edge area is a false touch caused by holding the portable electronic device 10 . Only when the touch time exceeds the preset time and no other touch is detected within the preset time, it is determined that the touch is a false touch by the user.

需说明的是,上述的预设时间例如是介于0.5秒至1秒之间,但不限于此。其中,若是将预设时间设定地愈长,则便携式电子装置10检测到误触的次数较少,但检测的结果较为准确;反之,若将预设时间设定地愈短,则便携式电子装置10很容易就会检测到误触,但相对地检测结果也会较不准确。因此,使用者可视其操作习惯随时调整预设时间的长度。It should be noted that the aforementioned preset time is, for example, between 0.5 second and 1 second, but is not limited thereto. Wherein, if the preset time is set longer, the number of false touches detected by the portable electronic device 10 is less, but the detection result is more accurate; otherwise, if the preset time is set shorter, the portable electronic device 10 will The device 10 can easily detect false touches, but the detection results are relatively inaccurate. 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 chart of FIG. 2, when the touch time judgment module 144 judges that the accumulated time exceeds the preset time, the touch information removal module 146 will remove the relevant information of the touch from the event triggered by it until until the touch ends (step S210). Otherwise, the process returns to step S202, and the touch screen 12 continues to detect the next touch of the user. Wherein, since when the touch screen 12 detects a touch, the screen displayed by the portable electronic device 10 on the touch screen 12 may be different screens such as a standby screen, a main menu screen, and an application screen currently being executed, and corresponds to the above-mentioned Touching the position on the touch screen 12 may trigger different events, such as triggering an unlock event on the standby screen, triggering an application start event on the main menu screen, and triggering an application operation event on the application screen. Wait. However, after the judgment by the above method, the touch detected by the touch screen 12 has been judged as a false touch, so this embodiment removes the relevant information of this touch from the event triggered by it, and excludes this touch. Malfunction caused by touch.

需说明的是,在本实施例中,触摸检测方法是适用在屏幕开启状态下的任何时间点,而可随时检测使用者的误触。然而,在另一实施例中,触摸检测方法可仅用在便携式电子装置从屏幕关闭状态唤醒的瞬间。其中,上述的触摸位置判断模块142例如会在屏幕关闭状态下检测到屏幕唤醒信号时,启动触控屏幕12以检测位于边缘区域的触摸,并由触摸信息移除模块146决定是否自此触摸所触发的事件中移除触摸的相关信息。具体而言,通常使用者开始使用便携式电子装置时,一般会以手持握便携式电子装置并按下电源键或Home键等实体按键以唤醒屏幕,之后才用另一手对触控屏幕进行操作。本实施例即利用此空档,在触控屏幕被唤醒瞬间即检测边缘区域是否被使用者触摸到,从而提早将误触排除。It should be noted that, in this embodiment, the touch detection method is applicable at any point in time when the screen is turned on, and can detect user's false touch at any time. However, in another embodiment, the touch detection method may only be used at the moment when the portable electronic device wakes up from the screen-off state. Wherein, the above-mentioned touch position determination module 142, for example, will start the touch screen 12 to detect the touch located in the edge area when the screen is turned off and detect the screen wake-up signal, and the touch information removal module 146 will decide whether to touch the touch position from then on. Remove touch related information from the triggered event. Specifically, when a user starts using a portable electronic device, he usually holds the portable electronic device with one hand and presses a physical button such as a power button or a home button to wake up the screen, and then operates the touch screen with the other hand. This embodiment utilizes this gap to detect whether the edge area is touched by the user at the moment the touch screen is awakened, so as to eliminate false touches in advance.

通过上述方法,便携式电子装置即可准确判断使用者在触控屏幕边缘的触摸是否为误触,并据以将此触摸自其所触发的事件中移除,从而避免便携式电子装置的误动作。Through the above method, the portable electronic device can accurately determine whether the user's touch on the edge of the touch screen is a false touch, and accordingly remove the touch from the event triggered by it, thereby avoiding false actions of the portable electronic device.

需说明的是,在上述实施例中,用来判断触摸位置的边缘区域是预设在触控屏幕的四个边缘。而在另一实施例中,由于使用者在以单手持握时通常习惯握在便携式电子装置的两侧,故本发明的另一实施例可进一步检测便携式电子装置的摆放方向,并据以调整边缘区域的位置,以符合使用者的实际操作态样。以下则再举一实施例详细说明。It should be noted that, in the above embodiments, the edge areas used to determine the touch position are preset at four edges of the touch screen. In another embodiment, since the user is usually accustomed to holding the portable electronic device on both sides when holding it with one hand, another embodiment of the present invention can further detect the orientation of the portable electronic device, and according to Adjust the position of the edge area to match the user's actual operation style. Hereinafter, another embodiment will be given in detail.

图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. Please refer to FIG. 1 , the portable electronic device 40 of this embodiment is, for example, a mobile phone, a smart phone, a personal digital assistant, a tablet computer, an electronic book, etc., with a touch screen, 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 or similar to those of the touch screen 12 , the storage unit 14 and the processing unit 16 in the foregoing embodiments, so details are not repeated here.

与前述实施例不同的是,本实施例的便携式电子装置40额外配置有重力感应器46,其可用于检测便携式电子装置40在三轴上的分量,从而得到便携式电子装置40目前的摆放状态。Different from the previous embodiments, the portable electronic device 40 of this embodiment is additionally equipped with a gravity sensor 46, which can be used to detect the components of the portable electronic device 40 on three axes, so as to obtain the current placement state of the portable electronic device 40 .

此外,储存单元44中储存触摸位置判断模块442、触摸时间判断模块444、触摸信息移除模块446及边缘区域设定模块448,其中触摸位置判断模块442、触摸时间判断模块444、触摸信息移除模块446是与前述实施例中的触摸位置判断模块142、触摸时间判断模块144、触摸信息移除模块146相同或相似,故其功能在此不再赘述。与前述实施例不同的是,本实施例是在检测触摸之前即由边缘区域设定模块448利用重力感应器46检测便携式电子装置40的摆放状态,并据以决定后续用于判断触摸所在位置的边缘区域。In addition, the storage unit 44 stores a touch position judgment module 442, a touch time judgment module 444, a touch information removal module 446 and an edge area setting module 448, wherein the touch position judgment module 442, the touch time judgment module 444, the touch information removal The module 446 is the same 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 embodiments, so its functions will not be repeated here. The difference from the previous embodiments is that in this embodiment, before the touch is detected, the edge area setting module 448 uses the gravity sensor 46 to detect the placement state of the portable electronic device 40, and then determines the subsequent location of the touch. edge area.

具体而言,图5是依照本发明一实施例所绘示的边缘区域调整方法的流程图。请参照图5,本实施例的方法适用于图4的便携式电子装置40,以下即搭配便携式电子装置40中的各项元件说明本发明的触摸检测方法的详细步骤:Specifically, FIG. 5 is a flowchart of a method for adjusting an edge region according to an embodiment of the present invention. Please refer to FIG. 5 , the method of this embodiment is applicable to the portable electronic device 40 in FIG. 4 , and the detailed steps of the touch detection method of the present invention are described below in conjunction with various components in the portable electronic device 40:

首先,由便携式电子装置40利用重力感应器46检测其摆放状态(步骤S502),其中重力感应器46例如会检测便携式电子装置40在三轴方向上的分量,从而判断便携式电子装置40目前的摆放状态是为横放状态或是直立状态。First, the portable electronic device 40 uses the gravity sensor 46 to detect its placement status (step S502), wherein the gravity sensor 46, for example, detects the components of the portable electronic device 40 in the three-axis direction, thereby judging the current position of the portable electronic device 40 The placement state is a horizontal state or an upright state.

接着,由边缘区域设定模块448将后续用于判断触摸位置的边缘区域设定为重力感应器46所检测的摆放状态下触控屏幕42于水平方向上的两个边缘区域(步骤S504)。Next, the edge area setting module 448 sets the edge area for subsequent determination of the touch position as the two edge areas of the touch screen 42 in the horizontal direction 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 will continue to use the gravity sensor 46 to detect whether the placement state of the portable electronic device 40 is changed (step S506 ). Wherein, if the placement state of the portable electronic device 40 does not change, then maintain the originally set margin area; otherwise, if the placement state of the portable electronic device 40 changes, the margin area setting module 448 will use the margin area for judging the touch position The edge areas are adjusted to two edge areas of the touch screen 42 in the horizontal direction in the changed placement 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 present invention. Please refer to FIG. 6A first. When the portable electronic device 60 uses a gravity sensor (not shown) to detect that its placement state is a horizontal state, it will display the left edge area 622 and the right edge area of the touch screen 62 at this time. 624 is set as an edge area for subsequently determining the touch position. Please refer to FIG. 6B again. When the portable electronic device 60 uses a gravity sensor (not shown) to detect that its placement state has changed to an upright state, it will change the left edge area 626 and the right edge area of the touch screen 62 at this time. 628 is set as an edge area for subsequently determining the touch position.

综上所述,本发明的便携式电子装置及其触摸检测方法是根据使用者手持便携式电子装置操作的态样,检测位于触控屏幕边缘区域的触摸,在触摸持续存在且存在期间没有检测到其他触摸的情况下,判定此触摸为使用者误触,从而将此触摸的相关信息自其所触发的事件中移除。因此,可避免使用者手持便携式电子装置所造成的误动作。本发明还根据便携式电子装置的摆放状态动态调整上述的边缘区域,使其符合目前使用者操作上可能发生误触的区域。To sum up, the portable electronic device and its touch detection method of the present invention detects a touch located at the edge area of the touch screen according to the way in which the user holds the portable electronic device and operates it, and no other touches are detected during the continuous existence of the touch. In the case of a touch, it is determined that the touch is an accidental touch by the user, so that the relevant information of the touch is removed from the event triggered by it. Therefore, the malfunction caused by the user holding the portable electronic device can be avoided. The present invention also dynamically adjusts the above-mentioned edge area according to the placement state of the portable electronic device, so that it conforms to the area where accidental touches may occur in current user operations.

以上具体地示出和描述了本公开的示例性实施方式。应该理解,本公开不限于所公开的实施方式,相反,本公开意图涵盖包含在所附权利要求的精神和范围内的各种修改和等效布置。Exemplary embodiments of the present disclosure have been specifically shown and described above. It should be understood that the present disclosure is not limited to the disclosed embodiments, but on the contrary, the present disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. a kind of touch detecting method of portable electron device, suitable for the portable electron device with Touch Screen, its It is characterized in that, this method comprises the following steps:
Detected and touched using the Touch Screen, and judge whether the position of the touch falls the fringe region in the Touch Screen;
When the position of the touch falls in the fringe region, the accumulative touch persistently exists and the Touch Screen is not detected by other The time of touch, and judge whether the time exceedes preset time;And
When the time exceeding the preset time, the relevant information of the touch is removed in the event triggered from the touch, until Untill the touch terminates.
2. the touch detecting method of the portable electron device as described in claim 1, it is characterised in that the portable electronic Device further includes gravity sensor, and the step of whether fall the fringe region in the Touch Screen in the position for judging the touch Before, further include:
The placement state of the portable electron device is detected using the gravity sensor, wherein the placement state for traverse state and One of erectility;And
The Touch Screen is set under the placement state in two fringe regions in horizontal direction as the position for judging the touch The fringe region put.
3. the touch detecting method of the portable electron device as described in claim 2, it is characterised in that put setting this Under state the Touch Screen in two fringe regions in a horizontal direction be for the marginal zone for the position for judging the touch After the step of domain, further include:
Detect whether the placement state changes using the gravity sensor;And
When the placement state changes, the Touch Screen is in two in the horizontal direction under the placement state after adjustment change Fringe region is for the fringe region for the position for judging the touch.
4. the touch detecting method of the portable electron device as described in claim 1, it is characterised in that utilize the touch screen The step of curtain detection touch, includes:
Screen wake-up signal is detected under screen closed mode;And
When detecting the screen wake-up signal, start the touch of Touch Screen detection positioned at the fringe region, to determine Whether the relevant information of the touch is removed from the event that the touch is triggered.
5. the touch detecting method of the portable electron device as described in claim 1, it is characterised in that the fringe region is It is the region in pre-determined distance with a Touch Screen at least border.
A kind of 6. portable electron device, it is characterised in that including:
Touch location judgment module, judges whether the position of the touch detected by Touch Screen falls on the side of the Touch Screen Edge region;
Time judgment module is touched, when the touch location judgment module judges that the position of the touch falls in the fringe region, is tired out When counting that the touch persistently exists and the Touch Screen is not detected by the time of other touches, and judging whether the time exceedes default Between;And
Touch information remove module, when the touch time judgment module judges that the accumulative time exceedes the preset time, from The relevant information of the touch is removed in the event that the touch is triggered, untill the touch terminates.
7. the portable electron device as described in claim 6, it is characterised in that further include:
Fringe region setting module, the placement state of the portable electron device is detected using gravity sensor, heavy to set this Under the placement state that power inductor is detected the Touch Screen in two fringe regions in horizontal direction be for judging this The fringe region of the position of touch, the wherein placement state are one of traverse state and erectility.
8. the portable electron device as described in claim 7, it is characterised in that the fringe region setting module also utilizes should Gravity sensor detects whether the placement state changes, and when the placement state changes, the placement state after adjustment change The lower Touch Screen is for the fringe region for the position for judging the touch in two fringe regions in the horizontal direction.
9. the portable electron device as described in claim 6, it is characterised in that the touch location judgment module is also in screen When screen wake-up signal is detected under closed mode, start the touch of Touch Screen detection positioned at the fringe region, with certainly Fixed relevant information that the touch whether is removed from the event that the touch is triggered.
10. the portable electron device as described in claim 6, it is characterised in that the fringe region be and the Touch Screen An at least border is the region in pre-determined distance.
CN201410178123.4A 2014-04-29 2014-04-29 Portable electronic device and touch detection method thereof Active CN105022518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410178123.4A CN105022518B (en) 2014-04-29 2014-04-29 Portable electronic device and touch detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410178123.4A CN105022518B (en) 2014-04-29 2014-04-29 Portable electronic device and touch detection method thereof

Publications (2)

Publication Number Publication Date
CN105022518A CN105022518A (en) 2015-11-04
CN105022518B true CN105022518B (en) 2018-04-24

Family

ID=54412540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410178123.4A Active CN105022518B (en) 2014-04-29 2014-04-29 Portable electronic device and touch detection method thereof

Country Status (1)

Country Link
CN (1) CN105022518B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406633A (en) * 2016-12-16 2017-02-15 广东欧珀移动通信有限公司 A method, device and mobile terminal for preventing false touches on the edge of a touch screen
CN109782937B (en) * 2017-11-13 2021-03-05 京东方科技集团股份有限公司 Touch driving method and device and display terminal
CN108595106A (en) * 2018-04-28 2018-09-28 努比亚技术有限公司 terminal control method, terminal and computer readable storage medium
JP7218567B2 (en) * 2018-12-21 2023-02-07 京セラドキュメントソリューションズ株式会社 Information input device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289321A (en) * 2011-08-22 2011-12-21 惠州Tcl移动通信有限公司 Handheld device and method for processing mistaken touch on touch screen thereof
CN102830844A (en) * 2012-08-17 2012-12-19 北京小米科技有限责任公司 Touch screen misoperation prevention method, touch screen and mobile terminal
CN102937920A (en) * 2011-08-15 2013-02-20 联想(北京)有限公司 Method, device and electronic device for preventing misoperation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117140A (en) * 2009-12-30 2011-07-06 联想(北京)有限公司 Touch processing method and mobile terminal
CN101976142A (en) * 2010-09-29 2011-02-16 杭州惠道科技有限公司 Method for preventing accidental touch operation of touch screen device
JP5641003B2 (en) * 2012-03-14 2014-12-17 コニカミノルタ株式会社 Operation input device and program
CN103324325B (en) * 2012-03-21 2016-02-10 宇龙计算机通信科技(深圳)有限公司 The detection method of multi-point touch misoperation and terminal
CN103176653A (en) * 2013-03-13 2013-06-26 向运明 Handheld type device touch control display screen wrong-touch prevention method
CN103475919A (en) * 2013-09-04 2013-12-25 深圳Tcl新技术有限公司 Remote control method and system based on side face sliding touch and remote control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937920A (en) * 2011-08-15 2013-02-20 联想(北京)有限公司 Method, device and electronic device for preventing misoperation
CN102289321A (en) * 2011-08-22 2011-12-21 惠州Tcl移动通信有限公司 Handheld device and method for processing mistaken touch on touch screen thereof
CN102830844A (en) * 2012-08-17 2012-12-19 北京小米科技有限责任公司 Touch screen misoperation prevention method, touch screen and mobile terminal

Also Published As

Publication number Publication date
CN105022518A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
US9785344B2 (en) Portable electronic apparatus and touch detecting method thereof
US9489068B2 (en) Methods and apparatus for preventing accidental touch operation
US9898063B2 (en) Touch input determining method which can determine if the touch input is valid or not valid and electronic apparatus applying the method
CN103995668B (en) An information processing method and electronic device
TW201329807A (en) Touch panel system and electronic apparatus
US20150058761A1 (en) Information processing method and electronic device
JP2014529138A (en) Multi-cell selection using touch input
TWI533196B (en) Method, electronic device, and computer program product for displaying virtual button
CN103455242B (en) Screen picture cutting method and device
CN103365541B (en) The method of impression window and terminal
CN105022518B (en) Portable electronic device and touch detection method thereof
WO2019119799A1 (en) Method for displaying application icon, and terminal device
US10678336B2 (en) Orient a user interface to a side
JP7124336B2 (en) display controller
TWI524230B (en) Portable electronic apparatus and touch detecting method thereof
CN104951226B (en) Touch input judging method and electronic device using the touch input judging method
TW202248824A (en) Portable electronic device and one hand touch operation method thereof
EP2866134A1 (en) Portable electronic device and control method
KR20200031598A (en) Control method of favorites mode and device including touch screen performing the same
JP5624662B2 (en) Electronic device, display control method and program
TWI601056B (en) Touch device and its boot method
TW201432585A (en) Operation method for touch panel and electronic apparatus
TW201349088A (en) Displaying method for software keyboard and electronic device thereof
US20160018986A1 (en) Handheld Electronic Device
CN103970466A (en) Electronic device and opening method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载