[go: up one dir, main page]

CN110069165A - Touch data processing method, device, equipment and storage medium - Google Patents

Touch data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110069165A
CN110069165A CN201910356890.2A CN201910356890A CN110069165A CN 110069165 A CN110069165 A CN 110069165A CN 201910356890 A CN201910356890 A CN 201910356890A CN 110069165 A CN110069165 A CN 110069165A
Authority
CN
China
Prior art keywords
touch
data
time writer
electromagnetic
position data
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.)
Pending
Application number
CN201910356890.2A
Other languages
Chinese (zh)
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910356890.2A priority Critical patent/CN110069165A/en
Publication of CN110069165A publication Critical patent/CN110069165A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/045Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using resistive elements, e.g. a single continuous surface or two parallel surfaces put in contact
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/041012.5D-digitiser, i.e. digitiser detecting the X/Y position of the input means, finger or stylus, also when it does not touch, but is proximate to the digitiser's interaction surface and also measures the distance of the input means within a short range in the Z direction, possibly with a separate measurement setup

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供一种触摸数据的处理方法、装置及设备和存储介质,所述方法包括:确定电磁笔当前的状态;如果为书写状态,按照第一工作模式确定所述电磁笔的触摸数据;如果为悬浮状态,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。实施本发明实施例,可以在电磁笔处于悬浮状态时,按照第二工作模式确定所述电磁笔的触摸数据,确定出的触摸位置对应的触摸精度,低于书写状态时第一工作模式下的触摸精度,可以减少光标位置的变化频率,进而尽可能减少光标的频繁抖动,避免不必要的资源消耗。

The present invention provides a touch data processing method, device, device and storage medium. The method includes: determining the current state of an electromagnetic pen; if it is a writing state, determining the touch data of the electromagnetic pen according to a first working mode; In the floating state, the touch data of the electromagnetic pen is determined according to the second working mode; the touch accuracy in the second working mode is lower than the touch accuracy in the first working mode. By implementing the embodiment of the present invention, when the electromagnetic pen is in a floating state, the touch data of the electromagnetic pen can be determined according to the second working mode, and the touch accuracy corresponding to the determined touch position is lower than that in the first working mode when the electromagnetic pen is in the writing state. The touch accuracy can reduce the frequency of changes in the cursor position, thereby reducing the frequent shaking of the cursor as much as possible and avoiding unnecessary resource consumption.

Description

触摸数据的处理方法、装置、及设备和存储介质Touch data processing method, device, and device and storage medium

技术领域technical field

本发明涉及触摸技术领域,尤其涉及触摸数据的处理方法、装置及设备和存储介质。The present invention relates to the field of touch technology, and in particular, to a touch data processing method, apparatus and device, and storage medium.

背景技术Background technique

很多电子设备的屏幕可以由显示屏和电磁式触摸屏构成,电磁式触摸屏可以对接触控系统,触控系统可以包括电磁板和触控主板,需要感应到电磁笔发射的电磁信号,才能进行信息交互。The screen of many electronic devices can be composed of a display screen and an electromagnetic touch screen. The electromagnetic touch screen can be connected to the touch system. The touch system can include an electromagnetic board and a touch motherboard. The electromagnetic signal emitted by the electromagnetic pen needs to be sensed to conduct information interaction. .

当电磁笔接触电子设备的屏幕(电磁笔处于书写状态)时,电磁板能感应到电磁笔发射的预定频率的电磁信号,以及磁通量的变化,触控主板对应电磁板磁通量的变化和及感应到的电磁信号的频率,可以生成触摸数据,该触摸数据可以包括压感数据和触摸位置数据,触控系统将该触摸数据上报对接的操作系统后,操作系统控制显示屏在对应位置显示对应的书写内容。When the electromagnetic pen touches the screen of the electronic device (the electromagnetic pen is in the writing state), the electromagnetic board can sense the electromagnetic signal of the predetermined frequency emitted by the electromagnetic pen, as well as the change of the magnetic flux. The frequency of the electromagnetic signal can generate touch data, and the touch data can include pressure-sensing data and touch position data. After the touch system reports the touch data to the docking operating system, the operating system controls the display screen to display the corresponding writing in the corresponding position. content.

某些情况下,电磁笔未接触屏幕,而屏幕显示的光标出现频繁抖动的现象,光标频繁抖动会引起设备不必要的资源消耗。因此,如何有效控制光标的频繁抖动,是亟待解决的问题。In some cases, the electromagnetic pen does not touch the screen, and the cursor displayed on the screen frequently shakes, which may cause unnecessary resource consumption of the device. Therefore, how to effectively control the frequent shaking of the cursor is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明提供一种触摸数据的处理方法、装置及电子设备和存储介质,以解决光标频繁抖动的问题。In view of this, the present invention provides a touch data processing method, device, electronic device and storage medium, so as to solve the problem of frequent shaking of the cursor.

根据本发明的第一方面,提供一种触摸数据的处理方法,包括:According to a first aspect of the present invention, a method for processing touch data is provided, including:

确定电磁笔当前的状态;Determine the current state of the electromagnetic pen;

如果为书写状态,按照第一工作模式确定所述电磁笔的触摸数据;If it is in the writing state, determine the touch data of the electromagnetic pen according to the first working mode;

如果为悬浮状态,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。If it is in the floating state, the touch data of the electromagnetic pen is determined according to the second working mode; the touch accuracy in the second working mode is lower than the touch accuracy in the first working mode.

在一个实施例中,按照第一工作模式确定所述电磁笔的触摸数据,包括:In one embodiment, determining the touch data of the electromagnetic pen according to the first working mode includes:

按照预定的第一触摸分辨率,生成所述触摸数据中的触摸位置数据;generating touch position data in the touch data according to a predetermined first touch resolution;

按照第二工作模式确定所述电磁笔的触摸数据,包括:Determining the touch data of the electromagnetic pen according to the second working mode includes:

按照低于所述第一触摸分辨率的第二触摸分辨率,生成所述触摸数据中的触摸位置数据。Touch position data in the touch data is generated according to a second touch resolution lower than the first touch resolution.

在一个实施例中,所述方法应用于触摸设备搭载的触控系统,还包括以下步骤:In one embodiment, the method is applied to a touch control system mounted on a touch device, further comprising the following steps:

生成包含所述触摸位置数据的触摸数据,并向操作系统发送,以便进行触摸响应。Touch data containing the touch location data is generated and sent to the operating system for touch response.

在一个实施例中,所述方法应用于操作系统,还包括以下步骤:In one embodiment, the method is applied to an operating system, further comprising the following steps:

生成所述触摸数据中的触摸位置数据前,接收关联的触摸设备发送的所述电磁笔触发的触感信号;Before generating the touch position data in the touch data, receive a touch signal triggered by the electromagnetic pen sent by the associated touch device;

在生成所述触摸数据中的触摸位置数据后,生成包含所述触摸位置数据的触摸数据;after generating touch position data in the touch data, generating touch data including the touch position data;

向所述触摸设备或向虚拟触摸设备发送所述触摸信号,以便进行触摸响应。The touch signal is sent to the touch device or to a virtual touch device for a touch response.

在一个实施例中,所述第一触摸分辨率高于或等于关联的显示屏的分辨率;In one embodiment, the first touch resolution is higher than or equal to the resolution of the associated display screen;

所述第二触摸分辨率低于关联的显示屏的分辨率。The second touch resolution is lower than the resolution of the associated display screen.

在一个实施例中,所述方法还包括以下步骤:In one embodiment, the method further includes the following steps:

按照预定触摸分辨率,生成所述电磁笔的触摸位置数据;generating touch position data of the electromagnetic pen according to a predetermined touch resolution;

按照第一工作模式确定所述电磁笔的触摸数据,包括:Determining the touch data of the electromagnetic pen according to the first working mode includes:

确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;determining that the touch data including the touch position data is the touch data of the electromagnetic pen;

按照第二工作模式确定所述电磁笔的触摸数据,包括:Determining the touch data of the electromagnetic pen according to the second working mode includes:

判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值;Determine whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; wherein, the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution;

如果大于,则确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;If it is greater than, determining that the touch data including the touch position data is the touch data of the electromagnetic pen;

如果不大于,则舍弃所述触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。If it is not greater than the value, the touch position data is discarded, the touch data of the electromagnetic pen is determined to be empty, or the touch data including the previous touch position data is determined to be the touch data of the electromagnetic pen.

在一个实施例中,所述方法应用于触摸设备搭载的触控系统,还包括以下步骤:In one embodiment, the method is applied to a touch control system mounted on a touch device, further comprising the following steps:

向操作系统发送所述电磁笔的触摸数据,以便进行触摸响应。Send the touch data of the electromagnetic pen to the operating system for touch response.

在一个实施例中,所述方法应用于操作系统,还包括以下步骤:In one embodiment, the method is applied to an operating system, further comprising the following steps:

确定电磁笔当前的状态前,接收关联的触摸设备发送的所述电磁笔触发的触感信号;Before determining the current state of the electromagnetic pen, receive a touch signal triggered by the electromagnetic pen sent by the associated touch device;

确定所述电磁笔的触摸数据后,向向所述触摸设备或向虚拟触摸设备发送所述触摸信号,以便进行触摸响应。After the touch data of the electromagnetic pen is determined, the touch signal is sent to the touch device or to the virtual touch device, so as to perform a touch response.

在一个实施例中,所述确定电磁笔当前的状态,包括:In one embodiment, the determining the current state of the electromagnetic pen includes:

根据电磁板感测到的电磁信号的频率,确定所述电磁笔当前的状态;Determine the current state of the electromagnetic pen according to the frequency of the electromagnetic signal sensed by the electromagnetic board;

如果所述电磁信号的频率在预定的书写频率范围内,则确定所述电磁笔当前处于书写状态。If the frequency of the electromagnetic signal is within a predetermined writing frequency range, it is determined that the electromagnetic pen is currently in a writing state.

在一个实施例中,如果所述电磁信号的频率持续在预定的悬浮频率范围内的时间,高于或等于第一时间阈值,则确定所述电磁笔当前处于预定的悬浮状态。In one embodiment, if the frequency of the electromagnetic signal lasts for a time within a predetermined suspension frequency range, which is higher than or equal to a first time threshold, it is determined that the electromagnetic pen is currently in a predetermined suspension state.

在一个实施例中,如果所述电磁信号的频率持续在所述悬浮频率范围内的时间,低于所述第一时间阈值,则确定所述电磁笔当前处于书写状态。In one embodiment, if the frequency of the electromagnetic signal lasts for a time within the levitation frequency range and is lower than the first time threshold, it is determined that the electromagnetic pen is currently in a writing state.

在一个实施例中,对应不同电磁笔预存有交集为空的不同书写频率范围,及交集为空的不同悬浮频率范围。In one embodiment, corresponding to different electromagnetic pens, different writing frequency ranges whose intersection is empty, and different levitation frequency ranges whose intersection is empty are pre-stored.

根据本发明的第二方面,提供一种触摸数据的处理装置,包括:According to a second aspect of the present invention, a device for processing touch data is provided, comprising:

状态确定模块,用于确定电磁笔当前的状态;The state determination module is used to determine the current state of the electromagnetic pen;

第一触摸模块,用于在书写状态时,按照第一工作模式确定所述电磁笔的触摸数据;a first touch module, configured to determine the touch data of the electromagnetic pen according to the first working mode in the writing state;

第二触摸模块,用于在悬浮状态时,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。The second touch module is configured to determine the touch data of the electromagnetic pen according to the second working mode in the floating state; the touch accuracy in the second working mode is lower than that in the first working mode.

在一个实施例中,所述第一触摸模块还用于:In one embodiment, the first touch module is further used for:

按照预定的第一触摸分辨率,生成所述触摸数据中的触摸位置数据;generating touch position data in the touch data according to a predetermined first touch resolution;

所述第二触摸模块还用于:The second touch module is also used for:

按照低于所述第一触摸分辨率的第二触摸分辨率,生成所述触摸数据中的触摸位置数据。Touch position data in the touch data is generated according to a second touch resolution lower than the first touch resolution.

在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:

位置数据确定模块,用于按照预定触摸分辨率,生成所述电磁笔的触摸位置数据;a position data determination module, configured to generate touch position data of the electromagnetic pen according to a predetermined touch resolution;

所述第一触摸模块包括:The first touch module includes:

第一触摸子模块,用于确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;a first touch sub-module, configured to determine that the touch data including the touch position data is the touch data of the electromagnetic pen;

所述第二触摸模块包括:The second touch module includes:

距离判断模块,用于判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值;A distance judgment module for judging whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; wherein the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution ;

第二触摸子模块,用于在大于时,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;a second touch sub-module, configured to determine that the touch data including the touch position data is the touch data of the electromagnetic pen when the value is greater than that;

第三触摸子模块,用于在不大于时,舍弃所述触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。The third touch sub-module is configured to discard the touch position data when not greater than the touch position data, determine that the touch data of the electromagnetic pen is empty, or determine that the touch data including the previous touch position data is the touch of the electromagnetic pen data.

根据本发明的第三方面,提供一种计算机设备,包括处理器以及用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行如上所述方法的操作。According to a third aspect of the present invention, there is provided a computer device comprising a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to perform the operations of the method as described above.

在一个实施例中,所述方法应用于触摸设备搭载的触控系统时,所述计算机设备为触摸设备。In one embodiment, when the method is applied to a touch control system mounted on a touch device, the computer device is a touch device.

在一个实施例中,所述方法应用于操作系统时,所述计算机设备为触摸设备对接的主机设备,且搭载有所述操作系统。In one embodiment, when the method is applied to an operating system, the computer device is a host device docked with a touch device, and is equipped with the operating system.

根据本发明的第四方面,提供一个或多个机器可读存储介质,其上存储有指令,当由一个或多个处理器执行时,使得处理器执行如上所述方法中的操作。According to a fourth aspect of the present invention, there is provided one or more machine-readable storage media having stored thereon instructions which, when executed by one or more processors, cause the processors to perform the operations in the method as described above.

