Results 1 to 5 of 5

Thread: MSComm Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    2

    Question MSComm Control

    I am new to using the MSComm Control. I am trying to to intercept the data that my PC is sending out via its serial port. Once I have captured the data, I would like to store it in a database, and then send it out through the serial port or over the network using UDP or TCP/IP. Anyone have any help on how to get started? Any comments would be appreciated! Thanks!

    Jeff

  2. #2
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: MSComm Control

    This cannot be done with the MSComm contol. When you point the control to an already active Comm port you will get an error.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    2

    Re: MSComm Control

    David -

    Do you know if there is any other way to monitor the serial port?


    Jeff

  4. #4
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: MSComm Control

    I am afraid not - sorry. The best you could hope for would be a DLL that sits between the calling program and Com 1 that acts as a Com 1 proxy that you could interrogate with your VB program. A bit specialised though.

    Hmmmm!!

    You could loop either the TX or RX of com 1 into Com2 though and hook your VB progarm into Com 2. At least you would be able to monitor either TX or RX. A simple transistor circuit would even allow you to monitor TX and RX if you are running half duplex comms at a slow enough speed.

    Another way would be to use the parralel port as your istening device, but watch out for levels - RS232 is plus/minus 10 Volts. Parralel port is +5Volts. You would need to re-constitute the binary into ASCII - messy.

    And last but not least - if you have enough com ports link Com 1 TX into Com 2 RX and Com 1 RX into Com 3 RX. Com 2 and Com 3 would hold the complete conversation that was on Com1.

    .
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  5. #5
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: MSComm Control

    Try to connect the second comm-port RXD-pin to the line you want to intercept. Yes its hardware.

    Success.

    Edit:
    Sorry David, something strange happend with IE. I could not read your post the first time. You had the same soluttion.
    Last edited by namrekka; Mar 10th, 2005 at 03:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width