WO2018107839A1 - 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统 - Google Patents

一种基于压感笔的红外触摸屏的触摸数据处理方法及系统 Download PDF

Info

Publication number
WO2018107839A1
WO2018107839A1 PCT/CN2017/102285 CN2017102285W WO2018107839A1 WO 2018107839 A1 WO2018107839 A1 WO 2018107839A1 CN 2017102285 W CN2017102285 W CN 2017102285W WO 2018107839 A1 WO2018107839 A1 WO 2018107839A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressure
data
pen
touch screen
infrared
Prior art date
Application number
PCT/CN2017/102285
Other languages
English (en)
French (fr)
Inventor
陈纬霖
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
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 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018107839A1 publication Critical patent/WO2018107839A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0421Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Definitions

  • the invention relates to an infrared touch interaction technology, in particular to a touch data processing method based on a pressure sensitive pen infrared touch screen.
  • Infrared Touch Screen Technology is a display device that detects and locates a user's touch by using an infrared matrix densely arranged in the X and Y directions, and is composed of an infrared emitting and receiving sensing element mounted on the outer frame of the touch screen, on the surface of the display screen. An infrared detection net is formed on the upper surface. Any touch object can change the infrared light on the contact to achieve touch screen operation.
  • the finger blocks the two infrared rays passing through the position, so that the position of the touch point on the display screen can be determined, and then converted into the coordinate position of the touch to realize the operation response.
  • the system In the infrared touch interactive tablet, the system generally cannot sense the pressure value in the user's touch operation, and needs to additionally add an external pressure sensitive pen, and the pressure sensitive pen sends the detected pressure value to the operating system of the interactive smart tablet. .
  • most operating systems do not support the pressure sensitive operation, which makes it impossible to implement the diversified control of the view control.
  • It is necessary to add a pressure sensing control method for the view control for example, during the operation of the infrared touch, due to the infrared
  • the height limit of the touch frame triggers the positioning operation when the user does not touch the screen actually, especially in the writing process, which is easy to cause misoperation.
  • the existing view control cannot realize different functions according to the pressure of the pressure.
  • an embodiment of the present invention provides a touch data processing method for an infrared touch screen based on a pressure sensitive pen, including the following steps:
  • Step 1 Start the pressure sensitive pen pressure data acquisition service, and obtain the pressure sensitive pen pressure data
  • Step 2 The pressure sensitive pen pressure data acquisition service distributes the acquired pressure sensitive pen pressure data to the system touch event distribution service through the inter-process communication IPC method;
  • Step 3 The system receives the pressure sensitive pen pressure data from the system touch event distribution service, and combines the positioning data of the infrared touch screen to perform the pressure touch data operation processing of the infrared touch screen.
  • step 1 the pressure sensing data of the pressure sensing component of the pressure pen tip is continuously read by a preset Api function.
  • step 2 the pressure pen pressure data acquisition service opens the interface for distributing data to the system UI component.
  • step 3 the infrared touch screen with the infrared matrix in the X and Y directions is preset to start scanning in one direction, and when the coordinates in the current direction are found to be blocked by infrared rays, the scanning in the other direction is started. Get the positioning data of the infrared touch screen.
  • step 3 when the valid values of the pressure pen pressure data and the positioning data are simultaneously received, the operation of the view control is defined based on the pressure data and the positioning data.
  • step 3 the operation of the view control is also defined based on the pressure change within a predetermined time.
  • step 1 the obtained original pressure pen pressure data is converted into the pressure sensitive pen pressure data of 1024 level pressure level according to the precision of the pressure sensitive pen, and in step 2, the obtained original pressure is obtained.
  • the pressure pen pressure data or the converted pressure pen pressure data is distributed to the system touch event distribution service.
  • the method is applied to a Windows, IOS or Android operating system.
  • the pressure sensitive pen pressure data acquisition service passes the original pressure sensitive pen pressure data or the converted pressure sensitive pen pressure through the inter-process communication mode AIDL of the Android system.
  • the data is distributed to the system touch event distribution service and the interface for distributing the data is opened to the system UI component.
  • the embodiment of the invention further provides a touch data processing system based on a pressure sensitive pen infrared touch screen
  • the utility model comprises a pressure pen pressure data acquisition module, a pressure sensitive pen pressure data distribution module, an infrared touch screen positioning data acquisition module and a processing unit,
  • the pressure pen pressure data acquisition module is configured to start the pressure pen pressure data acquisition service, and obtain the pressure pen pressure data
  • the pressure pen pressure data distribution module is configured to distribute the pressure pen pressure data acquired by the pressure pen pressure data acquisition module to the system touch event distribution service through the inter-process communication IPC mode;
  • the infrared touch screen positioning data acquisition module is configured to acquire infrared touch screen positioning data
  • the processing unit is configured to perform touch data operation processing of the infrared touch screen according to the pressure sensitive pen pressure data received from the system touch event distribution service and the positioning data of the infrared touch screen.
  • the embodiment of the invention utilizes the inter-process communication IPC mode, so that the infrared touch screen can acquire the pressure data of the pressure sensitive pen, and combines the positioning data of the infrared touch screen to realize the pressure sensitive touch operation on the existing infrared touch screen, and realize the view control. Diversified control.
  • FIG. 1 is a flow chart of a touch data processing method based on a pressure sensitive pen-based infrared touch screen according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a touch data processing system based on a pressure sensitive pen-based infrared touch screen according to an embodiment of the present invention.
  • the embodiment of the invention provides a touch data processing method based on a pressure sensitive pen infrared touch screen, as shown in FIG. 1 .
  • the pressure sensitive pen is configured in the system, and the pressure sensitive pen and the infrared touch screen are connected.
  • Step 11 Start the pressure pen pressure data acquisition service and obtain the pressure pen pressure data.
  • the specified service PenService is started in the background of the system, and the pressure sensitive data of the pressure sensitive pen is continuously read through the predefined Api function.
  • the pressure sensitive pen has a pressure sensing component in its writing head, which can imitate an image written and drawn with different pressures according to the magnitude of the force, and can imitate a brush and the like to draw a layered ink painting.
  • Step 12 The pressure sensitive pen pressure data acquisition service distributes the acquired pressure sensitive pen pressure data to the system touch event distribution service through an Inter-Process Communication (IPC) method.
  • IPC Inter-Process Communication
  • Step 13 The system receives the pressure sensitive pen pressure data from the system touch event distribution service, and performs touch data operation processing on the infrared touch screen in combination with the positioning data of the infrared touch screen.
  • the infrared touch screen is an infrared matrix densely arranged in the X and Y directions in front of the display screen, and the infrared light is blocked by the object to detect and position the user's touch through non-stop scanning.
  • An infrared transmitting tube and an infrared receiving tube are arranged on four sides of the display screen, and one-to-one correspondence forms an infrared matrix that intersects horizontally and vertically.
  • the infrared touch screen with the infrared matrix in the X and Y directions is preset to start scanning in one direction, and when the coordinates in the current direction are found to be blocked by infrared rays, the scanning in the other direction is started to obtain the infrared touch screen.
  • Positioning data When there is a touch, the pressure sensitive pen or other object will block the horizontal and vertical infrared rays passing through the position.
  • the touch screen scans, it is found that a coordinate is blocked by infrared rays, and there may be a touch, and at the same time, it is switched to another coordinate for scanning, and if another difference is found
  • One axis also has an infrared blocking, indicating that a touch occurs, and the position of the touch point on the display screen is determined according to the position of the infrared tube position where the blocking occurs, thereby obtaining the positioning data of the infrared touch screen.
  • the view control can define different working modes according to the pressure pen pressure data and the positioning data acquired by the system.
  • the infrared touch screen generally has an outer frame for installing an infrared pair tube, and the outer frame has a certain thickness.
  • a touch event is generated when the pressure sensitive pen does not touch the display screen.
  • the system only obtains the positioning data of the current time, and the pressure pen pressure data is 0.
  • Writing operation mode When the system receives the valid value of the pressure sensitive pen pressure data and the positioning data at the same time, it indicates that the pressure sensitive pen touches the display screen, and the user is using the pressure sensitive pen to perform operations, including clicking, writing, drawing, and the like.
  • Pressure operation mode The system only obtains the pressure sensitive pen pressure data provided by the system touch event distribution service. At this time, the pressure sensitive pen does not enter the operation area of the display screen, which may be caused by the wrong operation of the pressure sensitive pen, or it may be It is caused by the needs of other specific applications. For example, in this mode of operation, writing operations can also be performed using the tablet and its software.
  • the above method of the embodiment of the present invention can be applied to currently used operating systems, such as Windows, IOS, and Android systems.
  • operating systems such as Windows, IOS, and Android systems.
  • a touch data processing method using a pressure sensitive pen-based infrared touch panel of the Android system will be described. Configure the pressure pen and infrared touch screen in the system and start the system.
  • Step 21 In the Android system, the specified service is started in the background - the pressure sensitive pen pressure data acquisition service PenService, and the pressure sensitive pen pressure data acquisition service PenService detects the device state of the pressure sensitive pen, when detecting the pressure sensitive pen access, The pressure pen pressure data acquisition service PenService starts a thread to continuously read the pressure pen pressure data.
  • the pressure sensitive pen pressure data acquisition service PenService after reading the pressure sensitive pen pressure data, uniformly converts the precision into a pressure level of 1024 by equal conversion.
  • Step 22 The pressure sensitive pen pressure data acquisition service PenService distributes the acquired original pressure sensitive pen pressure data or the converted pressure sensitive pen pressure data to the system through the Android Interface Definition Language (AIDL). Touch the event distribution service and open the interface for distributing data to the system UI component.
  • ODL Android Interface Definition Language
  • the Android system uses a Remote Procedure Call (RPC) method.
  • RPC Remote Procedure Call
  • IDL Interface Definition Language
  • Step 23 The system UI component public parent class view receives the pressure pen pressure data from the system touch event distribution service, and combines the positioning data of the infrared touch screen to perform touch data operation processing of the infrared touch screen, and can implement the following functions.
  • the system When the system receives the valid values of the pressure pen pressure data and the positioning data at the same time, it indicates that the pressure sensitive pen is in contact with the display screen, and the user is using the pressure sensitive pen to perform operations, including clicking, writing, drawing, etc., and the system is in the writing operation mode. For example, when it is detected that the pressure sensitive pressure data change at a certain coordinate within a preset time is greater than a predetermined value, it is considered that a click operation is performed; when it is detected that the positioning data continuously changes, it indicates that the user writes on the screen, During painting and other operations, the system restores the user's writing strokes and painting images according to the size and position of the pressure sensitive pen pressure data.
  • the system only obtains the pressure sensitive pen pressure data provided by the system touch event distribution service, and does not receive the positioning data. At this time, the pressure sensitive pen does not enter the operation area of the display screen, which may be caused by the wrong operation of the pressure sensitive pen. It may also be caused by the needs of other specific applications. For example, in this mode of operation, writing operations can also be performed using the tablet and its software.
  • the embodiment of the invention further provides a touch data processing system based on a pressure sensitive pen infrared touch screen, comprising a pressure pen pressure data acquisition module, a pressure pen pressure data distribution module, an infrared touch screen positioning data acquisition module and a processing unit,
  • the pressure sensitive pen pressure data acquisition module is used to start the pressure sensitive pen pressure data acquisition service and obtain the pressure sensitive pen pressure data.
  • the pressure sensitive pen pressure data acquisition module starts the specified service PenService in the background, and continuously reads the pressure sensitive data of the pressure sensitive pen through the pre-defined Api function.
  • the pressure pen pressure data distribution module is configured to distribute the pressure pen pressure data acquired by the pressure pen pressure data acquisition module to the system touch event distribution service through the inter-process communication IPC mode.
  • inter-process communication IPC mode memory is shared between different processes and threads in the system, so that other applications can also access the services provided by the application, and provide pressure-sensitive pen pressure for other applications through the system touch event distribution service. data.
  • the infrared touch screen positioning data acquisition module is configured to acquire infrared touch screen positioning data.
  • the infrared touch screen is an infrared matrix densely placed in the X and Y directions in front of the display screen. By continuously scanning whether infrared rays are blocked by the object and detecting the user's touch.
  • An infrared transmitting tube and an infrared receiving tube are arranged on four sides of the display screen, and one-to-one correspondence forms an infrared matrix that intersects horizontally and vertically.
  • the infrared touch screen with the infrared matrix in the X and Y directions is preset to start scanning in one direction, and when the coordinates in the current direction are found to be blocked by infrared rays, the scanning in the other direction is started to obtain the infrared touch screen. Positioning data. When there is a touch, the pressure sensitive pen or other object will block the horizontal and vertical infrared rays passing through the position.
  • One axis also has an infrared blocking, indicating that a touch occurs, and the position of the touch point on the display screen is determined according to the position of the infrared tube position where the blocking occurs, thereby obtaining the positioning data of the infrared touch screen.
  • the processing unit is configured to perform touch data operation processing of the infrared touch screen according to the pressure sensitive pen pressure data received from the system touch event distribution service and the positioning data of the infrared touch screen.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with such an instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may, for example, The paper or other medium is optically scanned, then edited, interpreted, or otherwise processed in other suitable manners to electronically obtain the program and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种基于压感笔的红外触摸屏的触摸数据处理方法,包括:启动压感笔压力数据获取服务,获取压感笔压力数据;压感笔压力数据获取服务通过进程间通讯IPC方式,将所获取的压感笔压力数据分发到系统触摸事件分发服务中;系统从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的触摸数据操作处理。本发明实施例还提供一种基于压感笔的红外触摸屏的触摸数据处理系统。本发明实施例利用进程间通讯IPC方式,使得红外触摸屏能够获取到压感笔的压力数据,并结合红外触摸屏的定位数据,在现有红外触摸屏上实现了压感触控操作。

