WCDMA Audio Player Application Note

Similar documents
GSM Recording AT Commands Manual

GSM Audio Player Application Note

QuecLocator AT Commands Manual

GSM DTMF Application Note

BC95 Firmware Upgrade via Code Loader User Guide

UC20 FILE AT Commands Manual

EC20 MMS AT Commands Manual

UC20 Android RIL Driver User Guide

GSM QuecCell AT Commands Manual

UC15 SSL AT Commands Manual

EC20 SSL AT Commands Manual

UC20 WinCE USB Driver

EC2x&EG9x&EM05 PPP Application Note

M95 Dual SIM Application Notes

BG96 SSL AT Commands Manual

GSM POP3 AT Commands Manual

BC95-G&BC68 MQTT Application Note

BG96 PPP Application Note

WCDMA UGxx PPP Application Note

UC20 Linux USB Driver User Guide

L76-L I2C Application Note

EC20 Wi-Fi Application Note

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

Quectel Cellular Engine

Quectel Cellular Engine

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

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

BG96 MQTT Application Note

SIM900 AMR File Playing Application Note_V1.01

SIMCom_3G_PCM_Application Note_V1.04

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

Quectel Cellular Engine

HTTP Application Note

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

UART Application Note

Delta Package Update Application Note

SIMCOM WCDMA Wireless Module. xx_sleep_mode_application_note

SIM7100 TTS Application Note

SIM20_AT Command Manual_V1.04

UART. SIM5360 UART Multiplexer Application Note. SIM5360_UART_Multiplexer_Application_Note_V

UART Application Note. SIM5XXX UART Application Note 1

SIMCom_3G_Linux_Driver_Applica tion Note_V1.00

SIM7000 Series_NTP_Application Note_V1.00

SIM800C-DS_Application Note _V1.00

SIMCom_3G_HTTP_Application Note_V1.00

SIM7000 Series_HTTP_Application Note_V1.01

SIM7000 Series_PING_Application Note_V1.00

Quectel Cellular Engine

SIMCom_3G_MQTT_Application Note_V1.00

SIM5360 Network Cell Info Application Note

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.

SHT-2B/USB SHT-4B/USB

SHT-2B/USB SHT-4B/USB

SIMCOM WCDMA Wireless Module SIM5xxx PCM Application Note

SIMCom_3G_CSD_Application Note_V1.00

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

Application Note. SIM7100_MMS_Application_Note_V

SIM7X00 Series_SAT_Application Note_V1.00

AT Commands Set SIM20_ATC_V1.02

EC20 FTP AT Commands Manual

Page 1. Arrakis Systems 6604 Powell St. Loveland, CO

SIM800 Series_FS_Application Note_V1.01

Application Note. SIM7100_SMS_Application_Note_V

AU7860EA USB HOST MP3/WMA DECODER SOC. AU7860EA Datasheet. USB Host MP3/WMA Decoder SOC. Rev0.1

WM DS28-EV2-REV1 Schematic and Layout

Always there to help you. Register your product and get support at SBM150. Question? Contact Philips.

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

Development Kit Manual SIM305-EVB_UGD_V1.01

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

SIM5360_GPIO_Demo Note_V1.00

AN4058 Application note

SIM7100 Network Cell Info Application Note

UART Dload Application Note

SIM900_DTMF EmbeddedAT Application Note_V1.01

S1V30080 Series I2C Interface Sample Program Specifications

Network Connection Guide

Click-A-Tune. User Manual

EC20 SMTP AT Commands Manual

Development Kit Manual SIM900D-EVB_UGD_V1.01

Sinteso Test Installation Commissioning. Building Technologies. A6V _en--_a Control Products and Systems

VLink and VLink LE Control Panel User Manual

SIM7100_SIM7500_SIM7600 LBS_Application Note_V1.00

Technical Note. Installation and use of the VT200 IP audio

i-care online Manual for Organization Users

Embedding Audio into your RX Application

Description: Features: WTR010-SD module

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

X-618 Public Address and Voice

Synway DST Series SHR-24DA-CT/PCI. Digital Station Tap Board. Synway Information Engineering Co., Ltd.

Development Kit Manual. SIM5360_EVB_User Guide_V1.02

Introduction. Requirements. Activation

EO-MN910. User Manual. English (USA). 12/2014. Rev.1.0.

About sounds and Animate CC

4GB Micro-Speak Plus User Guide Text

SwyxIt! Handset P280. The Perfect Combination of Functionality and Design. As of: August 2012

