Laird BTM511 Manual de usuario

BTM510/511
MULTIMEDIA MODULE
USER MANUAL
Innovative Technology
for a Connected World
www.lairdtech.com

2
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONTENTS
BTM510/511 Bluetooth®Module ..3
Overview .............................................. 3
BTM510/511 Key Features ................... 3
Specications ................................4
Detailed Specications ......................... 4
Pin Denitions ...................................... 6
Operating Parameters ...................8
Voltage Specications .......................... 8
Notes for PCB Layout ........................... 8
Conguring the BTM510/511 ........9
References ........................................... 9
Glossary of Terms ............................... 10
AT Command Set .............................. 11
Assumptions ...................................... 11
Commands ........................................ 11
General AT Commands ..................... 11
General Bluetooth®Control ............... 22
Hardware Unit Control ....................... 28
Bluetooth® Proles ............................. 30
Secure Simple Pairing ......................... 37
Link Key Management ....................... 37
Miscellaneous...................................... 38
Appendix ........................................... 39
BT-MM Unsolicited Messages ............ 39
BT-MM Error Responses ..................... 39
Mechanical Drawings ..................41
Mechanical Details ............................. 41
Recommended PCB Footprint ............ 41
Diagrams ............................................ 42
Ordering Information ..................45
Product Part Numbers ........................ 45
General Comments ............................ 45
TABLE OF
CONTENTS

3
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
The BTM510 and BTM511 are low-power Bluetooth®modules designed for adding robust
audio and voice capabilities. Based on the market-leading Cambridge Silicon Radio BC05
chipset, these modules provide exceptionally low power consumption with outstanding range.
Supporting the latest Bluetooth® Version 2.1+EDR speci cation, these modules provide the
important advantage of secure simple pairing that improves security and enhances easy use.
At only 14mm x 20mm, the compact size of the BTM510 makes it ideal for battery-powered
or headset form factor audio and voice devices. With a 16-bit stereo codec and microphone
inputs to support both stereo and mono applications, these modules also contain a full,
integrated Bluetooth®-quali ed stack along with SPP, HFP 1.5, HSP, AVRCP, and A2DP
pro les. Customers using these modules may list and promote their products free of charge
on the Bluetooth®website.
The BTM510/511 modules include an embedded 32-bit, 64-MIPS DSP core within the BC05.
This is integrated with the Bluetooth® functionality which allows designers to add signi cant
product enhancements including features such as echo cancellation, noise reduction, and
audio enhancement using additional soft codecs. The availability of the 16MB of ash memory
in the module allows complex functionality to be included. DSP routines can be licensed
through a number of specialist partners. Typical applications for these modules include
Bluetooth®stereo headsets, VoIP phones, and wireless audio links.
To speed product development and integration, Laird Technologies has developed a
comprehensive AT command interface that simpli es application development, including
support for audio and headset functionality. Access to GPIO pins allows mapping for direct
connection to actuator buttons on headsets. Combined with a low-cost development kit,
Laird Technologies’ Bluetooth®modules provide faster time to market.
FEATURES
• Fully featured Bluetooth®multimedia module
• Bluetooth®v2.1+EDR
• Supports mono and stereo
headset applications
• Adaptive Frequency Hopping to cope with
interference from other wireless devices
• 32bit Kalimba DSP for enhanced
audio applications
• Support for Secure Simple Pairing
• External or internal antenna options
• HSP, HFP, A2DP, and AVRCP audio pro les
• 16-bit stereo codec and microphone input
• Integrated audio ampli ers for driving
stereo speaker
• Comprehensive AT interface for
simple programming
• Bluetooth® END product quali ed
• Compact size
• Class 2 output – 4dBm
• Low power operation
• Wi-Fi co-existence hardware support
APPLICATION AREAS
• High-quality stereo headsets
• Mono voice headsets
• Hands-free devices
• Wireless audio cable replacement
• MP3 and music players
• Phone accessories
• VoIP products
• Cordless headsets
• Automotive
OVERVIEW AND
KEY FEATURES

