GSM Recording AT Commands Manual

Similar documents
GSM Audio Player Application Note

WCDMA Audio Player Application Note

QuecLocator AT Commands Manual

GSM DTMF Application Note

BC95 Firmware Upgrade via Code Loader User Guide

M95 Dual SIM Application Notes

EC20 MMS AT Commands Manual

GSM POP3 AT Commands Manual

UC20 Android RIL Driver User Guide

UC20 FILE AT Commands Manual

BG96 PPP Application Note

EC20 SSL AT Commands Manual

GSM QuecCell AT Commands Manual

EC2x&EG9x&EM05 PPP Application Note

UC15 SSL AT Commands Manual

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

BC95-G&BC68 MQTT Application Note

UC20 WinCE USB Driver

Quectel Cellular Engine

BG96 SSL AT Commands Manual

UC20 Linux USB Driver User Guide

L76-L I2C Application Note

Quectel Cellular Engine

Quectel Cellular Engine

EC20 Wi-Fi Application Note

WCDMA UGxx PPP Application Note

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

Quectel Cellular Engine

Firmware Upgrade Tool Lite User Guide. Firmware_Upgrade_Tool_Lite_V1.1

BG96 MQTT Application Note

Quectel Cellular Engine

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

UART. SIM5360 UART Multiplexer Application Note. SIM5360_UART_Multiplexer_Application_Note_V

SIM900 AMR File Playing Application Note_V1.01

SIM7000 Series_HTTP_Application Note_V1.01

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

GSM EVB User Guide. GSM/GPRS/UMTS/HSPA/NB-IoT Module Series. Rev. GSM_EVB_User_Guide_V3.4. Date:

Delta Package Update Application Note

HTTP Application Note

SIMCom_3G_HTTP_Application Note_V1.00

UART Application Note

SIM800C-DS_Application Note _V1.00

SIMCom_3G_Linux_Driver_Applica tion Note_V1.00

SIMCom_3G_MQTT_Application Note_V1.00

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

SIM7000 Series_PING_Application Note_V1.00

SIM7000 Series_FTP_Application Note_V1.00

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

SIMCom_SIM800H_EAT_flash_Tool _User Manual_V1.01

SIM7100_SIM7500_SIM7600 LBS_Application Note_V1.00

AT Commands Set SIM20_ATC_V1.02

SIMCOM WCDMA Wireless Module. xx_sleep_mode_application_note

SIM7000 Series_NTP_Application Note_V1.00

SIMCom_3G_CSD_Application Note_V1.00

SIMCom_3G_PCM_Application Note_V1.04

SIM7100 TTS Application Note

UART Dload Application Note

SIM20_AT Command Manual_V1.04

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

UART Application Note. SIM5XXX UART Application Note 1

SIM800 Series_FS_Application Note_V1.01

EC20 FTP AT Commands Manual

EC20 SMTP AT Commands Manual

WM8805_6152_DS28_EV1_REV3 Schematic and Layout. WM8805_6152_DS28_EV1_REV3 Schematic and Layout. Customer Information 1 of 18 June 2007, Rev 3.

SIM28_EVB kit_user Guide_V1.02

SIM900_DTMF EmbeddedAT Application Note_V1.01

GPS Application Note

SIM5360_GPIO_Demo Note_V1.00

i-care online Manual for Organization Users

Smart Machine Smart Decision. SIM900_IP_Application Note_V1.07 1

SIM5360 Network Cell Info Application Note

Development Kit Manual SIM305-EVB_UGD_V1.01

WM DS28-EV1-REV2 Schematic and Layout WOLFSON DEVICE(S):

SIM800H&L_ Secondary Reflow SMT _Guidelines_V1.00

WM DS28-EV2-REV1 Schematic and Layout

WM CS20-M-REV2

Development Kit Manual SIM900D-EVB_UGD_V1.01

WM DT16-EV1. Customer Standalone Board WOLFSON DEVICE(S): DATE: August 2009

WM DT20-EV1. Customer Standalone Board WOLFSON DEVICE(S): DATE: September 2009

SIM5350_EVM_User_Guide _V1.00

Application Note. SIM7100_MMS_Application_Note_V

SIM800H&L_EVM_User Guide _V1.00

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

Development Kit Manual. SIM5360_EVB_User Guide_V1.02

GSM/GPRS/GPS Tracker GL300 User Manual

Development Kit Manual. SIM908 EVB kit_user Guide_V1.00

TCP/IP Application Note

SIM7X00 Series_SAT_Application Note_V1.00

SIM7100 Network Cell Info Application Note

How to use Linux driver

UMTS&LTE EVB User Guide

GSM/GPRS/GPS Tracker GL300 User Manual

SIMCOM WCDMA Wireless Module SIM5xxx PCM Application Note

