How to use script mode in AT Command Tester?


In script mode, batch of AT commands can be sent to the device.

– To include comments in the script, use // in the beginning of the line
– Press ‘Enter’ at the end of each comment line and AT command line

Special Commands
WAIT – Add wait between commands.Time is specified in seconds.
Note that there is a fixed delay of 1 sec that is added in between each command in script file. 

//Example Usage of WAIT command. Wait for 3 seconds
WAIT=3

LOOP, LOOP-END : Send one or more commands repeatedly

//Example Usage of LOOP command.
//Send signal strength AT command for 5 times with 1 second wait in-between
LOOP 5
AT+CSQ
WAIT=1
LOOP-END

SET-CURRENT-TIME : Sets the time in device to the time of the system

//Example Usage of SET-CURRENT-TIME command.
//SET-CURRENT-TIME command uses AT+CCLK command to set the device time
SET-CURRENT-TIME

Special Characters
// – Comment line

// This is a comment line
AT+CGMI

^z – CTRL+Z character

AT+CMGS="7787787777"

//Wait for the ‘> ‘ prompt
WAIT=2

//Type the SMS text
test SMS message

//Send the CTRL+Z character
^z

<cr>- Carriage Return character

//Example usage of special character
//Send the HTTP formatted data
<cr><lf>GET /m2msupport/http_get_test.php HTTP/1.1<cr><lf>Host:www.m2msupport.netConnection:keep-alive<cr><lf>

<lf>- Line Feed character

//Example usage of <lf> special character
//Send the HTTP formatted data
<cr><lf>GET /m2msupport/http_get_test.php HTTP/1.1<cr><lf>Host:www.m2msupport.netConnection:keep-alive<cr><lf>

< !crlf>- Do not send <cr><lf> at the end of this line

//Example usage < !crlf> special character
test line< !crlf>

Keywords: Module , M2M , GPRS , 3G , through AT commands,