6.3 List of Terminal AT Commands

By default, all these commands start with AT. (Note: Some of the AT commands listed below may not be available in the current firmware versions.)

Basic AT Commands

The following command list is intended for all GSM gateways from 2N that are based on the same SW architecture. Some of the AT commands may be inaccessible for the BRI gateways.

  • A/ – repeat last command (without AT)
  • I3 – copyright & firmware
  • I4 – serial number
  • &FRES – factory defaults & reset
  • &V – view active parameters (system)
  • &VI – view active parameters (isdn)
  • &V0 – view active parameters (common)
  • &V# – view active parameters (modules 1..2)
  • &VB - Overview of module assignment to groups 
    • format: B#=grpout0, grpin0
    • # is the module number
    • grpout, grpin - outgoing and incoming groups of module
  • &V9 – view active parameters (inc. groups)
  • &VALL – view all group parameters
  • &VE – Overview of VOIP parameters
  • &P – view pseudo params
  • &N# – view network params (net 1..8)
  • &NALL – view all network params
  • &A – view autorouting table <SPACE...continue>
  • &R – view lcr–routing table <SPACE...continue>
  • &T – view bris + modules totals
  • &TMOD – view all modules totals
  • &G##=atcommand – send at command to module 0..1 (ended by OK from gsm)
  • &G##=xtcommand – send at command to module 0..1 (ended by <CR> from user)
  • &G##=cmd – cmd for module 0..1 (RESET,BLOCK,OFF,DOWN,ON), (ATBAUD)
  • &GALL=cmd – cmd for module 0..1 (RESET,BLOCK,OFF,DOWN,ON)
  • &S – view aux, bris, modules status
  • &S## – view aux, bris, one module status (ax,px,ex,0..1)
  • &S=info – view all modules selected info (by at&S##)
  • &Q## – view signal quality on module 0..1
  • &QALL – view signal quality on all modules
  • &L – view logfile from recent <SPACE...continue>
  • &C – view buffer (calls) from recent <SPACE...continue>
  • &CR – read buffer (calls) from the oldest <#...erase & continue>
  • &CS – view buffer (SMS) from recent <SPACE...continue>
  • &CSR – read buffer (SMS) from the oldest <#...erase & continue>
  • &BSYS=cmd – cmd for system (RESET)
  • &XG – view conn table/gsm (call states)
  • &XG## – view call details for gsm channel)
  • &M0 – disable ansi colors
  • &M1 – enable ansi colors
  • &M9 – start matrix
  • &U – view logged users
  • &I## – view gsm moninfo (dBm = signal level whn registering with BTS,
  • RxLEV = minimum signal level required by BTS for registering of GSM module)

Configuration AT Commands

System Settings

  • %S85=sms – no answer sms text (max 63 chars)
  • %S90=mode – operating mode of GSM module allocation
    • (0=cyclic mode, 1=locked mode, 2=smart mode – according to already called minutes)
    • (for 0 and 2 set LCR group = 3 (any))
  • %S91=buf,id – cdr mode (b0=outg, b1=inc, b2=failed, b3=moninfo)
    • unit id (0=off, 1..255)
  • %S92=rep – report mode (b0=states, b1=tstamp, b2=smp, b3=lay2, b4=select)
  • %S98=pin – sim pin (max 7 digits)
  • %S99=dd.mm.yy.w/hh:mm:ss – set date/time (w=1..7 day of week)
  • %X10=tsec – external routing tout in sec/10 (5..60,255)
  • %X20=mmdd,mmdd – date of hour+1,hour–1 time change (0=off,0101..1231)
  • %X22=hh:mm – 0:01..23:59...time of reset of GSM gateway, 0:00 – no reset
  • %X80=login/pass – login name / password (max 15 chars all)

System Control

  • AT&Gxx=RESET – Reset of GSM module No xx
  • AT&Gxx=BLOCK – Block of GSM module No xx
  • AT&Gxx=DOWN – Transfer of GSM module into the sleep mode
  • AT&Gxx=ON – Transfer of GSM module into the idle mode

