[libhid-discuss] Digital Arts & Crafts Studio - HID help needed

Bill Kendrick nbs at sonic.net
Tue Nov 6 18:21:54 UTC 2007


Hi there, I just subscribed.  I'm author of the open source kid's
drawing program "Tux Paint" ( http://www.tuxpaint.org/ )

Recently while at a store, I noticed the Fisher-Price "Digital Arts & Crafts
Studio," a USB-based drawing tablet ('digitizer', as some call them) for
kids.  It has a basic, non-pressure-sensitive pad and stylus, and a number
of buttons for doing things like changing tools, choosing a color, etc.

I thought it would be a cool thing to support under Tux Paint, and as a
gift, my wife bought me one.  (They're about $50USD.)  It comes with
Windows software, which I've not tried yet, but upon plugging it into a
Linux 2.6.22 system (a Kubuntu 7.10 laptop), a device node at
"/dev/usb/hiddev0" appeared.  It sends a continuous stream of data
when I read it (e.g., using "xxd"), which repeats every 88 bytes.
The data changes when I press buttons or move the stylus on the device,
so I was pretty confident I'd get it to do something under Linux.

Some folks directed me to libhid, and I've begun (began?) creating a small
test app to read from the device.  I'm finally to the point where I can
call "hid_get_input_report()", but at the moment, I'm getting nothing but
zeros.  I think I'm using the wrong 'usage' path, so came here to get help.

Here's the output from "lsusb -vvv" for the specific device
("-d 0x0813:0x1006").  Based on this, I thought I'd only need to
specify one path for input, "0xff000001", but...?


Bus 003 Device 007: ID 0813:1006 Mattel, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0813 Mattel, Inc.
  idProduct          0x1006 
  bcdDevice            0.92
  iManufacturer           1 Fisher-Price
  iProduct                2 DACS
  iSerial                 3 DACS0000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      28
          Report Descriptor: (length is 28)
            Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                            (null)
            Item(Local ): Usage Maximum, data= [ 0x02 ] 2
                            (null)
            Item(Global): Logical Minimum, data= [ 0x80 ] 128
            Item(Global): Logical Maximum, data= [ 0x7f ] 127
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x0b ] 11
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                            (null)
            Item(Local ): Usage Maximum, data= [ 0x02 ] 2
                            (null)
            Item(Main  ): Output, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)


Can someone assist? :)  Thanks!

-- 
-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/



More information about the libhid-discuss mailing list