Reading data off of a serial port 
Author Message
 Reading data off of a serial port

How do I open a COM port to read in a continuous data
stream (from a phone system).  I assume it should be done
through System.IO, but not sure where to go from there.

Thanks,
Tom



Sat, 06 Mar 2004 23:07:34 GMT  
 Reading data off of a serial port


Quote:
> How do I open a COM port to read in a continuous data
> stream (from a phone system).  I assume it should be done
> through System.IO, but not sure where to go from there.

The .NET framework does not provider any COM port access.  However,
someone has use PInvoke to do it with .NET.  See:

http://CSharpindex.com/code/justinIO.asp

--
Patrick Steele



Sun, 07 Mar 2004 05:40:47 GMT  
 Reading data off of a serial port
Tom,
In addition to Patrick's comment.

.Net supports file streams, you can open a COM port as a stream, and read it
that way.

See the X10 Firecracker code example on MSDN:
http://msdn.microsoft.com/code/default.asp?url=/code/sample.asp?url=/...
les/026/002/414/msdncompositedoc.xml

Hope this helps
Jay


Quote:
> How do I open a COM port to read in a continuous data
> stream (from a phone system).  I assume it should be done
> through System.IO, but not sure where to go from there.

> Thanks,
> Tom



Sun, 07 Mar 2004 07:57:46 GMT  
 Reading data off of a serial port
Hello Tom,

I think the easiest way in .Net to do this is to either use the VB6 MSComm
control, or you can go to http://www.*-*-*.com/ and use the
control that{*filter*} Grier has made for this.

Ed Hickey

VB Forum Manager

This posting is provided AS IS with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.



Mon, 08 Mar 2004 08:00:06 GMT  
 Reading data off of a serial port
Have a look here:

http://www.corrado.f2s.com/VBNetRs232.htm

Corrado



Sun, 07 Mar 2004 16:57:46 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. DLL for reading serial port data

2. read data from serial port using vba for Access

3. problems with read data from serial port

4. Reading data from a machine on the serial port

5. WANTED: VB MODULE TO READ DATA FROM SERIAL PORT

6. WANTED: VB MODULE TO READ DATA FROM SERIAL PORT

7. Read data from a serial port

8. read/write data to the serial port

9. Reading serial/parallel port data

10. How to read data from a serial port

11. How to loop comm port control to read text files through serial port in VB3

12. I/O port, Parallel port, Serial port

 

 
Powered by phpBB® Forum Software