![]() |
|
|||
|
I am working on a script to configure MT-GLs. The beggining of my script issues the following at commands to get GPRS configured:
AT&F AT$AREG=0 AT+CGDCONT=1,"IP","m2m.t-mobile.com" AT%CGAATT=0,0 And these commands work fine when I type them by hand. However, when I run the script, CGAATT return ERROR. I found that only by adding an inter-character delay of almost 0.5 seconds can I get the commands to reliably succeed. This seems hard to believe, has anyone else seen this? |
|
|||
|
The inter-character delay thing may not have really been the problem, it was all very difficult to reproduce, but here is a sequence of commands I finally came up with that has yet to fail.
AT&F AT&W AT$RESET AT%CGAATT=0,0 AT$AREG=0 AT+CGDCONT=1,"IP","m2m.t-mobile.com" AT$AREG=2 AT&W |
|
|||
|
bappelt, I tried your test script only to get the same error on the AT%CGAATT line. Everything I program have the HT defaults of: Line delay 200 mill sec and character delay 10 mill sec. I tried slowing the character delay down to .5 as you did, but that was way too slow.
I too am trying to incorporate the AT%CGAATT=0,0 into my script without having to enter it manually. Does anyone have any ideas on this one? |
|
|||
|
Marty,
I have stopped using HyperTerminal to do this, I have started using a terminal program called Zoc which I find much better, it has a trial version. ZOC - Telnet Client, SSH Client, SSH2 Client (Secure Shell) for Windows Zoc has a scripting language which I have used to program enfora devices quite effectively. I have attached a script that seems to execute the commands correctly. Download the trial edition of Zoc and see if it works for you. I had to rename the script to .txt to upload it to the forum, but just change the extension to .zrx to keep Zoc happy. |