SIM900 AMR File Playing Application Note_V1.01

Similar documents
UART. SIM5360 UART Multiplexer Application Note. SIM5360_UART_Multiplexer_Application_Note_V

UART Application Note

SIM800 Series_FS_Application Note_V1.01

SIM7100_SIM7500_SIM7600 LBS_Application Note_V1.00

Delta Package Update Application Note

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

AT Commands Set SIM20_ATC_V1.02

SIM7000 Series_HTTP_Application Note_V1.01

HTTP Application Note

SIMCom_3G_HTTP_Application Note_V1.00

UART Dload Application Note

SIM5360_GPIO_Demo Note_V1.00

SIM7100 TTS Application Note

SIM800H&L_ Secondary Reflow SMT _Guidelines_V1.00

SIM800C-DS_Application Note _V1.00

UART Application Note. SIM5XXX UART Application Note 1

SIM900_DTMF EmbeddedAT Application Note_V1.01

SIMCom_3G_CSD_Application Note_V1.00

SIMCOM WCDMA Wireless Module. xx_sleep_mode_application_note

SIMCom_SIM800H_EAT_flash_Tool _User Manual_V1.01

SIMCom_3G_Linux_Driver_Applica tion Note_V1.00

Development Kit Manual SIM900D-EVB_UGD_V1.01

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

SIM7000 Series_NTP_Application Note_V1.00

SIM5350_EVM_User_Guide _V1.00

SIM800H&L_EVM_User Guide _V1.00

SIMCom_3G_MQTT_Application Note_V1.00

SIM5360 Network Cell Info Application Note

Development Kit Manual SIM305-EVB_UGD_V1.01

Quectel Cellular Engine

SIM7000 Series_PING_Application Note_V1.00

Smart Machine Smart Decision. SIM900_IP_Application Note_V1.07 1

SIM7X00 Series_SAT_Application Note_V1.00

SIM20_AT Command Manual_V1.04

SIM28_EVB kit_user Guide_V1.02

GPS Application Note

SIM5360_ECALL_Application Note_V0.04

SIMCom_3G_PCM_Application Note_V1.04

Application Note. SIM7100_SMS_Application_Note_V

Quectel Cellular Engine

WCDMA Audio Player Application Note

Firmware Upgrade Tool Lite User Guide. Firmware_Upgrade_Tool_Lite_V1.1

How to use the SIM7100 Module in Linux

SIM5360 BMP Demo Basic Datanet Working Note V1.00

SIM7X00 Series_TCPIP_Application Note_V1.00

GSM Recording AT Commands Manual

SIM7100 Network Cell Info Application Note

SIMCOM WCDMA Wireless Module SIM5xxx PCM Application Note

SIM7000 Series_FTP_Application Note_V1.00

Development Kit Manual. SIM908 EVB kit_user Guide_V1.00

TCP/IP Application Note

SMS Application notes AN_SMS_V1.01

SSL Application Note. SIM5360_SSL_Application_Note_V0.01

Application Note. SIM7100_MMS_Application_Note_V

SIM900_Multiplexer Manual_Application Note_V1.3

Smart Machine Smart Decision. R700_User Guide_V1.05 1

SIM800H_ Secondary Reflow SMT Guidelines _V1.01

How to use Linux driver

GSM Audio Player Application Note

QuecLocator AT Commands Manual

(SMTP/POP3) Application Note

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

Development Kit Manual. SIM5360_EVB_User Guide_V1.02

TCP/IP APP_V1.02 Status: Release

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

Quectel Cellular Engine

SIM7100 GPS Application Note

Quectel Cellular Engine

Quectel Cellular Engine

SIM900 Reference Design Guide. SIM900_AN_ Reference Design Guide_V1.01

Mini PCIe_EVB kit_ User Guide_V1.00

EC20 MMS AT Commands Manual

BC95 Firmware Upgrade via Code Loader User Guide

UC20 FILE AT Commands Manual

SMT Guidelines Module Secondary SMT UGD_V1.16

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

BC95-G&BC68 MQTT Application Note

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