4
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CATEGORIES FEATURE IMPLEMENTATION
Wireless Specication Standards Supported Bluetooth®v2.1 + EDR
Transmit Class Class 2
Frequency 2.402 – 2.480 GHz
Channels 79 channels Frequency Hopping Adaptive Frequency Hopping
Max Transmit Power +4 dBm @ antenna pad – BTM510
+4 dBmi from integrated antenna – BTM511 (provisional)
Min Transmit Power -27 dBm @ antenna pad – BTM510
-27 dBmi from integrated antenna – BTM511 (provisional)
Receive Sensitivity Better than -86 dBm
Data Transfer rate Up to 300kbps
Range Up to 50 meters free space (Data)
Antenna Modes External Antenna 50 Ohm matched SMT pad – BTM510
Integrated Antenna +0dB (provisional) multilayer ceramic – BTM511
UART Interface Serial Interface RS-232 bi-directional for commands and data 16550 compat-
ible
Baud Rate Congurable from 1,200 to 921,600bps
Non-standard baud rates supported
Bits 8
Parity Odd, even, none
Stop bits 1 or 2
Default Serial parameters 9,600,n,8,1
Levels Set by VDD_USB pin
Modem Control DTR, DSR, DCD, RI, RTS, CTS
General Purpose Interface I/O 8 general purpose I/O pins
I2S Stereo Audio Digital Interface Bus
LED Two
Audio Codec Integrated stereo codec with -95dB SNR for DAC
Ampliers Direct drive for 22ΩMono Speaker / 44ΩStereo Speakers
Microphone Input with bias for low noise microphone
Sample Rates (DAC & ADC) 8, 11.025, 16, 22.05, 32 & 44.1kHz
Protocols & Firmware Bluetooth®Stack V2.1 compliant. Fully integrated.
Proles GAP (Generic Access Prole)
SDP (Service Discovery Prole)
SPP (Serial Port Prole)
HSP
HFP – Audio Gateway and Handsfree
A2DP – Source and Sink
AVRCP – Target and Controller
Protocols RFCOMM
AVCTP
AVDTP
Firmware Upgrade Available over UART
SPECIFICATIONS