实施本发明提供的实施例,通过判断电磁笔当前的状态,可以在电磁笔处于书写状态时,按照第一工作模式确定所述电磁笔的触摸数据;在电磁笔处于悬浮状态时,按照第二工作模式确定所述电磁笔的触摸数据,确定出的触摸位置对应的触摸精度,低于书写状态时第一工作模式下的触摸精度,这样就可以减少光标位置的变化频率,进而尽可能减少光标的频繁抖动,避免不必要的资源消耗。By implementing the embodiments provided by the present invention, by judging the current state of the electromagnetic pen, the touch data of the electromagnetic pen can be determined according to the first working mode when the electromagnetic pen is in the writing state; when the electromagnetic pen is in the floating state, the touch data of the electromagnetic pen can be determined according to the second working mode. The working mode determines the touch data of the electromagnetic pen, and the touch accuracy corresponding to the determined touch position is lower than the touch accuracy in the first working mode in the writing state, so that the frequency of changes in the cursor position can be reduced, thereby reducing the cursor position as much as possible. frequent jitter to avoid unnecessary resource consumption.

附图说明Description of drawings

图1A是本发明一示例性实施例示出的触摸数据的处理系统的架构图;FIG. 1A is an architectural diagram of a system for processing touch data according to an exemplary embodiment of the present invention;

图1B是本发明另一示例性实施例示出的触摸数据的处理系统的架构图;FIG. 1B is an architectural diagram of a system for processing touch data according to another exemplary embodiment of the present invention;

图2A是本发明一示例性实施例示出的触摸数据的处理方法的流程图;FIG. 2A is a flowchart of a method for processing touch data according to an exemplary embodiment of the present invention;

图2B是本发明一示例性实施例示出的书写状态的示意图;2B is a schematic diagram of a writing state shown in an exemplary embodiment of the present invention;

图2C是本发明一示例性实施例示出的悬浮状态的示意图;2C is a schematic diagram of a suspended state according to an exemplary embodiment of the present invention;

图3A是本发明另一示例性实施例示出的触摸数据的处理方法的流程图;3A is a flowchart of a method for processing touch data according to another exemplary embodiment of the present invention;

图3B是本发明另一示例性实施例示出的触摸数据的处理系统的架构图;3B is an architectural diagram of a system for processing touch data according to another exemplary embodiment of the present invention;

图4是本发明另一示例性实施例示出的触摸数据的处理方法的流程图;FIG. 4 is a flowchart of a method for processing touch data according to another exemplary embodiment of the present invention;

图5是本发明一示例性实施例示出的触摸数据的处理装置的框图;FIG. 5 is a block diagram of an apparatus for processing touch data according to an exemplary embodiment of the present invention;

图6是本发明一示例性实施例示出的计算机设备的硬件结构图。FIG. 6 is a hardware structure diagram of a computer device according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present invention is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in this specification and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本发明可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present invention. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."

带有触控功能的智能终端,可以应用在会议、教课、室外直播等需要触控功能的场景下。为了适应场景需求,智能终端的触控系统可以实现精细地触控响应。某些场景下,触摸位置每变化一个像素,触控系统至少需要上报一次带触摸位置数据的触摸数据,其中,触摸位置数据表示触摸位置,而触摸位置某些场景下也可以称作触控位置或书写位置。相邻两次上报的触摸位置差距可以对应一个像素,即相邻两次上报的触摸位置的变化小于或等于一个像素单元。这表明,一个像素单元至少包括一个触控单元,该触控单元表示触控系统能辨别的最小单元,能辨别的最小单元越小,触控系统的触摸精度越高,这里的触摸精度也可以称作触控精度或书写精细度。Smart terminals with touch function can be used in scenarios that require touch function, such as conferences, teaching, and outdoor live broadcasts. In order to meet the needs of the scene, the touch control system of the smart terminal can realize fine touch response. In some scenarios, each time the touch position changes by one pixel, the touch system needs to report touch data with touch position data at least once, where the touch position data represents the touch position, and the touch position may also be called the touch position in some scenarios. or writing position. The difference between the touch positions reported in two adjacent times may correspond to one pixel, that is, the change in the touch positions reported in two adjacent times is less than or equal to one pixel unit. This shows that a pixel unit includes at least one touch unit, which represents the smallest unit that the touch system can distinguish. The smaller the smallest unit that can be distinguished, the higher the touch precision of the touch system, and the touch precision here can also be Called touch accuracy or writing finesse.

本发明方案的设计人员通过反复研究发现,触控系统为电容、电阻、压感等类型的触控系统时,精细触控的过程中较少出现光标频繁抖动的现象。而触控系统为电磁式的触控系统时,如果电磁笔接触到屏幕,即处于书写状态时,精细地触控响应,可以提高书写精细度。The designers of the solution of the present invention have found through repeated research that when the touch system is a capacitive, resistive, pressure-sensitive and other type of touch control system, the phenomenon that the cursor frequently vibrates during the fine touch is less likely to occur. When the touch system is an electromagnetic touch system, if the electromagnetic pen touches the screen, that is, when the pen is in a writing state, a fine touch response can improve the writing precision.

如果电磁笔未接触到屏幕,且悬浮于距离屏幕一定范围的空间的情况下(该情况在本发明中称作悬浮状态),精细响应触控的过程中,经常出现光标频繁抖动的现象。这里提到的一定范围,由电磁板能感测到电磁信号的有效范围决定。If the electromagnetic pen does not touch the screen and is suspended in a space within a certain range from the screen (this situation is referred to as a suspended state in the present invention), the cursor frequently shakes frequently during the process of finely responding to the touch. The certain range mentioned here is determined by the effective range that the electromagnetic board can sense the electromagnetic signal.

本发明方案的设计人员进一步研究分析此现象后发现,电磁笔悬浮于距离屏幕一定范围的空间时,触控系统中的电磁板同样能感测到电磁笔发射的电磁信号,以及磁通量的变化,感应到的电磁信号的频率,不同于电磁笔处于书写状态时发出的电磁信号的频率,作为响应,操作系统控制显示屏显示光标。The designer of the solution of the present invention further studied and analyzed this phenomenon and found that when the electromagnetic pen is suspended in a space within a certain range from the screen, the electromagnetic board in the touch system can also sense the electromagnetic signal emitted by the electromagnetic pen and the change of the magnetic flux. The frequency of the sensed electromagnetic signal is different from the frequency of the electromagnetic signal emitted when the electromagnetic pen is in the writing state. In response, the operating system controls the display screen to display the cursor.

虽然显示屏显示的是光标,但是,为了保证书写状态时的精细控制,即使是非书写状态时,一个像素单元也至少包括一个触控单元,触摸位置每变化一个像素,触控系统至少需要上报一次触摸数据。随后,由触控系统对接的操作系统,控制光标位置跟随触摸位置的变化而变化。Although the display screen shows the cursor, in order to ensure the fine control in the writing state, even in the non-writing state, a pixel unit includes at least one touch unit, and the touch system needs to report at least once every pixel that the touch position changes. Touch Data. Subsequently, the operating system connected by the touch control system controls the cursor position to change following the change of the touch position.

本发明方案的设计人员进而发现,在触控系统精细响应触控位置变化的情况下,如果电磁笔悬浮于距离屏幕一定范围的空间,用户手臂不可自抑的抖动、身体无意识的移动等,均会引起电磁笔位置的变化,以及触控位置的变化。触控位置的变化易引起触控系统频繁上报变化的触控位置,这就容易出现光标频繁抖动的现象,而光标频繁抖动会引起不必要的资源消耗。有鉴于此,本发明的设计人员提出了一种触摸数据的处理方法。The designer of the solution of the present invention further found that under the condition that the touch control system finely responds to the change of the touch position, if the electromagnetic pen is suspended in a space within a certain range from the screen, the uncontrollable shaking of the user's arm and the unintentional movement of the body will all be affected. It will cause the change of the position of the electromagnetic pen and the change of the touch position. The change of the touch position is likely to cause the touch system to frequently report the changed touch position, which is prone to the phenomenon that the cursor frequently jitters, and the frequent jitter of the cursor may cause unnecessary resource consumption. In view of this, the designer of the present invention proposes a method for processing touch data.

该触摸数据的处理方法,通过判断电磁笔当前的状态,可以在电磁笔处于书写状态时,按照第一工作模式确定所述电磁笔的触摸数据;在电磁笔处于悬浮状态时,按照第二工作模式确定所述电磁笔的触摸数据,确定出的触控位置对应的触摸精度,低于书写状态时第一工作模式下的触摸精度,这样就可以减少光标位置的变化频率,进而尽可能减少光标的频繁抖动,避免不必要的资源消耗。In the touch data processing method, by judging the current state of the electromagnetic pen, when the electromagnetic pen is in the writing state, the touch data of the electromagnetic pen can be determined according to the first working mode; when the electromagnetic pen is in the floating state, the touch data of the electromagnetic pen can be determined according to the second working mode. The mode determines the touch data of the electromagnetic pen, and the touch accuracy corresponding to the determined touch position is lower than the touch accuracy in the first working mode in the writing state, so that the change frequency of the cursor position can be reduced, thereby reducing the cursor position as much as possible. frequent jitter to avoid unnecessary resource consumption.

以下结合附图,首先说明下实现本发明实施例的触摸数据的处理的一种系统:The following describes a system for implementing touch data processing according to an embodiment of the present invention with reference to the accompanying drawings:

请参阅图1A,图1A是本发明一示例性实施例示出的触摸数据的处理系统100的架构图,该处理系统100可以包括触控系统120。触控系统120与电磁式触摸屏及主机设备140对接,可以包括电磁式的触摸传感器(如图1A中电磁板121)和触控处理器122,主机设备140内搭载有操作系统141。Please refer to FIG. 1A . FIG. 1A is an architectural diagram of a touch data processing system 100 according to an exemplary embodiment of the present invention. The processing system 100 may include a touch control system 120 . The touch system 120 is connected to the electromagnetic touch screen and the host device 140 , and may include an electromagnetic touch sensor (such as the electromagnetic board 121 in FIG. 1A ) and a touch processor 122 . The host device 140 is equipped with an operating system 141 .

实际应用中,触控系统120可以搭载在电磁式触摸屏上,两者可以被称作触摸设备,主机设备140可以指计算机设备的主机或主机中用于实现触摸响应的部分设备,电磁式触摸屏可以指独立于计算机设备之外的电磁式的触摸输入设备,也可以指装设在各种计算机设备上的电磁式的触摸输入设备,这里的计算机设备可以是膝上型计算机、智能电话、个人数字助理、媒体播放器、导航设备、智能交互平板、电子邮件收发设备、游戏控制台、平板计算机、智能机车、无人驾驶汽车、智能冰箱、其他智能家居设备或者这些设备中的任意几种设备的组合。In practical applications, the touch system 120 may be mounted on an electromagnetic touch screen, and the two may be referred to as touch devices. The host device 140 may refer to the host of a computer device or a part of the device used to implement touch response in the host. The electromagnetic touch screen may Refers to electromagnetic touch input devices independent of computer devices, and can also refer to electromagnetic touch input devices installed on various computer devices. The computer devices here can be laptop computers, smart phones, personal digital Assistants, media players, navigation devices, smart interactive tablets, e-mail devices, game consoles, tablet computers, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or any combination of these devices combination.

触控系统120所含的电磁板121,为电磁式的触摸传感器,感测的触感信号可以包括磁通量的变化量和电磁信号的频率。其中,磁通量的变换量与触控位置相关,电磁信号的频率可以表示电磁笔是否接触屏幕,以及用户对电磁笔的施压大小。The electromagnetic plate 121 included in the touch control system 120 is an electromagnetic touch sensor, and the sensed touch signal may include the change of the magnetic flux and the frequency of the electromagnetic signal. Among them, the transformation amount of the magnetic flux is related to the touch position, and the frequency of the electromagnetic signal can indicate whether the electromagnetic pen touches the screen, and the pressure exerted by the user on the electromagnetic pen.

用户对电磁笔(笔尖)施压不同时,电磁笔内部的“压力传感器”感受到压力不同,根据所感应的压力发出的电磁信号的频率不同。相应的,电磁板121感应到的电磁信号的频率也会有所不同。When the user exerts different pressure on the electromagnetic pen (pen tip), the "pressure sensor" inside the electromagnetic pen feels different pressure, and the frequency of the electromagnetic signal sent out according to the sensed pressure is different. Correspondingly, the frequency of the electromagnetic signal sensed by the electromagnetic plate 121 will also be different.

触控处理器122,为触控系统120的触控处理芯片,这里提到的触控处理芯片可以是触控系统120的主控制芯片(也可以称为主处理芯片或中央处理器),也可以是触控系统120另外增设的处理芯片,该处理芯片可以装设于电磁式触摸输入设备内。The touch processor 122 is a touch processing chip of the touch system 120. The touch processing chip mentioned here may be a main control chip (also referred to as a main processing chip or a central processing unit) of the touch system 120, or a It may be an additional processing chip added to the touch control system 120, and the processing chip may be installed in the electromagnetic touch input device.

触控处理器122接收电磁板121发送的触感信号后,可以对应触感信号生成触摸数据,触摸数据可以包括与所述磁通变化量对应的触摸位置数据,与所述频率对应的压感数据。触摸位置数据可以包括触摸位置的X坐标和Y坐标;压感数据可以包括压力值,压力值不同,最终在屏幕上呈现的线条的粗细也会不同。After receiving the touch signal sent by the electromagnetic board 121, the touch processor 122 may generate touch data corresponding to the touch signal, and the touch data may include touch position data corresponding to the magnetic flux change and pressure data corresponding to the frequency. The touch position data may include the X coordinate and the Y coordinate of the touch position; the pressure sensitivity data may include a pressure value, and the thickness of the line finally displayed on the screen will also be different depending on the pressure value.

本发明实施例,为了解决光标频繁抖动的问题,触控处理器122可以对应电磁笔的不同状态,预置不同的工作模式,其中书写状态对应第一工作模式,悬浮状态对应第二工作模式。In this embodiment of the present invention, in order to solve the problem of frequent cursor shaking, the touch processor 122 can preset different working modes corresponding to different states of the electromagnetic pen, wherein the writing state corresponds to the first working mode, and the floating state corresponds to the second working mode.

