Maxon Telecom MM-6280IND manual Message Sending and Writing Commands, Send Message +CMGS

Page 40

8.1.1.14.Informative Examples

Setting new message indications:

AT+CNMI=? (query new message unsolicited result code modes) +CNMI: (0-2),(0-3),(0-3),(0,1),(0,1)

OK

(send SM and status report indications to TE

AT+CNMI=2,1,0,1,0

OK

when TA in command mode, otherwise buffer)

In this example, the TA is set so that it should send an unsolicited result code +CMTI: <mem>,<index> to the TE when a new SMS-DELIVER is received from the network and stored successfully to storage <mem>, and an unsolicited result code +CDS:... when a SMS-STATUS- REPORT is received. These result codes are routed to the TE when TA is in command mode, but buffered when in on-line data mode. Now, if new SM is received, it can be read as follows (text mode with no detailed header information; GSM 7 bit default alphabet used in message body):

+CMTI: "ME",2

(new message received in index 2)

AT+CMGR=2

(read the message)

+CMGR: "REC UNREAD","+358507654321","Mr. Jones","95/07/03,17:38:15+04" This is the Mr. Jones testing

OK

In the next example all messages of storage <mem1> are listed (text mode with no detailed header information; GSM 7 bit default alphabet used in message bodies):

AT+CMGL="ALL"

(read all SMs)

+CMGL: 1,"REC READ","+358501234567","Mr. Smith","95/07/03,17:45:03+04"

This is the body of the message.

+CMGL: 2,"STO UNSENT","+358501234567","Mr. Smith",

This is the body of the reply.

OK

 

The next example shows a method to read new CBMs received from the network (text mode; GSM

7 bit default alphabet used in message bodies):

AT+CNMI=2,,2,,0(CBMs will be sent to the TE)

OK

AT+CPMS="BM";+CMGL (select CBM memory for reading; list all unread CBMs)

+CMGL: 1,"REC UNREAD",100,40,1,3

(first page of three page weather

information)

 

Weather in Finland 3rd of July 1995

(second page of three page weather

+CMGL: 2,"REC UNREAD",100,40,2,3

information)

Helsinki: cloudy, snow storms, -20 degrees Celsius, wind -14 m/s NE

+CMGL: 3,"REC UNREAD",100,40,3,3 (third page of three page weather information)

Tampere: sunny, 40 degrees Celsius, wind 1 m/s SW OK

Message Sending and Writing Commands

8.1.1.15.3G Send Message +CMGS

Execution command sends message from a TE to the network (SMS-SUBMIT). Message reference value <mr> is returned to the TE on successful message delivery. Optionally (when +CSMS <service> value is 1 and network supports) <scts> is returned. Values can be used to identify message upon unsolicited delivery status report result code. If sending fails in a network or an ME

Extended AT Commands Manual

Page 40 of 70

2009-06-25

Image 40
Contents Extended AT Commands Manual RF Exposure Compliance Potentially Unsafe AreasRevision History Contact Information TA BLE of Contents 1.3 2.1 Carrier Command Options Overview General DescriptionTerms Pstn RCESMS TE2AT Inte Rface Description Basic IntegrationSerial Interface Pin outCommand Format Message Naming ConventionBasic Interface Configuration Baud Rate Set-upUSB Interface TE2 MT2IO Functions AT Notification OptionsTE2 MT2 $$IOFUNCTION? TE2 MT2 $$NOTIFCNT?$$NOTIFCNT=value Set command Command$$NOTIFCNT 1 0 Success Failure MT SMS Signal InformationMT Data Boot alert Interface EnvironmentMT2 Basic Operational State Lock order1.4. TE2 active command AT$$TE2ALIVE Power Reset AT$$RESETPower Conservation Commands Sleep mode control AT$$SLEEPENABLECurrent time AT$$TIME Software version AT$$SWVERExtended AT Commands Manual 2009-06-25 Low Battery Voltage Notification 1.3. RS232C Transceiver power-down control AT$$RS232PWRDOWNLED control AT$$EXTLED TE2 MT2 $$EXTLED?Low battery notification AT$$LOWBATT SMS low battery voltage set point AT$$LOWBATTVTGTE2 MT2 $$LOWBATTVTG? Receiving notification mode option AT$$RCVMODE Ringer volume control AT$$RINGLVLVisual/Audible Call Alert Options Ringer melody selection AT$$RINGIDXNetwork Relational Settings Roaming indicator information AT$$ROAMINDAntenna Signal Level report schedule AT$$ANTSET Antenna Signal Level AT$$ANTLVLRssi inquiry AT$$RSSI Modem scheduled Information AT$$PingReading MT2 state AT$$CURRSTATE Location information AT$$LOCATION RF information AT$$RFINFOTE2 MT2 $$LOCATION? Diagnostic Commands Ring test AT$$DIAGRINGLED test AT$$DIAGLED Rssi LED response AT$$RSSILEVELLed Description CRTPKT TX/DTRData Call SET UP Data CallsCall released or failed Uses DTR pin MO data callGeneral Configuration Commands Select Message Service +CSMS+CSMS action command syntax Preferred Message Storage +CPMSMessage Service Failure Result Code +CMS Error Message Format +CMGFService Centre Address +CSCA Message Configuration CommandsInformative Examples Set Text Mode Parameters +CSMP Show Text Mode Parameters +CSDHMessage Receiving and Reading commands New Message Indications to TE +CNMIAlpha,scts,tooa,fo,pid,dcs,sca,tosca List Messages +CMGL If text mode +CMGF=1, command successful and SMS-SUBMIT If text mode +CMGF=1, command successful and SMS-DELIVERRead Message +CMGR New Message Acknowledgement to ME/TA +CNMA ReportMessage Sending and Writing Commands Send Message +CMGSIf text mode +CMGF=1 If text mode +CMGF=1 and sending Send Message from Storage +CMSSSuccessful If sending failsSend Message Telstra SMS MO AT+MMC Write Message to Memory +CMGWSend Command +CMGC Delete Message +CMGDMore Messages to Send +CMMS AT+CNMI?AT+CMSS=7 SMS Send and Receive Options SMS Mail Notification Option SMSOPT=ABSMS Format send and receiveAT$$SMSOPT TE2 MT2 $$SMSOPT?SMS Mail Notification Option SMSOPT=1 SMS Mail Notification Option SMSOPT=2SMS Mail Notification Option SMSOPT=3 Illustrative exampleAuto delete Messages in ME Memory SMS NotificationsAuto Delete Messages in ME memory$$AUTODLTSMS SMS Notification $$SMSNOTIFSMS Auto Voltage Alert Auto Voltage Alert SMS Site Name AT$$SITENAMESMS $$LOWBATT 1 set point AT$$LOWBATTVTG TE2 MT2 $$SITENAME?SMS $$LOWBATT 1 set recipient number AT$$AUTOSMS SMS Remote Report RequestsSMS Remote Report Request Site Name AT$$REMOTECTRL Vbatt request Read ALL request10.1.2.4 Rssi request Swver request Location requestDebug Screen request Remote Reset 73 Read command Enter directory number of specific MT2Enter message maxon.reset not case sensitive Value Modem will resetCommand User Remarks Profile NVM vs . US ER PR Ofile StorageTIA/EIA/IS 707A AT Command SET TE2 MT2 OK ErrorUser modified profiles & NVM changes User Profile store AT&WnBasic AT Commands Basic AT ParametersSTU IIIBasic S registers Basic action command set Extended AT Commands Manual 2009-06-25 Extended AT configuration command set Extended AT Command SetsBasic result codes +GCAP +GMI+GMM +GMRSpace Default 8Data 1Stop Default+ICF Circuit 106 Clear to Send/Ready for Sending Default Circuit 133 Ready for Receiving Default+IFC 115200bps. Default +IPRTE2 MT2 $$NOTIDS? 13.1.1. RM3 AT$$NOTIDSTE2 MT2 $$NOTIDS Cellular Extended AT Command SET Cellular AT parameter commands+CDS +CBC?Cellular identification AT command extensions +CGMI+CGMM +CGMRCellular result codes for Asynchronous data services DM Comman D Diagnostic Mode Debug screen AT$$DBGSCRN Carrier Command OptionsTE2 MT2 $$DBGSCRN
Related manuals
Manual 60 pages 51.94 Kb