CN113282186B - 将hid触摸屏自适应成键盘鼠标的方法 - Google Patents

将hid触摸屏自适应成键盘鼠标的方法 Download PDF

Info

Publication number
CN113282186B
CN113282186B CN202010102031.3A CN202010102031A CN113282186B CN 113282186 B CN113282186 B CN 113282186B CN 202010102031 A CN202010102031 A CN 202010102031A CN 113282186 B CN113282186 B CN 113282186B
Authority
CN
China
Prior art keywords
touch screen
hid
mouse
hid touch
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010102031.3A
Other languages
English (en)
Other versions
CN113282186A (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.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202010102031.3A priority Critical patent/CN113282186B/zh
Publication of CN113282186A publication Critical patent/CN113282186A/zh
Application granted granted Critical
Publication of CN113282186B publication Critical patent/CN113282186B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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; 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

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)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种将HID触摸屏自适应成键盘鼠标的方法,所述方法包括:移动端发生紧急情况并拨打紧急救援电话,移动端获取当前求救者信息并上报;服务端接收并解析移动端的求救信息,将移动端的求救信息上报应急处理平台;服务端建立与应急处理平台的关联,按照应急处理平台的格式要求上报救援信息。本发明通过移动端采集应急救援数据,采集用户的设备信息和位置信息,后台利用上传参数来确定被营救者位置的过程,当服务端收到手机端的报警信息后会把这部分报警定位数据会上传到应急处理平台,警方会介入核查营救,极大的提高了应急救援的能力,缩短了应急救援的时间。

Description

