Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hint at using multiple modems?

Status
Not open for further replies.

EDHills

Programmer
Jan 24, 2007
35
US

ok, so still fairly new to Aspect, but have made changes, improvements to a script and now have read now almost 40 pages of threads from this forum (still reading)

Here's what I currently do. I have a varying list of phone numbers that need to be called.
I read it at runtime and call them one at a time and process the script for each one.

The situation though is that I have more than one modem, and I don't know how to use different modems. I've read about using another instance of Procomm but I still don't see how in my script, to use the "other" modem. I'd like to process the runtime data (the #s) and whenever a modem comes avaiable, I start using it for the next "job"

I'm currently at a loss and I haven't read anything that makes much sense of that "Connection Directory" for me..

Feel free to point me at a link or anything. I don't wnat you to do the work for me ;)

Thanks for any help in advance

Michael
 
Unfortunately, there isn't a great way in ASPECT to know when a modem is available. The only real way I have found is to turn on modem command mode and see if success or failure is reported for that command.

Probably the easiest method would be to have one Procomm instance running for each modem on your system and then having a master script that can give the next open instance the connection information for the next entry to dial.

 
thanks for taking the time to respond with your thoughts. I'd come to a similiar conclusion earlier today and glad that you also would be thinking along those lines. I'm thinking that, if it's possible and it seems that it is, that I should be able to have 8 scripts differing only by which modem that each one would be using, I am still in the design stage for this at the moment... I have it all working now with the one modem, now, to get it working for 8 ;)

I'm thinking about have a master spawn 8 instances of Procomma and send out the command lines from the text file via DDE to each of the 8 clients and hopefully have the clients notify via DDE the master that they're waiting for the next command and a string with results of the last command for reporting. The master could display run time reporting of what the others are doing.

Am I right in thinking that if I have 8 modems, I can have the 8 scripts differ by only

set modem connection 0
set modem connection 1
set modem connection 2
to differentiate between which modem to use? I'm going to start studying the DDE etc and trying to determin whether it's possible. Hoping it is. ;)

Know this Knob, you're very much appreciated.

Michael

 
One thing to check is that set modem connection 0, 1, etc. may not work as documented in the help file, seems there was something dodgy or not quite documented right, but I could be misremembering.

As for DDE, I have a few sample scripts on my site that may be helpful in getting started with the syntax.

 
So how does one get a particular modem to dial from within a script? (if it's not in a connection directory etc)..

Have you or anyone else ever done it successfully?
If I figure it out, before anyone chimes in, I'll post the answer

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top