473,473 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to establish USB Connection in VB .Net

Hi,

I am new to VB.Net and would like to write a program that communicates with
and device via USB port. Is there a sample code that show me that?

I tried searching in the web but could not find anything useful.

Thanks and please help!

rgds.
Oct 20 '08 #1
3 9095
Hello
As the S in USB stands for Serial you can just use anny example that
comunicates to a serial port
like the one below

http://www.microsoft.com/downloads/d...DisplayLang=en

regards

Michel Posseth

"Goaman" <Go****@discussions.microsoft.comschreef in bericht
news:F1**********************************@microsof t.com...
Hi,

I am new to VB.Net and would like to write a program that communicates
with
and device via USB port. Is there a sample code that show me that?

I tried searching in the web but could not find anything useful.

Thanks and please help!

rgds.

Oct 20 '08 #2
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:uF**************@TK2MSFTNGP05.phx.gbl...
Hello

As the S in USB stands for Serial you can just use anny example that
comunicates to a serial port
like the one below

http://www.microsoft.com/downloads/d...DisplayLang=en
Have you tried working with USB using standard Serial I/O?... fwiw, the "B"
in USB stands for BUS, not PORT, so that code's not going to do much good...

There are several Serial to USB converters out there. With one of /those/
plugged in, that code might work.

--
Ken Halter
Part time groupie
Oct 20 '08 #3
Ken ,

AFAIK Many USB devices simply emulate COM ports so in that case the
provided code should work
but for the case it doesn`t respond
http://www.icsharpcode.net/opensource/sharpusblib/

HTH

Michel
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.comschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:uF**************@TK2MSFTNGP05.phx.gbl...
>Hello

As the S in USB stands for Serial you can just use anny example that
comunicates to a serial port
like the one below

http://www.microsoft.com/downloads/d...DisplayLang=en

Have you tried working with USB using standard Serial I/O?... fwiw, the
"B" in USB stands for BUS, not PORT, so that code's not going to do much
good...

There are several Serial to USB converters out there. With one of /those/
plugged in, that code might work.

--
Ken Halter
Part time groupie

Oct 20 '08 #4

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

Similar topics

0
by: TJ | last post by:
Dear Sir/Madam I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer Basically, this control is very similiar to FTP client program. So it should be connecte...
8
by: MLH | last post by:
I wrote a letter to NIST in Boulder, Colorado asking how to glean time/date from their servers from inside an Access 97 app and VBA. Their reply is shown below. Trouble is, I do not know how to do...
1
by: TJ | last post by:
Dear Sir/Madam I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer Basically, this control is very similiar to FTP client program. So it should be connecte...
2
by: Frustrated Developer via DotNetMonster.com | last post by:
I am trying to establish a connection to an Access 2003 database I have stored locally on my C:\ drive. However, everytime I try to run my code I get the following error message. An unhandled...
1
by: edmundleungs | last post by:
It is found that a DB is setup for sometime. One day, the user suddenly cannot connect to DB. We found that the case is as follow: 1. User can connect to DB by issuing command db2 connect...
1
by: vaahini | last post by:
when creating a connection object in VBScript using following code set conn=Server.CreateObject("ADODB.Connection") conn.provider="Microsoft.Jet.OLEDB.4.0;" conn.open...
0
by: sajithamol | last post by:
What is the method/code using which I can establish connection from Rexx to IMS DB and access the same.
1
by: chans | last post by:
i want to know the guidelines to establish a connection i.e ADODB connection to a database.....with an ex. for understanding it...anyone there...
1
by: rhyme2ri2 | last post by:
Hi all, Whenever i try to use 'quote nlst' or 'quote list' in ftp. It gives me this error 425:Can't establish connection. Connection refused'. It works fine when I use ls or dir commands. But I...
0
xploreraj
by: xploreraj | last post by:
Config.: Apache Tomcat 5.5; MySQL 5.0 Hello, I am trying to establish a connection between servlet and MySQL database. For this I have compiled my servlet which has table for inputting...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.