SIM800 Series - PCM - Application Note - V1.01
SIM800 Series - PCM - Application Note - V1.01
SIM800 Series - PCM - Application Note - V1.01
FI
SIM800 Series_PCM_Application
AL
Note_V1.01
TI
EN
D
FI
N
O
C
M
O
C
M
SI
Smart Machine Smart Decision
Version 1.01
Date 2016-11-17
Status Release
E
General Notes
L
SIMCom offers this information as a service to its customers, to support application and
FI
engineering efforts that use the products designed by SIMCom. The information provided is based
upon requirements specifically provided to SIMCom by the customers. SIMCom has not
AL
undertaken any independent search for additional relevant information, including any information
that may be in the customer’s possession. Furthermore, system validation of this product designed
by SIMCom within a larger electronic system remains the responsibility of the customer or the
TI
customer’s system integrator. All specifications supplied herein are subject to change.
Copyright EN
This document contains proprietary technical information which is the property of Shanghai
SIMCom Wireless Solutions Ltd, copying of this document and giving it to others and the using or
D
communication of the contents thereof, are forbidden without express authority. Offenders are
liable to the payment of damages. All rights reserved in the event of grant of a patent or the
FI
registration of a utility model or design. All specification supplied herein are subject to change
N
Contents
1. Introduction ........................................................................................................... 5
2. AT Commands ....................................................................................................... 6
2.1 AT+CHFA Swap the Audio Channels ........................................................................ 6
2.2 AT+CPCMCFG Set PCM Parameter ......................................................................... 6
2.3 AT+CPCMSYNC Set PCM Sync Parameter ............................................................. 7
E
3. Examples ................................................................................................................... 9
L
FI
Appendix ..................................................................................................................... 10
A Related Documents........................................................................................................... 10
B Terms and Abbreviations .................................................................................................. 10
AL
TI
EN
D
FI
N
O
C
M
O
C
M
SI
Version History
Date Version What is new Author
2013-10-18 1.00 New version Yong.lu
2016-11-17 1.01 Scope Yong.lu
L E
Scope
FI
This document presents the AT command of PCM operation and application examples. This
AL
document can apply to SIM800 series modules with PCM function.
TI
EN
D
FI
N
O
C
M
O
C
M
SI
1. Introduction
This chapter introduces the PCM application features of SIM800 series modules.
L E
FI
AL
TI
EN
D
FI
N
O
C
M
O
C
M
SI
2. AT Commands
Command Description
E
AT+CHFA Swap the audio channels
L
AT+CPCMCFG Set PCM parameter
FI
AT+CPCMSYNC Set PCM Sync parameter
AL
2.1 AT+CHFA Swap the Audio Channels
TI
Test Command Response
AT+CHFA=? +CHFA: (0=NORMAL_AUDIO,
EN
1=AUX_AUDIO,2=HANDFREE_AUDIO,3=AUX_HANDFREE_AUDI
O, 4=PCM_AUDIO)
D
OK
FI
OK
O
Parameter
C
Parameter
<n> 0 Main audio channel
C
4 PCM channel
Reference Note
<n> must equal to 4 when using PCM function.
E
AT+CPCMCFG +CPCMCFG: <format>
?
L
OK
FI
Parameter
See Write Command
AL
Write Command Response
AT+CPCMCFG OK
=<format> ERROR
TI
Parameter
<format> 0 MSB
Reference Note
1 LSB EN
D
2.3 AT+CPCMSYNC Set PCM Sync Parameter
FI
C =?
OK
C
Parameter
See Write Command
Read Command Response
M
OK
C
Parameter
See Write Command
M
AT+CPCMSYN OK
C=<sync>,<lengt ERROR
h> Parameter
<sync> 0 PCM short sync
1 PCM long sync
<length> 1-8 PCM sync length(1-8)
Reference Note
L E
FI
AL
TI
EN
D
FI
N
O
C
M
O
C
M
SI
3. Examples
In the “Grammar” columns of following tables, input of AT commands are in black, module return
values are in blue.
E
Grammar Description
L
AT+CPCMCFG=0 Set PCM data format to MSB
FI
OK
AT+CPCMSYNC=0,1 Set pcmsync signal to short sync, and set sync
OK length to 1
AL
AT+CHFA=4 Swap the audio channels to PCM mode for
OK opening PCM function
TI
AT+CHFA=0 Swap the audio channels to main audio channel
OK for closing PCM function
EN
D
FI
N
O
C
M
O
C
M
SI
Appendix
A Related Documents
E
[1] SIM800 Series_AT Command Manual
L
FI
B Terms and Abbreviations
AL
Abbreviation Description
PCM Pulse-Code Modulation
MSB Most Significant Bit
TI
LSB Least Significant Bit
EN
D
FI
N
O
C
M
O
C
M
SI
Contact us:
Shanghai SIMCom Wireless Solutions Co.,Ltd.
Address: Building A, SIM Technology Building, No. 633, Jinzhong Road, Shanghai, P. R. China
200335
Tel: +86 21 3252 3300
Fax: +86 21 3252 3020
URL: www.simcomm2m.com
L E
FI
AL
TI
EN
D
FI
N
O
C
M
O
C
M
SI