Teensy as GeneralTouch.com SAW Touch Screen Controller

Status
Not open for further replies.

paulhewson

New member
Hello.
I use Teensy with Keyboard + Mouse + Touchscreen Emulator without any problem on Windows OS.

But on Linux based system (Ubuntu), I take out orginal touchscreen controller. And system gives error "No touch controller". But when I plug Teensy 3,2,, There is no error any more.

But the problem is; I say run this code on Teensy, nothing happens on target computer.

TouchscreenUSB.press(0, xvalue, yvalue);
delay(25);
TouchscreenUSB.release(0);


Since I want target computer to recognise teensy as original touch controller, I even changed VendorID Product ID and so on.

Here I add the result of "lsinput" of the original touch controller and Teensy's.. What am I supposed to do? Any help? Thank you.

ORIGINAL TOUCH CONTROLLER
/dev/input/event1
bustype : BUS_USB
vendor : 0xdfc
product : 0x1
version : 514
name : "GeneralTouch.com SAW Touch Scree"
phys : "usb-3f980000.usb-1.2/input0"
bits ev : EV_SYN EV_KEY EV_ABS


TEENSY's HARDWARE INFO
/dev/input/event1
bustype : BUS_USB
vendor : 0x16c0
product : 0x4d4
version : 273
name : "Teensyduino Keyboard/Mouse/Touch"
phys : "usb-3f980000.usb-1.2/input0"
uniq : "8261750"
bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP

/dev/input/event2
bustype : BUS_USB
vendor : 0x16c0
product : 0x4d4
version : 273
name : "Teensyduino Keyboard/Mouse/Touch"
phys : "usb-3f980000.usb-1.2/input1"
uniq : "8261750"
bits ev : EV_SYN EV_KEY EV_REL EV_ABS EV_MSC

/dev/input/event3
bustype : BUS_USB
vendor : 0x16c0
product : 0x4d4
version : 273
name : "Teensyduino Keyboard/Mouse/Touch"
phys : "usb-3f980000.usb-1.2/input3"
uniq : "8261750"
bits ev : EV_SYN EV_KEY EV_REL EV_ABS EV_MSC

/dev/input/event4
bustype : BUS_USB
vendor : 0x16c0
product : 0x4d4
version : 273
name : "Teensyduino Keyboard/Mouse/Touch"
phys : "usb-3f980000.usb-1.2/input4"
uniq : "8261750"
bits ev : EV_SYN EV_KEY EV_ABS EV_MSC
 
Hello. Topic is still open. Really I am willing to pay for those who can help me about it. You can write me PM.

The touch controller I want is;
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


Which means

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
 
Status
Not open for further replies.
Back
Top