Windows Vista Forums

Communicating with RS232 (USB) Ports
  1. #1


    p byers Guest

    Communicating with RS232 (USB) Ports

    I googled for an answer - found several expensive dlls/exes to download
    !!

    Found a Script that looks like it could work.



    Dont have MSCommLib
    Anyone got Instructions/Advice about obtaining/installing/regisrtering
    it ??
    (Lots of almost incomprehensible warnings about installation problems
    given in Google !!)

    Some help would be most helpful - please - thank you.

    Pete(Northolt UK)


      My System SpecsSystem Spec

  2. #2


    mr_unreliable Guest

    Re: Communicating with RS232 (USB) Ports

    p byers wrote:

    > Dont have MSCommLib
    > Anyone got Instructions/Advice about obtaining/installing/regisrtering
    > it ??
    Hi Pete,

    If you google around, you will find that MSCommLib is a class
    contained in MSComm32.ocx.

    And MSComm32.ocx was a component shipped with VB6. Note that
    VB.Net does not support serial communications, probably because
    m$ thinks that serial comm is obsolete.

    If you don't have vb6 installed, you best bet would be to find
    a buddy with vb6 installed and "borrow" a copy. (Note that m$
    may frown on this unless you sign an "End User License Agreement",
    an EULA for short).

    If you google some more, you will find some sites offering you
    a copy of MSComm32.ocx, for example:

    http://www.tech-archive.net/Archive/.../msg01077.html

    but, I couldn't find an "offical microsoft" download for it.

    cheers, jw
    ____________________________________________________________

    You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
    the answers will be applicable to the questions)

      My System SpecsSystem Spec

  3. #3


    mr_unreliable Guest

    oops

    mr_unreliable wrote:

    > Note that VB.Net does not support serial communications,
    > probably because m$ thinks that serial comm is obsolete.
    >
    oops, blush,stammer, WRONG!!!

    vb.net supports serial communications as the "serialport"
    subclass of the "System.IO.Ports" class.

    http://msdn.microsoft.com/en-us/libr...erialport.aspx

    So, if you don't happen to have vb6 around, you can write
    an "interop" assembly for accessing your serial port in
    vb.net. Then use "regasm" to register your assembly as
    a COM component, and then use it from script.

    mea culpa, mea culpa, mea culpa, jw

      My System SpecsSystem Spec

  4. #4


    Si Ballenger Guest

    Re: Communicating with RS232 (USB) Ports

    On Tue, 30 Jun 2009 06:31:31 +0100, p byers <pb@newsgroup-ltd.co.uk>
    wrote:

    >I googled for an answer - found several expensive dlls/exes to download
    >!!
    >
    >Found a Script that looks like it could work.
    >
    >Dont have MSCommLib
    >Anyone got Instructions/Advice about obtaining/installing/regisrtering
    >it ??
    >(Lots of almost incomprehensible warnings about installation problems
    >given in Google !!)
    >
    >Some help would be most helpful - please - thank you.
    >
    >Pete(Northolt UK)
    >
    You can write to the comport like below, but no input from the
    port.

    Set fs=CreateObject("Scripting.FileSystemObject")
    Set a = fs.CreateTextFile("COM1:",True)
    a.write chr(255)
    a.write chr(1)
    a.write chr(127)
    a.Close


      My System SpecsSystem Spec

Communicating with RS232 (USB) Ports problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
usb to rs232 converter longrider Vista hardware & devices 3 23 Feb 2009
usb to rs232 cable install problems longrider General Discussion 0 20 Feb 2009
RS232 COM-Port handler Carsten Lahme VB Script 1 20 Nov 2008
RS232 and Media Center rescued Media Center 0 16 Oct 2008
Serial RS232 Adapter for Windows Vista Yorgy Vista hardware & devices 1 15 Apr 2008