How .NET connect to USB device?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I would like to know how .NET connect to USB device?

Is there any class provided for USB device?

Best Regards,
KPH
 
Nothing built in, unless the USB device is a network/IR/Bluetooth device.
USB is just a connection layer, a lot like PCI or PCMCIA, connecting to the
device depends almost entirely on the kind of device that you're connecting.
 
So, what is your comment if I would like to use it with my App.

Am I need to implement a driver by DDK?

KPH
 
Hi,

I suggest that you get a copy of Jan Axelson's book, USB Complete, 2nd
Edition. I have a link to it from Books on my homepage.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
What kind of device are you trying to connect to????

For example, if you are trying to connect to a USB drive, there is nothing
that you have to do except access it like any other drive, just like Floyd
said.
 
When you install the device, does it install a virtual serial port? If it
does then you can use one of the serial classes (look at
www.componentscience.net, www.saxcomm.com, www.gotdotnet.com, etc), but the
CLR doesn't have support for serial port access built in. If the device
installs network drivers, then you can use the .NET Socket class. When all
the fancy wrappers are removed, *all* computer hardware transmits binary
data, so you'll need to be more specific<g>
 
Back
Top