将HID触摸屏自适应成键盘鼠标的方法
技术领域
本发明涉及触控设备技术领域,尤其涉及一种将HID触摸屏自适应成键盘鼠标的方法。
背景技术
现有技术的HID触摸屏设备,主要包括I2C连接的HID触摸屏设备、USB连接的HID触摸屏设备、蓝牙连接的HID触摸屏设备,如果连接到Windows电脑端作为输入设备使用的话,则其默认表现行为是不正常的,连接的HID触摸屏无法工作,其原因在于,HID触摸屏设备按照规范都会定义自己的Top-level Collection(顶集)Usage ID,这个ID代表了HID触摸屏设备的类别,为硬件上报的参数,有两种取值:0x02和非0x02,依据类别不同会存在以下问题:
(1)如果为0x02,即代表鼠标类:则HID触摸屏设备默认挂接到系统鼠标类驱动上,而鼠标类驱动默认操作模式为相对坐标移动,而触摸屏的使用模式为绝对坐标移动,故完全无法正常操作;
(2)如果不为0x02,即非鼠标类:由于不同厂商在硬件实现上存在差异性,比如上报数据格式不同,导致系统默认并无相适配的设备类驱动,故在厂商没有提供功能驱动的情况下HID触摸屏设备完全无法使用;
(3)无论上述哪种情况,系统对于触摸屏手势、长按、多点触摸都没有相应的支持。
因此,现有技术需要改进。
发明内容
本发明实施例所要解决的技术问题是:提供一种将HID触摸屏自适应成键盘鼠标的方法,以解决现有技术中存在的问题。
根据本发明实施例的一个方面,公开一种将HID触摸屏自适应成键盘鼠标的方法,包括:
HID触摸屏的输入流程和将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程;
所述HID触摸屏的输入流程包括:
获取HID触摸屏的Usage ID;
实现一个HID Client驱动并打开设备,获取元属性数据;
确定HID触摸屏上报数据的定义和格式;
在当触摸屏进行操作时,驱动轮询到HID触摸屏上报的数据;
对HID触摸屏上报的数据解析出坐标和点击信息;
将HID触摸屏上报的数据同步到虚拟键盘鼠标;
所述将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程包括:
实现一个虚拟键鼠驱动并能操作指针进行移动和点击;
建立触摸屏坐标与屏幕坐标的映射表;
接收HID触摸屏上报数据中的device IO控制码,获取坐标及点击信息;
操作指针在相应位置进行移动或点击。
基于本发明实施例的另一个方面,公开一种将HID触摸屏自适应成键盘鼠标的方法,所述获取HID触摸屏的Usage ID包括:
如果Usage ID为0x02,HID触摸屏表征为鼠标,则断开HID触摸屏到模拟系统鼠标驱动之间的连接。
基于本发明实施例的另一个方面,公开一种将HID触摸屏自适应成键盘鼠标的方法,所述将HID触摸屏上报的数据同步到虚拟键盘鼠标时,HID触摸屏向虚拟键盘鼠标发送deviceIOcontrol请求。
基于本发明实施例的另一个方面,公开一种将HID触摸屏自适应成键盘鼠标的方法,所述建立触摸屏坐标与屏幕坐标的映射表受到HID触摸屏的分辨率、模拟鼠标的速度及精度影响。
与现有技术相比,本发明具有如下优点:
本发明的将HID触摸屏自适应成键盘鼠标的方法通过HID触摸屏的输入流程和将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程,使得任何规格的HID触摸屏设备插入电脑后,都能够自适应匹配,并映射成鼠标键盘,让该设备连接到Windows电脑上可以正常使用。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
该实施例的将HID触摸屏自适应成键盘鼠标的方法包括:
HID触摸屏的输入流程和将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程;
所述HID触摸屏的输入流程包括:
获取HID触摸屏的Usage ID,如果Usage ID为0x02,HID触摸屏表征为鼠标,则断开HID触摸屏到模拟系统鼠标驱动之间的连接;
实现一个HID Client驱动并打开设备,获取元属性数据;
确定HID触摸屏上报数据的定义和格式;
在当触摸屏进行操作时,驱动轮询到HID触摸屏上报的数据;
对HID触摸屏上报的数据解析出坐标和点击信息;
将HID触摸屏上报的数据同步到虚拟键盘鼠标,将HID触摸屏上报的数据同步到虚拟键盘鼠标时,HID触摸屏向虚拟键盘鼠标发送deviceIOcontrol请求;
所述将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程包括:
实现一个虚拟键鼠驱动并能操作指针进行移动和点击;
建立触摸屏坐标与屏幕坐标的映射表,建立触摸屏坐标与屏幕坐标的映射表受到HID触摸屏的分辨率、模拟鼠标的速度及精度影响;
接收HID触摸屏上报数据中的device IO控制码,获取坐标及点击信息;
操作指针在相应位置进行移动或点击。
在另一个具体的实施例中,所述HID触摸屏的输入流程即为输入模块的工作流程,通过HID触摸屏作为输入模块,所述将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程即为同步模块的工作流程,即为将HID触摸屏输入的内容同步到电脑上操作;
所述输入模块的工作流程包括:
步骤10,获取HID触摸屏的Usage ID,如果Usage ID为0x02,HID触摸屏表征为鼠标,则断开HID触摸屏到模拟系统鼠标驱动之间的连接;
步骤11,实现一个HID Client驱动并打开设备,获取元属性数据;
步骤12,确定HID触摸屏上报数据的定义和格式;
步骤13,在当触摸屏进行操作时,驱动轮询到HID触摸屏上报的数据;
步骤14,根据步骤12得到上报数据的定义和格式,对步骤13的HID触摸屏上报的数据解析出坐标和点击信息;
步骤15,将HID触摸屏上报的数据向同步模块发送同步请求,同步到虚拟键盘鼠标,将HID触摸屏上报的数据同步到虚拟键盘鼠标时,HID触摸屏向虚拟键盘鼠标发送deviceIOcontrol请求。
所述同步模块的工作流程为:
步骤20,实现一个虚拟键鼠驱动并能操作指针进行移动和点击;
步骤21,建立触摸屏坐标与屏幕坐标的映射表,建立触摸屏坐标与屏幕坐标的映射表受到HID触摸屏的分辨率、模拟鼠标的速度及精度影响;
步骤22,接收HID触摸屏上报数据中的device IO控制码,获取坐标及点击信息;
步骤23,根据步骤22得到的信息,操作指针在相应位置进行移动或点击。
以上对本发明所提供的一种将HID触摸屏自适应成键盘鼠标的方法进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (4)

1.一种将HID触摸屏自适应成键盘鼠标的方法,其特征在于,包括:
HID触摸屏的输入流程和将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程;
所述HID触摸屏的输入流程包括:
获取HID触摸屏的Usage ID;
实现一个HID Client驱动并打开设备,获取元属性数据;
确定HID触摸屏上报数据的定义和格式;
在当触摸屏进行操作时,驱动轮询到HID触摸屏上报的数据;
对HID触摸屏上报的数据解析出坐标和点击信息;
将HID触摸屏上报的数据同步到虚拟键盘鼠标;
所述将HID触摸屏的输入的内容同步成虚拟键盘鼠标流程包括:
实现一个虚拟键鼠驱动并能操作指针进行移动和点击;
建立触摸屏坐标与屏幕坐标的映射表;
接收HID触摸屏上报数据中的device IO控制码,获取坐标及点击信息;
操作指针在相应位置进行移动或点击。
2.根据权利要求1所述的将HID触摸屏自适应成键盘鼠标的方法,其特征在于,所述获取HID触摸屏的Usage ID包括:
如果Usage ID为0x02,HID触摸屏表征为鼠标,则断开HID触摸屏到模拟系统鼠标驱动之间的连接。
3.根据权利要求1所述的将HID触摸屏自适应成键盘鼠标的方法,其特征在于,所述将HID触摸屏上报的数据同步到虚拟键盘鼠标时,HID触摸屏向虚拟键盘鼠标发送deviceIOcontrol请求。
4.根据权利要求1所述的将HID触摸屏自适应成键盘鼠标的方法,其特征在于,所述建立触摸屏坐标与屏幕坐标的映射表受到HID触摸屏的分辨率、模拟鼠标的速度及精度影响。
CN202010102031.3A 2020-02-19 2020-02-19 将hid触摸屏自适应成键盘鼠标的方法 Active CN113282186B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102031.3A CN113282186B (zh) 2020-02-19 2020-02-19 将hid触摸屏自适应成键盘鼠标的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102031.3A CN113282186B (zh) 2020-02-19 2020-02-19 将hid触摸屏自适应成键盘鼠标的方法