VL3000 Manager Tool User Guide V1.05

BG96 PPP Application Note

EC2x&EG9x&EM05 PPP Application Note

SCOPE. SMS Application notes

WCDMA UGxx PPP Application Note

TCPIP Application Note for WCDMA Solution V3.2

M95 Dual SIM Application Notes

BG96 SSL AT Commands Manual

GSM. Quectel Cellular Engine. GSM TCPIP Recommended Process. GSM_TCPIP_Recommended_. Process_V1.2

GSM/GPRS/GPS Tracker GL300 User Manual

SIM 5360 TCPIP Application Note

GSM/GPRS/GPS Tracker GL300 User Manual

SIM908_Reference Design Guide _Application Note_V1.00

SIM508 EVB USER GUIDE

GSM QuecCell AT Commands Manual

EC2x&EG9x&EM05 HTTP(S) AT Commands Manual

SIM900 MMS AT Commands Set_V1.04

GSM POP3 AT Commands Manual

EC20 Wi-Fi Application Note

EC20 SSL AT Commands Manual

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

L76-L I2C Application Note

Transcription:

SIM900 AMR File Playing Application _V1.01

Document Title: SIM900 AMR File Playing Application Version: 1.01 Date: 2012-11-08 Status: Document Control ID: Release SIM900_AMR File Playing_Application _V1.01 General s SIMCom offers this infmation as a service to its customers, to suppt application and engineering effts that use the products designed by SIMCom. The infmation provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search f additional relevant infmation, including any infmation that may be in the customer s possession. Furtherme, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer the customer s system integrat. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical infmation which is the property of SIMCom Limited., copying of this document and giving it to others and the using communication of the contents thereof, are fbidden without express authity. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent the registration of a utility model design. All specification supplied herein are subject to change without notice at any time. Copyright Shanghai SIMCom Wireless Solutions Ltd. 2012 SIM900_AMR File Playing_Application _V1.01 3

VERSION HISTORY Date Version Description of change Auth 2012-9-27 1.00 Origin GaoLiang 2012-11-8 1.01 Modified the maximum length of parameter <file name> to 50 including in CPAMR CFSWFILE CFSRFILE CFSDFILE and CFSGFIS commands. Chenyang SCOPE This document describes how to play AMR fmat file by SIM900 through AT commands. Examples are also given f reference. This document can be used f SIM900 serial modules, like SIM900 and SIM900D. This document is subject to change without notice at any time. SIM900_AMR File Playing_Application _V1.01 4

1. Play AMR File Use AT command CPAMR to play AMR fmat file in the flash buffer. 1.1 AT+CPAMR Play AMR File AT+CPAMR Play AMR File Write Command AT+CPAMR=<file name>[,<audio location status>] +CME : <err> Parameters <file name> File name length should be less than equal to 50 characters. <audio location status> When there is a call on line, this parameter is valid, and if there is no call this parameter is invalid. ( Call on line includes following status, Waiting, Hold, Active ) 0 Both remote and local user can hear the playing audio. 1 Only local user can hear the playing audio. Execution Command AT+CPAMR Execution command will stop the playing which is triggered by CPAMR. Unsolicited Result Code When the playing is complete, it is stopped by execution command. AMR_STOP AT+CPAMR= 0 Similar with execution command, this command will also stop the playing which is triggered by CPAMR. SIM900_AMR File Playing_Application _V1.01 5

2. Preparation and Recovery f Playing AMR File The AMR file is sted in the flash buffer of the module, user can use a series commands to complete download process. After use, the file can be deleted, and the cresponding flash buffer should be freed at the same time. This chapter is a reference guide to all the AT commands and responses of flash operation. 2.1 AT+CFSINIT Get Flash Data Buffer AT+CFSINIT Get Flash Data Buffer Execution Command AT+CFSINIT +CME : <err> Parameter 2.2 AT+CFSWFILE Write File to the Flash Buffer Allocated by CFSINIT AT+CFSWFILE Write File to the Flash Buffer Allocated by CFSINIT Write Command AT+CFSWFILE=< file name>,<mode>,<fil e size>,<input time> +CME : <err> Parameters <file name> File name length should less equal 50 characters <mode> 0 If the file already existed, write the data at the beginning of the file. 1 If the file already existed, add the data at the end of the file. <file size> File size should be less than 65536 bytes. <input time> Millisecond, should send file during this period you can t send file when timeout. SIM900_AMR File Playing_Application _V1.01 6

