AT Command Tester Tutorial for Telit Modules
Introduction
AT Command Tester application is an online tool for testing AT commands and other module functionalities such as data call, voice call,HTTP, network registration, SMS, Phonebook, signal quality, SIM interface, device info etc.
AT Command Tester can be used with (GPRS/EDGE/1x) or (HSDPA/HSPA/EVDO) or 4G modules (LTE)
Configuration
Connect the Telit Module (on EVK or Arduino shield) to the PC. AT Command Tester tool is typically run on a browser (have been tested on IE, Firefox and Chrome).
1. Enable AT Command Tester to communicate directly with the Telit Modules.
2. There have been some issues observed with AT Command Tester when used in autobaud mode. So change the port speed as follows,
– Press ‘Find Ports’ and connect to the arduino port.
– If the connection is successful, the device model info will be displayed.
– In the ‘Command Mode’ tab, send the following AT command
AT+IPR=38400
OK
– then disconnect and connect again with the baud rate set to 38400 on the AT Command Tester.
Command Mode
In the ‘Command Mode’ tab of the AT Command Tester, any AT command can be sent to the modem. The drop down in that tab has the list of 3GPP specified AT commands.
Script Mode
In “Script Mode’, users can send multiple AT commands at a same time. You can create your own script and store in on your local machine. Saved scripts can be loaded and executed at a later time.
Diagnostics
In diagnostics tab, you can get useful modem information such as manufacturer info, signal strength, registration status, connection status etc.
Data Call
GPRS modems uses Packet Data Protocol (PDP) contexts to establish data calls. PDP contexts are stored on the device and has information about the carrier APN, PDP type etc. AT Command Tester provides easy to use interface to add/edit PDP contexts. Users can also activate or deactivate a specific PDP context. AT command tester checks whether the device is registered with the network before establishing a data call.
+CGDCONT: 1,”IP”,”epc.tmobile.com”,”0.0.0.0″,0,0
OK
Checking registration status…
+CREG: 0,1
OK
The device is registered in home network.
Checking if device is already connected…
+CGACT: 1,0
OK
AT+CMEE=1
OK
Attaching to network…
AT+CGATT=1
OK
Connecting…
AT+CGACT=1, 1
OK
Connect Sucessful
AT+CGPADDR= 1
+CGPADDR: 1,”100.129.93.152″
OK
IP Address of the connected profile is “100.129.93.152”
Voice Call
GSM-GPS Playground supports voice functionality. The shield also comes with a loud speaker to test voice functions. With AT Command Tester tool, users can test both incoming and outgoing voice calls.
Checking registration status…
+CREG: 0,1
OK
The device is registered in home network.
Dialing number 858XXXXXXX
ATD858XXXXXXX;
OK
Voice call successfull
NO CARRIER
NO Carrier: Call dis-connected
Phonebook
Phonebook entries can be read/added/edited/deleted easily through the AT Command tester.
SMS
AT Command Tester provides easy to use interface to send and receive SMS messages. Currently only text mode is supported. SMS message format can be PDU or Text. So before using the SMS tab, please set the SMS message format to text mode by sending the following AT command in the ‘Command Mode’ tab.
+CMGF: 0
OK
AT+Cmgf=1
OK
Checking registration status…
+CREG: 0,1
OK
The device is registered in home network.
AT+CMGS=”8587XXXXXXX”
> test SMS message from GSM-GPS Playground shield
+CMGS: 21
OK
Network Selection
Network selection feature enables users to find and select avaialble networks. AT Command Tester provides simple interface to find and select networks.
Finding Networks. Please wait..
AT+COPS=?
+COPS: (2,”T-Mobile”,,”310260″),(1,”Cingular”,,”310410″),,(0-4),(0,2)
OK
AT+COPS=4,2,”310260″
OK
Network selection sucessful.
Updating the list…
AT+COPS=?
+COPS: (2,”T-Mobile”,,”310260″),(1,”Cingular”,,”310410″),,(0-4),(0,2)
OK
TCP/UDP
Telit’s GR863-GPS module provide sockets to setup TCP or UDP connections. There are up to 6 sockets avaialble that can be configured differently. Sockets use the PDP contexts to establish a TCP or UDP call.AT Command Tester provides interface to read the configuration and the status of all sockets. Users can also activate ot deactivate a socket.
Then users can establish a TCP or UDP connection to a remote server using the AT command tester. Once a TCP or UDP connection is established through a socket, users can use other application services such as HTTP, FTP, SMTP etc.
#SCFG: 1,1,300,90,600,50
#SCFG: 2,1,300,90,600,50
#SCFG: 3,1,300,90,600,50
#SCFG: 4,2,300,90,600,50
#SCFG: 5,2,300,90,600,50
#SCFG: 6,2,300,90,600,50
OK
AT#SGACT?
#SGACT: 1,0
OK
AT#SS
#SS: 1,0
#SS: 2,0
#SS: 3,0
#SS: 4,0
#SS: 5,0
#SS: 6,0
OK
AT#SGACT=1,1
#SGACT: 100.129.93.152
OK
PDP activation sucess. IP address is 100.129.93.152
AT#SCFG?
#SCFG: 1,1,300,90,600,50
#SCFG: 2,1,300,90,600,50
#SCFG: 3,1,300,90,600,50
#SCFG: 4,2,300,90,600,50
#SCFG: 5,2,300,90,600,50
#SCFG: 6,2,300,90,600,50
OK
AT#SGACT?
#SGACT: 1,1
OK
AT#SS
#SS: 1,0
#SS: 2,0
#SS: 3,0
#SS: 4,0
#SS: 5,0
#SS: 6,0
OK
Checking registration status…
+CREG: 0,1
OK
The device is registered in home network.
#SCFG: 1,1,300,90,600,50
#SCFG: 2,1,300,90,600,50
#SCFG: 3,1,300,90,600,50
#SCFG: 4,2,300,90,600,50
#SCFG: 5,2,300,90,600,50
#SCFG: 6,2,300,90,600,50
OK
Checking if socket connection is activated…
#SGACT: 1,1
OK
cid 1 is already active
Connecting towww.google.com
AT#SD=1,0,80,”www.google.com”,0,0,0
CONNECT
NO CARRIER
NO Carrier: Call dis-connected
HTTP
In order to HTTP feature, first we need to activate a socket. Then we need to socket dial to the remote HTTP server. Then you need to send a HTTP formatted message. AT Command Tester makes it easier to test this function by providing an easy to use interface.
Checking registration status…
+CREG: 0,1
OK
The device is registered in home network.
#SCFG: 1,1,300,90,600,50
#SCFG: 2,1,300,90,600,50
#SCFG: 3,1,300,90,600,50
#SCFG: 4,2,300,90,600,50
#SCFG: 5,2,300,90,600,50
#SCFG: 6,2,300,90,600,50
OK
Checking if socket connection is activated…
#SGACT: 1,1
OK
cid 1 is already active
Connecting tohttps://www.m2msupport.net/m2msupport/http_get_test.php
AT#SD=1,0,80,”www.m2msupport.net”
CONNECT
Sending HTTP data:
GET /m2msupport/http_get_test.php HTTP/1.1
Host:www.m2msupport.net
Connection:keep-alive
HTTP/1.1 200 OK
Date: Sat, 17 Aug 2013 08:09:16 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.17
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
3a
Sucessful HTTP GET test. Data received from m2msupport.net
0
NO CARRIER
NO Carrier: Call dis-connected
FTP
GE863-GPS module provides FTP interfaces to upload or download files to/from remote FTP server. AT Command Tester will frist activate a socket and send teh necessary FTP AT commands to exercise FTP functionality.
Checking registration status…
+CREG: 0,1
OK
The device is registered in home network.
#SCFG: 1,1,300,90,600,50
#SCFG: 2,1,300,90,600,50
#SCFG: 3,1,300,90,600,50
#SCFG: 4,2,300,90,600,50
#SCFG: 5,2,300,90,600,50
#SCFG: 6,2,300,90,600,50
OK
Checking if socket connection is activated…
#SGACT: 1,1
OK
cid 1 is already active
Open the FTP connection..
AT#FTPTO=1000
OK
AT#FTPOPEN=”ftp.m2msupport.net”,”xxxxxxx”,”xxxxxxx”,0
OK
AT#FTPTYPE=0
OK
AT#FTPCWD=”/www/m2msupport”
OK
AT#FTPGET=”ftptest.txt”
CONNECT
Sucessful FTP file get from m2msupport.net.
NO CARRIER
NO Carrier: Call dis-connected
AT#FTPCLOSE
TCP connection is closed by remote server
OK
GPS
Some of the Telit modules support GPS feature. AT Command Tester provides interfaces to enable/disable GPS, reset GPS, turn-on/off the NMEA ports and get the GPS location.
Getting GPS Status..
$GPSACP: 211136.000,3300.6898N,11706.8284W,1.6,226.7,3,170.84,1.36,0.73,170813,06
OK
3D GPS FixTelit – GPS On..
AT$GPSP=1
OK
Telit – GPS off..
AT$GPSP=0
OK
Telit – GPS Reset Cold..
OK
Telit – GPS NMEA Off..
OK
Keywords: Module , M2M , GPRS , 3G , through AT commands,