views:

319

answers:

2

I have to use AT commands to setup my dial up modem (modulation seleccion, speed, etc), and dial other modem. Once the connection is stablished I have to transfer/receive files via zmodem, xmodem...

I have to run a batch of tests with different speeds, modulations (v.92, v.90, v.34...) so i need a scriptable terminal program (hyperterminal can't do this). It has to be in windows.

A: 

I don't know of a scriptable terminal, however, you can connect to a COM port using Plink which is the command line terminal which comes with Putty.

(To connect to a COM port using Plink create a saved session using the PuTTY GUI and then use this name on the Plink command line.)

As Plink is a command line tool you could script it yourself using your favourite programming language or with something such as Expect.

Dave Webb
Thanks, that was very useful!
A: 

Use pySerial from sourceforge. I think that the script you want could be easily generated from the scan example provided in pySerial svn.

http://pyserial.wiki.sourceforge.net/pySerial http://pyserial.wiki.sourceforge.net/pySerial

Dmitry