On Thu, 6 Apr 2006, Srinivas G. wrote:
> Dear All,
>
> I have developed a USB client driver for a custom device in 2.6.x kernel
> on a Fedora Core 3 Linux box.
>
> This driver is very simple driver (it only contains simple read and
> write functionality) and I developed based on the skeleton driver that
> is available in the source tree.
>
> To test the driver I have developed a small C application where I am
> writing a command and reading the response. The command I wrote is
> "0xbe" then I got the Serial Number as response. (I took this command
> one of my friends).
>
> Now I need some help from you all to get the Vendor ID and Device ID as
> response to the commands. What are the commands to get the Device ID or
> Vendor ID of my custom device?
You don't need to use any command because the device and vendor IDs are
already stored in the usb_device structure. You can access them by doing:
le16_to_cpu(usbdev->descriptor.idProduct)
le16_to_cpu(usbdev->descriptor.idVendor)
> I have tried with some of the mono applications.
Tried to do what? What mono applications?
> But I got a compilation
> error - Could not find the ObjectQuery method which is included in the
> System.Managemet. And I came to know MONO Framework does not include the
> whole functionality of the System.Managemet.
What does MONO have to do with USB development?
Alan Stern
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel