Page 2
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.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note About the Document History Revision Date Author Description Felix YIN/ 2015-9-7 Initial Jun WU Updated PCM information in Chapter 2 2015-10-23 Felix YIN Updated <data_length> value for AT+QDAC 2015-12-21 Felix YIN Updated PCM timing in Chapter 2 WCDMA_UGxx_Audio_Design_Note Confidential / Released 2 / 56...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Introduction This document mainly introduces how to use Pulse Code Modulation (PCM) digital interface with Quectel UGxx modules. WCDMA_UGxx_Audio_Design_Note Confidential / Released 7 / 56...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note PCM Characteristic Quectel UGxx modules provide one PCM digital interface for audio design, which supports the following features: Supports16, 32 bit mode with short frame synchronization, the PCM supports 32 bit mode by default.
Page 10
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note High-level output voltage 1.55 VDD_EXT NOTE The voltage of VDD_EXT is 1.8V, please refer to document [1] for details. In PCM audio format, the MSB of the channel included in the frame (PCM_SYNC) is clocked on the second CLK rising edge after the PCM_SYNC pulse rising edge.
Page 11
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note For the relations between peripherals, modules and PCM CODEC, please refer to the following figure. 0R_NM MICBIAS MIC+ PCM_CLK BCLK MIC- PCM_SYNC LRCLK UART UART PCM_OUT DACDAT PCM_IN ADCDAT CLK_OUT MCLK SPK+ I2C_SCL I2C_SDA SPK-...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Audio Circuit Design Codec ALC5616, NAU8814 and MAX9860 have been approved for PCM application. Pin25 provides a clock ranges from 32k to 26M. This clock can be used to provide MCLK for codec. When ALC5616, NAU8814 or MAX9860 is using, Pin25 will output a 26M clock by default.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 3.1. PCM Codec Design Circuit with ALC5616 The following figure shows PCM application with ALC5616 from Realtek (http://www.realtek.com.tw/), and I2C interface is equipped to configure codec. Figure 3: ALC5616 Codec Design NOTES The RC filter circuit (R=22ohm, C=22pF) needs to be installed on PCM_CLK line.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 3.2. PCM Codec Design Circuit with NAU8814 The following figure shows PCM application with NAU8814 from Nuvoton (http://www.nuvoton.com), and I2C interface is equipped to configure codec. Figure 4: NAU8814 Codec Design NOTES The RC filter circuit (R=22ohm, C=22pF) needs to be installed on PCM_CLK line.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 3.3. PCM Codec Design Circuit with MAX9860 The following figure shows PCM application with MAX9860 from Maxim (http://www.maxim-ic.com), and I2C interface is equipped to configure codec. Figure 5: MAX9860 Codec Design NOTES The RC filter circuit (R=22ohm, C=22pF) needs to be installed on PCM_CLK line.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Design Consideration 4.1. Power Supply for PCM Codec For different PCM codec, the supply voltage is different. It’s better to supply power for PCM codec with dedicated LDO, and not to share this power with other circuits. 4.2.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 4.3. TDD Noise It is important to avoid or reduce TDD noise in audio circuit design and layout, some suggestions are listed below: Different capacitors have their own self-resonant frequencies due to the different fabrication processes and materials.
Page 20
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Figure 11: Five Echo Paths In these five paths, internal air-path and direct air-path are the first influential factors. Other three factors (vibrations through casework, vibrations through PCB, distant echoes) are secondary. To deal with echo issue from internal air-path, you can separate microphone from internal space of chassis by foam or rubber ring which can effectively suppress the inner echo interference.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE The best installation way of microphone socket is to encase microphone by silicone cover except for front cavity, and design a cylindrical hole whose center is the exit hole inside the chassis, make the microphone with silicone cover just fit the cylindrical hole, so as to only let voice enter into microphone from the exit hole, and not from leak of chassis interior.
Page 22
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Figure 14: SPK Frequency Response NOTE Horizontal axis is frequency, longitudinal axis is loudness and unit is dB. Figure 15: SPK THD WCDMA_UGxx_Audio_Design_Note Confidential / Released 21 / 56...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE Horizontal axis is frequency, longitudinal axis is distortion and unit is %. In Figure 15, the three colors represent three venders’ products. After comprehensive comparison, the green one performs the best, and the blue one is worse, and the red one is the worst. 4.6.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Audio Tuning in Different Modes There are three kinds of common modes: handset, headset, handfree. AT+QAUDMOD is used to choose modes. For each mode, there are some default settings, such as CLVL, CRSL, QSIDET, QMIC and QAUDGAIN.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note AT+QAUDGAIN=0,-1,50 //If downlink or uplink volume is a litter lower or higher, please use AT+QAUDGAIN to tune it. AT+QSIDET=-100 //Tune side tone 5.2. Speech Call in Headset Mode Set AT+QAUDMOD=1 to use Headset mode. AT+QAUDMOD=1 //<mode>=1 is used for headset mode.
Page 26
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note AT+QAUDGAIN=2,100,60 //If downlink or uplink volume is a litter lower or higher, please use AT+QAUDGAIN to tune it. AT+QSIDET=-450 //Tune side tone WCDMA_UGxx_Audio_Design_Note Confidential / Released 25 / 56...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Audio AT Command Description This chapter will introduce the common audio related AT commands. For more details, please refer to document [3]. 6.1. AT+QDAC Digital Audio Interface Configuration AT+QDAC is used to configure the digital audio interface. While <io>=1, you can define the PCM interface by yourself;...
Page 28
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Parameter <io> Digital PCM output (customer defined) Analog output (for default audio codec NAU8814) Analog output (for default audio codec ALC5616) Analog output (for default audio codec MAX9860) <mode> Master mode Slave mode <sample_rate>...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 6.3. AT+CLVL Loud Speaker Volume Level AT+CLVL is used to select the volume of the internal loudspeaker of the module. AT+CLVL Loud Speaker Volume Level Test Command Response AT+CLVL=? +CLVL: (list of supported<level>s) Read Command Response AT+CLVL?
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Read Command Response AT+QMIC? +QMIC: <handset volume>,<headset volume>,<handfreevolume> Set Command Response AT+QMIC=<mode>,<volume> ERROR Maximum Response Time 300ms Parameter <mode> Numeric type, audio mode Handset Headset Handfree <volume> Numeric type, indicates uplink volume, range: 0-15, the default value of mode 0 is 12, the default value of mode 1 is 14, and the default value of mode 2 is 13.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note If error is related to ME functionality: +CME ERROR: <err> Maximum Response Time 300ms Reference 3GPP TS 27.007 Parameter <n> Mute off Mute on NOTE This parameter will not be saved. 6.7. AT+QCLKOUT Output Clock Source AT+QCLKOUT is used to output clock source from pin25.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Parameter <enable> Disable to output clock source. Enable to output clock source. <source> 26MHz 13MHz 6.5MHz 32.768KHz NOTES Parameters will not be saved to NV. When Pin25 is busy, it will return CME error. 6.8.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE Parameter will be saved to NV immediately by default. 6.9. AT+QAUDLOOP Enable Audio Loop Test This command is used to enable audio loop test. AT+QAUDLOOP Enable Audio Loop Test Test Command Response AT+QAUDLOOP=? +QAUDLOOP: (0,1),(0-2)
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Read Command Response AT+CRSL? +CRSL: <level> Write Command Response AT+CRSL=<level> ERROR Maximum Response Time 300ms Parameter <level> Numeric type, indicates the configured volume of ring tone. Range: 0-100, the default value of mode 0 is 80, the default value of mode 1 is 50, and the default value of mode 2 is 80. NOTE This parameter will not be saved.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Parameter <n> Numeric type Ring tone is normal Ring tone is mute NOTE This parameter will not be saved. 6.13. AT+QPCMON Enable PCM Sync & BCLK AT+QPCMON is used to enable PCM sync & BCLK. AT+QPCMON Enable PCM Sync &...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 6.14. AT+QAUDCFG Audio Tuning Process AT+QAUDCFG is used to query and configure various audio settings of UE. AT+QAUDCFG Audio Tuning Process Test Command Response AT+QAUDCFG=? +QAUDCFG: "handset/eec", (list of supported <eecpara>s) +QAUDCFG: " headset/eec", (list of supported <eecpara>s) +QAUDCFG: "handfree/eec", (list of supported <eecpara>s)
Page 40
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note …… Write Command Response If configuration parameters are omitted: AT+QAUDCFG="handset/eec"[,<eecpara>] +QAUDCFG: "handset/eec",<eecpara> If configuration parameters are entered: ERROR Parameter <eecpara> List of integers, separated by dot (.) Par0 Echocancollationcontrol word, 1: enable, 0: disable, default value might be different in different audio modes Par1 AEC (Acoustic Echo Canceller) control word, 1: enable, 0: disable, default value...
Page 41
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Par14 AGC (Automatic Gain Control) control word, 1: enable, 0: disable, default value might be different in different audio modes Par15 RE_LdAddGain, Additionalgain, range: -16384~16384. Default value might be different in different audio modes Par16 RE_LdGainLoLim, Total gain lower limit, range: 0-16384.
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note AT+QCFG="handset/eec" //Query +QAUDCFG: "handset/eec","1.1.100.100.100.1.1.1.2.1.32113.16384.2560.4096.1.0.0.5000.0.0.5120.12288.256.282. 307.1.0" 6.14.2. AT+QAUDCFG="headset/eec" Set Echo Cancellation for Headset AT+QAUDCFG=“headset/eec” is used to set echo cancellation for headset. AT+QAUDCFG="headset/eec" Set Echo Cancellation for Headset Test Command Response …… AT+QAUDCFG=? +QAUDCFG: "headset/eec",<eecpara>...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note +QAUDCFG: "headset/eec","1.1.100.100.100.1.1.1.2.1.32113.16384.2560.4096.1.0.0.5000.0.0.5120.12288.256.282. 307.1.0" 6.14.3. AT+QAUDCFG="handfree/eec" Set Echo Cancellation for Handfree AT+QAUDCFG=“handfree/eec” is used to set echo cancellation for handfree. AT+QAUDCFG="handfree/eec" Set Echo Cancellation for Headfree Test Command Response …… AT+QAUDCFG=? +QAUDCFG: "handfree/eec",<eecpara> ……...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note 6.14.4. AT+QAUDCFG="handset/nr/ul" Set Uplink Noise Reduction for Handset AT+QAUDCFG=“handset/nr/ul” is used to set uplink noise reduction for handset. AT+QCFG=“handset/nr/ul” Set Uplink Noise Reduction for Handset Test Command Response …… AT+QAUDCFG=? +QAUDCFG: "handset/nr/ul",<nrpara> ……...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Example AT+QAUDCFG="handset/nr/ul", "1.6000.9000.10000.1800.19660" //Set configuration to default AT+QAUDCFG="handset/nr/ul" //Query +QAUDCFG: "handset/nr/ul", "1.6000.9000.10000.1800.19660" 6.14.5. AT+QAUDCFG="handset/nr/dl" Set Down Link Noise Reduction for Handset AT+QAUDCFG=“handset/nr/dl” is used to set down link noise reduction for handset. AT+QCFG="handset/nr/dl"...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Example AT+QAUDCFG="handset/nr/dl","1.12000.10000.10000.1000.19660" //Set configuration to default AT+QAUDCFG="handset/nr/dl" //Query +QAUDCFG: "handset/nr/dl","1.12000.10000.10000.1000.19660" 6.14.6. AT+QAUDCFG="headset/nr/dl" Set Down Link Noise Reduction for Headset AT+QAUDCFG=“headset/nr/dl” is used to set down link noise reduction for headset. AT+QCFG="headset/nr/dl" Set Down Link Noise Reduction for Headset Test Command Response ……...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Example AT+QAUDCFG="headset/nr/dl","1.12000.10000.10000.1000.19660" //Set configuration to default AT+QAUDCFG="headset/nr/dl" //Query +QAUDCFG: "headset/nr/dl", "1.12000.10000.10000.1000.19660" 6.14.7. AT+QAUDCFG="headset/nr/ul" Set Uplink Noise Reduction for Headset AT+QAUDCFG=“headset/nr/ul” is used to set uplink noise reduction for headset. AT+QCFG="headset/nr/ul" Set Uplink Noise Reduction for Headset Test Command Response ……...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Example AT+QAUDCFG="headset/nr/ul","1.6000.9000.10000.1800.19660" //Set configuration to default AT+QAUDCFG="headset/nr/ul" //Query +QAUDCFG: "headset/nr/ul","1.6000.9000.10000.1800.19660" 6.14.8. AT+QAUDCFG="handfree/nr/dl" Set Down Link Noise Reduction for Handfree AT+QAUDCFG=“handfree/nr/dl” is used to set down link noise reduction for handfree. AT+QCFG="handfree/nr/dl" Set Down Link Noise Reduction for Handfree Test Command Response ……...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Example AT+QAUDCFG="handfree/nr/dl","1.12000.10000.10000.1000.19660" //Set configuration to default AT+QAUDCFG="handfree/nr/dl" //Query +QAUDCFG: "handfree/nr/dl","1.12000.10000.10000.1000.19660" 6.14.9. AT+QAUDCFG="handfree/nr/ul" Set Uplink Noise Reduction for Handfree AT+QAUDCFG=“handfree/nr/ul” is used to set uplink reduction for handfree. AT+QCFG="handfree/nr/ul" Set Uplink Noise Reduction for Handfree Test Command Response ……...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note Example AT+QAUDCFG="handfree/nr/ul","1.6000.9000.10000.1800.19660" //Set configuration to default AT+QAUDCFG="handfree/nr/ul" //Query +QAUDCFG: "handfree/nr/ul","1.6000.9000.10000.1800.19660" 6.14.10. AT+QAUDCFG="nau8814/dlgain" Set Down Link Gain Level for Codec nau8814 AT+QAUDCFG=“nau8814/dlgain” is used to set down link gain level for codec nau8814. AT+QAUDCFG="nau8814/dlgain"...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE This parameter will not be saved. Example AT+QAUDCFG="nau8814/dlgain",85 //Set downlink gain to 85 6.14.11. AT+QAUDCFG="nau8814/ulgain" Set Uplink Gain Level for Codec nau8814 AT+QAUDCFG=“nau8814/ulgain” is used to set uplink gain level for codec nau8814. AT+QAUDCFG=“nau8814/ulgain”...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE This parameter will not be saved. Example AT+QAUDCFG="nau8814/ulgain",90 //Set uplink gain to 90 6.14.12. AT+QAUDCFG="alc5616/dlgain" Set Down Link Gain Level for Codec alc5616 AT+QAUDCFG=“alc5616/dlgain” is used to set down link gain level for codec alc5616. AT+QAUDCFG=“alc5616/dlgain”...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE This parameter will not be saved. Example AT+QAUDCFG="alc5616/dlgain",85 //Set downlink gain to 85 6.14.13. AT+QAUDCFG="alc5616/ulgain" Set Uplink Gain Level for Codec alc5616 AT+QAUDCFG=“alc5616/ulgain” is used to set uplink gain level for codec alc5616. AT+QAUDCFG=“alc5616/ulgain”...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE This parameter will not be saved. Example AT+QAUDCFG="alc5616/ulgain",85 //Set uplink gain to 85 6.14.14. AT+QAUDCFG="max9860/dlgain" Set Down Link Gain Level for Codec max9860 AT+QAUDCFG=“max9860/dlgain” is used to set down link gain level for codec max9860. AT+QAUDCFG=“max9860/dlgain”...
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE This parameter will not be saved. Example AT+QAUDCFG="max9860/dlgain",85 //Set downlink gain to 85 6.14.15. AT+QAUDCFG="max9860/ulgain" Set Uplink Gain Level for Codec max9860 AT+QAUDCFG=“max9860/ulgain” is used to set uplink gain level for codec max9860. AT+QAUDCFG=“max9860/ulgain”...
Page 56
UMTS/HSPA Module Series WCDMA UGxx Audio Design Note NOTE This parameter will not be saved. Example AT+QAUDCFG="max9860/ulgain",85 //Set uplink gain to 85 AUDCFG="handset/nr/dl","1.12000.10000.10000.1000.19660" //Set configuration to default AT+QAUDCFG="handset/nr/dl" //Query +QAUDCFG: "handset/nr/dl","1.12000.10000.10000.1000.19660" WCDMA_UGxx_Audio_Design_Note Confidential / Released 55 / 56...