Thread: serial port communication from two Application

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    16

    serial port communication from two Application

    I am facing one problem in my office. We are having one pc connection with a serial port device ( HSM ) which is used by one applicaton. It is working fine. Now we are using one more application to connect with that serial device. But, occationaly the device is give "Device is not functioning error". My doubt is whether two application can use single serial port device simultaneously ?. If so, any configuration required ?. If not, Is there any other way to do this ?.
    Pl. can help to solve this issue.

  2. #2
    Never Exist Hermitsky's Avatar
    Join Date
    Jul 2004
    Posts
    149
    so far as i know, you can't open the serial port which is already in use.

    blow me ... ...

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    16
    -thankyou

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Maybe you could create an application that communicates over the serial port and have your other 2 aplications communicate with this application.

    It's just an idea I don't know how succesfull it would be, you would need the application that uses the serial port to manage the other 2 by queueing requests so they don't interfear with each other or receive each others responses.

  5. #5
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    I have a custom application that shares a common serial port with two or more remote computers. A server app is installed as an NT service on the computer with the serial connection. The remote clients connect to the server via an ethernet connection and the server "shares" the serial port with the remote connections. Thus, you may want to try something similiar to this.

  6. #6
    Registered User
    Join Date
    Feb 2003
    Posts
    16
    Thanks. Quantum, bob. This idea will work i think. let me try this. once again thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Duplex communication thro serial port
    By Priyachu in forum Networking/Device Communication
    Replies: 1
    Last Post: 05-30-2009, 04:24 AM
  2. Duplex communication thro serial port
    By Priyachu in forum Linux Programming
    Replies: 1
    Last Post: 05-30-2009, 04:03 AM
  3. Serial port Communication
    By vin_pll in forum C++ Programming
    Replies: 23
    Last Post: 01-07-2009, 09:32 AM
  4. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM
  5. Need help or info about serial port communication
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 01-08-2002, 01:48 PM