Description

一种基于压感笔的红外触摸屏的触摸数据处理方法及系统 技术领域
本发明涉及一种红外触控交互技术,具体涉及一种基于压感笔的红外触摸屏的触摸数据处理方法。
背景技术
红外触摸屏(Infrared Touch Screen Technology)是利用X、Y方向上密布的红外线矩阵来检测并定位用户触摸的显示设备,由装在触摸屏外框上的红外线发射与接收感测元件构成,在显示屏表面上形成红外线探测网。任何触摸物体可改变触点上的红外线而实现触摸屏操作。用户在触控显示屏时,手指就会挡住经过该位置的横竖两条红外线,因而可以判断出触摸点在显示屏的位置,进而被转化成触控的坐标位置而实现操作的响应。
在红外触控交互平板中,系统一般不能感知用户触控操作中的压力值,需要另外增加外置的压感笔,压感笔将其检测到的压力值发送到交互智能平板的操作系统中。然而,大部分操作系统都是不支持压感操作的,导致无法实现视图控件的多样化控制,需要增加一种针对视图控件的压感控制方法,例如:在红外触摸的操作过程中,由于红外触摸框的高度限制,用户在实际未接触到屏幕时即触发了定位操作,特别是在书写过程中容易导致误操作,此外,现有的视图控件亦无法根据压感的力度实现不同的功能。
发明内容
为解决上述问题,本发明实施例提供一种基于压感笔的红外触摸屏的触摸数据处理方法,包括如下步骤:
步骤1:启动压感笔压力数据获取服务,获取压感笔压力数据;
步骤2:压感笔压力数据获取服务通过进程间通讯IPC方式,将所获取的压感笔压力数据分发到系统触摸事件分发服务中;
步骤3:系统从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的压感触摸数据操作处理。
其中,步骤1中,通过预先定义的Api函数不断读取压感笔笔头的压力感应部件的压感数据。
其中,步骤2中,压感笔压力数据获取服务将分发数据的接口向系统UI组件开放。
其中,步骤3中,预设具有X、Y方向上的红外线矩阵的红外触摸屏开始工作在一个方向上进行扫描,当发现当前方向上的坐标出现红外线受阻后,再启动另一个方向上的扫描,获取红外触摸屏的定位数据。
并且,步骤3中,当同时接收到压感笔压力数据和定位数据的有效值时,根据压力数据和定位数据定义视图控件的操作。
此外,步骤3中,还根据在预定时间内的压力变化定义视图控件的操作。
其中,步骤1中,还将根据压感笔的精度,将所获取的原始压感笔压力数据换算成1024级压感级别的压感笔压力数据,并在步骤2中,将所获取的原始压感笔压力数据或转换后的压感笔压力数据分发到系统触摸事件分发服务中。
具体的,所述方法应用于Windows、IOS或Android操作系统中。
当所述方法应用于Android操作系统中,步骤2中,压感笔压力数据获取服务通过Android系统的进程间通讯方式AIDL,将所获取的原始压感笔压力数据或转换后的压感笔压力数据分发到系统触摸事件分发服务中,并将分发数据的接口向系统UI组件开放。
本发明实施例还提供一种基于压感笔的红外触摸屏的触摸数据处理系统, 包括压感笔压力数据获取模块、压感笔压力数据分发模块、红外触摸屏定位数据获取模块和处理单元,
压感笔压力数据获取模块用于启动压感笔压力数据获取服务,获取压感笔压力数据;
压感笔压力数据分发模块用于将压感笔压力数据获取模块获取的压感笔压力数据通过进程间通讯IPC方式分发到系统触摸事件分发服务中;
红外触摸屏定位数据获取模块用于获取红外触摸屏定位数据;
处理单元用于根据从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的触摸数据操作处理。
本发明实施例利用进程间通讯IPC方式,使得红外触摸屏能够获取到压感笔的压力数据,并结合红外触摸屏的定位数据,在现有红外触摸屏上实现了压感触控操作,实现了视图控件的多样化控制。
附图说明
图1是本发明实施例的一种基于压感笔的红外触摸屏的触摸数据处理方法流程图;
图2是本发明实施例的一种基于压感笔的红外触摸屏的触摸数据处理系统的结构框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。但本领域技术人员知晓,本发明并不局限于附图和以下实施例。
本发明实施例提出了一种基于压感笔的红外触摸屏的触摸数据处理方法,如图1所示。在系统中对压感笔进行配置,连接压感笔与红外触摸屏。
步骤11:启动压感笔压力数据获取服务,获取压感笔压力数据。
在此步骤中,在系统后台启动指定服务PenService,通过预先定义的Api函数不断读取压感笔的压感数据。压感笔在其笔头具有压力感应部件,可以根据用力的大小,模仿出用不同压力写、画出的图像,可以模仿毛笔等画出层次分明的水墨画。
步骤12:压感笔压力数据获取服务通过进程间通讯(Inter-Process Communication,IPC)方式,将所获取的压感笔压力数据分发到系统触摸事件分发服务中。通过进程间通讯IPC方式,在系统中的不同进程和线程之间共享内存,使其他的应用程序也可以访问本应用程序提供的服务,通过系统触摸事件分发服务为其他应用程序提供压感笔压力数据。
步骤13:系统从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的触摸数据操作处理。
具体的,红外触摸屏是在紧贴显示屏前密布X、Y方向上的红外线矩阵,通过不停的扫描是否有红外线被物体阻挡检测并定位用户的触摸。在显示屏四边排布红外发射管和红外接收管,一一对应形成横竖交叉的红外线矩阵。优选的,预设具有X、Y方向上的红外线矩阵的红外触摸屏开始工作在一个方向上进行扫描,当发现当前方向上的坐标出现红外线受阻后,再启动另一个方向上的扫描,获取红外触摸屏的定位数据。当有触摸时,压感笔或其它物体就会挡住经过该位置的横竖红外线,触摸屏扫描时发现一个坐标有红外线受阻后,可能有触摸,同时立刻换到另一坐标进行扫描,如果再发现另外一轴也有一条红外线受阻,表示发生触摸,并根据发生阻隔的红外对管位置计算判断出触摸点在显示屏上的定位位置,从而获取红外触摸屏的定位数据。
其中,根据系统获取的压感笔压力数据和定位数据的情况,视图控件可定义不同的工作模式。
预选操作模式:红外触摸屏一般具有安装红外对管的外框,外框存在着一定的厚度,用户在使用的时候,在没有压感笔没接触到显示屏的时候也会产生触摸事件,此时系统仅获取到了当前时刻的定位数据,压感笔压力数据为0。
书写操作模式:系统同时接收到压感笔压力数据和定位数据的有效值时,表明压感笔接触到显示屏,用户正在使用压感笔进行操作,包括点击、书写、绘画等。
压力操作模式:系统仅获取到系统触摸事件分发服务提供的压感笔压力数据,此时压感笔并未进入到显示屏操作区域内,可能是对压感笔的误操作导致的,也可能是其他特定应用程序的需求导致的。例如,在此操作模式下,使用书写板及其软件,也可以进行书写操作。
本发明实施例的上述方法可以应用到目前常用的操作系统中,如Windows、IOS、Android系统。以下,以使用Android系统的基于压感笔的红外触摸屏的触摸数据处理方法进行说明。在系统中对压感笔和红外触摸屏进行配置,并启动系统。
步骤21:在Android系统中,后台启动指定服务——压感笔压力数据获取服务PenService,压感笔压力数据获取服务PenService检测压感笔的设备状态,当检测到压感笔接入的时候,压感笔压力数据获取服务PenService则开启一个线程不断地读取压感笔压力数据。
优选的,根据压感笔的精度不同,压感笔压力数据获取服务PenService在读取压感笔压力数据后,还通过等比换算,将精度统一换算为1024级压感级别。
步骤22:压感笔压力数据获取服务PenService通过Android系统的进程间通讯方式(Android Interface Definition Language,AIDL),将所获取的原始压感笔压力数据或转换后的压感笔压力数据分发到系统触摸事件分发服务中,并将分发数据的接口向系统UI组件开放。
为了使其他的应用程序也可以访问本应用程序提供的服务,Android系统采用了远程过程调用(Remote Procedure Call,RPC)方式来实现。与很多其他的基于RPC的解决方案一样,Android使用一种接口定义语言(Interface Definition Language,IDL)来公开服务的接口,这种可以跨进程访问的服务称为AIDL服务。
步骤23:系统UI组件公共父类视图从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的触摸数据操作处理,可以实现如下功能。
仅获取到了当前时刻的定位数据,压感笔压力数据为0,则压感笔进入到红外触摸屏的操作区域内,但未真正接触到显示屏,系统处于预选操作模式。
系统同时接收到压感笔压力数据和定位数据的有效值时,表明压感笔接触到显示屏,用户正在使用压感笔进行操作,包括点击、书写、绘画等,系统处于书写操作模式。例如,当检测到在预设时间内某个坐标处的压感笔压力数据变化大于预定值时,认为进行了点击操作;当检测到定位数据持续变化时,则表明用户在屏幕上进行书写、绘画等操作,系统根据压感笔压力数据的大小和定位位置变化,还原出用户的书写笔迹和绘画图像。
系统仅获取到系统触摸事件分发服务提供的压感笔压力数据,没有接收到定位数据,此时压感笔并未进入到显示屏操作区域内,可能是对压感笔的误操作导致的,也可能是其他特定应用程序的需求导致的。例如,在此操作模式下,使用书写板及其软件,也可以进行书写操作。
本发明实施例还提供一种基于压感笔的红外触摸屏的触摸数据处理系统,包括压感笔压力数据获取模块、压感笔压力数据分发模块、红外触摸屏定位数据获取模块和处理单元,
压感笔压力数据获取模块用于启动压感笔压力数据获取服务,获取压感笔压力数据。压感笔压力数据获取模块在后台启动指定服务PenService,通过预先定义的Api函数不断读取压感笔的压感数据。
压感笔压力数据分发模块用于将压感笔压力数据获取模块获取的压感笔压力数据通过进程间通讯IPC方式分发到系统触摸事件分发服务中。通过进程间通讯IPC方式,在系统中的不同进程和线程之间共享内存,使其他的应用程序也可以访问本应用程序提供的服务,通过系统触摸事件分发服务为其他应用程序提供压感笔压力数据。
红外触摸屏定位数据获取模块用于获取红外触摸屏定位数据。红外触摸屏是在紧贴显示屏前密布X、Y方向上的红外线矩阵,通过不停的扫描是否有红外线被物体阻挡检测并定位用户的触摸。在显示屏四边排布红外发射管和红外接收管,一一对应形成横竖交叉的红外线矩阵。优选的,预设具有X、Y方向上的红外线矩阵的红外触摸屏开始工作在一个方向上进行扫描,当发现当前方向上的坐标出现红外线受阻后,再启动另一个方向上的扫描,获取红外触摸屏的定位数据。当有触摸时,压感笔或其它物体就会挡住经过该位置的横竖红外线,触摸屏扫描时发现一个坐标有红外线受阻后,可能有触摸,同时立刻换到另一坐标进行扫描,如果再发现另外一轴也有一条红外线受阻,表示发生触摸,并根据发生阻隔的红外对管位置计算判断出触摸点在显示屏上的定位位置,从而获取红外触摸屏的定位数据。
处理单元用于根据从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的触摸数据操作处理。
本领域技术人员可以理解,在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过 对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或它们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
以上,对本发明的实施方式进行了说明。但是,本发明不限定于上述实施方式。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种基于压感笔的红外触摸屏的触摸数据处理方法,其特征在于,包括如下步骤:
    步骤1:启动压感笔压力数据获取服务,获取压感笔压力数据;
    步骤2:压感笔压力数据获取服务通过进程间通讯IPC方式,将所获取的压感笔压力数据分发到系统触摸事件分发服务中;
    步骤3:系统从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的压感触摸数据操作处理。
  2. 如权利要求1所述的方法,其特征在于:步骤1中,通过预先定义的Api函数不断读取压感笔笔头的压力感应部件的压感数据。
  3. 如权利要求1所述的方法,其特征在于:步骤2中,压感笔压力数据获取服务将分发数据的接口向系统UI组件开放。
  4. 如权利要求1所述的方法,其特征在于:步骤3中,预设具有X、Y方向上的红外线矩阵的红外触摸屏开始工作在一个方向上进行扫描,当发现当前方向上的坐标出现红外线受阻后,再启动另一个方向上的扫描,获取红外触摸屏的定位数据。
  5. 如权利要求1所述的方法,其特征在于:步骤3中,当同时接收到压感笔压力数据和定位数据的有效值时,根据压力数据和定位数据定义视图控件的操作。
  6. 如权利要求5所述的方法,其特征在于:步骤3中,还根据在预定时间内的压力变化定义视图控件的操作。
  7. 如权利要求1所述的方法,其特征在于:步骤1中,还将根据压感笔的精度,将所获取的原始压感笔压力数据换算成1024级压感级别的压感笔压力数据,并在步骤2中,将所获取的原始压感笔压力数据或转换后的压感笔压力数 据分发到系统触摸事件分发服务中。
  8. 如权利要求1所述的方法,其特征在于:所述方法应用于Windows、IOS或Android操作系统中。
  9. 如权利要求7所述的方法,其特征在于:所述方法应用于Android操作系统中,步骤2中,压感笔压力数据获取服务通过Android系统的进程间通讯方式AIDL,将所获取的原始压感笔压力数据或转换后的压感笔压力数据分发到系统触摸事件分发服务中,并将分发数据的接口向系统UI组件开放。
  10. 一种基于压感笔的红外触摸屏的触摸数据处理系统,其特征在于:包括压感笔压力数据获取模块、压感笔压力数据分发模块、红外触摸屏定位数据获取模块和处理单元,
    压感笔压力数据获取模块用于启动压感笔压力数据获取服务,获取压感笔压力数据;
    压感笔压力数据分发模块用于将压感笔压力数据获取模块获取的压感笔压力数据通过进程间通讯IPC方式分发到系统触摸事件分发服务中;
    红外触摸屏定位数据获取模块用于获取红外触摸屏定位数据;
    处理单元用于根据从系统触摸事件分发服务中接收压感笔压力数据,结合红外触摸屏的定位数据进行红外触摸屏的压感触摸数据操作处理。
PCT/CN2017/102285 2016-12-12 2017-09-19 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统 WO2018107839A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611141498.9 2016-12-12
CN201611141498.9A CN106775014B (zh) 2016-12-12 2016-12-12 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统

Publications (1)

Publication Number Publication Date
WO2018107839A1 true WO2018107839A1 (zh) 2018-06-21

Family

ID=58880356

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102285 WO2018107839A1 (zh) 2016-12-12 2017-09-19 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统

Country Status (2)

Country Link
CN (1) CN106775014B (zh)
WO (1) WO2018107839A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775014B (zh) * 2016-12-12 2020-10-27 广州视源电子科技股份有限公司 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统
CN107272955A (zh) * 2017-06-19 2017-10-20 广州视源电子科技股份有限公司 一种触摸响应的方法、人机交互设备、芯片和智能设备
CN108776548A (zh) * 2018-06-15 2018-11-09 广州华欣电子科技有限公司 基于红外触控屏的书写笔迹生成方法、系统及相关组件
CN111391541B (zh) * 2020-06-04 2020-09-15 深圳市千分一智能技术有限公司 主动笔控制方法及主动笔
WO2022257030A1 (zh) * 2021-06-08 2022-12-15 广州创知科技有限公司 一种触摸数据处理方法及交互平板

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164086A (zh) * 2013-03-15 2013-06-19 创维光电科技(深圳)有限公司 一种基于红外触摸屏的触摸显示方法、装置及红外触摸屏
CN104035617A (zh) * 2014-06-10 2014-09-10 广州视睿电子科技有限公司 多通道平板设备的书写笔迹绘制方法和系统
CN204066030U (zh) * 2014-06-30 2014-12-31 广州视源电子科技股份有限公司 用于触摸屏的书写笔
CN105224124A (zh) * 2015-05-04 2016-01-06 罗克韦尔柯林斯公司 具有激活力动态控制的触摸屏
CN106775014A (zh) * 2016-12-12 2017-05-31 广州视源电子科技股份有限公司 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279659A (zh) * 2010-06-11 2011-12-14 鸿富锦精密工业(深圳)有限公司 手写输入装置
CN202548800U (zh) * 2012-04-11 2012-11-21 罗青 一种电子签名装置
CN102902383B (zh) * 2012-10-29 2015-10-21 深圳市汇顶科技股份有限公司 触摸笔及其信号传输方法、触摸控制器及其信号检测方法
KR101515986B1 (ko) * 2014-02-21 2015-05-04 주식회사 아이에스엘코리아 적외선 광원을 이용한 모바일 장치에서의 가상 좌표 생성 장치 및 그 방법
US10061403B2 (en) * 2014-11-04 2018-08-28 Mimio, Llc Light pen
US9575573B2 (en) * 2014-12-18 2017-02-21 Apple Inc. Stylus with touch sensor
CN204808233U (zh) * 2015-05-24 2015-11-25 北京拓思德科技有限公司 纸面书写点阵数码笔
CN105573552B (zh) * 2015-12-25 2018-11-02 汉王科技股份有限公司 轨迹输入装置、与其通信的触摸屏及轨迹输入系统
CN105678199B (zh) * 2015-12-31 2020-03-24 联想(北京)有限公司 一种输入装置以及信息输入方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164086A (zh) * 2013-03-15 2013-06-19 创维光电科技(深圳)有限公司 一种基于红外触摸屏的触摸显示方法、装置及红外触摸屏
CN104035617A (zh) * 2014-06-10 2014-09-10 广州视睿电子科技有限公司 多通道平板设备的书写笔迹绘制方法和系统
CN204066030U (zh) * 2014-06-30 2014-12-31 广州视源电子科技股份有限公司 用于触摸屏的书写笔
CN105224124A (zh) * 2015-05-04 2016-01-06 罗克韦尔柯林斯公司 具有激活力动态控制的触摸屏
CN106775014A (zh) * 2016-12-12 2017-05-31 广州视源电子科技股份有限公司 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统

