Specifications

AUDIOCOMMANDS
323 HSPA+ATCommandsReferenceGuide
MiscellaneousAudioCommands
PCMPlayandRec eive#SPCM
Executecommandallowsusereithertosendspeechsamplecomingfrommicrophoneand/ ordownlinkaudio
channeltoserialport,ortoreproduceaPCMcomingfromserialporttospeakerand/oruplinkaudiochannel;
bothmodesarealsoavailableduringspeechcalls.
Testcommandreturnsthesupportedrangeofvaluesfor<mode>an
d<dir>.
#SPCM:<mode>,<dir>
Syntax
Command Commandtype
AT#SPCM=<mode>[,dir,[format]] Execute
AT#SPCM=? Test
ParametersandValues
<mode> Actiontoexecute.
1 ReproducePCMstreamfromserialtoselectedpath.
2 Sendspeechfromselectedpathtoserial.
<dir> Selecttheaudiopath.
0 Send/receiveto/fromanalogfrontend.
1 Send/receiveto/fromaudiochannel.
2 Reserved.
<format> PCMbitsformat.
0 8bit.
1 16bit.
Notes
Executecommandswitchesmoduleinonlinemode.Modulemovesbacktocommandmodeeitheraferentering
theescapesequence+++orasaconsequenceofaDTRtransition.
Ifyouareusing16bit,youmustset+IPRatleastto230400.
Thefollowingtablesummarizesthestatusofaudiopathduringaspeechcallfordifferentconfigurationsandwith
sidetonedisabled:
mode=1 mode=2
dir=0 Uplinkoff.Downlinkon.
PCMstreamonspeaker.
Uplinkoff.Downlinkoff.
PCMstreamfrommicrophone.
dir=1 Uplinkon.Downlinkoff.
PCMstreamonuplink.
Uplinkoff.Downlinkoff.
PCMstreamfromdownlink.
Sidetoneisactivefordefault.