SIM900_DTMF EmbeddedAT Application Note_V1.01

Similar documents
SIM7100_SIM7500_SIM7600 LBS_Application Note_V1.00

UART. SIM5360 UART Multiplexer Application Note. SIM5360_UART_Multiplexer_Application_Note_V

SIM7000 Series_HTTP_Application Note_V1.01

Delta Package Update Application Note

SIM900_Embedded AT Application Note_V1.01

SIMCom_3G_HTTP_Application Note_V1.00

SIM5360_GPIO_Demo Note_V1.00

UART Application Note

Audio LINE-IN input application. AN_SIM900_Audio LINE-IN Input_V1.01

SIM7000 Series_NTP_Application Note_V1.00

AT Commands Set SIM20_ATC_V1.02

SIM800H&L_ Secondary Reflow SMT _Guidelines_V1.00

SIMCom_3G_Linux_Driver_Applica tion Note_V1.00

UART Dload Application Note

SIM900 AMR File Playing Application Note_V1.01

SIMCom_3G_MQTT_Application Note_V1.00

Firmware Upgrade Tool Lite User Guide. Firmware_Upgrade_Tool_Lite_V1.1

SIM7100 TTS Application Note

HTTP Application Note

Quectel Cellular Engine

GSM. Quectel Cellular Engine. Firmware Update Application Note. Fw_Update_Application_Note_V3.1

SIM28_EVB kit_user Guide_V1.02

SIMCom_SIM800H_EAT_flash_Tool _User Manual_V1.01

SIM7000 Series_PING_Application Note_V1.00

SIM20_AT Command Manual_V1.04

UART Application Note. SIM5XXX UART Application Note 1

SIM7X00 Series_SAT_Application Note_V1.00

Development Kit Manual SIM305-EVB_UGD_V1.01

SIMCom_3G_CSD_Application Note_V1.00

SIMCOM WCDMA Wireless Module. xx_sleep_mode_application_note

SIM5360 Network Cell Info Application Note

SIM5350_EVM_User_Guide _V1.00

Quectel Cellular Engine

SIM800H_ Secondary Reflow SMT Guidelines _V1.01

SIM7000 Series_FTP_Application Note_V1.00

SIM5360 BMP Demo Basic Datanet Working Note V1.00

GPS Application Note

SIM800C-DS_Application Note _V1.00

SIM800H&L_EVM_User Guide _V1.00

Development Kit Manual SIM900D-EVB_UGD_V1.01

SIM5360_ECALL_Application Note_V0.04

Quectel Cellular Engine

SMS Application notes AN_SMS_V1.01

SIM7100 Network Cell Info Application Note

Smart Machine Smart Decision. SIM900_IP_Application Note_V1.07 1

SIM7X00 Series_TCPIP_Application Note_V1.00

Smart Machine Smart Decision. R700_User Guide_V1.05 1

Application Note. SIM7100_SMS_Application_Note_V

SIMCOM WCDMA Wireless Module SIM5xxx PCM Application Note

Document Name: GPRS Startup. GPRS Startup_V01.00 Status: Created

SIM900_Multiplexer Manual_Application Note_V1.3

How to use the SIM7100 Module in Linux

SIM800 Series_FS_Application Note_V1.01

How to use Linux driver

SIMCom_3G_PCM_Application Note_V1.04

Development Kit Manual. SIM5360_EVB_User Guide_V1.02

L76-L I2C Application Note

TCP/IP Application Note

SIM7100 GPS Application Note

Development Kit Manual. SIM908 EVB kit_user Guide_V1.00

SSL Application Note. SIM5360_SSL_Application_Note_V0.01

(SMTP/POP3) Application Note

QuecLocator AT Commands Manual

M10-TE-A. Quectel Cellular Engine. Hardware Design M10-TE-A_HD_V1.01

SCOPE. SMS Application notes

SMT Guidelines Module Secondary SMT UGD_V1.16

GSM Recording AT Commands Manual

GSM/GPRS/GPS Tracker GL300 User Manual

Quectel Cellular Engine

BC95 Firmware Upgrade via Code Loader User Guide

Quectel Cellular Engine

WCDMA Audio Player Application Note

GSM/GPRS/GPS Tracker GL300 User Manual

Application Note. SIM7100_MMS_Application_Note_V

M95 Dual SIM Application Notes

EC20 MMS AT Commands Manual

SIM900 Reference Design Guide. SIM900_AN_ Reference Design Guide_V1.01

M10. Quectel Cellular Engine. EVB User Guide M10_EVB_UGD_V1.00

UC20 Android RIL Driver User Guide

UC20 WinCE USB Driver

VL3000 Manager Tool User Guide V1.05

CDMA2000-1X Tracker GL300VC. User Manual. Application Notes: TRACGL300VCUM001 Revision:

Enduro Plus 3G USER MANUAL. TrackingTheWorld.com. Multi-purpose Tracking Device

SIM908_Reference Design Guide _Application Note_V1.00

GSM. Quectel Cellular Engine. GSM FILE AT Commands GSM_FILE _ATC_V1.4

Mini PCIe_EVB kit_ User Guide_V1.00

TCP/IP APP_V1.02 Status: Release

GSM Audio Player Application Note

Future Technology Devices International Ltd. Application Note AN_172. Vinculum-II. Using the USB Slave Driver

GSM DTMF Application Note

Enduro Plus CDMA USER MANUAL. TrackingTheWorld.com. Multi-purpose Tracking Device

Getting Started with ID ISC.LR(M)U1000/2000 UHF-Reader

GSM QuecCell AT Commands Manual

SIM508 EVB USER GUIDE

