What do the device descriptors look like?  You can find them in
/proc/bus/usb/devices

Matt

On Sun, Jul 22, 2007 at 01:26:52PM -0400, Ron Gage wrote:
> Ron Gage wrote:
> > Alan Stern wrote:
> >   
> >> Umm.  I'm not familiar with USB programming under Windows, so I can't 
> >> say what (if anything) the "Function: 0019" means.  It's probably 
> >> something specific to the Windows USB API and not meaningful in other 
> >> operating systems.
> >>
> >>   
> >>     
> > 4    in down    n/a    2.925    VENDOR_ENDPOINT    -   
> > URB Header (length: 80)
> > SequenceNumber: 4
> > Function: 0019 (VENDOR_ENDPOINT)
> 
> > Entirely possible.  I'll look into this further.
> >
> >   
> The function number (0019 - Vendor Endpoint) appears to be relevant: I 
> am trying to send a control message to the device and am getting back 
> error -32 (EPIPE).  I'm using libusb for the comms right now.  Here is 
> the snip from my code:
> 
> 
>       handle = usb_open(dev);
>       if (!handle)
>         {
>         printf ("Could not open device.\n");
>         }
>       else
>         {
>         char buff[128];
>         printf ("Set Configuration returned 
> %d\n",usb_set_configuration(handle, 1));
>         printf ("Claim Interface returned %d\n",usb_claim_interface 
> (handle, 0));
>         while (1)
>           {
>           int r1,r2,x;
>           char b1[4096],b2[4096];
>           r1 = usb_control_msg(handle, 0,0x81,0x80,0, b1, 128,10000);
>           r2 = usb_control_msg(handle, 0,0x81,0x80,0, b2, 128,10000);
> 
> Set Configuration and Claim Interface are both returning 0 here, r1 and 
> r2 are both being set to -32.
> 
> >>> PipeHandle: 00000000
> >>>
> >>> SetupPacket:
> >>> 0000: 00 81 80 00 00 00 00 00
> >>>     
> >>>       
> Ron Gage
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Linux-usb-users@lists.sourceforge.net
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
                                        -- Customer to Greg
User Friendly, 2/10/1999

Attachment: pgp0vNMB2BFcR.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to