M2MForums: Your Online Resource & Community for M2M Application Development  

Go Back   M2MForums: Your Online Resource & Community for M2M Application Development > Hardware > Enfora

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-2007, 11:17 AM
Member
 
Join Date: Nov 2007
Posts: 39
Unhappy Errors with AT%CGAATT and MT-GL

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?
Reply With Quote
  #2 (permalink)  
Old 03-24-2008, 04:56 PM
Member
 
Join Date: Nov 2007
Posts: 39
Default

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
Reply With Quote
  #3 (permalink)  
Old 05-12-2008, 03:13 PM
Junior Member
 
Join Date: May 2008
Posts: 4
Default

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?
Reply With Quote
  #4 (permalink)  
Old 05-13-2008, 10:21 AM
Member
 
Join Date: Nov 2007
Posts: 39
Default

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.
Attached Files
File Type: txt zocSript.txt (752 Bytes, 11 views)
Reply With Quote
  #5 (permalink)  
Old 05-13-2008, 02:53 PM
Junior Member
 
Join Date: May 2008
Posts: 4
Thumbs up

Thanks for the info, I'll give it a shot.
Reply With Quote
  #6 (permalink)  
Old 05-16-2008, 02:14 PM
Junior Member
 
Join Date: May 2008
Posts: 4
Thumbs up

Unbelievable blazing speed!!!!! Excellent, a bit pricey for a telnet program but with the speed and customizable features it's worth it.

Now if we can only get the 078 firmware to update this fast, it would be great.
Reply With Quote
  #7 (permalink)  
Old 05-23-2008, 10:22 AM
Junior Member
 
Join Date: Apr 2008
Posts: 15
Default

I have seen this - in my case it was the " character - somehow it was being translated into another character which looks exactly the same on the screen but different ascii code

I since use Tera Term...

~B
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 04:16 AM.


M2MForums.com Sponsored by Ublip

Search Engine Friendly URLs by vBSEO 3.2.0