The BTM520 and BTM521 are the most advanced low power, multimedia Bluetooth
modules on the market. They have been designed by Laird Technologies to meet the needs
of developers who require the ultimate Bluetooth audio performance and exibility, along
with fast time to market. The modules include everything needed for a fully qualied
and functional Bluetooth multimedia application. As well as providing best in class radio
performance, range and power consumption, they support all of the functionality to run
Cambridge Silicon Radio’s Road Tunes and Blue Tunes development environments. They
support the latest Bluetooth Version 2.1+EDR Specication, providing the important advantage
of Secure Simple Pairing, which improves security and enhances the ease of use for end
customers. The BTM521, with an integrated high performance multilayer ceramic antenna
can achieve open eld ranges in excess of 300 metres.
The modules include a 16 bit stereo codec and microphone input to support both stereo and
mono applications, with the ability to drive 16Ω stereo speakers. They also contain all of
the necessary audio ltration and biasing components, so that the module only requires the
addition of speakers, microphone and push buttons to make a complete implementation.
The modules contain a full, integrated Bluetooth stack along with SPP, HFP 1.5, HSP, AVRCP
and A2DP proles, all of which have been qualied, so that no further Bluetooth qualication
is required. For users with more complex applications, additional proles will be available for
le transfer, object exchange, dial up networking, messaging and phone book control. Future
support also includes the Health Device Prole, making this the ideal module for development
of Continua compliant medical devices. Because these modules are pre-qualied, customers
using these modules can list and promote their products on the Bluetooth website free of
charge.
The BTM520 and BTM 521 modules include an embedded 32 bit, 64 MIPS DSP core within
the BC05, which is integrated with the Bluetooth functionality and which allows designers
to add signicant product enhancements. These include features such as echo cancellation,
noise reduction and audio enhancement using additional soft codecs. 16MB of ash memory
is available within the module, so that complex functionality can be included. DSP routines are
licensable from a number of specialist partners. Typical applications for these modules include
Bluetooth headsets, Bluetooth stereo headsets, VoIP phones, automotive products, wireless
audio links and medical / healthcare devices.
To speed product development and integration, Laird Technologies has developed a
comprehensive AT command interface, which simplies application development and includes
support for audio and headset functionality. It provides access to GPIO pins, allowing these
to be mapped for direct connection to actuator buttons on headsets. Combined with a low
cost developer’s kit, this ensures that the choice of Laird Technologies Bluetooth modules
guarantees the fastest route to market.
www.lairdtech.com
3
Laird Technologies
BTM520/521
Bluetooth® Multimedia Plus Module
OVERVIEW AND
KEY FEATURES
FEATURES
• Fully featured Bluetooth multimedia module
• Supports CSR Road Tunes and Blue
Tunes applications
• Bluetooth v2.1+EDR
• Supports mono and stereo
headset applications
• Ideal for medical applications using health
device prole
• 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 proles
• Future support for OBEX, DUN, FTP, HDP
proles for additional functionality
• 16 bit stereo codec and microphone input
• Integrated audio ampliers for driving
16Ω speakers
• Comprehensive AT interface for
simple programming
• Bluetooth END Product Qualied
• Compact Size
• Class 1 output – 8dBm (typical)
• Low power operation
• Wi-Fi Coexistence Hardware Support
APPLICATION AREAS
• High Quality Stereo Headsets
• Mono Voice Headsets
• Hands-free devices
• Wireless Audio Cable Replacement
• MP3 and music players
• Medical and Healthcare Devices
• Phone Accessories
• VoIP products
• Cordless Headsets
• Automotive Applications
www.lairdtech.com
4
Laird Technologies
BTM520/521
Bluetooth® Multimedia Plus Module
SPECIFICATIONS
www.lairdtech.com
5
CATEGORIESFEATUREIMPLEMENTATION
Wireless Specication
Antenna Modes
UART Interface
General Purpose Interface
Audio
Protocols & Firmware
Standards SupportedBluetooth® v2.1 + EDR
Transmit ClassClass 1
Frequency2.402 – 2.480 GHz
Channels79 channels Frequency Hopping
Max Transmit Power+8 dBm (typical) @ antenna pad – BTM520
ConnectionsExternal Antenna (option)Pad for 50 Ohm antenna – BTM520
Interface Surface Mount Pads
PhysicalDimensions20.0mm x 36.0mm x 4.9mm
Weight3 grams
EnvironmentalOperating Temperature -30°C to +70°C
Storage Temperature-40°C to +85°C
ApprovalsBluetooth
FCCMeets FCC requirements
CE & R&TTEMeets CE and R&TTE requirements
MiscellaneousLead freeLead-free and RoHS compliant
Warranty12 Months
®
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
Development ToolsDevelopment KitDevelopment board and software tools
†Modem control pins and GPIO are shared
www.lairdtech.com
6
Laird Technologies
BTM520/521
Bluetooth® Multimedia Plus Module
SPECIFICATIONS
PIN OUT
PINSIGNALDESCRIPTIONVOLTAGE
SPECIFICATION
1PCM_INPCM Data I/PVPADS
2PCM_OUTPCM Data O/PVPADS
3PCM_SYNCPCM Sync I/PVPADS
4PCM_CLKPCM CLK I/PVPADS
5GND
6SPI_MOSISPI bus serial I/PVPADS
7SPI_CSBSPI bus chip select I/PVPADS
8SPI_MISOSPI bus serial O/PVPADS
Output Voltage Levels (to correctly terminated USB cable)
Voh 2.8VDD_USB
V
ol
0.7VDD_USB
0.3VDD_USB
00.2
www.lairdtech.com
9
Laird Technologies
BTM520/521
AC
AC
Single endedDouble ended
VDD
ModuleExternal Circuit
R
MIC_AP
MIC_AN
Module
External Circuit
MIC_BIAS
15 nH
15 pF
15 nH
15 pF
Bluetooth® Multimedia Plus Module
OPERATING
PARAMETERS
Note: 1. Reset input is active low. Input is pulled up to VDD_PADS 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.
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:
F
led
I
VDD - V
=
R + 20
Where VF is the forward bias voltage of the LED.
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.
When operating in microphone mode the
microphone should be biased as follows:
www.lairdtech.com
10
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 resistor 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.
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:
Laird Technologies
BTM520/521
Bluetooth® Multimedia Plus Module
CONFIGURING
THE BTM520/521
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.
The command set is extensive enough to allow a host to make connections which are authenticated and/or
encrypted or not authenticated and/or encrypted or any combination of these. Commands can be saved,
so that on a subsequent power up the device is discoverable or automatically connects.
The device has a serial interface which can be congured for baud rates from 1200 up to 921600 (default
setting is 9600) 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 UNCONNECTEDRF CONNECTED
Local Command ModeOKOK
Remote Command ModeILLEGALOK
Data ModeILLEGALOK
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
1. All commands are terminated by the carriage return character 0x0D, which is represented by the string
<cr> in descriptions below this, cannot be changed.
2. All responses from the device have carriage return and linefeed characters preceding
and appending the response. These dual character sequences have the values 0x0D and 0x0A
respectively and shall be represented by the string <cr,lf>.
3. All Bluetooth addresses are represented by a xed 12 digit hexadecimal string, case insensitive.
4. All Bluetooth Device Class codes are represented by a xed 6 digit hexadecimal string, case insensitive.
Commands
The following syntax is employed throughput this document to describe optional or mandatory parameters for
AT commands.
<bd_addr>A 12 character Bluetooth address consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
<devclass>A 6 character Bluetooth device class consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
NA positive integer value.
MAn integer value which could be positive or negative, which can be entered as a decimal value or
in hexadecimal if preceded by the ‘$’ character. E.g. the value 1234 can also be entered as $4D2
<string>A string delimited by double quotes. E.g. “Hello World”. The “ character MUST be supplied as delimiters.
<uuid>A 4 character UUID number consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
General AT Commands
1. AT
Used to check the module is available.
Response: <cr,lf>OK<cr,lf>
2. ATA {Answer Call}
Accept an incoming connection, which is indicated by the unsolicited string
<cr,lf>RING 123456789012<cr,lf> every second. 123456789012 is the Bluetooth address of the connecting device.
Response: <cr,lf>CONNECT 123456789012<cr,lf>
3. ATD<bd_addr>,<uuid> {Make Outgoing Connection}
Make a connection to device with Bluetooth address <bd_addr> and SPP prole <uuid>.
The <uuid> is an optional parameter which species the UUID of the prole server to attach to,
and if not supplied then the default UUID from S Register 101 is used. As this is a device
which utilizes the RFCOMM layer as described in the Bluetooth specication, it necessarily implies
that only proles based on RFCOMM can be accessed.
The timeout is specied by S register 505.
Response: <cr,lf>CONNECT 123456789012<cr,lf>
Or <cr,lf>NO CARRIER<cr,lf>
Due to a known issue in the Bluetooth RFCOMM stack, it is not possible to make more than
65525 outgoing connections in a single power up session. Therefore if that number is exceeded,
then the connection attempt will fail with the following response:-
Response: <cr,lf>CALL LIMIT
Or <cr,lf>NO CARRIER<cr,lf>
In that case, issuing an ATZ to reset the device will reset the count to 0 and more connections
are possible.
www.lairdtech.com
13
Laird Technologies
BTM520/521
Bluetooth® Multimedia Plus Module
CONFIGURING
THE BTM520/521
The following RFCOMM based UUIDs are dened in the Bluetooth Specication:-
PROFILE NAMEUUID
Serial Port0x1101
LAN Access Using PPP0x1102
Dialup Networking0x1103
IrMC Sync0x1104
OBEX Object Push0x1105
OBEX File Transfer0x1106
IrMC Sync Command0x1107
Headset0x1108
Cordless Telephony0x1109
Intercom0x1110
Fax0x1111
Audio Gateway0x1112
WAP0x1113
WAP_CLIENT0x1114
4. ATDL {Remake Connection}
Make a connection with the same device and service as that specied in the most recent ATD
command. An error will be returned if the ‘L’ modier is specied AND a Bluetooth address.
If both ‘L’ and ‘R’ modiers are specied then an error will be returned.
Make a SPP connection with the device address specied in the most recent AT+BTR command.
The service is as specied in S Register 101. An error will be returned if the ‘R’ modier is specied
AND a Bluetooth address.
If both ‘R’ and ‘L’ modiers are specied then an error will be returned.
Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or <cr,lf>NO CARRIER<cr,lf>
6. ATEn {Enable/Disable Echo}
This command enables or disables the echo of characters to the screen. A valid parameter value
will be written to S Register 506.
E0Disable echo.
E1Enable echo.
All other values of n will generate an error.
Response: <cr,lf>OK<cr,lf>
Or
Response: <cr,lf>ERROR nn<cr,lf>
7. ATH {Drop Connection}
Drop an existing connection or reject an incoming connection indicated by unsolicited RING messages.
Response: <cr,lf>NO CARRIER<cr,lf>
www.lairdtech.com
14
Laird Technologies
BTM520/521
Bluetooth® Multimedia Plus Module
CONFIGURING
THE BTM520/521
8. ATSn=m {Set S Register}
As with modems, the Bluetooth module employs a concept of registers which are used to store
parameters, such as escape sequence character, inquiry delay time etc, as listed in detail below.
The value part ‘m’ can be entered as decimal or hexadecimal. A hexadecimal value is specied via a ‘$’ leading character. For example $1234 is a hexadecimal number.
When S register values are changed, the changes are not stored in non-volatile memory UNTIL
the AT&W command is used. Note that AT&W does not affect S registers 520 to 525 or 1000 to 1010 as they are updated in non-volatile memory when the command is received.
Table 3-1: S-Register List
REGISTERDEFAULTRANGECOMMENT
S01-1..15Number of RING indication before automatically answering an incoming
S20x5E0x20..0x7E
S1210040..5000Escape sequence guard time in milliseconds, with a granularity of 20ms. New
S100150..15Number of RING indications before an auto disconnection is initiated. A value
S101$1101 0..$ffffUUID of default SPP based prole when not specied explicitly in the ATD
S10211..0x7FFDenes a set of bits masks for enabling prole servers. Values can be ORed.
S10311..7Boot Mode on cold boot.
S126?0 .. 0xFFFFPrimer for changing to Multipoint mode
S127?0 .. 0xFFFF0x100 for At mode
S30010..2Set A2DP role:
S30110..2Set AVRCP role:
connection. A value of 0 disables autoanswer. If -1, then autoanswer on one
RING and do NOT send RING/CONNECT response to the host. This emulates a
serial cable replacement situation
Setting values >= 0, resets S Register 504 to 0 and <0 forces 504 to 1.
If S0 <> 0 and S100 <> 0 then S0 must be < S100. If a value is entered which
violates this rule, then ERROR 29 is sent in response.
If S504 =1 then this register will return -1, regardless of the actual value
stored in non-volatile memory.
Escape sequence character. It is not ‘+’ by default as a Bluetooth® serial link
can be used to connect to a mobile phone which exposes an AT command
set, which will in turn use ‘+’ as default. So if both used ‘+’ there will be
confusion. 0x5e is the character ‘^’.
values are rounded down to the nearest 20ms multiple
of 0 disables this feature.
If S0 <> 0 and S100 <> 0 then S0 must be < S100. If a value is entered which
violates this rule, then ERROR 29 is sent in response.
command.
0x001 is Serial Port Prole
0x080 is A2DP
0x100 is AVRCP
0x200 for Multipoint mode
Other values are reserved
0 is feature not set
1 is A2DP Sink (default)
2 is A2DP Source
0 is feature disabled
1 is Control (CT) (default)
2 is Target (TG)
www.lairdtech.com
15
Laird Technologies
Loading...
+ 33 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.