473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Accessing a USB port

I have looked through all the VB.Net help and this forum but I cannot find
any mention of how to read and write to a USB port.
Is it possible in VB? Can some one point me to some documentation?
Thanks
May 10 '06 #1
4 1665
Hello RichG,

One of the samples is there http://www.developerfusion.co.uk/show/4392/1/

R> I have looked through all the VB.Net help and this forum but I cannot
R> find
R> any mention of how to read and write to a USB port.
R> Is it possible in VB? Can some one point me to some documentation?
R> Thanks
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 10 '06 #2
Thanks Michael
I thought .Net might have better i/o control. I'll probably just end up
buying a USB libary from someone. That should be the easyest thing to do.

"Michael Nemtsev" wrote:
Hello RichG,

One of the samples is there http://www.developerfusion.co.uk/show/4392/1/

R> I have looked through all the VB.Net help and this forum but I cannot
R> find
R> any mention of how to read and write to a USB port.
R> Is it possible in VB? Can some one point me to some documentation?
R> Thanks
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

May 10 '06 #3
What sorts of things do you want to do? I doubt if there is any single
"general purpose" library. Often the USB device manufacturer prvides the
device driver -- this may or may not have an accessable API. There are
classes of USB devices (HID) for which there are standard APIs, and, of
course, there are other devices that are less common, but that also have
standard APIs.

What I'd suggest that you do is to get a book like Jan Axelson's USB
Complete 3rd Edition, which includes .NET information. This is a good
starting point, IMO. I have a link to it under Books on my homepage.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
May 10 '06 #4
Is there a reason why you can't just get the Drive letter and use the IO
library to do your operations? Getting all removable drives from the
filesystem will get you the drive letters of the USB storage devices that are
plugged in.

--
KMG Software, Inc.
Thinking Beyond, Above, and Before
http://www.kmgsoftware.com
"RichG" wrote:
I have looked through all the VB.Net help and this forum but I cannot find
any mention of how to read and write to a USB port.
Is it possible in VB? Can some one point me to some documentation?
Thanks

May 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MSDousti | last post by:
Hi, everyone. I have written this code in Tubo C++ 3.0 earlier, and now I want to port it to VC.NET: int out=0; out=(out & 0xDF); outportb(0x378,out); .... As you see, it seeks to parallel...
19
by: Joseph MCAD | last post by:
April 5, 2005 Does anybody know how to access these newsgroups through a newsreader? I would prefer to use Outlook Express. If you know the name of the news server and any other configuration...
3
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating...
5
by: George T. | last post by:
I need to access the serial port via python on a windows machine. Reading on the web, there are three solutions: pyserial, siomodule and USPP. pyserial seems to be the best option since the other...
5
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance...
6
Coldfire
by: Coldfire | last post by:
How can I know that which Application is accessing the port COM1/COM2/LPT/any ? Is there any software-utility available on net? plz help asap (i have moved the post from community cafe to here)
8
by: John | last post by:
Hi We had an sbs 2003 with isa 2000 server. We wre able to access a remote sql server (hosted at our web host) just fine. We replaced the server with a new sbs 2003 r2 with isa 2004 server and...
0
by: satheeshviswanathan | last post by:
Hi, I am new to visual c#/.NET. Can anyone help me in accessing a virtual serial port(COM port) in a c#/.NET windows application.I have a s/w for virtual serial port. I need to connect two COM...
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
2
by: dcblair | last post by:
Hi guys and girls. I can't seem to figure this one out. Here is my setup: Speedtouch 536 DSL Modem, Nexxt 4 Port Wireless Router, CNET CIC 920W Wireless IP Camera. The camera is set up in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.