CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #8
    Join Date
    Mar 2004
    Location
    KL, Malaysia
    Posts
    63

    Re: Can I read data simultaneously from same serial port?

    Quote Originally Posted by fantasy1215 View Post
    One process(I have not owned the code) existing in my application open the serial port COMx to read data(I can ensure that the process don't write data to COMx), Now I need to open COMx also to read data.
    So can you suggest some wordaround?
    One com port can only serve one connection at a time. Unless you have ways for the 3rd party process to connect/release the port as you wish, there is no way for your own process to gain the port connection.

    The only way I can think of is to install a new com port (new hardware), then tab pin 2,3,5 of existing com port (with extra wires) over to pin 2,3,5 of new port, and have your own process connect to new com port. That way, your own process will receive the same data simultaneously.

    Regards
    Kevin Choong
    Last edited by ckweius; April 6th, 2009 at 03:27 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

Featured