2N StarGate AT Commands
The protocol is derived from a standard AT protocol used for modems and GSM modules. The command format is AT[command]<CR>. The response contains no or a few text lines, an empty line, and the response type: OK, ERROR or BUSY. To repeat the last command, enter A/<CR>.
Basic Commands
System Information
- ATI3 - Firmware version and copyright
- ATI4 - Factory number
Statistics
- AT&T - Statistics of calls via PRI interface
- AT&TIN - Statistics of incoming calls via GSM modules
- AT&TOUT - Statistics of outgoing calls via GSM modules
- AT&T## - Statistics of calls via SIM cards of GSM module ##
- AT%TPR=mi,ci,mo,co - Setting of statistics via PRI
- AT%TG0=mi,ci,0,0 - Setting of statistics of incoming calls via all GSM modules in GSM group 0
- AT%TG#=mi,co,ri,ro - Settings of statistics of GSM group #
- AT%TGALL=mo.co,ri,ro - Settings of statistics of all GSM groups
- AT%T##=#,mi,ci,si,mo,co,so - Settings of statistics of SIM card # of GSM module ##
- AT%T##=ALL,mi,ci,si,mo,co,so - Settings of statistics of all SIM cards of GSM module ##
- AT%TALL=ALL,mi,ci,si,mo,co,so - Settings of statistics of all SIM cards of all GSM modules
- Description of parameters:
- Mi/mo - Minutes of incom./outg
- callsCi/co - number of connected incom./outg
- callsRi/ro - number of re-routed incom/outg
- calls in groupSi/so - number of received/sent SMS messages
When you change these parameters, all the other counters will be reset!
- Description of parameters:
Wireless Engines
- AT&Q## - Received GSM signal level (##=00-15)
- AT&QALL - Received GSM signal level from all GSM modules
- AT&Gxx=atcmd - Send command for AT commands directly to the GSM module
- AT&Gxx=at+cnum - SIM card telephone number
- AT&Gxx=at+cpin="xxxx" - PIN entering
- AT&Gxx=at+clck="sc",1"xxxx" - PIN request enable
- AT&Gxx=at+clck="sc",0"xxxx" - PIN request disable
LOG and CDR List
- AT&L - Log file listing (PRIGW awaits pressing of the Space bar in every 20 rows)
- AT&C - Call file listing (PRIGW awaits pressing of any key in every 20 rows)
- AT&CR - Call file listing and deleting (PRIGW awaits pressing of the # key to delete this row /with call info/ from memory and sends the next row)
- AT&CS - SMS file listing (GW awaits pressing of any key in every 20 rows)
- AT&CSR - SMS file listing and deleting (GW awaits pressing of the # key to delete this row /with SMS info/ from memory and sends the next row)
Configuration Commands
Status Information
- AT&V - Overview of all system settings
- AT&VI - Overview of ISDN PRI settings
- AT&V0 - Overview of basic GSM settings
- AT&V# - Overview of GSM group # settings (#=1-8)
- AT&VALL - Overview of all GSM group settings
- AT&N# - Overview of parameters of network list # (#=1-8)
- AT&NALL - Overview of parameters of all network lists
- AT&R - Overview of LCR lines
Default Reset
- AT&FRES - Reset with gateway factory settings
System Settings
- AT%S70=x.x.x.x - IP address
- AT%S71=x.x.x.x - IP address mask
- AT%S81= - Initialisation string for setting of mode connected to the gateway COM2
- AT%S90=x - Type of assignment of B-channels to GSM modules and X
- 0 - rotating
- 1 - locked
- 2 - according to credit
- AT%S91=x,y - Way of call information recording
- X:
- 0 - no record
- 1 - successfully connected outgoing call
- 2 - successfully connected incoming calls
- 3 - successfully connected incoming and outgoing calls
- 5 - all outgoing calls
- 6 - all incoming calls
- 7 - all incoming+outgoing calls
- Y - to each call add NET info (1) or no (0)
- AT%S93=x - Global selection of SIM card and X:
- 0 - according to GSM group
- 1-8 - number of SIM holder
- AT%S98=xxxx - PIN code for SIM cards inserted in the gateway
- AT%S99= dd.mm.yy.w/hh:mm:ss - Gateway date and time settings
- AT%X00=hout,hin,min - Automatic logout of GSM modules
- hout - hour when the modules start to log out randomly
- hin - hour when the modules start to log in randomly
- min - minimum number of modules in a group (2..15) that always remain logged-in
- AT%X80=name/pass - Username/password for access via IP port (this parameter is write only - you cannot see its value)
- 0 - rotating
System Control
- AT&Bxx=DOWN - Transfer of GSM board xx into the sleep mode
- AT&BPR=DOWN - Transfer of PRI board into the sleep mode
- AT&BALL=DOWN - Transfer of all GSM boards into the sleep mode
- AT&Bxx=RESET - Reset of GSM board xx
- AT&BPR=RESET - Reset of PRI board
- AT&BALL=RESET - Reset of all GSM boards
- AT&BSYS=RESET - Reset of PRIGW
- AT&Gxx=RESET - Reset of GSM module xx
- AT&Gxx=BLOCK - Block of GSM module xx
- AT&Gxx=DOWN - Transfer of GSM module into the sleep mode
- AT&Gxx=ON - Transfer of GSM module into the idle mode
ISDN PRI Board
- AT%I00= - ISDN PRI port type (TE/S; TE/M; NT/S; NT/M) or VoIP = SIP
- AT%I01=x,y
- X - TEI ISDN PRI connections (0-63)
- Y - CRC (0=off, 1=on)
- AT%I05=c1,c2,c3,c4 - Number of causes sent to ISDN PRI (in ReleaseComplete) whenever an incoming call from ISDN PRI is rejected
- AT%I11= - MSN for remote control via PRI 1
- AT%I12= - MSN for remote control via PRI 2
- AT%I04=x,y - Channel select for PRI 1 / PRI 2
- AT%I06=c1,c2,c3,c4 - Progress messages
- AT%i09=day,bits,enb
- Day - day of statistics reset
- Bits
- 0 - no dial tone
- 1 - continuous
- 3 - discontinuous
- X - TEI ISDN PRI connections (0-63)
Basic GSM Settings
- AT%G00=rr, gggggg, gggggg, gggggg, gggggg, gggggg - g,r = Number of GSM group for each GSM module
- AT%G01=mode,atms,atfs - Voice processing settings (for GM22 GSM modules only)
- mode - algorithm (0-none, 1-semiduplex, 2-fullduplex)atms,
- ATfs - transit, receive gain (3=+5dB, 1=+2.5dB, 0=0dB, 2=-2.5dB, 4=-5dB
- AT%G02=mode,atms,atfs - Voice processing settings (for TC35 GSM modules only)
- mode - algorithm (2-echo canceller)atms,
- ATfs - transit, receive gain (3=+5dBm, 1=+2.5dB, 0=0dB, 2=-2.5dB, 4=-5dB
- AT%G06=mmdd,...mmdd... - List of holiday days (mm-month;dd-day), max length of line is 63 chars!
- AT%G07=mmdd,...mmdd - Net list of holiday days
- AT%G08=delay,min,max,tout - Parameters of dialling from ISDN to GSM
- delay - relax delay between calls
- min - minimum length of number dialled from ISDN
- max - maximum length of number dialled from ISDN
- tout - delay between dialled digits
- mode - algorithm (0-none, 1-semiduplex, 2-fullduplex)atms,
GSM Settings (X-GSM Group)
- AT%G#0=sim - Mode of switching SIM card
- sim = 0: 0 - OFF - group is turned-off
- sim > 0: 1-4 - SIM card 1-4, 5 - switching by time, 6 - switching at random time
- AT%G#1=netid,clir,min,sms,sec,sec2,pseudo - Basic parameters of SIM card in slot 1 netid-network number
- clir: 0 = default, 1 = enabled, 2 = disabled
- min - maximum number of minutes called
- sms - maximum number of SMS sent
- sec - minimum call length (not for cdr info)
- sec2 - accuracy of call length measurement (not for cdr info)
- pseudo - default = 0
- AT%G#2=netid,clir,min,sms,sec,sec2,pseudo - Basic parameters of SIM card in slot 2
- AT%G#3=netid,clir,min,sms,sec,sec2,pseudo - Basic parameters of SIM card in slot 3
- AT%G#4=netid,clir,min,sms,sec,sec2,pseudo - Basic parameters of SIM card in slot 4
- AT%G#5= from/to[/from,to/w+] - Time intervals for using SIM card in slot 1, one or two intervals (from=to=hh:mm), w+(w-) parameter 'w+' (all weekend), or 'w-' (no weekend) for enabled/disabled SIM on weekends. In case AT%G#0=6 from/to= min/max limit for generating random time for SIM switching
- AT%G#6= from/to[/from,to/w+] - Time intervals for using SIM card in slot 2
- AT%G#7= from/to[/from,to/w+] - Time intervals for using SIM card in slot 3
- AT%G#8= from/to[/from,to/w+] - Time intervals for using SIM card in slot 4
- sim = 0: 0 - OFF - group is turned-off
List of Networks
- AT%N#0=op/np,…op/np - List of prefixes replaced by new prefixes (#-number of netlist; op-old prefix;np-new prefix)
- AT%N#1=pr/n,…pr/n - List of prefixes dialled into ISDN (to be used for LCR table) pr=prefix n=length of number (parameter /n is optional)
- AT%N#2..7=pr/n,…pr/n - Other 7 lists of prefixes dialled into ISDN
- AT%N#9=net,max - Net-network number, max-default length of number dialled from ISDN
LCR Table
- AT&R - Shows LCR table
- AT%R##=net,hh:mm/hh:mm/w,gr* - Settings of line ## (0..63) of LCR table
- net - number of network list (0..8)
- hh:mm/hh:mm/w* - line using time limitation
- gr - GSM group numbers
- net - number of network list (0..8)
Test Calls
- AT!SPxx=dial - Initiates testing call from AUX interface (xx is the called interface)
- 1-15, 17-31 - B-channel
- 32 - rotating B-channel
- AT!SGxx=dial - Initiates testing call from AUX interface (xx is the called interface):
- 00..31 - GSM module
- 32 - to GSM via GSM module according to call prefix
- AT!WPxx - Connects the following call from interface xx to AUX interface
- 1..15, 17-31 - from B-channel No.
- 32 - first incoming calls from ISDN
- AT!WGxx - Connects the following call from interface xx to AUX interface
- 00..31 - from GSM No.
- 32 - first incoming calls from GSM
- AT!D - Terminates call on AUX interface
Trace
Trace can be activated for only one session at a time.
- AT!RE - Start tracing of error messages on active interface
- AT!Lx - Start tracing of LAN & Telnet on layer x
- x=2 - Layers IP,TCP,Telnet
- x=3 - Layers TCP, Telnet
- x=4 - Layer Telnet
- AT!Rx - Start tracing of ISDN PRI & GSM on layer x
- x=1 - Layers 1,2,3,4
- x=2 - Layers 2,3,4
- x=3 - Layers 3,4
- x=4 - Layer 4
- AT!RR - Start tracing (AT!R2) to COM1 interface
- AT!RX - Stop tracing (AT!R2) to COM1 interface
- x=2 - Layers IP,TCP,Telnet
SMS Control
SMS control can be activated for only one session at a time.
- AT!G=#
- A6 - activate control via used session
- 55 - deactivate control via used session
- 99 - deactivate control on all sessions
- AT^MS=ch - Module status ch=0 - 31
- *module: ch,sim,sts3,sts2,phs2,type - Response to AT^MS:
- ch - number of wireless engine
- sim - number of currently used SIM: 0-none, 1-8-holder 1-8
- sts3 - stusus of layer 3
- sts2 - status of layer 2
- phs2 - substatus of layer 2
- type - type of wireless engine
- AT^MI=ch - Module info ch = 0 -31
- *minfo: ch,sim,netid,"oper",new,cnt - Response to AT^MI
- netid - network ID of active wireless network
- oper - name of active wireless network
- new - number of received and saved MS on SIM card
- cnt - total number of sent SMS messages according to statistics
- *smsinc: ch,ix,sts,mem - SMS message has been received and saved
- ix - index number of saved SMS (0-250)
- sts - status of SMS (from +CMGL: ix.sts.len)
- mem - type of used storage (1,2,3)
- *smsrep: ch,ix,sts,mem - SMS status confirmation has been received
- sts - reserved (0)
- *smsout: ch[/id],ref,req - SMS message was sent and not saved to SIM card
- ref - reference number of SMS (0-255) - to be used in status confirmation messages
- ID - third party identification number of SMS
- *smspdu: ch,ix,sts,len,pdu,csum - Content of SMS message
- len - length of SMS message (number of bytes in PDU)PDU - content of message in PDU format
- csum - checksum of all PDU bytes (2 hexa digits) calculated without carry
- *smsdel: ch,ix - SMS message deletion confirmation
- *smserr: ch[/id],ix,req,err,cms - Fault command response, or SMS not sent
- req - required wireless engine or GSM group
- err - error code (6-busy,40-write,41-read,42-delete,43-list)
- cms - error cause from wireless engine
- *smssel: ch,cnt - SMS storage change confirmation
- AT^SX=ch - SMS listing - request for listing of 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 , end of list or empty SIM card - *smsinc (ix=0).
- AT^SR=ch.ix - SMS read - request for reading of an SMS message or SMS status saved on SIM card. Possible answers: *smserr (busy,read) or *smspdu
- AT^SD=ch,ix - SMS delete - request for deletion of an SMS message (or SMS status message). Possible answers: *smserr (busy,delete) or *smsdel
- AT^SM=ch,len,pdu,chsum - SMS to module - request for sending a message via GSM module 0..31 or via any GSM module (ch=32). Possible answers: *smserr (busy,write) or *smsout
- AT^SG=grp[/id],len,pdu,csum - SMS to group - request for sending an SMS message via GSM group 1..8. Possible answers: *smserr (busy,write) or *smsout
- AT^SS=ch,mem - Command for changing SMS storage. Mem (1;2;3) = type of SMS storageSiemens:1=SM, 2=ME, 3=MEEricsson:1=SM, 2=ME, 3=MEWavecom:1=SM, 2=ME, 3=SR Huawei:1=SM, 2=SM, 3=SMSierraWir.:1=SM, 2=ME, 3=SRMotorola:1=IM, 2=IM, 3=IM
- A6 - activate control via used session