Working with GSM modems via AT commands: Difference between revisions
From D3xt3r01.tk
Jump to navigationJump to search
m Created page with '==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 comma…' |
m →WHAT |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
==WHAT== | ==WHAT== | ||
<source lang="bash"> | <source lang="bash"> | ||
Line 23: | 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 lang="bash"> | |||
#Setting OWN Number | |||
AT+CPBS="ON" | |||
AT+CPBW=1,"<number>",,"<name>" | |||
AT+CPBR=1 | |||
#Showing OWN Number if set | |||
AT+CNUM | |||
</source> | </source> | ||
==LINKS== | ==LINKS== | ||
[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.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://wiki.openmoko.org/wiki/Hardware:AT_Commands OpenMoko Wiki AT Commands] |
Latest revision as of 15:51, 3 February 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
#Setting OWN Number
AT+CPBS="ON"
AT+CPBW=1,"<number>",,"<name>"
AT+CPBR=1
#Showing OWN Number if set
AT+CNUM
LINKS
Developer's Home Short Message Service / SMS Tutorial - BIG HELP !!!
SMS Messages and the PDU format
Online Javascript PDU Converter