5
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CATEGORIES FEATURE IMPLEMENTATION
Command Interface AT Instruction set Comprehensive control of connection and module operation,
including extensions for Audio control.
Direct mapping of GPIO to audio functions, e.g. Play, Volume,
etc.
S Registers for non-volatile storage of parameters
DSP Kalimba DSP Integrated in BC05 32bit, 64MIPS, 16Mbps Flash Memory
(shared)
Applications Available from partners
Current Consumption Data Transfer Typically < 35mA
Stereo Music Typically < 70mA (including speaker drive)
Low Power Sniff Mode Less than 1.5mA
Supply Voltage Supply 3.0V – 3.6V DC
I/O 1.7V – 3.6V DC
USB 1.7V – 3.6V DC
Coexistence / Compatibility WLAN (802.11) 2-wire and 3-wire hardware coexistence schemes supported
Connections External Antenna (option) Pad for 50 Ohm antenna – BTM510
Interface Surface Mount Pads
Physical Dimensions 14.0mm x 20.0 x 1.6mm - BTM510
14.0mm x 26.0mm x 1.6mm - BTM511 (provisional)
Weight 3 grams
Environmental Operating Temperature -30°C to +70°C
Storage Temperature -40°C to +85°C
Approvals Bluetooth®Qualied as an END product
FCC Meets FCC requirements
Modular Approval (Integrated Antenna option – BTM511)
CE & R&TTE Meets CE and R&TTE requirements
Miscellaneous Lead free Lead-free within EU requirements and RoHS compliant
Warranty 12 Months
Development Tools Development Kit Development board and software tools
SPECIFICATIONS
CATEGORIES FEATURE IMPLEMENTATION
Wireless Specication Standards Supported Bluetooth®v2.1 + EDR
Transmit Class Class 2
Frequency 2.402 – 2.480 GHz
Channels 79 channels Frequency Hopping Adaptive Frequency Hopping
Max Transmit Power +4 dBm @ antenna pad – BTM510
+4 dBmi from integrated antenna – BTM511 (provisional)
Min Transmit Power -27 dBm @ antenna pad – BTM510
-27 dBmi from integrated antenna – BTM511 (provisional)
Receive Sensitivity Better than -86 dBm
Data Transfer rate Up to 300kbps
Range Up to 50 meters free space (Data)
Antenna Modes External Antenna 50 Ohm matched SMT pad – BTM510
Integrated Antenna +0dB (provisional) multilayer ceramic – BTM511
UART Interface Serial Interface RS-232 bi-directional for commands and data 16550 compat-
ible
Baud Rate Congurable from 1,200 to 921,600bps
Non-standard baud rates supported
Bits 8
Parity Odd, even, none
Stop bits 1 or 2
Default Serial parameters 9,600,n,8,1
Levels Set by VDD_USB pin
Modem Control DTR, DSR, DCD, RI, RTS, CTS
General Purpose Interface I/O 8 general purpose I/O pins
I2S Stereo Audio Digital Interface Bus
LED Two
Audio Codec Integrated stereo codec with -95dB SNR for DAC
Ampliers Direct drive for 22ΩMono Speaker / 44ΩStereo Speakers
Microphone Input with bias for low noise microphone
Sample Rates (DAC & ADC) 8, 11.025, 16, 22.05, 32 & 44.1kHz
Protocols & Firmware Bluetooth®Stack V2.1 compliant. Fully integrated.
Proles GAP (Generic Access Prole)
SDP (Service Discovery Prole)
SPP (Serial Port Prole)
HSP
HFP – Audio Gateway and Handsfree
A2DP – Source and Sink
AVRCP – Target and Controller
Protocols RFCOMM
AVCTP
AVDTP
Firmware Upgrade Available over UART

6
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
PIN SIGNAL DESCRIPTION VOLTAGE
SPECIFICATION
1 PIO15 / DTR Host I/O VIO
2 PIO5/BT_STATE/BT_PRIORITY Host I/O, BT Co-existence VIO
3 PCM_IN PCM Data I/P VIO
4 PCM_OUT PCM Data O/P VIO
5 PCM_SYNC PCM Sync I/P VIO
6 PCM_CLK PCM CLK I/P VIO
7 LED_EXT1 Host I/O See Note 2
8 LED_EXT0 Host I/O See Note 2
9 GND
10 VDD_USB USB supply voltage
11 VDD_IO I/O supply voltage
12 VDD_IN Main supply voltage
13 GND
14 SPI_CSB SPI bus chip select I/P VIO
15 SPI_MISO SPI bus serial O/P VIO
16 SPI_CLK SPI bus clock I/P VIO
17 SPI_MOSI SPI bus serial I/P VIO
18 PIO2/DSR Host I/O VIO
19 PIO3/RI Host I/O VIO
20 PIO1/DCD Host I/O VIO
21 PIO0/BT_ACTIVE Host I/O, BT Co-existence VIO
22 GND
23 AUDIO_GND Audio ground
24 SPKR_A_N Speaker, channel A- (left) See note 3
25 SPKR_A_P Speaker, channel A+ (left) See note 3
26 SPKR_B_N Speaker, channel B- (right) See note 3
27 SPKR_B_P Speaker, channel B+ (right) See note 3
28 MIC_BIAS Microphone bias See note 4
29 MIC_BP_C Microphone, channel A- (left) See note 4
30 MIC_BN_C Microphone, channel A+ (left) See note 4
31 MIC_AP_C Microphone, channel B- (right) See note 4
32 MIC_AN_C Microphone, channel B+ (right) See note 4
33 Unused
34 ANT Antenna connection – BTM510 (50 ohm matched)
35 Unused
36 Unused
37 Unused
38 Unused
39 Unused
40 Unused
41 Unused
42 Unused
43 Unused
44 Unused
45 USB_D- VUSB
46 USB_D+ VUSB
47 GND
48 UART_RTS Request to Send O/P VUSB
49 UART_CTS Clear to Send I/P VUSB
50 UART_TX Transmit data O/P VUSB
51 UART_RX Receive data I/P VUSB
52 PIO7/RF_ACTIVE Host I/O, BT Co-existence VIO
53 PIO6/WLAN_ACTIVE Host I/O, BT Co-existence VIO
54 Reset Module reset I/P See Note 1
SPECIFICATIONS