工作过程中,触控处理器122可以判断电磁笔当前所处的状体,如果为书写状态,按照第一工作模式确定所述电磁笔的触摸数据;如果为悬浮状态,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。这里提到的第一工作模式与第二工作模式可以有多种实现方式,以下列举两种:During the working process, the touch processor 122 can determine the current state of the electromagnetic pen. If it is in the writing state, the touch data of the electromagnetic pen is determined according to the first working mode; if it is in the floating state, it is determined according to the second working mode. touch data of the electromagnetic pen; the touch accuracy in the second working mode is lower than the touch accuracy in the first working mode. The first working mode and the second working mode mentioned here can be implemented in multiple ways, two of which are listed below:

第一种,第一工作模式对应第一触摸分辨率,第二工作模式对应第二触摸分辨率,第二触摸分辨率低于第一触摸分辨率。触控处理器122接收到触感数据后,可以判断电磁笔当前所处的状态,如果为书写状态,按照预定的第一触摸分辨率确定所述电磁笔的触摸位置数据;如果为悬浮状态,按照低于所述第一触摸分辨率的第二触摸分辨率确定所述电磁笔的触摸位置数据。In the first type, the first working mode corresponds to the first touch resolution, the second working mode corresponds to the second touch resolution, and the second touch resolution is lower than the first touch resolution. After receiving the tactile data, the touch processor 122 can determine the current state of the electromagnetic pen. If it is in the writing state, determine the touch position data of the electromagnetic pen according to the predetermined first touch resolution; if it is in the floating state, according to A second touch resolution lower than the first touch resolution determines touch position data of the electromagnetic pen.

在按照对应工作模式确定触摸位置数据后,触控处理器122生成包括所确定的触摸位置数据的触摸数据,向操作系统141上报后,可以在电磁笔处于书写状态时,以高触摸分辨率实现精细书写,在电磁笔处于预定的悬浮状态时,以低触摸分辨率降低上报的触控位置的变化频率,减少光标位置的变化频率,尽可能减少光标的频繁抖动,避免不必要的资源消耗。After the touch position data is determined according to the corresponding working mode, the touch processor 122 generates touch data including the determined touch position data, and reports it to the operating system 141, which can be realized with high touch resolution when the electromagnetic pen is in the writing state. For fine writing, when the electromagnetic pen is in a predetermined floating state, the reported touch position change frequency is reduced with a low touch resolution, the change frequency of the cursor position is reduced, the frequent shaking of the cursor is minimized, and unnecessary resource consumption is avoided.

需要说明的是,第一触摸分辨率与第二触摸分辨率,类似于屏幕的显示分辨率,表示的是,屏幕内触控单元的个数,不同之处在于:第一触摸分辨率的数值大于第二触摸分辨率的数值。另外,这里提到的第一触摸分辨率与第二触摸分辨率,可以根据屏幕所含显示屏(关联的显示屏)的显示分辨率进行设置,如:第一触摸分辨率高于或等于关联的显示屏的分辨率,第二触摸分辨率低于关联的显示屏的分辨率。It should be noted that the first touch resolution and the second touch resolution are similar to the display resolution of the screen, and represent the number of touch units in the screen. The difference is: the value of the first touch resolution A value greater than the second touch resolution. In addition, the first touch resolution and second touch resolution mentioned here can be set according to the display resolution of the display screen (associated display screen) included in the screen, for example, the first touch resolution is higher than or equal to the associated display screen The resolution of the display screen of the second touch is lower than the resolution of the associated display screen.

第二种,第一工作模式与第二工作模式对应的触摸分辨率相同,可以按照相同的预定触摸分辨率生成触摸位置数据。但是,按照预定触摸分辨率生成触摸位置数据后,第一工作模式下直接将生成的触摸位置数据作为电磁笔当前的触摸位置数据,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据。Second, the touch resolutions corresponding to the first working mode and the second working mode are the same, and the touch position data can be generated according to the same predetermined touch resolution. However, after the touch position data is generated according to the predetermined touch resolution, in the first working mode, the generated touch position data is directly used as the current touch position data of the electromagnetic pen, and the touch data including the touch position data is determined as the touch position data of the electromagnetic pen. Touch Data.

第二工作模式下,生成触摸位置数据后,判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;如果大于,直接将生成的触摸位置数据作为电磁笔当前的触摸位置数据,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据,如果不大于,则舍弃生成的触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值。In the second working mode, after the touch position data is generated, it is judged whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; if it is greater, the generated touch position data is directly used as the current touch position data of the electromagnetic pen , determine that the touch data containing the touch position data is the touch data of the electromagnetic pen, if not greater than, discard the generated touch position data, determine that the touch data of the electromagnetic pen is empty, or determine that the touch data contains the previous touch The touch data of the position data is the touch data of the electromagnetic pen. Wherein, the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution.

这里判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值,可以根据当前生成的触摸位置数据与前一次生成的触摸位置数据进行判断,也可以根据摄像头的拍摄时间及拍摄的电磁笔的运动轨迹进行判断,还可以通过其他方式进行判断,在此不再赘述。Here, to determine whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value, the judgment can be made according to the currently generated touch position data and the previously generated touch position data, or according to the shooting time and the shooting time of the camera. The motion trajectory of the electromagnetic pen can be judged, and the judgment can also be made in other ways, which will not be repeated here.

第一工作模式与第二工作模式除前述两种实现方式外,还可以通过其他方式实现,只要第一工作模式下的触摸精度高于第二工作模式即可,具体实现方式在此不再赘述。The first working mode and the second working mode can be implemented in other ways in addition to the aforementioned two implementation modes, as long as the touch accuracy in the first working mode is higher than that in the second working mode, and the specific implementation mode will not be repeated here. .

进而,为了进行触摸响应,触控处理器122生成触摸数据后,可以直接向操作系统141发送,由其控制后续的触摸响应。这样,通过不同的工作模式,可以保证书写状态下精细撰写的同时,减少悬浮状态下光标位置的变化频率,进而尽可能减少光标的频繁抖动,避免不必要的资源消耗Furthermore, in order to perform a touch response, after the touch data is generated by the touch processor 122, it can be directly sent to the operating system 141, which controls subsequent touch responses. In this way, through different working modes, it is possible to ensure fine writing in the writing state and at the same time reduce the frequency of changes of the cursor position in the floating state, thereby reducing the frequent shaking of the cursor as much as possible and avoiding unnecessary resource consumption

另外,为了进一步节约资源或降低光标抖动,各工作模式下,在触控处理器122生成包含所确定的触摸位置数据的触摸数据后,均可以判断相邻两次生成的触摸位置数据及压感数据是否相同,如果两者相同,可以放弃本次触摸数据的上报如果任意一项不同,再向操作系统141上报。In addition, in order to further save resources or reduce cursor jitter, in each working mode, after the touch processor 122 generates touch data including the determined touch position data, it can determine the touch position data and pressure sensitivity generated twice adjacently. Whether the data are the same, if the two are the same, the reporting of the touch data can be abandoned this time, and if any one of the data is different, report to the operating system 141 again.

某些例子中,触控处理器122集成于触控系统120的触控主板上,向操作系统141上操触摸数据时,可以通过触控主板与主机设备140间的数据线传输。In some examples, the touch processor 122 is integrated on the touch motherboard of the touch system 120 , and when the touch data is manipulated to the operating system 141 , it can be transmitted through a data line between the touch motherboard and the host device 140 .

操作系统141接收到触摸数据后,可以将接收的触摸数据发送到其所含的触摸驱动,由触摸驱动对所述触摸数据进行解析,以触发所述触摸数据的响应操作。After the operating system 141 receives the touch data, it can send the received touch data to the touch driver contained therein, and the touch driver parses the touch data to trigger a response operation of the touch data.

此外,为了响应触摸数据,触摸驱动可以将解析后的触摸数据发送至操作系统141中的输入子系统(input_device)。In addition, in order to respond to the touch data, the touch driver may send the parsed touch data to the input subsystem (input_device) in the operating system 141 .

该输入子系统可以由设备驱动层、输入核心层和事件处理层构成,其中,设备驱动层可以将底层的硬件输入转化为统一事件形式,向输入核心层汇报,输入核心层可以承上启下,为硬件的驱动层输入的设备注册与操作接口,通知事件处理层对事件进行处理。The input subsystem can be composed of a device driver layer, an input core layer and an event processing layer. The device driver layer can convert the underlying hardware input into a unified event form and report to the input core layer. The device registration and operation interface input by the driver layer notifies the event processing layer to process the event.

某些场景下,在尽可能减少光标的频繁抖动的同时,电磁笔书写时触摸精度的要求也非常高,而随着触控精度的提高,触控处理器需要处理的信号量越来越大,对其信号处理能力要求也越来越高,为了触控处理器的信号处理能力,需要采用高性能的处理器,而高性能的处理器的成本高、体积大,会造成触摸设备的成本提高和体积增大。为了同时解决该问题,本发明的设计人员提出了可以实现本发明实施例的触摸数据的处理的另一种系统:In some scenarios, while reducing the frequent shaking of the cursor as much as possible, the requirements for touch precision when writing with an electromagnetic pen are also very high. With the improvement of touch precision, the touch processor needs to process more and more signals. , the requirements for its signal processing capabilities are also getting higher and higher. In order to handle the signal processing capabilities of the touch processor, a high-performance processor needs to be used, and the high-performance processor is expensive and bulky, which will cause the cost of the touch device. increase and increase in size. In order to solve this problem at the same time, the designer of the present invention proposes another system that can realize the processing of touch data according to the embodiment of the present invention:

请参阅图1B,图1B是本发明另一示例性实施例示出的触摸数据的处理系统200的架构图,该处理系统200可以包括触控系统220。触控系统220与电磁式触摸屏及主机设备对接,可以包括电磁式的触摸传感器(如图1B中电磁板221),主机设备内搭载有操作系统240。Please refer to FIG. 1B . FIG. 1B is an architectural diagram of a touch data processing system 200 according to another exemplary embodiment of the present invention. The processing system 200 may include a touch control system 220 . The touch system 220 is connected to the electromagnetic touch screen and the host device, and may include an electromagnetic touch sensor (such as the electromagnetic board 221 in FIG. 1B ), and the host device is equipped with an operating system 240 .

实际应用中,触控系统220可以搭载在电磁式触摸屏上,两者可以被称作触摸设备,主机设备可以指计算机设备的主机或主机中用于实现触摸响应的部分设备,电磁式触摸屏可以指独立于计算机设备之外的电磁式的触摸输入设备,也可以指装设在各种计算机设备上的电磁式的触摸输入设备,这里的计算机设备可以是膝上型计算机、智能电话、个人数字助理、媒体播放器、导航设备、智能交互平板、电子邮件收发设备、游戏控制台、平板计算机、智能机车、无人驾驶汽车、智能冰箱、其他智能家居设备或者这些设备中的任意几种设备的组合。In practical applications, the touch system 220 can be mounted on an electromagnetic touch screen, and the two can be called touch devices. Electromagnetic touch input devices independent of computer equipment, and can also refer to electromagnetic touch input devices installed on various computer equipment, the computer equipment here can be laptop computers, smart phones, personal digital assistants , media players, navigation devices, smart interactive tablets, e-mail devices, game consoles, tablet computers, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or a combination of any of these devices .

本实施例的技术内容可以参见图1A涉及的实施例,不同之处在于:电磁板221感测到触感信号后,触控系统220无需将触感信号转换为触摸信号,而是向操作系统240传输触感信号。The technical content of this embodiment can refer to the embodiment involved in FIG. 1A , the difference is that after the electromagnetic plate 221 senses the touch signal, the touch system 220 does not need to convert the touch signal into a touch signal, but transmits the touch signal to the operating system 240 . tactile signal.

触控系统220向操作系统240传输触感信号时,如果电磁板221是兼具控制功能和采集功能的设备,如电磁式触摸传感芯片,可以由电磁板221直接通过预定接口向操作系统240传输所述触感信号。这里提到的预定接口可以是USB-bulk接口、RS232接口或USB-hid接口(hid是Human Interface Devices的缩写,即人机接口设备)等,该USB-hid接口可以是通用的USB-hid接口,此外,预定接口也可以是本发明方案的设计人员或其他设备生产商自定义的信号传输接口。When the touch control system 220 transmits the tactile signal to the operating system 240, if the electromagnetic board 221 is a device with both control function and acquisition function, such as an electromagnetic touch sensor chip, the electromagnetic board 221 can directly transmit it to the operating system 240 through a predetermined interface. the tactile signal. The predetermined interface mentioned here can be a USB-bulk interface, an RS232 interface or a USB-hid interface (hid is the abbreviation of Human Interface Devices, that is, a human-machine interface device), etc. The USB-hid interface can be a general USB-hid interface , in addition, the predetermined interface may also be a signal transmission interface customized by the designer of the solution of the present invention or other equipment manufacturers.

其他例子中,触控系统220还可以包括触控处理芯器223,触摸设备120向操作系统传输触感信号时,如果电磁板221不具备控制功能,可以由触控处理芯器223从电磁板221读取所述触感信号,再由触控处理芯器223通过上述预定接口向传输操作系统240传输所述触感信号。这里提到的触控处理芯器223可以是触控系统220的主控制芯片(也可以称为主处理芯片或中央处理器),也可以是触控系统220另外增设的处理芯片,该处理芯片可以装设于触摸设备内,也可以设置于触摸设备外。In other examples, the touch system 220 may further include a touch processor 223. When the touch device 120 transmits a touch signal to the operating system, if the electromagnetic board 221 does not have a control function, the touch processor 223 can transmit the touch signal from the electromagnetic board 221 to the operating system. The tactile signal is read, and then the touch processing core 223 transmits the tactile signal to the transmission operating system 240 through the predetermined interface. The touch processing core 223 mentioned here may be the main control chip (also referred to as the main processing chip or the central processing unit) of the touch control system 220 , or may be an additional processing chip added to the touch control system 220 . It can be installed inside the touch device or outside the touch device.

操作系统240接收触感信号后,可以对应触感信号生成触摸数据,其中,触摸数据可以包括与所述磁通变化量对应的触摸位置数据,与所述频率对应的压感数据。触摸位置数据与压感数据如前所述,在此不再赘述。After receiving the touch sensing signal, the operating system 240 may generate touch data corresponding to the touch sensing signal, wherein the touch data may include touch position data corresponding to the magnetic flux change amount and pressure sensing data corresponding to the frequency. The touch position data and the pressure-sensing data are as described above and will not be repeated here.

