Tim - 

Thanks for the email, I’m sorry, that was my bad.

you can change that to the following:

libusb_control_transfer(handle, 0x42, 0x3, variable1, variable2, buf[1], 1, 
500);

Maybe that answers my question. I don’t have endpoint 3 on my device, so maybe 
winusb is restricting communication where libusbk is not?

Thanks so much Tim.

Very Sincerely,
Jason

On Dec 26, 2013, at 9:58 AM, Tim Roberts <t...@probo.com> wrote:

> Jason Kotzin wrote:
>> In windows, 8.1, I’m sending a vendor specific control request that looks 
>> like the following:
>> 
>> Broken down, this is what an example looks like where variable1 and 
>> variable2 can be 0-255
>> 
>> rq = fl_send_msg(0x42, 0x3, variable1, variable2, buf[1], 1, 500)
> 
> Since we don't know what "fl_send_msg" is, it's a little hard to make an
> assessment.   Are those parameters RequestType, Request, Index, and
> Value?  Are you trying to send a buffer there?
> 
> 
>> The result is that the transfer fails with error code 87, “the parameter is 
>> incorrect”.
> 
> You are sending an outgoing vendor request to an endpoint.  If the
> second parameter is Request, then you are sending to endpoint 3.  To do
> that, Windows requires that you actually "own" the interface that
> contains endpoint 3.  Have you already done that?  It looks like you
> claimed interface 1.  Does that hold endpoint 3?
> 
> -- 
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
> 
> 
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> libusbx-devel mailing list
> libusbx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusbx-devel


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to