7
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
SPECIFICATIONS
The voltage on the module pad should be maintained below 0.5V
in which case the Ron of the FET is around 20Ω. Provided that this
condition is met, then the current owing through the diode is:
3. The speaker output is capable of driving loads with a minimum
impedance of 16Ωdirectly.
4. The audio inputs can operate in either line input mode or microphone
mode. The input circuit has a two stage amplier – the rst stage
provides a xed 24dB gain and the second a variable gain of
between -3dB and 18dB. If an input gain of less than 24dB is selected,
then the rst stage is switched out and the module is operating in line
input mode.
Iled =VDD - VFWhere VFis the forward bias voltage of the LED.
R + 20
When operating in microphone mode the
microphone should be biased as follows:
MIC_AP
MIC_AN
Module
External Circuit
External Circuit
MIC_BIAS
15 nH
15 pF
15 nH
15 pF
The input impedance on the microphone inputs (in microphone mode) is typically 6kΩ. In order to
maintain the regulation on the MIC_BIAS pin, the current drawn must be in the range 0.2 – 1.23mA.
If the microphone draws less current than this then an additional resistor to ground must be added to
pre-load the microphone output. The audio input is designed for use with inputs of between 1μA
and 10μA at 94dB SPL. If the biasing resistors are set to 1kΩthis implies a microphone with a
sensitivity in the range -40dBV to -60dBV.
The low pass lter elements formed by the inductor and capacitor are required to eliminate RF pick
up on the microphone inputs and should be placed as close to the module as possible.
When operating in line input mode, the input can be connected directly to the module input pins
in either single or double ended conguration as follows:
AC AC
Single ended Double ended
Note: 1. Reset input is active low. Input is pulled up to VDD_IN via 22k.
Minimum reset pulse width is 5ms.
2. LED drive pins are open drain outputs and hence the external circuit
to the right should be used.
VDD
Module External Circuit
R

8
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
NOTES FOR PCB LAYOUT:
1. The RF output pin must be matched to a 50Ωstrip-line or coplanar waveguide on the antenna-less version (BTM510).
2. Ensure that there are no exposed conductors under the module to avoid shorts to the test points on the module underside.
3. ThePCBfootprintisprovidedforguidanceonly.UsersmaywishtomodifythePCBlanddimensionstosuittheirspecic
manufacturing or process.
OPERATING PARAMETERS
RECOMMENDED OPERATING CONDITIONS
Operating Condition Min Max
VDD_USB
(USB compatibility not required) 1.7 3.6
VDD_USB
(USB compatibility required) 3.1 3.6
VDD_IO 1.7 3.3
VDD_IN 3.0 3.6
VOLTAGE SPECIFICATIONS
LOGIC LEVELS (VUSB)
Input Voltage Levels Min Typ Max
Vih 0.625VDD_USB VDD_USB+0.3
Vil -0.3 0.25VDD_USB
Output Voltage Levels
Voh (Iout = -4mA) 0.75VDD_USB VDD_USB
Vol (Iout = 4mA) 0 0.125
LOGIC LEVELS (VIO)
Input Voltage Levels Min Typ Max
Vih 0.625VDD_IO VDD_IO+0.3
Vil -0.3 0.25VDD_IO
Output Voltage Levels
Voh (Iout = -4mA) 0.75VDD_IO VDD_IO
Vol (Iout = 4mA) 0 0.125
LOGIC LEVELS (VUSB – USB TERMINALS D+, D-)
Input Voltage Levels Min Typ Max
Vih 0.7VDD_USB
Vil 0.3VDD_USB
Output Voltage Levels (to correctly terminated USB cable)
Voh 2.8 VDD_USB
Vol 0 0.2
OPERATING
PARAMETERS