本发明实施例,为了解决光标频繁抖动的问题,操作系统240可以对应电磁笔的不同状态预置不同的工作模式,其中,书写状态对应第一工作模式,悬浮状态对应第二工作模式。In this embodiment of the present invention, in order to solve the problem of frequent cursor shaking, the operating system 240 may preset different working modes corresponding to different states of the electromagnetic pen, wherein the writing state corresponds to the first working mode, and the floating state corresponds to the second working mode.

工作过程中,操作系统240可以判断电磁笔当前所处的状体,如果为书写状态,按照第一工作模式确定所述电磁笔的触摸数据;如果为悬浮状态,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。这里提到的第一工作模式与第二工作模式可以有多种实现方式,以下列举两种:During the working process, the operating system 240 can determine the current state of the electromagnetic pen, and if it is in the writing state, determine the touch data of the electromagnetic pen according to the first working mode; if it is in the floating state, determine the state of the electromagnetic pen according to the second working mode. Touch data of the electromagnetic pen; the touch accuracy in the second working mode is lower than the touch accuracy in the first working mode. The first working mode and the second working mode mentioned here can be implemented in multiple ways, two of which are listed below:

第一种,第一工作模式对应第一触摸分辨率,第二工作模式对应第二触摸分辨率,第二触摸分辨率低于第一触摸分辨率。操作系统240接收到触感数据后,可以判断电磁笔当前所处的状态,如果为书写状态,按照预定的第一触摸分辨率确定所述电磁笔的触摸位置数据;如果为悬浮状态,按照低于所述第一触摸分辨率的第二触摸分辨率确定所述电磁笔的触摸位置数据。其中,第一触摸分辨率与第二触摸分辨率如前述实施例,在此不再赘述。In the first type, the first working mode corresponds to the first touch resolution, the second working mode corresponds to the second touch resolution, and the second touch resolution is lower than the first touch resolution. After the operating system 240 receives the touch data, it can determine the current state of the electromagnetic pen, and if it is in the writing state, determine the touch position data of the electromagnetic pen according to the predetermined first touch resolution; The second touch resolution of the first touch resolution determines touch position data of the electromagnetic pen. Wherein, the first touch resolution and the second touch resolution are the same as those in the foregoing embodiments, and details are not described herein again.

操作系统240在按照对应工作模式确定触摸位置数据后,生成包含所述触摸位置数据的触摸数据。After determining the touch position data according to the corresponding working mode, the operating system 240 generates touch data including the touch position data.

某些场景下,操作系统240中接收触感信号的是信号处理代码241,信号处理代码241是一个逻辑意义上的模块,用于按照不同的工作模式将接收的触感信号转换为触摸位置数据,进而生成触摸信号。In some scenarios, it is the signal processing code 241 that receives the tactile signal in the operating system 240, and the signal processing code 241 is a module in a logical sense, which is used to convert the received tactile signal into touch position data according to different working modes, and then Generate touch signals.

转换触感信号时,该信号处理代码241作为一个逻辑意义上的模块,可以由通过其所在主机设备的中央处理器(也可以称为主控制芯片或主处理芯片)或中央处理器之外的其他处理芯片,将非易失性存储器等可读介质中对应的计算机程序指令读取到内存中运行形成。主机设备的处理器或处理器之外的其他处理芯片可以读取其存储器存储的程序指令,并作为响应,将触感信号转换为触摸信号。When converting tactile signals, the signal processing code 241, as a module in a logical sense, can be processed by the central processing unit (also called the main control chip or the main processing chip) of the host device where it is located, or by other processors other than the central processing unit. The processing chip is formed by reading corresponding computer program instructions in a readable medium such as a non-volatile memory into the memory to run. The processor of the host device or other processing chips other than the processor can read the program instructions stored in its memory, and in response, convert the touch signal into a touch signal.

而将触感信号转换为触摸信号后,为了便于操作系统后续识别响应该触摸信号,一例子中,信号处理代码241可以将所述触摸信号传输至触摸设备。这里传输所述触摸信号时,也可以通过上述预定接口传输。After the touch signal is converted into a touch signal, in order to facilitate subsequent identification and response of the touch signal by the operating system, in an example, the signal processing code 241 may transmit the touch signal to the touch device. When transmitting the touch signal here, it can also be transmitted through the above-mentioned predetermined interface.

为了实现触摸响应,触摸设备搭载的触控系统220可以包括内存和非易失性存储器,存储器内可以存储有用于编码触摸信号的代码,该代码包括可执行的程序指令,在接收到所述触摸信号后,触控处理器223可以从非易失性存储器内读取可执行的程序指令到内存运行,形成逻辑意义上的模块,该模块可以简称为信号编码代码,作为响应,该信号编码代码可以按照标准的数据编码规范对接收的触摸信号进行编码,然后再传输到操作系统240。由操作系统240的触摸驱动245对编码后的触摸信号进行解析。进而,解析后的触摸信号可以传输至输入子系统243,由输入子系统243直接识别,生成对应的触摸事件。输入子系统243可以参见前述实施例,在此不再赘述。In order to realize the touch response, the touch system 220 carried on the touch device may include memory and non-volatile memory, and the memory may store a code for encoding a touch signal, and the code includes executable program instructions. After receiving the signal, the touch processor 223 can read executable program instructions from the non-volatile memory to the memory to run, forming a module in a logical sense, and the module can be referred to as a signal encoding code. In response, the signal encoding code The received touch signal may be encoded according to a standard data encoding specification and then transmitted to the operating system 240 . The encoded touch signal is parsed by the touch driver 245 of the operating system 240 . Furthermore, the parsed touch signal can be transmitted to the input subsystem 243, and the input subsystem 243 can directly recognize it and generate a corresponding touch event. For the input subsystem 243, reference may be made to the foregoing embodiments, and details are not described herein again.

另一例子中,在操作系统240生成触摸信号后,本发明实施例也可以不向触摸设备回传触摸信号,而是以其他方式将触摸信号传输至输入子系统(input_device)进行响应,如信号处理代码241生成触摸信号,向虚拟触摸设备发送所述触摸信号,虚拟触摸设备按照输入子系统243支持的数据编码规范,对接收的触摸信号编码,并向输入子系统243发送,而输入子系统243响应所述虚拟触摸设备编码后的触摸信号,生成对应的触摸事件。In another example, after the operating system 240 generates the touch signal, the embodiment of the present invention may not return the touch signal to the touch device, but transmit the touch signal to the input subsystem (input_device) in other ways to respond, such as a signal The processing code 241 generates a touch signal, and sends the touch signal to the virtual touch device. The virtual touch device encodes the received touch signal according to the data encoding specification supported by the input subsystem 243, and sends it to the input subsystem 243, while the input subsystem 243 encodes the received touch signal. 243 generates a corresponding touch event in response to the touch signal encoded by the virtual touch device.

其中,虚拟触摸设备,是通过软件模拟的具有触摸设备功能、运行在操作系统240中的虚拟设备,开始运行后,可以向输入子系统243预定其之后向输入子系统243传输的信号的数据编码规范,即输入子系统243支持的数据编码规范,所述数据编码规范可以是从标准的数据编码规范提取的有效数据编码规范,也可以是预定的数据编码规范。Among them, the virtual touch device is a virtual device with touch device function simulated by software and running in the operating system 240. After starting to run, the data encoding of the signal transmitted to the input subsystem 243 can be reserved to the input subsystem 243. The specification, that is, the data encoding specification supported by the input subsystem 243, the data encoding specification may be a valid data encoding specification extracted from a standard data encoding specification, or may be a predetermined data encoding specification.

第二种,第一工作模式与第二工作模式对应的触摸分辨率相同,可均以相同的预定触摸分辨率生成触摸信号。但是,按照预定触摸分辨率生成触摸位置数据后,第一工作模式下,操作系统240直接将生成的触摸位置数据作为电磁笔当前的触摸位置数据,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据。Second, the touch resolutions corresponding to the first working mode and the second working mode are the same, and the touch signals can both be generated at the same predetermined touch resolution. However, after the touch position data is generated according to the predetermined touch resolution, in the first working mode, the operating system 240 directly regards the generated touch position data as the current touch position data of the electromagnetic pen, and determines that the touch data including the touch position data is all the touch position data. touch data of the electromagnetic pen.

第二工作模式下,操作系统240生成触摸位置数据后,判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;如果大于,直接将生成的触摸位置数据作为电磁笔当前的触摸位置数据,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据,如果不大于,则舍弃生成的触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值。In the second working mode, after the operating system 240 generates the touch position data, it determines whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; touch position data, determine that the touch data containing the touch position data is the touch data of the electromagnetic pen, if not greater than, discard the generated touch position data, and determine that the touch data of the electromagnetic pen is empty, or determine that the touch data contains The touch data of the previous touch position data is the touch data of the electromagnetic pen. Wherein, the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution.

这里判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值,可以根据当前生成的触摸位置数据与前一次生成的触摸位置数据进行判断,也可以根据摄像头的拍摄时间及拍摄的电磁笔的运动轨迹进行判断,还可以通过其他方式进行判断,在此不再赘述。Here, to determine whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value, the judgment can be made according to the currently generated touch position data and the previously generated touch position data, or according to the shooting time and the shooting time of the camera. The motion trajectory of the electromagnetic pen can be judged, and the judgment can also be made in other ways, which will not be repeated here.

某些场景下,操作系统240在第一工作模式与第二工作模式下的操作,可以由信号处理代码241执行,具体可以参见前述实施例,在此不再赘述。In some scenarios, the operations of the operating system 240 in the first working mode and the second working mode may be performed by the signal processing code 241 . For details, refer to the foregoing embodiments, which will not be repeated here.

生成触摸信号后,操作系统240可以向触摸设备或虚拟触摸设备发送触摸信号,详细过程可以参见前述实施例涉及的内容,在此不再赘述。After the touch signal is generated, the operating system 240 may send the touch signal to the touch device or the virtual touch device. For the detailed process, please refer to the content involved in the foregoing embodiments, which will not be repeated here.

本发明实施例除第一工作模式与第二工作模式除前述两种实现方式外,还可以通过其他方式实现,只要第一工作模式下的触摸精度高于第二工作模式即可,在此不再赘述。In addition to the aforementioned two implementation manners, the embodiments of the present invention may also be implemented in other manners in addition to the first working mode and the second working mode, as long as the touch accuracy in the first working mode is higher than that in the second working mode. Repeat.

由上述实施了可知,操作系统240可以按照不同的工作模式将触感信号转换为触摸信号,回传输至触摸设备或虚拟触摸设备进行后续的触摸响应,在尽可能避免光标抖动的同时,无需触摸设备进行触感信号到触摸信号的转换处理,可以降低对其控制芯片的性能要求,进而可以在触摸设备内采用低性能的芯片作为控制芯片,因此,可以降低触摸设备的成本和体积。It can be seen from the above implementation that the operating system 240 can convert the touch signal into a touch signal according to different working modes, and transmit it back to the touch device or virtual touch device for subsequent touch response, while avoiding the cursor shaking as much as possible, without touching the device. Converting the touch signal to the touch signal can reduce the performance requirements of the control chip, and then a low-performance chip can be used as the control chip in the touch device, so the cost and volume of the touch device can be reduced.

以下结合附图详细介绍下触摸数据的处理过程:The following describes the processing process of the touch data in detail in conjunction with the accompanying drawings:

请参阅图2A,图2A是本发明一示例性实施例示出的触摸数据的处理方法的流程图,包括以下步骤S201-S203:Please refer to FIG. 2A, which is a flowchart of a method for processing touch data according to an exemplary embodiment of the present invention, including the following steps S201-S203:

步骤S201、确定电磁笔当前的状态。Step S201, determining the current state of the electromagnetic pen.

步骤S202、如果为书写状态,按照第一工作模式确定所述电磁笔的触摸数据。Step S202 , if it is in the writing state, determine the touch data of the electromagnetic pen according to the first working mode.

步骤S203、如果为悬浮状态,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。Step S203: If it is in the floating state, determine the touch data of the electromagnetic pen according to the second working mode; the touch accuracy in the second working mode is lower than the touch accuracy in the first working mode.

其中,确定电磁笔当前的状态时,可以根据触控系统中电磁式的触摸传感器,如电磁板接收的电磁信号的频率进行判断,一例子中,可以通过以下操作确定电磁笔所处的状态:Wherein, when determining the current state of the electromagnetic pen, it can be judged according to the electromagnetic touch sensor in the touch system, such as the frequency of the electromagnetic signal received by the electromagnetic board. In one example, the state of the electromagnetic pen can be determined by the following operations:

根据电磁板感测到的电磁信号的频率,确定所述电磁笔当前的状态;Determine the current state of the electromagnetic pen according to the frequency of the electromagnetic signal sensed by the electromagnetic board;

如果所述电磁信号的频率在预定的书写频率范围内,则确定所述电磁笔当前处于书写状态。If the frequency of the electromagnetic signal is within a predetermined writing frequency range, it is determined that the electromagnetic pen is currently in a writing state.

某些场景下,该频率在预定的悬浮频率范围内,可以确定所述电磁笔当前处于预定的悬浮状态。这里提到的书写频率范围与悬浮频率范围由电磁笔内部的配置决定,因电磁笔的配置的不同而不同,可以为任意的频率值,本发明实施例对此不做限制。In some scenarios, if the frequency is within a predetermined suspension frequency range, it can be determined that the electromagnetic pen is currently in a predetermined suspension state. The writing frequency range and the levitation frequency range mentioned here are determined by the internal configuration of the electromagnetic pen, which varies with the configuration of the electromagnetic pen, and can be any frequency value, which is not limited in this embodiment of the present invention.

