Hello. I want to simulate touch controller board which is connected to PC. Teensy's USB will be plugged into computer. and I will send coordinates to Teensy by RS232. And it will simulate as if a real human is clicked to touch screen.
I hope I am clelar enough?
/dev/input/event1
bustype : BUS_USB
vendor : 0xdfc
product : 0x1
version : 514
name : "[login to view URL] SAW Touch Scree"
phys : "usb-3f980000.usb-1.2/input0"
bits ev : EV_SYN EV_KEY EV_ABS
sudo usbhid-dump --model=0DFC:0001
001:007:000:DESCRIPTOR 1613583931.675655
05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 03
15 00 25 01 95 03 75 01 81 02 95 01 75 05 81 03
05 01 09 30 09 31 09 00 15 00 26 FF 7F 35 00 46
FF 7F 75 10 95 03 81 02 C0 A1 01 09 01 15 00 26
FF 00 75 08 96 00 02 B1 01 C0 C0
[login to view URL]
Anlamı
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x02, // Usage (Mouse)
0xA1, 0x01, // Collection (Application)
0x09, 0x01, // Usage (Pointer)
0xA1, 0x00, // Collection (Physical)
0x05, 0x09, // Usage Page (Button)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x03, // Usage Maximum (0x03)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x95, 0x03, // Report Count (3)
0x75, 0x01, // Report Size (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x01, // Report Count (1)
0x75, 0x05, // Report Size (5)
0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x30, // Usage (X)
0x09, 0x31, // Usage (Y)
0x09, 0x00, // Usage (Undefined)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x7F, // Logical Maximum (32767)
0x35, 0x00, // Physical Minimum (0)
0x46, 0xFF, 0x7F, // Physical Maximum (32767)
0x75, 0x10, // Report Size (16)
0x95, 0x03, // Report Count (3)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
0xA1, 0x01, // Collection (Application)
0x09, 0x01, // Usage (Pointer)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x96, 0x00, 0x02, // Report Count (512)
0xB1, 0x01, // Feature (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0, // End Collection
0xC0, // End Collection
// 75 bytes