WinUSB LibUSB

"Karsten Schulz" <[email protected]> Mon, 23 Nov 2015 21:35:34 +0100
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <A61958A2EEC9447E8DA8AA959958CDF2@PC100>
Hello togheter,

we have an Microcontroller on the USB Port, and write/read em succseed with LibUSB .
Now we try to read/write with WinUSB.

An Problem is the content of   :  WINUSB_SETUP_PACKET

LibUsb use : usb_control_msg(usb_dev_handle *dev, int requesttype, int request,int value, int index, char *bytes, int size,int timeout)
to send/recieve data , in this case WinUSB need to form out an SetupPacket:

WINUSB_SETUP_PACKET setup;
SetupPacket.RequestType = (1<<5) | 0x80; //try use type from LibUSB
SetupPacket.Request = 0;
SetupPacket.Value = 0;
SetupPacket.Index = 0;
SetupPacket.Length = sizeof(UCHAR);
WinUsb_ControlTransfer(WinusbHandle, SetupPacket, &bars, sizeof(UCHAR), &cbSent, 0);

Command ends Succsesfull! But the part got no data.

Hav any one Information to form out the setup packed correctly so we can use alternat WinUSB ?

We use it for Digispark Atiny85 Microcontrollerboard with arduino : http://digistump.com/wiki/digispark/tutorials/connecting

Thanks much for any Help
Karsten from Berlin
 www.FlexxVision.de

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140

_______________________________________________
Libusb-win32-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel