Application Note basic Voice and SMS Connection with...
Transcript of Application Note basic Voice and SMS Connection with...
Application Note—basic Voice and
SMS Connection with SIM900 rev03
This application note and
any associated software is
provided in an “as-is” con-
dition. No warranties,
whether expressed, implied
or statutory, including, but
not limited to implied war-
ranties of merchantability
and fitness for a particular
purpose apply to this appli-
cation note or associated
software. Otto Wireless
Solutions, SIMCom and
Otto Marketing shall not in
any circumstances, be li-
able for special, incidental
or consequential damages
for any reason whatsoever.
This application note, and
any associated software, or
parts thereof, may not be
reproduced or distributed
without the explicit permis-
sion of Otto Wireless Solu-
tions.
DISCLAIMER
Tel: (011) 791 1033 / email: [email protected] / url: www.otto.co.za
GSM DEVICE SIM900
FIRMWARE R11.00
ADDITIONAL NOTE AT COMMANDS MUST BE UPPER CASE
COMPILED BY MARK COXEN
EMAIL [email protected]
MOBILE +27 82 888 6275
APPLICATION NOTE DETAILS
GSM
GP
RS
3G
HSD
PA
SMS H
SUPA
VOIC
E EDG
E
Application Note—basic Voice and
SMS Connection with SIM900 rev03
This application note and
any associated software is
provided in an “as-is” con-
dition. No warranties,
whether expressed, implied
or statutory, including, but
not limited to implied war-
ranties of merchantability
and fitness for a particular
purpose apply to this appli-
cation note or associated
software. Otto Wireless
Solutions, SIMCom and
Otto Marketing shall not in
any circumstances, be li-
able for special, incidental
or consequential damages
for any reason whatsoever.
This application note, and
any associated software, or
parts thereof, may not be
reproduced or distributed
without the explicit permis-
sion of Otto Wireless Solu-
tions.
DISCLAIMER
Tel: (011) 791 1033 / email: [email protected] / url: www.otto.co.za
NETWORK SMS CENTRE NUMBERS
NETWORK NUMBER
VODACOM "+27829119" or "+27829129"
MTN “+27831000113"
CELL C "+27841000000"
VIRGIN MOBILE "+27741000050"
GENERAL ENQUIRIES
AT COMMAND FUNCTION
AT Must return :ok”, use to check comms
ATI Identifies Firmware revision
ATE0 Switches off the echo—1 enables the echo
AT+GMR Identifies FULL Firmware revision
AT+GMI Identifies manufacturer
AT+GMM Identifies module type i.e. SIM_900
AT+GSN Identifies module IMEI number
AT+CSCA? Checks The SMS service centre Number
AT+CNUM? Gives you the SIM telephone number (If an Error occurs, number is not set on SIM card)
AT+CREG? Acknowledges that the SIM and Modem are connected to the network
AT+CSQ Signal Strength - 0=-113dBm; 1= -111dBm;2->30 -109 TO -53dBm; 31= -51dBm< ; 99= No Reception
AT+GCAP Services offered on Modem -> GSM; FCLASS (Fax); +DS (data Services)
AT+CMEE=2 Changes error warnings from number codes to text
AT&W Stores all user settings
AT&V Check the settings of the module
AT&F Reset to manufacturer defaults
AT COMMAND FUNCTION
AT+CPBS="ON" Set the value for writing the mobile number to the SIM Card
AT+CPBW=1,“+27*********”,145, “NAME”
Write the number to slot 1 on the sim card, ********* is the phone number, 145 is International dialing
AT+CNUM If set, the number will be shown
AT+CPBS="SM" Set back to SIM card storage
SET THE MOBILE NUMBER
GSM DEVICE SIM900
FIRMWARE R11.00
ADDITIONAL NOTE AT COMMANDS MUST BE UPPER CASE
COMPILED BY MARK COXEN
EMAIL [email protected]
MOBILE +27 82 888 6275
APPLICATION NOTE DETAILS
Page 1/5
GSM
GP
RS
3G
HSD
PA
SMS H
SUPA
VOIC
E EDG
E
PIN MANAGEMENT
AT COMMAND FUNCTION
AT+CPIN? If "+CPIN: READY" is returned, no need to enter pin number, if “SIM PUK” is returned, see below
AT+CPIN="xxxx" Unlock/Unlock the pin number on the simcard
AT+CPWD="SC",“0000”,“1234” SC is for sim pin 0000 is old pin and 1234 is new pin
AT+CLCK="SC",1,”XXXX” Removes the SIM pasword request on power up
AT+CLCK="SC",0,”XXXX” Activates the SIM pasword at power up
AT+CPIN=“XXXX”,”XXXX” SIM PUK—enter the PUK number and the new PIN number
Application Note—basic Voice and
SMS Connection with SIM900 rev03
This application note and
any associated software is
provided in an “as-is” con-
dition. No warranties,
whether expressed, implied
or statutory, including, but
not limited to implied war-
ranties of merchantability
and fitness for a particular
purpose apply to this appli-
cation note or associated
software. Otto Wireless
Solutions, SIMCom and
Otto Marketing shall not in
any circumstances, be li-
able for special, incidental
or consequential damages
for any reason whatsoever.
This application note, and
any associated software, or
parts thereof, may not be
reproduced or distributed
without the explicit permis-
sion of Otto Wireless Solu-
tions.
DISCLAIMER
Tel: (011) 791 1033 / email: [email protected] / url: www.otto.co.za
SET UP THE MODULE FOR SMS
AT COMMAND FUNCTION
AT+CMGF=1 sets text mode (0 sets Packet Data Mode)
AT+CSCS="GSM" sets GSM-character text mode
AT+CNMI=2,1,0,0 new message indications - Default is set
AT+CPBS="ON" sets the phone book memory storage
AT+CPBW=1,”+27*********”,145,”Module No”
set the sim card phone number into memory location 1 on SIM-Card
AT+CSCS? Check that the operator SMS centre number is set
AT+CSCA="+27.....",145 check that operator service centre number is set
AT+CSMP=49,255,0,241&W sets the parameter for SMS delivery reports and saves this set-ting
AT+CNMI=2,1,0,1,0&W second parameter to set the SMS delivery deport and saves the setting
AT+CSAS=0 save SMS settingsTO PROFILE "0" OR "1"
SENDING A MESSAGE EXPLANATION
AT+CMGS = " +27.."(Enter) Destination number to which you send the message
>your message < ctrl-z>
SMS COMMANDS
GSM DEVICE SIM900
FIRMWARE R11.00
ADDITIONAL NOTE AT COMMANDS MUST BE UPPER CASE
COMPILED BY MARK COXEN
EMAIL [email protected]
MOBILE +27 82 888 6275
APPLICATION NOTE DETAILS
Page 2/5
GSM
GP
RS
3G
HSD
PA
SMS H
SUPA
VOIC
E EDG
E
SMS DELIVERY REPORT
NOTES EXPLANATION
6, Delivery report is from SMS service central
22, Message number that was sent
“Cell number” Cell number the message was delivered to
145, International format
First Time Stamp, Time of sending
Second Time Stamp, Time of Delivery
0 TP status in integer format
Application Note—basic Voice and
SMS Connection with SIM900 rev03
This application note and
any associated software is
provided in an “as-is” con-
dition. No warranties,
whether expressed, implied
or statutory, including, but
not limited to implied war-
ranties of merchantability
and fitness for a particular
purpose apply to this appli-
cation note or associated
software. Otto Wireless
Solutions, SIMCom and
Otto Marketing shall not in
any circumstances, be li-
able for special, incidental
or consequential damages
for any reason whatsoever.
This application note, and
any associated software, or
parts thereof, may not be
reproduced or distributed
without the explicit permis-
sion of Otto Wireless Solu-
tions.
DISCLAIMER
Tel: (011) 791 1033 / email: [email protected] / url: www.otto.co.za
SAVE A MESSAGE TO MEMORY EXPLANATION
AT+CMGW Saves message to SIM memory
>your message < ctrl-z> Type the info of the message to be stored
+CMGW: 1 The location of the stored message is returned
SENDING AND SMS FROM MEMORY EXPLANATION
AT+CMSS=1,”+27…”,145 Location of stored message to send, destination number must be set
DELETE MESSAGES EXPLANATION
AT+CMGDA="DEL READ" Deletes all read messages stored on the SIM card
AT+CMGDA="DEL UNREAD" Deletes all unread messages stored on the SIM card
AT+CMGDA="DEL SENT" Deletes all sent messages stored on the SIM card
AT+CMGDA="DEL UNSENT" Deletes all unsent messages stored on the SIM card
AT+CMGDA="DEL INBOX" Deletes all received messages stored on the SIM card
AT+CMGDA="DEL ALL" Deletes all messages stored on the SIM card
SMS COMMANDS CONTINUED
GSM DEVICE SIM900
FIRMWARE R11.00
ADDITIONAL NOTE AT COMMANDS MUST BE UPPER CASE
COMPILED BY MARK COXEN
EMAIL [email protected]
MOBILE +27 82 888 6275
APPLICATION NOTE DETAILS
Delivery report format: +CDS 6,22,”=2782…”,145,”09/12/24,09:09:18+08”,”09/12/24,09”09:20+08”,0
Page 3/5
GSM
GP
RS
3G
HSD
PA
SMS H
SUPA
VOIC
E EDG
E
PHONE BOOK
NUMBER STORAGE LOCATION EXPLANATION
AT+CPBS=“SM” Specifies that the SIM card is to be used for the phone book
WRITING TO PHONE BOOK
AT+CPBW=2,”+27…”,145,”NAME HERE” Set location (2), “number”, international dial-ing (145) and the “name” (NOTE: location 1 is the SIM card number)
READ FROM THE PHONE BOOK
AT+CPBR=1,5 Read from location 1 to location 5
Application Note—basic Voice and
SMS Connection with SIM900 rev03
This application note and
any associated software is
provided in an “as-is” con-
dition. No warranties,
whether expressed, implied
or statutory, including, but
not limited to implied war-
ranties of merchantability
and fitness for a particular
purpose apply to this appli-
cation note or associated
software. Otto Wireless
Solutions, SIMCom and
Otto Marketing shall not in
any circumstances, be li-
able for special, incidental
or consequential damages
for any reason whatsoever.
This application note, and
any associated software, or
parts thereof, may not be
reproduced or distributed
without the explicit permis-
sion of Otto Wireless Solu-
tions.
DISCLAIMER
Tel: (011) 791 1033 / email: [email protected] / url: www.otto.co.za
GSM DEVICE SIM900
FIRMWARE R11.00
ADDITIONAL NOTE AT COMMANDS MUST BE UPPER CASE
COMPILED BY MARK COXEN
EMAIL [email protected]
MOBILE +27 82 888 6275
APPLICATION NOTE DETAILS
CHECKING AIRTIME BALANCE
AT COMMAND FUNCTION
AT+CUSD=1,”XXX”,15 Format: 1 = on, “xxx” = number to dial, 15 = Data Coding
AT+CUSD=1,”100”,15 Vodacom number
AT+CUSD=1,”141”,15 MTN number
AT+CUSD=1,”101”,15 CELL-C number
AT+CUSD=1,”101”,15 Virgin Mobile number
AT+CUSD=0 Switch off USD when done
SEND A “PLEASE CALL ME”
AT COMMAND FUNCTION
AT+CUSD=1,”*140*+27XXXXXXXXX#”,15 Vodacom number
AT+CUSD=1,”*141*+27XXXXXXXXX#”,15 MTN number
AT+CUSD=1,”*111*+27XXXXXXXXX#”,15 CELL-C number
AT+CUSD=1,”*125*+27XXXXXXXXX#”,15 Virgin Mobile number
AT+CUSD=0 Switch off USD when done
SEND A “PLEASE RECHARGE ME”
AT COMMAND FUNCTION
AT+CUSD=1,”*140*02*+27XXXXXXXXX#”,15 Vodacom number
AT+CUSD=0 Switch off USD when done
Page 4/5
GSM
GP
RS
3G
HSD
PA
SMS H
SUPA
VOIC
E EDG
E
Application Note—basic Voice and
SMS Connection with SIM900 rev03
This application note and
any associated software is
provided in an “as-is” con-
dition. No warranties,
whether expressed, implied
or statutory, including, but
not limited to implied war-
ranties of merchantability
and fitness for a particular
purpose apply to this appli-
cation note or associated
software. Otto Wireless
Solutions, SIMCom and
Otto Marketing shall not in
any circumstances, be li-
able for special, incidental
or consequential damages
for any reason whatsoever.
This application note, and
any associated software, or
parts thereof, may not be
reproduced or distributed
without the explicit permis-
sion of Otto Wireless Solu-
tions.
DISCLAIMER
Tel: (011) 791 1033 / email: [email protected] / url: www.otto.co.za
GSM DEVICE SIM900
FIRMWARE R11.00
ADDITIONAL NOTE AT COMMANDS MUST BE UPPER CASE
COMPILED BY MARK COXEN
EMAIL [email protected]
MOBILE +27 82 888 6275
APPLICATION NOTE DETAILS
LOAD AIRTIME
AT COMMAND FUNCTION
AT+CUSD=1,”*100*01*XXXXXXXXX#”,15 Vodacom number
AT+CUSD=1,”*141*XXXXXXXXX#”,15 MTN number
AT+CUSD=1,”*102*XXXXXXXXX#”,15 CELL-C number
AT+CUSD=1,”*102*XXXXXXXXX#”,15 Virgin Mobile number
AT+CUSD=0 Switch off USD when done
MAKING A VOICE CALL
SET THE AUDIO PARAMETERS FUNCTION
AT+CHFA? Check audio channel setting
AT+CHFA: 0 0 is handset and 1 is auxiliary audio
AT+CHFA=0 Command used to select handset use
ATL3 Sets the audio volume 1-9
AT+CMUT=1 0 is mute and 1 is active (NOTE: only works when a call is active
CALL MANAGEMENT
ATD+2783xxxx; Dial number—take note of semi-colon
ATD>SM1 Dial from a phone book location
ATDL Redial last number
ATA Answer and incoming call
ATH End current call
SET UP THE TIME
AT COMMAND FUNCTION
AT+CCLK? Checks the current time
AT+CCLK= “YY/MM/DD,HH:MM:SS+02” Time format, with the +02 at the end being the time zone
CHECK TEMPERATURE STATUS
AT COMMAND FUNCTION
AT+CMTE=0 0 is off and 1 is on - format is as follows: “ENABLE / DIS-ABLE power off”,temperature
Page 5/5
GSM
GP
RS
3G
HSD
PA
SMS H
SUPA
VOIC
E EDG
E