另一场景下,考虑到需要书写时,用户手持电磁笔接触到屏幕前,一短暂的时间内电磁笔也悬浮于距离屏幕一定范围的空间,电磁信号的频率在预定的悬浮频率范围内。而悬浮的时间较短,出现光标频繁抖动的可能性较低,如果在这短暂的时间内,仅根据电磁板接收的电磁信号的频率将电磁笔的状态确定为预定的悬浮状态,短暂的时间后,又根据电磁板接收的电磁信号的频率将电磁笔的状态确定为书写状态,会引起触摸分辨率的多次切换,造成不必要的资源浪费。In another scenario, considering that when the user needs to write, the electromagnetic pen is also suspended in a space within a certain range from the screen before the user holds the electromagnetic pen in contact with the screen, and the frequency of the electromagnetic signal is within the predetermined suspension frequency range. However, the floating time is short, and the possibility of frequent cursor shaking is low. If in this short period of time, the state of the electromagnetic pen is determined as the predetermined floating state only according to the frequency of the electromagnetic signal received by the electromagnetic board, the short time Then, the state of the electromagnetic pen is determined as the writing state according to the frequency of the electromagnetic signal received by the electromagnetic board, which will cause multiple switching of the touch resolution and cause unnecessary waste of resources.

有鉴于以上情况,本发明实施例,可以根据电磁板接收的电磁信号的频率,持续在预定的悬浮频率范围内的时间来判断电磁笔的状态。如果持续的时间高于或等于第一时间阈值,则确定所述电磁笔当前处于悬浮状态。这里提到的第一时间阈值可以根据实际的场景需求预定,如预定为30ms或其他数值。In view of the above situation, in this embodiment of the present invention, the state of the electromagnetic pen can be judged according to the frequency of the electromagnetic signal received by the electromagnetic board for a period of time within a predetermined suspension frequency range. If the duration is higher than or equal to the first time threshold, it is determined that the electromagnetic pen is currently in a levitating state. The first time threshold mentioned here can be predetermined according to actual scene requirements, such as predetermined as 30ms or other values.

此外,电磁板接收的电磁信号的频率在预定的书写频率范围内,可以确定电磁笔处于书写状态。另外,如果所述电磁信号的频率持续在所述悬浮频率范围内的时间,低于所述第一时间阈值,也可以确定所述电磁笔当前处于书写状态。In addition, if the frequency of the electromagnetic signal received by the electromagnetic board is within a predetermined writing frequency range, it can be determined that the electromagnetic pen is in a writing state. In addition, if the frequency of the electromagnetic signal lasts for a time within the levitation frequency range and is lower than the first time threshold, it may also be determined that the electromagnetic pen is currently in a writing state.

在其他实施例中,除根据电磁板接收的电磁信号的频率,判断电磁笔的状态外,还可以根据预先生成的压感数据,判断电磁笔的状态。此外,如果电磁板本身具有一定的判断能力,还可以由电磁板根据自身感测的频率判断电磁笔的状态,然后告知执行主体进行判断,这里提到的质心主体可是图1A所示的触控处理器122或图1B所示的操作系统240。In other embodiments, in addition to judging the state of the electromagnetic pen according to the frequency of the electromagnetic signal received by the electromagnetic board, the state of the electromagnetic pen may also be judged according to pre-generated pressure-sensitive data. In addition, if the electromagnetic board itself has a certain judgment ability, the electromagnetic board can also judge the state of the electromagnetic pen according to the frequency sensed by itself, and then inform the execution body to make a judgment. The processor 122 or the operating system 240 shown in FIG. 1B.

另外,还可以通过摄像头拍摄的图像判断电磁笔的状态,具体的实现可以通过多种方式,本发明实施例对此不做限制。In addition, the state of the electromagnetic pen can also be determined by using the image captured by the camera, and the specific implementation can be implemented in various ways, which are not limited in this embodiment of the present invention.

实际应用中,书写频率范围与悬浮频率范围,可以对应与触控系统关联的电磁笔预配置,然后对应电磁笔预存至触控系统的存储空间。另一些场景下,可能有两支以上的电磁笔同时在屏幕上操作,如课堂互动教学场景,可能有多个学生需要同时通过同一屏幕答题,因此,本发明实施例也可以针对不同的电磁笔,配置对应不同电磁笔的书写频率范围与悬浮频率范围,以便区分不同电磁笔所处的状态。需要强调的是,对应不同电磁笔预存的不同书写频率范围的交集为空,预存的不同悬浮频率范围的交集也为空,任一书写频率范围与任一悬浮频率范围的交集也为空。确定触摸位置数据时,也针对不同的电磁笔,分别确定不同电磁笔的触摸位置数据。In practical applications, the writing frequency range and the levitation frequency range can be pre-configured corresponding to the electromagnetic pen associated with the touch system, and then pre-stored in the storage space of the touch system corresponding to the electromagnetic pen. In other scenarios, there may be more than two electromagnetic pens operating on the screen at the same time. For example, in a classroom interactive teaching scenario, there may be multiple students who need to answer questions through the same screen at the same time. Therefore, the embodiments of the present invention can also target different electromagnetic pens. , and configure the writing frequency range and suspension frequency range corresponding to different electromagnetic pens, so as to distinguish the states of different electromagnetic pens. It should be emphasized that the intersection of different writing frequency ranges pre-stored corresponding to different electromagnetic pens is empty, the intersection of different pre-stored suspension frequency ranges is also empty, and the intersection of any writing frequency range and any suspension frequency range is also empty. When the touch position data is determined, the touch position data of different electromagnetic pens are also determined respectively for different electromagnetic pens.

如图2B所示,电磁笔A与电磁B分别与触摸设备的显示屏表面接触,处于书写状态,电磁板可以分别接收两支电磁笔发出的电磁信号的频率,然后上报至触摸设备内的触控主板,触控主板搭载有触控系统,有需要时上报至主机设备中的主芯片,主芯片搭载有操作系统。As shown in Figure 2B, the electromagnetic pen A and the electromagnetic B are in contact with the display screen surface of the touch device respectively and are in the writing state. The electromagnetic board can receive the frequencies of the electromagnetic signals sent by the two electromagnetic pens respectively, and then report them to the touch device in the touch device. The touch control board is equipped with a touch control system, which is reported to the main chip in the host device when necessary, and the main chip is equipped with an operating system.

如图2C所示,电磁笔A与电磁B分别悬浮在触摸设备的显示屏表面的上空某处,处于预定的悬浮状态,电磁板可以分别接收两支电磁笔发出的电磁信号的频率,然后上报至触摸设备内的触控主板,触控主板搭载有触控系统,有需要时上报至主机设备中的主芯片,主芯片搭载有操作系统。As shown in Figure 2C, the electromagnetic pen A and the electromagnetic B are suspended somewhere above the display screen surface of the touch device, and are in a predetermined floating state. The electromagnetic board can receive the frequencies of the electromagnetic signals sent by the two electromagnetic pens respectively, and then report To the touch motherboard in the touch device, the touch motherboard is equipped with a touch system, which is reported to the main chip in the host device when necessary, and the main chip is equipped with an operating system.

如前述实施例所述,除根据电磁板感测的电磁信号的频率确定电磁笔的状态后,还可以通过其他方式确定,本发明实施例对此不做限制。As described in the foregoing embodiments, in addition to determining the state of the electromagnetic pen according to the frequency of the electromagnetic signal sensed by the electromagnetic board, the state of the electromagnetic pen may also be determined in other ways, which are not limited in this embodiment of the present invention.

在确定好电磁笔当前所处的状态后,可以按照对应的工作模式确定所述电磁笔的触摸数据。如果为书写状态,按照第一工作模式确定所述电磁笔的触摸数据;如果为悬浮状态,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。这里提到的第一工作模式与第二工作模式可以有多种实现方式,以下列举两种:After the current state of the electromagnetic pen is determined, the touch data of the electromagnetic pen can be determined according to the corresponding working mode. If it is in the writing state, the touch data of the electromagnetic pen is determined according to the first working mode; if it is in the floating state, the touch data of the electromagnetic pen is determined according to the second working mode; the touch accuracy in the second working mode is lower than touch accuracy in the first working mode. The first working mode and the second working mode mentioned here can be implemented in multiple ways, two of which are listed below:

第一种,第一工作模式对应第一触摸分辨率,第二工作模式对应第二触摸分辨率,第二触摸分辨率低于第一触摸分辨率。步骤S201与步骤S202可以通过以下方式实现:In the first type, the first working mode corresponds to the first touch resolution, the second working mode corresponds to the second touch resolution, and the second touch resolution is lower than the first touch resolution. Steps S201 and S202 can be implemented in the following ways:

按照预定的第一触摸分辨率,生成所述触摸数据中的触摸位置数据;generating touch position data in the touch data according to a predetermined first touch resolution;

按照低于所述第一触摸分辨率的第二触摸分辨率,生成所述触摸数据中的触摸位置数据。Touch position data in the touch data is generated according to a second touch resolution lower than the first touch resolution.

需要说明的是,第一触摸分辨率与第二触摸分辨率,类似于屏幕的显示辨率,表示的是,屏幕内触控单元的个数,不同之处在于:第一触摸分辨率的数值大于第二触摸分辨率的数值。这里提到的第一触摸分辨率与第二触摸分辨率,可以根据屏幕所含显示屏(关联的显示屏)的显示分辨率进行设置,如:第一触摸分辨率高于或等于关联的显示屏的分辨率,第二触摸分辨率低于关联的显示屏的分辨率。It should be noted that the first touch resolution and the second touch resolution are similar to the display resolution of the screen, and represent the number of touch units in the screen. The difference is: the value of the first touch resolution A value greater than the second touch resolution. The first touch resolution and second touch resolution mentioned here can be set according to the display resolution of the display screen (associated display screen) included in the screen, for example, the first touch resolution is higher than or equal to the associated display screen The resolution of the second touch screen is lower than the resolution of the associated display screen.

第一触摸分辨率或第二触摸分辨率对应的触控单元,可以由屏幕的显示分辨率及第一触摸分辨率或第二触摸分辨率决定,例如:屏幕的显示分辨率3840×2160,第一触摸分辨率均与显示分辨率相等,为3840×2160,第二触摸分辨率小于显示分辨率,为1920×1080。第一触摸分辨率对应的触控单元为一个像素,第二触摸分辨率对应的触控单元为4个像素。在其他例子中,还可以根据场景需求,将第一触摸分辨率与第二触摸分辨率设置为其他数值,如将第一触摸分辨率设置为2K或4K等,在此不再赘述。The touch unit corresponding to the first touch resolution or the second touch resolution may be determined by the display resolution of the screen and the first touch resolution or the second touch resolution, for example: the display resolution of the screen is 3840×2160, the The first touch resolution is equal to the display resolution, which is 3840×2160, and the second touch resolution is smaller than the display resolution, which is 1920×1080. The touch unit corresponding to the first touch resolution is one pixel, and the touch unit corresponding to the second touch resolution is 4 pixels. In other examples, the first touch resolution and the second touch resolution may also be set to other values according to scene requirements, such as setting the first touch resolution to 2K or 4K, etc., which will not be repeated here.

针对上述第一触摸分辨率与第二触摸分辨率,具体确定触摸位置数据时,如果电磁笔当前处于书写状态,首先根据电磁板感测的磁通变化量,确定引起磁通量变化的位置点,如果该位置点与前一次确定的位置点的距离,小于或等于第一触摸分辨率对应的触控单元,则确定本次位置点的坐标与前一次确定的位置点的坐标一致,可以用前一次确定的位置点的坐标表示本次的触摸位置数据;如果大于第一触摸分辨率对应的触控单元,可以用本次位置点的坐标表示本次的触摸位置数据。Regarding the above-mentioned first touch resolution and second touch resolution, when specifically determining the touch position data, if the electromagnetic pen is currently in the writing state, first determine the position point that causes the magnetic flux change according to the magnetic flux change sensed by the electromagnetic board. The distance between the position point and the previously determined position point is less than or equal to the touch unit corresponding to the first touch resolution, then it is determined that the coordinates of the current position point are consistent with the coordinates of the previously determined position point, and the previous one can be used. The coordinates of the determined position point represent the current touch position data; if it is larger than the touch unit corresponding to the first touch resolution, the coordinates of the current position point can be used to represent the current touch position data.

如果电磁笔当前处于预定的悬浮状态,首先根据电磁板感测的磁通变化量,引起磁通量变化的位置点,如果该位置点与前一次确定的位置点的距离,小于或等于第二触摸分辨率对应的触控单元,则确定本次位置点的坐标与前一次确定的位置点的坐标一致,可以用前一次确定的位置点的坐标表示本次的触摸位置数据,确定好触摸位置数据后生成触摸数据并上报;或者,放弃生成本次的触摸位置数据或触摸数据,或者放弃上报生成的触摸数据。If the electromagnetic pen is currently in a predetermined floating state, first, according to the magnetic flux change sensed by the electromagnetic board, the position point that causes the magnetic flux change, if the distance between the position point and the previously determined position point is less than or equal to the second touch resolution If the touch unit corresponding to the rate is selected, then it is determined that the coordinates of the current location point are consistent with the coordinates of the previously determined location point, and the coordinates of the previously determined location point can be used to represent the current touch location data. After the touch location data is determined Generate touch data and report it; or, give up generating the current touch position data or touch data, or give up reporting the generated touch data.

如果大于第二触摸分辨率对应的触控单元,可以用本次位置点的坐标表示本次的触摸位置数据,确定好触摸位置数据后生成触摸数据并上报。If it is larger than the touch unit corresponding to the second touch resolution, the current touch position data can be represented by the coordinates of the current position point, and the touch data is generated and reported after the touch position data is determined.

另外,第一种实现方式下,触摸数据的处理方法可以应用在触控系统或操作系统,由不同的执行主体执行,一例子中,本发明的方法应用于触摸设备搭载的触控系统,还可以包括以下步骤:In addition, in the first implementation manner, the method for processing touch data can be applied to a touch control system or an operating system and executed by different execution subjects. In one example, the method of the present invention is applied to a touch control system mounted on a touch device, and further The following steps can be included:

生成包含所述触摸位置数据的触摸数据,并向操作系统发送,以便进行触摸响应。Touch data containing the touch location data is generated and sent to the operating system for touch response.

某些场景下具体可以参见图1A涉及的实施例,在此不再赘述。In some scenarios, specific reference may be made to the embodiment involved in FIG. 1A , which will not be repeated here.

另一例子中,本发明的方法应用于操作系统,还可以包括以下步骤:In another example, the method of the present invention is applied to an operating system, and may further include the following steps:

生成所述触摸数据中的触摸位置数据前,接收关联的触摸设备发送的所述电磁笔触发的触感信号;Before generating the touch position data in the touch data, receive a touch signal triggered by the electromagnetic pen sent by the associated touch device;

在生成所述触摸数据中的触摸位置数据后,生成包含所述触摸位置数据的触摸数据;after generating touch position data in the touch data, generating touch data including the touch position data;

向所述触摸设备或向虚拟触摸设备发送所述触摸信号,以便进行触摸响应。The touch signal is sent to the touch device or to a virtual touch device for a touch response.

某些场景下具体可以参见图1B涉及的实施例,在此不再赘述。In some scenarios, specific reference may be made to the embodiment involved in FIG. 1B , which will not be repeated here.

第二种,第一工作模式与第二工作模式对应的触摸分辨率相同,可以按照相同的预定触摸分辨率生成触摸位置数据。这里提到的预定触摸分辨率可以均为前述第一触摸分辨率,或其他数值的触摸分辨率,在此不再赘述。Second, the touch resolutions corresponding to the first working mode and the second working mode are the same, and the touch position data can be generated according to the same predetermined touch resolution. The predetermined touch resolutions mentioned here may all be the aforementioned first touch resolutions, or touch resolutions of other values, which will not be repeated here.

但是,按照预定触摸分辨率生成触摸位置数据后,第一工作模式下直接将生成的触摸位置数据作为电磁笔当前的触摸位置数据,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据。However, after the touch position data is generated according to the predetermined touch resolution, in the first working mode, the generated touch position data is directly used as the current touch position data of the electromagnetic pen, and the touch data including the touch position data is determined as the touch position data of the electromagnetic pen. Touch Data.

第二工作模式下,生成触摸位置数据后,判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;如果大于,直接将生成的触摸位置数据作为电磁笔当前的触摸位置数据,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据,如果不大于,则舍弃生成的触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值。In the second working mode, after the touch position data is generated, it is judged whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; if it is greater, the generated touch position data is directly used as the current touch position data of the electromagnetic pen , determine that the touch data containing the touch position data is the touch data of the electromagnetic pen, if not greater than, discard the generated touch position data, determine that the touch data of the electromagnetic pen is empty, or determine that the touch data contains the previous touch The touch data of the position data is the touch data of the electromagnetic pen. Wherein, the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution.

一例子中,在步骤S201后,本发明的方法还包括以下步骤:In an example, after step S201, the method of the present invention further includes the following steps:

按照预定触摸分辨率,生成所述电磁笔的触摸位置数据。具体可以参见前述实施例涉及的内容,在此不再赘述。According to a predetermined touch resolution, the touch position data of the electromagnetic pen is generated. For details, reference may be made to the content involved in the foregoing embodiments, which will not be repeated here.

可以通过以下操作按照第一工作模式确定所述电磁笔的触摸数据:The touch data of the electromagnetic pen can be determined according to the first working mode through the following operations:

确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;determining that the touch data including the touch position data is the touch data of the electromagnetic pen;

可以通过以下操作按照第二工作模式确定所述电磁笔的触摸数据:The touch data of the electromagnetic pen may be determined according to the second working mode by the following operations:

判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值;Determine whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; wherein, the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution;

如果大于,则确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;If it is greater than, determining that the touch data including the touch position data is the touch data of the electromagnetic pen;

如果不大于,则舍弃所述触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。If it is not greater than the value, the touch position data is discarded, the touch data of the electromagnetic pen is determined to be empty, or the touch data including the previous touch position data is determined to be the touch data of the electromagnetic pen.

其中,这里判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值,可以根据当前生成的触摸位置数据与前一次生成的触摸位置数据进行判断,也可以根据摄像头的拍摄时间及拍摄的电磁笔的运动轨迹进行判断,还可以通过其他方式进行判断,在此不再赘述。Wherein, to determine whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value, the judgment can be made according to the currently generated touch position data and the previously generated touch position data, or it can be judged according to the shooting time of the camera and the The motion trajectory of the photographed electromagnetic pen can also be judged by other means, which will not be repeated here.

另外,第二种实现方式下,触摸数据的处理方法可以应用在触控系统或操作系统,由不同的执行主体执行,一例子中,本发明的方法应用于触摸设备搭载的触控系统,还可以包括以下步骤:In addition, in the second implementation manner, the method for processing touch data can be applied to a touch control system or an operating system and executed by different execution subjects. The following steps can be included:

向操作系统发送所述电磁笔的触摸数据,以便进行触摸响应。Send the touch data of the electromagnetic pen to the operating system for touch response.

某些场景下具体可以参见图1A涉及的实施例,在此不再赘述。In some scenarios, specific reference may be made to the embodiment involved in FIG. 1A , which will not be repeated here.

另一例子中,本发明的方法应用于操作系统,还可以包括以下步骤:In another example, the method of the present invention is applied to an operating system, and may further include the following steps:

确定电磁笔当前的状态前,接收关联的触摸设备发送的所述电磁笔触发的触感信号;Before determining the current state of the electromagnetic pen, receive a touch signal triggered by the electromagnetic pen sent by the associated touch device;

确定所述电磁笔的触摸数据后,向所述触摸设备或虚拟触摸设备发送所述触摸数据,以便进行触摸响应。After the touch data of the electromagnetic pen is determined, the touch data is sent to the touch device or the virtual touch device so as to perform a touch response.

某些场景下具体可以参见图1B涉及的实施例,在此不再赘述。In some scenarios, specific reference may be made to the embodiment involved in FIG. 1B , which will not be repeated here.

在其他实施例中,第一工作模式与第二工作模式除前述两种实现方式外,还可以通过其他方式实现,只要第一工作模式下的触摸精度高于第二工作模式即可,具体实现方式在此不再赘述。In other embodiments, the first working mode and the second working mode can be implemented in other ways besides the aforementioned two implementations, as long as the touch accuracy in the first working mode is higher than that in the second working mode. The method will not be repeated here.

由上述实施例可知,本发明通过判断电磁笔当前的状态,可以在电磁笔处于书写状态时,按照第一工作模式确定所述电磁笔的触摸数据;在电磁笔处于悬浮状态时,按照第二工作模式确定所述电磁笔的触摸数据,确定出的触摸位置对应的触摸精度,低于书写状态时第一工作模式下的触摸精度,这样就可以减少光标位置的变化频率,进而尽可能减少光标的频繁抖动,避免不必要的资源消耗。It can be seen from the above embodiment that the present invention can determine the touch data of the electromagnetic pen according to the first working mode when the electromagnetic pen is in the writing state by judging the current state of the electromagnetic pen; when the electromagnetic pen is in the floating state, according to the second operation mode. The working mode determines the touch data of the electromagnetic pen, and the touch accuracy corresponding to the determined touch position is lower than the touch accuracy in the first working mode in the writing state, so that the frequency of changes in the cursor position can be reduced, thereby reducing the cursor position as much as possible. frequent jitter to avoid unnecessary resource consumption.

以下结合具体的示例,介绍下本发明的触摸数据的处理过程:The following describes the touch data processing process of the present invention in conjunction with specific examples:

请参阅图3A,图3A是本发明另一示例性实施例示出的触摸数据的处理方法的流程图,该实施例应用于触控系统,按照第一工作模式与第二工作模式的第一种实现方式,可以包括以下步骤S301-S304:Please refer to FIG. 3A. FIG. 3A is a flowchart of a method for processing touch data according to another exemplary embodiment of the present invention. This embodiment is applied to a touch control system. The implementation may include the following steps S301-S304:

步骤S301、确定电磁笔当前的状态。Step S301 , determining the current state of the electromagnetic pen.

步骤S302、如果为书写状态,按照预定的第一触摸分辨率确定所述电磁笔的触摸位置数据。Step S302: If it is in the writing state, determine the touch position data of the electromagnetic pen according to the predetermined first touch resolution.

步骤S303、如果为悬浮状态,按照低于所述第一触摸分辨率的第二触摸分辨率确定所述电磁笔的触摸位置数据。Step S303: If it is in a floating state, determine the touch position data of the electromagnetic pen according to a second touch resolution lower than the first touch resolution.

步骤S304、生成包含所确定的触摸位置数据的触摸数据,并向操作系统发送。Step S304: Generate touch data including the determined touch position data, and send it to the operating system.

本发明实施例的触控系统可以参见图1A涉及的实施例中的技术内容,本发明实施例的步骤S301至步骤S304,可以参照前述图1A及图2A至图2C涉及的实施例中的技术内容,在此不再赘述。For the touch control system in the embodiment of the present invention, reference may be made to the technical content in the embodiment involved in FIG. 1A , and for steps S301 to S304 in the embodiment of the present invention, reference may be made to the technology in the embodiment involved in the foregoing FIG. 1A and FIG. 2A to FIG. 2C . The content will not be repeated here.

由本实施例可知,本发明可以在电磁笔当前处于书写状态时,按照预定的第一触摸分辨率确定电磁笔的触摸位置数据;在电磁笔当前处于预定的悬浮状态,按照低于第一触摸分辨率的第二触摸分辨率确定电磁笔的触摸位置数据;进而生成包含所确定的触摸位置数据的触摸数据,并向操作系统发送后,可以在电磁笔处于书写状态时,以高触摸分辨率实现精细书写,在电磁笔处于预定的悬浮状态时,以低触摸分辨率降低上报的触控位置的变化频率,减少光标位置的变化频率,尽可能减少光标的频繁抖动,避免不必要的资源消耗。It can be seen from this embodiment that the present invention can determine the touch position data of the electromagnetic pen according to the predetermined first touch resolution when the electromagnetic pen is currently in the writing state; The touch position data of the electromagnetic pen is determined by the second touch resolution of the high rate; then the touch data including the determined touch position data is generated and sent to the operating system, which can be realized with a high touch resolution when the electromagnetic pen is in the writing state. For fine writing, when the electromagnetic pen is in a predetermined floating state, the reported touch position change frequency is reduced with a low touch resolution, the change frequency of the cursor position is reduced, the frequent shaking of the cursor is minimized, and unnecessary resource consumption is avoided.

以下按照第一工作模式与第二工作模式的第一种实现方式,以计算机设备为智能交互平板为例,介绍下触摸数据的处理系统:In the following, according to the first implementation mode of the first working mode and the second working mode, taking the computer device as an intelligent interactive tablet as an example, the processing system of touch data is introduced:

请参阅图3B,图3B所示处理系统应用于智能交互平板300,包括触控系统以及主机设备,触控系统运行于智能交互平板300的触摸设备312内,可以包括电磁板3121和触控主板3122,触控主板3122上集成有触控处理器;主机设备包括智能交互平板300的主芯片311、MCU313及USB切换开关314,主芯片311搭载有安卓系统(Android系统,主操作系统),分别连接触摸设备312与MCU313。Please refer to FIG. 3B . The processing system shown in FIG. 3B is applied to the smart interactive tablet 300 and includes a touch control system and a host device. The touch control system runs in the touch device 312 of the smart interactive tablet 300 and may include an electromagnetic plate 3121 and a touch control motherboard. 3122, a touch processor is integrated on the touch motherboard 3122; the host device includes a main chip 311, an MCU 313 and a USB switch 314 of the intelligent interactive tablet 300, and the main chip 311 is equipped with an Android system (Android system, main operating system), respectively. Connect the touch device 312 and the MCU 313 .

实际应用中,触控主板3122按照与电磁笔的当前状态对应的触摸分辨率,确定触摸位置数据,并生成包含所确定的触摸位置数据的触摸数据后,上报至主芯片311,由主芯片311的操作系统接收触摸数据,并触发所述触摸数据的响应操作。In practical applications, the touch motherboard 3122 determines the touch position data according to the touch resolution corresponding to the current state of the electromagnetic pen, generates touch data including the determined touch position data, and reports it to the main chip 311 , and the main chip 311 generates touch data including the determined touch position data. The operating system receives touch data and triggers a response operation to the touch data.

一例子中,MCU313通过USB切换开关314与内置安卓模块320、内置PC模块330连接。In one example, the MCU 313 is connected to the built-in Android module 320 and the built-in PC module 330 through the USB switch 314 .

另一例子中,智能交互平板300还可以通过MCU313和USB切换开关314,与至少一个外置安卓/PC模块400连接。其中,外置安卓/PC模块400,包括但不限于:智能手机、USB闪存盘、手提电脑、台式电脑、平板电脑、个人数字助理(PDA)等。In another example, the intelligent interactive tablet 300 can also be connected to at least one external Android/PC module 400 through the MCU 313 and the USB switch 314 . The external Android/PC module 400 includes, but is not limited to, a smart phone, a USB flash drive, a laptop computer, a desktop computer, a tablet computer, a personal digital assistant (PDA), and the like.

外置安卓/PC模块400与智能交互平板300的数据连接的通信方式,包括但不限于USB连接、互联网、局域网、蓝牙、Wi-Fi或紫峰协议(ZigBee)等通信方式,本发明实施例中不作限定。The communication mode of the data connection between the external Android/PC module 400 and the intelligent interactive tablet 300, including but not limited to communication modes such as USB connection, Internet, local area network, Bluetooth, Wi-Fi or ZigBee protocol (ZigBee), in the embodiment of the present invention Not limited.

进一步的,至少一个外置安卓/PC模块400与智能交互平板300发生数据交互时,向智能交互平板300发送投屏数据以使智能交互平板300对投屏数据的投屏内容进行显示,外置安卓/PC模块400装有投屏客户端,一般而言,投屏客户端可以有一个或者多个,视具体的应用场景来设置,实施例不做限定。Further, when at least one external Android/PC module 400 interacts with the smart interactive tablet 300, it sends screen projection data to the smart interactive tablet 300 so that the smart interactive tablet 300 can display the projected screen content of the projected screen data, and the external The Android/PC module 400 is equipped with a screen-casting client. Generally speaking, there may be one or more screen-casting clients, which are set according to specific application scenarios, and the embodiment is not limited.

在其他实施例中,本发明实施例涉及的智能交互平板300,可以是集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能的一体化设备。In other embodiments, the intelligent interactive tablet 300 involved in the embodiments of the present invention may be an integrated device integrating one or more functions such as a projector, an electronic whiteboard, a screen, an audio system, a TV, and a video conference terminal.

