John Chen wrote:
> Thanks Peter, it worked!! I got the serial number from
> libusb_get_device_descriptor!!   I have the following questions:
> 1) So I do not have to install Windows Driver for the devivce at all?
> what is Zadig ?

You installed a driver-based product without understanding what it
was???  You are far too trusting.

Zadig is an installer that installs a generic USB driver, which libusbx
can use.  A driver of some kind is always required for USB devices.


> 2) I need to  have the same code work on Linux, is there a
> equivalent Zadig in Linux?

It's not needed in Linux.  The kernel includes a functional generic driver.


> 3) I have the some legacy code call ::DeviceIoControl in windows, how
> do I map all the parameters to libusb_control_transfer.

It's not that easy.  As I said in the other post, the IOCTL_EZUSB_xxx
commands are part of the custom Cypress FX2 driver.  They are not USB
commands.  Many of them do map to single USB requests, but someone of
them are more complicated.  Cypress used to release the source code for
ezusb.sys, or you could post the ioctls that you need here and I can
offer advice.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to