A method, device, device and storage medium for adaptive touch data
A touch device, self-adaptive technology, applied in the input/output process of data processing, electrical digital data processing, instruments, etc., can solve the problems that cannot be used directly, and achieve the effect of fast import or transformation, and fast touch device
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 2 It is a flow chart of a method for adaptive touch data provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of touch data identification when a touch device is connected, and the method can be executed by a device for adaptive touch data , including the following steps:
[0023] S110. Establish a touch data parsing model according to the device descriptor of the touch device and the report descriptor of the USB HID.
[0024] There are three types of USB descriptors: standard descriptors, HID descriptors, and Hub descriptors. The standard descriptors are divided into device descriptors, configuration descriptors, string descriptors, interface descriptors, endpoint descriptors, device qualification descriptors and other rate configuration descriptors, and these seven descriptors have similar formats.
[0025] Among them, the device descriptor describes the complete information of the device, which corresponds to the...
Embodiment 2
[0033] image 3 It is a flow chart of a method for adaptive touch data provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this implementation, the step of establishing a touch data analysis model according to the device descriptor of the touch device and the USB HID report descriptor is further optimized as follows: when a touch device is detected, Reading the device descriptor and the USB HID report descriptor of the touch device from the register of the touch device; establishing a touch data parsing model based on the device descriptor and the USB HID report descriptor according to the general protocol specification. Further, the step of parsing the touch data of the touch device through the touch data analysis model, processing and forwarding is further optimized as follows: the touch data analysis model parses out the data corresponding to the general touch protocol in the touch device byte b...
Embodiment 3
[0045] Figure 4 The structural diagram of a device for adaptive touch data provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation of touch data identification when a touch device is connected, and the system can be implemented by the method of adaptive touch data. .
[0046] Such as Figure 4 As shown, the device includes: a model building module 310 and a touch data forwarding module 320, wherein:
[0047] A model building module 310, configured to set up a touch data analysis model according to the device descriptor of the touch device and the report descriptor of the USB HID;
[0048] The touch data forwarding module 320 is configured to analyze, process and forward the touch data of the touch device through the touch data analysis model.
[0049] The embodiment of the present invention provides a device for adaptive touch data, which processes and forwards the touch data by establishing a touch data analysis model according to...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


