djfeldman
Oct 9, 2007, 02:43 PM
I need to connect 2 modems at the same time to the same task.
For those who are going to ask, I need to debug the communication between two other computers. To do this I need to eavesdrop on their communication: routing each byte from one modem to the other while logging all bytes from both modems to a file. Additionally, I can't add more than 100-200ms to the communications in either direction.
Ideally, I'd like to answer one modem and then dial the other, but it might not matter which modem is connected first.
I'm using a windows XP pro machine with one modem straight into a serial port and the other on the serial port of a usb to serial converter. I've had a problem with the usb port on COM6, it seems to conflict with something, so I moved it to a different usb port and it's now on COM7. That's the hardware I have.
I've tried using the MSCOMM control from VB6 in both c# in .net and, when that didn't work, also on VB6.
In .net I couldn't get either modem to respond at all.
In VB6 I could get only the first modem to respond. Whichever was second didn't. If I dialed first I couldn't answer. If I answered first I couldn't dial. It doesn't matter which modem I used for which purpose.
I'm wondering if the problem is that MSCOMM control isn't reentrant. If so I can't use MSCOMM.
Is there some way to do this? A different language (hopefully, one I can download for free)? A different hardware configuration, I have other computers available, would 2 computers work?
Any ideas would be appreciated.
For those who are going to ask, I need to debug the communication between two other computers. To do this I need to eavesdrop on their communication: routing each byte from one modem to the other while logging all bytes from both modems to a file. Additionally, I can't add more than 100-200ms to the communications in either direction.
Ideally, I'd like to answer one modem and then dial the other, but it might not matter which modem is connected first.
I'm using a windows XP pro machine with one modem straight into a serial port and the other on the serial port of a usb to serial converter. I've had a problem with the usb port on COM6, it seems to conflict with something, so I moved it to a different usb port and it's now on COM7. That's the hardware I have.
I've tried using the MSCOMM control from VB6 in both c# in .net and, when that didn't work, also on VB6.
In .net I couldn't get either modem to respond at all.
In VB6 I could get only the first modem to respond. Whichever was second didn't. If I dialed first I couldn't answer. If I answered first I couldn't dial. It doesn't matter which modem I used for which purpose.
I'm wondering if the problem is that MSCOMM control isn't reentrant. If so I can't use MSCOMM.
Is there some way to do this? A different language (hopefully, one I can download for free)? A different hardware configuration, I have other computers available, would 2 computers work?
Any ideas would be appreciated.