ISDN Settings

  • %I00=xxx – pri1 protocol/mode:
    • NT,TE,NT/S,NTNT (pri2 = TE,NT,SY,NT)
    • For FW:2_03_15 only NT and NT/S (sync received from TE port)
  • %I01=tei,mtp tei,mtp = 0..63,0 – .fixed tei,ptp
    • tei,mtp = 64,0 – .dynamic tei,ptp
    • tei,mtp = 64,1 – .fixed tei,mtp
  • %I05=c1,c2,c3,c4 – cause codes for failed calls
    • c1=dial timeout (TIMEOUT=120)
    • c2=dis.prefix (REJECT=21)
    • c3=req.mod/grp not ready (TEMPFAIL=41)
    • c4=pref grps not ready (CONGEST=42)
  • %I06=sack,proc,prog,ale – prog.elem (0=off,1..8) for isdn message
  • %I07=opx/npx – list of old/new prefixes (max 47 chars)
  • %I08=dial,ring,disc – dial (0 = off,1..255) dialtone to NT on empty SETUP, ring (0=off,1 ..255) ringtone to NT if no PROGRESS from PSTN
    • 1=EU (dial = constantly 425Hz,ring = 1000+4000msec 425Hz) 
    • 2=CZ (dial = 300/300/600/1200msec 425Hz,ring = 1000+4000msec 425Hz) 
    • 3=HU (dial = constantly 425Hz,ring = 1000+4000msec 425Hz) 
    • 4=GB (dial = constantly 425Hz,ring = 400+200+400+2000msec 400+450Hz)
    • disc(0=off,1..255) busy tone to NT interface on DISCONNEECT
  • %I09=day,bits,enb – day (0=off,1..31) of clearing pri stat
    • ctrl bits (b0=not defined, b1=not defined ,b2=subaddr–recv, b4=don't send CONNECT_ACK in TE mode)
    • enblock digits (0=overlap,1..20)
  • %I11=xxx – dial for dig.call from pri1 (max 15 chars)
  • %I21=xxx – dial for dig.call from pri2 (max 15 chars)
  • %I127=msn – MSN number for TE mode
  • %i28=pin (max 15chars) – PIN (password) for TE–>GSM calls

GSM Settings

  • %G02=mode,atms,afms – tc35 mode (2,4)
    • atms/afms gain (+5dB=3,+2.5dB=1,0dB=0,–2.5dB=2,–5dB=4)
  • %G05=delay – dtmf space delay (1..99 sec/100)
  • %G06=mmdd,..mmdd – holiday list (0101=1st jan, 1231=31st dec)
  • %G07=mmdd,..mmdd – holiday list2
  • %G08=delay,min,max,tout – gsm call delay (0..10 sec), dial min/max (0..20)
    • dial tout (0..20 sec)
  • %G09=bits,dial,ring – bit0=sim card number (0=imsi,1=scid)
    • bit1=siemens connecting tone,
    • bit2=don't send CLIP for calls BRI<–GSM
    • bit3=send AoC for calls BRI–>GSM (functionless for FW>2.03.14 and lower)
    • dial (0=off,1..255) dialtone to GSM, ring(0=off,1..255) ringtone to GSM if no PROGRESS from PBX
    • ring 1=EU (dial = constantly 425Hz,ring = 1000+4000msec 425Hz)
    • ring 2=CZ (dial = 300/300/600/1200msec 425Hz, ring = 1000+4000msec 425Hz)
    • ring 3=HU (dial = constantly 425Hz, ring = 1000+4000msec 425Hz)
    • ring 4=GB (dial = constantly 425Hz,ring = 400+200+400+2000msec 400+450Hz)
  • %G101=old/new – gsm causes change table (0..8 causes)
  • %G#1=netid,clir,min,sms,day,sec,sec2,pseudo – out.module 1..2, sim 1 params
    • netid (7 chars), clir (0=netw,1=on,2=off)
    • min (0=0ff,1..65535 minutes), sms (0=off,1..65535)
    • day (0=off,1..31,32=everyday), sec/2 (1..250)
    • pseudo (0=off,1..8)
  • %G#9=ale,conn,disc,day,bits,nasms – alerting tout (0=off,1=send ALERTING on receiving +CIEV from GSM network, 2..20sec after receiving PROCEEDING)
    • conn delay (0..20sec),
    • forced disc (bit0=sim limit, bit1=time limit, bit2=noale)
    • day (0=off,1..31) of clearing group stat,
    • bits 0..255, b0=(unused), b1=min––>calls, b2=(unused)
    • b3=(unused),
    • nasms tout (0=off, 1..20sec)
  • %G9#=mode,min,max,tout,day,dial,clip – inc.module 1..2 params
    • mode (0=reject,1=ignore,2=ok–message,3=ok–tone)
    • mode (4..7=0..3 + autocallback, 6..7= + ext.callback)
    • min(0..20), max(0..20) tout (0..20 sec) dtmf dial–in
    • day (0=off,1..31) of clearing inc.group stat
    • dial prefix (max 15 ch), clip prefix (max 7 ch)
  • %G9#=xxx,xxx,...xxx – auto dials (max 63 chars) #=5..8 for inc.groups 1..4
  • %G99=exp,bits – dynamic clip expire (0=off,1..240 hours)
    • bit0=add.conn, bit1=rem.answ
  • %G19#=mess – params #=1..4 for inc.groups 1..4
    • mess duration (0=once, 1..99=repeated) minutes

Network List Parameters

  • %N#0=opx/npx – list of old/new main–prefixes (max 47 chars)
  • %N#1=pref/dig – list of prefixes/digits–to–end (max 63 chars)
  • %N#2=pref/dig – pref. list extension (max 63 chars)
  • %N#3=pref/dig – pref. list extension (max 63 chars)
  • %N#4=pref/dig – pref. list extension (max 63 chars)
  • %N#5=pref/dig – pref. list extension (max 63 chars)
  • %N#6=pref/dig – pref. list extension (max 63 chars)
  • %N#7=pref/dig – pref. list extension (max 63 chars)
  • %N#9=netid,max – network id (7 chars), default max digits (0..20)

Routing Parameters

  • %A##=clip,dial,limit – set autorouting item (ix 0..95)
    • clip (20), dial(20), limit(0=off,1..99 minutes)
  • %R##=source,net,hh:mm/hh:mm/w,gr,limit,tariffs – Settings of line ## (0..63) of LCR table
    • source - source interface
    • net – number of network list (0..32)
    • hh:mm/hh:mm/w* – line using time limitation
    • gr – outgoing group
    • limit - time limit
    • tariffs - tariff settings
  • ; totals
  • ; first m,c,s – inc. minutes,calls,smses
  • ; second m,c,s – out. minutes,calls,smses
  • ; ri,ro – redirected inc,out calls
  • %TB#=m,c,m,c – init minutes,calls in bri # (0..65535)
  • %TBALL=m,c,m,c – init minutes,calls in all bris (0..65535)
  • %TG#=m,c,ri,ro – init minutes,calls,rin,rout in group # (0..65535)
  • %TGALL=m,c,ri,ro – init minutes,calls,rin,rout in all groups (0..65535)
  • %TI#=m,c – init minutes,calls in inc.group # (0..65535)
  • %TIALL=m,c – init minutes,calls in all inc.groups (0..65535)
  • %T##=1,m,c,s,m,c,s – init minutes,calls,sms in mod ##, sim 1 (0..65535)
  • %TALL=1,m,c,s,m,c,s – init minutes,calls,sms in all mods, sim 1 (0..65535)
  • %T##F=#,m,a,m,a,m,a,m,a – Settings of statistics of tariffs for module ## and SIM card #
  • %T##F=ALL,m,a,m,a,m,a,m,a – Settings of statistics of tariffs for module ## and all SIM cards
  • %TALLF=ALL,m,a,m,a,m,a,m,a – Settings of statistics of tariffs for all modules and SIM cards

  • Description of parameters:
    • m - called minutes of the current period
    • a - unused minutes of the last period

Tracing Commands

  • AT!RE – Start tracing of error messages active interface.
  • AT!Lx –  Start tracing of LAN & Telnet on layer xx=2 – Layers IP,TCP,Telnet x=3 – Layers TCP, Telnetx=4 – Layer Telnet
  • AT!Rx –  Start tracing of ISDN BRI & GSM on layer xx=1 – Layers 1,2,3,4x=2 – Layers 2,3,4x=3 – Layers 3,4x=4 – Layer 4
  • AT!RR –  Start tracing (AT!R2) to COM1 interface
  • AT!RX –  Stop tracing (AT!R2) to COM1 interface

SMS Processing

SMS Sending/Receiving Commands

  • AT!G=A6 – Start low–level controlling for SMS (can run only on one port)
  • AT!G=55 –  Stop low–level controlling on used port

Control SMS

  • AT^SX=ch – (sms listing) request to list all SMS messages and status confirmations saved on SIM card. Possible answers:: *smserr (busy,list) or *smsinc (ix=1..255) for each saved SMS or status SMS messages, end of list or empty SIM card – *smsinc (ix=0).
  • AT^SR=ch,ix – (sms read) request to read SMS or status SMS saved in SIM card. Possible answers: *smserr (busy,read) or *smspdu
  • AT^SD=ch,ix – (sms delete) request to delete SMS message (or status SMS message). Possible answers: *smserr (busy,delete) or *smsdel
  • AT^SM=ch,len,pdu,csum – (sms to module) request to send message via GSM module 0..31 or via any GSM module (ch=32). Possible answers: *smserr (busy,write) or *smsout
  • AT^SG=grp,len,pdu,csum – (sms to group) request to send SMS message via GSM group 1..8. Possible answers: *smserr (busy,write) or *smsout

SMS from BRI GSM Gateway

  • *smsinc: ch,ix,sts – SMS message was received and saved into SIM card:
    • Ch…GSM module number 0..31
    • Ix…index number of saved SMS 0..255
    • Sts…SMS status
  • *smsrep: ch,ix – SMS status confirmation was received and saved to SIM card (this message is only for GSM modules TC35 and GM47)
  • *smsout: ch,ix,ref – SMS message was sent and was not saved into SIM card:
    • Ref…reference number of sent SMS 0..255 (will be used in SMS status confirmation message)
  • *smspdu: ch,ix,sts,len,pdu,csum – content of SMS message or status confirmation:
    • Len…SMS length (number of bytes in PDU)
    • Pdu…message content in PDU format
    • Csum…Checksum of all PDU bytes (2 hexa digits) calculated without carry
  • *smsdel: ch,ix – SMS message or status confirmation was deleted from position ix