Re: Need a driver for USB Tablet

Vojtech Pavlik <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hello,

this look like a USB HID compliant device (which is what I thought from
the 0x07 byte in the header), and as such should work with the usbhid.ko
driver. Did you try that?

Vojtech

On Sat, Feb 17, 2007 at 10:07:19AM -0500, [email protected] wrote:
> >On Fri, Feb 16, 2007 at 04:38:03PM -0500, Mazin wrote:
> >
> >> >Go ahead and post the protocol.
> >> OK, here goes.
> >
> >It looks fine - like what one would expect from a simple tablet. Can you
> >add the USB descriptor listing from lsusb -vvv?
> >
> At the bottom.
> >> 
> >> The tablet sends its data in an 8-byte packet.
> >> (Numbers in hex)
> >> 
> >> A typical packet looks like:
> >> 07 80 4f 00 4a 0b 00 00
> >> 
> >> The bytes, from left-to-right, are:
> >> 1: ? Not sure, but from my testing it's always 07
> >> 2: The button codes for when buttons are pressed (there are two buttons 
> >> on the barrel of the pen):
> >>    81 = Pen tip touch (translates to LMB)
> >>    82 = Bottom side button (closest to pen tip)
> >>    84 = Top side button (translates to RMB)
> >>    C0 = I'm not sure, but I think it might indicate when the pen is not 
> >> in the sensing range of the tablet.
> >> 3: X-pos small increment (from 00 to FF)
> >> 4: X-pos large increment (goes up to 0F).  Each one of these is "worth" 
> >> 256, since byte three can only count to FF.
> >> 5: Y-pos small increment (from 00-FF)
> >> 6: Y-pos large increment (goes up to 0B).  Works like the X-pos.
> >> 7: Pen pressure (goes up to FF)
> >> 8: Pressure large increment, "worth" 256.  My tablet has 512 degrees of 
> >> pressure, so for 512, byte seven is FF and byte 8 is 01.  On my tablet 
> >> it's either 00 or 01, but tablets with a greater pressure range may have 
> >> higher values.
> >> 
> >> I'm not a USB expert, but I suspect that something special happens when 
> >> the tablet is first plugged in.  For brevity's sake, I have the raw 
> >> sniffer data from when I first plug my tablet in on a computer with the 
> >> Windows driver installed.  You can find it at 
> >> http://files.aztekera.com/apps/tabletinitialization.txt
> >> 
> >> If this isn't enough I can provide more data, although I might not know 
> >> what to do with it.
> >> 
> >> As always, thanks for any support,
> >> Mazin
> >> 
> >
> >-- 
> >Vojtech Pavlik
> >Director SuSE Labs
> 
> The relevant lsusb info is:
> 
> Bus 003 Device 005: ID 5543:0003 UC-Logic Technology Corp. 
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               1.10
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0 
>   bDeviceProtocol         0 
>   bMaxPacketSize0         8
>   idVendor           0x5543 UC-Logic Technology Corp.
>   idProduct          0x0003 
>   bcdDevice            0.00
>   iManufacturer           1  
>   iProduct                2 TABLET DEVICE
>   iSerial                 0 
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           34
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          4 Tablet Mouse
>     bmAttributes         0xa0
>       (Bus Powered)
>       Remote Wakeup
>     MaxPower              100mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         3 Human Interface Devices
>       bInterfaceSubClass      1 Boot Interface Subclass
>       bInterfaceProtocol      2 Mouse
>       iInterface              2 TABLET DEVICE
>         HID Device Descriptor:
>           bLength                 9
>           bDescriptorType        33
>           bcdHID               1.00
>           bCountryCode            0 Not supported
>           bNumDescriptors         1
>           bDescriptorType        34 Report
>           wDescriptorLength      94
>          Report Descriptors: 
>            ** UNAVAILABLE **
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0008  1x 8 bytes
>         bInterval              10
> Device Status:     0x0000
>   (Bus Powered)
> 
> Just one thing I thought was weird.  In GNOME's device manager, for the tablet, it lists the values for hiddev.product and info.product as "  TABLET DEVICE" (with the two spaces in front of it).
> 
> --Mazin
> 

-- 
Vojtech Pavlik
Director SuSE Labs

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.