请参阅图4,图4是本发明另一示例性实施例示出的触摸数据的处理方法的流程图,该实施例应用于操作系统,按照第一工作模式与第二工作模式的第一种实现方式,可以包括以下步骤S401-S406:Please refer to FIG. 4. FIG. 4 is a flowchart of a method for processing touch data according to another exemplary embodiment of the present invention. This embodiment is applied to an operating system and is implemented according to the first working mode and the second working mode. way, may include the following steps S401-S406:

步骤S401、接收关联的触摸设备发送的所述电磁笔触发的触感信号。Step S401: Receive a touch signal triggered by the electromagnetic pen sent by an associated touch device.

步骤S402、确定电磁笔当前的状态。Step S402, determining the current state of the electromagnetic pen.

步骤S403、如果为书写状态,按照预定的第一触摸分辨率确定所述电磁笔的触摸位置数据。Step S403: If it is in the writing state, determine the touch position data of the electromagnetic pen according to the predetermined first touch resolution.

步骤S404、如果为悬浮状态,按照低于所述第一触摸分辨率的第二触摸分辨率确定所述电磁笔的触摸位置数据。Step S404: If it is in a floating state, determine the touch position data of the electromagnetic pen according to a second touch resolution lower than the first touch resolution.

步骤S405、生成包含所述触摸位置数据的触摸数据。Step S405 , generating touch data including the touch position data.

步骤S406、向所述触摸设备或向虚拟触摸设备发送所述触摸信号,以便进行触摸响应。Step S406: Send the touch signal to the touch device or to the virtual touch device so as to perform a touch response.

本发明实施例的操作系统可以参见图1B涉及的实施例中的技术内容,本发明实施例的步骤S401至步骤S406,可以参照前述图1B及图2A至图2C涉及的实施例中的技术内容,在此不再赘述。For the operating system of the embodiment of the present invention, reference may be made to the technical content in the embodiment involved in FIG. 1B , and for steps S401 to S406 in this embodiment of the present invention, reference may be made to the technical content of the embodiment involved in the foregoing FIG. 1B and FIG. 2A to FIG. 2C , and will not be repeated here.

由本实施例可知,本发明可以在电磁笔当前处于书写状态时,按照预定的第一触摸分辨率确定电磁笔的触摸位置数据;在电磁笔当前处于预定的悬浮状态,按照低于第一触摸分辨率的第二触摸分辨率确定电磁笔的触摸位置数据;进而生成包含所确定的触摸位置数据的触摸数据,回传输至触摸设备或虚拟触摸设备进行后续的触摸响应,可以在电磁笔处于书写状态时,以高触摸分辨率实现精细书写,在电磁笔处于预定的悬浮状态时,以低触摸分辨率降低上报的触控位置的变化频率,减少光标位置的变化频率,尽可能减少光标的频繁抖动,避免不必要的资源消耗。同时,在尽可能避免光标抖动的同时,无需触摸设备进行触感信号到触摸信号的转换处理,可以降低对其控制芯片的性能要求,进而可以在触摸设备内采用低性能的芯片作为控制芯片,因此,可以降低触摸设备的成本和体积。It can be seen from this embodiment that the present invention can determine the touch position data of the electromagnetic pen according to the predetermined first touch resolution when the electromagnetic pen is currently in the writing state; Determine the touch position data of the electromagnetic pen at the second touch resolution of the rate; and then generate touch data including the determined touch position data, and transmit it back to the touch device or virtual touch device for subsequent touch response, which can be done when the electromagnetic pen is in the writing state. When the touch resolution is high, fine writing is achieved. When the electromagnetic pen is in a predetermined floating state, the frequency of change of the reported touch position is reduced with a low touch resolution, the frequency of change of the cursor position is reduced, and the frequent shaking of the cursor is minimized. , to avoid unnecessary resource consumption. At the same time, while avoiding the cursor jitter as much as possible, the touch device does not need to convert the touch signal to the touch signal, which can reduce the performance requirements of its control chip, and then a low-performance chip can be used as the control chip in the touch device. Therefore, , which can reduce the cost and volume of touch devices.

与前述方法的实施例相对应,本发明还提供了装置的实施例。Corresponding to the foregoing method embodiments, the present invention also provides device embodiments.

参见图5,图5是本发明一示例性实施例示出的触摸数据的处理装置的框图,该装置可以包括:状态确定模块510、位置确定模块520和数据发送模块530。Referring to FIG. 5 , FIG. 5 is a block diagram of an apparatus for processing touch data according to an exemplary embodiment of the present invention. The apparatus may include: a state determination module 510 , a position determination module 520 and a data transmission module 530 .

其中,状态确定模块510,用于确定电磁笔当前的状态。The state determination module 510 is used to determine the current state of the electromagnetic pen.

第一触摸模块520,用于在书写状态时,按照第一工作模式确定所述电磁笔的触摸数据。The first touch module 520 is configured to determine the touch data of the electromagnetic pen according to the first working mode in the writing state.

第二触摸模块530,用于在悬浮状态时,按照第二工作模式确定所述电磁笔的触摸数据;所述第二工作模式下的触摸精度低于所述第一工作模式下的触摸精度。The second touch module 530 is configured to determine the touch data of the electromagnetic pen according to the second working mode in the floating state; the touch accuracy in the second working mode is lower than that in the first working mode.

一例子中,第一触摸模块520还可以用于:In an example, the first touch module 520 can also be used for:

按照预定的第一触摸分辨率,生成所述触摸数据中的触摸位置数据;generating touch position data in the touch data according to a predetermined first touch resolution;

第二触摸模块530还可以用于:The second touch module 530 can also be used for:

按照低于所述第一触摸分辨率的第二触摸分辨率,生成所述触摸数据中的触摸位置数据。Touch position data in the touch data is generated according to a second touch resolution lower than the first touch resolution.

作为例子,本发明装置可以应用于触摸设备搭载的触控系统,还包括:As an example, the device of the present invention can be applied to a touch system mounted on a touch device, and further includes:

触摸数据发送模块,用于向操作系统发送触摸信号,以便进行触摸响应。The touch data sending module is used for sending touch signals to the operating system for touch response.

作为例子,本发明装置可以应用于操作系统,还可以包括:As an example, the device of the present invention can be applied to an operating system, and can also include:

触感信号接收模块,用于接收关联的触摸设备发送的所述电磁笔触发的触感信号;a tactile signal receiving module, configured to receive a tactile signal triggered by the electromagnetic pen sent by the associated touch device;

触摸数据生成模块,用于生成包含所述触摸位置数据的触摸数据;a touch data generation module for generating touch data including the touch position data;

触摸数据发送模块,用于向所述触摸设备或向虚拟触摸设备发送所述触摸信号,以便进行触摸响应。The touch data sending module is used for sending the touch signal to the touch device or to the virtual touch device so as to perform a touch response.

作为例子,所述第一触摸分辨率高于或等于关联的显示屏的分辨率;As an example, the first touch resolution is higher than or equal to the resolution of the associated display screen;

所述第二触摸分辨率低于关联的显示屏的分辨率。The second touch resolution is lower than the resolution of the associated display screen.

另一例子中,本发明的装置还可以包括:In another example, the device of the present invention may further include:

位置数据确定模块,用于按照预定触摸分辨率,生成所述电磁笔的触摸位置数据;a position data determination module, configured to generate touch position data of the electromagnetic pen according to a predetermined touch resolution;

第一触摸模块520可以包括:The first touch module 520 may include:

第一触摸子模块,用于确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;a first touch sub-module, configured to determine that the touch data including the touch position data is the touch data of the electromagnetic pen;

第二触摸模块530可以包括:The second touch module 530 may include:

距离判断模块,用于判断所述电磁笔的当前位置与其前一位置的距离是否大于预定距离值;其中,所述预定距离值大于或等于所述预定触摸分辨率下相邻触摸单元的距离值;A distance judgment module for judging whether the distance between the current position of the electromagnetic pen and its previous position is greater than a predetermined distance value; wherein the predetermined distance value is greater than or equal to the distance value of adjacent touch units under the predetermined touch resolution ;

第二触摸子模块,用于在大于时,确定包含所述触摸位置数据的触摸数据为所述电磁笔的触摸数据;a second touch sub-module, configured to determine that the touch data including the touch position data is the touch data of the electromagnetic pen when the value is greater than that;

第三触摸子模块,用于在不大于时,舍弃所述触摸位置数据,确定所述电磁笔的触摸数据为空,或者,确定包含前一触摸位置数据的触摸数据为所述电磁笔的触摸数据。The third touch sub-module is configured to discard the touch position data when not greater than the touch position data, determine that the touch data of the electromagnetic pen is empty, or determine that the touch data including the previous touch position data is the touch of the electromagnetic pen data.

作为例子,本发明装置可以应用于触摸设备搭载的触控系统,还包括:As an example, the device of the present invention can be applied to a touch system mounted on a touch device, and further includes:

触摸数据发送模块,用于向操作系统发送所述电磁笔的触摸数据,以便进行触摸响应。The touch data sending module is used for sending the touch data of the electromagnetic pen to the operating system so as to perform touch response.

作为例子,本发明装置可以应用于操作系统,还可以包括:As an example, the device of the present invention can be applied to an operating system, and can also include:

触感信号接收模块,用于接收关联的触摸设备发送的所述电磁笔触发的触感信号;a tactile signal receiving module, configured to receive a tactile signal triggered by the electromagnetic pen sent by the associated touch device;

触摸数据发送模块,用于向所述触摸设备或向虚拟触摸设备发送所述触摸信号,以便进行触摸响应。The touch data sending module is used for sending the touch signal to the touch device or to the virtual touch device so as to perform a touch response.

另一例子中,状态确定模块510可以被配置为:In another example, the state determination module 510 can be configured to:

根据电磁板感测到的电磁信号的频率,确定所述电磁笔当前的状态;Determine the current state of the electromagnetic pen according to the frequency of the electromagnetic signal sensed by the electromagnetic board;

在所述电磁信号的频率在预定的书写频率范围内时,确定所述电磁笔当前处于书写状态。When the frequency of the electromagnetic signal is within a predetermined writing frequency range, it is determined that the electromagnetic pen is currently in a writing state.

作为例子,状态确定模块510还可以被配置为:As an example, state determination module 510 may also be configured to:

在所述电磁信号的频率持续在预定的悬浮频率范围内的时间,高于或等于第一时间阈值时,确定所述电磁笔当前处于预定的悬浮状态。When the frequency of the electromagnetic signal lasts within a predetermined suspension frequency range for a time higher than or equal to a first time threshold, it is determined that the electromagnetic pen is currently in a predetermined suspension state.

作为例子,状态确定模块510还可以被配置为:As an example, state determination module 510 may also be configured to:

在所述电磁信号的频率持续在所述悬浮频率范围内的时间,低于所述第一时间阈值,且切换至所述书写频率范围内时,确定所述电磁笔当前处于书写状态。When the frequency of the electromagnetic signal lasts within the levitation frequency range and is lower than the first time threshold and is switched to within the writing frequency range, it is determined that the electromagnetic pen is currently in a writing state.

作为例子,对应不同电磁笔预存有交集为空的不同书写频率范围,及交集为空的不同悬浮频率范围。As an example, corresponding to different electromagnetic pens, different writing frequency ranges with an empty intersection and different suspension frequency ranges with an empty intersection are pre-stored.

另一例子中,所述第一触摸分辨率高于或等于关联的显示屏的分辨率;In another example, the first touch resolution is higher than or equal to the resolution of the associated display screen;

所述第二触摸分辨率低于关联的显示屏的分辨率。The second touch resolution is lower than the resolution of the associated display screen.

上述装置中各个单元(或模块)的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of each unit (or module) in the above-mentioned apparatus, please refer to the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元或模块可以是或者也可以不是物理上分开的,作为单元或模块显示的部件可以是或者也可以不是物理单元或模块,即可以位于一个地方,或者也可以分布到多个网络单元或模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the apparatus embodiments, since they basically correspond to the method embodiments, reference may be made to the partial descriptions of the method embodiments for related parts. The device embodiments described above are only illustrative, wherein the units or modules described as separate components may or may not be physically separated, and components shown as units or modules may or may not be physical units Or modules, which can be located in one place, or can be distributed over multiple network units or modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. Those of ordinary skill in the art can understand and implement it without creative effort.

本发明触摸数据的处理装置的实施例可以应用在计算机设备上。具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现中,计算机设备的具体形式可以是具有电磁式触摸屏的个人计算机、膝上型计算机、智能电话、个人数字助理、媒体播放器、导航设备、智能交互平板、电子邮件收发设备、游戏控制台、平板计算机、互联网电视、智能机车、无人驾驶汽车、智能冰箱、其他智能家居设备或者这些设备中的任意几种设备的组合。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在计算机设备的处理器将非易失性存储器等可读介质中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图6所示,为本发明触摸数据的处理装置所在计算机设备的一种硬件结构图,包括电磁式触摸屏及触控系统,触控系统除了图6所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的电子设备通常根据该电子设备的实际功能,还可以包括其他硬件,对此不再赘述。存储器可以存储处理器可执行的程序指令;处理器可以耦合存储器,用于读取所述存储器存储的程序指令,并作为响应,执行如上触摸数据的处理方法中的操作。The embodiments of the touch data processing apparatus of the present invention can be applied to computer equipment. Specifically, it can be implemented by a computer chip or an entity, or by a product with a certain function. In a typical implementation, the specific form of the computer device may be a personal computer with an electromagnetic touch screen, a laptop computer, a smart phone, a personal digital assistant, a media player, a navigation device, an intelligent interactive tablet, an email sending and receiving device, Game consoles, tablets, Internet TVs, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or a combination of any of these devices. The apparatus embodiment may be implemented by software, or may be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, a device in a logical sense is formed by reading the corresponding computer program instructions in a readable medium such as a non-volatile memory into the memory through the processor of the computer device where it is located. From the perspective of hardware, as shown in FIG. 6 , it is a hardware structure diagram of the computer equipment where the touch data processing device of the present invention is located, including an electromagnetic touch screen and a touch control system. The touch control system is in addition to the processor shown in FIG. 6 . , memory, network interface, and non-volatile memory, the electronic device in which the apparatus in the embodiment is located usually may also include other hardware according to the actual function of the electronic device, which will not be repeated here. The memory may store program instructions executable by the processor; the processor may be coupled to the memory for reading the program instructions stored in the memory, and in response, performing the operations in the above method for processing touch data.

