Working with GSM modems via AT commands: Difference between revisions

From D3xt3r01.tk
Jump to navigationJump to search
mNo edit summary
Line 21: Line 21:
>AT+CNUM
>AT+CNUM
+CNUM: "","1234567890",129
+CNUM: "","1234567890",129
</source>
<source lang="bash">
#Setting network connection preference ( some might need 2,4 at the end instead of 1,2 )
AT^SYSCFG=2,1,3FFFFFFF,1,2  # for GPRS/EDGE Preferred
AT^SYSCFG=2,2,3FFFFFFF,1,2  # for 3G Preferred
AT^SYSCFG=13,1,3FFFFFFF,1,2 # for GPRS/EDGE Only
AT^SYSCFG=14,2,3FFFFFFF,1,2 # for 3G Only
#The ^Mode status lines mean this:
^MODE:3,2 # indicates GPRS
^MODE:3,3 # indicates EDGE
^MODE:5,4 # indicates 3G
^MODE:5,5 # indicates HSDPA
</source>
</source>


==LINKS==
==LINKS==


[[http://www.developershome.com/sms/ Developer's Home Short Message Service / SMS Tutorial]] - BIG HELP !!!
[http://www.developershome.com/sms/ Developer's Home Short Message Service / SMS Tutorial] - BIG HELP !!!
 
[http://www.dreamfabric.com/sms/ SMS Messages and the PDU format]


[[http://www.dreamfabric.com/sms/ SMS Messages and the PDU format]]
[http://www.rednaxela.net/pdu.php Online Javascript PDU Converter]


[[http://www.rednaxela.net/pdu.php Online Javascript PDU Converter]]
[http://www.twit88.com/home/utility/sms-pdu-encode-decode Another Online PDU encoder and decoder]


[[http://www.twit88.com/home/utility/sms-pdu-encode-decode Another Online PDU encoder and decoder]]
[http://wiki.openmoko.org/wiki/Hardware:AT_Commands OpenMoko Wiki AT Commands]

Revision as of 13:32, 27 January 2011

WHY

Because I just got a Huawei K3520 GSM modem and I'm going to play around with it to make it send notifications in case something at work goes down. Here are the AT commands I found useful.

WHAT

# Entering your pin in case it needs a password.
>AT+CPIN="xxxx"
<OK
# Finding out your service center number
>AT+CSCA?
<+CSCA: "+401234567890",145
# Finding out your own number
>AT+CNUM
+CNUM: "","1234567890",129
#Setting network connection preference ( some might need 2,4 at the end instead of 1,2 )
AT^SYSCFG=2,1,3FFFFFFF,1,2  # for GPRS/EDGE Preferred
AT^SYSCFG=2,2,3FFFFFFF,1,2  # for 3G Preferred
AT^SYSCFG=13,1,3FFFFFFF,1,2 # for GPRS/EDGE Only
AT^SYSCFG=14,2,3FFFFFFF,1,2 # for 3G Only
#The ^Mode status lines mean this:
^MODE:3,2 # indicates GPRS
^MODE:3,3 # indicates EDGE
^MODE:5,4 # indicates 3G
^MODE:5,5 # indicates HSDPA

LINKS

Developer's Home Short Message Service / SMS Tutorial - BIG HELP !!!

SMS Messages and the PDU format

Online Javascript PDU Converter

Another Online PDU encoder and decoder

OpenMoko Wiki AT Commands