Also Published As

Publication number Publication date
CN106775014A (zh) 2017-05-31
CN106775014B (zh) 2020-10-27

Similar Documents

Publication Publication Date Title
WO2018107839A1 (zh) 一种基于压感笔的红外触摸屏的触摸数据处理方法及系统
KR102578253B1 (ko) 전자 장치 및 전자 장치의 지문 정보 획득 방법
KR102582973B1 (ko) 지문 센서를 제어하기 위한 장치 및 그 방법
US20220217303A1 (en) Display apparatus and control methods thereof
US6380929B1 (en) Pen drawing computer input device
WO2017028436A1 (zh) 一种绘图工具的实现方法、装置、设备和计算机存储介质
JP6235166B2 (ja) コンテキストベースのタッチ処理のためのシステムおよび方法
WO2021203724A1 (zh) 笔迹选择方法、装置、计算机设备和存储介质
US20070205994A1 (en) Touch system and method for interacting with the same
DE102015119592A1 (de) Durch einen Blick veranlasste Spracherkennung
US20230057020A1 (en) Meeting interaction system
EP3077897A1 (en) User interface adaptation from an input source identifier change
US20150193037A1 (en) Input Apparatus
WO2015088883A1 (en) Controlling interactions based on touch screen contact area
US20210026587A1 (en) Touch apparatus
WO2015078353A1 (zh) 触控屏控制方法及终端设备
KR20110049589A (ko) 터치 입력 방법 및 그 장치
WO2015088882A1 (en) Resolving ambiguous touches to a touch screen interface
WO2019101073A1 (zh) 工具栏显示控制方法以及装置、可读存储介质及计算机设备
KR20110122897A (ko) 광학인식펜을 이용한 인터랙티브 전자 칠판 시스템 및 운영 방법
WO2024141033A1 (zh) 触摸屏的压感识别方法、触摸屏和存储介质
JP2014123316A (ja) 情報処理システム、情報処理装置、検出装置、情報処理方法、検出方法、及び、コンピュータプログラム
KR101348370B1 (ko) 가변적 디스플레이 장치 및 그 디스플레이 방법
TW201506787A (zh) 電子裝置及其輸入操作管理方法
CN105630383B (zh) 一种在人机交互过程中提升关注度的方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17880732

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/10/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17880732

Country of ref document: EP

Kind code of ref document: A1