PC Review


Reply
Thread Tools Rate Thread

Accessing USB port

 
 
Amjad
Guest
Posts: n/a
 
      17th Dec 2003
How can we access the USB port to communicate with USB
devices (read/write) using VB.NET ?

Amjad
 
Reply With Quote
 
 
 
 
Jeremy Cowles
Guest
Posts: n/a
 
      17th Dec 2003
"Amjad" <(E-Mail Removed)> wrote in message
news:0acd01c3c4b0$13b800e0$(E-Mail Removed)...
> How can we access the USB port to communicate with USB
> devices (read/write) using VB.NET ?



You want to talk to the port directly (raw data), or do you want to talk to
the driver (which would interpert the raw data for you)?

If you want to talk to the driver, you need to contact the manufacturer, or
if it is a standard device, such as a digital camera, then you need to use
the appropriate windows services (for example, you would use WIA for a
scanner/camera).

If you want the raw data, I would imagin that you could use the windows USB
communication functions, but I have no idea what DLL these are hidden in. I
would start by looking up USB communications in the Platform SDK on MSDN
(msdn.microsoft.com).


HTH,
Jeremy

 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      17th Dec 2003
Hi,

You normally use whatever API is provided by the USB device manufacturer.
For example, a USB serial port or modem will use standard Windows serial
communications APIs.

However, if you have a special, purpose-built, USB device, you can use USB
APIs. These are described in detail (with examples) in 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Accessing PC parallel port through XP Klaus Jorgensen Windows XP Customization 0 23rd Jan 2007 08:16 PM
Accessing a USB port =?Utf-8?B?UmljaEc=?= Microsoft Dot NET 4 10th May 2006 09:50 PM
Accessing an USB port =?Utf-8?B?U25vb3B5?= Microsoft VC .NET 0 8th Oct 2004 09:15 AM
Accessing the USB Port =?Utf-8?B?RG9uQg==?= Microsoft Excel Programming 1 15th Jun 2004 09:07 PM
Accessing Com- and LPT-Port with ASP.NET Gerald Microsoft ASP .NET 1 27th Jun 2003 01:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.