SIM7000 Series_FTP_Application Note_V1.00

SIM28_EVB kit_user Guide_V1.02

WM CS20-M-REV2

Transcription:

WCDMA Audio Player Application Note UMTS/HSPA Module Series Rev. WCDMA_Audio_Player_Application_Note_V1.0 Date: 2015-09-07 www.quectel.com

Our aim is to provide customers with timely and comprehensive service. For any assistance, please contact our company headquarters: Wireless Solutions Co., Ltd. Office 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/support/salesupport.aspx For technical support, to report documentation errors, please visit: http://www.quectel.com/support/techsupport.aspx Or Email: Support@quectel.com 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.THE INFORMATION SUPPLIED HEREIN IS 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. 2015. All rights reserved. WCDMA_Audio_Player_Application_Note / Released 1 / 17

About the Document History Revision Date Author Description 1.0 2015-09-07 Alan WANG Initial WCDMA_Audio_Player_Application_Note / Released 2 / 17

Contents About the Document... 2 Contents... 3 Table Index... 4 1 Introduction... 5 2 Overview... 6 3 Audio Recording... 7 3.1. Record from Microphone... 7 3.2. Record from Voice Call... 7 3.3. Supported Recording Format... 7 4 Audio Playback... 8 4.1. Source of Playback... 9 4.1.1. Playback from File System... 9 4.2. Type of Playback... 9 4.2.1. Playback in Idle State... 9 4.2.2. Playback in Voice Call State... 9 4.3. Supported Audio Formats... 9 5 Related AT Command Description... 10 5.1. AT Command Syntax... 10 5.2. Description of AT Command... 10 5.2.1. AT+QAUDRD Record Media File... 10 5.2.2. AT+QAUDPLAY Play Media File... 12 5.2.3. AT+QAUDSTOP Stop Playing Media File... 13 5.2.4. AT+QPSND Play Audio File and Send it to the Remote in Call... 14 6 Appendix A Reference... 16 7 Appendix B Error Codes... 17 WCDMA_Audio_Player_Application_Note / Released 3 / 17

Table Index TABLE 1: SUPPORTED MODULES... 6 TABLE 2: RECORDING FORMAT... 7 TABLE 3: AT COMMANDS MATRIX... 8 TABLE 4: SUPPORTED AUDIO FORMATS... 9 TABLE 5: +QAUDRIND CODE... 11 TABLE 6: +QAUDPIND CODE... 13 TABLE 7: RELATED DOCUMENTS... 16 TABLE 8: TERMS AND ABBREVIATIONS... 16 TABLE 9: DESCRIPTION OF ERROR CODE... 17 WCDMA_Audio_Player_Application_Note / Released 4 / 17

1 Introduction This document describes the functions of audio playback and audio recording of modules. The related AT commands are listed in this document. This document is applicable to UC15 and UC20 modules. WCDMA_Audio_Player_Application_Note / Released 5 / 17

2 Overview Audio could be recorded from microphone or uplink/downlink speech, and stored in the form of file into memory, such as flash and SD card. These recorded audio files can also be played back with modules DAC. The functions related to file operation, such as recording, audio file playback, are available on modules with UFS, RAM and SD card. AT+QAUDRD, AT+QAUDPLAY, AT+QAUDSTOP and AT+QPSND are supported on the modules. The following table lists the detailed supported modules. Table 1: Supported Modules AT Commands UC15 UC20 AT+QAUDRD YES YES AT+QAUDPLAY YES YES AT+QAUDSTOP YES YES AT+QPSND YES YES These functions will be described in the next few chapters. WCDMA_Audio_Player_Application_Note / Released 6 / 17

3 Audio Recording 3.1. Record from Microphone Use the AT+QAUDRD (details in section 5.2.1) can record the sound from microphone. Several media formats are supported, such as WAV_PCM16, WAV_ALAW, WAV_ULAW and AMR. For details, please refer to Table 2: Recording Format. 3.2. Record from Voice Call Downlink and uplink speech could be recorded during voice call. You can use AT+QAUDRD command to record after call is established. 3.3. Supported Recording Format Table 2: Recording Format Format Encoding Sampling Rate Sampling 3 AMR 8KHz 16 bit Resolution Encoding Digit Encode Speed File Size 13 WAV_PCM16 8KHz 16 bit 16 bit 128kbps 960KB/min 14 WAV_ALAW 8KHz 16 bit 8 bit 64kbps 480KB/min 15 WAV_ULAW 8KHz 16 bit 8 bit 64kbps 480KB/min WCDMA_Audio_Player_Application_Note / Released 7 / 17

