Hi Dick
Thanks for your information
I own your book (but the 2nd Edition) ; I will describe what I want and hope
to have your advice
I have a data logger with customized software for data retrieval via RS232;
I want to use 2 modems to be able to download the data remotely.
The customized software is hard coded to use COM-1 and there is no way to
have a version of it that can use a modem instead of direct connection to
serial port.
So; I want to have a small application that can open COM-1 in shared mode
and issue AT-Commands to the modem to establish the connection with the
remote Data Logger, and after the success of connection I can run the
original data logger software ; which will not notice the modem and be fooled
that the data logger is connected directly on the Port
Sorry for this long story ... But what do you think
Or if there is other ways
I tried Eltima Shared Serial Ports … but I have some problems with it .
Thanks in advance
Essam
"Dick Grier" wrote:
Hi,
For the most part, this may not be practical. There are commercial products
that do this, by creating a virtual device driver that permits some forms of
sharing (Eltima and Franson are keywords that you can use to search Google).
Also, I have a VB code example in my book (see below) for serial port
sharing. However, it requires that you have control of all code that is
sharing the port, and that you write your code with an understanding of the
limitations of such sharing.
If you tell me more about what you really need, I may be able to offer some
more specific suggestions.
Dick
--
Richard Grier (Microsoft Visual Basic MVP)
See www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.