9
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
INTRODUCTION
This document describes the protocol used to control and congure the BT-MM Bluetooth device.
The AT commands described in the document apply to rmware releases from V14.0.9 onwards.
The protocol is similar to the industry standard Hayes AT protocol used in telephony modems which is
appropriate for cable replacement scenarios, as both types of devices are connection oriented.
Just like telephony modems, Laird Technologies’ devices powers up in an unconnected state and will only respond
via the serial interface. In this state the device will not even respond to Bluetooth Inquiries. Then, just like controlling
a modem, the host can issue AT commands which map to various Bluetooth activities. Conguration can be saved,
so that on a subsequent power up the device is discoverable or automatically connects.
The device has a serial interface and an RF communications end point. The latter has a concept of connected
and unconnected modes and the former will have a concept of command and data modes. This leads to the
matrix of states shown below.
RF UNCONNECTED RF CONNECTED
Local Command Mode OK OK
Remote Command Mode ILLEGAL OK
Data Mode ILLEGAL OK
The combinations, ‘Data and RF Unconnected Mode’ and ‘Remote Command and RF Unconnected Mode’ do
not make sense and will be ignored.
Navigation between these states is done using the AT commands which are described in detail in subsequent
sections.
REFERENCES
[1] “AT Command Set”
[2] “BlueLab_v4.0_Release_Note.pdf”
[3] “Audio/Video Distribution Transport Protocol Specication” Rev.V12, 16/04/2007
[4] “Advanced Audio Distribution Prole Specication” Rev. V12, 16/04/2007
[5] “Audio/Video Remote Control Prole” Revision V14r00, 26/06/2008
[6] “Software Release Note Stereo Headset SDK Q3 2007 RC3.1” CS-117522-RNP1, CSR
[7] “Stereo Headset SDK Q3 2007 User Guide” CSR, CS-116451-UGP1, CSR, December2007
[8] “Bluetooth Specication Version 2.1 + EDR [vol3]”, 26 July 2007

10
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
Glossary of Terms
DESCRIPTION
A2DP : Advanced Audio Distribution Prole
ADC :Analogue to Digital Converter
AGHFP : Audio Gateway Hands-Free Prole
AT : Command prex, ‘Attention’
AVRCP : Audio/Video Remote Control Prole
BISM :Bluetooth Intelligent Serial Module
Codec :Device capable of encoding / decoding an analogue / digital signal
DAC :Digital to Analogue Converter
DSP :Digital Signal Processor
DUN : Dial-Up Network Prole
FTP : File Transfer Prole
GOEP : Generic Object Access Exchange Prole
GPIO :General Purpose Input Output
HFP : Hands Free Prole
HID : Human Interface Device Prole
I/O (IO) : Input/Output
Mic :Microphone
OPP : Object Push Prole
PBAP : Phone Book Access Prole
PWM :Pulse Width Modulation
Sxxx :S-Register No. xxx
SBC : Sub Band Codec
SPP : Serial Port Prole
TBD :To Be Determined
UART :Universal Asynchronous Receiver / Transmitter
PT :PASSS THROUGH Command
UI :UNIT INFO Command
SUI :SUBUNIT INFO Command
Este manual sirve para los siguientes modelos
1
Tabla de contenidos