DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    John O. Guest

    Com port Serial Communication.


    I have an external Modum connected to Com1 Port on my PC. I would like to
    configure ( Baoud rate, etc.. ) the Com1 port and send out a string of characters
    to the Modum to dial out a phone number. I looked through the .NET class
    library and could not find a Class to deal with this.
    Thank you for the help.



  2. #2
    Patrick Steele Guest

    Re: Com port Serial Communication.

    In article <3c42da69$1@147.208.176.211> (from John O.
    <OTABACHIANO@NIMO>),
    >
    > I have an external Modum connected to Com1 Port on my PC. I would like to
    > configure ( Baoud rate, etc.. ) the Com1 port and send out a string of characters
    > to the Modum to dial out a phone number. I looked through the .NET class
    > library and could not find a Class to deal with this.


    You'll need to either use COM-Interop with the MSComm ActiveX control or
    use the windows API directly. There's currently no direct support for
    COM ports in .NET. See:

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

    X10 Firecracker (Beta 2)
    http://msdn.microsoft.com/code/defau...de/sample.asp?
    url=/msdn-files/026/002/414/msdncompositedoc.xml

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

    --
    Patrick Steele
    Microsoft .NET MVP

  3. #3
    Dick Grier Guest

    Re: Com port Serial Communication.

    Hi,

    I have VB.NET example code prepared of the 3rd Edition of my book (due out
    by Feb 13). However, I suggest that you consider using MSComm (the
    Microsoft Communications control) and COM Interop. It is simple, and is
    compatible with lots of example code -- for instance the other code in my
    book, including all of the 2nd Edition.

    --
    Richard Grier (Microsoft Visual Basic MVP)
    Hard & Software
    12962 West Louisiana Avenue
    Lakewood, CO 80228
    303-986-2179 (voice)
    303-986-3143 (fax)
    Leave voice mail or fax that I can receive as email at 303-593-9315
    Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
    Edition ISBN 1-890422-25-8 (355 pages).
    For information look on my homepage at http://www.hardandsoftware.net.
    Use the Books link to order. For faster service contact the publisher at
    http://www.mabry.com.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links