CN107466387A - A kind of method and device for detecting touch manner - Google Patents
A kind of method and device for detecting touch manner Download PDFInfo
- Publication number
- CN107466387A CN107466387A CN201580038135.XA CN201580038135A CN107466387A CN 107466387 A CN107466387 A CN 107466387A CN 201580038135 A CN201580038135 A CN 201580038135A CN 107466387 A CN107466387 A CN 107466387A
- Authority
- CN
- China
- Prior art keywords
- touch
- parameter information
- signal
- axis direction
- compensation
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
本发明涉及终端设备技术领域,尤其涉及一种检测触摸方式的方法及装置。The present invention relates to the technical field of terminal equipment, in particular to a method and device for detecting a touch mode.
随着触摸屏式智能终端技术的迅速发展,触摸屏上可用的触摸手势变得越来越丰富,比如手指滑动触摸、手指点击触摸、单指触摸、双指触摸等,不同的触摸手势指示了不同的触摸指令。为了进一步丰富触摸手势,满足触摸指令越来越多的需求,出现了对手指触摸和指关节触摸两种触摸方式的区分。比如,当用户用手指点击一幅图片时,图片会正常打开;而用指关节点击时,则会弹出该图片的菜单选项功能,就如点击电脑鼠标右键那样。With the rapid development of touch screen smart terminal technology, more and more touch gestures are available on the touch screen, such as finger slide touch, finger click touch, single finger touch, two finger touch, etc. Different touch gestures indicate different Touch commands. In order to further enrich touch gestures and meet the increasing demand for touch commands, a distinction has been made between finger touch and knuckle touch. For example, when a user clicks a picture with a finger, the picture will open normally; and when the user clicks with a knuckle, the menu option function of the picture will pop up, just like clicking the right button of a computer mouse.
针对手指触摸和指关节触摸两种触摸方式,主要通过触摸屏的触摸信号,如电容信号,以及加速度传感器在Z轴方向的加速度值来区分,比如,当检测到的电容信号所指示的最大电容值较大、且加速度传感器在Z轴方向的最大加速度值较小时,将触摸方式识别为手指触摸,相反,当检测到的电容信号所指示的最大电容值较小、且加速度传感器在Z轴方向的最大加速度值较大时,将触摸方式识别为指关节触摸。For the two touch methods of finger touch and knuckle touch, it is mainly distinguished by the touch signal of the touch screen, such as the capacitance signal, and the acceleration value of the acceleration sensor in the Z-axis direction, for example, when the maximum capacitance value indicated by the detected capacitance signal Larger and the maximum acceleration value of the acceleration sensor in the Z-axis direction is small, the touch method is recognized as a finger touch. On the contrary, when the maximum capacitance value indicated by the detected capacitance signal is small and the acceleration sensor in the Z-axis direction When the maximum acceleration value is large, the touch method is recognized as a knuckle touch.
但是,触摸屏的触摸信号和加速度信号经常会受到终端设备内和设备外、除真实用户的触摸之外的环境因素的影响,从而导致检测出的触摸方式出错,进而导致终端设备执行了错误的执行指令。However, the touch signal and acceleration signal of the touch screen are often affected by environmental factors other than the real user's touch inside and outside the terminal device, which leads to errors in the detected touch method, which in turn leads to wrong execution of the terminal device. instruction.
发明内容Contents of the invention
本发明实施例提供一种检测触摸方式的方法及装置,用以解决对触摸方式的判定准确率较低的问题。Embodiments of the present invention provide a method and device for detecting a touch mode, which are used to solve the problem of low accuracy in determining the touch mode.
第一方面,本发明的实施例提供一种检测触摸方式的方法,应用于一种 便携式电子设备,所述电子设备具有触摸屏,该方法包括:In the first aspect, an embodiment of the present invention provides a method for detecting a touch method, which is applied to a A portable electronic device having a touch screen, the method comprising:
当检测到来自触摸屏的触摸信号时,确定Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;When a touch signal from the touch screen is detected, determine the acceleration signal in the Z-axis direction, and the compensation parameter information that affects the detection of the touch mode acting on the touch screen;
基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。A touch manner acting on the touch screen is determined based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information.
结合第一方面,在第一方面的第一种可能的实现方式中,所述补偿参数信息包括:第一参数信息和/或第二参数信息;With reference to the first aspect, in a first possible implementation manner of the first aspect, the compensation parameter information includes: first parameter information and/or second parameter information;
其中,所述第一参数信息包括马达振动状态补偿信息、音视频播放状态补偿信息、和角速度传感器的信号补偿信息中的一种或多种;Wherein, the first parameter information includes one or more of motor vibration state compensation information, audio and video playback state compensation information, and angular velocity sensor signal compensation information;
所述第二参数信息包括接近光传感器的信号状态信息和/或环境光传感器的信号状态信息。The second parameter information includes signal state information of the proximity light sensor and/or signal state information of the ambient light sensor.
结合第一方面,或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式,包括:With reference to the first aspect, or the first possible implementation of the first aspect, in the second possible implementation of the first aspect, based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information , determine the touch mode acting on the touch screen, including:
当所述补偿参数信息包括所述第一参数信息,不包括所述第二参数信息时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整;基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information but does not include the second parameter information, adjust the acceleration signal in the Z-axis direction based on the first parameter information; based on the detected touch signal and The adjusted acceleration signal in the Z-axis direction determines the touch mode acting on the touch screen.
结合第一方面,或第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式,包括:With reference to the first aspect, or the first possible implementation of the first aspect, in a third possible implementation of the first aspect, based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information , determine the touch mode acting on the touch screen, including:
当所述补偿参数信息包括所述第二参数信息,不包括所述第一参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息,当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于检测到的触摸信号和所述Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the second parameter information but does not include the first parameter information, determine the working state information of the terminal device based on the second parameter information, and determine that the working state information is not In the active touch state, the touch mode acting on the touch screen is not identified, and when the working state information is determined to be in the active touch state, based on the detected touch signal and the acceleration signal in the Z-axis direction, it is determined that the The touch method on the touch screen.
结合第一方面,或第一方面的第一种可能的实现方式,在第一方面的第 四种可能的实现方式中,基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式,包括:In combination with the first aspect, or the first possible implementation of the first aspect, in the first aspect of the first In four possible implementation manners, determining a touch manner acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information includes:
当所述补偿参数信息包括所述第一参数信息和所述第二参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息;当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,并基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information and the second parameter information, determine the working state information of the terminal device based on the second parameter information; when it is determined that the working state information is non-active touch state, the touch mode acting on the touch screen is not identified, and when it is determined that the working state information is an active touch state, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, and based on The detected touch signal and the adjusted acceleration signal in the Z-axis direction determine the touch mode acting on the touch screen.
结合第一方面的第二种或第四种可能的实现方式,在第一方面的第五种可能的实现方式中,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,包括:With reference to the second or fourth possible implementation of the first aspect, in a fifth possible implementation of the first aspect, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, include:
当所述第一参数信息包括所述马达振动状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因马达振动产生的Z轴方向的加速度信号;When the first parameter information includes the motor vibration state compensation information, filtering the acceleration signal in the Z-axis direction due to motor vibration from the acceleration signal in the Z-axis direction;
当所述第一参数信息包括所述音视频播放状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因音视频播放产生的Z轴方向的加速度信号;When the first parameter information includes the audio and video playback state compensation information, filter out the acceleration signal in the Z axis direction due to audio and video playback from the acceleration signal in the Z axis direction;
当所述第一参数信息包括所述角速度传感器的信号补偿信息时,在所述Z轴方向的加速度信号中过滤掉Z轴方向的角速度信号。When the first parameter information includes signal compensation information of the angular velocity sensor, the angular velocity signal in the Z-axis direction is filtered out from the acceleration signal in the Z-axis direction.
第二方面,本发明实施例提供一种检测触摸方式的装置,包括:In a second aspect, an embodiment of the present invention provides a device for detecting a touch method, including:
参数信息确定模块,用于当检测到来自触摸屏的触摸信号时,确定Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息,并将确定的Z轴方向的加速度信号以及补偿参数信息传送给触摸方式确定模块;The parameter information determination module is used to determine the acceleration signal in the Z-axis direction when a touch signal from the touch screen is detected, and the compensation parameter information that affects the detection of the touch method acting on the touch screen, and the determined Z-axis The acceleration signal of the direction and the compensation parameter information are sent to the touch mode determination module;
触摸方式确定模块,用于基于所述参数信息确定模块确定的所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。A touch mode determination module, configured to determine a touch mode acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information determined by the parameter information determination module.
结合第二方面,在第二方面的第一种可能的实现方式中,所述补偿参数信息包括:第一参数信息和/或第二参数信息; With reference to the second aspect, in a first possible implementation manner of the second aspect, the compensation parameter information includes: first parameter information and/or second parameter information;
其中,所述第一参数信息包括马达振动状态补偿信息、音视频播放状态补偿信息、和角速度传感器的信号补偿信息中的一种或多种;Wherein, the first parameter information includes one or more of motor vibration state compensation information, audio and video playback state compensation information, and angular velocity sensor signal compensation information;
所述第二参数信息包括接近光传感器的信号状态信息和/或环境光传感器的信号状态信息。The second parameter information includes signal state information of the proximity light sensor and/or signal state information of the ambient light sensor.
结合第二方面,或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述触摸方式确定模块具体用于:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the touch manner determining module is specifically configured to:
当所述补偿参数信息包括所述第一参数信息,不包括所述第二参数信息时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整;基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information but does not include the second parameter information, adjust the acceleration signal in the Z-axis direction based on the first parameter information; based on the detected touch signal and The adjusted acceleration signal in the Z-axis direction determines the touch mode acting on the touch screen.
结合第二方面,或第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,所述触摸方式确定模块具体用于:With reference to the second aspect, or the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the touch manner determination module is specifically configured to:
当所述补偿参数信息包括所述第二参数信息,不包括所述第一参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息,当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于检测到的触摸信号和所述Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the second parameter information but does not include the first parameter information, determine the working state information of the terminal device based on the second parameter information, and determine that the working state information is not In the active touch state, the touch mode acting on the touch screen is not identified, and when the working state information is determined to be in the active touch state, based on the detected touch signal and the acceleration signal in the Z-axis direction, it is determined that the The touch method on the touch screen.
结合第二方面,或第二方面的第一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述触摸方式确定模块具体用于:With reference to the second aspect, or the first possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the touch manner determination module is specifically configured to:
当所述补偿参数信息包括所述第一参数信息和所述第二参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息;当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,并基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information and the second parameter information, determine the working state information of the terminal device based on the second parameter information; when it is determined that the working state information is non-active touch state, the touch mode acting on the touch screen is not identified, and when it is determined that the working state information is an active touch state, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, and based on The detected touch signal and the adjusted acceleration signal in the Z-axis direction determine the touch mode acting on the touch screen.
结合第二方面的第二种或第四种可能的实现方式,在第二方面的第五种可能的实现方式中,所述触摸方式确定模块具体用于: With reference to the second or fourth possible implementation of the second aspect, in a fifth possible implementation of the second aspect, the touch manner determination module is specifically configured to:
当所述第一参数信息包括所述马达振动状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因马达振动产生的Z轴方向的加速度信号;When the first parameter information includes the motor vibration state compensation information, filtering the acceleration signal in the Z-axis direction due to motor vibration from the acceleration signal in the Z-axis direction;
当所述第一参数信息包括所述音视频播放状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因音视频播放产生的Z轴方向的加速度信号;When the first parameter information includes the audio and video playback state compensation information, filter out the acceleration signal in the Z axis direction due to audio and video playback from the acceleration signal in the Z axis direction;
当所述第一参数信息包括所述角速度传感器的信号补偿信息时,在所述Z轴方向的加速度信号中过滤掉Z轴方向的角速度信号。When the first parameter information includes signal compensation information of the angular velocity sensor, the angular velocity signal in the Z-axis direction is filtered out from the acceleration signal in the Z-axis direction.
第三方面,本发明实施例提供一种检测触摸方式的便携式多功能装置,所述装置包括触摸屏、处理器、存储器和加速度传感器;In a third aspect, an embodiment of the present invention provides a portable multifunctional device for detecting a touch mode, the device includes a touch screen, a processor, a memory, and an acceleration sensor;
所述触摸屏用于检测用户作用于触摸屏的触摸动作、触点坐标、触摸屏网格电容值,并将所述触摸动作以及触点坐标、触摸屏网格电容值转换为触摸信号发送给所述处理器;The touch screen is used to detect the user's touch action on the touch screen, the coordinates of the touch points, and the capacitance value of the touch screen grid, and convert the touch action, the coordinates of the touch point, and the capacitance value of the touch screen grid into touch signals and send them to the processor ;
所述加速度传感器用于获取Z轴方向的加速度信号,并将所获取的Z轴方向的加速度信号传递给处理器;The acceleration sensor is used to acquire an acceleration signal in the Z-axis direction, and transmit the acquired acceleration signal in the Z-axis direction to the processor;
所述存储器用于存储指令;The memory is used to store instructions;
所述处理器调用存储在所述存储器中的指令以实现当检测到来自所述触摸屏的触摸信号时,确定Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。The processor calls instructions stored in the memory to realize when a touch signal from the touch screen is detected, determine the acceleration signal in the Z-axis direction, and affect the detection of the touch mode acting on the touch screen Compensation parameter information; based on the touch signal, the acceleration signal in the Z-axis direction and the compensation parameter information, determine the touch mode acting on the touch screen.
结合第三方面,在第三方面的第一种可能的实现方式中,所述补偿参数信息包括:第一参数信息和/或第二参数信息;With reference to the third aspect, in a first possible implementation manner of the third aspect, the compensation parameter information includes: first parameter information and/or second parameter information;
其中,当所述第一参数信息包括马达振动状态补偿信息时,所述电子设备还包括振动马达,当所述第一参数信息包括所述音视频播放状态补偿信息时,所述电子设备还包括音视频电路、扬声器,当所述第一参数信息包括所述角速度传感器的信号补偿信息时,所述电子设备还包括角速度传感器;Wherein, when the first parameter information includes motor vibration state compensation information, the electronic device further includes a vibration motor, and when the first parameter information includes the audio and video playback state compensation information, the electronic device further includes Audio and video circuits, speakers, when the first parameter information includes signal compensation information of the angular velocity sensor, the electronic device also includes an angular velocity sensor;
当所述第二参数信息包括接近光传感器的信号状态信息时,所述电子设备还包括接近光传感器,当所述第二参数信息包括环境光传感器的信号状态信息时,所述电子设备还包括环境光传感器。 When the second parameter information includes signal state information of a proximity light sensor, the electronic device further includes a proximity light sensor, and when the second parameter information includes signal state information of an ambient light sensor, the electronic device further includes Ambient light sensor.
第四方面,本发明实施例提供一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序包括指令,所述指令当被包括触摸屏的便携式电子设备执行时使所述便携式电子设备执行以下事件:In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing one or more programs, and the one or more programs include instructions, and when the instructions are executed by a portable electronic device including a touch screen, the The portable electronic device performs the following events:
当检测到来自所述触摸屏的触摸信号时,确定Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。When a touch signal from the touch screen is detected, determine the acceleration signal in the Z-axis direction, and the compensation parameter information that affects the detection of the touch method acting on the touch screen; based on the touch signal, the Z-axis direction Acceleration signal and compensation parameter information to determine the touch mode acting on the touch screen.
本发明实施例通过引入了补偿参数信息来参与触摸方式的确定,由于考虑了除触摸信号及加速度信号之外的、影响触摸屏对触摸方式的感应的因素,从而可以提高检测触摸方式的准确率。The embodiment of the present invention participates in the determination of the touch mode by introducing compensation parameter information, and the accuracy of detecting the touch mode can be improved by considering the factors affecting the touch screen's sensing of the touch mode except the touch signal and the acceleration signal.
图1为本发明实施例提供的检测触摸方式的方法流程图;FIG. 1 is a flowchart of a method for detecting a touch mode provided by an embodiment of the present invention;
图2(a)为手指触摸时的重力传感器的信号波形图;Fig. 2 (a) is the signal waveform diagram of the gravity sensor when the finger touches;
图2(b)为指关节触摸时的重力传感器的信号波形图;Fig. 2 (b) is the signal waveform diagram of the gravity sensor when the knuckle touches;
图2(c)为马达振动时产生的周期性的振动信号波形示意图;Figure 2(c) is a schematic diagram of the periodic vibration signal waveform generated when the motor vibrates;
图2(d)为马达振动信号与手指触摸信号叠加后的示意图;Figure 2(d) is a schematic diagram of superposition of motor vibration signal and finger touch signal;
图2(e)为过滤后的加速度信号示意图;Figure 2 (e) is a schematic diagram of the filtered acceleration signal;
图3为本发明另一实施例提供的检测触摸方式的方法流程图;FIG. 3 is a flowchart of a method for detecting a touch mode provided by another embodiment of the present invention;
图4为本发明实施例提供的检测触摸方式的装置结构示意图;FIG. 4 is a schematic structural diagram of a device for detecting a touch mode provided by an embodiment of the present invention;
图5为本发明实施例提供的检测触摸方式的便携式多功能装置结构示意图。FIG. 5 is a schematic structural diagram of a portable multifunctional device for detecting a touch mode provided by an embodiment of the present invention.
本发明实施例当检测到来自触摸屏的触摸信号时,确定Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于检测到的触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确 定作用于所述触摸屏上的触摸方式。可见,本发明实施例引入了补偿参数信息来参与触摸方式的确定,由于考虑了除触摸信号及加速度信号之外的、影响触摸方式检测的因素,从而可以提高检测触摸方式的准确率。In the embodiment of the present invention, when a touch signal from the touch screen is detected, the acceleration signal in the Z-axis direction and the compensation parameter information affecting the detection of the touch method acting on the touch screen are determined; based on the detected touch signal, the Acceleration signal in the Z-axis direction and compensation parameter information, to ensure Define the touch mode applied on the touch screen. It can be seen that the embodiment of the present invention introduces the compensation parameter information to participate in the determination of the touch mode. Since factors affecting touch mode detection other than the touch signal and acceleration signal are considered, the accuracy of touch mode detection can be improved.
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图1为本发明实施例提供的检测触摸方式的方法流程图,包括以下步骤:FIG. 1 is a flowchart of a method for detecting a touch mode provided by an embodiment of the present invention, including the following steps:
S101:当检测到来自触摸屏的触摸信号时,确定加速度传感器输出的Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;其中,所述触摸信号为触摸屏基于用户的触摸动作转换的电信号;所述触摸信号可以包括触点坐标、触摸屏网格电容值、触摸动作中的一种或多种信号。S101: When a touch signal from the touch screen is detected, determine the acceleration signal in the Z-axis direction output by the acceleration sensor, and the compensation parameter information that affects the detection of the touch method acting on the touch screen; wherein the touch signal is The electric signal converted by the touch screen based on the user's touch action; the touch signal may include one or more signals of contact coordinates, touch screen grid capacitance value, and touch action.
这里,基于感应原理的不同,触摸屏的类型有多种,比如电容式触摸屏、电阻式触摸屏、红外线式触摸屏、表面声波式触摸屏等,为了便于说明,本发明实施例以电容式触摸屏为例。Here, based on different sensing principles, there are various types of touch screens, such as capacitive touch screens, resistive touch screens, infrared touch screens, surface acoustic wave touch screens, etc. For ease of description, the embodiments of the present invention take capacitive touch screens as an example.
在本发明实施例中,影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息可以包括:用于调整所述Z轴方向的加速度信号的第一参数信息和/或用于确定所述终端设备的工作状态的第二参数信息;In the embodiment of the present invention, the compensation parameter information that affects the detection of the touch method acting on the touch screen may include: first parameter information used to adjust the acceleration signal in the Z-axis direction and/or used to determine the The second parameter information describing the working state of the terminal device;
其中,所述第一参数信息可以包括马达振动状态补偿信息、音视频播放状态补偿信息、和角速度传感器的信号补偿信息中的一种或多种;Wherein, the first parameter information may include one or more of motor vibration state compensation information, audio and video playback state compensation information, and angular velocity sensor signal compensation information;
所述第二参数信息可以包括接近光传感器的信号状态信息和/或环境光传感器的信号状态信息。The second parameter information may include signal state information of the proximity light sensor and/or signal state information of the ambient light sensor.
上述马达振动状态补偿信息用于指示马达振动产生的Z轴方向的加速度信号;音视频播放状态补偿信息用于指示音视频播放产生的Z轴方向的加速度信号;角速度传感器(比如陀螺仪)的信号补偿信息用于指示角速度传感 器检测到的Z轴方向的角速度信号。The above-mentioned motor vibration state compensation information is used to indicate the acceleration signal in the Z-axis direction generated by motor vibration; the audio and video playback state compensation information is used to indicate the acceleration signal in the Z-axis direction generated by audio and video playback; the signal of an angular velocity sensor (such as a gyroscope) Compensation information is used to indicate the angular velocity sensor The angular velocity signal in the Z-axis direction detected by the sensor.
下面在关于S102的描述中将会进一步说明上述补偿参数信息的作用。The function of the above-mentioned compensation parameter information will be further explained in the description about S102 below.
S102:基于检测到的触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。S102: Determine a touch manner acting on the touch screen based on the detected touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information.
本发明实施例中的触摸方式可以包括手指触摸、指关节触摸、和误触摸。The touch manner in the embodiment of the present invention may include finger touch, knuckle touch, and false touch.
基于上述第一参数信息和/或第二参数信息,上述S102的具体执行过程为:Based on the above-mentioned first parameter information and/or second parameter information, the specific execution process of the above-mentioned S102 is:
当所述补偿参数信息包括所述第一参数信息,不包括所述第二参数信息时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整;基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式;When the compensation parameter information includes the first parameter information but does not include the second parameter information, adjust the acceleration signal in the Z-axis direction based on the first parameter information; based on the detected touch signal and The adjusted acceleration signal in the Z-axis direction determines the touch mode acting on the touch screen;
当所述补偿参数信息包括所述第二参数信息,不包括所述第一参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息,当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别;当确定所述工作状态信息为主动触摸状态时,基于检测到的触摸信号和所述Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式;When the compensation parameter information includes the second parameter information but does not include the first parameter information, determine the working state information of the terminal device based on the second parameter information, and determine that the working state information is not In the active touch state, the touch mode acting on the touch screen is not identified; when the working state information is determined to be in the active touch state, based on the detected touch signal and the acceleration signal in the Z-axis direction, determine the The touch mode on the touch screen;
当所述补偿参数信息包括所述第一参数信息和所述第二参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息;当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别;当确定所述工作状态信息为主动触摸状态时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,并基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information and the second parameter information, determine the working state information of the terminal device based on the second parameter information; when it is determined that the working state information is non-active touch state, the touch mode acting on the touch screen is not identified; when it is determined that the working state information is an active touch state, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, and based on The detected touch signal and the adjusted acceleration signal in the Z-axis direction determine the touch mode acting on the touch screen.
具体地,在上述各种具体的补偿参数信息中:Specifically, in the above-mentioned various specific compensation parameter information:
对于马达振动状态补偿信息:当触摸事件同时有马达振动事件,此时用于检测触摸方式的加速度信号为触摸事件在Z轴方向的加速度信号与马达振动产生的Z轴方向的加速度信号的叠加信号;因此马达振动产生的Z轴方向的加速度信号则构成了检测触摸事件的干扰信号,基于带有干扰信号的加速度信号检测触摸方式会影响检测结果的正确性,因此需要在所述带有干扰信 号的加速度信号中过滤掉干扰成分,这里的干扰成分即为:马达振动产生的Z轴方向的加速度信号,基于过滤掉马达振动产生的Z轴方向的加速度信号后的加速度信号检测触摸方式以保证触摸方式检测的正确性。如图2(a)所示,为手指触摸时的重力传感器的信号波形图,图2(b)所示,为指关节触摸时的重力传感器的信号波形图,图2(c)所示,为马达振动时产生的周期性的振动信号波形示意图,一旦该振动信号与图2(a)所示手指触摸时的信号叠加,形成如图2(d)所示信号波形,就可能导致叠加后的信号可以表征指关节触摸方式,从而导致检测的触摸方式出错。因此,针对这种情况,可以在Z轴方向的加速度信号中过滤掉马达振动产生的干扰信号(马达振动产生的Z轴方向的加速度信号),如图2(e)所示,再基于调整后的Z轴方向的加速度信号,以及所述触摸信号,确定在所述触摸屏上产生的触摸方式。For motor vibration state compensation information: when there is a motor vibration event at the same time as the touch event, the acceleration signal used to detect the touch mode at this time is the superposition signal of the acceleration signal in the Z-axis direction of the touch event and the acceleration signal in the Z-axis direction generated by motor vibration ; Therefore, the acceleration signal in the Z-axis direction generated by the motor vibration constitutes an interference signal for detecting a touch event, and the detection of a touch method based on an acceleration signal with an interference signal will affect the correctness of the detection result. The interference component is filtered out of the acceleration signal of the signal, and the interference component here is: the acceleration signal in the Z-axis direction generated by the motor vibration, and the touch mode is detected based on the acceleration signal after filtering out the acceleration signal in the Z-axis direction generated by the motor vibration to ensure Correctness of touch detection. As shown in Figure 2 (a), it is the signal waveform diagram of the gravity sensor when the finger touches, as shown in Figure 2 (b), it is the signal waveform diagram of the gravity sensor when the knuckle is touched, as shown in Figure 2 (c), It is a schematic diagram of the periodic vibration signal waveform generated when the motor vibrates. Once the vibration signal is superimposed with the signal when the finger is touched as shown in Figure 2(a), the signal waveform shown in Figure 2(d) is formed, which may cause the superimposed The signal of the knuckle can represent the touch pattern of the knuckle, causing the detected touch pattern to be wrong. Therefore, in view of this situation, the interference signal generated by the motor vibration (the acceleration signal in the Z-axis direction generated by the motor vibration) can be filtered out from the acceleration signal in the Z-axis direction, as shown in Figure 2(e), and then based on the adjusted The acceleration signal in the Z-axis direction and the touch signal determine the touch mode generated on the touch screen.
对于音视频播放状态补偿信息:当触摸事件同时有音视频播放事件,此时用于检测触摸方式的加速度信号为触摸事件在Z轴方向的加速度信号与音视频播放产生的Z轴方向的加速度信号的叠加信号;音视频播放产生的Z轴方向的加速度信号则构成了检测触摸事件的干扰信号,需要在所述带有干扰信号的Z轴方向的加速度信号中过滤掉干扰成分,这里的干扰成分即为:音视频播放产生的Z轴方向的加速度信号,基于过滤掉音视频播放产生的Z轴方向的加速度信号后的加速度信号检测触摸方式以保证触摸方式检测的正确性。由于音视频的频率以及响度的不同,音视频播放产生的Z轴方向的加速度信号也不同,所述音视频播放产生的Z轴方向的加速度信号可以是预先设置的,也可以随着音视频播放动态调节。For audio and video playback state compensation information: when a touch event has an audio and video playback event at the same time, the acceleration signal used to detect the touch method at this time is the acceleration signal of the touch event in the Z-axis direction and the acceleration signal in the Z-axis direction generated by audio and video playback. The superimposed signal; the acceleration signal in the Z-axis direction generated by audio and video playback constitutes an interference signal for detecting touch events, and it is necessary to filter out interference components in the acceleration signal in the Z-axis direction with interference signals. The interference components here That is: the acceleration signal in the Z-axis direction generated by audio and video playback, and the touch method is detected based on the acceleration signal after filtering the acceleration signal in the Z-axis direction generated by audio and video playback to ensure the correctness of the touch method detection. Due to the difference in frequency and loudness of audio and video, the acceleration signals in the Z-axis direction generated by audio and video playback are also different. The acceleration signals in the Z-axis direction generated by the audio and video playback can be preset, or can be played along Dynamic adjustment.
对于角速度传感器的信号补偿信息:角速度传感器可以感应终端设备的移动方向,例如左转右转。当终端做圆形轨迹运动(比如用户乘坐旋转木马)时,角速度传感器会产生角速度信号,也即离心力信号,当角速度信号在Z轴方向有分量时,用于检测触摸方式的加速度信号为触摸事件在Z轴方向的加速度信号与Z轴方向的角速度信号的叠加信号;Z轴方向的角速度信号则构成了检测触摸事件的干扰信号,需要在所述带有干扰信号的加速度信号中 过滤掉干扰成分,这里的干扰成分即为:Z轴方向的角速度信号,基于过滤掉Z轴方向的角速度信号后的加速度信号检测触摸方式以保证触摸方式检测的正确性。For the signal compensation information of the angular velocity sensor: the angular velocity sensor can sense the moving direction of the terminal device, such as turning left and turning right. When the terminal moves on a circular trajectory (such as a user riding a carousel), the angular velocity sensor will generate an angular velocity signal, that is, a centrifugal force signal. When the angular velocity signal has a component in the Z-axis direction, the acceleration signal used to detect the touch method is a touch event. The superposition signal of the acceleration signal in the Z-axis direction and the angular velocity signal in the Z-axis direction; the angular velocity signal in the Z-axis direction constitutes an interference signal for detecting touch events, which needs to be included in the acceleration signal with the interference signal Filter out the interference components, where the interference components are: the angular velocity signal in the Z-axis direction, and detect the touch mode based on the acceleration signal after filtering out the angular velocity signal in the Z-axis direction to ensure the correctness of the touch mode detection.
当接近光传感器被物体遮挡住或者处于黑暗的环境时,会输出一个“遮挡”信号,利用接近光传感器可以对终端设备的工作状态进行识别,比如,当接近光传感器被遮挡时,用户很有可能在打电话,或者将触摸屏靠近了头部或者脸部,此时如果用户的耳朵或者头骨碰到触摸屏,就会发生触摸事件,而显然,这时候的触摸都是误触摸,因此,通过接近光传感器输出的“遮挡”信号,可以确定所述终端设备处于非主动触摸状态,即产生的触摸事件不是用户主动触摸,可以忽略此次触摸事件,不进行触摸方式的识别。When the proximity light sensor is blocked by an object or in a dark environment, it will output a "blocking" signal. The proximity light sensor can be used to identify the working status of the terminal device. For example, when the proximity light sensor is blocked, the user is very You may be making a phone call, or bring the touch screen close to your head or face. At this time, if the user's ear or skull touches the touch screen, a touch event will occur. Obviously, the touch at this time is a false touch. Therefore, by approaching The "blocking" signal output by the light sensor can determine that the terminal device is in the non-active touch state, that is, the generated touch event is not the user's active touch, and the touch event can be ignored without identifying the touch mode.
同理,当环境光传感器周围没有光的时候,环境光传感器会输出一个“暗”的信号,利用环境光传感器可以对终端设备的工作状态进行识别,比如,当环境光传感器被遮挡时,终端设备可能是被放在包里,此时若用户的钥匙或者硬币触碰触摸屏,就会发生触摸事件,显然,这时候产生的触摸事件不是用户主动触摸,因此,通过环境光传感器输出的“暗”信号,可以确定终端设备处于非主动触摸状态,可以忽略此次触摸事件,不进行触摸方式的识别。Similarly, when there is no light around the ambient light sensor, the ambient light sensor will output a "dark" signal, and the ambient light sensor can be used to identify the working status of the terminal device. For example, when the ambient light sensor is blocked, the terminal The device may be placed in a bag. At this time, if the user's key or coin touches the touch screen, a touch event will occur. Obviously, the touch event generated at this time is not the user's active touch. Therefore, the "dark" output through the ambient light sensor ” signal, it can be determined that the terminal device is in the non-active touch state, and the touch event can be ignored, and the touch method will not be identified.
基于上述描述内容,在S102的具体执行过程中,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,包括:Based on the above description, in the specific execution process of S102, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, including:
当所述第一参数信息包括所述马达振动状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因马达振动产生的Z轴方向的加速度信号;When the first parameter information includes the motor vibration state compensation information, filtering the acceleration signal in the Z-axis direction due to motor vibration from the acceleration signal in the Z-axis direction;
当所述第一参数信息包括所述音视频播放状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因音视频播放产生的Z轴方向的加速度信号;When the first parameter information includes the audio and video playback state compensation information, filter out the acceleration signal in the Z axis direction due to audio and video playback from the acceleration signal in the Z axis direction;
当所述第一参数信息包括所述角速度传感器的信号补偿信息时,在所述Z轴方向的加速度信号中过滤掉Z轴方向的角速度信号。When the first parameter information includes signal compensation information of the angular velocity sensor, the angular velocity signal in the Z-axis direction is filtered out from the acceleration signal in the Z-axis direction.
以下实施例为体现上述思想的一个较具体的实施例。The following embodiment is a more specific embodiment embodying the above idea.
如图3所示,为本发明另一实施例提供的检测触摸方式的方法流程图,包括以下步骤: As shown in FIG. 3 , it is a flowchart of a method for detecting a touch mode provided by another embodiment of the present invention, including the following steps:
S301:当检测到来自触摸屏的触摸信号后,确定加速度传感器输出的Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的第一参数信息和第二参数信息;所述第一参数信息用于调整所述Z轴方向的加速度信号,包括马达振动状态补偿信息、音视频播放状态补偿信息、和角速度传感器的信号补偿信息中的一种或多种;所述第二参数信息用于确定所述终端设备的工作状态,所述第二参数信息包括接近光传感器的信号状态信息和/或环境光传感器的信号状态信息。S301: After detecting the touch signal from the touch screen, determine the acceleration signal in the Z-axis direction output by the acceleration sensor, and the first parameter information and the second parameter information that affect the detection of the touch method acting on the touch screen; The first parameter information is used to adjust the acceleration signal in the Z-axis direction, including one or more of motor vibration state compensation information, audio and video playback state compensation information, and angular velocity sensor signal compensation information; the second The parameter information is used to determine the working state of the terminal device, and the second parameter information includes signal state information of the proximity light sensor and/or signal state information of the ambient light sensor.
S302:在基于所述第二参数信息确定所述终端设备处于非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,在基于所述第二参数信息确定所述终端设备处于主动触摸状态时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整。S302: When it is determined based on the second parameter information that the terminal device is in a non-active touch state, do not identify the touch mode acting on the touch screen, and when it is determined based on the second parameter information that the terminal device is in an active touch state In the touch state, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information.
该步骤中,基于接近光传感器和/或环境光传感器输出的指示被遮挡的信号,可以获知在产生触摸信号的时间范围内是否终端设备处于非主动触摸状态(终端设备当前不会出现用户主动触摸所述触摸屏的情况),若终端设备处于非主动触摸状态,说明此次触摸事件为误触摸,不对触摸方式进行识别,若终端设备处于主动触摸工作状态,则基于第一参数信息对Z轴方向的加速度信号进行调整。具体地,在Z轴方向的加速度信号中,过滤掉干扰信号,比如马达振动时产生的Z轴方向的加速度信号、音视频播放产生的Z轴方向的加速度信号、终端设备内设置的角速度传感器输出的Z轴方向的角速度信号。In this step, based on the signal indicating that the proximity light sensor and/or the ambient light sensor output is blocked, it can be known whether the terminal device is in the non-active touch state within the time range when the touch signal is generated (the terminal device currently does not appear to be actively touched by the user) In the case of the touch screen), if the terminal device is in the non-active touch state, it means that the touch event is a false touch, and the touch mode is not identified. If the terminal device is in the active touch working state, then based on the first parameter information, the Z-axis direction The acceleration signal is adjusted. Specifically, in the acceleration signal in the Z-axis direction, the interference signal is filtered out, such as the acceleration signal in the Z-axis direction generated when the motor vibrates, the acceleration signal in the Z-axis direction generated by audio and video playback, and the angular velocity sensor output in the terminal device. The angular velocity signal in the direction of the Z axis.
S303:基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。S303: Determine a touch manner acting on the touch screen based on the detected touch signal and the adjusted acceleration signal in the Z-axis direction.
该步骤中,如果确定终端设备处于主动触摸工作状态,基于来自触摸屏的触摸信号及调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式是手指触摸,还是指关节触摸。比如,当触摸屏为电容式触摸屏时,可以基于获取的触摸信号确定电容值分布信息(各个网格内分布的电容值),并基于调整后的Z轴方向的加速度信号确定Z轴方向的加速度值,基于确定 的电容值分布信息和加速度值,确定触摸方式。比如,当确定的电容值分布信息中指示最大电容值在第一设定范围内(比如大于0.42pF、小于或等于0.46pF),并且分布有非零电容值的网格个数大于或等于7,在设定时间段内,加速度最大值小于设定的阈值(比如,在5ms内,加速度最大值为2g,小于设定的阈值3g,g为重力加速度)时,确定该触摸方式为手指触摸;当确定的电容值分布信息中指示最大电容值在第二设定范围内(比如小于或等于0.42pF),分布有非零电容值的网格个数小于7,在设定时间段内,加速度最大值大于设定的阈值(比如为3g)时,确定该触摸方式为指关节触摸。In this step, if it is determined that the terminal device is in an active touch working state, based on the touch signal from the touch screen and the adjusted acceleration signal in the Z-axis direction, determine whether the touch mode acting on the touch screen is finger touch or knuckle touch. For example, when the touch screen is a capacitive touch screen, the capacitance value distribution information (capacitance value distributed in each grid) can be determined based on the acquired touch signal, and the acceleration value in the Z-axis direction can be determined based on the adjusted acceleration signal in the Z-axis direction , based on determining The capacitance value distribution information and the acceleration value of the sensor determine the touch mode. For example, when the determined capacitance value distribution information indicates that the maximum capacitance value is within the first set range (such as greater than 0.42pF, less than or equal to 0.46pF), and the number of grids with non-zero capacitance values distributed is greater than or equal to 7 , within the set time period, when the maximum acceleration value is less than the set threshold value (for example, within 5ms, the maximum acceleration value is 2g, which is less than the set threshold value 3g, and g is the acceleration of gravity), determine that the touch method is finger touch ; When the determined capacitance value distribution information indicates that the maximum capacitance value is within the second set range (for example, less than or equal to 0.42pF), the number of grids with non-zero capacitance values distributed is less than 7, and within the set time period, When the maximum value of the acceleration is greater than a set threshold (for example, 3g), it is determined that the touch mode is knuckle touch.
本发明实施例提供的检测触摸方式的方法包括:当检测到来自触摸屏的触摸信号时,确定所述Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。本发明实施例由于考虑了除触摸信号及加速度信号之外的、影响触摸方式检测的补偿因素,从而可以提高触摸方式的判定准确率。The method for detecting a touch mode provided by an embodiment of the present invention includes: when a touch signal from the touch screen is detected, determining an acceleration signal in the Z-axis direction, and affecting compensation parameters for detection of a touch mode acting on the touch screen Information; determine a touch mode acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information. The embodiment of the present invention can improve the determination accuracy of the touch mode by considering the compensation factors affecting the detection of the touch mode except the touch signal and the acceleration signal.
基于同一发明构思,本发明实施例中还提供了一种与检测触摸方式的方法对应的检测触摸方式的装置及终端设备,由于该装置及终端设备解决问题的原理与本发明实施例检测触摸方式的方法相似,因此该装置及终端设备的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present invention also provides a device for detecting a touch method and a terminal device corresponding to the method for detecting a touch method. Since the principle of solving the problem of the device and terminal device is the same as that of the embodiment of the present invention for detecting a touch method The method is similar, so the implementation of the device and terminal equipment can refer to the implementation of the method, and the repetition will not be repeated.
如图4所示,为本发明实施例提供的检测触摸方式的装置结构示意图,包括:As shown in Figure 4, it is a schematic structural diagram of a device for detecting a touch mode provided by an embodiment of the present invention, including:
参数信息确定模块41,用于当检测到来自触摸屏的触摸信号时,确定加速度传感器输出的Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;The parameter information determination module 41 is used to determine the acceleration signal in the Z-axis direction output by the acceleration sensor when a touch signal from the touch screen is detected, and the compensation parameter information that affects the detection of the touch method acting on the touch screen;
触摸方式确定模块42,用于基于所述参数信息确定模块确定的所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。 The touch mode determining module 42 is configured to determine a touch mode acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction and compensation parameter information determined by the parameter information determining module.
可选地,所述补偿参数信息包括:第一参数信息和/或第二参数信息;Optionally, the compensation parameter information includes: first parameter information and/or second parameter information;
其中,所述第一参数信息包括马达振动状态补偿信息、音视频播放状态补偿信息、和角速度传感器的信号补偿信息中的一种或多种;Wherein, the first parameter information includes one or more of motor vibration state compensation information, audio and video playback state compensation information, and angular velocity sensor signal compensation information;
所述第二参数信息包括接近光传感器的信号状态信息和/或环境光传感器的信号状态信息。The second parameter information includes signal state information of the proximity light sensor and/or signal state information of the ambient light sensor.
可选地,所述触摸方式确定模块42具体用于:Optionally, the touch manner determining module 42 is specifically configured to:
当所述补偿参数信息包括所述第一参数信息,不包括所述第二参数信息时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整;基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information but does not include the second parameter information, adjust the acceleration signal in the Z-axis direction based on the first parameter information; based on the detected touch signal and The adjusted acceleration signal in the Z-axis direction determines the touch mode acting on the touch screen.
可选地,所述触摸方式确定模块42具体用于:Optionally, the touch manner determining module 42 is specifically configured to:
当所述补偿参数信息包括所述第二参数信息,不包括所述第一参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息,当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于检测到的触摸信号和所述Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the second parameter information but does not include the first parameter information, determine the working state information of the terminal device based on the second parameter information, and determine that the working state information is not In the active touch state, the touch mode acting on the touch screen is not identified, and when the working state information is determined to be in the active touch state, based on the detected touch signal and the acceleration signal in the Z-axis direction, it is determined that the The touch method on the touch screen.
可选地,所述触摸方式确定模块42具体用于:Optionally, the touch manner determining module 42 is specifically configured to:
当所述补偿参数信息包括所述第一参数信息和所述第二参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息;当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,并基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information and the second parameter information, determine the working state information of the terminal device based on the second parameter information; when it is determined that the working state information is non-active touch state, the touch mode acting on the touch screen is not identified, and when it is determined that the working state information is an active touch state, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, and based on The detected touch signal and the adjusted acceleration signal in the Z-axis direction determine the touch mode acting on the touch screen.
可选地,所述触摸方式确定模块42具体用于:Optionally, the touch manner determining module 42 is specifically configured to:
当所述第一参数信息包括所述马达振动状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因马达振动产生的Z轴方向的加速度信号;When the first parameter information includes the motor vibration state compensation information, filtering the acceleration signal in the Z-axis direction due to motor vibration from the acceleration signal in the Z-axis direction;
当所述第一参数信息包括所述音视频播放状态补偿信息时,在所述Z轴 方向的加速度信号中过滤掉因音视频播放产生的Z轴方向的加速度信号;When the first parameter information includes the audio and video playback state compensation information, in the Z axis The acceleration signal in the Z-axis direction generated by audio and video playback is filtered out from the acceleration signal in the direction;
当所述第一参数信息包括所述角速度传感器的信号补偿信息时,在所述Z轴方向的加速度信号中过滤掉Z轴方向的角速度信号。When the first parameter information includes signal compensation information of the angular velocity sensor, the angular velocity signal in the Z-axis direction is filtered out from the acceleration signal in the Z-axis direction.
本发明实施例提供的检测触摸方式的方法包括:当检测到来自触摸屏的触摸信号时,确定所述Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。本发明实施例由于考虑了除触摸信号及加速度信号之外的、影响触摸方式检测的补偿因素,从而可以提高触摸方式的判定准确率。The method for detecting a touch mode provided by an embodiment of the present invention includes: when a touch signal from a touch screen is detected, determining an acceleration signal in the Z-axis direction, and affecting compensation parameters for detecting a touch mode acting on the touch screen Information; determine a touch mode acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information. The embodiment of the present invention can improve the determination accuracy of the touch mode by considering the compensation factors affecting the detection of the touch mode except the touch signal and the acceleration signal.
为便于说明,本发明中的实施例以包括触摸屏的便携式多功能装置500作示例性说明,本领域技术人员可以理解的,本发明中的实施例同样适用于其他装置,例如手持设备、车载设备、可穿戴设备、计算设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile station,MS),终端(terminal),终端设备(Terminal Equipment)等等。For ease of description, the embodiment of the present invention is illustrated with a portable multifunctional device 500 including a touch screen. Those skilled in the art can understand that the embodiment of the present invention is also applicable to other devices, such as handheld devices, vehicle-mounted devices , wearable devices, computing devices, and various forms of user equipment (User Equipment, UE), mobile station (Mobile station, MS), terminal (terminal), terminal equipment (Terminal Equipment) and so on.
图5示出了根据一些实施例的包括触摸屏的便携式多功能装置500的框图,所述装置500可以包括输入单元530、显示单元540、加速度传感器551、接近光传感器552、环境光传感器553、角速度传感器554、振动马达555、存储器520、处理器590、射频单元510、音视频电路560、扬声器561、麦克风562、无线保真(Wireless Fidelity,WiFi)模块570、蓝牙模块580、电源593、外部接口597等部件。5 shows a block diagram of a portable multifunction device 500 including a touch screen according to some embodiments, which may include an input unit 530, a display unit 540, an acceleration sensor 551, a proximity light sensor 552, an ambient light sensor 553, an angular velocity Sensor 554, vibration motor 555, memory 520, processor 590, radio frequency unit 510, audio and video circuit 560, speaker 561, microphone 562, wireless fidelity (Wireless Fidelity, WiFi) module 570, bluetooth module 580, power supply 593, external interface 597 and other components.
本领域技术人员可以理解,图5仅仅是便携式多功能装置的举例,并不构成对便携式多功能装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件。Those skilled in the art can understand that Fig. 5 is only an example of a portable multifunctional device, and does not constitute a limitation to the portable multifunctional device. parts.
所述输入单元530可用于接收输入的数字或字符信息,以及产生与所述便携式多功能装置的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触摸屏531以及其他输入设备532。所述触摸屏531可收集 用户在其上或附近的触摸操作(比如用户使用手指、指关节等在触摸屏上的操作),并根据预先设定的程序驱动相应的连接装置。触摸屏可以检测用户对触摸屏的触摸动作,检测触点坐标,触摸屏网格电容值;将所述触摸动作以及触点坐标信息、触摸屏网格电容值转换为触摸信号发送给所述处理器590,能接收所述处理器590发来的命令并加以执行。所述触摸屏531可以提供所述装置500和用户之间的输入界面和输出界面。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏。除了触摸屏531,输入单元530还可以包括其他输入设备。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键532、开关按键533等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 530 may be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the portable multi-function device. Specifically, the input unit 530 may include a touch screen 531 and other input devices 532 . The touch screen 531 can collect The user's touch operation on or near it (such as the user's operation on the touch screen with fingers, knuckles, etc.), and drives the corresponding connection device according to the preset program. The touch screen can detect the touch action of the user on the touch screen, detect the coordinates of the touch points, and the capacitance value of the touch screen grid; Receive and execute the command sent by the processor 590. The touch screen 531 may provide an input interface and an output interface between the device 500 and a user. In addition, touch screens can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 531, the input unit 530 may also include other input devices. Specifically, other input devices 532 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys 532 , switch keys 533 , etc.), trackballs, mice, and joysticks.
所述显示单元540可用于显示由用户输入的信息或提供给用户的信息以及装置500的各种菜单。进一步的,触摸屏531可覆盖显示面板541,当触摸屏531检测到在其上或附近的触摸操作后,传送给处理器590以确定触摸事件的类型,随后处理器590根据触摸事件的类型在显示面板541上提供相应的视觉输出。在本实施例中,触摸屏与显示单元可以集成为一个部件而实现装置500的输入、输出、显示功能;为便于描述,本发明实施例以触摸屏代表触摸屏和显示单元的功能集合;在某些实施例中,触摸屏与显示单元也可以作为两个独立的部件。The display unit 540 may be used to display information input by or provided to the user and various menus of the device 500 . Further, the touch screen 531 can cover the display panel 541. When the touch screen 531 detects a touch operation on or near it, it is sent to the processor 590 to determine the type of the touch event. A corresponding visual output is provided on the 541. In this embodiment, the touch screen and the display unit can be integrated into one component to realize the input, output, and display functions of the device 500; for the convenience of description, the embodiment of the present invention uses the touch screen to represent the function set of the touch screen and the display unit; in some implementations In an example, the touch screen and the display unit can also be used as two independent components.
所述加速度传感器551可检测各个方向上(一般为三轴)加速度的大小,同时,所述加速度传感器551还可用于检测终端静止时重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;在本发明实施例中,所述加速度传感器551用于获取用户的触摸动作作用于触摸屏上时在Z轴方向的加速度信号,并将所获取的Z轴方向的加速度信号传递给处理器590。The acceleration sensor 551 can detect the magnitude of acceleration in various directions (generally three axes). At the same time, the acceleration sensor 551 can also be used to detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical orientation). screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, knocking), etc.; The acceleration signal in the Z-axis direction is obtained, and the acquired acceleration signal in the Z-axis direction is transmitted to the processor 590 .
便携式多功能装置500还可以包括一个或多个接近光传感器552,用于确定便携式多功能装置500的工作状态,处理器590根据该工作状态判断作用于触摸屏上的触摸方式是否为误触摸,比如当用户正在打电话时,将电话靠 近耳朵时可能引起误触摸,通过接近光传感器552可以获取到这种工作状态。便携式多功能装置500还可以包括一个或多个环境光传感器553,用于确定便携式多功能装置500的工作状态,处理器590根据该工作状态判断作用于触摸屏上的触摸方式是否为误触摸,比如用于当便携式多功能装置500位于用户口袋里时可能被口袋内其它物体触碰引起误触摸,通过环境光传感器553可以获取到这种工作状态。在一些实施例中,接近光传感器和环境光传感器可以集成在一颗部件中,也可以作为两个独立的部件。便携式多功能装置500还可以包括角速度传感器554,用于感知角速度,输出角速度信号,处理器590基于Z轴方向的角速度信号对加速度传感器输出的Z轴方向的加速度信号进行补偿。至于便携式多功能装置500还可配置气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The portable multifunctional device 500 may also include one or more proximity light sensors 552, which are used to determine the working state of the portable multifunctional device 500, and the processor 590 judges whether the touch mode acting on the touch screen is a false touch according to the working state, such as When the user is making a call, hold the phone against the When it is close to the ear, it may cause false touch, and this working state can be acquired by the proximity light sensor 552 . The portable multifunctional device 500 may also include one or more ambient light sensors 553, which are used to determine the working state of the portable multifunctional device 500, and the processor 590 judges whether the touch mode acting on the touch screen is a false touch according to the working state, such as When the portable multi-function device 500 is in the user's pocket, it may be touched by other objects in the pocket to cause false touches, and the ambient light sensor 553 can acquire this working state. In some embodiments, the proximity light sensor and the ambient light sensor can be integrated into one component, or can be used as two independent components. The portable multifunctional device 500 may also include an angular velocity sensor 554 for sensing angular velocity and outputting an angular velocity signal, and the processor 590 compensates the acceleration signal in the Z-axis direction output by the acceleration sensor based on the angular velocity signal in the Z-axis direction. As for the portable multi-function device 500, other sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, etc. may also be configured, so details will not be repeated here.
所述存储器520可用于存储指令和数据,存储器520可主要包括存储指令区和存储数据区;存储指令区可存储操作系统、至少一个功能所需的指令等;所述指令可使处理器590执行以下方法,具体方法包括:当检测到来自触摸屏的触摸信号时,确定加速度传感器输出的Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。The memory 520 can be used to store instructions and data, and the memory 520 can mainly include a storage instruction area and a storage data area; the storage instruction area can store operating systems, instructions required by at least one function, etc.; the instructions can cause the processor 590 to execute The following method, the specific method includes: when a touch signal from the touch screen is detected, determine the acceleration signal in the Z-axis direction output by the acceleration sensor, and affect the compensation parameter information for the detection of the touch method acting on the touch screen; based on the The touch signal, the acceleration signal in the Z-axis direction and the compensation parameter information determine the touch mode acting on the touch screen.
在处理器590执行的所述方法中,所述补偿参数信息包括:第一参数信息和/或第二参数信息;In the method executed by the processor 590, the compensation parameter information includes: first parameter information and/or second parameter information;
其中,所述第一参数信息包括马达振动状态补偿信息、音视频播放状态补偿信息、和角速度传感器的信号补偿信息中的一种或多种;Wherein, the first parameter information includes one or more of motor vibration state compensation information, audio and video playback state compensation information, and angular velocity sensor signal compensation information;
所述第二参数信息包括接近光传感器的信号状态信息和/或环境光传感器的信号状态信息。The second parameter information includes signal state information of the proximity light sensor and/or signal state information of the ambient light sensor.
在处理器590执行的所述方法中,基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式,包括:In the method executed by the processor 590, determining a touch mode acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information includes:
当所述补偿参数信息包括所述第一参数信息,不包括所述第二参数信息 时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整;基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式;When the compensation parameter information includes the first parameter information but does not include the second parameter information , adjusting the acceleration signal in the Z-axis direction based on the first parameter information; determining the touch mode acting on the touch screen based on the detected touch signal and the adjusted acceleration signal in the Z-axis direction;
当所述补偿参数信息包括所述第二参数信息,不包括所述第一参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息,当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于检测到的触摸信号和所述Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式;When the compensation parameter information includes the second parameter information but does not include the first parameter information, determine the working state information of the terminal device based on the second parameter information, and determine that the working state information is not In the active touch state, the touch mode acting on the touch screen is not identified, and when the working state information is determined to be in the active touch state, based on the detected touch signal and the acceleration signal in the Z-axis direction, it is determined that the The touch mode on the touch screen;
当所述补偿参数信息包括所述第一参数信息和所述第二参数信息时,基于所述第二参数信息确定所述终端设备的工作状态信息;当确定所述工作状态信息为非主动触摸状态时,不对作用于所述触摸屏上的触摸方式进行识别,当确定所述工作状态信息为主动触摸状态时,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,并基于检测到的触摸信号和调整后的Z轴方向的加速度信号,确定作用于所述触摸屏上的触摸方式。When the compensation parameter information includes the first parameter information and the second parameter information, determine the working state information of the terminal device based on the second parameter information; when it is determined that the working state information is non-active touch state, the touch mode acting on the touch screen is not identified, and when it is determined that the working state information is an active touch state, the acceleration signal in the Z-axis direction is adjusted based on the first parameter information, and based on The detected touch signal and the adjusted acceleration signal in the Z-axis direction determine the touch mode acting on the touch screen.
在处理器590执行的所述方法中,基于所述第一参数信息对所述Z轴方向的加速度信号进行调整,包括:In the method executed by the processor 590, adjusting the acceleration signal in the Z-axis direction based on the first parameter information includes:
当所述第一参数信息包括所述马达振动状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因马达振动产生的Z轴方向的加速度信号;When the first parameter information includes the motor vibration state compensation information, filtering the acceleration signal in the Z-axis direction due to motor vibration from the acceleration signal in the Z-axis direction;
当所述第一参数信息包括所述音视频播放状态补偿信息时,在所述Z轴方向的加速度信号中过滤掉因音视频播放产生的Z轴方向的加速度信号;When the first parameter information includes the audio and video playback state compensation information, filter out the acceleration signal in the Z axis direction due to audio and video playback from the acceleration signal in the Z axis direction;
当所述第一参数信息包括所述角速度传感器的信号补偿信息时,在所述Z轴方向的加速度信号中过滤掉Z轴方向的角速度信号。When the first parameter information includes signal compensation information of the angular velocity sensor, the angular velocity signal in the Z-axis direction is filtered out from the acceleration signal in the Z-axis direction.
处理器590是装置500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的指令以及调用存储在存储器520内的数据,便携式多功能装置500的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器590可包括一个或多个处理单元;优选的,处理器590可集成应用处理器和调制解调处理器,其中,应用处理器主 要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器590中。在一些实施例中,处理器、存储器、可以在单一芯片上实现,在一些实施例中,他们也可以在独立的芯片上分别实现。在本发明实施例中,处理器590还用于调用存储器中的指令以实现对作用于触摸屏上的触摸方式的检测。The processor 590 is the control center of the device 500. It utilizes various interfaces and lines to connect various parts of the entire mobile phone. By running or executing instructions stored in the memory 520 and calling data stored in the memory 520, the portable multifunctional device 500 Various functions and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 590 may include one or more processing units; preferably, the processor 590 may integrate an application processor and a modem processor, wherein the application processor mainly To handle the operating system, user interface, applications, etc., the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 590 . In some embodiments, the processor and memory can be implemented on a single chip, and in some embodiments, they can also be implemented on independent chips. In the embodiment of the present invention, the processor 590 is further configured to call instructions in the memory to realize the detection of the touch manner acting on the touch screen.
所述射频单元510可用于收发信息或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,给处理器590处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,射频单元510还可以通过无线通信与网络设备和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The radio frequency unit 510 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, it is processed by the processor 590; in addition, the designed uplink data is sent to the base station. Generally, an RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the radio frequency unit 510 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
音视频电路560、扬声器561、麦克风562可提供用户与装置500之间的音频接口。音视频电路560可将接收到的音频数据转换后的电信号,输出到扬声器561,由扬声器561转换为声音信号输出;另一方面,麦克风562将收集的声音信号转换为电信号,由音视频电路560接收后转换为音频数据,再将音频数据输出处理器590处理后,经射频单元510以发送给比如另一终端,或者将音频数据输出至存储器520以便进一步处理,音频电路也可以包括耳机插孔563,用于提供音频电路和耳机之间的连接接口。The audio and video circuit 560 , speaker 561 , and microphone 562 can provide an audio interface between the user and the device 500 . The audio-video circuit 560 can output the electrical signal converted from the received audio data to the speaker 561, and the speaker 561 converts it into an audio signal output; on the other hand, the microphone 562 converts the collected audio signal into an electrical signal, and the audio-video After the circuit 560 receives it, it converts it into audio data, and then outputs the audio data to the processor 590 for processing, and sends the audio data to another terminal through the radio frequency unit 510, or outputs the audio data to the memory 520 for further processing. The audio circuit can also include earphones The jack 563 is used to provide a connection interface between the audio circuit and the earphone.
WiFi属于短距离无线传输技术,便携式多功能装置500通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于装置500的必须构成,完全可以根据需要在不改变发明的本 质的范围内而省略。WiFi is a short-distance wireless transmission technology. The portable multi-function device 500 can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 570, which provides users with wireless broadband Internet access. Although FIG. 5 shows a WiFi module 570, it can be understood that it does not belong to the necessary composition of the device 500, and it can be completely changed without changing the present invention as required. It is omitted within the scope of quality.
蓝牙是一种短距离无线通讯技术。利用蓝牙技术,能够有效地简化掌上电脑、笔记本电脑和手机等移动通信终端设备之间的通信,也能够成功地简化以上这些设备与因特网(Internet)之间的通信,装置500通过蓝牙模块580使装置500与因特网之间的数据传输变得更加迅速高效,为无线通信拓宽道路。蓝牙技术是能够实现语音和数据无线传输的开放性方案。然图5示出了WiFi模块570,但是可以理解的是,其并不属于便携式多功能装置500的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Bluetooth is a short-range wireless communication technology. Utilizing bluetooth technology can effectively simplify the communication among mobile communication terminal devices such as handheld computers, notebook computers and mobile phones, and can also successfully simplify the communication between the above-mentioned devices and the Internet (Internet). The device 500 uses the bluetooth module 580 to Data transmission between the device 500 and the Internet becomes faster and more efficient, broadening the way for wireless communication. Bluetooth technology is an open solution that enables wireless transmission of voice and data. Although FIG. 5 shows a WiFi module 570, it can be understood that it is not a necessary component of the portable multi-function device 500, and can be omitted according to needs without changing the essence of the invention.
便携式多功能装置500还包括给各个部件供电的电源593(比如电池),优选的,电源可以通过电源管理系统594与处理器590逻辑相连,从而通过电源管理系统194实现管理充电、放电、以及功耗管理等功能。The portable multi-function device 500 also includes a power supply 593 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 590 through the power management system 594, so as to realize management charging, discharging, and power management through the power management system 194. Consumption management and other functions.
便携式多功能装置500还包括外部接口597,所述外部接口可以是标准的Micro USB接口,也可以使多针连接器,可以用于连接便携式多功能装置500与其他装置进行通信,也可以用于连接充电器为便携式多功能装置500充电。The portable multi-function device 500 also includes an external interface 597, which can be a standard Micro USB interface, or a multi-pin connector, which can be used to connect the portable multi-function device 500 to communicate with other devices, and can also be used for Connecting the charger charges the portable multifunction device 500 .
尽管未示出,便携式多功能装置500还可以包括摄像头、闪光灯等,在此不再赘述。Although not shown, the portable multi-function device 500 may also include a camera, a flash light, etc., which will not be repeated here.
本发明实施例提供的检测触摸方式的方法包括:当检测到来自触摸屏的触摸信号时,确定所述Z轴方向的加速度信号,以及影响对作用于所述触摸屏上的触摸方式的检测的补偿参数信息;基于所述触摸信号、所述Z轴方向的加速度信号以及补偿参数信息,确定作用于所述触摸屏上的触摸方式。本发明实施例由于考虑了除触摸信号及加速度信号之外的、影响触摸方式检测的补偿因素,从而可以提高触摸方式的判定准确率。The method for detecting a touch mode provided by an embodiment of the present invention includes: when a touch signal from the touch screen is detected, determining an acceleration signal in the Z-axis direction, and affecting compensation parameters for detection of a touch mode acting on the touch screen Information; determine a touch mode acting on the touch screen based on the touch signal, the acceleration signal in the Z-axis direction, and compensation parameter information. The embodiment of the present invention can improve the determination accuracy of the touch mode by considering the compensation factors affecting the detection of the touch mode except the touch signal and the acceleration signal.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘 存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may employ computer-usable program code embodied therein on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical storage, etc.) in the form of a computer program product.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. In this way, if the modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (15)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/087864 WO2017031647A1 (en) | 2015-08-21 | 2015-08-21 | Method and apparatus for detecting touch mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107466387A true CN107466387A (en) | 2017-12-12 |
CN107466387B CN107466387B (en) | 2020-09-29 |
Family
ID=58101254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201580038135.XA Active CN107466387B (en) | 2015-08-21 | 2015-08-21 | Method and device for detecting touch mode |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107466387B (en) |
WO (1) | WO2017031647A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113805487A (en) * | 2020-07-23 | 2021-12-17 | 荣耀终端有限公司 | Control instruction generation method and device, terminal equipment and readable storage medium |
CN114600063A (en) * | 2020-02-26 | 2022-06-07 | 华为技术有限公司 | Apparatus and method for controllable foldable display with haptic and sound effects |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110837319B (en) * | 2019-10-31 | 2024-02-20 | 华勤技术股份有限公司 | Visual angle adjusting method and electronic equipment |
CN111443821B (en) * | 2020-03-09 | 2023-01-13 | 维沃移动通信有限公司 | Processing method and device |
TWI797494B (en) | 2020-11-02 | 2023-04-01 | 華碩電腦股份有限公司 | Electronic device and control method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103134451A (en) * | 2011-11-30 | 2013-06-05 | 鸿富锦精密工业(深圳)有限公司 | Three-coordinate measuring machine three-axis perpendicularity error compensation system and method |
CN103917940A (en) * | 2011-11-09 | 2014-07-09 | 三星电子株式会社 | Method for controlling screen rotation and terminal and touch system supporting the method |
CN104035688A (en) * | 2014-06-20 | 2014-09-10 | 江苏物联网研究发展中心 | Single-point touch pressure sensing safety unlocking method and device for mobile terminal |
CN104049759A (en) * | 2014-06-25 | 2014-09-17 | 华东理工大学 | Instruction input and protection method integrating touch screen and behavior sensing |
CN104598026A (en) * | 2014-12-29 | 2015-05-06 | 广东欧珀移动通信有限公司 | Sensor data processing method and device |
CN104598077A (en) * | 2015-01-15 | 2015-05-06 | 小米科技有限责任公司 | Touch mode setting method and touch mode setting device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488043A (en) * | 2008-01-16 | 2009-07-22 | 华硕电脑股份有限公司 | Intuitive browsing handheld digital device and operation method thereof |
-
2015
- 2015-08-21 WO PCT/CN2015/087864 patent/WO2017031647A1/en active Application Filing
- 2015-08-21 CN CN201580038135.XA patent/CN107466387B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103917940A (en) * | 2011-11-09 | 2014-07-09 | 三星电子株式会社 | Method for controlling screen rotation and terminal and touch system supporting the method |
CN103134451A (en) * | 2011-11-30 | 2013-06-05 | 鸿富锦精密工业(深圳)有限公司 | Three-coordinate measuring machine three-axis perpendicularity error compensation system and method |
CN104035688A (en) * | 2014-06-20 | 2014-09-10 | 江苏物联网研究发展中心 | Single-point touch pressure sensing safety unlocking method and device for mobile terminal |
CN104049759A (en) * | 2014-06-25 | 2014-09-17 | 华东理工大学 | Instruction input and protection method integrating touch screen and behavior sensing |
CN104598026A (en) * | 2014-12-29 | 2015-05-06 | 广东欧珀移动通信有限公司 | Sensor data processing method and device |
CN104598077A (en) * | 2015-01-15 | 2015-05-06 | 小米科技有限责任公司 | Touch mode setting method and touch mode setting device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114600063A (en) * | 2020-02-26 | 2022-06-07 | 华为技术有限公司 | Apparatus and method for controllable foldable display with haptic and sound effects |
CN113805487A (en) * | 2020-07-23 | 2021-12-17 | 荣耀终端有限公司 | Control instruction generation method and device, terminal equipment and readable storage medium |
CN113805487B (en) * | 2020-07-23 | 2022-09-23 | 荣耀终端有限公司 | Control instruction generation method and device, terminal equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107466387B (en) | 2020-09-29 |
WO2017031647A1 (en) | 2017-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104383681B (en) | Method for controlling game program, device and mobile terminal | |
CN103389863B (en) | A kind of display control method and device | |
CN109032486B (en) | Display control method and terminal equipment | |
CN106951850B (en) | A kind of method and mobile terminal controlling fingerprint recognition mould group | |
WO2018133642A1 (en) | Fingerprint recognition module, fingerprint recognition method, and related product | |
CN110531915B (en) | Screen operation method and terminal device | |
CN107466387B (en) | Method and device for detecting touch mode | |
CN109407948B (en) | Interface display method and mobile terminal | |
WO2019011335A1 (en) | Mobile terminal and control method therefor, and readable storage medium | |
CN108958593B (en) | Method for determining communication object and mobile terminal | |
CN106371749A (en) | Method and device for terminal control | |
CN108073405B (en) | Application program unloading method and mobile terminal | |
CN107066090B (en) | Method for controlling fingerprint identification module and mobile terminal | |
CN107256380A (en) | Fingerprint registration method and related products | |
WO2019042478A1 (en) | Control method for input method soft keyboard of mobile terminal, storage medium, and mobile terminal | |
WO2018049902A1 (en) | Data migration method and relevant device | |
CN108683812B (en) | Volume adjusting method and device and mobile terminal | |
WO2018039914A1 (en) | Method for copying data, and user terminal | |
CN105700801B (en) | Interface intercepting method and equipment | |
CN111526248B (en) | Audio output mode switching method and electronic device | |
CN110955378A (en) | A control method and electronic device | |
CN106909295A (en) | The processing method and terminal of application program | |
WO2017035794A1 (en) | Method and device for operating display, user interface, and storage medium | |
CN107003759B (en) | Method for selecting text | |
WO2017092264A1 (en) | Data processing method and terminal thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |