09-12-2014 08:57 AM
Hello,
I create a dll which manage serial ports. When I use it with only one process, I'm able to communicate on the serial port.
But I would like use a second process which communicate on the same serial port through the same dll. I know it's impossible to open it twice, my dll manage it.
The problem is I can't read or write with the second proccess on the port even if it's already open in the same dll.
Is it a way to share serial port without use specific software like this one (http://www.eltima.com/fr/products/serialshare/) ?
Thank you
Ludo
Solved! Go to Solution.
09-15-2014 12:19 PM - edited 09-15-2014 12:23 PM
I don't think you can call dll from two different applications and expect it to work. When it is called from second application it creates another stack and hence another copy of dll which is trying to access same serial port which is already opened by first copy of dll.
Have you looked at this? 32bit version is free.
http://www.eterlogic.com/Products.VSPE.html
09-17-2014 02:46 AM
Thanks for your help test_man.
It would be my solution.
02-07-2017 05:24 PM
test_man
I have tried using VSPE to split an existing com port (FTDI USB-serial cable) and I'm not getting any data events from InstallCommCallback(). The splitter port seems to open without any errors.
Have you actually tried this? if so, any pointers to what I might be misconfiguring? I've tried a number of terminal emulators and they all connect to the splitter port and receive data just fine.
CVI 2013
Windows 7 Pro SP1 64 bit