Publications (2)

Publication Number Publication Date
CN113282186A CN113282186A (zh) 2021-08-20
CN113282186B true CN113282186B (zh) 2022-03-11

Family

ID=77275043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102031.3A Active CN113282186B (zh) 2020-02-19 2020-02-19 将hid触摸屏自适应成键盘鼠标的方法

Country Status (1)

Country Link
CN (1) CN113282186B (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043751A (zh) * 2010-06-29 2011-05-04 北京飞天诚信科技有限公司 Usb设备识别主机操作系统的方法
CN102799342A (zh) * 2011-05-25 2012-11-28 浪新微电子系统(上海)有限公司 手持移动互联设备
CN103067566A (zh) * 2012-04-24 2013-04-24 曾昭兴 鼠标输入方法以及触摸屏手机控制装置
WO2016105329A1 (en) * 2014-12-22 2016-06-30 Intel Corporation Multi-touch virtual mouse
WO2019237173A1 (en) * 2018-06-11 2019-12-19 Clevetura Llc Input device, signal processing unit thereto, and method to control the input device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190041997A1 (en) * 2016-04-15 2019-02-07 Light Wave Technology Inc. Pointer control in a handheld computer by way of hid commands

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043751A (zh) * 2010-06-29 2011-05-04 北京飞天诚信科技有限公司 Usb设备识别主机操作系统的方法
CN102799342A (zh) * 2011-05-25 2012-11-28 浪新微电子系统(上海)有限公司 手持移动互联设备
CN103067566A (zh) * 2012-04-24 2013-04-24 曾昭兴 鼠标输入方法以及触摸屏手机控制装置
WO2016105329A1 (en) * 2014-12-22 2016-06-30 Intel Corporation Multi-touch virtual mouse
WO2019237173A1 (en) * 2018-06-11 2019-12-19 Clevetura Llc Input device, signal processing unit thereto, and method to control the input device

Also Published As

Publication number Publication date
CN113282186A (zh) 2021-08-20

Similar Documents

Publication Publication Date Title
EP3133473A1 (en) Method of sensing pressure by touch sensor and electronic device adapted thereto
EP2866420A1 (en) Method and device for content synchronization
US20200293385A1 (en) Input operation processing method and processing apparatus and computer-readable storage medium
WO2012055714A1 (en) Automated adjustment of input configuration
CN113544692B (zh) 用于面部认证的摄像头同步和图像标记
EP4060465A2 (en) Method and apparatus for controlling terminal, device and storage medium
CN103902074A (zh) 防误触控的系统及方法
CN112882850B (zh) 按键事件处理方法、装置、设备和存储介质
WO2015070436A1 (zh) 数据上报方法、装置及终端设备
CN111078104A (zh) 一种云桌面上的多点触控设备的重定向方法及计算机设备
WO2019161691A1 (zh) 一种自适应解析触摸数据的方法、装置、设备及存储介质
US11481180B2 (en) System and method for simultaneous management of a plurality of designation peripherals
CN103488321A (zh) 一种在触摸屏终端上识别触摸动作的方法及装置
CN113282186B (zh) 将hid触摸屏自适应成键盘鼠标的方法
WO2021047135A1 (zh) 页面点击的方法、装置及点击设备
CN111309613A (zh) 应用测试方法、装置、设备及计算机可读存储介质
US10388257B2 (en) Information processing apparatus, method of controlling the same and non-transitory computer-readable storage medium
CN111104409A (zh) 一种数据库处理方法、装置、存储介质及电子设备
CN114079658A (zh) 跨设备同步方法、终端设备及存储介质
CN112114762A (zh) 一种控制屏幕显示的方法和装置
US20130262346A1 (en) Electronic device and method for processing input content
CN109753221A (zh) 触摸白板、投影系统、触摸信息处理方法、装置及介质
CN109756560B (zh) 虚拟网络计算机协议接入方法
CN113961571B (zh) 一种基于数据探针的多模态数据感知方法及装置
US20210027750A1 (en) Display apparatus, display system, and display method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant