473,612 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

USB port

Im new to .net. I would like to upgrade an existing application to .net and
add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar driver
in .net for USB ports? any tutorial page out there?

Thanks in advance,
Aaron
Jul 21 '05 #1
10 4317
"Aaron" <ku*****@yahoo. com> schrieb:
Im new to .net. I would like to upgrade an existing application to .net
and add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar
driver in .net for USB ports? any tutorial page out there?


USB is a /bus/, not a port. Typically communication with a special device
is done over DLLs/drivers provided by the connected device's manufacturer.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jul 21 '05 #2
so how can i read data from the usb port, since i am the device
manufacturer.
for serial ports i just need to load the mscomm.dll and start reading.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uI******** ******@TK2MSFTN GP14.phx.gbl...
"Aaron" <ku*****@yahoo. com> schrieb:
Im new to .net. I would like to upgrade an existing application to .net
and add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar
driver in .net for USB ports? any tutorial page out there?


USB is a /bus/, not a port. Typically communication with a special device
is done over DLLs/drivers provided by the connected device's manufacturer.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jul 21 '05 #3
If anyone can offer any info, links etc please do, I am also interested in
this thread

Regsrds

"Aaron" <ku*****@yahoo. com> wrote in message
news:uH******** ******@tk2msftn gp13.phx.gbl...
so how can i read data from the usb port, since i am the device
manufacturer.
for serial ports i just need to load the mscomm.dll and start reading.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uI******** ******@TK2MSFTN GP14.phx.gbl...
"Aaron" <ku*****@yahoo. com> schrieb:
Im new to .net. I would like to upgrade an existing application to .net
and add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar
driver in .net for USB ports? any tutorial page out there?


USB is a /bus/, not a port. Typically communication with a special
device is done over DLLs/drivers provided by the connected device's
manufacturer.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Jul 21 '05 #4
"Aaron" <ku*****@yahoo. com> wrote in
news:uH******** ******@tk2msftn gp13.phx.gbl:
so how can i read data from the usb port, since i am the device
manufacturer.
for serial ports i just need to load the mscomm.dll and start reading.

This may help:

http://www.tetradyne.com/dxusb.htm

There might be other products like DriverX USB.

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Jul 21 '05 #5
Hi

If you've been using mscomm, then following this link:

http://www.hardandsoftware.net/

will get you started - Dick Grier's website / book are a good place to get
the information you need.

HTH

Nigel Armstrong

"Starbuck" wrote:
If anyone can offer any info, links etc please do, I am also interested in
this thread

Regsrds

"Aaron" <ku*****@yahoo. com> wrote in message
news:uH******** ******@tk2msftn gp13.phx.gbl...
so how can i read data from the usb port, since i am the device
manufacturer.
for serial ports i just need to load the mscomm.dll and start reading.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uI******** ******@TK2MSFTN GP14.phx.gbl...
"Aaron" <ku*****@yahoo. com> schrieb:
Im new to .net. I would like to upgrade an existing application to .net
and add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar
driver in .net for USB ports? any tutorial page out there?

USB is a /bus/, not a port. Typically communication with a special
device is done over DLLs/drivers provided by the connected device's
manufacturer.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



Jul 21 '05 #6
If you're saying that you can just treat the device like a serial port, then
there's a number of libraries out there that provide serial support for
..NET:

http://www.gotdotnet.com/Community/U...4-dfe325097c69

Here's one that's supposed to be very similar to mscomm:

http://www.gotdotnet.com/workspaces/...2-9dcbcf79e1fb

Hope this helps,
Scott Swigart
http://blog.swigartconsulting.com
"Aaron" <ku*****@yahoo. com> wrote in message
news:uH******** ******@tk2msftn gp13.phx.gbl...
so how can i read data from the usb port, since i am the device
manufacturer.
for serial ports i just need to load the mscomm.dll and start reading.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uI******** ******@TK2MSFTN GP14.phx.gbl...
"Aaron" <ku*****@yahoo. com> schrieb:
Im new to .net. I would like to upgrade an existing application to .net
and add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar
driver in .net for USB ports? any tutorial page out there?


USB is a /bus/, not a port. Typically communication with a special
device is done over DLLs/drivers provided by the connected device's
manufacturer.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Jul 21 '05 #7
but how do you treat the usb port like a serial port?
im very suprised by the amount of documentation available on this topic. i
thought there would be a dedicated class in the .net framework for this
purpose, since most devices use USB nowadays.
"Scott Swigart" <sc***@3leaf.co m> wrote in message
news:ep******** ******@TK2MSFTN GP11.phx.gbl...
If you're saying that you can just treat the device like a serial port,
then there's a number of libraries out there that provide serial support
for .NET:

