SIM800 Series PCM Application Note V1.02

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

SIM800 Series_PCM

_Application Note
GPRS Module

SIMCom Wireless Solutions Limited


Building B, SIM Technology Building, No.633, Jinzhong Road
Changning District, Shanghai P.R. China
Tel: 86-21-31575100
[email protected]
www.simcom.com
SIM800 Series_PCM_Application Note_V1.02

Document Title: SIM800 Series_PCM_Application Note


Version: 1.02
Date: 2020.6.15
Status: Released

GENERAL NOTES

SIMCOM OFFERS THIS INFORMATION AS A SERVICE TO ITS CUSTOMERS, TO SUPPORT


APPLICATION AND 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 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 CUSTOMER’S SYSTEM INTEGRATOR. ALL SPECIFICATIONS
SUPPLIED HEREIN ARE SUBJECT TO CHANGE.

COPYRIGHT

THIS DOCUMENT CONTAINS PROPRIETARY TECHNICAL INFORMATION WHICH IS THE PROPERTY


OF SIMCOM WIRELESS SOLUTIONS LIMITED COPYING, TO OTHERS AND USING THIS DOCUMENT,
ARE FORBIDDEN WITHOUT EXPRESS AUTHORITY BY SIMCOM. OFFENDERS ARE LIABLE TO THE
PAYMENT OF INDEMNIFICATIONS. ALL RIGHTS RESERVED BY SIMCOM IN THE PROPRIETARY
TECHNICAL INFORMATION ,INCLUDING BUT NOT LIMITED TO REGISTRATION GRANTING OF A
PATENT , A UTILITY MODEL OR DESIGN. ALL SPECIFICATION SUPPLIED HEREIN ARE SUBJECT TO
CHANGE WITHOUT NOTICE AT ANY TIME.

SIMCom Wireless Solutions Limited


Building B, SIM Technology Building, No.633 Jinzhong Road, Changning District, Shanghai P.R. China
Tel: +86 21 31575100
Email: [email protected]

For more information, please visit:


https://www.simcom.com/download/list-863-en.html

For technical support, or to report documentation errors, please visit:


https://www.simcom.com/ask/ or email to: [email protected]

Copyright © 2020 SIMCom Wireless Solutions Limited All Rights Reserved.

www.simcom.com 2/9
SIM800 Series_PCM_Application Note_V1.02

About Document

Version History

Version Date Owner What is new


1.00 2013-10-18 Yong.Lu New version
1.01 2016-11-17 Yong.Lu Scope
1.02 2020-06-15 Yizhe.Tan All
/Wenjie.Lai

Scope

This document presents the AT command of PCM operation and application examples. This document can
apply to SIM800 series modules with PCM function.

www.simcom.com 3/9
SIM800 Series_PCM_Application Note_V1.02

Contents

About Document .................................................................................................................... 3


Version History ...................................................................................................................................... 3
Scope .................................................................................................................................................... 3

Contents ................................................................................................................................. 4
1 Introduction ...................................................................................................................... 5
1.1 Purpose of the document ............................................................................................................ 5
1.2 Related documents ..................................................................................................................... 5
1.3 Conventions and abbreviations ................................................................................................... 5

2 AT Commands.................................................................................................................. 6
2.1 AT+CHFA Swap the Audio Channels........................................................................................ 6
2.2 AT+CPCMCFG Set PCM Parameter ........................................................................................ 7
2.3 AT+CPCMSYNC Set PCM Sync Parameter............................................................................. 7

3 PCM Examples ................................................................................................................. 9

www.simcom.com 4/9
SIM800 Series_PCM_Application Note_V1.02

1 Introduction

1.1 Purpose of the document

Based on module AT command manual, this document will introduce PCM application process.

Developers could understand and develop application quickly and efficiently based on this document.

1.2 Related documents

[1] SIM800 Series_AT Command Manual

1.3 Conventions and abbreviations

Abbreviations Description
PCM Pulse-Code Modulation
MSB Most Significant Bit
LSB Least Significant Bit

www.simcom.com 5/9
SIM800 Series_PCM_Application Note_V1.02

2 AT Commands

SIM800 series PCM AT command overview.

AT Command Description
AT+CHFA Swap the audio channels
AT+CPCMCFG Set PCM parameter
AT+CPCMSYNC Set PCM Sync parameter

2.1 AT+CHFA Swap the Audio Channels

AT+CHFA Swap the Audio Channels


Test Command Response
AT+CHFA=? +CHFA: (0=NORMAL_AUDIO,
1=AUX_AUDIO,2=HANDFREE_AUDIO,3=AUX_HANDFREE_AUDI
O, 4=PCM_AUDIO)

OK
Read Command Response
AT+CHFA? +CHFA: <n>

OK
Parameter
See Write Command
Write Command Response
AT+CHFA=<n> OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
<n> 0 Main audio channel
1 Aux audio channel
2 Main audio channel hand free mode
3 Aux audio channel hand free mode
4 PCM channel
Reference Note
<n> must equal to 4 when using PCM function.

www.simcom.com 6/9
SIM800 Series_PCM_Application Note_V1.02

2.2 AT+CPCMCFG Set PCM Parameter

AT+CPCMCFG Set PCM Parameter


Test Command Response
AT+CPCMCFG =? +CPCMCFG: (0-1)

OK
Parameter
See Write Command
Read Command Response
AT+CPCMCFG? +CPCMCFG: <format>

OK
Parameter
See Write Command
Write Command Response
AT+CPCMCFG=<format> OK
ERROR
Parameter
<format> 0 MSB
1 LSB
Reference Note

2.3 AT+CPCMSYNC Set PCM Sync Parameter

AT+CPCMSYNC Set PCM Sync Parameter


Test Command Response
AT+CPCMSYNC =? +CPCMSYNC: (0-1),(1-8)

OK
Parameter
See Write Command
Read Command Response
AT+CPCMSYNC? +CPCMSYNC: <sync>,<length>

OK
Parameter

www.simcom.com 7/9
SIM800 Series_PCM_Application Note_V1.02

See Write Command


Write Command Response
AT+CPCMSYNC=<sync>,<le OK
ngth> ERROR
Parameter
<sync> 0 PCM short sync
1 PCM long sync
<length> 1-8 PCM sync length(1-8)
Reference Note
The <length> is only supported 1 when PCM sync is short sync.

www.simcom.com 8/9
SIM800 Series_PCM_Application Note_V1.02

3 PCM Examples

//Example of the PCM


AT+CPCMCFG=0 //Set PCM data format to MSB
OK
AT+CPCMSYNC=0,1 //Set PCM sync signal to short sync, and set sync
length to 1
OK
AT+CHFA=4 //Swap the audio channels to PCM mode for
opening PCM function
OK
AT+CHFA=0 //Swap the audio channels to main audio channel
for closing PCM function
OK

www.simcom.com 9/9

You might also like