SIM900_Multiplexer Manual_Application Note_V1.3

SMS Application notes AN_SMS_V1.01

SIM800H_ Secondary Reflow SMT Guidelines _V1.01

SSL Application Note. SIM5360_SSL_Application_Note_V0.01

SeMSy III Interface Server / Clients

SIM5360_ECALL_Application Note_V0.04

Mini PCIe_EVB kit_ User Guide_V1.00

Transcription:

GSM Recording AT Commands Manual GSM/GPRS Module Series Rev. GSM_Recording_AT_Commands_Manual_V3.0 Date: 2012-12-07 www.quectel.com

Our aim is to provide customers with timely and comprehensive service. For any assistance, please contact our company headquarter: Wireless Solutions Co., Ltd. Room 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233 Tel: +86 21 5108 6236 Mail: info@quectel.com Or our local office, for more information, please visit: http://www.quectel.com/quectel_sales_office.html For technical support, to report documentation errors, please visit: http://www.quectel.com/tecsupport.aspx GENERAL NOTES QUECTEL OFFERS THIS INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION PROVIDED IS BASED UPON CUSTOMERS REQUIREMENTS. QUECTEL MAKES EVERY EFFORT TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN ARE SUBJECT TO CHANGE WITHOUT PRIOR NOTICE. COPYRIGHT THIS INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL CO., LTD. TRANSMITTABLE, REPRODUCTION, DISSEMINATION AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THIS CONTENTS ARE FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF DAMAGES. ALL RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR REGISTRATION OF A UTILITY MODEL OR DESIGN. Copyright Wireless Solutions Co., Ltd. 2012. All rights reserved. GSM_Recording_AT_Commands_Manual / Released 1 / 12

About the document History Revision Date Author Description 3.0 2012-12-04 Derrick DAI Initial GSM_Recording_AT_Commands_Manual / Released 2 / 12

Contents About the document... 2 Contents... 3 Table Index... 4 1 Introduction... 5 2 Description... 6 2.1. AT Command Syntax... 6 2.2. Description of AT Command... 6 2.2.1. AT+QAUDRD Record Media File... 6 2.2.2. AT+QAUDPLAY Play Media File... 7 2.2.3. AT+QAUDSTOP Stop Playing Media File... 8 2.3. Supported Recording Format... 9 2.4. URC Report... 9 3 Appendix A Reference... 11 4 Appendix B Summary of CME ERROR Codes... 12 GSM_Recording_AT_Commands_Manual / Released 3 / 12

Table Index TABLE 1: RECORDING FORMAT... 9 TABLE 2: +QAUDRIND CODE... 10 TABLE 3: +QAUDPIND CODE... 10 TABLE 4: RELATED DOCUMENTS... 11 TABLE 5: TERMS AND ABBREVIATIONS... 11 TABLE 6: DESCRIPTION OF DIFFERENT CODING SCHEMES... 12 GSM_Recording_AT_Commands_Manual / Released 4 / 12

1 Introduction This document presents the AT command set for recording function of modules, including the format of related AT commands, and the examples of how you can use them. GSM_Recording_AT_Commands_Manual / Released 5 / 12

2 Description 2.1. AT Command Syntax Test Command AT+<x>=? Read Command AT+<x>? This command returns the list of parameters and value ranges set by the corresponding Write Command or internal processes. This command returns the currently set value of the parameter or parameters. Write Command AT+<x>=< > This command sets the user-definable parameter values. Execution AT+<x> Command 2.2. Description of AT Command 2.2.1. AT+QAUDRD Record Media File AT+QAUDRD Record Media File This command reads non-variable parameters affected by internal processes in the GSM engine Test Command AT+QAUDRD=? +QAUDRD: (0,1),"filename"[,format] Read Command AT+QAUDRD? Write Command AT+QAUDRD=<control>[,"filename"[, <format>]] Reference +QAUDRD: <state> Audio channel is decided by AT command: AT+QAUDCH Parameter GSM_Recording_AT_Commands_Manual / Released 6 / 12