4 Audio Playback Audio can be played back to far-end or local in the voice call state and idle state. Different commands should be used for different types of playback. The source of the playback is also different. See the following figure and table to get an overview of the audio playback. Table 3: AT Commands Matrix Figure 1: Audio Playback Overview Direction File type Command Local Wav QPSND Local Amr, mp3 QAUDPLAY Far-end Amr, mp3 NULL Far-end Wav QPSND WCDMA_Audio_Player_Application_Note / Released 8 / 17

4.1. Source of Playback Audio data (digital form) to be played back can come from several sources and files are stored in the file system or SD card. 4.1.1. Playback from File System Audio files stored in module s file system could be played back, either in flash or in SD card. In idle state (no call), AT+QAUDPLAY is used to play the audio files. During voice call, AT+QPSND is used to play the audio files to the other side of the call. 4.2. Type of Playback The type mentioned here is to play in idle or voice call state. Different types support different audio playback formats. In general, playback in idle state can support more formats than in voice call state. 4.2.1. Playback in Idle State Idle state means no call exists. Sound will output to local speakers. AT+QAUDPLAY and AT+QPSND belong to such category. 4.2.2. Playback in Voice Call State The played sound will be send to the far end of voice call, and mic is mute. AT+QPSND belongs to such category. 4.3. Supported Audio Formats The table below shows the formats supported in each command. Table 4: Supported Audio Formats Commands AT+QAUDPLAY AT+QPSND Supported Formats AMR, MP3 8 KHz sampling rate WAV WCDMA_Audio_Player_Application_Note / Released 9 / 17

5 Related AT Command Description 5.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 5.2. Description of AT Command 5.2.1. AT+QAUDRD Record Media File This command reads non-variable parameters affected by internal processes in the GSM engine. Record the uplink and downlink speech during voice call or record sound from local microphone in idle state and save it to files. AT+QAUDRD Record Media File Test Command AT+QAUDRD=? +QAUDRD: (0,1),<file_name>,(3,13-15),(0,1) Read Command AT+QAUDRD? Write Command AT+QAUDRD=<control>[,<file_name> [,<format>[,<dlink>]]] +QAUDRD: <state> +CME ERROR: <err> WCDMA_Audio_Player_Application_Note / Released 10 / 17

Parameter <state> 0 Module is not in recording 1 Module is in recording <control> 0 Stop the recording 1 Start to record <file_name> Name of the file to record <format> Format of the file 3 AMR 13 WAV_PCM16 14 WAV_ALAW 15 WAV_ULAW <dlink> Record down-link sound 0 Record up-link sound 1 Record down-link sound <err> 901 Audio unknown error 902 Audio invalid parameters 903 Audio operation not supported 904 Audio device busy NOTES 1. <file_name> includes file path, file name and file suffix. File path must be UFS, RAM or SD root directory. Corresponding examples, Example.wav, RAM:Example.wav, SD:Example.wav, UFS:Example.amr, SD:Example.wav. File suffix can be wav or amr when the <format> is omitted. For amr suffix, file is stored in AMR coding format. For wav suffix, file is stored in WAV_PCM16 coding format. 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). 3. If the recording file s name and format is same with an existed file or an unknown error occur, module will report +QAUDRIND: 0,1. 4. If current recording is interrupted by other audio task, module will report URC +QAUDRIND: 0,6. 5. If there is no space to record, module will report URC +QAUDRIND: 0,3. Table 5: +QAUDRIND Code <code> Meaning 0 Reserved 1 Unknown error 3 No space to record WCDMA_Audio_Player_Application_Note / Released 11 / 17

6 Interrupted by other audio task 5.2.2. AT+QAUDPLAY Play Media File Play the audio files in idle state and output to speakers. AT+QAUDPLAY Play Media File Test Command AT+QAUDPLAY=? +QAUDPLAY: <file_name>,(0,1),(0-7) Read Command AT+QAUDPLAY? +QAUDPLAY: <state> Write Command AT+QAUDPLAY=<file_name>,<repeat >,<volume> Parameter <state> 0 Module is not in playing 1 Module is in playing <file_name> Name of the file to play <repeat> Repeating play or not 0 Play only once 1 Repeat <volume> Integer type, value: 0-7 <err> 901 Audio unknown error +CME ERROR: <err> Play completed report: +QAUDPLAY: 0 902 Audio invalid parameters 903 Audio operation not supported 904 Audio device busy NOTES 1. <file_name> includes file path, file name and file suffix. File path must be UFS, RAM or SD root directory. File suffix can be mp3 or amr, such as: UFS:A.mp3, SD:B.amr. 2. If there is an unknown error occurred, module will report URC +QAUDPIND: 0,1. 3. If current playing is interrupted by other audio task, module will report URC +QAUDPIND: 0,6. WCDMA_Audio_Player_Application_Note / Released 12 / 17

