Working with GSM modems via AT commands

From D3xt3r01.tk
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Another Online PDU encoder and decoder

OpenMoko Wiki AT Commands