http://www.gotdotnet.com/Community/U...4-dfe325097c69

Here's one that's supposed to be very similar to mscomm:

http://www.gotdotnet.com/workspaces/...2-9dcbcf79e1fb

Hope this helps,
Scott Swigart
http://blog.swigartconsulting.com
"Aaron" <ku*****@yahoo. com> wrote in message
news:uH******** ******@tk2msftn gp13.phx.gbl...
so how can i read data from the usb port, since i am the device
manufacturer.
for serial ports i just need to load the mscomm.dll and start reading.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uI******** ******@TK2MSFTN GP14.phx.gbl...
"Aaron" <ku*****@yahoo. com> schrieb:
Im new to .net. I would like to upgrade an existing application to .net
and add USB support.
How do i write a .net application with USB support?
We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar
driver in .net for USB ports? any tutorial page out there?

USB is a /bus/, not a port. Typically communication with a special
device is done over DLLs/drivers provided by the connected device's
manufacturer.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



Jul 21 '05 #8
"Aaron" <ku*****@yahoo. com> wrote in
news:ON******** ******@TK2MSFTN GP09.phx.gbl:
but how do you treat the usb port like a serial port?
im very suprised by the amount of documentation available on this
topic. i thought there would be a dedicated class in the .net
framework for this purpose, since most devices use USB nowadays.


I think the problem is that writing a USB driver is still a low level
function - .NET 1.0 doesn't expose enough low level functions to allow you
to write a USB driver effective. As a result, you need to write the USB
driver in a language like C++ and then expose the device via an API to
..NET. In short, I don't think you can access USB hardware directly without
an interface or a specialized component like DriverX for USB.

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Jul 21 '05 #9
Hi,

You can use any serial port methods. You can download NETComm.ocx from my
homepage, for example. There are a number of .NET serial port classes
available for download, and I have one in my book, with lots of examples,
naturally. Also, there is a .NET serial dll in the Visual Basic Developer's
kit, which is available from Microsoft (free download).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Jul 21 '05 #10

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

Similar topics

21
15689
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port 1234, but each instance binds to a different ip address. that is to say: instance #1 binds to 192.168.1.5/port 1234 instance #2 binds to 192.168.1.6/port 1234 instance #3 binds to 192.168.1.7/port 1234
0
1644
by: per.bergstrom | last post by:
To whom it may concern, The serial port server 'cnhd38' has been terminated (on who's initiative, I don't know). It affects the users of the (at least) following nodes: cnhd36, cnhd44, cnhd45, cnhd46, cnhd47. The new terminal server to use is called 'msp-t01'. The port numbers that are of interest for the nodes mentioned above are as follows:
2
13172
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. However, I'm unsure of how exactly I should be designing the program, I thought I could use threading to start class: class scanner(Thread): def __init__(self,port):
5
4019
by: Jason | last post by:
After a server accepts a client connection on a certain port, a new socket is created on the server on a system managed dynamic port to handle the connection. Please confirm this. If so, how can I get the number of the dynamic port in the server (in server code)? Using LocalEndPoint.Port just returns the original listener port number. Thanks,
6
3098
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made to access a socket in a way fobidden by its access permissions."
7
7557
by: Sharon | last post by:
Hi all, I've implemented a TCP server using the Socket async methods. When connecting to the server from 3 instances of hyper terminal, i've noticed that each of the newly created server sockets, uses the same server port. I assumed that a new connection will receive a unique port. If this is the way its suppose to work, is it a performance issue? Is it possible that connections from the same IP will connect on the same server port? I...
4
5061
by: H J van Rooyen | last post by:
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from three hours to three days, then sometimes when I get a comms error and have to send out a nak character, it fails hard... The traceback below pops up. - the first lines are just some debug prints.
25
3614
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's expecting my connection on a certain port. Specifically, I'm trying to write an FTP host, and I'm trying to implement the PORT command. From everything I've read, the client supplies the IP address and port number for where I'm supposed to connect...
13
6189
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I am sending a short message to a group of embedded boxes daisy chained via the serial port. When I send a 'global' message, all the connected units should reply with their Id and Ack in this format '0 Ack' To be certain that I didn't miss a...
5
1817
by: Maciej Sondej | last post by:
Hi, I have problem. I want to react on event which come from IO.Port(RS232). I have a class that works on console application class Program { static void Main(string args) {
0
8173
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8115
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8568
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8254
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8422
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4047
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2555
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1699
muto222
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.