Table 6: +QAUDPIND Code <code> 0 1 6 Meaning Reserved Unknown error Interrupted by other audio task 5.2.3. AT+QAUDSTOP Stop Playing Media File Stop the audio file playback triggered by AT+QAUDPLAY. AT+QAUDSTOP Stop Media File Play Test Command AT+QAUDSTOP=? Write Command AT+QAUDSTOP Parameter Example AT+QAUDRD=1,"A.amr",3 AT+QAUDRD=0 AT+QAUDRD=1,"RAM:B.wav" AT+QAUDRD=0 AT+QAUDRD=1,"SD:C.wav" AT+QAUDRD=0 +CME ERROR: <err> <err> 901 Audio unknown error 902 Audio invalid parameters 903 Audio operation not supported 904 Audio device busy //Record a media file in AMR format, stored in UFS. //Name it as A. //Stop recording. //Record a media file in WAV_PCM16 format, stored in RAM and named as B. //Stop recording. //Record a media file, and stored in SD card, named as C. //Stop recording. WCDMA_Audio_Player_Application_Note / Released 13 / 17

AT+QAUDPLAY="A.amr",0,7 //Play the A media file, not repeat, volume is 7, through headset. +QAUDPLAY: 0 //After playing is finished, URC report is output. AT+QAUDPLAY="RAM:B.wav",0,7 //Play the B media file, not repeat, volume is 7, through headset. +QAUDPLAY: 0 //After playing is finished, URC report is output. AT+QAUDPLAY="SD:C.wav",1,3 //Play the C media file, repeat, volume is 3, through headset. AT+QAUDSTOP //Stop playing. 5.2.4. AT+QPSND Play Audio File and Send it to the Remote in Call Play the audio files during voice call. The audio will be mixed to the uplink and downlink speech. AT+QPSND Play Wave File Test Command AT+QPSND=? Read Command AT+QPSND? Write Command AT+QPSND=<control>,<file_name>,< repeat>[,<ulmute>[,<dlmute>]] Parameter +QPSND: (0,1),<file_name>,(0,1),(0,1),(0,1) +QPSND: <state> <state> 0 Module is not playing 1 Module is playing +CME ERROR: <err> Playing completed report: +QPSND: 0 <control> 0 Stop playing 1 Start playing <file_name> Name of the file to be played <repeat> Repeat play or not 0 Play only once 1 Repeat play <ulmute> Numeric type, mute uplink or not WCDMA_Audio_Player_Application_Note / Released 14 / 17

0 Mute 1 Not mute <dlmute> Numeric type, mute downlink or not 0 Mute 1 Not mute <err> 901 Audio unknown error 902 Audio invalid parameters 903 Audio operation not supported 904 Audio device busy NOTES 1. <file_name> includes file path, file name and file suffix. File path must be UFS, RAM or SD root directory. File suffix must be.wav, such as: UFS:A.wav. 2. We only support 8K, 16bit liner, mono wave format. Example AT+QPSND=1, A.wav,0 +QPSND: 0 AT+QPSND=1, A.wav,0,1 +QPSND: 0 //Play a wave file which is stored in UFS. //Play a wave file to far-end when a call is ongoing. WCDMA_Audio_Player_Application_Note / Released 15 / 17

6 Appendix A Reference Table 7: Related Documents SN Document Name Remark [1] _UC15_AT_Commands_Manual UC15 AT Commands Manual [2] _UC20_AT_Commands_Manual UC20 AT Commands Manual Table 8: Terms and Abbreviations Abbreviation Description ME TA MS UFS NV Mobile Equipment Terminal Adapter Mobile Station User File Storage Non-volatile WCDMA_Audio_Player_Application_Note / Released 16 / 17

7 Appendix B Error Codes Table 9: Description of Error Code Code of <err> Description of Error Code 901 Audio unknown error 902 Audio invalid parameters 903 Audio operation not supported 904 Audio device busy WCDMA_Audio_Player_Application_Note / Released 17 / 17