Some handy AT commands for various modem

Avatar

rudiemm
2012-02-17 11:32

Maestro SMS restart:
123456AT+CFUN=1
at commands:
standard setup of GCom modem:
ATE0
AT+IPR=9600
AT&C1
AT+CBST=0,0,1
AT&D2
AT&W
for 7,even,1
at+icf=5,1
for 8,none,1
at+icf=3,4

standard setup of Maestro:
ATS0=3
AT+CBST=7,0,1
AT+IPR=9600
AT+ICF=3,4
AT+SMSAT=1
AT+SMSAT=2,123456
AT+IPGPRS=1,"internet"
AT+IPTCP=1111,"C","sdg.pnpscada.com",1
AT+IPOPT=1,30
AT+IPOPT=2,512
AT+IPOPT=3,128
AT+AUTOTCP=1
AT&W
maestro sms setup:
so, to setup the modem for sms commands and:
1) assuming the at-command-sending-password has not been changed (i.e. is still 000000)
2) at-sms-sending has already been turned on (at+smsat=1)
3) and setting password to 123456 (at+smsat=2,123456)
4) and setting baud to 9600 8N1
5) and connecting to www.pnpscada.com:1007
send the following sms:
000000AT+SMSAT=2,123456;+IPR=9600;+ICF=3,4;+ipgprs=1,"internet";+iptcp=1007,"C","www.pnpscada.com",0;+autotcp=1;&w
and the same as the previous one, but for 7E1
000000AT+SMSAT=2,123456;+IPR=9600;+ICF=5,1;+ipgprs=1,"internet";+iptcp=1007,"C","www.pnpscada.com",0;+autotcp=1;&w
and the same as the previous one, but for 2400 8N1
000000AT+SMSAT=2,123456;+IPR=2400;+ICF=3,4;+ipgprs=1,"internet";+iptcp=1007,"C","www.pnpscada.com",0;+autotcp=1;&w
maestro file copy:
On HyperTerminal issue the following;
set modem to 115200 baud before starting or it will be slow
AT+WOPEN=0
(Response=OK)
AT+WOPEN=3
(Response=OK)
AT+WOPEN=4
(Response=OK)
AT+WDWL
(Response=$$$$$$) then go to TRANSFER on the tool bar select SEND FILE under FILE NAME put the attached (dwl.dwl);
under PROTOCOL select 1KXMODEM then send the file.
Once the file has been loaded, issue the following COMMAND.
AT+CFUN=1
(Response=OK)
Repeat this process until all four files have been loaded. NOTE: load the files in this order
1. DWL.WDL;
2. 657d_full_A&D_init_q24pl001.dwl;
3. W.WDL;
4. M100_VAF_094e_OAT316_32_SA.dwl
*for trinity Maesro we only need to copy the last file
standard setup of TC65:
at^scfg="AutoExec","1","1","0","4","at+cfun=1,1","048:00:00"
at^scfg="AutoExec","1","1","1","4","at\1B\14sjra=a:/java/maintc45.jar","000:02:00"
at^scfg="userware/autostart/appname","","a:/java/maintc45.jar"
at^scfg="userware/autostart/delay","","3"
at^scfg="userware/autostart","","1"
at^scfg="AutoExec","1","1","1","4","at^sjra=a:/java/maintc45.jar","000:02:00"
to set lock: AT+CLCK="SC",1,"00000"
to log in: at+cpin=00000
to check for login: at+cpin?
to change password: AT+CPWD="SC","00000","11111"
mtn default pin: 00000
switch off echo on modem:
ATE0
switch on echo on modem:
ATE1
set baudrate to 9600
AT+IPR=9600
make CD go off when not connected!
AT&C1
configure data call for autobaud,asynchronous,non-transparent (whatever this means)
AT+CBST=0,0,1
setup modem so that if DTR is pulled low, call drops
AT&D2
save certain changes:
AT&W
check if autoexec is set:
at^scfg="autoexec"
disable autoexec cmd 1:
at^scfg="autoexec",0,1,0
also disables cmd 1:
at^scfg="AutoExec","0","1","0","4","at+cfun=1,1","000:51:00"
set modem to restart every 2 days using autoexec (as cmd 1):
at^scfg="AutoExec","1","1","0","4","at+cfun=1,1","048:00:00"
set modem to start app every 2 minutes (as cmd 2)
at^scfg="AutoExec","1","1","1","4","at^sjra=a:/java/maintc45.jar","000:02:00"
specify jar file to start on autostart
at^scfg="userware/autostart/appname","","a:/java/maintc45.jar"
switch on aotostart:
at^scfg="userware/autostart","","1"
switch off aotostart:
at^scfg="userware/autostart","","0"
start java code after 3 seconds (on TC45 this value must be 30, I think)
at^scfg="userware/autostart/delay","","3"
see the sim number:
at^scid
see the modem model:
ati
signal strength:
at+csq
Returns:
+CSQ: 23,99
the first value is the signal strength and is a value between 0 - 31
You can still read a meter with a signal of 5 if it is on CSD.
If it is GPRS you need at least 11.
The second value is the signal quality.
This is a value from 0-7.
0 is better.
99 mean unknown.
send sms:
AT+CMGF=1
AT+CMGS=phone_num
message text

otap commands:
AT^SJOTAP="jsrz","http://dns1.chatnex.net/sms/o/MainTC45.jad","a:/java","p","p","gprs","internet"
AT^SJOTAP
send otap sms:
AT+CMGF=1
AT+CMGS=phone_num
TC65_IMPNG
PWD:jsrz
JADURL:http://gprs.pnpscada.net/MainTC45.jad
APPDIR:a:/Java/
BEARER:gprs
APNORNUM:internet
START:install

Avatar

sdg.matiaan
2013-06-27 16:34

Set KoCoS to 7E1:
COM /i:1 /p:2

Please log in to post a comment