Could you help to provide the method to loop back PCM to USB ? And whethe there have any output information via NMEA port ?
How about to check the sound parameters such as AT+CLVL? AT+QSIDET? Thanks!
When I read PCM audio on USB, it is 8K 16bit mono.
and if I send it back to USB, it is also 8K 16bit mono.
So, the PCM audio I read/write is meet the specifications.
in.s16 is PCM audio that I read on USB. and I sent it back to USB.
I am using EC25-mPCIe with voice over USB.
Audio works well as spected, but sometimes there is some audio glich. After some traces,I can see there are some URCs present in the NMEA interface that corrupts the audio stream, for example \r\n+QTONEDET: 50\r\n when a dtmf is received or NO CARRIER.
Is there a way to disable URCs from NMEA channel?
My board has its own echo canceller, is there any way to disable it on modem with AT+QAUDMOD=…?
URCs are not part of the audio path, they are routed to a port. Set the URC port to the AT port so they stop appearing on the NMEA channel that carries your PCM:
AT+QURCCFG="urcport","usbat"
AT+QURCCFG="urcport"
NO CARRIER is a call-state URC, so it can still appear on that port; when the host reads the PCM stream, it should therefore treat any line that starts with CRLF followed by “+” as a URC and discard it.
For the echo canceller, AT+QAUDMOD=3 turns off all audio processing on the module, including the echo canceller, noise suppressor, digital gain and calibration, which is what you need when your board runs its own AEC.