Home All Groups Group Topic Archive Search About

Reading from the COM Port

Author
23 Jan 2006 2:09 AM
Scott M.
VS.NET 2003 / 1.1 Framework

I have a piece of hardware that sends signals over an Ethernet cable through
a USB adapter and into the PC.  The USB adapter acts as a COM port for the
PC.  The hardware is very simple and does not require any device drivers
(although the USB/COM port adapter does have its own device driver).

I'd like to be able to write a client (Windows Forms) application that can
read the signals coming in via the COM port.  I have no experience working
with PC ports or hardware input of any kind.

Can anyone give me some direction on how to read data inbound via the COM
port?

Thanks,

Scott

Author
23 Jan 2006 5:41 AM
Woo Mun Foong
Hi,

I assume you have already installed the correct drivers and software that
emulates
a COM port on your PC.

So to http://msdn.microsoft.com/vbasic/previous/2003/downloads/default.aspx

Download 101 Samples for VB 2003 and look at Framework - Using the COM Port


mfwoo


Show quoteHide quote
"Scott M." wrote:

> VS.NET 2003 / 1.1 Framework
>
> I have a piece of hardware that sends signals over an Ethernet cable through
> a USB adapter and into the PC.  The USB adapter acts as a COM port for the
> PC.  The hardware is very simple and does not require any device drivers
> (although the USB/COM port adapter does have its own device driver).
>
> I'd like to be able to write a client (Windows Forms) application that can
> read the signals coming in via the COM port.  I have no experience working
> with PC ports or hardware input of any kind.
>
> Can anyone give me some direction on how to read data inbound via the COM
> port?
>
> Thanks,
>
> Scott
>
>
>
Author
23 Jan 2006 1:50 PM
Scott M.
Thanks Woo, I'll check it out.  And yes, the USB/COM Port adapter driver is
already installed and working.

Show quoteHide quote
"Woo Mun Foong" wrote:

> Hi,
>
> I assume you have already installed the correct drivers and software that
> emulates
> a COM port on your PC.
>
> So to http://msdn.microsoft.com/vbasic/previous/2003/downloads/default.aspx
>
> Download 101 Samples for VB 2003 and look at Framework - Using the COM Port
>
>
> mfwoo
>
>
> "Scott M." wrote:
>
> > VS.NET 2003 / 1.1 Framework
> >
> > I have a piece of hardware that sends signals over an Ethernet cable through
> > a USB adapter and into the PC.  The USB adapter acts as a COM port for the
> > PC.  The hardware is very simple and does not require any device drivers
> > (although the USB/COM port adapter does have its own device driver).
> >
> > I'd like to be able to write a client (Windows Forms) application that can
> > read the signals coming in via the COM port.  I have no experience working
> > with PC ports or hardware input of any kind.
> >
> > Can anyone give me some direction on how to read data inbound via the COM
> > port?
> >
> > Thanks,
> >
> > Scott
> >
> >
> >
Author
23 Jan 2006 7:28 PM
DickGrier
Hi,

You can download DesktopSerialIO.dll from my homepage.  It includes a simple
example.

Feel free to ask specific questions here, after you've taken a look at it.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition, ISBN 1-890422-28-2, Mabry Publishing (391 pages, includes CD-ROM).
July 2004.
See www.hardandsoftware.net for details and contact information.