一例子中,触摸数据的处理方法应用于触摸设备搭载的触控系统时,所述计算机设备为触摸设备。In one example, when the method for processing touch data is applied to a touch control system mounted on a touch device, the computer device is a touch device.

另一例中,触摸数据的处理方法应用于操作系统时,所述计算机设备为触摸设备对接的主机设备,且搭载有所述操作系统。In another example, when the method for processing touch data is applied to an operating system, the computer device is a host device to which the touch device is docked, and is equipped with the operating system.

另一例子中,所述触控系统还包括电磁板,所述电磁板用于感应所述电磁笔发射的电磁信号及磁通量的变化。In another example, the touch control system further includes an electromagnetic board, and the electromagnetic board is used for sensing changes in electromagnetic signals and magnetic fluxes emitted by the electromagnetic pen.

另一例子中,所述触控系统还包括触控主板,所述处理器集成于所述触控主板上。In another example, the touch control system further includes a touch control board, and the processor is integrated on the touch control board.

另一例子中,所述计算机设备为智能交互平板,所述智能交互平板包括搭载有Android系统的主芯片,所述处理器与所述主芯片连接。In another example, the computer device is an intelligent interactive tablet, the intelligent interactive tablet includes a main chip equipped with an Android system, and the processor is connected to the main chip.

在其他实施例中,处理器所执行的操作可以参考上文触摸数据的处理方法实施例中相关的描述,在此不予赘述。In other embodiments, for the operations performed by the processor, reference may be made to the relevant descriptions in the above embodiments of the method for processing touch data, which will not be repeated here.

此外,本发明实施例还提供一种机器可读存储介质(电子设备的存储器),所述可读存储介质中存储有程序指令,所述程序指令包括以上实施例提到的触摸数据的处理方法的各步骤对应的指令。当由一个或多个处理器执行时,使得处理器执行以上实施例提到的触摸数据的处理方法中的操作。In addition, embodiments of the present invention further provide a machine-readable storage medium (memory of an electronic device), where program instructions are stored in the readable storage medium, and the program instructions include the touch data processing method mentioned in the above embodiments instructions corresponding to each step. When executed by one or more processors, the processors are caused to perform the operations in the methods for processing touch data mentioned in the above embodiments.

本发明实施例可采用在一个或多个其中包含有程序代码的可读存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用可读存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。机器可读存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Embodiments of the present invention may take the form of a computer program product embodied on one or more readable storage media having program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like. Computer-usable readable storage media includes both persistent and non-permanent, removable and non-removable media, and storage of information can be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of machine-readable storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage , magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (19)

1. a kind of processing method of touch data characterized by comprising
Determine the current state of time writer;
If it is the state of writing, the touch data of the time writer is determined according to the first operating mode;
If it is suspended state, the touch data of the time writer is determined according to the second operating mode;Second operating mode Under touch precision lower than the touch precision under first operating mode.
2. the method according to claim 1, wherein determining the touch of the time writer according to the first operating mode Data, comprising:
According to scheduled first touch resolution ratio, the touch position data in the touch data is generated;
The touch data of the time writer is determined according to the second operating mode, comprising:
According to the second touch resolution ratio for being lower than first touch resolution ratio, the touch location number in the touch data is generated According to.
3. according to the method described in claim 2, it is characterized in that, the method is applied to the touch-control system that touch apparatus carries System, further comprising the steps of:
The touch data comprising the touch position data is generated, and is sent to operating system, to carry out touch-responsive.
4. according to the method described in claim 2, it is characterized in that, the method further includes following step applied to operating system It is rapid:
Before determining the current state of time writer, the tactile signals for the time writer triggering that associated touch apparatus is sent are received;
After generating the touch position data in the touch data, the touch data comprising the touch position data is generated;
The touch signal is sent to the touch apparatus or to virtual touch equipment, to carry out touch-responsive.
5. according to the method described in claim 2, it is characterized by:
First touch resolution ratio is greater than or equal to the resolution ratio of associated display screen;
Second touch resolution ratio is lower than the resolution ratio of associated display screen.
6. the method according to claim 1, wherein the method also includes following steps:
According to predetermined touch resolution ratio, the touch position data of the time writer is generated;
The touch data of the time writer is determined according to the first operating mode, comprising:
Determine that the touch data comprising the touch position data is the touch data of the time writer;
The touch data of the time writer is determined according to the second operating mode, comprising:
Judge whether the current location of the time writer is greater than preset distance value at a distance from its prior location;Wherein, described pre- Set a distance value is greater than or equal to the distance value of adjacent touch unit under the predetermined touch resolution ratio;
If it is greater, then determining that the touch data comprising the touch position data is the touch data of the time writer;
If it is not greater, then giving up the touch position data, the touch data of the time writer is determined for sky, alternatively, determining Touch data comprising previous touch position data is the touch data of the time writer.
7. according to the method described in claim 6, it is characterized in that, the method is applied to the touch-control system that touch apparatus carries System, further comprising the steps of:
The touch data of the time writer is sent, to operating system to carry out touch-responsive.
8. according to the method described in claim 6, it is characterized in that, the method further includes following step applied to operating system It is rapid:
Before determining the current state of time writer, the tactile signals for the time writer triggering that associated touch apparatus is sent are received;
After the touch data for determining the time writer, Xiang Suoshu touch apparatus or virtual touch equipment send the touch data, To carry out touch-responsive.
9. method according to any one of claim 1 to 8, which is characterized in that the current state of the determining time writer, Include:
According to the frequency for the electromagnetic signal that magnetic board senses, the current state of the time writer is determined;
If the frequency of the electromagnetic signal is in scheduled writing frequency range, it is determined that the time writer is currently at writing State.
10. according to the method described in claim 9, it is characterized in that, if the frequency of the electromagnetic signal continues scheduled Time in suspension frequency range is greater than or equal to first time threshold, it is determined that the time writer is currently at scheduled outstanding Floating state.
11. according to the method described in claim 10, it is characterized in that, if the frequency of the electromagnetic signal continues described outstanding Time in floating frequency range, it is lower than the first time threshold, it is determined that the time writer is currently at writing state.
12. according to the method for claim 11, which is characterized in that it is empty difference that corresponding different time writers, which prestore intersection, It writes frequency range and intersection is empty different suspension frequency ranges.
13. a kind of processing unit of touch data characterized by comprising
State determining module, for determining the current state of time writer;
First touch modules, for determining the touch data of the time writer according to the first operating mode in the state of writing;
Second touch modules, for determining the touch data of the time writer according to the second operating mode in suspended state;Institute The touch precision under the second operating mode is stated lower than the touch precision under first operating mode.
14. device according to claim 13, which is characterized in that first touch modules are also used to:
According to scheduled first touch resolution ratio, the touch position data in the touch data is generated;
Second touch modules are also used to:
According to the second touch resolution ratio for being lower than first touch resolution ratio, the touch location number in the touch data is generated According to.
15. device according to claim 13, which is characterized in that described device further include:
Position data determining module, for generating the touch position data of the time writer according to predetermined touch resolution ratio;
First touch modules include:
First touches submodule, for determining that the touch data comprising the touch position data is the touch number of the time writer According to;
Second touch modules include:
Distance judgment module, for judging whether the current location of the time writer is greater than pre- spacing at a distance from its prior location From value;Wherein, the preset distance value is greater than or equal to the distance value of adjacent touch unit under the predetermined touch resolution ratio;
Second touches submodule, for when being greater than, determining that the touch data comprising the touch position data is the electromagnetism The touch data of pen;
Third touches submodule, for giving up the touch position data, determining the touch number of the time writer when being not more than According to for sky, alternatively, determine comprising previous touch position data touch data be the time writer touch data.
16. a kind of computer equipment, which is characterized in that including processor and for storing the processor-executable instruction Memory;Wherein, the processor is configured to executing the operation such as any one of claims 1 to 12 the method.
17. equipment according to claim 16, which is characterized in that the method is applied to the touch-control system that touch apparatus carries When system, the computer equipment is touch apparatus.
18. equipment according to claim 16, which is characterized in that when the method is applied to operating system, the calculating Machine equipment is the host equipment of touch apparatus docking, and equipped with the operating system.
19. one or more machine readable storage mediums, which is characterized in that instruction is stored thereon with, when by one or more When managing device execution, so that processor is executed such as the operation in any one of claims 1 to 12 the method.
CN201910356890.2A 2019-04-29 2019-04-29 Touch data processing method, device, equipment and storage medium Pending CN110069165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910356890.2A CN110069165A (en) 2019-04-29 2019-04-29 Touch data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910356890.2A CN110069165A (en) 2019-04-29 2019-04-29 Touch data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110069165A true CN110069165A (en) 2019-07-30

Family

ID=67369645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910356890.2A Pending CN110069165A (en) 2019-04-29 2019-04-29 Touch data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110069165A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687742A (en) * 2021-09-02 2021-11-23 山东蓝贝思特教装集团股份有限公司 TFT-based electromagnetic positioning method and system
CN113741749A (en) * 2021-08-27 2021-12-03 北京字节跳动网络技术有限公司 Cursor position updating method and device and electronic equipment
WO2022193988A1 (en) * 2021-03-18 2022-09-22 Oppo广东移动通信有限公司 Touch event reporting method and apparatus, terminal, and storage medium
CN115167716A (en) * 2021-04-07 2022-10-11 北京有竹居网络技术有限公司 Method and device for positioning contact, terminal and non-transitory storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1886722A (en) * 2003-11-25 2006-12-27 3M创新有限公司 Light-emitting stylus and user input device using same
CN101194221A (en) * 2005-06-08 2008-06-04 3M创新有限公司 Touch location determination involving multiple touch location processing
CN103168284A (en) * 2010-08-27 2013-06-19 苹果公司 Touch and hover toggle
CN103699326A (en) * 2013-12-27 2014-04-02 深圳天珑无线科技有限公司 Touch processing method and terminal device
CN104007922A (en) * 2013-02-23 2014-08-27 三星电子株式会社 Method for providing a feedback in response to a user input and a terminal implementing the same
CN104583920A (en) * 2012-08-29 2015-04-29 三星电子株式会社 Apparatus and method for processing input on touch screen
CN106030482A (en) * 2013-10-14 2016-10-12 谱瑞科技有限公司 Hover position calculation for touchscreen devices
CN106055144A (en) * 2016-05-24 2016-10-26 北京小米移动软件有限公司 Method and apparatus for controlling touch screen status, and electronic device
CN109101180A (en) * 2018-08-10 2018-12-28 珠海格力电器股份有限公司 Screen electronic equipment interaction method and interaction system thereof and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1886722A (en) * 2003-11-25 2006-12-27 3M创新有限公司 Light-emitting stylus and user input device using same
CN101194221A (en) * 2005-06-08 2008-06-04 3M创新有限公司 Touch location determination involving multiple touch location processing
CN103168284A (en) * 2010-08-27 2013-06-19 苹果公司 Touch and hover toggle
CN104583920A (en) * 2012-08-29 2015-04-29 三星电子株式会社 Apparatus and method for processing input on touch screen
CN104007922A (en) * 2013-02-23 2014-08-27 三星电子株式会社 Method for providing a feedback in response to a user input and a terminal implementing the same
CN106030482A (en) * 2013-10-14 2016-10-12 谱瑞科技有限公司 Hover position calculation for touchscreen devices
CN103699326A (en) * 2013-12-27 2014-04-02 深圳天珑无线科技有限公司 Touch processing method and terminal device
CN106055144A (en) * 2016-05-24 2016-10-26 北京小米移动软件有限公司 Method and apparatus for controlling touch screen status, and electronic device
CN109101180A (en) * 2018-08-10 2018-12-28 珠海格力电器股份有限公司 Screen electronic equipment interaction method and interaction system thereof and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022193988A1 (en) * 2021-03-18 2022-09-22 Oppo广东移动通信有限公司 Touch event reporting method and apparatus, terminal, and storage medium
CN115167716A (en) * 2021-04-07 2022-10-11 北京有竹居网络技术有限公司 Method and device for positioning contact, terminal and non-transitory storage medium
CN113741749A (en) * 2021-08-27 2021-12-03 北京字节跳动网络技术有限公司 Cursor position updating method and device and electronic equipment
CN113687742A (en) * 2021-09-02 2021-11-23 山东蓝贝思特教装集团股份有限公司 TFT-based electromagnetic positioning method and system

Similar Documents

Publication Publication Date Title
US10372238B2 (en) User terminal device and method for controlling the user terminal device thereof
CN109076125B (en) A display method and device
CN106919243B (en) Mobile terminal control method and device and mobile terminal
CN110069165A (en) Touch data processing method, device, equipment and storage medium
US20160282965A1 (en) Stylus having a plurality of operating portions configured to transmit synchronized signals
KR100922643B1 (en) Methods and apparatus to provide a handheld pointer-based user interface
CN111208917B (en) Touch data processing method, device, smart device and storage medium
US20140351729A1 (en) Method of operating application and electronic device implementing the same
CN112035048A (en) Touch data processing method, device, equipment and storage medium
CN112513803B (en) Electronic device for controlling display of virtual input interface in environment of multiple output screens and operation method thereof
CN109144723B (en) Method and terminal for allocating storage space
WO2019105187A1 (en) Touch sensing signal processing method, system and device, and electronic device
SE1350066A1 (en) Scalable input from tracked object in touch-free user interface
CN103064818A (en) Portable terminal and method of sharing component thereof
CN108628531A (en) Color-taking writing method and device, electronic equipment, storage medium and intelligent pen
US11061641B2 (en) Screen sharing system, and information processing apparatus
US20160057266A1 (en) Phonepad
WO2019105188A1 (en) Touch sensing signal processing method, system and device, and electronic device
CN108920072A (en) Electronic equipment touch screen control method and device, electronic equipment and storage medium
WO2019119995A1 (en) Touch signal processing method and apparatus, and electronic device and storage medium
CN114415850A (en) Control method and device, touch control pen and computer readable storage medium
CN111443819A (en) Control method and electronic device
CN108579078B (en) Touch operation method and related product
CN107395888B (en) Processing method and device of black screen gesture, storage medium and mobile terminal
KR20160096645A (en) Binding of an apparatus to a computing device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190730