C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 12-09-2005, 07:29 AM   #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.
lsme is offline   Reply With Quote
Old 12-10-2005, 01:57 PM   #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 ... ...
Hermitsky is offline   Reply With Quote
Old 12-11-2005, 11:43 PM   #3
Registered User
 
Join Date: Feb 2003
Posts: 16
-thankyou
lsme is offline   Reply With Quote
Old 12-12-2005, 06:02 AM   #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.
Quantum1024 is offline   Reply With Quote
Old 12-12-2005, 07:42 AM   #5
Registered User
 
Join Date: Mar 2005
Location: Mountaintop, Pa
Posts: 1,059
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.
BobS0327 is offline   Reply With Quote
Old 12-12-2005, 11:32 PM   #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.
lsme is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 06:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22