EC20 SSL AT Commands Manual

EC20 Wi-Fi Application Note

TRACGV75UM001. Version: R1.03

UC15 SSL AT Commands Manual

UC20 FILE AT Commands Manual

ID ISC.LR200-A/B First Steps to get the Serial Number from a Transponder

Transcription:

SIM900_DTMF EmbeddedAT Application Note_V1.01

Document Title: SIM900_DTMF Embedded AT Application Note Version: 1.01 Date: 2012-02-07 Status: Document Control ID: Release SIM900_DTMF Embedded AT_Application Note_V1.01 General Notes SIMCom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCom. The information provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search for additional relevant information, including any information that may be in the customer s possession. Furthermore, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer or the customer s system integrator. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical information which is the property of SIMCom Limited., copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. Copyright Shanghai SIMCom Wireless Solutions Ltd. 2012 SIM900_DTMF Embedded AT_Application Note_V1.01 2

Contents Version history...4 1 DTMF EVENT...5 1.1 EVENT Type...5 1.1.1 FlEventType...5 1.1.2 EVENT_DTMF...5 1.1.3 Example...5 1.2 EVENT Data...6 1.2.1 EventData...6 1.2.2 DTMF_EVENT...6 2 DTMF API...6 2.1 ebdat10_06dtmfdetectenable...7 Appendix A: Example...7 SIM900_DTMF Embedded AT_Application Note_V1.01 3

Version history Date Version Description of change Author 2012-02-07 V1.01 Origin Chenyang SIM900_DTMF Embedded AT_Application Note_V1.01 4

1 DTMF EVENT EVENT is wrapped in structure FlEventBuffer, by which the core system communicates with the embedded applications. Only through eat1_02getevent(&fleventbuffer), EVENTs can be passed from the core system to the embedded applications. Structure FlEventBuffer consists of two parts. one is the event type, which defines the type of the EVENT, and the other is the event data. typedef struct FlSignalBufferTag FlEventType eventtyp; EventData eventdata; FlEventBuffer; 1.1 EVENT Type 1.1.1 FlEventType DTMF EVENT is categorized as following: typedef enum FlEventTypeTag... EVENT_DTMF,... EVENT_MAX = 0xFF FlEventType; 1.1.2 EVENT_DTMF The event can be triggered when DTMF function is enabled (see chapter 2.1 for details). 1.1.3 Example The following code skeleton demonstrates how events are captured in embedded application: void fl_entry() //customer entrance /* some code here */ switch(fleventbuffer.eventtyp) // deal with signals according to its type SIM900_DTMF Embedded AT_Application Note_V1.01 5

Smart Machine Smart Decision case EVENT_DTMF: /* add here to deal with signal associated to EVENT_DTMF*/ default: 1.2 EVENT Data 1.2.1 EventData Each DTMF related EVENT type has its corresponding EVENT data. typedef union EventDataTag... DTMF_EVENT dtmf_evt;... EventData; Note EventData is not like EventType, EventData is a union, and each data type has its own structure, which is detailed in the following sections. 1.2.2 DTMF_EVENT typedef struct DTMF_EVENTTag ascii demfchar; u8 reserve[3]; DTMF_EVENT; demfchar: The character of DTMF. 2 DTMF API This chapter categorizes DTMF related API functions and describes their usages, including function prototype, parameters, and their return values. SIM900_DTMF Embedded AT_Application Note_V1.01 6

2.1 ebdat10_06dtmfdetectenable This function is used to enable/disable DTMF detect function. Prototype s32 ebdat10_06dtmfdetectenable (bool isenable); Parameter isenable: 0 disable 1 enable Return values FL_OK: DTMF detection set successfully FL_ERROR: Incorrect parameter Appendix A: Example The following example is used CRWP function to enable or disable DTMF detection. When DTMF detection is enabled, the character of the DTMF can be captured by EVENT_DTMF event as below: void fl_entry() bool keepgoing = TRUE; FlEventBuffer fleventbuffer; u32 para1,i; ebdat7_00enterdebugmode(); while (keepgoing == TRUE) memset((u8*)&fleventbuffer,0x00,sizeof(fleventbuffer)); eat1_02getevent(&fleventbuffer); switch(fleventbuffer.eventtyp) case EVENT_MODEMDATA: fleventbuffer.eventdata.modemdata_ev.data[fleventbuffer.eventdata.mode mdata_evt.length]=0; ebdat7_01debugtrace((const char*) fleventbuffer.eventdata.modemdata_evt.data); if(modem_crwp == fleventbuffer.eventdata.modemdata_evt.type) /*get AT+CRWP parameters*/ SIM900_DTMF Embedded AT_Application Note_V1.01 7

Smart Machine Smart Decision i = sscanf(const char *)fleventbuffer.eventdata.modemdata_evt.data, AT+CRWP=%d,&para1); if(para1>1) ebdat7_01debugtrace( Parameter error ); /*enable or disable DTMF detection 1:enable 0:disable*/ if(ebdat10_06dtmfdetectenable(para1)==fl_ok) ebdat7_01debugtrace( successfully ); else ebdat7_01debugtrace( fail ); /*MODEM_CMD or MODEM_DATA*/ else case EVENT_DTMF: /*show the character of the DTMF*/ ebdat7_01debugtrace((const char *) DTMF:%c, fleventbuffer.event.dtmf_evt.dtmfchar ); default: SIM900_DTMF Embedded AT_Application Note_V1.01 8

Contact us: Shanghai SIMCom Wireless Solutions Ltd Add: SIM Technology Building A, No. 633, Jinzhong Road, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 3020 URL: www.sim.com