<state> Recording state 0 Module is not in recording 1 Module is in recording filename Name of the file to record, refer to Note 1 <format> Format of the file, refer to Note 2 3 AMR 13 WAV_PCM16 14 WAV_ALAW 15 WAV_ULAW 16 WAV_ADPCM NOTES 1. filename consists of file path, file name and file suffix. Path name could be one of directories of UFS, RAM or SD card. For example, Example.wav, RAM:Example.wav, SD: Example.wav and SD:Directory\\ Example.wav. File suffix can be wav or amr when the <format> is omitted. For amr suffix, file is stored by AMR coding format. For wav suffix, file is stored by WAV_ADPCM coding format when the module is on calling, stored by WAV_PCM16 coding format when the module is idle. 2. When the file suffix is amr, the format can only be 3 (AMR). When the file suffix is wav, the format can be 13 (WAV_PCM16), 14 (WAV_ALAW), 15 (WAV_ULAW), 16 (WAV_ADPCM). Format must be formulated with other file suffix. Please refer to Table 1: Recording Format. 3. If the recording file s name and format is same with an existed file. Recording data will be appended to the end of the file. 4. Record media file to SD subdirectory, you need to create the subdirectory manually first. 2.2.2. AT+QAUDPLAY Play Media File AT+QAUDPLAY Play Media File Test Command AT+QAUDPLAY=? Write Command AT+QAUDPLAY= filename, <repeat>,<volume>,[<channel >] Reference +QAUDPLAY: filename,(0-1),(0-100),[(0-2)] If the <channel> parameter is omitted, channel is decided by AT command: AT+QAUDCH GSM_Recording_AT_Commands_Manual / Released 7 / 12

Parameter filename Name of the file to play, including file path, file name and file suffix. File suffix can be AMR,WAV or MP3 <repeat> Whether or not to play media file repeatedly 0 Play only one time 1 Play repeatedly <volume> Volume to play media file 0-100 <channel> Channel to play media file 0 Receiver Reference Example AT+QAUDRD=1,"A.amr",3 // Record a media file in AMR format. Store it in UFS, named as A AT+QAUDRD=0 // Stop the recording. AT+QAUDRD=1,"SD:B.wav" AT+QAUDRD=0 1 Headset 2 Loud Speaker 2.2.3. AT+QAUDSTOP Stop Playing Media File AT+QAUDSTOP Stop Playing Media File Test Command AT+QAUDSTOP=? Execution Command AT+QAUDSTOP // Record a media file in WAV_PCM16 format, stored it in SD root directory, Named as B. // Stop the recording // Create a subdirectory named as picture before recording AT+QAUDRD=1,"SD:picture\\C.wav" // Record a media file, and stored it in SD subdirectory, Named as C. AT+QAUDRD=0 // Stop the recording AT+QAUDPLAY="A.amr",0,100,1 // Play the A media file, not repeat, volume 100, through Headset. +QAUDPIND: 0,5 // After playing is finished, URC report is output GSM_Recording_AT_Commands_Manual / Released 8 / 12

AT+QAUDPLAY="SD: B.wav",0,100,1 // Play the B media file, not repeat, volume 100, through Headset. +QAUDPIND: 0,5 // After playing is finished, URC report is output AT+QAUDPLAY="SD: picture\\c.wav",1,80,1 // Play the C media file, repeat, volume 80, through Headset. AT+QAUDSTOP // Stop the playing 2.3. Supported Recording Format Table 1: Recording Format Format Encoding Sampling Rate Sampling Resolution Encoding Digit Encode Speed File Size 3 AMR 16 bit 40KB/min 13 WAV_PCM16 8HZ 16 bit 16 bit 128kbps 960KB/min 14 WAV_ALAW 8HZ 16 bit 8 bit 64kbps 480KB/min 15 WAV_ULAW 8HZ 16 bit 8 bit 64kbps 480KB/min 16 WAV_ADPCM 8HZ 16 bit 4 bit 32kbps 240KB/min 2.4. URC Report The recording would be forced to quit in the following cases. 1. Start to record when module is on idle. The recording would be forced to quit when making a call or answer a call. 2. Start to record when module is on a call. The recording would be forced to quit when the call is hanged up. 3. When the recording is forced to quit, URC: +QAUDRIND: 0,<code> would be output through UART. GSM_Recording_AT_Commands_Manual / Released 9 / 12

Table 2: +QAUDRIND Code <code> Meaning 0 Reserved 1 Unknown error 3 Disc is full 6 Ended by other audio task 10 Not found the disc When the playing is finished or ended by other audio tasks, URC: +QAUDPIND: 0,<code> would be output through UART. Table 3: +QAUDPIND Code <code> Meaning 5 Playing is finished 6 Ended by other audio tasks 9 Unknown error GSM_Recording_AT_Commands_Manual / Released 10 / 12

3 Appendix A Reference Table 4: Related Documents SN Document name Remark [1] Mxx_ATC.pdf Mxx AT Command Set Table 5: Terms and Abbreviations Abbreviation Description UFS User File System GSM_Recording_AT_Commands_Manual / Released 11 / 12

4 Appendix B Summary of CME ERR- OR Codes Table 6: Description of Different Coding Schemes Code of <err> Meaning 4300 Wrong format 4302 Audio task busy 4303 Create file failed 4304 Additional recording in a different format 4305 Disc full 4306 Write protection on file 4499 Unknown error GSM_Recording_AT_Commands_Manual / Released 12 / 12