2.3 AT+CFSRFILE Read File from Flash AT+CFSRFILE Read File from Flash Write Command AT+CFSRFILE=<fi le name>,<mode>,<fil e size>,<position> +CME : <err> Parameters <file name> File name length should be less than equal to 50 characters, <mode> 0 Read data at the beginning of the file. 1 Read data at the <position> of the file. <file size> The size of the file that you want to read should be less than 65536. <position> The starting position that will be read in the file. When <write mode>=0, <position> is invalid. Read data from the beginning to the end of the file. When <write mode>=1, <position> is valid. Read data from the <position> to the end of the file. 2.4 AT+CFSDFILE Delete the File from the Flash AT+CFSDFILE Delete the File from the Flash Write Command AT+CFSDFILE=<fi le name> +CME : <err> Parameters <file name> File name length should be less than equal to 50 characters. SIM900_AMR File Playing_Application _V1.01 7

2.5 AT+CFSGFIS Get File Size AT+CFSGFIS Get File Size Write Command AT+CFSGFIS=<file name> +CME : <err> +CFSGFIS:<n> Parameters <file name> File name length should be less than equal to 50 characters. <n> File size 2.6 AT+CFSTERM Free the Flash Buffer Allocated by CFSINIT AT+CFSTERM Write Command AT+CFSTERM Free the Flash Buffer Allocated by CFSINIT +CME : <err> Parameter SIM900_AMR File Playing_Application _V1.01 8

3. Play AMR file sample 3.1 Download AMR file Demonstration Syntax Expect Result Allocate the data buffer AT+CFSINIT Set file parameters and get AT+CFSWFILE="001.amr", CONNECT ready to read the data from the beginning to the end of the file "001.amr", which size 0,14342,30000 // It is ready to receive data from uart, and DCD has been set to low. is 14342 bytes. Begin to receive data from // data uart. //All data has been Data transfer is finished received over, and DCD is set to high. Get the AMR file size AT+CFSGFIS="001.amr" +CFSGFIS: 14342 3.2 Play AMR file locally Under the condition that an AMR file 001.amr is already exist in the module. Demonstration Syntax Expect Result Play the AMR file AT+CPAMR="001.amr",1 //local user can hear the audio. AMR_STOP // Playing is complete. 3.3 Play AMR file in a call Demonstration Syntax Expect Result Play the AMR file AT+CPAMR="001.amr",1 //local user can hear the audio. AMR_STOP //Playing is complete. Make a voice call ATD32523430; SIM900_AMR File Playing_Application _V1.01 9

List current calls (AT+CLCC) AT+CLCC Smart Machine Smart Decision +CLCC: 1,0,0,0,0,"32523430",129,"" Play the AMR file during the call conversation. It can be heard on both sides. Play the AMR file during the call conversation, only local user can hear the playing audio. AT+CPAMR="001.amr",0 AT+CPAMR="001.amr",1 AMR_STOP // Playing is complete. //The remote user cannot hear the audio. Stop playing AT+CPAMR AMR_STOP Hang up ATH 3.4 Delete AMR file Delete the AMR file 001.amr from the module flash. Demonstration Syntax Expect Result Delete the file from flash AT+CFSDFILE="001.amr" Free the data buffer AT+CFSTERM SIM900_AMR File Playing_Application _V1.01 10

Contact us: Shanghai SIMCom Wireless Solutions Ltd. Add: Building A, SIM Technology Building, No.633 Jinzhong Road, Changning District, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 3020 URL: www.sim.com/wm SIM900_AMR File Playing_Application _V1.01 11