all | frequencies |
|
|
|
|
exhibits | applications |
---|---|---|---|---|---|---|---|
manuals |
app s | submitted / available | |||||||
---|---|---|---|---|---|---|---|---|
1 2 |
|
FCC statement insert | Users Manual | 14.85 KiB | ||||
1 2 |
|
Manual | Users Manual | 2.52 MiB | ||||
1 2 |
|
Manual FCC statement | Users Manual | 14.85 KiB | ||||
1 2 |
|
User Manual | Users Manual | 2.52 MiB | ||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | External Photos | |||||||
1 2 | Internal Photos | |||||||
1 2 | ID Label/Location Info | |||||||
1 2 | ID Label/Location Info | |||||||
1 2 | Attestation Statements | |||||||
1 2 | Test Setup Photos | |||||||
1 2 | Test Report | |||||||
1 2 | Schematics | |||||||
1 2 | Parts List/Tune Up Info | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | External Photos | |||||||
1 2 | External Photos | |||||||
1 2 | ID Label/Location Info | |||||||
1 2 | ID Label/Location Info | |||||||
1 2 | Internal Photos | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Attestation Statements |
1 2 | FCC statement insert | Users Manual | 14.85 KiB |
1.1.1 FCC and Industry Canada Statements The user manual must show the following statements:
This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment. To comply with the FCC RF exposure compliance requirements, this device and its antenna must not be co-located or operating to conjunction with any other antenna or transmitter. Considerations for OEM integration:
To inherit the modular approval, the antennas for this transmitter must be installed to provide a separation distance of at least 20 cm from all persons and must not be co-
located or operating in conjunction with any other antenna or transmitter. Co-location with other radio transmitting devices operating concurrently in the same band will require additional testing and certification. Designers should note the distinction that the FCC makes regarding portable and mobile devices. Mobile devices are defined as products that are not used closer than 20cm to the human body, whereas portable devices can be used closer that 20cm to the body. In the case where the BTM521 module is used in a portable device, additional SAR testing must be performed on the complete product. FCC Labelling requirement 1.1.1.1 If the FCC ID is not visible when the module is installed inside another device, then the outside of the device into which the module is installed must also display a label referring to the enclosed module. This exterior label can use wording such as the following:
Contains Transmitter Module FCC ID: PI4520B or Contains FCC ID: PI4520B. Any similar wording that expresses the same meaning may be used.
1 2 | Manual | Users Manual | 2.52 MiB |
BTM520/521 DATA MODULE USER MANUAL w w w
. l a i r d t e c h
. c o m Innovative Technology for a Connected World BTM520/521 Bluetooth Multimedia Plus Module TABLE OF CONTENTS CONTENTS BTM520/521 Bluetooth Module ..3 Overview .............................................. 3 BTM520/521 Key Features ................... 3 Specifications ................................5 Detailed Specifications ......................... 5 Pin Out ................................................. 6 Operating Parameters ...................9 Voltage Specifications .......................... 9 Notes ................................................. 10 Configuring the BTM520/521 ......11 References ......................................... 11 Glossary of Terms ............................... 12 AT Command Set .............................. 13 Assumptions ...................................... 13 Commands ........................................ 13 General AT Commands ..................... 13 General Bluetooth Control ............... 24 Hardware Unit Control ....................... 30 Bluetooth Profiles ............................. 32 Secure Simple Pairing ......................... 39 Link Key Management ....................... 39 Miscellaneous...................................... 40 Appendix ........................................... 41 BT-MM+ Unsolicited Messages .......... 41 BT-MM+ Error Responses ................... 41 Mechanical Drawings ..................43 Mechanical Details ............................. 43 Recommended PCB Footprint ............ 43 Diagrams ............................................ 44 Ordering Information ..................47 Product Part Numbers ........................ 47 General Comments ............................ 47 2 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module OVERVIEW AND KEY FEATURES 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 flexibility, along with fast time to market. The modules include everything needed for a fully qualified 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 Radios Road Tunes and Blue Tunes development environments. They support the latest Bluetooth Version 2.1+EDR Specification, 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 field 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 filtration 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 profiles, all of which have been qualified, so that no further Bluetooth qualification is required. For users with more complex applications, additional profiles will be available for file transfer, object exchange, dial up networking, messaging and phone book control. Future support also includes the Health Device Profile, making this the ideal module for development of Continua compliant medical devices. Because these modules are pre-qualified, 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 significant product enhancements. These include features such as echo cancellation, noise reduction and audio enhancement using additional soft codecs. 16MB of flash 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 simplifies 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 developers kit, this ensures that the choice of Laird Technologies Bluetooth modules guarantees the fastest route to market. 3 www.lairdtech.com Laird Technologies 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 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 profile 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 profiles Future support for OBEX, DUN, FTP, HDP profiles for additional functionality 16 bit stereo codec and microphone input Integrated audio amplifiers for driving 16 speakers Comprehensive AT interface for simple programming Bluetooth END Product Qualified Compact Size Class 1 output 8dBm (typical) Low power operation Wi-Fi Coexistence Hardware Support 4 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS CATEGORIES Wireless Specification FEATURE Standards Supported IMPLEMENTATION Bluetooth v2.1 + EDR Transmit Class Class 1 Frequency Channels Max Transmit Power Min Transmit Power Receive Sensitivity Data Transfer rate Range 2.402 2.480 GHz 79 channels Frequency Hopping Adaptive Frequency Hopping
+8 dBm (typical) @ antenna pad BTM520
+10 dBmi (typical) from integrated antenna BTM521 (provisional)
-27 dBm @ antenna pad BTM520
-27 dBmi from integrated antenna BTM521 (provisional) Better than -86 dBm Up to 300kbps
> 300 metres free space (Data) Antenna Modes External Antenna 50 Ohm U.FL BTM520 Integrated Antenna
+2dB multilayer ceramic BTM521 UART Interface Serial Interface Baud Rate Bits Parity Stop bits RS-232 bi-directional for commands and data 16550 compatible Configurable from 1,200 to 921,600bps Non-standard baud rates supported 8 Odd, even, none 1 or 2 Default Serial parameters 9600,n,8,1 Levels Modem Control 1.7 - 3.6V CMOS (independent of Vcc) RTS, CTS DTR, DSR, DCD, RI General Purpose Interface I/O 16 general purpose I/O pins ADC I2S PCM SPDIF LED Codec Amplifiers Microphone 2 x ADC Stereo Audio Digital Interface Bus Shared with I2S Shared with I2S Two dedicated Integrated stereo codec with -95dB SNR for DAC Direct drive for 16 speakers On board filters Input with bias for low noise microphone On board filters Audio Protocols & Firmware Bluetooth Stack V2.1 compliant. Fully integrated. Sample Rates (DAC & ADC) 8, 11.025, 16, 22.05, 32 & 44.1kHz Profiles GAP (Generic Access Profile) SDP (Service Discovery Profile) SPP (Serial Port Profile) HSP HFP Audio Gateway and Handsfree A2DP Source and Sink AVRCP Target and Controller SCO/eSCO FTP Client (future release) DI (future release) GOEP (future release) PBAP (future release) MAP (future release) HDP (future release) Protocols Firmware Upgrade RFCOMM AVCTP AVDTP OBEX (future release) MCAP (future release) Available over UART Laird Technologies 5 www.lairdtech.com BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS CATEGORIES Command Interface FEATURE AT Instruction set IMPLEMENTATION 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 Additional Support All I/O available for CSR Road Tunes and Blue Tunes applications DSP Kalimba DSP Integrated in BC05 32bit, 64MIPS, 16Mbps Flash Memory
(shared) Applications Available from partners Current Consumption Data Transfer Typically < 70mA (including speaker drive) Supply Voltage Low Power Sniff Mode Less than 1.5mA Supply I/O 3.0V 4.2V DC 1.7V 3.6V DC Coexistence / Compatibility WLAN (802.11) Connections External Antenna (option) Physical Interface Dimensions Weight 2, 3 and 5-wire hardware coexistence schemes supported Pad for 50 Ohm antenna BTM520 Surface Mount Pads 20.0mm x 36.0mm x 4.9mm 3 grams Environmental Operating Temperature
-30C to +70C Storage Temperature
-40C to +85C Approvals Miscellaneous Bluetooth FCC CE & R&TTE Lead free Warranty Qualified as an END product Meets FCC requirements Modular Approval (Integrated Antenna option BTM521) Meets CE and R&TTE requirements Lead-free and RoHS compliant 12 Months Development Tools Development Kit Development board and software tools Modem control pins and GPIO are shared 6 www.lairdtech.com Laird Technologies VOLTAGE SPECIFICATION VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS Open Drain Open Drain VIO VIO BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS PIN OUT PIN SIGNAL DESCRIPTION PCM Data I/P PCM Data O/P PCM Sync I/P PCM CLK I/P SPI bus serial I/P SPI bus chip select I/P SPI bus serial O/P SPI bus clock I/P Host I/O Host I/O VPADS supply VIO supply Main supply Speaker, channel B+ (right) Note 3 Speaker, channel B- (right) Note 3 Speaker, channel A+ (left) Note 3 Speaker, channel A- (left) Note 3 Microphone bias Note 4 Microphone, channel A+ (left) Note 4 Microphone, channel A- (left) Note 4 Microphone, channel B- (right) Note 4 Microphone, channel B+ (right) Note 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 PCM_IN PCM_OUT PCM_SYNC PCM_CLK GND SPI_MOSI SPI_CSB SPI_MISO SPI_CLK LED_EXT1 LED_EXT0 PIO0 / RX_ENABLE PIO1 / TX_ENABLE GND VDD_PADS VDD_PIO VDD_IN GND AUDIO_GND SPKR_B_P SPKR_B_N SPKR_A_P SPKR_A_N MIC_BIAS MIC_BN_C MIC_BP_C MIC_AP_C MIC_AN_C Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused 7 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS PIN OUT (continued) PIN SIGNAL DESCRIPTION VOLTAGE SPECIFICATION 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 Unused Unused Unused PIO3 / USB_VSENSE PIO14 / CSB AUX_DAC PIO4 PIO5 / BT_STATE / BT_PROR-
ITY PIO7 / RF_ACTIVE PIO15 PIO12 / SCL GND AIO1 PIO10 / DSR PIO11 / DTR AIO0 PIO9 / DCD PIO13 / SDA PIO8 / RI PIO6 / WLAN_ACTIVE GND USB_D-
USB_D+
PIO2 / USB_PULL_UP VDD_USB VREGENABLE_H GND UART_RTS UART_CTS UART_TX UART_RX Reset Host I/O Host I/O Host I/O / BT Co-existence Host I/O / BT Co-existence Host I/O Host I/O ADC Input, 10 bit 0-1.5V input range Host I/O Host I/O ADC Input, 10 bit 0-1.5V input range Host I/O Host I/O Host I/O Host I/O / BT Co-existence VUSB supply Main regulator enable pull high for correct operation Request to Send O/P Clear to Send I/P Transmit data O/P Receive data I/P Module reset I/P (active low) Note 1 VIO VPADS VIO VIO VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS VUSB VUSB VIO VUSB VUSB VUSB VUSB VPADS 8 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module OPERATING PARAMETERS OPERATING PARAMETERS RECOMMENDED OPERATING CONDITIONS Operating Condition VDD_USB
(USB compatibility not required) VDD_USB
(USB compatibility required) VDD_IO VDD_PADS VDD_IN VOLTAGE SPECIFICATIONS Min 1.7 3.1 1.7 1.7 3.0 Max 3.6 3.6 3.6 3.6 3.3 LOGIC LEVELS (VUSB) Input Voltage Levels Vih Vil Output Voltage Levels Voh (Iout = -4mA) Vol (Iout = 4mA) LOGIC LEVELS (VIO) Input Voltage Levels Vih Vil Output Voltage Levels Voh (Iout = -4mA) Vol (Iout = 4mA) LOGIC LEVELS (VPADS) Input Voltage Levels Vih Vil Output Voltage Levels Voh (Iout = -4mA) Vol (Iout = 4mA) Min Typ Max 0.625VDD_USB
-0.3 0.75VDD_USB 0 Min Typ 0.625VDD_IO
-0.3 0.75VDD_IO 0 VDD_USB+0.3 0.25VDD_USB VDD_USB 0.125 Max VDD_IO+0.3 0.25VDD_IO VDD_IO 0.125 Min Typ Max 0.625VDD_PADS
-0.3 0.75VDD_PADS 0 VDD_PADS+0.3 0.25VDD_PADS VDD_PADS 0.125 LOGIC LEVELS (VUSB USB TERMINALS D+, D-) Min Input Voltage Levels Vih Vil Output Voltage Levels (to correctly terminated USB cable) Voh Vol 0.7VDD_USB 2.8 0 Typ Max 0.3VDD_USB VDD_USB 0.2 9 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module OPERATING PARAMETERS VDD R Module External Circuit 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 flowing through the diode is:
Iled =
VDD - VF 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 amplifier the first stage provides a fixed 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 first 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:
MIC_BIAS MIC_AP MIC_AN 15nH 15pF 15nH 15pF External Circuit Module 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 1A and 10A 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 configuration as follows:
AC AC Single ended Double ended 10 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 INTRODUCTION This document describes the protocol used to control and configure the BT-MM+ Bluetooth device. The AT commands described in the document apply to firmware 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 configured 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 UNCONNECTED RF CONNECTED Local Command Mode Remote Command Mode Data Mode OK ILLEGAL ILLEGAL OK OK 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 Specification Rev.V12, 16/04/2007
[4] Advanced Audio Distribution Profile Specification Rev. V12, 16/04/2007
[5] Audio/Video Remote Control Profile 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 Specification Version 2.1 + EDR [vol3], 26 July 2007 11 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Glossary of Terms DESCRIPTION Advanced Audio Distribution Profile Analogue to Digital Converter Audio Gateway Hands-Free Profile Command prefix, Attention Audio/Video Remote Control Profile Bluetooth Intelligent Serial Module Device capable of encoding / decoding an analogue / digital signal Digital to Analogue Converter Digital Signal Processor Dial-Up Network Profile File Transfer Profile Generic Object Access Exchange Profile General Purpose Input Output Hands Free Profile Human Interface Device Profile Input/Output
: Microphone
Object Push Profile Phone Book Access Profile Pulse Width Modulation S-Register No. xxx
Sub Band Codec
Serial Port Profile To Be Determined Universal Asynchronous Receiver / Transmitter PASS THROUGH Command UNIT INFO Command SUBUNIT INFO Command A2DP ADC AGHFP AT AVRCP BISM Codec DAC DSP DUN FTP GOEP GPIO HFP HID I/O (IO) Mic OPP PBAP PWM Sxxx SBC SPP TBD UART PT UI SUI 12 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 AT Command Set Assumptions 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 3. All Bluetooth addresses are represented by a fixed 12 digit hexadecimal string, case insensitive. 4. All Bluetooth Device Class codes are represented by a fixed 6 digit hexadecimal string, case insensitive. respectively and shall be represented by the string <cr,lf>. 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. N M
<string>
<uuid>
A positive integer value. An 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 A string delimited by double quotes. E.g. Hello World. The character MUST be supplied as delimiters. 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 Response: <cr,lf>CONNECT 123456789012<cr,lf>
the connecting device. that only profiles based on RFCOMM can be accessed. 3. ATD<bd_addr>,<uuid> {Make Outgoing Connection}
Make a connection to device with Bluetooth address <bd_addr> and SPP profile <uuid>. The <uuid> is an optional parameter which specifies the UUID of the profile 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 specification, it necessarily implies The timeout is specified by S register 505. Response: <cr,lf>CONNECT 123456789012<cr,lf>
Or 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, Response: <cr,lf>CALL LIMIT Or are possible. In that case, issuing an ATZ to reset the device will reset the count to 0 and more connections then the connection attempt will fail with the following response:-
<cr,lf>NO CARRIER<cr,lf>
<cr,lf>NO CARRIER<cr,lf>
13 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 The following RFCOMM based UUIDs are defined in the Bluetooth Specification:-
PROFILE NAME Serial Port LAN Access Using PPP Dialup Networking IrMC Sync OBEX Object Push OBEX File Transfer IrMC Sync Command Headset Cordless Telephony Intercom Fax Audio Gateway WAP WAP_CLIENT UUID 0x1101 0x1102 0x1103 0x1104 0x1105 0x1106 0x1107 0x1108 0x1109 0x1110 0x1111 0x1112 0x1113 0x1114 4. ATDL {Remake Connection}
Make a connection with the same device and service as that specified in the most recent ATD command. An error will be returned if the L modifier is specified AND a Bluetooth address. Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or If both L and R modifiers are specified then an error will be returned.
<cr,lf>NO CARRIER<cr,lf>
5. ATDR {Make Connection to peer specified in AT+BTR}
Make a SPP connection with the device address specified in the most recent AT+BTR command. The service is as specified in S Register 101. An error will be returned if the R modifier is specified AND a Bluetooth address. Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or If both R and L modifiers are specified then an error will be returned.
<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. E0 E1 Disable echo. Enable 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>
14 www.lairdtech.com 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 specified 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 REGISTER DEFAULT S0 1 RANGE
-1..15 S2 0x5E 0x20..0x7E S12 S100 S101 S102 S103 S126 S127 S300 S301 100 15 40..5000 0..15
$1101 0..$ffff 1 1
1 1 1..0x7FF 1..7 0 .. 0xFFFF 0 .. 0xFFFF 0..2 0..2 COMMENT Number of RING indication before automatically answering an incoming 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 ^. Escape sequence guard time in milliseconds, with a granularity of 20ms. New values are rounded down to the nearest 20ms multiple Number of RING indications before an auto disconnection is initiated. A value 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. UUID of default SPP based profile when not specified explicitly in the ATD command. Defines a set of bits masks for enabling profile servers. Values can be ORed. 0x001 is Serial Port Profile 0x080 is A2DP 0x100 is AVRCP Boot Mode on cold boot. Primer for changing to Multipoint mode 0x100 for At mode 0x200 for Multipoint mode Other values are reserved Set A2DP role:
0 is feature not set 1 is A2DP Sink (default) 2 is A2DP Source Set AVRCP role:
0 is feature disabled 1 is Control (CT) (default) 2 is Target (TG) 15 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S302 0 RANGE 0..4 COMMENT Set AVRCP category:
0 is Feature disabled (default) 1 is Player/Recorder 2 is Monitor/Amplifier 3 is Tuner 4 is Menu 0..0xFFFFFF Set Company ID:
IEEE Company ID, 24bit hexadecimal, Required for UNIT INFO Response in AVRCP target mode, default value is 0. S303 S305 S306 S310 S311 S312 S313 S320 S321 S322 S323 0 1 1 1 0..1 0..1 0..1 1 w 9 r 0..7 (Write) 1 1 2 1 0 0 0..15 0..15 1..3 0..4 0..1 0..1 Accept UNIT INFO request:
0 reject 1 accept Accept SUBUNIT INFO request:
0 reject 1 accept Configure PASS THROUGH (PT) Response:
1 = Enable automatic PT-response, response type is read from S311, (default) 0 = Host is required to respond to PT-Indication, see AT+AVR Set automatic PT response:
This value is queried for automatic PT-Response, see Table 3-10. The written value is mapped internal, that is why the Read-value is different from the written value. The Read-value is actually sent out as response A2DP sink supported features (Bitmask) :
Bit 0 = Headphone (default) Bit 1 = Speaker Bit 2 = Recorder Bit 3 = Amplifier A2DP source supported features (Bitmask) :
Bit 0 = Player (default) Bit 1 = Microphone Bit 2 = Tuner Bit 3 = Mixer Security Level: see [12], Generic Access Profile - Table 5.7 needs subsequent AT&W and power cycle to take effect Set IO capability:
0 display only 1 display yes no 2 keyboard only 3 no input no output 4 reject IO-cap requests Force man-in-the-middle-protection (MITM):
0 disabled 1 enabled Disable legacy (pre-BT2.1) Pairing:
0 legacy pairing enabled 1 legacy pairing disabled S324 90 1..255 Secure Simple Pairing timeout in s This value must be at least 90 in order to meet the recommendation of BT2.1 specification 16 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S325 1 RANGE 0..1 S326 S327 S328 S329 S330 S415 S416 S417 S418 S419 1 1 1 0 1 0 0 0 0 6 0..1 0..1 0..1 0..1 1..15 0..1 0..1 0..15 0..15 0..6 S504 0 0..1 S505 10 2..120 S506 S507 1 0 0..1 0..2 COMMENT Store link key automatically on dedicated bonding outgoing (DBO), identical with S538 Store link key automatically on general bonding outgoing (GBO) Store link key automatically on dedicated bonding incoming (DBI) Store link key automatically on general bonding incoming (GBI) Enable legacy (BISM2) response format Configure inquiry response of AT+BTI (Bitmask):
1 show device address 2 show class of device 4 show friendly name 8 show extended inquiry data Values can be ORed Enable Microphone Input Gain, adds extra 24dB to input gain Enable MicBias Set MicBiasCurrent Set MicBiasVoltage Set sampling rate for Audio Loopback Mode 0 = 8 kHz 1 = 11.025 kHz 2 = 16 kHz 3 = 22.050 kHz 4 = 24 kHz 5 = 32 kHz 6 = 44.1 kHz Setting to 1 will force S0 to -1 and will suppress messages arising from connections or pairing. E.g. CONNECT, NO CARRIER, RING, PAIR etc. Suppressing connection based messaged allows the device to be configured in cable replacement mode. Minimum delay before abandoning connection attempt as a master. Referenced by ATD. In units of seconds. See S Registers 530 and 543 also. Please note that as disconnection time can vary, this register only guarantees the minimum delay. Note that for invalid addresses specified in the ATD command, the NO CARRIER response will be immediate. See S register 560 for specifying disconnect max timeout. Enable/Disable echoes. The ATEn command also affects this. When set to 0, a connection can be dropped using ^^^ escape sequence only and the state of DSR line is ignored. When set to 1 a connection can be dropped using EITHER the ^^^ escape sequence OR the DSR handshaking line. When set to 2, a connection can only dropped using a deassertion of DSR. Mode 2 provides for the highest data transfer rate. If the status of the DSR line is to be conveyed to the remote device as a low bandwidth signal then this register MUST be set to 0, otherwise a deassertion of DSR will be seen as a request to drop the Bluetooth connection. This register affects S Register 536 see details of 536 17 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S512 1 RANGE 0..7 COMMENT Specify power up state. When set to 0, AT+BTO is required to open the device for Bluetooth activity. When set to 1, it proceeds to a state as if AT+BTO was entered. When set to 2, it will be discoverable only, similar to issuing AT+BTQ. When set to 3, it will be connectable but not discoverable e.g. AT+BTG When set to 4, it will be connectable and discoverable e.g. AT+BTP. When set to 5, it will be like 2, but all UART RX traffic is discarded in absence of a connection while DSR is asserted. If DSR is not asserted, then it behaves exactly as per mode 2. When set to 6, it will be like 3, but all UART RX traffic is discarded in absence of a connection while DSR is asserted. If DSR is not asserted, then it behaves exactly as per mode 3. When set to 7, it will be like 4, but all UART RX traffic is discarded in absence of a connection while DSR is asserted. If DSR is not asserted, then it behaves exactly as per mode 4. Note that by implication, a change to this can only be seen after a power cycle AND if AT&W is actioned prior to the power cycle. If S Reg 554 is non-zero and this register is between 2 and 7 inclusive, then the value of S554 specifies the time in seconds that the device will remain in the specified mode after power up. On timeout, the device will fall back to the mode specified in S Register 555. In some firmware builds, S Registers 565 to 569 inclusive are visible, which allows the start-up mode to depend on the state of RI line (Setting S Reg 565 forces the RI pin to be configured as an input). For this feature to be active, SReg 565 should be set to 1. In that case, on start-up, if RI is asserted, then the start-up mode is defined by S Reg 566 and if deasserted then S Reg 567. 10 1..60 Pairing Timeout in seconds. This includes the time a host takes to supply the PIN number when PIN? messages are indicated. S514 S515 0x001F00 0.. 0xFFFFFF S516 0x000000 0..0x2FFFFFF S517 S518 20 8 2..61 0..255 S519 500 100..6000 S530 1000 100..15000 Default Device Class Code to be used with AT+BTO when it is not explicitly specified. When queried, the value is always printed as a hexadecimal number. To change the device class of the module, after AT+BTO, use the command AT+BTC. Default Device Class filter to be used with AT+BTI when it is not explicitly specified. When queried the value is always printed as a hex number. The seventh most significant digit, can be 0,1 or 2, and is used to specify the type of device class filter. When 0, it specifies no filtering. When 1, it specifies an AND mask and all 24 bits are relevant When 2, it specifies a filter to look for devices with matching major device class which occupies a 5 bit field from bits 8 to 12 inclusive (assuming numbering starts at bit 0). All other 19 bits MUST be set to 0. Inquiry Length in units of seconds. This parameter is referenced by the AT+BTI command. Maximum number of responses from an inquiry request. This parameter is reference by the AT+BTI command. If this number is set too high, then AT+BTI will return ERROR 27. For a particular firmware revision, determine the effective maximum value by trial and error. That is, set to a high value, send AT+BTI and if ERROR 27 is returned, then retry with a smaller value. This effective max value will remain unchanged for that particular firmware build. When S507>0, and in a connection, DSR can be used to change from data to command state by deasserting the DSR line for less than the time specified in this register. This value is rounded down to the nearest 100ms Reconnect delay when configured as master in pure-cable-replacement mode. This value is rounded down to the nearest 100ms. See S Register 505 and 543 also. 18 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S531 0 RANGE 0..5 S532 S533 S534 S535 S536 S538 S539 S541 S542 S543 0 1 1 20 0 0 0 6 6 0 0..7 0..2 0..2 0..41 0..1 0..1 0..1
-50..6
-50..6 0..1 COMMENT Specifies the mode on connection establishment. 0 = Normal, that data is exchanged between UART and RF 1 = LOCAL_COMMAND. UART input is parsed by the AT interpreter and RF data is discarded 2 = REMOTE_COMMAND. RF input is parsed by the AT interpreter and UART data is discarded. If S Reg 536 is not 1 then this register cannot be set to 2 and an ERROR will be returned 3 = LOCAL_COMMAND. UART input is parsed by the AT interpreter and incoming RF data is sent to the host using the RX<string>
asynchronous response. 4 = LOCAL_COMMAND and on the rf side, the gpio is automatically sent when there is a change in input. See section 9.5 for more details. 5 = DEAMON mode If non zero then on every connection, a SCO channel (audio) will be initiated. Bit 0 for HV1, Bit1 for HV2 and Bit2 for HV3. When the connection is lost, the SCO channel disappears along with it. If set to 1 then GPIO5 follows RI state, if set to 2 then it follows the state of DSR and if 0 it is not driven and GPIO5 is available as a user I/O. This register will not necessarily be effective immediately after changing the value. It must be saved to non-volatile memory using AT&W and will operate as expected after an ATZ or a power cycle. When set to 0, GPIO4 is available as user i/o If set to 1 then GPIO4 follows DCD state. If set to 2 then GPIO4 behaves as per setting 1, but in addition, when not in a connection, if the device is connectable or discoverable, then GPIO4 will blink. This register will not necessarily be effective immediately after changing the value. It must be saved to non-volatile store using AT&W and will operate as expected after an ATZ or a power cycle. Link Supervision Timeout. If units go out of range, then a NO CARRIER message will be sent to the host after the time specified here When set to 1, a remote device can capture the AT parser of this unit by it sending this module an escape !!! sequence. The inter character timing is set via S Register 12. If S Register 507 is >= 2, then reading this register will always return 0 and writing 1 will result in ERROR 33. If 1, then when a successful pairing occurs, it is automatically saved in the trusted device database if it has room to store it. When set to 1, in idle mode (S512=1), UART Rx characters are discarded if DSR is deasserted. This sets the power level in dBm when inquiring or paging. Reading this register returns the value stored in non-volatile memory. As per S541, however reading this register returns the current power level as set in the base band. The read can be different from S541because the actual power is set using a lookup table and the base band rounds down to the nearest value in the table. If this is set to 1, then incoming pairing attempts will be accepted (if a pin code has been pre-entered using AT+BTK) while in the wait phase of auto connect cycle initiated by the AT+BTR command. In addition to accepting pairing attempts, if the pairing is successful, then the new device is automatically set as the peer address for automatic connections
(as if an explicit AT+BTR command was entered). See S Register 505 and 530 also 19 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S551 0x3211 RANGE 0xFFFF S552 0x0122 0x0FFF S553 0x0201 0x0FFF COMMENT This register specifies in each 4 bit nibble, how the outgoing modem status bits to the remote peer gets its value. Bluetooth allows for RTR, RTC, DV and IC bits to be exchanged over an RFCOMM connection. Nibble 0..3 specifies the source for RTC 4..7 specifies the source for RTR 8..11 specifies the source for DV (i.e. DCD) 12..15 specifies the source for IC (i.e. RI) Each nibble can take the following value:-
0 Always set to 0 1 Always set to 1 2 If DCD (pin 8 on module connector) is output then always 1 If DCD is input then 1 if DCD is asserted otherwise 0 3 If RI (pin 6) is output then always 0 If RI is input then 1 if RI is asserted otherwise 0 4 If DSR (pin 10) is asserted then 1 otherwise 0 In the event that a nibble specifies DSR as the source of its state, be aware that if, S Register 507 is anything other than 0, a de-assertion of DSR will cause the Bluetooth connection to be dropped. If bits 0..3 and 4..7 are set to 0, then some Bluetooth devices will use that as a signal to stop sending any data back. For example, Nokia 6310 stops responding. If this register is changed while in command and connected mode, then on going back online using the ATO command, a fresh signal will be sent to the peer to update the bits. This register specifies in each 4 bit nibble, how the DTR, DCD, RI output pins are controlled when in a Bluetooth connection Nibble 0..3 specifies the source for DTR 4..7 specifies the source for DCD 8..11 specifies the source for RI Each nibble can take the following value:-
0 Do NOT touch the I/O 1 Always deassert 2 Always assert 3 If RTC bit in CONTROL_IND is 1 then assert otherwise deassert 4 If RTR bit in CONTROL_IND is 1 then assert otherwise deassert 5 If DV bit in CONTROL_IND is 1 then assert otherwise deassert 6 If IC bit in CONTROL_IND is 1 then assert otherwise deassert If this register is changed while in command and connected mode, then on going back online using the ATO command, the modem output lines will get refreshed. This register specifies in each 4 bit nibble, how the DTR,DCD,RI output pins are controlled when NOT in a Bluetooth connection Nibble 0..3 specifies the source for DTR 4..7 specifies the source for DCD 8..11 specifies the source for RI In addition it also refers to S Register 552 to see if the relevant pin is an input or not to be touched. If the nibble in 552 is 0, then the relevant pin is an input. Each nibble can take the following value:-
0 Always deassert 1 Always assert 2 Assert if RING is being sent to the host 20 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S554 0 RANGE 0..900 S555 1 1..7 S558 S559 0 0 0..1 0..3 S560 15 15..120 S565 S566 S567 S568 S569 S584 S588 S589 S590 S591 0 1 1 1 1 0 0 8 1 0 1 7 7 7 7 0..1 0..1 0..F 0..3 0..1FF COMMENT If S Register 512>=2 and <=7 then this register specifies a time in seconds for which the device will stay in the S512 mode after power up or reset. On timeout, it will abort the discoverable and/or connectable and fall back into S512=1 mode, when it is deaf and dumb. Note that if AT+BTR has been used to specify a peer device, then on reverting to mode 1, it will attempt to make a connection to that peer device. A power cycle, reset via BREAK or ATZ is required to see the effects of change. If S Register 554 is nonzero, then after the post reset window expires, the mode will revert to the mode specified in this register. This allows, for example, the device to be discoverable and connectable on power up
(mode 4 or 7) and on window timer expiry to revert to connectable only
(mode 3 or 6). A power cycle, reset via BREAK or ATZ is required to see effects of a change. In some firmware builds, S Registers 565 to 569 inclusive are visible, which allows the start-up mode to depend on the state of RI line (Setting S Reg 565 forces the RI pin to be configured as an input). For this feature to be active, SReg 565 should be set to 1. In that case, on start-up, if RI is asserted, then the start-up mode is defined by S Reg 568 and if deasserted then S Reg 569. When 1, the following responses; RING, NO CARRIER and CONNECT are replaced by BTIN, BTDOWN and BTUP respectively. This will eliminate ambiguity when the module has a Bluetooth connection to an AT modem which also gives these responses. This specifies a mask. When Bit 0 is 1, the response word ERROR is replaced by BTERR and OK is replaced by ok. When Bit 1 is 1, then error responses do not include the error number and instead the error number can be retrieved using ATI12. Disconnect timeout in seconds. This timer specifies how long to wait for confirmation from the peer device and/or the underlying stack that the connection has been successfully torn down. There can be instances where a confirmation does not arrive and so in this case this timer is used to close off the procedure and put the state machine back into a proper mode for new operations. Time is specified with 15 seconds intervals. If set to 1, RI (Ring Indicate) line is configured as an input and forces the start-up mode (SReg512) and post-timeout on Start-up mode (SReg555) to be dependent on the state of RI. The RI conditional modes are defined by SRegs 566 to 569 inclusive. If S565=1, and RI is asserted then this is the mode the device will start up in. If S565=1, and RI is deasserted then this is the mode the device will start up in. If S565=1, and RI is asserted then this is the mode the device will assume after the post-start-up timeout defined in SReg 554 instead of mode defined in SReg555 If S565=1, and RI is deasserted then this is the mode the device will assume after the post-start-up timeout defined in SReg 554 instead of mode defined in SReg555 Enable/Disable eSCO When changing the unit returns ERROR 14 it implies the device is either in a connection or waiting for a connection and so the new value cannot be accepted. For the former, drop the connection, then issue the command AT+BTX and then set the new value and for the latter issue the command AT+BTX prior to setting the register. After a disconnection, there will be a cold reset Codec output gain Codec input gain Default GPIO output states when not in a connection. This is used when virtual digital i/o cable replacement mode is in operation 21 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S592 0 RANGE 0..1 COMMENT Set this to 1 to reduce the trusted device database to just 1 record when autosaving of pairing is enabled via S reg 538 Automatically append last 6 digits of local bluetooth address to the friendlyname which was set via AT+BTN or AT+BTF Set codec output gain in dBr * 10
(applies to sink), default = 0 Set codec input gain in dBr * 10
(applies to source), default = 0 0..1
-450..+215
-450..+215 0..1 0..225 Enable Auxiliary DAC Set Auxiliary DAC Level S593 S689 S690 S730 S731 0 0 0 0 0 9. ATSn? {Read S Register Value}
This will return the current value of register n. For recognised values of n Response: <cr,lf>As Appropriate<cr,lf>OK<cr,lf>
For unrecognised values of n Response: <cr,lf>ERROR nn<cr,lf>
10. ATSn=? {Read S Register Valid Range}
This will return the valid range of values for register n. For recognised values of n Response: <cr,lf>Sn:(nnnn..mmmm)<cr,lf>OK<cr,lf>
For unrecognised values of n Response: <cr,lf>ERROR nn<cr,lf>
11. ATZ<n> {Hardware Reset and emerge into mode n}
Forces the device through a hardware reset which means it will eventually come alive in the local command and unconnected mode. This allows changes to the PS store to take effect. The module will issue an OK response after the reset is complete and it is ready to receive commands once again. ATZ and ATZ0 signify reset and emerge into the current mode (see command ATI14). ATZ1 to ATZ4 instructs the module to reset and then emerge into the appropriate boot mode. Note that S Reg 103 specifies the boot mode from cold. Response: <cr,lf>OK<cr,lf> and OK is returned after the RESET 12. AT&W {Write S Registers to Non-volatile Memory}
Writes current S Register values to non-volatile memory so that they are retained over a power cycle. Response: <cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
22 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 13. ATIn {Information}
This will return the following information about the Laird Technologies device. I0 I1 I2 I3 I4 I5 I6 I7 I8 I9 The product name/variant. The CSR firmware build number. The Laird Technologies firmware build number. For internal use only. The Laird Technologies firmware revision. A 12 digit hexadecimal number corresponding to the Bluetooth address of the device. The manufacturer of this device. The maximum size of trusted device database. The manufacturer of the Bluetooth chipset. The chipset format. 0 if not in a connect state and 1 if in a connect state. I11 The reason why a NO CARRIER resulted in the most recent attempt at making an outgoing connection. Where the response values are as follows:
0 = No prior connection 1 = Connection timeout 2 = Connection attempt cancelled 3 = Normal disconnection 4 = Peer device has refused connection 5 = Service profile <uuid> requested not available on remote device 6 = Connection has failed 32 = ATH was entered 33 = Incoming connection aborted because too many rings 34 = Unexpected incoming connection 35 = Invalid address 36 = DSR is not asserted 37 = Call limit of 65531 connections has been reached 38 = Pairing in progress 39 = No link key 40 = Invalid link key 255 = Unknown Reason I12 I60 The last ERROR response number. Connection status of SPP 0 = not connected 1 = connected identical with ATI9 I61 Connection status of A2DP 0 = not connected 1 = connected I62 Connection status of AVRCP 0 = not connected 1 = connected For recognised values of n. All other values of n will generate an error. Response: <cr,lf>As Appropriate<cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
23 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 14. ATO {Enter Data Mode} (letter o) Return to data mode. Assume that the module is in data mode after OK is received. Responds with an error if there is no Bluetooth connection. Response: <cr,lf> CONNECT 123456789012<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
15. AT&Fn {Set S Register Defaults}
This command will only work when the device is in local command and unconnected mode. Depending on the value of n it installs S Register values appropriate for various power modes, Legal values of n are as per the following table. All other values of n will generate a syntax error response. If n is not specified then a default value of 0 is assumed where the baud rate ranging from minimum power consumption to maximum. is NOT changed.
&F0 (Default) Medium power consumption, UART baud rate unchanged.
&F1
&F2
&F3
&F4
&F5
&F6 Minimum power consumption, UART baud rate set to 9600. Minimum power consumption, UART baud rate set to 38400. Minimum power consumption, UART baud rate set to 115200. Medium power consumption, UART baud rate set to 115200. Maximum power consumption, UART baud rate set to 115200. Maximum power consumption, UART baud rate set to 115200. the device. The new values are NOT updated in non-volatile memory until the AT&W command is sent to Response: <cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
General Bluetooth Control 1. AT+BTAn {Control Audio Channel}
Once a Bluetooth connection is active, and assuming the peer device is also a Laird Technologies device, this command is used to start/stop a SCO channel to transfer audio between the two peer devices.
+BTA0
+BTA1 Switch off the channel. Switch on the channel. On receipt of the command, the following response immediately follows. Response: <cr,lf>OK<cr,lf>
The lower layers then go through the process of setting up the SCO channel, and as soon as a SCO link is established, the following response is asynchronously sent to the host. Response: <cr,lf>AUDIO ON<cr,lf>
Or if the SCO failed to be established. Response: <cr,lf>AUDIO FAIL<cr,lf>
On the peer device, the host will asynchronously get . Response: <cr,lf>AUDIO ON<cr,lf>
24 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 It can be read back using the AT+BTC? Command, as described below. 2. AT+BTC<devclass> {Set Device Class Code}
This command is used to set the device class code which will be sent in subsequent inquiry responses.
<devclass> is a 6 digit hexadecimal number derived as per section 1.2 The Class of Device/Service Field of the Bluetooth specification Bluetooth Assigned Numbers. The 24 bits are made of 4 fields briefly described as follows (bit 0 corresponds to the least significant bit):-
Bits 0-1 Bits 2-7 Bits 8-12 Bits 13-23 Format Type. This field currently only has a value of 00 (i.e. format type 1) These 6 bits define the Minor Device Class and the value is interpreted differently based on the Major Device class stored in the next 5 bits. These 5 bits define the Major Device Class as per Table 1.3 in Bluetooth Assigned Numbers This is an 11 bit field used as a mask to define the Major Service Class, as per Table 1.2 in Bluetooth Assigned Number Laird Technologies devices do not map to any predefined Major Service Class or Major Device Class and so the default devclass as shipped is 001F00, which means no Major Service Class and Unclassified Major Device class. Other examples of device class codes are follows:-
CODE (HEXADECIMAL) 001F00 NAME Unclassified MAJOR SERVICE None MAJOR DEVICE Unclassified MINOR DEVICE n/a 200404 Headset Audio Audio Headset Response: <cr,lf>OK<cr,lf>
Or for an invalid <devclass> value (usually a value which is not 6 hexadecimal characters long). Response: <cr,lf>ERROR 08<cr,lf>
3. AT+BTC? {Read Device Class Code}
This command is used to read the current device class code. Response: <cr,lf>123456
<cr,lf>OK<cr,lf>
4. AT+BTD<bd_addr> {Remove Trusted Device}
This command is used to remove the specified device from the list of trusted devices in the non-volatile database. If the device is not in the database then the response will still be an OK. Response: <cr,lf>OK<cr,lf>
5. AT+BTD* {Remove All Trusted Devices}
This command is used to remove all devices from the list of trusted devices in the non-volatile database. No confirmation will be asked for. So beware!!!
WARNING: If you make an authenticated connection, the link key gets cached in the underlying stack. So if you subsequently delete the key using AT+BTD* and immediately request an authenticated connection to the same device, then the connection will be established. To ensure this does not happen, either send ATZ after the AT+BTD* OR send AT+BTD<bd_addr> for each item in the trusted device database. Response: <cr,lf>OK<cr,lf>
6. AT+BTF=<string> {Set Friendly Name}
This sets the friendly name of this device as seen by other devices Response: <cr,lf>OK<cr,lf>
25 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 7. AT+BTF<bd_addr> {Get Remote Friendly Name}
This command gets the remote friendly name of the peer specified. Response: <cr,lf><bd_addr>,Friendly Name
<cr,lf>OK<cr,lf>
8. AT+BTG<bd_addr> {Enable Cautious Page Scanning ONLY}
Enable page scanning and wait for a connection from device with Bluetooth address <bd_addr>. Response: <cr,lf>OK<cr,lf>
If the specified address is 000000000000 then incoming connections are accepted from any device, is as per AT+BTP without an address. Inquiry Scans are disabled. register 518. 9. AT+BTG {Enable Promiscuous Page Scanning ONLY}
Enable page scanning only and wait for a connection from any device. Inquiry scans are disabled. Response: <cr,lf>OK<cr,lf>
10. AT+BTI<devclass> {Inquire}
This will make the device perform an inquiry for device class code for delay milliseconds and max number of unique responses, where delay is specified by S register 517 and max is specified by S The <devclass> is an optional parameter where the value specifies either a 6 digit device class code or a 2 digit major device class. If it is not specified, then the value is taken from S register 516. When <devclass> is 6 hexadecimal characters long, it specifies an AND mask which is used to filter inquiry responses. When <devclass> is 2 hexadecimal characters long, it forces the inquiry to filter responses to devices that match their major device class code to this value which can only be in the range 00 to 1F. Response: <cr,lf>12346789012
<cr,lf>12345678914
<cr,lf>OK<cr,lf>
back into idle mode. Response: <cr,lf>ERROR 14<cr,lf>
ERROR RESPONSE A Bluetooth inquiry process is such that for a single inquiry request a device could respond many times. To ensure that an address is sent to the host only once for a particular AT+BTI, an array of addresses is created at the start of each AT+BTI and is filled as responses come in. This array of addresses is stored in dynamic memory and as such if the memory allocation fails To clarify, a single AT+BTI will never return the same Bluetooth address more than once, but as Response: <cr,lf>ERROR 27<cr,lf>
If the module is waiting for an incoming connection, (entered via AT+BTP, AT+BTG, AT+BTQ), then it will respond with ERROR 14. To perform the inquiry, send AT+BTX to put the module then the inquiry procedure is aborted and in that case an error response is sent to the host. long as the responding device is active, all AT+BTI commands will always return it. to the ERROR RESPONSE note in the description for AT+BTI<devclass>. 11. AT+BTIV<devclass> {Inquire}
As per AT+BTI but the response includes the device class code for all inquiry responses. Please refer Response: <cr,lf>12346789012,123456
<cr,lf>12345678914,123456
<cr,lf>OK<cr,lf>
26 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 12. AT+BTIN<devclass> {Inquire}
As per AT+BTI but the response includes the device class code and friendly name for all inquiry responses. Please refer to the ERROR RESPONSE note in the description for AT+BTI<devclass>. The friendly name strings are in UTF-8 format as per the Bluetooth specification. Response: <cr,lf>12346789012,123456,TDK SYSTEMS AT DONGLE 1 Note: Many releases of firmware will return the product name as LAIRD, e.g. Response: <cr,lf>12346789012,123456,TDK SYSTEMS AT DONGLE 1 We strongly recommend that any software implementation that uses this command should check for LAIRD, EZURIO and TDK SYSTEMS to ensure backwards and forwards compatibility.
<cr,lf>12345678914,123456, TDK SYSTEMS RS232
<cr,lf>OK<cr,lf>
<cr,lf>12345678914,123456, TDK SYSTEMS RS232
<cr,lf>OK<cr,lf>
13. AT+BTK=<string> {Set Passkey}
This command is used to provide a passkey when PIN? 12345678 indications are received asynchronously. If a pairing is not in progress then the pin is written to non-volatile memory The string length must be in the range 0 to 8, otherwise an error will be returned. Response: <cr,lf>OK<cr,lf>
for future use. Specifying an empty string deletes the key from the non-volatile memory. 14. AT+BTM {Delete Incoming Peer Address}
This command is used to delete the peer address previously stored using AT+BTR<bd_addr>. Response: <cr,lf>OK<cr,lf>
the module in pure cable replacement mode. 15. AT+BTM? {Read Incoming Peer Address}
This command is used to display the peer address stored in non-volatile memory, used to put Response: <cr,lf>12346789012 Response: <cr,lf>00000000000 If the location is empty the response is as follows.
<cr,lf>OK<cr,lf>
<cr,lf>OK<cr,lf>
in non-volatile memory. Use AT+BTF to make the name visible to other devices. Use AT+BTN?
16. AT+BTN=<string> {Set Friendly Name in Non-volatile Memory}
This sets the default friendly name of this device as seen by other devices. It will be stored To read it back. An empty string () will delete the string from non-volatile memory which will Response: <cr,lf>OK<cr,lf>
force the default name to be used. 17. AT+BTN? {Read Friendly Name from Non-volatile Memory}
Read the default friendly name from non-volatile memory. Response: <cr,lf>My FriendlyName<cr,lf>
<cr,lf>OK<cr,lf>
27 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 18 AT+BTP<bd_addr> {Enable Cautious Page/Inquiry Scanning}
Enable page scanning and wait for a connection from device with Bluetooth address <bd_addr>. Response: <cr,lf>OK<cr,lf>
If the specified address is 000000000000 then incoming connections are accepted from any device, is as per AT+BTP without an address. Inquiry scanning is also enabled. 19. AT+BTP {Enable Promiscuous Page/Inquiry Scanning}
Enable page scanning and wait for a connection from any device. Inquiry scanning is also enabled. Response: <cr,lf>OK<cr,lf>
20. AT+BTQ {Enable Inquiry Scans ONLY}
When inquiry scan is enabled, it implies that this device will respond to inquiries from other devices. Use AT+BTX to disable inquiries. Response: <cr,lf>OK<cr,lf>
If S register 512 = 1 and the peer address is NOT 000000000000, then it will periodically (time 21. AT+BTR<bd_addr> {Set Outgoing Peer Address}
This command is used to store a peer address for outbound connections in non-volatile memory. A value of 000000000000 has the special meaning of invalid peer address. This command is used to set up a module in pure cable replacement mode. specified via S register 505) attempt to connect to the peer address specified. In this circumstance all commands from the host are buffered in the receive buffer, until a Bluetooth connection is established with the peer device and it then sends the buffer across. This means that if the peer device is not in the vicinity and will never be there, the device effectively becomes useless, as in probably one to delete the peer device. and that will abort the autoconnect cycle. The second method is initiated by resetting the device and then ensuring that the text string AT+BT&BISM&<cr> is sent (where <cr> is the carriage return character). There is special code which looks out for this magic command and terminates the autoconnect cycle if it sees it and confirms to the host of that fact by sending an OK response. Response: <cr,lf>OK<cr,lf>
In this circumstance, a recovery is possible by one of two methods. The first method assumes that the DTR from the host is connected to the DSR line of the module and the second method assumes that this connection is absent. In the first method it is enough to deassert the DTR line from the host this circumstance a host would want to get attention of the AT parser to send it new commands 22. AT+BTR {Delete Outgoing Peer Address}
This command is used to delete the peer address previously stored using AT+BTR<bd_addr>. Response: <cr,lf>OK<cr,lf>
23. AT+BTR? {Read Outgoing Peer Address}
This command is used to display the peer address stored in non-volatile memory, used to put the device in pure cable replacement mode. Response: <cr,lf>12346789012 Response: <cr,lf>00000000000 If the location is empty the response is as follows.
<cr,lf>OK<cr,lf>
<cr,lf>OK<cr,lf>
28 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 it will respond with an ERROR. If the device is already in the database, then the key is replaced. If the link key cache is empty, that is, a pairing has not been performed since the device was powered, then the response will be an ERROR. 24. AT+BTT {Add Trusted Device}
This command is used to store the cached link key in the non-volatile database. If the database is full Response: <cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR<cr,lf>
the trusted device database. 25. AT+BTT? {List Trusted Device}
This command is used to list the contents of the trusted device database. The link key is NOT displayed so the response is as shown below. If the list is empty then just the OK response is sent otherwise an OK is used to terminate the list. Use the command ATI6 to read the maximum size of Response: <cr,lf>12346789012
<cr,lf>12345678913
<cr,lf>12345678914
<cr,lf>OK<cr,lf>
26. AT+BTW<bd_addr> {Initiate Pairing}
This initiates pairing with a device whose Bluetooth address is <bd_addr>. An OK response is sent and when the PIN is required, asynchronous indications will be sent to the host in the form PIN?
<bd_addr> where the address confirms the device with which the pairing is to be performed. To supply a PIN, use the AT+BTK command. For a successful pairing, the link key is stored in a volatile cache which is overwritten every time a new pairing is initiated using this command. The link key can be stored in a non-volatile database within the device. The list of trusted devices is managed using commands AT+BTT?, AT+BTT and AT+BTD. The AT+BTT? command produces a list of trusted Bluetooth addresses (link key is NEVER displayed) and AT+BTT is used to store the cached link key. The command AT+BTD123456789012 The OK response is sent immediately on receipt of the AT+BTW command. On pairing completion, an unsolicited message will be sent to the host which will be in the form PAIR n <bd_addr>. See section 3.7 for more details. and the subsequence PAIR asynchronous response, then an ERROR response will be sent to Response: <cr,lf>OK<cr,lf>
If AT+BTI or AT+BTP or AT+BTG or AT+BTQ or ATD is issued between the AT+BTW command those commands as the device is not in a mode from where such commands can be actioned. is used to remove the specified device from the database. 27. AT+BTW? {List Cached Trusted Device}
This command is used to list the cached trusted device. Response: <cr,lf>12346789012 Response: <cr,lf>OK<cr,lf>
If the cache is empty the response is as follows.
<cr,lf>OK<cr,lf>
28. AT+BTX {Disable Page/Inquiry Scanning}
Disable page/inquiry scanning. This means it will not accept incoming connections or inquiry requests. Response: <cr,lf>OK<cr,lf>
In fact this negates the effect of AT+BTQ, AT+BTG and AT+BTP commands. 29 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Hardware Unit Control This section covers S-Registers and AT-Commands that are related to hardware units within the module. 1. Audio Loopback Mode For testing purposes, an audio loopback mode will be introduced. The stereo audio input signal output. Audio Loopback Mode is controlled with the new AT Command AT+BTL. is fed through the Kalimba DSP with running SBC codec, and is directed back to the audio stereo Table 3-2: Audio Loopback AT-Commands and S-Registers TASK Set audio loopback mode AT-COMMAND / SREGISTER AT+BTL<Mode>
Set sampling rate for Audio Loopback Mode S419 [0..6], default=6 COMMENT Mode:
0 = off 1 = on, via PCM 2 = on, via SBC encoder/decoder 0 = 8 kHz 1 = 11.025 kHz 2 = 16 kHz 3 = 22.050 kHz 4 = 24 kHz 5 = 32 kHz 6 = 44.1 kHz 2. Codec Gain On BC05-MM, analogue input and output gains can be set to one of 23 steps called Gain Level. To each gain level, an overall gain (dBr) is assigned, according to Table 3 3: Gain Table. Gain values can be specified either as gain level or as overall gain by separate S Registers. Please note that a pair of such S-Registers always updates the other corresponding S-Register (e.g. S589 S689 and S590 S690). For S689 and S690 the overall gain (dBr) must be entered multiplied by 10. If the input value doesnt match a gain table entry, the nearest possible value is set. The actually set value can be checked by reading back S689/S690. The value of S689/S690 is printed out multiplied by 10 in order to avoid non integer numbers. The new command class AT+G is introduced in Bism3 which enables incremental and decremental gain settings. The increment/decrement command corresponds to one row up/down in the gain table (Table 3 3). The Gain level registers S589/S689 and S590/S690 are not affected by increment/decrement commands. Instead, the current gain level is cached and can be retrieved by AT+G(I|O)?. There are 2 further commands to restore the cached gain level from S589/S590 (AT+G(I|O)R) and to save the currently cached gain level to S589/S590 (AT+G(I|O)S). 30 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Table 3-3: Gain Table OUTPUT GAIN LEVEL OR OVERALL GAIN (DBR) INPUT GAIN LEVEL S589 OR S590 S689 OR S690 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
+21.5
+18.0
+15.5
+12.0
+9.5
+6.0
+3.5 0
-3.0
-6.0
-9.0
-12.0
-15.0
-18.0
-21.0
-23.5
-27.0
-29.5
-33.0
-35.5
-39.0
-41.5
-45.0 Table 3-4: Gain Settings AT Commands and S-Registers TASK Set output gain level AT-COMMAND / SREGISTER S589 [0..22], default=15 COMMENT See Gain Table; S689 is affected, too Set output overall gain (dBr) S689 [-450..+215], default=0 See GainTable; value must be entered (and is returned) multiplied by 10; S589 is affected, too Set input gain level S590 [0..22], default=15 See Gain Table; S690 is affected, too Set input overall gain (dBr) S690 [-450..+215], default=0 Increment current output gain level Decrement current output gain level Query current output gain level Restore current output gain level from S589 Save current output gain level to S589 Increment current input gain level Decrement current input gain level Query current input gain level Restore current input gain level from S590 Save current input gain level to S590 AT+GOU AT+GOD AT+GO?
AT+GOR AT+GOS AT+GIU AT+GID AT+GI?
AT+GIR AT+GIS See GainTable; value must be entered (and is returned) multiplied by 10; S590 is affected, too Error 57 may appear if maximum gain level reached Error 58 may appear if minimum gain level reached Error 57 may appear if maximum gain level reached Error 58 may appear if minimum gain level reached Laird Technologies 31 www.lairdtech.com BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 3. Mic Input Gain A microphone preamplifier which adds extra 20dB to input gain, is controlled by S-Register 415. 4. Mic Bias Mic Bias will be enabled with S-Register 416. Mic Bias Current is controlled by S-Register 417. Mic Bias Voltage is controlled by S-Register 418. 5. Auxiliary DAC The auxiliary DAC is enabled with S-Register 730. The DAC output level is set by S-Register 731. 6. LED The BT-MM+ module provides two dedicated output pins for LEDs (LED_EXT0, LED_EXT1). Following modes are supported: LED_OFF, LED_ON, LED_PWM and LED_PULSE. This enables either a to dim the brightness of an LED (PWM Period=0) or to specify blinking with defined on-time in a defined period (PWM Period > blinking visible for the eye) parameter Pulse Rate and maximum brightness is defined by parameter Duty Cycle. In LED_PULSE mode, the brightness of an LED is modulated. Modulation speed is defined by In LED_PWM mode, the parameters Duty Cycle an PWM Period can be specified via S-Registers. Table 3-5: LED S-Registers TASK Set LED_EXT0 mode AT-COMMAND / SREGISTER S335 [0..3], default=0 Set LED_EXT1 mode S340 [0..3], default=0 COMMENT Mode:
0 = LED_OFF 1 = LED_ON 2 = LED_PWM 3 = LED_PULSE Set LED_EXT0 Duty Cycle S336 [0..4095], default = 2048 Set LED_EXT1 Duty Cycle S341 [0..4095], default = 2048 referenced if LED mode = LED_PWM or LED_PULSE Set LED_EXT0 PWM Period S337 [0..15], default = 0 referenced if LED mode = LED_PWM Set LED_EXT1 PWM Period S342 [0..15], default = 0 Set LED_EXT0 Pulse Rate S338 [0..15], default = 0 referenced if LED mode = LED_PULSE Set LED_EXT1 Pulse Rate S343 [0..15], default = 0 Bluetooth Profiles This section covers S-Registers and AT-Commands that are related to the supported Bluetooth Profiles on the BT-MM+ module. 1. Profile Server Activation Supported profiles can be activated by setting the appropriate Flag in S-Register 102 (see Table 3 1). After S-Register 102 has been written, all S-Registers must be saved to non-volatile memory (AT&W) and subsequently a reset has to be carried out (ATZ). In order to advertise available services to potential client devices, S-Register 102 is used. two Bluetooth devices. An A2DP role must be assigned to a BT-MM+ module, either source or sink. 2. A2DP The Advanced Audio Distribution Profile is used to transmit high quality audio streams between After this has been done, the appropriate service can be advertised. An attempt to advertise A2DP-service without prior set up of a role will result in a (new) response error code 46. An incoming A2DP connection request is accepted automatically if a valid link key for the paging device exists. If no link key is available, Secure Simple Pairing (SSP, BT2.1) or legacy pairing (BT2.0 or earlier) is carried out, depending on the Bluetooth Version of the paging device. After an A2DP connection has been established, the module remains in AT Command mode. S Register 531 is ignored for A2DP connections. 32 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Table 3-6: A2DP - S-Registers and AT-Commands TASK Set A2DP role AT-COMMAND / SREGISTER S300 [0..2]
Advertise service S102 Initiate outgoing A2DP connection AT+APD<bd_addr>
close only A2DP connection AT+APH or ATH110D close all connections ATH*
Set gain level Set overall gain (dBr * 10) S589 [0..22], default = 15 S590 [0..22], default = 15 S689 [-450..215]
S690 [-450..215]
Set A2DP sink supported features bit mask S312 [0..15]
Set A2DP source supported features bit mask S313 [0..15]
COMMENT 0 = feature not set 1 = A2DP Sink (default) 2 = A2DP Source 128 = A2DP, Error 46 if A2DP role has not been set (see S300) Response if accepted:
CONNECT 0123456789012,110D Response if rejected:
NO CARRIER 110D Response:
NO CARRIER 110D if connection has existed and S329=0 NO CARRIER if connection has not existed and S329=0 Response:
NO CARRIER <profileUUID> for each profile that was previously connected
(see section 3.7.2) Set codec output gain level (applies to sink) Set codec input gain level (applies to source) Set codec output gain in dBr * 10
(applies to sink), default = 0 Set codec input gain in dBr * 10
(applies to source), default = 0 Bitmask - sink supported features:
Bit 0 = Headphone (default) Bit 1 = Speaker Bit 2 = Recorder Bit 3 = Amplifier Bitmask - source supported features:
Bit 0 = Player (default) Bit 1 = Microphone Bit 2 = Tuner Bit 3 = Mixer
(Player/Recorder, Monitor/Amplifier, Tuner, Menu) has to be assigned to a device. 3. AVRCP The Audio/Video Remote Control Profile is used to remotely control audio or video streaming devices. A device must be defined as either control or target. Furthermore, one of four categories The AVRCP specification [5] adopts the AV/C Digital Interface Command Set (AV/C command set, defined by the 1394 Trade Association) device model and control message format. In this device model a remote control target consists of one or more subunits. At least the subunit PANEL must exist. Remote control commands are passed to a subunit with the PASS THROUGH command. A BT-MM+ Module, configured as target will support one PANEL subunit. 3.1 AVRCP - Control (CT) This section describes AT Commands and S registers used when BT-MM+ is configured as an AVRCP Controller (S301=1). 33 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Initiate AVRCP control connection to Bluetooth address <bd_addrhex>. The module must be configured as AVRCP Control by S register 301 = 1. Furthermore, a category be selected in S register 302. Response:
3.1.1 Initiate AVRCP control connection AT+AVD<bd_addrhex>
Or:
Or:
Or:
<cr,lf>CONNECT 123456789012,110E<cr,lf>
<cr,lf>NO CARRIER 110E<cr,lf>
<cr,lf>ERROR 47<cr,lf>
<cr,lf>ERROR 48<cr,lf>
After an AVRCP connection has been established, the module remains in AT command mode. S Register 531 is ignored for AVRCP connections. 3.1.2 Release AVRCP control connection Release AVRCP control connection. Response:
AT+AVH
<cr,lf >NO CARRIER 110E<cr,lf>
Send a Unit Info request to a connected AVRCP target. Response immediately:
<cr,lf>OK<cr,lf>
3.1.3 Send UNIT INFO Request AT+AVU On command completion:
<cr,lf>AVUR <n> <unit_idhex> <unit_typehex> <company_idhex><cr,lf>
n = statusdec :
For unit_type see Table 3 9: AV/C Unit/Subunit Types. 0 success 1 fail 4 timeout 3.1.4 Send SUBUNIT INFO Request (incomplete) Send a Subunit Info request to a connected AVRCP target. Response: <cr,lf>OK<cr,lf>
And:
AT+AVS<pagedec>
<cr,lf>AVSR <pagedec> <pagedatahex> <cr,lf> (after command completion)
<pagedec>
<pagedatahex> :
requested page [0..31]
1st word of requested page
(immediately) 34 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 3.1.5 Send remote control command AT+AVC<operation_idhex>,<button_state>
Send a remote control command to a connected AVRCP target. Internally, a PASS THROUGH command is created and sent to the PANEL subunit of the AVRCP target.
<operation_idhex> is the value for the actual remote control command. Valid values are specified in Table 3 8. Some Operation IDs can be replaced by mnemonics, see Table 3 8.
<button_state> represents Button pushed (=0) or Button released (=1) If <button_state> is not specified, two PASS THROUGH commands, each with button_state=0 and button_state=1 will be created and sent consecutively. The OK response is sent immediately on receipt of AT+AVC command. On command completion, an unsolicited message will be sent to the host in the form AVPTC n
<bd_addr> <button_state>. AVPTC means AVrcp Pass Through Confirmation. Parameter n indicates the command status:
n=0: successful, command confirmation received from target n=1: timeout, target has not sent confirmation within the specified maximum time n=2: all other unsuccessful outcomes
(mandatory):
(optional) :
Parameters:
<operation_idhex>
<button_state>
<cr,lf>OK<cr,lf>
Response:
<cr,lf>AVPTC n <operation_idhex> <button_state><cr,lf>
And:
(after command completion) If status n indicates an unsuccessful outcome,<operation_idhex> and <button_state>
are omitted. see Table 3 8 0 - Button pushed 1 - Button released
(immediately) 3.2 AVRCP Target (TG) This section describes AT Commands and S registers when BT-MM+ is configured as an AVRCP Target (S301=2). In this mode, BT-MM+ supports one subunit PANEL (see [5]). 3.2.1 Incoming AVRCP Connection Request An incoming AVRCP connection request is accepted automatically if a valid link key for the paging device exists. If no link key is available, Secure Simple Pairing (SSP, BT2.1) or legacy pairing (BT2.0 or earlier) is carried out, depending on the Bluetooth Version of the paging device. After an AVRCP connection has been established, the module remains in AT command mode. S Register 531 is ignored for AVRCP connections. 3.2.2 UNIT INFO Response It is mandatory to respond to a UNIT INFO command if configured as AVRCP target. Required response parameters are IEEE Company ID and a Unit Type. The IEEE Company ID is a 24 bit integer which can be set via new S register 303. In the current revision of BT-MM+ firmware, subunit Panel (=0x09) will be returned always. Values of unit/subunit types are outlined in Table 3 9. 3.2.3 SUBUNIT INFO Response It is mandatory to respond to a SUBUNIT INFO command if configured as AVRCP target. Required response parameters are Subunit type and MaxSubUnitId. Subunit type will always be returned as 0x09 (Panel). MaxSubUnitId will always be returned as 0x00 (only one subunit exists, which is panel) 35 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 3.2.4 PASS THROUGH Indication An incoming PASS THROUGH command will be indicated by an unsolicited message AVPTI <subunit_idhex> <operation_idhex> <button_state>
For subunit_idhex see Table 3 9. For operation_idhex see Table 3 8.
<button_state>: 0 is Button pushed 1 is Button released 3.2.5 PASS THROUGH Response AT+AVR<avrc_response_typehex>
If S register 310 = 0, a Pass Through (PT) response is required from the host. The response is sent with:
AT+AVR<avrc_response_typedec>
Parameter:
<avrc_response_typedec>: see Table 3 10, write-value. If S register 310 == 1, a Pass Through response is sent automatically with an
<avrc_response_type> configured by S register 311. In this case, the host is not required to respond. Table 3-7: AVRCP - S-Registers and AT-Commands TASK Set AVRCP role Set AVRCP category Set Company Id Enable Unit Info Response Enable Subunit Info Response Configure PASS THROUGH (PT) Response Set automatic response type Advertise service Initiate outgoing AVRCP control connection Close only AVRCP con-
nection Close all connections S302 [0..4]
S303 [0..0xFFFFFF]
S305 [0..1]
S306 [0..1]
S310 [0..1]
AT-COMMAND / SREGISTER COMMENT 0 = disabled S301 [0..2]
1 = Control CT (default) 2 = Target TG 0 = Feature disabled (default) 1 = Player/Recorder 2 = Monitor/Amplifier 3 = Tuner 4 = Menu IEEE Company ID, 24bit hexadecimal,Required for UNIT INFO Response in AVRCP target mode, default value is 0. default = 1 default = 1 1 = Enable automatic PT-response, response type is read from S311, (default) 0 = Host is required to respond to PT-Indication, see AT+PTR This value is queried for automatic PT-Response, see Table 3-10 Default value is accepted 1w/ 9r 256 = AVRCP, Error 47 if AVRCP role has not been set (see S301);
Error 48 if S301== 2 and Category has not been set (see S302) Response if accepted:
CONNECT 0123456789012,110E Response if rejected:
NO CARRIER 110E Response:
NO CARRIER 110E if connection has existed and S329=0 NO CARRIER if connection has not existed and S329=0 Response:
NO CARRIER <profileUUID> for each profile that was previously connected (see Miscellaneous section 2) AT+AVH or ATH110E AT+AVD<bd_addr>
S311 [0.. 7]
ATH*
S102 Send a Unit Info request Send a Subunit Info request Send remote control com-
mand AT+AVU AT+AVS AT+AVC<operation_ idhex>,<state>
(incomplete!)
<operation_id>: see Table 3 8, mnemonics possible instead of hexval
<state> (optional): 0 Button pushed 1 Button released Response on command completion:
AVPTC n <operation_idhex> <state>
Respond to incoming Pass Through command 36 www.lairdtech.com AT+AVR<avrc_response_typehex> <avrc_response_typehex>: see Table 3 10 If S 310 == 1, response from host is not required. Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 37 www.lairdtech.com Table 3-8: AVRCP - Operation ID and Mnemonic for Remote Control Commands MNEMONIC PLAY STOP PAUSE REWIND FFORWARD FORWARD BACKWARD COMMAND Select Up Down Left Right Right up Right down Left up Left down Root menu Setup menu Contents menu Favorite menu Exit 0 1 2 3 4 5 6 7 8 9 Dot Enter Clear Channel up Channel down Sound select Input select Display information Help Page up Page down Power Volume up Volume down Mute Play Stop Pause Record Rewind Fast forward Eject Forward Backward Angle Sub picture F1 F2 F3 F4 F5 Vendor unique OPERATION ID 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x50 0x51 0x71 0x72 0x73 0x74 0x75 0x7e Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Table 3-9: AV/C Unit/Subunit Types UNIT / SUBUNIT TYPE Monitor Audio Printer Disc Tape recorder player Tuner CA Camera Reserved Panel Bulletin board Camera storage Vendor unique Reserved for all Extended Unit VALUE 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x1C 0x1D 0x1E 0x1F Table 3-10: AVRC Response Types AVRC RESPONSE TYPE Not implemented Accepted Rejected In transition Stable Changed Interim Bad profile READ-VALUE (S311, SENT IN RESPONSE) 8 9 10 11 12 13 15 16 WRITE-VALUE (S311) 0 1 2 3 4 5 6 7 Table 3-11: AVRCP Unsolicited Messages MESSAGE RING 0123456789012 110E CONNECT 0123456789012 AE 110E NO CARRIER 110E NO CARRIER AVUR <unit_typehex> <company_idhex>
AVSR AVPTI <subunit_idhex> <operation_idhex> <state>
AVPTC n <operation_idhex> <state>
38 www.lairdtech.com RING 0123456789012 110E COMMENT Indication of AVRCP control connection request AVRCP control connection established0123456789012 bd_addr of peer device A - authenticated E encrypted 110E UUID indicating AVRCP AVRCP connection rejected or closed All Connections closed AV Unit Info Response, sent in response to AT+AVU
(UNIT INFO Request),
<unit_type>: see Table 3 9
<company_id>: IEEE Company ID AV Subunit Info Response, sent in response to AT+AVS (SUBUNIT INFO Request), incomplete Indication of incoming Pass Through command
<subunit_idhex>: subunit id
<operation_idhex>: see Table 3 8
<state>: 0 Button pushed 1 Button released Confirmation of AT+AVC (Control Command Request) n: 0 successful 1 timeout 2 not successful, other than timeout Indication of AVRCP control connection request Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 SECURE SIMPLE PAIRING (SSP) Secure Simple Pairing is supported on the BT-MM+ module. A set of S Registers provides configuration capabili-
ties for SPP:
For details see Table 3 1. Security Level S320 IO-Capability S321 Force man-in-the-middle-protection (MITM) S322 Disable legacy pairing S323 LINK KEY MANAGEMENT On BT-MM+ link keys are managed by the AT firmware. 1. Dedicated Bonding devices without the intention of establishing a connection immediately. Dedicated bonding is initiated by AT+BTW<BdAddr> (initiation of pairing). In BT2.1 specification, dedicated bonding is defined as the exchange of link keys between two In BT2.1 specification, general bonding is defined as the exchange of link keys between two 2. General Bonding devices with the intention of establishing a connection immediately. This is the case if a device wants of link keys) is initiated automatically prior to the connection. General bonding is initiated by ATD<BdAddr>, AT+APD<BdAddr>, AT+AVD<BdAddr> if to connection to another device without existing link key. Hence, pairing (authentication and exchange there are no link keys for the peer device existing. to a BT-MM+ (BT2.1) module. 3. Legacy Issues (BT2.0) There are some special cases if a legacy device (BT2.0 or earlier, e.g.BISM2) requests a connection General bonding does not work if initiated by the legacy device. Instead, the legacy device must initiate dedicated bonding first (for example on BISM2 the command AT+BTW<BdAddr> would be used). After successful pairing, the connection can be initiated by the legacy device (for example on BISM2 the ATD<BdAddr> command would be used). 39 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 MISCELLANEOUS 1. Profile Connection Status The connection status of a profile can be queried by an ATI-Command. This might be helpful in order to decide whether to disconnect all connected profiles (via ATH*) or a certain one. For details please see Table 3-12. Table 3-12: Profile Connection Status TASK Get connection status of SPP AT-COMMAND ATI60 Get connection status of A2DP ATI61 Get connection status of AVRCP ATI62 COMMENT 0 = not connected 1 = connected identical with ATI9 0 = not connected 1 = connected 0 = not connected 1 = connected 2. Disconnecting Profiles A connection to a profile can be released by ATH<Profile-UUID> or by using the profile specific disconnect command. The response on a disconnect command is NO CARRIER <profileUUID>. If no connection existed then the profileUUID is omitted. If all connections are to be released, ATH* may be used. Please see Table 3-13. Table 3-13: Profile Release Commands TASK Disconnect A2DP AT-COMMAND ATH110D orAT+APH Disconnect AVRCP ATH110E or AT+AVH Disconnect all profiles ATH*
COMMENT If A2DP connection released:
response = NO CARRIER 110D;
If no A2DP connection has existed:
response = NO CARRIER If AVRCP connection released:
response = NO CARRIER 110D;
If no AVRCP connection has existed:
response = NO CARRIER Response = NO CARRIER
<ProfileUUID> for each previously connected profile 3. Production Info String A string with production information can be retrieved by ATI200. 40 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 APPENDIx BT-MM+ Unsolicited Messages MESSAGE CONNECT 0123456789012,110D NO CARRIER 110D CONNECT 0123456789012,110E NO CARRIER 110E AVUR n <unit_idhex> <unit_typehex> <company_idhex>
AVSR <pagedec> <pagedatahex>
AVPTI <operation_idhex> <button_state> <subunit_idhex>
<subunit_typehex>
AVPTC n <operation_idhex> <state>
PAIR ? <BdAddr>
PAIR 0 <BdAddr>
PAIR 1 <BdAddr>
PASSKEY ? <BdAddr>
PASSKEY N <BdAddr> 012345 BT-MM+ Error Responses ERROR 01 DESCRIPTION Register not recognised COMMENT A2DP control connection established 0123456789012 bd_ addr of peer device 110D Profile UUID indicating A2DP A2DP connection rejected or closed (if S329==0) AVRCP control connection established 0123456789012 bd_ addr of peer device 110E Profile UUID indicating AVRCP AVRCP connection rejected or closed (if S329==0) AV Unit Info Response, sent in response to AT+AVU (UNIT INFO Request),
<unit_idhex>: unit id
<unit_typehex>: see Table 3 9
<company_id>: IEEE Company ID AV Subunit Info Response, sent in response to AT+AVS (SUBUNIT INFO Request), Page data: 1st word of requested page, incomplete Indication of incoming Pass Through command
<operation_idhex>: see Table 3 8
<button_state>: 0 pushed 1 released
<subunit_idhex>: subunit id
<subunit_typehex>: subunit type, see Table 3 9 Confirmation of AT+AVC (Control Command Request) n: 0 successful 1 timeout 2 not successful, other than timeout Incoming pairing request from device with BdAddr Succesfully paired with device with BdAddr Pairing error Incoming passkey request (respond with at+btb012345) Passkey notification (if MITM protection is enabled) 02 03 04 05 06 06 08 09 10 11 12 13 14 15 16 17 Value for register is out of range Incoming call NOT pending No call to connect to. This error code has meaning for ATO only Syntax Error Empty String Device Class could not be stored Invalid Device Class Code Invalid Bluetooth Address Could not set Service or Friendly name PS Store Write PS Store Read Not Idle Incorrect Mode Already Scanning Pairing is already in progress Not USED 41 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 ERROR 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 50 51 52 53 54 55 56 57 58 DESCRIPTION Not USED Not USED Not safe to write to Non-volatile Store - Ongoing Bluetooth Connection Link Key Cache is Empty Link Key Database is Full Malloc returned NULL - Resource Issue Remote Address same as Local Address Connection Setup Fail, DSR Not asserted Unauthenticated licence Max Responses (See S Register 518) too high. Memory allocation error The length of Pin in AT+BTK is too long Invalid Ring count specified for S Register 0 or 100. If S0<>0 and S100<>0 then S0 must be < S100 ADC Error Analogue Value cannot be read as it is set for output Analogue Value cannot be written as it is set for input S Register Value is invalid Both L and R modifier cannot be specified in ATD command Invalid Major Device Class valid value in range 0x00 to 0x1F inclusive Pairing in progress Command cannot be actioned try again later Invalid Sniff parameter specified. E.g. new Attempt value greater than MinInterval. Solution is to first increase MinInterval and re-enter the Attempt value. Get Remote Friendly name Failed Failed to change mode to Multipoint 7 Bit mode requires parity to be even or odd Unused Unused Unused Unused Unused No A2DP role has been set (see S register 300) No AVRCP role has been set (see S register 301) No AVRCP category has been set (see S register 302) No AVRCP control connection No A2DP or AVRCP connection currently incoming No A2DP or AVRCP connection currently incoming Invalid operation ID (AVRCP) Wrong AVRCP role Command disabled by S-Register 310 Production info string does not exist Audio resource error Invalid UUID Maximum gain level reached Minimum gain level reached 42 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS MECHANICAL DETAILS T U O F R 4 3 9 3 RF Shield 8 2 TOP VIEW 0 4
(COMPONENT SIDE) 7 2 E Orientation mark on PCB and RF Shield denotes pin 1 4 5 U1 U3 3 1 1 2 1 Pin Outs D H 7 2 b H 3 1 W E I V E D I S A A1 A2 Description Size Pitch Dimension A A1 A2 b D E e D1 E1 F G H Units Maximum 2.3 0.8 1.3 0.55 13.87 19.87 54 pin BT Voice Module (8X6 Flash) 20.0 x 14.0 x 2.4mm 1.0mm Minimum Typical 2.4 0.9 1.5 0.60 14.0 20.0 1.0 11.0 14.0 1.50 3.00 0.85 2.7 1.0 1.7 0.65 14.13 20.13 mm Notes PCB Thickness RF Shield Height Global pad width Global pitch Pad Centre to Board edge Pad Centre to Board edge Global length of pad to edge of board RECOMMENDED PCB FOOTPRINT MODULE OUTLINE
(See note 2) 10.6 Pad Width 0.7 Typ Pad Length 1.65 Typ 54 40
. 2 5 1 1 1 x 1 h c t i p n p i
(all dimensions in mm) 39 34 RF OUT (See Note 1) 6
. 7 28 27 1 12 5
. 5 13 7 pin pitch 1x14 21.2 43 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS D C B A 4 4 4 0 0 0 v v v e e e R R R 1 2 3 4 I S A B _ C M I F F I D _ N _ A _ C M I R R 0 0 F F N N 4 4 P P T T 1 2 5 5 2 2 R R 1 i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 y y a a w w 3 3 1 2 7 7 2 2 R R R R 0 0 D N G A 1 2 2 R R 0 0 F F N N 3 3 2 2 R R 1 1 0 0 1 1 C C 2 F F p p 5 5 1 1 F F N N 2 2 J J 4 3 2 2 P P T T 1 0 0 2 2 R R R R 0 0 1 2 2 D N G A R R 0 0 F F N N 2 2 2 2 R R 1 1 8 8 C C 2 F F p p 5 5 1 1 F F N N i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 y y a a w w 3 3 F F N N 3 3 J J 4 3 1 1 P P T T 1 R R 0 0 F F N N 1 1 2 2 R R 2 D N G A 2 1 1 R R 0 0 F F N N 9 9 1 1 R R 7 7 FC F C p p 5 5 1 1 F F N N 1 2 3 3 P P T T 1 1 2 R R 0 0 F F N N 6 6 2 2 R R D N G A 1 2 2 R R 0 0 F F N N 4 4 2 2 R R 1 1 2 9 9 FC F C p p 5 5 1 1 F F N N D N G A 2 R R 0 0 7 7 1 1 R R 1 6 6 1 1 R R R R 0 0 5 5 1 1 R R R R 0 0 4 4 1 1 R R R R 0 0 2 2 2 1 1 1 o e r e t S d e d n e e l g n i S t u p t u O e n o h p d a e H i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 1 y y a a w w 3 3 2 1 1 J J 4 3 R R 0 0 2 2 2 R R 1 R R M M 1 1 5 5 R R 2 D N G A 1 R R 0 0 2 7 7 R R 1 0 0 1 1 R R R R M M 1 1 2 1 D N G A 2 2 R R 0 0 1 1 R R 1 1 R R 0 0 6 6 R R 1 1 9 9 R R R R 9 9 3 3 2 1 4 4 C C 2 n n 0 0 0 0 1 1 1 2 2 C C 2 n n 0 0 0 0 1 1 2 R R 9 9 3 3 4 4 R R 1 1 C C 2 1 u u 0 0 0 0 1 1 2 2 3 3
+C
+C u u 0 0 0 0 1 1 F F N N u u 0 0 0 0 1 1 F F N N 3 3 3 3
+C
+C 3 3 C C 2 1 u u 0 0 0 0 1 1 u u 0 0 0 0 1 1 F F N N 4 4 3 3
+C
+C 5 5 C C 2 1 u u 0 0 0 0 1 1 5 5 3 3
+C
+C u u 0 0 0 0 1 1 F F N N 6 6 C C 2 1 u u 0 0 0 0 1 1 P _ A _ R K P S P _ B _ R K P S N _ A _ R K P S N _ B _ R K P S 3 4 1 1 W W S S F F N N 1 2 3 4 3 4 2 2 W W S S F F N N 1 2 3 3 W W S S F F N N 1 2 K K 0 0 1 1 3 3 R R I O _ C C V 1 2 5 K K 0 0 1 1 8 8 R R I O _ C C V 1 2 3 3 1 1 R R K K 0 0 1 1 I O _ C C V 1 2 E V I T C A _ T B
0 _ O P I E V I T C A _ F R
7 _ O P I Y T I I R O R P _ T B _ E T A T S _ T B
5 _ O P I 3 4 4 4 W W S S F F N N 1 2 8 8 1 1 R R K K 0 0 1 1 I O _ C C V 1 2 T C A _ N A L W
6 _ O P I 44 www.lairdtech.com D C B 3 3 3 f f f o o o 1 1 1 t t t e e e e e e h h h S S S 8 8 8 0 0 0 0 0 0 2 2 2
, 1 1 1 3 3 3 r r r e e e b b b o o o t t t c c c O O O
, y y y a a a d d d i i i r r r F F F 1 s s s m m m m m m o o o C C C
d d d r r r a a a o o o B B B v v v e e e D D D i i i n n n M M M i i i 4 4 4 0 0 0
1 1 1 0 0 0 0 0 0
R R R
D D D M M M V V V T T T B B B r r r e e e b b b m m m u u u N N N t t t n n n e e e m m m u u u c c c o o o D D D e e e l l l t t t i i i T T T C C C e e e z z z i i i S S S
e e e t t t a a a D D D 2 3 4 5 t u p n i o e r e t s d e d n e
e g n S i l 4 4 J J 4 3 i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 y y a a w w 3 3 1 2 D N G A 2 2 5 5 3 3 R R 1 5 5 K K 7 7 5 5 K K 7 7 7 7 3 3 R R 1 2 R R 0 0 F F N N 3 3 3 3 R R 1 R R 0 0 F F N N 4 4 3 3 R R 2 1 D N G A R R 0 0 F F N N 9 9 3 3 R R R R 0 0 F F N N 8 8 3 3 R R 1 2 2 1 D N G A 3 3 L L n n 5 5 1 1 n n 5 5 1 1 4 4 L L 1 2 3 3 1 1 C C F F p p 5 5 1 1 1 2 4 4 1 1 C C F F p p 5 5 1 1 2 1 2 2 K K 62 62 3 3 R R F F I D _ N _ A _ C M I 2 2 8 8 2 2 R R R R 0 0 F F N N 1 1 3 3 R R R R 0 0 F F N N 1 1 9 9 2 2 R R R R 0 0 2 2 3 3 R R R R 0 0 1 n n 5 5 1 1 1 1 L L 2 1 2 n n 5 5 1 1 D N G A 2 2 L L D N G A 1 2 1 1 1 1 C C F F p p 5 5 1 1 1 2 2 2 1 1 C C F F p p 5 5 1 1 1 2 0 0 3 3 R R 2 2 K K 2 2 P _ B _ C M I P _ A _ C M I N _ B _ C M I N _ A _ C M I A Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS D C B A 4 4 4 0 0 0 v v v e e e R R R 1 2 3 4 5 N _ A _ C M I P _ A _ C M I N _ B _ C M I P _ B _ C M I I S A B _ C M I T N A 9 3 8 3 7 3 6 3 5 3 4 3 3 3 2 3 1 3 0 3 9 2 8 2 3 1 C N 2 1 C N 1 1 C N 0 1 C N 9 C N T N A 8 C N C _ N A _ C M I C _ P A _ C M I C _ N B _ C M I C _ P B _ C M I I S A B _ C M I NC14 NC15 NC6 NC5 NC4 USB_D-
USB_D+
GND4 UART_RTS UART_CTS UART_TX UART_RX PIO_7/RF_ACTIVE PIO_6/WLAN_ACTIVE BC05_RST SPKR_B_P SPKR_B_N SPKR_A_P SPKR_A_N AUDIO_GND GND2 PIO_0/BT_ACTIVE PIO_1/DCD PIO_3/RI PIO_2/DSR SPI_MOSI SPI_CLK SPI_MISO SPI_CS GND3 4 4 5 5 _ _ M M S S _ _ N N N N O O C C I Y T I R O R P _ T B
E T A T S _ T B
5 _ O P I R T D
5 1 _ O P I C N Y S _ M C P T U O _ M C P I N _ M C P K L C _ M C P 1 T X E _ D E L 0 T X E _ D E L B S U _ D D V I O _ D D V 1 D N G I N V _ R E T S A M 1 2 3 4 5 6 7 8 9 0 1 1 1 2 1 R T D
5 _ O P I Y T I 1 T X E D E L 0 T X E D E L I N _ M C P T U O _ M C P K L C _ M C P C N Y S _ M C P I R O R P _ T B _ E T A T S _ T B
5 _ O P I Module_RTS Module_CTS Module_TX Module_RX USB_MOD_D-
USB_MOD_D+
PIO_7/RF_ACTIVE PIO_6/WLAN_ACT RESET_ 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 4 4 U U R S D
2 _ O P I 1 1 5 5 R R K K 0 0 1 1 1 2 5 5 P P T T 1 2 1 4 4 5 5 R R R R 0 0 1 6 6 P P T T I O _ C C V 1 9 9 1 1 C C 2 n n 0 0 0 0 1 1 3 V 3 _ C C V 1 1 1 2 2 C C 2 n n 0 0 0 0 1 1 l X R _ e u d o M 1 1 4 4 R R K K 0 0 1 1 1 2 1 5 5 1 1 C C 2 n n 0 0 0 0 1 1 3 V 3 _ C C V 3 V 3 _ C C V 3 V 3 _ C C V 3 V 3 _ C C V S T C _ e u d o M l 7 7 4 4 R R K K 0 0 1 1 1 2 1 6 6 1 1 C C 2 n n 0 0 0 0 1 1 I O _ C C V I O _ C C V 3 V 3 _ C C V 5 4 C C V 1 1 U U _ E O T U O N I 5 5 2 2 1 1 Z Z S S 7 7 C C N N D N G 1 2 3 3 V 3 _ C C V 5 4 C C V 2 2 U U _ E O T U O N I 5 5 2 2 1 1 Z Z S S 7 7 C C N N D N G 1 2 3 1 7 7 1 1 C C 2 n n 0 0 0 0 1 1 I O _ C C V 5 4 C C V 3 3 U U _ E O T U O N I 5 5 2 2 1 1 Z Z S S 7 7 C C N N D N G 1 2 3 K K 0 0 1 1 0 0 4 4 R R N E _ D T F I 1 3 V 3 _ C C V 2 K K 0 0 1 1 6 6 4 4 R R N E _ D T F I 1 3 V 3 _ C C V 2 N E _ D T F I 1 K K 0 0 1 1 0 0 5 5 R R 3 V 3 _ C C V 2 X T _ B S U S T R _ B S U N E _ D T F I 3 V 3 _ C C V 1 2 3 3 4 4 R R K K 0 0 1 1 R T D _ B S U 5 5 5 5 R R K K 0 0 1 1 1 2 3 V 3 _ C C V I O _ C C V 5 5 U U I O _ C C V 1 0 0 2 2 C C 2 n n 0 0 0 0 1 1 2 R R 0 0 5 5 4 4 R R 1 S T C _ B S U R S D _ B S U 2 R R 0 0 8 8 4 4 R R 1 N E R W P _ B S U 2 R R 0 0 9 9 4 4 R R 1 I O _ C C V 3 V 3 _ C C V 1 2 4 4 4 4 R R K K 0 0 1 1 1 2 2 2 4 4 R R K K 0 0 1 1 S T C _ e u d o M l l X R _ e u d o M R S D
2 _ O P I I R
3 _ O P I 2 4 6 8 0 1 2 1 1 1 P P J J 2 2 X X 6 6 r r e e d d a a e e H H F F N N 1 3 5 7 9 1 1 D C D
1 _ O P I R T D
5 _ O P I S T R _ e u d o M l _ T E S E R l X T _ e u d o M C P _ I S O M _ P S C P _ O S I M _ P S I I 3 V 3 _ C C V 1 2 3 3 5 5 R R K K 0 0 1 1 642 2 2 P P J J 135 F F N N 2 2 5 5 R R K K 0 0 1 1 1 2 3 V 3 _ C C V K K 0 0 1 1 6 6 5 5 R R 2 1 7 7 5 5 R R K K 0 0 1 1 2 1 O S I M _ P S I 2 8 8 5 5 R R K K 0 0 1 1 1 K K 0 0 1 1 1 1 6 6 R R S C _ P S I K L C _ P S I I S O M _ P S I 2 1 K K 0 0 1 1 3 3 6 6 R R 0 2 9 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 O 4 I 1 O 5 I 2 O 6 I 3 O 7 I C C V _ 2 E O _ 1 E O 4 O 1 I 5 O 6 O 2 I 7 O 3 I 0 I D N G 1 2 3 4 5 6 7 8 9 0 1 C P _ S C _ P S I C P _ O S I M _ P S I C P _ K L C _ P S I C P _ I S O M _ P S I K K 0 0 1 1 0 0 6 6 R R K K 0 0 1 1 9 9 5 5 R R 2 2 1 1 5 5 6 6 R R K K 0 0 1 1 4 4 6 6 R R K K 0 0 1 1 1 1 2 2 6 6 R R K K 0 0 1 1 2 2 1 2 I O _ C C V 3 V 3 _ C C V I O _ C C V D N G A D N G A SPKR_B_P SPKR_B_N SPKR_A_P SPKR_A_N PIO_0/BT_ACTIVE PIO_1/DCD PIO_3/RI PIO_2/DSR SPI_CLK 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 1 9 9 6 6 R R 2 R R 0 0 SPI_MOSI SPI_MISO SPI_CS 0 T X E D E L 2 2 2 D D 1 1 1 J J 0 0 0 0 Q Q
0 0 0 0 1 1 A A
C C M M S S H H R R 0 0 3 3 1 1 1 1 7 7 R R 2 1 1 T X E D E L 2 1 1 D D 1 1 1 J J 0 0 0 0 Q Q
0 0 0 0 1 1 A A
C C M M S S H H R R 0 0 3 3 1 1 0 0 7 7 R R 2 1
D _ D O M _ B S U N N O C _ D D V R T D
5 _ O P I R S D
2 _ O P I I R
3 _ O P I D C D
1 _ O P I K L C _ M C P I N _ M C P C N Y S _ M C P T U O _ M C P 0 0 0 0 1 1 R R 5 5 K K 1 1 1 2 3 V 3 _ C C V
D _ D O M _ B S U D C D _ B S U X R _ B S U I I R
3 _ O P _ B S U 2 R R 0 0 6 6 6 6 R R 1 2 R R 70 70 6 6 R R 1 2 R R 80 80 6 6 R R 1 l X T _ e u d o M I R
3 _ O P I D C D
1 _ O P I B I S A B _ C M I N _ B _ R K P S N _ A _ R K P S P _ B _ C M I P _ A _ C M I 2 4 6 8 0 1 4 4 P P J J F F N N 1 3 5 7 9 D N G A D N G A N _ B _ C M I N _ A _ C M I P _ B _ R K P S P _ A _ R K P S 2 1 642 4 4 4 4 2 2 X X C C L L 4 4 7 7 3 3 P P J J 135 F F N N 5 5 J J 0 1234567891 1 1 X X 0 0 1 1 R R E E D D A A E E H H 3 3 3 f f f o o o 2 2 2 t t t e e e e e e h h h S S S 8 8 8 0 0 0 0 0 0 2 2 2
, 1 1 1 3 3 3 r r r e e e b b b o o o t t t c c c O O O
, y y y a a a d d d i i i r r r F F F 1 s s s m m m m m m o o o C C C
d d d r r r a a a o o o B B B v v v e e e D D D i i i n n n M M M i i i 4 4 4 0 0 0
1 1 1 0 0 0 0 0 0
R R R
D D D M M M V V V T T T B B B r r r e e e b b b m m m u u u N N N t t t n n n e e e m m m u u u c c c o o o D D D e e e l l l t t t i i i T T T C C C e e e z z z i i i S S S
e e e t t t a a a D D D 2 3 4 5 S T R _ e u d o M l R T D
5 _ O P I 3 V 3 _ C C V 1 8 8 1 1 C C 2 n n 0 0 0 0 1 1 D C 45 www.lairdtech.com C P _ K L C _ P S I C P _ S C _ P S I A Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS D C B A t t r r e e V V _ _ A A M M S S 2 3 4 5 6 6 J J 1 1 2 1 1 1 1 R 1R 1 K K 9 9 F F N N 1 1 K K 9 9 2 2 9 9 R R F F N N 1 1 K K 9 9 1 1 9 9 R R F F N N k c a r T m h o _ 0 5 2 0 0 9 9 R R R R 0 0 1 1 1 k c a r T m h o 0 5 T N A 2 2 4 4 M M l l e e o o H H g g n n i i t t n n u u o o M M 3 3 M M 2 2 M M 1 1 M M l l e e o o H H g g n n i i t t n n u u o o M M l l e e o o H H g g n n i i t t n n u u o o M M l l e e o o H H g g n n i i t t n n u u o o M M 2 2 D D I I F F 1 1 D D I I F F l l a a i i c c u u d d i i F F l l a a i i c c u u d d i i F F N E R W P _ B S U P E E L S _ B S U K K 0 0 1 1 6 6 8 8 R R 2 1 I O _ 3 V 3 _ D D V
B S U
B S U 3 3 1 1 P P T T 4 4 1 1 P P T T 5 5 1 1 P P T T 1 2 3 4 I I T T N N O O P P _ _ T T S S E E T T _ _ H H T T 1 1 1 1 P P T T I I T T N N O O P P _ _ T T S S E E T T _ _ H H T T 2 2 1 1 P P T T 1 1 3 V 3 _ C C V 1 2 7 7 2 2 nC n C 0 0 0 0 1 1 _ T E S E R 1 1 J J 1 1 O O H H
0 0 0 0 1 1 A A
G G M M S S 5 H 5 H D D R R 0 0 1 1 1 1 3 3 7 7 R R 1 2 2 1 3 V 3 _ C C V 3 V 3 _ C C V 1 3 3 2 2 C C 2 n n 0 0 0 0 1 1 1 2 2 2 2 2 C C 2 2 u u 2 2 2 2 7 7 R R 1 1 K K 9 9 6 6 7 7 R R 3 3 K K 1 1 1 2 1 2 1 5 5 2 2 C C 2 N N 0 0 1 1 8 7 6 5 F F M M
E E J J D D A A
6 6 2 2 7 7 1 1 P P C C M M 9 6 6 U U t u o V J D A GND l y a e d C D G R W P 1 _ n V i 2 _ n V i N D H S
D N G 1 2 3 4 5 4 C C V 7 7 U U 1 C N T U O N I D N G 7 7 1 1 V V S S 7 7 C C N N 1 2 3 1 9 9 2 2 C C 2 n n 0 0 0 0 1 1 K K 0 0 1 1 9 9 7 7 R R 2 K K 1 1 0 0 8 8 R R 1 1 3 V 3 _ C C V 2 3 4 0 0 0 0 0 0 1 1
S S F F B B 6 6 W W S S 1 2 2 K K 0 0 1 1 1 5 5 7 7 R R 5 5 0 0 8 8 0 0 R R 1 1
. 0 0 8 8 P P T T 7 7 P P T T 4 4 7 7 R R 1 2 1 1 2 h h c c t t i i w w s s n n o o i i t t i i s s o o p p 3 3 5 5 W W S S 1 3 F F F F O O 1 2 6 6 2 2 C C 2 2 u u 2 2 N E R W P _ B S U 1 2 4 4 2 2 nC n C 0 0 0 0 1 1 6 4 1 5 23 0 0 1 1 8 8 5 5 F F R R I I 1 1 Q Q 7 7 7 7 R KR K 1 1 2 1 2 8 8 7 7 R R K K 0 0 1 1 1 1 8 8 2 2 C C 2 F F N N B S U _ D D V 3 V 3 _ C C V
D _ D O M _ B S U 2
B S U
B S U R R 0 0 F F N N 3 3 9 9 R R 2 2 1 R R 0 0 R R 0 0 1 1 1 8 8 R R 1 2 2 8 8 R R
D
D C C 4 4 5 5 T T A A 6 B 6 B D D 2 3
D _ D O M _ B S U 2 R R 0 0 F F N N 1 4 4 9 9 R R B B B B S S U U 6 C NC_3 NC_2 NC_1 VCCIO VCC 29 25 23 1 19 8 8 U U 3 3 8 8 R R K K 7 7
. 4 4 1 2 I O _ 3 V 3 _ D D V 1 N N O C _ D D V 1 2 1 1 3 3 nC n C 0 0 0 0 1 1 1 2 0 0 3 3 C C n n 1 1 m m m m 1 1
. 2 2 _ _ k k c c a a j j r r e e w w o o P P C C D D 1 1 N N C C 1 2 3 R R 2 2 3 3 2 2 T T F F 33 12 5 13 24 20 17 4 THPAD NC_4 NC_5 NC_6 AGND GND GND GND 7 7 8 8 R R K K 0 0 1 1 1 2 2 2 1 2 0 1 1 1 9 5 1 4 1 6 1 0 S U B C 1 S U B C 2 S U B C 3 S U B C 4 S U B C M D B S U P D B S U
S T C
S T R D X T D X R
R S D
D C D
R T D I
R
T E S E R I C S O O C S O T U O 3 V 3 T S E T 8 2 3 0 3 2 X T _ B S U X R _ B S U S T C _ B S U S T R _ B S U 3 6 7 1 3 8 1 7 2 8 2 6 2 2 F F
N N 1 5 5 8 8 R R R S D _ B S U I I R
3 _ O P _ B S U D C D _ B S U R T D _ B S U B S U _ D D V 1 2 7 7 K K 8 4 8 4 8 8 R R 2 1 4 4 8 8 R R K K 0 0 1 1 I D T F _ T E S E R B 5 3 3 D D 2 1 A A 1 1 S S _ _ e e d d o o D D i i N N O C _ D D V 46 www.lairdtech.com 5 5 L L 2 1 D D 1 1 N N S S 1 1 2 2 2 2 G G P P 8 8 1 1 M M L L B B 5 5 P P J J 5 B S U _ D D V D
1 2 3 4
D
D c c V 5 D N G 6 A Laird Technologies s s s e e e i i i l l l p p p p p p u u u S S S _ _ _ r r r e e e w w w o o o P P P _ _ _ v v v e e e D D D _ _ _ n n n M M M i i i i i i 4 4 4 0 0 0 v v v e e e R R R 4 4 4 0 0 0
1 1 1 0 0 0 0 0 0
R R R
D D D M M M V V V T T T B B B r r r e e e b b b m m m u u u N N N t t t n n n e e e m m m u u u c c c o o o D D D 3 3 3 f f f o o o 3 3 3 t t t e e e e e e h h h S S S 8 8 8 0 0 0 0 0 0 2 2 2
, 1 1 1 3 3 3 r r r e e e b b b o o o t t t c c c O O O
, y y y a a a d d d i i i r r r F F F 1 e e e l l l t t t i i i T T T C C C e e e z z z i i i S S S
e e e t t t a a a D D D 2 3 4 5 BTM520/521 Bluetooth Multimedia Plus Module ORDERING INFORMATION ORDERING INFORMATION BTM520 BTM521 DVK-BTM520 DVK-BTM521 Bluetooth Multimedia Plus Module (external antenna) Bluetooth Multimedia Plus Module with integrated antenna Development Board with BTM520 soldered in place Development Board with BTM521 soldered in place GENERAL COMMENTS This is a preliminary user manual. Please check with Laird Technologies for the latest information before commencing a design. If in doubt, ask. Refer to the schematic BTV-R-003.pdf for the Development Kit for examples of typical pin connections. A pdf of the schematic can be downloaded from the product web page. global solutions: local support TM USA: +1.800.492.2320 Europe: +44.1628.858.940 Asia: +852.2268.6567 wirelessinfo@lairdtech.com www.lairdtech.com/wireless 47 Laird Technologies is the world leader in the design and manufacture of customized, performance-critical products for wireless and other advanced electronics applications. Laird Technologies partners with its customers to find solutions for applications in various industries such as:
Network Equipment Telecommunications Data Communications Automotive Electronics Computers Aerospace Military Medical Equipment Consumer Electronics Laird Technologies offers its customers unique product solutions, dedication to research and development, as well as a seamless network of manufacturing and customer support facilities across the globe. LWS-UM-BTM520-521 0509 Copyright 2009 Laid Technologies, Inc. All rights reserved. The information contained in this manual and the accompanying software programs are copyrighted and all rights are reserved by Laird Technologies, Inc. Laird Technologies, Inc. reserves the right to make periodic modifications of this product without obligation to notify any person or entity of such revision. Copying, duplicating, selling, or otherwise distributing any part of this product or accompanying documentation/software without the prior consent of an authorized representative of Laird Technologies,Inc. is strictly prohibited. All brands and product names in this publication are registered trademarks or trademarks of their respective holders. This material is preliminary Information furnished by Laird Technologies in this specification is believed to be accurate. Devices sold by Laird Technologies are covered by the warranty and patent indemnification provisions appearing in its Terms of Sale only. Laird Technologies makes no warranty, express, statutory, and implied or by description, regarding the information set forth herein. Laird Technologies reserves the right to change specifications at any time and without notice. Laird Technologies products are intended for use in normal commercial and industrial applications. Applications requiring unusual environmental requirements such as military, medical life-
support or life-sustaining equipment are specifically not recommended without additional testing for such application. Limited Warranty, Disclaimer, Limitation of Liability For a period of one (1) year from the date of purchase by the OEM customer, Laird Technologies warrants the OEM transceiver against defects in materials and workmanship. Laird Technologies will not honor this warranty (and this warranty will be automatically void) if there has been any (1) tampering, signs of tampering; 2) repair or attempt to repair by anyone other than an Laird Technologies authorized technician. This warranty does not cover and Laird Technologies will not be liable for, any damage or failure caused by misuse, abuse, acts of God, accidents, electrical irregularity, or other causes beyond Laird Technologies control, or claim by other than the original purchaser. In no event shall Laird Technologies be responsible or liable for any damages arising: From the use of product; From the loss of use, revenue or profit of the product; or As a result of any event, circumstance, action, or abuse beyond the control of Laird Technologies, whether such damages be direct, indirect, consequential, special or otherwise and whether such damages are incurred by the person to whom this warranty extends or third party. If, after inspection, Laird Technologies determines that there is a defect, Laird Technologies will repair or replace the OEM transceiver at their discretion. If the product is replaced, it may be a new or refurbished product. 48
1 2 | Manual FCC statement | Users Manual | 14.85 KiB |
1.1.1 FCC and Industry Canada Statements The user manual must show the following statements:
This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment. To comply with the FCC RF exposure compliance requirements, this device and its antenna must not be co-located or operating to conjunction with any other antenna or transmitter. Considerations for OEM integration:
To inherit the modular approval, the antennas for this transmitter must be installed to provide a separation distance of at least 20 cm from all persons and must not be co-
located or operating in conjunction with any other antenna or transmitter. Co-location with other radio transmitting devices operating concurrently in the same band will require additional testing and certification. Designers should note the distinction that the FCC makes regarding portable and mobile devices. Mobile devices are defined as products that are not used closer than 20cm to the human body, whereas portable devices can be used closer that 20cm to the body. In the case where the BTM521 module is used in a portable device, additional SAR testing must be performed on the complete product. FCC Labelling requirement 1.1.1.1 If the FCC ID is not visible when the module is installed inside another device, then the outside of the device into which the module is installed must also display a label referring to the enclosed module. This exterior label can use wording such as the following:
Contains Transmitter Module FCC ID: PI4520B or Contains FCC ID: PI4520B. Any similar wording that expresses the same meaning may be used.
1 2 | User Manual | Users Manual | 2.52 MiB |
BTM520/521 DATA MODULE USER MANUAL w w w
. l a i r d t e c h
. c o m Innovative Technology for a Connected World BTM520/521 Bluetooth Multimedia Plus Module TABLE OF CONTENTS CONTENTS BTM520/521 Bluetooth Module ..3 Overview .............................................. 3 BTM520/521 Key Features ................... 3 Specifications ................................5 Detailed Specifications ......................... 5 Pin Out ................................................. 6 Operating Parameters ...................9 Voltage Specifications .......................... 9 Notes ................................................. 10 Configuring the BTM520/521 ......11 References ......................................... 11 Glossary of Terms ............................... 12 AT Command Set .............................. 13 Assumptions ...................................... 13 Commands ........................................ 13 General AT Commands ..................... 13 General Bluetooth Control ............... 24 Hardware Unit Control ....................... 30 Bluetooth Profiles ............................. 32 Secure Simple Pairing ......................... 39 Link Key Management ....................... 39 Miscellaneous...................................... 40 Appendix ........................................... 41 BT-MM+ Unsolicited Messages .......... 41 BT-MM+ Error Responses ................... 41 Mechanical Drawings ..................43 Mechanical Details ............................. 43 Recommended PCB Footprint ............ 43 Diagrams ............................................ 44 Ordering Information ..................47 Product Part Numbers ........................ 47 General Comments ............................ 47 2 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module OVERVIEW AND KEY FEATURES 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 flexibility, along with fast time to market. The modules include everything needed for a fully qualified 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 Radios Road Tunes and Blue Tunes development environments. They support the latest Bluetooth Version 2.1+EDR Specification, 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 field 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 filtration 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 profiles, all of which have been qualified, so that no further Bluetooth qualification is required. For users with more complex applications, additional profiles will be available for file transfer, object exchange, dial up networking, messaging and phone book control. Future support also includes the Health Device Profile, making this the ideal module for development of Continua compliant medical devices. Because these modules are pre-qualified, 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 significant product enhancements. These include features such as echo cancellation, noise reduction and audio enhancement using additional soft codecs. 16MB of flash 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 simplifies 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 developers kit, this ensures that the choice of Laird Technologies Bluetooth modules guarantees the fastest route to market. 3 www.lairdtech.com Laird Technologies 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 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 profile 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 profiles Future support for OBEX, DUN, FTP, HDP profiles for additional functionality 16 bit stereo codec and microphone input Integrated audio amplifiers for driving 16 speakers Comprehensive AT interface for simple programming Bluetooth END Product Qualified Compact Size Class 1 output 8dBm (typical) Low power operation Wi-Fi Coexistence Hardware Support 4 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS CATEGORIES Wireless Specification FEATURE Standards Supported IMPLEMENTATION Bluetooth v2.1 + EDR Transmit Class Class 1 Frequency Channels Max Transmit Power Min Transmit Power Receive Sensitivity Data Transfer rate Range 2.402 2.480 GHz 79 channels Frequency Hopping Adaptive Frequency Hopping
+8 dBm (typical) @ antenna pad BTM520
+10 dBmi (typical) from integrated antenna BTM521 (provisional)
-27 dBm @ antenna pad BTM520
-27 dBmi from integrated antenna BTM521 (provisional) Better than -86 dBm Up to 300kbps
> 300 metres free space (Data) Antenna Modes External Antenna 50 Ohm U.FL BTM520 Integrated Antenna
+2dB multilayer ceramic BTM521 UART Interface Serial Interface Baud Rate Bits Parity Stop bits RS-232 bi-directional for commands and data 16550 compatible Configurable from 1,200 to 921,600bps Non-standard baud rates supported 8 Odd, even, none 1 or 2 Default Serial parameters 9600,n,8,1 Levels Modem Control 1.7 - 3.6V CMOS (independent of Vcc) RTS, CTS DTR, DSR, DCD, RI General Purpose Interface I/O 16 general purpose I/O pins ADC I2S PCM SPDIF LED Codec Amplifiers Microphone 2 x ADC Stereo Audio Digital Interface Bus Shared with I2S Shared with I2S Two dedicated Integrated stereo codec with -95dB SNR for DAC Direct drive for 16 speakers On board filters Input with bias for low noise microphone On board filters Audio Protocols & Firmware Bluetooth Stack V2.1 compliant. Fully integrated. Sample Rates (DAC & ADC) 8, 11.025, 16, 22.05, 32 & 44.1kHz Profiles GAP (Generic Access Profile) SDP (Service Discovery Profile) SPP (Serial Port Profile) HSP HFP Audio Gateway and Handsfree A2DP Source and Sink AVRCP Target and Controller SCO/eSCO FTP Client (future release) DI (future release) GOEP (future release) PBAP (future release) MAP (future release) HDP (future release) Protocols Firmware Upgrade RFCOMM AVCTP AVDTP OBEX (future release) MCAP (future release) Available over UART Laird Technologies 5 www.lairdtech.com BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS CATEGORIES Command Interface FEATURE AT Instruction set IMPLEMENTATION 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 Additional Support All I/O available for CSR Road Tunes and Blue Tunes applications DSP Kalimba DSP Integrated in BC05 32bit, 64MIPS, 16Mbps Flash Memory
(shared) Applications Available from partners Current Consumption Data Transfer Typically < 70mA (including speaker drive) Supply Voltage Low Power Sniff Mode Less than 1.5mA Supply I/O 3.0V 4.2V DC 1.7V 3.6V DC Coexistence / Compatibility WLAN (802.11) Connections External Antenna (option) Physical Interface Dimensions Weight 2, 3 and 5-wire hardware coexistence schemes supported Pad for 50 Ohm antenna BTM520 Surface Mount Pads 20.0mm x 36.0mm x 4.9mm 3 grams Environmental Operating Temperature
-30C to +70C Storage Temperature
-40C to +85C Approvals Miscellaneous Bluetooth FCC CE & R&TTE Lead free Warranty Qualified as an END product Meets FCC requirements Modular Approval (Integrated Antenna option BTM521) Meets CE and R&TTE requirements Lead-free and RoHS compliant 12 Months Development Tools Development Kit Development board and software tools Modem control pins and GPIO are shared 6 www.lairdtech.com Laird Technologies VOLTAGE SPECIFICATION VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS Open Drain Open Drain VIO VIO BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS PIN OUT PIN SIGNAL DESCRIPTION PCM Data I/P PCM Data O/P PCM Sync I/P PCM CLK I/P SPI bus serial I/P SPI bus chip select I/P SPI bus serial O/P SPI bus clock I/P Host I/O Host I/O VPADS supply VIO supply Main supply Speaker, channel B+ (right) Note 3 Speaker, channel B- (right) Note 3 Speaker, channel A+ (left) Note 3 Speaker, channel A- (left) Note 3 Microphone bias Note 4 Microphone, channel A+ (left) Note 4 Microphone, channel A- (left) Note 4 Microphone, channel B- (right) Note 4 Microphone, channel B+ (right) Note 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 PCM_IN PCM_OUT PCM_SYNC PCM_CLK GND SPI_MOSI SPI_CSB SPI_MISO SPI_CLK LED_EXT1 LED_EXT0 PIO0 / RX_ENABLE PIO1 / TX_ENABLE GND VDD_PADS VDD_PIO VDD_IN GND AUDIO_GND SPKR_B_P SPKR_B_N SPKR_A_P SPKR_A_N MIC_BIAS MIC_BN_C MIC_BP_C MIC_AP_C MIC_AN_C Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused 7 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module SPECIFICATIONS PIN OUT (continued) PIN SIGNAL DESCRIPTION VOLTAGE SPECIFICATION 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 Unused Unused Unused PIO3 / USB_VSENSE PIO14 / CSB AUX_DAC PIO4 PIO5 / BT_STATE / BT_PROR-
ITY PIO7 / RF_ACTIVE PIO15 PIO12 / SCL GND AIO1 PIO10 / DSR PIO11 / DTR AIO0 PIO9 / DCD PIO13 / SDA PIO8 / RI PIO6 / WLAN_ACTIVE GND USB_D-
USB_D+
PIO2 / USB_PULL_UP VDD_USB VREGENABLE_H GND UART_RTS UART_CTS UART_TX UART_RX Reset Host I/O Host I/O Host I/O / BT Co-existence Host I/O / BT Co-existence Host I/O Host I/O ADC Input, 10 bit 0-1.5V input range Host I/O Host I/O ADC Input, 10 bit 0-1.5V input range Host I/O Host I/O Host I/O Host I/O / BT Co-existence VUSB supply Main regulator enable pull high for correct operation Request to Send O/P Clear to Send I/P Transmit data O/P Receive data I/P Module reset I/P (active low) Note 1 VIO VPADS VIO VIO VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS VPADS VUSB VUSB VIO VUSB VUSB VUSB VUSB VPADS 8 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module OPERATING PARAMETERS OPERATING PARAMETERS RECOMMENDED OPERATING CONDITIONS Operating Condition VDD_USB
(USB compatibility not required) VDD_USB
(USB compatibility required) VDD_IO VDD_PADS VDD_IN VOLTAGE SPECIFICATIONS Min 1.7 3.1 1.7 1.7 3.0 Max 3.6 3.6 3.6 3.6 3.3 LOGIC LEVELS (VUSB) Input Voltage Levels Vih Vil Output Voltage Levels Voh (Iout = -4mA) Vol (Iout = 4mA) LOGIC LEVELS (VIO) Input Voltage Levels Vih Vil Output Voltage Levels Voh (Iout = -4mA) Vol (Iout = 4mA) LOGIC LEVELS (VPADS) Input Voltage Levels Vih Vil Output Voltage Levels Voh (Iout = -4mA) Vol (Iout = 4mA) Min Typ Max 0.625VDD_USB
-0.3 0.75VDD_USB 0 Min Typ 0.625VDD_IO
-0.3 0.75VDD_IO 0 VDD_USB+0.3 0.25VDD_USB VDD_USB 0.125 Max VDD_IO+0.3 0.25VDD_IO VDD_IO 0.125 Min Typ Max 0.625VDD_PADS
-0.3 0.75VDD_PADS 0 VDD_PADS+0.3 0.25VDD_PADS VDD_PADS 0.125 LOGIC LEVELS (VUSB USB TERMINALS D+, D-) Min Input Voltage Levels Vih Vil Output Voltage Levels (to correctly terminated USB cable) Voh Vol 0.7VDD_USB 2.8 0 Typ Max 0.3VDD_USB VDD_USB 0.2 9 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module OPERATING PARAMETERS VDD R Module External Circuit 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 flowing through the diode is:
Iled =
VDD - VF 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 amplifier the first stage provides a fixed 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 first 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:
MIC_BIAS MIC_AP MIC_AN 15nH 15pF 15nH 15pF External Circuit Module 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 1A and 10A 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 configuration as follows:
AC AC Single ended Double ended 10 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 INTRODUCTION This document describes the protocol used to control and configure the BT-MM+ Bluetooth device. The AT commands described in the document apply to firmware 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 configured 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 UNCONNECTED RF CONNECTED Local Command Mode Remote Command Mode Data Mode OK ILLEGAL ILLEGAL OK OK 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 Specification Rev.V12, 16/04/2007
[4] Advanced Audio Distribution Profile Specification Rev. V12, 16/04/2007
[5] Audio/Video Remote Control Profile 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 Specification Version 2.1 + EDR [vol3], 26 July 2007 11 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Glossary of Terms DESCRIPTION Advanced Audio Distribution Profile Analogue to Digital Converter Audio Gateway Hands-Free Profile Command prefix, Attention Audio/Video Remote Control Profile Bluetooth Intelligent Serial Module Device capable of encoding / decoding an analogue / digital signal Digital to Analogue Converter Digital Signal Processor Dial-Up Network Profile File Transfer Profile Generic Object Access Exchange Profile General Purpose Input Output Hands Free Profile Human Interface Device Profile Input/Output
: Microphone
Object Push Profile Phone Book Access Profile Pulse Width Modulation S-Register No. xxx
Sub Band Codec
Serial Port Profile To Be Determined Universal Asynchronous Receiver / Transmitter PASS THROUGH Command UNIT INFO Command SUBUNIT INFO Command A2DP ADC AGHFP AT AVRCP BISM Codec DAC DSP DUN FTP GOEP GPIO HFP HID I/O (IO) Mic OPP PBAP PWM Sxxx SBC SPP TBD UART PT UI SUI 12 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 AT Command Set Assumptions 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 3. All Bluetooth addresses are represented by a fixed 12 digit hexadecimal string, case insensitive. 4. All Bluetooth Device Class codes are represented by a fixed 6 digit hexadecimal string, case insensitive. respectively and shall be represented by the string <cr,lf>. 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. N M
<string>
<uuid>
A positive integer value. An 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 A string delimited by double quotes. E.g. Hello World. The character MUST be supplied as delimiters. 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 Response: <cr,lf>CONNECT 123456789012<cr,lf>
the connecting device. that only profiles based on RFCOMM can be accessed. 3. ATD<bd_addr>,<uuid> {Make Outgoing Connection}
Make a connection to device with Bluetooth address <bd_addr> and SPP profile <uuid>. The <uuid> is an optional parameter which specifies the UUID of the profile 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 specification, it necessarily implies The timeout is specified by S register 505. Response: <cr,lf>CONNECT 123456789012<cr,lf>
Or 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, Response: <cr,lf>CALL LIMIT Or are possible. In that case, issuing an ATZ to reset the device will reset the count to 0 and more connections then the connection attempt will fail with the following response:-
<cr,lf>NO CARRIER<cr,lf>
<cr,lf>NO CARRIER<cr,lf>
13 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 The following RFCOMM based UUIDs are defined in the Bluetooth Specification:-
PROFILE NAME Serial Port LAN Access Using PPP Dialup Networking IrMC Sync OBEX Object Push OBEX File Transfer IrMC Sync Command Headset Cordless Telephony Intercom Fax Audio Gateway WAP WAP_CLIENT UUID 0x1101 0x1102 0x1103 0x1104 0x1105 0x1106 0x1107 0x1108 0x1109 0x1110 0x1111 0x1112 0x1113 0x1114 4. ATDL {Remake Connection}
Make a connection with the same device and service as that specified in the most recent ATD command. An error will be returned if the L modifier is specified AND a Bluetooth address. Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or If both L and R modifiers are specified then an error will be returned.
<cr,lf>NO CARRIER<cr,lf>
5. ATDR {Make Connection to peer specified in AT+BTR}
Make a SPP connection with the device address specified in the most recent AT+BTR command. The service is as specified in S Register 101. An error will be returned if the R modifier is specified AND a Bluetooth address. Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or If both R and L modifiers are specified then an error will be returned.
<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. E0 E1 Disable echo. Enable 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>
14 www.lairdtech.com 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 specified 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 REGISTER DEFAULT S0 1 RANGE
-1..15 S2 0x5E 0x20..0x7E S12 S100 S101 S102 S103 S126 S127 S300 S301 100 15 40..5000 0..15
$1101 0..$ffff 1 1
1 1 1..0x7FF 1..7 0 .. 0xFFFF 0 .. 0xFFFF 0..2 0..2 COMMENT Number of RING indication before automatically answering an incoming 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 ^. Escape sequence guard time in milliseconds, with a granularity of 20ms. New values are rounded down to the nearest 20ms multiple Number of RING indications before an auto disconnection is initiated. A value 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. UUID of default SPP based profile when not specified explicitly in the ATD command. Defines a set of bits masks for enabling profile servers. Values can be ORed. 0x001 is Serial Port Profile 0x080 is A2DP 0x100 is AVRCP Boot Mode on cold boot. Primer for changing to Multipoint mode 0x100 for At mode 0x200 for Multipoint mode Other values are reserved Set A2DP role:
0 is feature not set 1 is A2DP Sink (default) 2 is A2DP Source Set AVRCP role:
0 is feature disabled 1 is Control (CT) (default) 2 is Target (TG) 15 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S302 0 RANGE 0..4 COMMENT Set AVRCP category:
0 is Feature disabled (default) 1 is Player/Recorder 2 is Monitor/Amplifier 3 is Tuner 4 is Menu 0..0xFFFFFF Set Company ID:
IEEE Company ID, 24bit hexadecimal, Required for UNIT INFO Response in AVRCP target mode, default value is 0. S303 S305 S306 S310 S311 S312 S313 S320 S321 S322 S323 0 1 1 1 0..1 0..1 0..1 1 w 9 r 0..7 (Write) 1 1 2 1 0 0 0..15 0..15 1..3 0..4 0..1 0..1 Accept UNIT INFO request:
0 reject 1 accept Accept SUBUNIT INFO request:
0 reject 1 accept Configure PASS THROUGH (PT) Response:
1 = Enable automatic PT-response, response type is read from S311, (default) 0 = Host is required to respond to PT-Indication, see AT+AVR Set automatic PT response:
This value is queried for automatic PT-Response, see Table 3-10. The written value is mapped internal, that is why the Read-value is different from the written value. The Read-value is actually sent out as response A2DP sink supported features (Bitmask) :
Bit 0 = Headphone (default) Bit 1 = Speaker Bit 2 = Recorder Bit 3 = Amplifier A2DP source supported features (Bitmask) :
Bit 0 = Player (default) Bit 1 = Microphone Bit 2 = Tuner Bit 3 = Mixer Security Level: see [12], Generic Access Profile - Table 5.7 needs subsequent AT&W and power cycle to take effect Set IO capability:
0 display only 1 display yes no 2 keyboard only 3 no input no output 4 reject IO-cap requests Force man-in-the-middle-protection (MITM):
0 disabled 1 enabled Disable legacy (pre-BT2.1) Pairing:
0 legacy pairing enabled 1 legacy pairing disabled S324 90 1..255 Secure Simple Pairing timeout in s This value must be at least 90 in order to meet the recommendation of BT2.1 specification 16 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S325 1 RANGE 0..1 S326 S327 S328 S329 S330 S415 S416 S417 S418 S419 1 1 1 0 1 0 0 0 0 6 0..1 0..1 0..1 0..1 1..15 0..1 0..1 0..15 0..15 0..6 S504 0 0..1 S505 10 2..120 S506 S507 1 0 0..1 0..2 COMMENT Store link key automatically on dedicated bonding outgoing (DBO), identical with S538 Store link key automatically on general bonding outgoing (GBO) Store link key automatically on dedicated bonding incoming (DBI) Store link key automatically on general bonding incoming (GBI) Enable legacy (BISM2) response format Configure inquiry response of AT+BTI (Bitmask):
1 show device address 2 show class of device 4 show friendly name 8 show extended inquiry data Values can be ORed Enable Microphone Input Gain, adds extra 24dB to input gain Enable MicBias Set MicBiasCurrent Set MicBiasVoltage Set sampling rate for Audio Loopback Mode 0 = 8 kHz 1 = 11.025 kHz 2 = 16 kHz 3 = 22.050 kHz 4 = 24 kHz 5 = 32 kHz 6 = 44.1 kHz Setting to 1 will force S0 to -1 and will suppress messages arising from connections or pairing. E.g. CONNECT, NO CARRIER, RING, PAIR etc. Suppressing connection based messaged allows the device to be configured in cable replacement mode. Minimum delay before abandoning connection attempt as a master. Referenced by ATD. In units of seconds. See S Registers 530 and 543 also. Please note that as disconnection time can vary, this register only guarantees the minimum delay. Note that for invalid addresses specified in the ATD command, the NO CARRIER response will be immediate. See S register 560 for specifying disconnect max timeout. Enable/Disable echoes. The ATEn command also affects this. When set to 0, a connection can be dropped using ^^^ escape sequence only and the state of DSR line is ignored. When set to 1 a connection can be dropped using EITHER the ^^^ escape sequence OR the DSR handshaking line. When set to 2, a connection can only dropped using a deassertion of DSR. Mode 2 provides for the highest data transfer rate. If the status of the DSR line is to be conveyed to the remote device as a low bandwidth signal then this register MUST be set to 0, otherwise a deassertion of DSR will be seen as a request to drop the Bluetooth connection. This register affects S Register 536 see details of 536 17 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S512 1 RANGE 0..7 COMMENT Specify power up state. When set to 0, AT+BTO is required to open the device for Bluetooth activity. When set to 1, it proceeds to a state as if AT+BTO was entered. When set to 2, it will be discoverable only, similar to issuing AT+BTQ. When set to 3, it will be connectable but not discoverable e.g. AT+BTG When set to 4, it will be connectable and discoverable e.g. AT+BTP. When set to 5, it will be like 2, but all UART RX traffic is discarded in absence of a connection while DSR is asserted. If DSR is not asserted, then it behaves exactly as per mode 2. When set to 6, it will be like 3, but all UART RX traffic is discarded in absence of a connection while DSR is asserted. If DSR is not asserted, then it behaves exactly as per mode 3. When set to 7, it will be like 4, but all UART RX traffic is discarded in absence of a connection while DSR is asserted. If DSR is not asserted, then it behaves exactly as per mode 4. Note that by implication, a change to this can only be seen after a power cycle AND if AT&W is actioned prior to the power cycle. If S Reg 554 is non-zero and this register is between 2 and 7 inclusive, then the value of S554 specifies the time in seconds that the device will remain in the specified mode after power up. On timeout, the device will fall back to the mode specified in S Register 555. In some firmware builds, S Registers 565 to 569 inclusive are visible, which allows the start-up mode to depend on the state of RI line (Setting S Reg 565 forces the RI pin to be configured as an input). For this feature to be active, SReg 565 should be set to 1. In that case, on start-up, if RI is asserted, then the start-up mode is defined by S Reg 566 and if deasserted then S Reg 567. 10 1..60 Pairing Timeout in seconds. This includes the time a host takes to supply the PIN number when PIN? messages are indicated. S514 S515 0x001F00 0.. 0xFFFFFF S516 0x000000 0..0x2FFFFFF S517 S518 20 8 2..61 0..255 S519 500 100..6000 S530 1000 100..15000 Default Device Class Code to be used with AT+BTO when it is not explicitly specified. When queried, the value is always printed as a hexadecimal number. To change the device class of the module, after AT+BTO, use the command AT+BTC. Default Device Class filter to be used with AT+BTI when it is not explicitly specified. When queried the value is always printed as a hex number. The seventh most significant digit, can be 0,1 or 2, and is used to specify the type of device class filter. When 0, it specifies no filtering. When 1, it specifies an AND mask and all 24 bits are relevant When 2, it specifies a filter to look for devices with matching major device class which occupies a 5 bit field from bits 8 to 12 inclusive (assuming numbering starts at bit 0). All other 19 bits MUST be set to 0. Inquiry Length in units of seconds. This parameter is referenced by the AT+BTI command. Maximum number of responses from an inquiry request. This parameter is reference by the AT+BTI command. If this number is set too high, then AT+BTI will return ERROR 27. For a particular firmware revision, determine the effective maximum value by trial and error. That is, set to a high value, send AT+BTI and if ERROR 27 is returned, then retry with a smaller value. This effective max value will remain unchanged for that particular firmware build. When S507>0, and in a connection, DSR can be used to change from data to command state by deasserting the DSR line for less than the time specified in this register. This value is rounded down to the nearest 100ms Reconnect delay when configured as master in pure-cable-replacement mode. This value is rounded down to the nearest 100ms. See S Register 505 and 543 also. 18 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S531 0 RANGE 0..5 S532 S533 S534 S535 S536 S538 S539 S541 S542 S543 0 1 1 20 0 0 0 6 6 0 0..7 0..2 0..2 0..41 0..1 0..1 0..1
-50..6
-50..6 0..1 COMMENT Specifies the mode on connection establishment. 0 = Normal, that data is exchanged between UART and RF 1 = LOCAL_COMMAND. UART input is parsed by the AT interpreter and RF data is discarded 2 = REMOTE_COMMAND. RF input is parsed by the AT interpreter and UART data is discarded. If S Reg 536 is not 1 then this register cannot be set to 2 and an ERROR will be returned 3 = LOCAL_COMMAND. UART input is parsed by the AT interpreter and incoming RF data is sent to the host using the RX<string>
asynchronous response. 4 = LOCAL_COMMAND and on the rf side, the gpio is automatically sent when there is a change in input. See section 9.5 for more details. 5 = DEAMON mode If non zero then on every connection, a SCO channel (audio) will be initiated. Bit 0 for HV1, Bit1 for HV2 and Bit2 for HV3. When the connection is lost, the SCO channel disappears along with it. If set to 1 then GPIO5 follows RI state, if set to 2 then it follows the state of DSR and if 0 it is not driven and GPIO5 is available as a user I/O. This register will not necessarily be effective immediately after changing the value. It must be saved to non-volatile memory using AT&W and will operate as expected after an ATZ or a power cycle. When set to 0, GPIO4 is available as user i/o If set to 1 then GPIO4 follows DCD state. If set to 2 then GPIO4 behaves as per setting 1, but in addition, when not in a connection, if the device is connectable or discoverable, then GPIO4 will blink. This register will not necessarily be effective immediately after changing the value. It must be saved to non-volatile store using AT&W and will operate as expected after an ATZ or a power cycle. Link Supervision Timeout. If units go out of range, then a NO CARRIER message will be sent to the host after the time specified here When set to 1, a remote device can capture the AT parser of this unit by it sending this module an escape !!! sequence. The inter character timing is set via S Register 12. If S Register 507 is >= 2, then reading this register will always return 0 and writing 1 will result in ERROR 33. If 1, then when a successful pairing occurs, it is automatically saved in the trusted device database if it has room to store it. When set to 1, in idle mode (S512=1), UART Rx characters are discarded if DSR is deasserted. This sets the power level in dBm when inquiring or paging. Reading this register returns the value stored in non-volatile memory. As per S541, however reading this register returns the current power level as set in the base band. The read can be different from S541because the actual power is set using a lookup table and the base band rounds down to the nearest value in the table. If this is set to 1, then incoming pairing attempts will be accepted (if a pin code has been pre-entered using AT+BTK) while in the wait phase of auto connect cycle initiated by the AT+BTR command. In addition to accepting pairing attempts, if the pairing is successful, then the new device is automatically set as the peer address for automatic connections
(as if an explicit AT+BTR command was entered). See S Register 505 and 530 also 19 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S551 0x3211 RANGE 0xFFFF S552 0x0122 0x0FFF S553 0x0201 0x0FFF COMMENT This register specifies in each 4 bit nibble, how the outgoing modem status bits to the remote peer gets its value. Bluetooth allows for RTR, RTC, DV and IC bits to be exchanged over an RFCOMM connection. Nibble 0..3 specifies the source for RTC 4..7 specifies the source for RTR 8..11 specifies the source for DV (i.e. DCD) 12..15 specifies the source for IC (i.e. RI) Each nibble can take the following value:-
0 Always set to 0 1 Always set to 1 2 If DCD (pin 8 on module connector) is output then always 1 If DCD is input then 1 if DCD is asserted otherwise 0 3 If RI (pin 6) is output then always 0 If RI is input then 1 if RI is asserted otherwise 0 4 If DSR (pin 10) is asserted then 1 otherwise 0 In the event that a nibble specifies DSR as the source of its state, be aware that if, S Register 507 is anything other than 0, a de-assertion of DSR will cause the Bluetooth connection to be dropped. If bits 0..3 and 4..7 are set to 0, then some Bluetooth devices will use that as a signal to stop sending any data back. For example, Nokia 6310 stops responding. If this register is changed while in command and connected mode, then on going back online using the ATO command, a fresh signal will be sent to the peer to update the bits. This register specifies in each 4 bit nibble, how the DTR, DCD, RI output pins are controlled when in a Bluetooth connection Nibble 0..3 specifies the source for DTR 4..7 specifies the source for DCD 8..11 specifies the source for RI Each nibble can take the following value:-
0 Do NOT touch the I/O 1 Always deassert 2 Always assert 3 If RTC bit in CONTROL_IND is 1 then assert otherwise deassert 4 If RTR bit in CONTROL_IND is 1 then assert otherwise deassert 5 If DV bit in CONTROL_IND is 1 then assert otherwise deassert 6 If IC bit in CONTROL_IND is 1 then assert otherwise deassert If this register is changed while in command and connected mode, then on going back online using the ATO command, the modem output lines will get refreshed. This register specifies in each 4 bit nibble, how the DTR,DCD,RI output pins are controlled when NOT in a Bluetooth connection Nibble 0..3 specifies the source for DTR 4..7 specifies the source for DCD 8..11 specifies the source for RI In addition it also refers to S Register 552 to see if the relevant pin is an input or not to be touched. If the nibble in 552 is 0, then the relevant pin is an input. Each nibble can take the following value:-
0 Always deassert 1 Always assert 2 Assert if RING is being sent to the host 20 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S554 0 RANGE 0..900 S555 1 1..7 S558 S559 0 0 0..1 0..3 S560 15 15..120 S565 S566 S567 S568 S569 S584 S588 S589 S590 S591 0 1 1 1 1 0 0 8 1 0 1 7 7 7 7 0..1 0..1 0..F 0..3 0..1FF COMMENT If S Register 512>=2 and <=7 then this register specifies a time in seconds for which the device will stay in the S512 mode after power up or reset. On timeout, it will abort the discoverable and/or connectable and fall back into S512=1 mode, when it is deaf and dumb. Note that if AT+BTR has been used to specify a peer device, then on reverting to mode 1, it will attempt to make a connection to that peer device. A power cycle, reset via BREAK or ATZ is required to see the effects of change. If S Register 554 is nonzero, then after the post reset window expires, the mode will revert to the mode specified in this register. This allows, for example, the device to be discoverable and connectable on power up
(mode 4 or 7) and on window timer expiry to revert to connectable only
(mode 3 or 6). A power cycle, reset via BREAK or ATZ is required to see effects of a change. In some firmware builds, S Registers 565 to 569 inclusive are visible, which allows the start-up mode to depend on the state of RI line (Setting S Reg 565 forces the RI pin to be configured as an input). For this feature to be active, SReg 565 should be set to 1. In that case, on start-up, if RI is asserted, then the start-up mode is defined by S Reg 568 and if deasserted then S Reg 569. When 1, the following responses; RING, NO CARRIER and CONNECT are replaced by BTIN, BTDOWN and BTUP respectively. This will eliminate ambiguity when the module has a Bluetooth connection to an AT modem which also gives these responses. This specifies a mask. When Bit 0 is 1, the response word ERROR is replaced by BTERR and OK is replaced by ok. When Bit 1 is 1, then error responses do not include the error number and instead the error number can be retrieved using ATI12. Disconnect timeout in seconds. This timer specifies how long to wait for confirmation from the peer device and/or the underlying stack that the connection has been successfully torn down. There can be instances where a confirmation does not arrive and so in this case this timer is used to close off the procedure and put the state machine back into a proper mode for new operations. Time is specified with 15 seconds intervals. If set to 1, RI (Ring Indicate) line is configured as an input and forces the start-up mode (SReg512) and post-timeout on Start-up mode (SReg555) to be dependent on the state of RI. The RI conditional modes are defined by SRegs 566 to 569 inclusive. If S565=1, and RI is asserted then this is the mode the device will start up in. If S565=1, and RI is deasserted then this is the mode the device will start up in. If S565=1, and RI is asserted then this is the mode the device will assume after the post-start-up timeout defined in SReg 554 instead of mode defined in SReg555 If S565=1, and RI is deasserted then this is the mode the device will assume after the post-start-up timeout defined in SReg 554 instead of mode defined in SReg555 Enable/Disable eSCO When changing the unit returns ERROR 14 it implies the device is either in a connection or waiting for a connection and so the new value cannot be accepted. For the former, drop the connection, then issue the command AT+BTX and then set the new value and for the latter issue the command AT+BTX prior to setting the register. After a disconnection, there will be a cold reset Codec output gain Codec input gain Default GPIO output states when not in a connection. This is used when virtual digital i/o cable replacement mode is in operation 21 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 REGISTER DEFAULT S592 0 RANGE 0..1 COMMENT Set this to 1 to reduce the trusted device database to just 1 record when autosaving of pairing is enabled via S reg 538 Automatically append last 6 digits of local bluetooth address to the friendlyname which was set via AT+BTN or AT+BTF Set codec output gain in dBr * 10
(applies to sink), default = 0 Set codec input gain in dBr * 10
(applies to source), default = 0 0..1
-450..+215
-450..+215 0..1 0..225 Enable Auxiliary DAC Set Auxiliary DAC Level S593 S689 S690 S730 S731 0 0 0 0 0 9. ATSn? {Read S Register Value}
This will return the current value of register n. For recognised values of n Response: <cr,lf>As Appropriate<cr,lf>OK<cr,lf>
For unrecognised values of n Response: <cr,lf>ERROR nn<cr,lf>
10. ATSn=? {Read S Register Valid Range}
This will return the valid range of values for register n. For recognised values of n Response: <cr,lf>Sn:(nnnn..mmmm)<cr,lf>OK<cr,lf>
For unrecognised values of n Response: <cr,lf>ERROR nn<cr,lf>
11. ATZ<n> {Hardware Reset and emerge into mode n}
Forces the device through a hardware reset which means it will eventually come alive in the local command and unconnected mode. This allows changes to the PS store to take effect. The module will issue an OK response after the reset is complete and it is ready to receive commands once again. ATZ and ATZ0 signify reset and emerge into the current mode (see command ATI14). ATZ1 to ATZ4 instructs the module to reset and then emerge into the appropriate boot mode. Note that S Reg 103 specifies the boot mode from cold. Response: <cr,lf>OK<cr,lf> and OK is returned after the RESET 12. AT&W {Write S Registers to Non-volatile Memory}
Writes current S Register values to non-volatile memory so that they are retained over a power cycle. Response: <cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
22 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 13. ATIn {Information}
This will return the following information about the Laird Technologies device. I0 I1 I2 I3 I4 I5 I6 I7 I8 I9 The product name/variant. The CSR firmware build number. The Laird Technologies firmware build number. For internal use only. The Laird Technologies firmware revision. A 12 digit hexadecimal number corresponding to the Bluetooth address of the device. The manufacturer of this device. The maximum size of trusted device database. The manufacturer of the Bluetooth chipset. The chipset format. 0 if not in a connect state and 1 if in a connect state. I11 The reason why a NO CARRIER resulted in the most recent attempt at making an outgoing connection. Where the response values are as follows:
0 = No prior connection 1 = Connection timeout 2 = Connection attempt cancelled 3 = Normal disconnection 4 = Peer device has refused connection 5 = Service profile <uuid> requested not available on remote device 6 = Connection has failed 32 = ATH was entered 33 = Incoming connection aborted because too many rings 34 = Unexpected incoming connection 35 = Invalid address 36 = DSR is not asserted 37 = Call limit of 65531 connections has been reached 38 = Pairing in progress 39 = No link key 40 = Invalid link key 255 = Unknown Reason I12 I60 The last ERROR response number. Connection status of SPP 0 = not connected 1 = connected identical with ATI9 I61 Connection status of A2DP 0 = not connected 1 = connected I62 Connection status of AVRCP 0 = not connected 1 = connected For recognised values of n. All other values of n will generate an error. Response: <cr,lf>As Appropriate<cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
23 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 14. ATO {Enter Data Mode} (letter o) Return to data mode. Assume that the module is in data mode after OK is received. Responds with an error if there is no Bluetooth connection. Response: <cr,lf> CONNECT 123456789012<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
15. AT&Fn {Set S Register Defaults}
This command will only work when the device is in local command and unconnected mode. Depending on the value of n it installs S Register values appropriate for various power modes, Legal values of n are as per the following table. All other values of n will generate a syntax error response. If n is not specified then a default value of 0 is assumed where the baud rate ranging from minimum power consumption to maximum. is NOT changed.
&F0 (Default) Medium power consumption, UART baud rate unchanged.
&F1
&F2
&F3
&F4
&F5
&F6 Minimum power consumption, UART baud rate set to 9600. Minimum power consumption, UART baud rate set to 38400. Minimum power consumption, UART baud rate set to 115200. Medium power consumption, UART baud rate set to 115200. Maximum power consumption, UART baud rate set to 115200. Maximum power consumption, UART baud rate set to 115200. the device. The new values are NOT updated in non-volatile memory until the AT&W command is sent to Response: <cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR nn<cr,lf>
General Bluetooth Control 1. AT+BTAn {Control Audio Channel}
Once a Bluetooth connection is active, and assuming the peer device is also a Laird Technologies device, this command is used to start/stop a SCO channel to transfer audio between the two peer devices.
+BTA0
+BTA1 Switch off the channel. Switch on the channel. On receipt of the command, the following response immediately follows. Response: <cr,lf>OK<cr,lf>
The lower layers then go through the process of setting up the SCO channel, and as soon as a SCO link is established, the following response is asynchronously sent to the host. Response: <cr,lf>AUDIO ON<cr,lf>
Or if the SCO failed to be established. Response: <cr,lf>AUDIO FAIL<cr,lf>
On the peer device, the host will asynchronously get . Response: <cr,lf>AUDIO ON<cr,lf>
24 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 It can be read back using the AT+BTC? Command, as described below. 2. AT+BTC<devclass> {Set Device Class Code}
This command is used to set the device class code which will be sent in subsequent inquiry responses.
<devclass> is a 6 digit hexadecimal number derived as per section 1.2 The Class of Device/Service Field of the Bluetooth specification Bluetooth Assigned Numbers. The 24 bits are made of 4 fields briefly described as follows (bit 0 corresponds to the least significant bit):-
Bits 0-1 Bits 2-7 Bits 8-12 Bits 13-23 Format Type. This field currently only has a value of 00 (i.e. format type 1) These 6 bits define the Minor Device Class and the value is interpreted differently based on the Major Device class stored in the next 5 bits. These 5 bits define the Major Device Class as per Table 1.3 in Bluetooth Assigned Numbers This is an 11 bit field used as a mask to define the Major Service Class, as per Table 1.2 in Bluetooth Assigned Number Laird Technologies devices do not map to any predefined Major Service Class or Major Device Class and so the default devclass as shipped is 001F00, which means no Major Service Class and Unclassified Major Device class. Other examples of device class codes are follows:-
CODE (HEXADECIMAL) 001F00 NAME Unclassified MAJOR SERVICE None MAJOR DEVICE Unclassified MINOR DEVICE n/a 200404 Headset Audio Audio Headset Response: <cr,lf>OK<cr,lf>
Or for an invalid <devclass> value (usually a value which is not 6 hexadecimal characters long). Response: <cr,lf>ERROR 08<cr,lf>
3. AT+BTC? {Read Device Class Code}
This command is used to read the current device class code. Response: <cr,lf>123456
<cr,lf>OK<cr,lf>
4. AT+BTD<bd_addr> {Remove Trusted Device}
This command is used to remove the specified device from the list of trusted devices in the non-volatile database. If the device is not in the database then the response will still be an OK. Response: <cr,lf>OK<cr,lf>
5. AT+BTD* {Remove All Trusted Devices}
This command is used to remove all devices from the list of trusted devices in the non-volatile database. No confirmation will be asked for. So beware!!!
WARNING: If you make an authenticated connection, the link key gets cached in the underlying stack. So if you subsequently delete the key using AT+BTD* and immediately request an authenticated connection to the same device, then the connection will be established. To ensure this does not happen, either send ATZ after the AT+BTD* OR send AT+BTD<bd_addr> for each item in the trusted device database. Response: <cr,lf>OK<cr,lf>
6. AT+BTF=<string> {Set Friendly Name}
This sets the friendly name of this device as seen by other devices Response: <cr,lf>OK<cr,lf>
25 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 7. AT+BTF<bd_addr> {Get Remote Friendly Name}
This command gets the remote friendly name of the peer specified. Response: <cr,lf><bd_addr>,Friendly Name
<cr,lf>OK<cr,lf>
8. AT+BTG<bd_addr> {Enable Cautious Page Scanning ONLY}
Enable page scanning and wait for a connection from device with Bluetooth address <bd_addr>. Response: <cr,lf>OK<cr,lf>
If the specified address is 000000000000 then incoming connections are accepted from any device, is as per AT+BTP without an address. Inquiry Scans are disabled. register 518. 9. AT+BTG {Enable Promiscuous Page Scanning ONLY}
Enable page scanning only and wait for a connection from any device. Inquiry scans are disabled. Response: <cr,lf>OK<cr,lf>
10. AT+BTI<devclass> {Inquire}
This will make the device perform an inquiry for device class code for delay milliseconds and max number of unique responses, where delay is specified by S register 517 and max is specified by S The <devclass> is an optional parameter where the value specifies either a 6 digit device class code or a 2 digit major device class. If it is not specified, then the value is taken from S register 516. When <devclass> is 6 hexadecimal characters long, it specifies an AND mask which is used to filter inquiry responses. When <devclass> is 2 hexadecimal characters long, it forces the inquiry to filter responses to devices that match their major device class code to this value which can only be in the range 00 to 1F. Response: <cr,lf>12346789012
<cr,lf>12345678914
<cr,lf>OK<cr,lf>
back into idle mode. Response: <cr,lf>ERROR 14<cr,lf>
ERROR RESPONSE A Bluetooth inquiry process is such that for a single inquiry request a device could respond many times. To ensure that an address is sent to the host only once for a particular AT+BTI, an array of addresses is created at the start of each AT+BTI and is filled as responses come in. This array of addresses is stored in dynamic memory and as such if the memory allocation fails To clarify, a single AT+BTI will never return the same Bluetooth address more than once, but as Response: <cr,lf>ERROR 27<cr,lf>
If the module is waiting for an incoming connection, (entered via AT+BTP, AT+BTG, AT+BTQ), then it will respond with ERROR 14. To perform the inquiry, send AT+BTX to put the module then the inquiry procedure is aborted and in that case an error response is sent to the host. long as the responding device is active, all AT+BTI commands will always return it. to the ERROR RESPONSE note in the description for AT+BTI<devclass>. 11. AT+BTIV<devclass> {Inquire}
As per AT+BTI but the response includes the device class code for all inquiry responses. Please refer Response: <cr,lf>12346789012,123456
<cr,lf>12345678914,123456
<cr,lf>OK<cr,lf>
26 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 12. AT+BTIN<devclass> {Inquire}
As per AT+BTI but the response includes the device class code and friendly name for all inquiry responses. Please refer to the ERROR RESPONSE note in the description for AT+BTI<devclass>. The friendly name strings are in UTF-8 format as per the Bluetooth specification. Response: <cr,lf>12346789012,123456,TDK SYSTEMS AT DONGLE 1 Note: Many releases of firmware will return the product name as LAIRD, e.g. Response: <cr,lf>12346789012,123456,TDK SYSTEMS AT DONGLE 1 We strongly recommend that any software implementation that uses this command should check for LAIRD, EZURIO and TDK SYSTEMS to ensure backwards and forwards compatibility.
<cr,lf>12345678914,123456, TDK SYSTEMS RS232
<cr,lf>OK<cr,lf>
<cr,lf>12345678914,123456, TDK SYSTEMS RS232
<cr,lf>OK<cr,lf>
13. AT+BTK=<string> {Set Passkey}
This command is used to provide a passkey when PIN? 12345678 indications are received asynchronously. If a pairing is not in progress then the pin is written to non-volatile memory The string length must be in the range 0 to 8, otherwise an error will be returned. Response: <cr,lf>OK<cr,lf>
for future use. Specifying an empty string deletes the key from the non-volatile memory. 14. AT+BTM {Delete Incoming Peer Address}
This command is used to delete the peer address previously stored using AT+BTR<bd_addr>. Response: <cr,lf>OK<cr,lf>
the module in pure cable replacement mode. 15. AT+BTM? {Read Incoming Peer Address}
This command is used to display the peer address stored in non-volatile memory, used to put Response: <cr,lf>12346789012 Response: <cr,lf>00000000000 If the location is empty the response is as follows.
<cr,lf>OK<cr,lf>
<cr,lf>OK<cr,lf>
in non-volatile memory. Use AT+BTF to make the name visible to other devices. Use AT+BTN?
16. AT+BTN=<string> {Set Friendly Name in Non-volatile Memory}
This sets the default friendly name of this device as seen by other devices. It will be stored To read it back. An empty string () will delete the string from non-volatile memory which will Response: <cr,lf>OK<cr,lf>
force the default name to be used. 17. AT+BTN? {Read Friendly Name from Non-volatile Memory}
Read the default friendly name from non-volatile memory. Response: <cr,lf>My FriendlyName<cr,lf>
<cr,lf>OK<cr,lf>
27 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 18 AT+BTP<bd_addr> {Enable Cautious Page/Inquiry Scanning}
Enable page scanning and wait for a connection from device with Bluetooth address <bd_addr>. Response: <cr,lf>OK<cr,lf>
If the specified address is 000000000000 then incoming connections are accepted from any device, is as per AT+BTP without an address. Inquiry scanning is also enabled. 19. AT+BTP {Enable Promiscuous Page/Inquiry Scanning}
Enable page scanning and wait for a connection from any device. Inquiry scanning is also enabled. Response: <cr,lf>OK<cr,lf>
20. AT+BTQ {Enable Inquiry Scans ONLY}
When inquiry scan is enabled, it implies that this device will respond to inquiries from other devices. Use AT+BTX to disable inquiries. Response: <cr,lf>OK<cr,lf>
If S register 512 = 1 and the peer address is NOT 000000000000, then it will periodically (time 21. AT+BTR<bd_addr> {Set Outgoing Peer Address}
This command is used to store a peer address for outbound connections in non-volatile memory. A value of 000000000000 has the special meaning of invalid peer address. This command is used to set up a module in pure cable replacement mode. specified via S register 505) attempt to connect to the peer address specified. In this circumstance all commands from the host are buffered in the receive buffer, until a Bluetooth connection is established with the peer device and it then sends the buffer across. This means that if the peer device is not in the vicinity and will never be there, the device effectively becomes useless, as in probably one to delete the peer device. and that will abort the autoconnect cycle. The second method is initiated by resetting the device and then ensuring that the text string AT+BT&BISM&<cr> is sent (where <cr> is the carriage return character). There is special code which looks out for this magic command and terminates the autoconnect cycle if it sees it and confirms to the host of that fact by sending an OK response. Response: <cr,lf>OK<cr,lf>
In this circumstance, a recovery is possible by one of two methods. The first method assumes that the DTR from the host is connected to the DSR line of the module and the second method assumes that this connection is absent. In the first method it is enough to deassert the DTR line from the host this circumstance a host would want to get attention of the AT parser to send it new commands 22. AT+BTR {Delete Outgoing Peer Address}
This command is used to delete the peer address previously stored using AT+BTR<bd_addr>. Response: <cr,lf>OK<cr,lf>
23. AT+BTR? {Read Outgoing Peer Address}
This command is used to display the peer address stored in non-volatile memory, used to put the device in pure cable replacement mode. Response: <cr,lf>12346789012 Response: <cr,lf>00000000000 If the location is empty the response is as follows.
<cr,lf>OK<cr,lf>
<cr,lf>OK<cr,lf>
28 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 it will respond with an ERROR. If the device is already in the database, then the key is replaced. If the link key cache is empty, that is, a pairing has not been performed since the device was powered, then the response will be an ERROR. 24. AT+BTT {Add Trusted Device}
This command is used to store the cached link key in the non-volatile database. If the database is full Response: <cr,lf>OK<cr,lf>
Or Response: <cr,lf>ERROR<cr,lf>
the trusted device database. 25. AT+BTT? {List Trusted Device}
This command is used to list the contents of the trusted device database. The link key is NOT displayed so the response is as shown below. If the list is empty then just the OK response is sent otherwise an OK is used to terminate the list. Use the command ATI6 to read the maximum size of Response: <cr,lf>12346789012
<cr,lf>12345678913
<cr,lf>12345678914
<cr,lf>OK<cr,lf>
26. AT+BTW<bd_addr> {Initiate Pairing}
This initiates pairing with a device whose Bluetooth address is <bd_addr>. An OK response is sent and when the PIN is required, asynchronous indications will be sent to the host in the form PIN?
<bd_addr> where the address confirms the device with which the pairing is to be performed. To supply a PIN, use the AT+BTK command. For a successful pairing, the link key is stored in a volatile cache which is overwritten every time a new pairing is initiated using this command. The link key can be stored in a non-volatile database within the device. The list of trusted devices is managed using commands AT+BTT?, AT+BTT and AT+BTD. The AT+BTT? command produces a list of trusted Bluetooth addresses (link key is NEVER displayed) and AT+BTT is used to store the cached link key. The command AT+BTD123456789012 The OK response is sent immediately on receipt of the AT+BTW command. On pairing completion, an unsolicited message will be sent to the host which will be in the form PAIR n <bd_addr>. See section 3.7 for more details. and the subsequence PAIR asynchronous response, then an ERROR response will be sent to Response: <cr,lf>OK<cr,lf>
If AT+BTI or AT+BTP or AT+BTG or AT+BTQ or ATD is issued between the AT+BTW command those commands as the device is not in a mode from where such commands can be actioned. is used to remove the specified device from the database. 27. AT+BTW? {List Cached Trusted Device}
This command is used to list the cached trusted device. Response: <cr,lf>12346789012 Response: <cr,lf>OK<cr,lf>
If the cache is empty the response is as follows.
<cr,lf>OK<cr,lf>
28. AT+BTX {Disable Page/Inquiry Scanning}
Disable page/inquiry scanning. This means it will not accept incoming connections or inquiry requests. Response: <cr,lf>OK<cr,lf>
In fact this negates the effect of AT+BTQ, AT+BTG and AT+BTP commands. 29 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Hardware Unit Control This section covers S-Registers and AT-Commands that are related to hardware units within the module. 1. Audio Loopback Mode For testing purposes, an audio loopback mode will be introduced. The stereo audio input signal output. Audio Loopback Mode is controlled with the new AT Command AT+BTL. is fed through the Kalimba DSP with running SBC codec, and is directed back to the audio stereo Table 3-2: Audio Loopback AT-Commands and S-Registers TASK Set audio loopback mode AT-COMMAND / SREGISTER AT+BTL<Mode>
Set sampling rate for Audio Loopback Mode S419 [0..6], default=6 COMMENT Mode:
0 = off 1 = on, via PCM 2 = on, via SBC encoder/decoder 0 = 8 kHz 1 = 11.025 kHz 2 = 16 kHz 3 = 22.050 kHz 4 = 24 kHz 5 = 32 kHz 6 = 44.1 kHz 2. Codec Gain On BC05-MM, analogue input and output gains can be set to one of 23 steps called Gain Level. To each gain level, an overall gain (dBr) is assigned, according to Table 3 3: Gain Table. Gain values can be specified either as gain level or as overall gain by separate S Registers. Please note that a pair of such S-Registers always updates the other corresponding S-Register (e.g. S589 S689 and S590 S690). For S689 and S690 the overall gain (dBr) must be entered multiplied by 10. If the input value doesnt match a gain table entry, the nearest possible value is set. The actually set value can be checked by reading back S689/S690. The value of S689/S690 is printed out multiplied by 10 in order to avoid non integer numbers. The new command class AT+G is introduced in Bism3 which enables incremental and decremental gain settings. The increment/decrement command corresponds to one row up/down in the gain table (Table 3 3). The Gain level registers S589/S689 and S590/S690 are not affected by increment/decrement commands. Instead, the current gain level is cached and can be retrieved by AT+G(I|O)?. There are 2 further commands to restore the cached gain level from S589/S590 (AT+G(I|O)R) and to save the currently cached gain level to S589/S590 (AT+G(I|O)S). 30 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Table 3-3: Gain Table OUTPUT GAIN LEVEL OR OVERALL GAIN (DBR) INPUT GAIN LEVEL S589 OR S590 S689 OR S690 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
+21.5
+18.0
+15.5
+12.0
+9.5
+6.0
+3.5 0
-3.0
-6.0
-9.0
-12.0
-15.0
-18.0
-21.0
-23.5
-27.0
-29.5
-33.0
-35.5
-39.0
-41.5
-45.0 Table 3-4: Gain Settings AT Commands and S-Registers TASK Set output gain level AT-COMMAND / SREGISTER S589 [0..22], default=15 COMMENT See Gain Table; S689 is affected, too Set output overall gain (dBr) S689 [-450..+215], default=0 See GainTable; value must be entered (and is returned) multiplied by 10; S589 is affected, too Set input gain level S590 [0..22], default=15 See Gain Table; S690 is affected, too Set input overall gain (dBr) S690 [-450..+215], default=0 Increment current output gain level Decrement current output gain level Query current output gain level Restore current output gain level from S589 Save current output gain level to S589 Increment current input gain level Decrement current input gain level Query current input gain level Restore current input gain level from S590 Save current input gain level to S590 AT+GOU AT+GOD AT+GO?
AT+GOR AT+GOS AT+GIU AT+GID AT+GI?
AT+GIR AT+GIS See GainTable; value must be entered (and is returned) multiplied by 10; S590 is affected, too Error 57 may appear if maximum gain level reached Error 58 may appear if minimum gain level reached Error 57 may appear if maximum gain level reached Error 58 may appear if minimum gain level reached Laird Technologies 31 www.lairdtech.com BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 3. Mic Input Gain A microphone preamplifier which adds extra 20dB to input gain, is controlled by S-Register 415. 4. Mic Bias Mic Bias will be enabled with S-Register 416. Mic Bias Current is controlled by S-Register 417. Mic Bias Voltage is controlled by S-Register 418. 5. Auxiliary DAC The auxiliary DAC is enabled with S-Register 730. The DAC output level is set by S-Register 731. 6. LED The BT-MM+ module provides two dedicated output pins for LEDs (LED_EXT0, LED_EXT1). Following modes are supported: LED_OFF, LED_ON, LED_PWM and LED_PULSE. This enables either a to dim the brightness of an LED (PWM Period=0) or to specify blinking with defined on-time in a defined period (PWM Period > blinking visible for the eye) parameter Pulse Rate and maximum brightness is defined by parameter Duty Cycle. In LED_PULSE mode, the brightness of an LED is modulated. Modulation speed is defined by In LED_PWM mode, the parameters Duty Cycle an PWM Period can be specified via S-Registers. Table 3-5: LED S-Registers TASK Set LED_EXT0 mode AT-COMMAND / SREGISTER S335 [0..3], default=0 Set LED_EXT1 mode S340 [0..3], default=0 COMMENT Mode:
0 = LED_OFF 1 = LED_ON 2 = LED_PWM 3 = LED_PULSE Set LED_EXT0 Duty Cycle S336 [0..4095], default = 2048 Set LED_EXT1 Duty Cycle S341 [0..4095], default = 2048 referenced if LED mode = LED_PWM or LED_PULSE Set LED_EXT0 PWM Period S337 [0..15], default = 0 referenced if LED mode = LED_PWM Set LED_EXT1 PWM Period S342 [0..15], default = 0 Set LED_EXT0 Pulse Rate S338 [0..15], default = 0 referenced if LED mode = LED_PULSE Set LED_EXT1 Pulse Rate S343 [0..15], default = 0 Bluetooth Profiles This section covers S-Registers and AT-Commands that are related to the supported Bluetooth Profiles on the BT-MM+ module. 1. Profile Server Activation Supported profiles can be activated by setting the appropriate Flag in S-Register 102 (see Table 3 1). After S-Register 102 has been written, all S-Registers must be saved to non-volatile memory (AT&W) and subsequently a reset has to be carried out (ATZ). In order to advertise available services to potential client devices, S-Register 102 is used. two Bluetooth devices. An A2DP role must be assigned to a BT-MM+ module, either source or sink. 2. A2DP The Advanced Audio Distribution Profile is used to transmit high quality audio streams between After this has been done, the appropriate service can be advertised. An attempt to advertise A2DP-service without prior set up of a role will result in a (new) response error code 46. An incoming A2DP connection request is accepted automatically if a valid link key for the paging device exists. If no link key is available, Secure Simple Pairing (SSP, BT2.1) or legacy pairing (BT2.0 or earlier) is carried out, depending on the Bluetooth Version of the paging device. After an A2DP connection has been established, the module remains in AT Command mode. S Register 531 is ignored for A2DP connections. 32 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Table 3-6: A2DP - S-Registers and AT-Commands TASK Set A2DP role AT-COMMAND / SREGISTER S300 [0..2]
Advertise service S102 Initiate outgoing A2DP connection AT+APD<bd_addr>
close only A2DP connection AT+APH or ATH110D close all connections ATH*
Set gain level Set overall gain (dBr * 10) S589 [0..22], default = 15 S590 [0..22], default = 15 S689 [-450..215]
S690 [-450..215]
Set A2DP sink supported features bit mask S312 [0..15]
Set A2DP source supported features bit mask S313 [0..15]
COMMENT 0 = feature not set 1 = A2DP Sink (default) 2 = A2DP Source 128 = A2DP, Error 46 if A2DP role has not been set (see S300) Response if accepted:
CONNECT 0123456789012,110D Response if rejected:
NO CARRIER 110D Response:
NO CARRIER 110D if connection has existed and S329=0 NO CARRIER if connection has not existed and S329=0 Response:
NO CARRIER <profileUUID> for each profile that was previously connected
(see section 3.7.2) Set codec output gain level (applies to sink) Set codec input gain level (applies to source) Set codec output gain in dBr * 10
(applies to sink), default = 0 Set codec input gain in dBr * 10
(applies to source), default = 0 Bitmask - sink supported features:
Bit 0 = Headphone (default) Bit 1 = Speaker Bit 2 = Recorder Bit 3 = Amplifier Bitmask - source supported features:
Bit 0 = Player (default) Bit 1 = Microphone Bit 2 = Tuner Bit 3 = Mixer
(Player/Recorder, Monitor/Amplifier, Tuner, Menu) has to be assigned to a device. 3. AVRCP The Audio/Video Remote Control Profile is used to remotely control audio or video streaming devices. A device must be defined as either control or target. Furthermore, one of four categories The AVRCP specification [5] adopts the AV/C Digital Interface Command Set (AV/C command set, defined by the 1394 Trade Association) device model and control message format. In this device model a remote control target consists of one or more subunits. At least the subunit PANEL must exist. Remote control commands are passed to a subunit with the PASS THROUGH command. A BT-MM+ Module, configured as target will support one PANEL subunit. 3.1 AVRCP - Control (CT) This section describes AT Commands and S registers used when BT-MM+ is configured as an AVRCP Controller (S301=1). 33 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Initiate AVRCP control connection to Bluetooth address <bd_addrhex>. The module must be configured as AVRCP Control by S register 301 = 1. Furthermore, a category be selected in S register 302. Response:
3.1.1 Initiate AVRCP control connection AT+AVD<bd_addrhex>
Or:
Or:
Or:
<cr,lf>CONNECT 123456789012,110E<cr,lf>
<cr,lf>NO CARRIER 110E<cr,lf>
<cr,lf>ERROR 47<cr,lf>
<cr,lf>ERROR 48<cr,lf>
After an AVRCP connection has been established, the module remains in AT command mode. S Register 531 is ignored for AVRCP connections. 3.1.2 Release AVRCP control connection Release AVRCP control connection. Response:
AT+AVH
<cr,lf >NO CARRIER 110E<cr,lf>
Send a Unit Info request to a connected AVRCP target. Response immediately:
<cr,lf>OK<cr,lf>
3.1.3 Send UNIT INFO Request AT+AVU On command completion:
<cr,lf>AVUR <n> <unit_idhex> <unit_typehex> <company_idhex><cr,lf>
n = statusdec :
For unit_type see Table 3 9: AV/C Unit/Subunit Types. 0 success 1 fail 4 timeout 3.1.4 Send SUBUNIT INFO Request (incomplete) Send a Subunit Info request to a connected AVRCP target. Response: <cr,lf>OK<cr,lf>
And:
AT+AVS<pagedec>
<cr,lf>AVSR <pagedec> <pagedatahex> <cr,lf> (after command completion)
<pagedec>
<pagedatahex> :
requested page [0..31]
1st word of requested page
(immediately) 34 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 3.1.5 Send remote control command AT+AVC<operation_idhex>,<button_state>
Send a remote control command to a connected AVRCP target. Internally, a PASS THROUGH command is created and sent to the PANEL subunit of the AVRCP target.
<operation_idhex> is the value for the actual remote control command. Valid values are specified in Table 3 8. Some Operation IDs can be replaced by mnemonics, see Table 3 8.
<button_state> represents Button pushed (=0) or Button released (=1) If <button_state> is not specified, two PASS THROUGH commands, each with button_state=0 and button_state=1 will be created and sent consecutively. The OK response is sent immediately on receipt of AT+AVC command. On command completion, an unsolicited message will be sent to the host in the form AVPTC n
<bd_addr> <button_state>. AVPTC means AVrcp Pass Through Confirmation. Parameter n indicates the command status:
n=0: successful, command confirmation received from target n=1: timeout, target has not sent confirmation within the specified maximum time n=2: all other unsuccessful outcomes
(mandatory):
(optional) :
Parameters:
<operation_idhex>
<button_state>
<cr,lf>OK<cr,lf>
Response:
<cr,lf>AVPTC n <operation_idhex> <button_state><cr,lf>
And:
(after command completion) If status n indicates an unsuccessful outcome,<operation_idhex> and <button_state>
are omitted. see Table 3 8 0 - Button pushed 1 - Button released
(immediately) 3.2 AVRCP Target (TG) This section describes AT Commands and S registers when BT-MM+ is configured as an AVRCP Target (S301=2). In this mode, BT-MM+ supports one subunit PANEL (see [5]). 3.2.1 Incoming AVRCP Connection Request An incoming AVRCP connection request is accepted automatically if a valid link key for the paging device exists. If no link key is available, Secure Simple Pairing (SSP, BT2.1) or legacy pairing (BT2.0 or earlier) is carried out, depending on the Bluetooth Version of the paging device. After an AVRCP connection has been established, the module remains in AT command mode. S Register 531 is ignored for AVRCP connections. 3.2.2 UNIT INFO Response It is mandatory to respond to a UNIT INFO command if configured as AVRCP target. Required response parameters are IEEE Company ID and a Unit Type. The IEEE Company ID is a 24 bit integer which can be set via new S register 303. In the current revision of BT-MM+ firmware, subunit Panel (=0x09) will be returned always. Values of unit/subunit types are outlined in Table 3 9. 3.2.3 SUBUNIT INFO Response It is mandatory to respond to a SUBUNIT INFO command if configured as AVRCP target. Required response parameters are Subunit type and MaxSubUnitId. Subunit type will always be returned as 0x09 (Panel). MaxSubUnitId will always be returned as 0x00 (only one subunit exists, which is panel) 35 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 3.2.4 PASS THROUGH Indication An incoming PASS THROUGH command will be indicated by an unsolicited message AVPTI <subunit_idhex> <operation_idhex> <button_state>
For subunit_idhex see Table 3 9. For operation_idhex see Table 3 8.
<button_state>: 0 is Button pushed 1 is Button released 3.2.5 PASS THROUGH Response AT+AVR<avrc_response_typehex>
If S register 310 = 0, a Pass Through (PT) response is required from the host. The response is sent with:
AT+AVR<avrc_response_typedec>
Parameter:
<avrc_response_typedec>: see Table 3 10, write-value. If S register 310 == 1, a Pass Through response is sent automatically with an
<avrc_response_type> configured by S register 311. In this case, the host is not required to respond. Table 3-7: AVRCP - S-Registers and AT-Commands TASK Set AVRCP role Set AVRCP category Set Company Id Enable Unit Info Response Enable Subunit Info Response Configure PASS THROUGH (PT) Response Set automatic response type Advertise service Initiate outgoing AVRCP control connection Close only AVRCP con-
nection Close all connections S302 [0..4]
S303 [0..0xFFFFFF]
S305 [0..1]
S306 [0..1]
S310 [0..1]
AT-COMMAND / SREGISTER COMMENT 0 = disabled S301 [0..2]
1 = Control CT (default) 2 = Target TG 0 = Feature disabled (default) 1 = Player/Recorder 2 = Monitor/Amplifier 3 = Tuner 4 = Menu IEEE Company ID, 24bit hexadecimal,Required for UNIT INFO Response in AVRCP target mode, default value is 0. default = 1 default = 1 1 = Enable automatic PT-response, response type is read from S311, (default) 0 = Host is required to respond to PT-Indication, see AT+PTR This value is queried for automatic PT-Response, see Table 3-10 Default value is accepted 1w/ 9r 256 = AVRCP, Error 47 if AVRCP role has not been set (see S301);
Error 48 if S301== 2 and Category has not been set (see S302) Response if accepted:
CONNECT 0123456789012,110E Response if rejected:
NO CARRIER 110E Response:
NO CARRIER 110E if connection has existed and S329=0 NO CARRIER if connection has not existed and S329=0 Response:
NO CARRIER <profileUUID> for each profile that was previously connected (see Miscellaneous section 2) AT+AVH or ATH110E AT+AVD<bd_addr>
S311 [0.. 7]
ATH*
S102 Send a Unit Info request Send a Subunit Info request Send remote control com-
mand AT+AVU AT+AVS AT+AVC<operation_ idhex>,<state>
(incomplete!)
<operation_id>: see Table 3 8, mnemonics possible instead of hexval
<state> (optional): 0 Button pushed 1 Button released Response on command completion:
AVPTC n <operation_idhex> <state>
Respond to incoming Pass Through command 36 www.lairdtech.com AT+AVR<avrc_response_typehex> <avrc_response_typehex>: see Table 3 10 If S 310 == 1, response from host is not required. Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 37 www.lairdtech.com Table 3-8: AVRCP - Operation ID and Mnemonic for Remote Control Commands MNEMONIC PLAY STOP PAUSE REWIND FFORWARD FORWARD BACKWARD COMMAND Select Up Down Left Right Right up Right down Left up Left down Root menu Setup menu Contents menu Favorite menu Exit 0 1 2 3 4 5 6 7 8 9 Dot Enter Clear Channel up Channel down Sound select Input select Display information Help Page up Page down Power Volume up Volume down Mute Play Stop Pause Record Rewind Fast forward Eject Forward Backward Angle Sub picture F1 F2 F3 F4 F5 Vendor unique OPERATION ID 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x50 0x51 0x71 0x72 0x73 0x74 0x75 0x7e Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 Table 3-9: AV/C Unit/Subunit Types UNIT / SUBUNIT TYPE Monitor Audio Printer Disc Tape recorder player Tuner CA Camera Reserved Panel Bulletin board Camera storage Vendor unique Reserved for all Extended Unit VALUE 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x1C 0x1D 0x1E 0x1F Table 3-10: AVRC Response Types AVRC RESPONSE TYPE Not implemented Accepted Rejected In transition Stable Changed Interim Bad profile READ-VALUE (S311, SENT IN RESPONSE) 8 9 10 11 12 13 15 16 WRITE-VALUE (S311) 0 1 2 3 4 5 6 7 Table 3-11: AVRCP Unsolicited Messages MESSAGE RING 0123456789012 110E CONNECT 0123456789012 AE 110E NO CARRIER 110E NO CARRIER AVUR <unit_typehex> <company_idhex>
AVSR AVPTI <subunit_idhex> <operation_idhex> <state>
AVPTC n <operation_idhex> <state>
38 www.lairdtech.com RING 0123456789012 110E COMMENT Indication of AVRCP control connection request AVRCP control connection established0123456789012 bd_addr of peer device A - authenticated E encrypted 110E UUID indicating AVRCP AVRCP connection rejected or closed All Connections closed AV Unit Info Response, sent in response to AT+AVU
(UNIT INFO Request),
<unit_type>: see Table 3 9
<company_id>: IEEE Company ID AV Subunit Info Response, sent in response to AT+AVS (SUBUNIT INFO Request), incomplete Indication of incoming Pass Through command
<subunit_idhex>: subunit id
<operation_idhex>: see Table 3 8
<state>: 0 Button pushed 1 Button released Confirmation of AT+AVC (Control Command Request) n: 0 successful 1 timeout 2 not successful, other than timeout Indication of AVRCP control connection request Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 SECURE SIMPLE PAIRING (SSP) Secure Simple Pairing is supported on the BT-MM+ module. A set of S Registers provides configuration capabili-
ties for SPP:
For details see Table 3 1. Security Level S320 IO-Capability S321 Force man-in-the-middle-protection (MITM) S322 Disable legacy pairing S323 LINK KEY MANAGEMENT On BT-MM+ link keys are managed by the AT firmware. 1. Dedicated Bonding devices without the intention of establishing a connection immediately. Dedicated bonding is initiated by AT+BTW<BdAddr> (initiation of pairing). In BT2.1 specification, dedicated bonding is defined as the exchange of link keys between two In BT2.1 specification, general bonding is defined as the exchange of link keys between two 2. General Bonding devices with the intention of establishing a connection immediately. This is the case if a device wants of link keys) is initiated automatically prior to the connection. General bonding is initiated by ATD<BdAddr>, AT+APD<BdAddr>, AT+AVD<BdAddr> if to connection to another device without existing link key. Hence, pairing (authentication and exchange there are no link keys for the peer device existing. to a BT-MM+ (BT2.1) module. 3. Legacy Issues (BT2.0) There are some special cases if a legacy device (BT2.0 or earlier, e.g.BISM2) requests a connection General bonding does not work if initiated by the legacy device. Instead, the legacy device must initiate dedicated bonding first (for example on BISM2 the command AT+BTW<BdAddr> would be used). After successful pairing, the connection can be initiated by the legacy device (for example on BISM2 the ATD<BdAddr> command would be used). 39 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 MISCELLANEOUS 1. Profile Connection Status The connection status of a profile can be queried by an ATI-Command. This might be helpful in order to decide whether to disconnect all connected profiles (via ATH*) or a certain one. For details please see Table 3-12. Table 3-12: Profile Connection Status TASK Get connection status of SPP AT-COMMAND ATI60 Get connection status of A2DP ATI61 Get connection status of AVRCP ATI62 COMMENT 0 = not connected 1 = connected identical with ATI9 0 = not connected 1 = connected 0 = not connected 1 = connected 2. Disconnecting Profiles A connection to a profile can be released by ATH<Profile-UUID> or by using the profile specific disconnect command. The response on a disconnect command is NO CARRIER <profileUUID>. If no connection existed then the profileUUID is omitted. If all connections are to be released, ATH* may be used. Please see Table 3-13. Table 3-13: Profile Release Commands TASK Disconnect A2DP AT-COMMAND ATH110D orAT+APH Disconnect AVRCP ATH110E or AT+AVH Disconnect all profiles ATH*
COMMENT If A2DP connection released:
response = NO CARRIER 110D;
If no A2DP connection has existed:
response = NO CARRIER If AVRCP connection released:
response = NO CARRIER 110D;
If no AVRCP connection has existed:
response = NO CARRIER Response = NO CARRIER
<ProfileUUID> for each previously connected profile 3. Production Info String A string with production information can be retrieved by ATI200. 40 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 APPENDIx BT-MM+ Unsolicited Messages MESSAGE CONNECT 0123456789012,110D NO CARRIER 110D CONNECT 0123456789012,110E NO CARRIER 110E AVUR n <unit_idhex> <unit_typehex> <company_idhex>
AVSR <pagedec> <pagedatahex>
AVPTI <operation_idhex> <button_state> <subunit_idhex>
<subunit_typehex>
AVPTC n <operation_idhex> <state>
PAIR ? <BdAddr>
PAIR 0 <BdAddr>
PAIR 1 <BdAddr>
PASSKEY ? <BdAddr>
PASSKEY N <BdAddr> 012345 BT-MM+ Error Responses ERROR 01 DESCRIPTION Register not recognised COMMENT A2DP control connection established 0123456789012 bd_ addr of peer device 110D Profile UUID indicating A2DP A2DP connection rejected or closed (if S329==0) AVRCP control connection established 0123456789012 bd_ addr of peer device 110E Profile UUID indicating AVRCP AVRCP connection rejected or closed (if S329==0) AV Unit Info Response, sent in response to AT+AVU (UNIT INFO Request),
<unit_idhex>: unit id
<unit_typehex>: see Table 3 9
<company_id>: IEEE Company ID AV Subunit Info Response, sent in response to AT+AVS (SUBUNIT INFO Request), Page data: 1st word of requested page, incomplete Indication of incoming Pass Through command
<operation_idhex>: see Table 3 8
<button_state>: 0 pushed 1 released
<subunit_idhex>: subunit id
<subunit_typehex>: subunit type, see Table 3 9 Confirmation of AT+AVC (Control Command Request) n: 0 successful 1 timeout 2 not successful, other than timeout Incoming pairing request from device with BdAddr Succesfully paired with device with BdAddr Pairing error Incoming passkey request (respond with at+btb012345) Passkey notification (if MITM protection is enabled) 02 03 04 05 06 06 08 09 10 11 12 13 14 15 16 17 Value for register is out of range Incoming call NOT pending No call to connect to. This error code has meaning for ATO only Syntax Error Empty String Device Class could not be stored Invalid Device Class Code Invalid Bluetooth Address Could not set Service or Friendly name PS Store Write PS Store Read Not Idle Incorrect Mode Already Scanning Pairing is already in progress Not USED 41 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module CONFIGURING THE BTM520/521 ERROR 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 50 51 52 53 54 55 56 57 58 DESCRIPTION Not USED Not USED Not safe to write to Non-volatile Store - Ongoing Bluetooth Connection Link Key Cache is Empty Link Key Database is Full Malloc returned NULL - Resource Issue Remote Address same as Local Address Connection Setup Fail, DSR Not asserted Unauthenticated licence Max Responses (See S Register 518) too high. Memory allocation error The length of Pin in AT+BTK is too long Invalid Ring count specified for S Register 0 or 100. If S0<>0 and S100<>0 then S0 must be < S100 ADC Error Analogue Value cannot be read as it is set for output Analogue Value cannot be written as it is set for input S Register Value is invalid Both L and R modifier cannot be specified in ATD command Invalid Major Device Class valid value in range 0x00 to 0x1F inclusive Pairing in progress Command cannot be actioned try again later Invalid Sniff parameter specified. E.g. new Attempt value greater than MinInterval. Solution is to first increase MinInterval and re-enter the Attempt value. Get Remote Friendly name Failed Failed to change mode to Multipoint 7 Bit mode requires parity to be even or odd Unused Unused Unused Unused Unused No A2DP role has been set (see S register 300) No AVRCP role has been set (see S register 301) No AVRCP category has been set (see S register 302) No AVRCP control connection No A2DP or AVRCP connection currently incoming No A2DP or AVRCP connection currently incoming Invalid operation ID (AVRCP) Wrong AVRCP role Command disabled by S-Register 310 Production info string does not exist Audio resource error Invalid UUID Maximum gain level reached Minimum gain level reached 42 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS MECHANICAL DETAILS T U O F R 4 3 9 3 RF Shield 8 2 TOP VIEW 0 4
(COMPONENT SIDE) 7 2 E Orientation mark on PCB and RF Shield denotes pin 1 4 5 U1 U3 3 1 1 2 1 Pin Outs D H 7 2 b H 3 1 W E I V E D I S A A1 A2 Description Size Pitch Dimension A A1 A2 b D E e D1 E1 F G H Units Maximum 2.3 0.8 1.3 0.55 13.87 19.87 54 pin BT Voice Module (8X6 Flash) 20.0 x 14.0 x 2.4mm 1.0mm Minimum Typical 2.4 0.9 1.5 0.60 14.0 20.0 1.0 11.0 14.0 1.50 3.00 0.85 2.7 1.0 1.7 0.65 14.13 20.13 mm Notes PCB Thickness RF Shield Height Global pad width Global pitch Pad Centre to Board edge Pad Centre to Board edge Global length of pad to edge of board RECOMMENDED PCB FOOTPRINT MODULE OUTLINE
(See note 2) 10.6 Pad Width 0.7 Typ Pad Length 1.65 Typ 54 40
. 2 5 1 1 1 x 1 h c t i p n p i
(all dimensions in mm) 39 34 RF OUT (See Note 1) 6
. 7 28 27 1 12 5
. 5 13 7 pin pitch 1x14 21.2 43 www.lairdtech.com Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS D C B A 4 4 4 0 0 0 v v v e e e R R R 1 2 3 4 I S A B _ C M I F F I D _ N _ A _ C M I R R 0 0 F F N N 4 4 P P T T 1 2 5 5 2 2 R R 1 i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 y y a a w w 3 3 1 2 7 7 2 2 R R R R 0 0 D N G A 1 2 2 R R 0 0 F F N N 3 3 2 2 R R 1 1 0 0 1 1 C C 2 F F p p 5 5 1 1 F F N N 2 2 J J 4 3 2 2 P P T T 1 0 0 2 2 R R R R 0 0 1 2 2 D N G A R R 0 0 F F N N 2 2 2 2 R R 1 1 8 8 C C 2 F F p p 5 5 1 1 F F N N i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 y y a a w w 3 3 F F N N 3 3 J J 4 3 1 1 P P T T 1 R R 0 0 F F N N 1 1 2 2 R R 2 D N G A 2 1 1 R R 0 0 F F N N 9 9 1 1 R R 7 7 FC F C p p 5 5 1 1 F F N N 1 2 3 3 P P T T 1 1 2 R R 0 0 F F N N 6 6 2 2 R R D N G A 1 2 2 R R 0 0 F F N N 4 4 2 2 R R 1 1 2 9 9 FC F C p p 5 5 1 1 F F N N D N G A 2 R R 0 0 7 7 1 1 R R 1 6 6 1 1 R R R R 0 0 5 5 1 1 R R R R 0 0 4 4 1 1 R R R R 0 0 2 2 2 1 1 1 o e r e t S d e d n e e l g n i S t u p t u O e n o h p d a e H i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 1 y y a a w w 3 3 2 1 1 J J 4 3 R R 0 0 2 2 2 R R 1 R R M M 1 1 5 5 R R 2 D N G A 1 R R 0 0 2 7 7 R R 1 0 0 1 1 R R R R M M 1 1 2 1 D N G A 2 2 R R 0 0 1 1 R R 1 1 R R 0 0 6 6 R R 1 1 9 9 R R R R 9 9 3 3 2 1 4 4 C C 2 n n 0 0 0 0 1 1 1 2 2 C C 2 n n 0 0 0 0 1 1 2 R R 9 9 3 3 4 4 R R 1 1 C C 2 1 u u 0 0 0 0 1 1 2 2 3 3
+C
+C u u 0 0 0 0 1 1 F F N N u u 0 0 0 0 1 1 F F N N 3 3 3 3
+C
+C 3 3 C C 2 1 u u 0 0 0 0 1 1 u u 0 0 0 0 1 1 F F N N 4 4 3 3
+C
+C 5 5 C C 2 1 u u 0 0 0 0 1 1 5 5 3 3
+C
+C u u 0 0 0 0 1 1 F F N N 6 6 C C 2 1 u u 0 0 0 0 1 1 P _ A _ R K P S P _ B _ R K P S N _ A _ R K P S N _ B _ R K P S 3 4 1 1 W W S S F F N N 1 2 3 4 3 4 2 2 W W S S F F N N 1 2 3 3 W W S S F F N N 1 2 K K 0 0 1 1 3 3 R R I O _ C C V 1 2 5 K K 0 0 1 1 8 8 R R I O _ C C V 1 2 3 3 1 1 R R K K 0 0 1 1 I O _ C C V 1 2 E V I T C A _ T B
0 _ O P I E V I T C A _ F R
7 _ O P I Y T I I R O R P _ T B _ E T A T S _ T B
5 _ O P I 3 4 4 4 W W S S F F N N 1 2 8 8 1 1 R R K K 0 0 1 1 I O _ C C V 1 2 T C A _ N A L W
6 _ O P I 44 www.lairdtech.com D C B 3 3 3 f f f o o o 1 1 1 t t t e e e e e e h h h S S S 8 8 8 0 0 0 0 0 0 2 2 2
, 1 1 1 3 3 3 r r r e e e b b b o o o t t t c c c O O O
, y y y a a a d d d i i i r r r F F F 1 s s s m m m m m m o o o C C C
d d d r r r a a a o o o B B B v v v e e e D D D i i i n n n M M M i i i 4 4 4 0 0 0
1 1 1 0 0 0 0 0 0
R R R
D D D M M M V V V T T T B B B r r r e e e b b b m m m u u u N N N t t t n n n e e e m m m u u u c c c o o o D D D e e e l l l t t t i i i T T T C C C e e e z z z i i i S S S
e e e t t t a a a D D D 2 3 4 5 t u p n i o e r e t s d e d n e
e g n S i l 4 4 J J 4 3 i i k k c c a a j j o o d d u u a a m m m m 5 5
. 2 2 y y a a w w 3 3 1 2 D N G A 2 2 5 5 3 3 R R 1 5 5 K K 7 7 5 5 K K 7 7 7 7 3 3 R R 1 2 R R 0 0 F F N N 3 3 3 3 R R 1 R R 0 0 F F N N 4 4 3 3 R R 2 1 D N G A R R 0 0 F F N N 9 9 3 3 R R R R 0 0 F F N N 8 8 3 3 R R 1 2 2 1 D N G A 3 3 L L n n 5 5 1 1 n n 5 5 1 1 4 4 L L 1 2 3 3 1 1 C C F F p p 5 5 1 1 1 2 4 4 1 1 C C F F p p 5 5 1 1 2 1 2 2 K K 62 62 3 3 R R F F I D _ N _ A _ C M I 2 2 8 8 2 2 R R R R 0 0 F F N N 1 1 3 3 R R R R 0 0 F F N N 1 1 9 9 2 2 R R R R 0 0 2 2 3 3 R R R R 0 0 1 n n 5 5 1 1 1 1 L L 2 1 2 n n 5 5 1 1 D N G A 2 2 L L D N G A 1 2 1 1 1 1 C C F F p p 5 5 1 1 1 2 2 2 1 1 C C F F p p 5 5 1 1 1 2 0 0 3 3 R R 2 2 K K 2 2 P _ B _ C M I P _ A _ C M I N _ B _ C M I N _ A _ C M I A Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS D C B A 4 4 4 0 0 0 v v v e e e R R R 1 2 3 4 5 N _ A _ C M I P _ A _ C M I N _ B _ C M I P _ B _ C M I I S A B _ C M I T N A 9 3 8 3 7 3 6 3 5 3 4 3 3 3 2 3 1 3 0 3 9 2 8 2 3 1 C N 2 1 C N 1 1 C N 0 1 C N 9 C N T N A 8 C N C _ N A _ C M I C _ P A _ C M I C _ N B _ C M I C _ P B _ C M I I S A B _ C M I NC14 NC15 NC6 NC5 NC4 USB_D-
USB_D+
GND4 UART_RTS UART_CTS UART_TX UART_RX PIO_7/RF_ACTIVE PIO_6/WLAN_ACTIVE BC05_RST SPKR_B_P SPKR_B_N SPKR_A_P SPKR_A_N AUDIO_GND GND2 PIO_0/BT_ACTIVE PIO_1/DCD PIO_3/RI PIO_2/DSR SPI_MOSI SPI_CLK SPI_MISO SPI_CS GND3 4 4 5 5 _ _ M M S S _ _ N N N N O O C C I Y T I R O R P _ T B
E T A T S _ T B
5 _ O P I R T D
5 1 _ O P I C N Y S _ M C P T U O _ M C P I N _ M C P K L C _ M C P 1 T X E _ D E L 0 T X E _ D E L B S U _ D D V I O _ D D V 1 D N G I N V _ R E T S A M 1 2 3 4 5 6 7 8 9 0 1 1 1 2 1 R T D
5 _ O P I Y T I 1 T X E D E L 0 T X E D E L I N _ M C P T U O _ M C P K L C _ M C P C N Y S _ M C P I R O R P _ T B _ E T A T S _ T B
5 _ O P I Module_RTS Module_CTS Module_TX Module_RX USB_MOD_D-
USB_MOD_D+
PIO_7/RF_ACTIVE PIO_6/WLAN_ACT RESET_ 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 4 4 U U R S D
2 _ O P I 1 1 5 5 R R K K 0 0 1 1 1 2 5 5 P P T T 1 2 1 4 4 5 5 R R R R 0 0 1 6 6 P P T T I O _ C C V 1 9 9 1 1 C C 2 n n 0 0 0 0 1 1 3 V 3 _ C C V 1 1 1 2 2 C C 2 n n 0 0 0 0 1 1 l X R _ e u d o M 1 1 4 4 R R K K 0 0 1 1 1 2 1 5 5 1 1 C C 2 n n 0 0 0 0 1 1 3 V 3 _ C C V 3 V 3 _ C C V 3 V 3 _ C C V 3 V 3 _ C C V S T C _ e u d o M l 7 7 4 4 R R K K 0 0 1 1 1 2 1 6 6 1 1 C C 2 n n 0 0 0 0 1 1 I O _ C C V I O _ C C V 3 V 3 _ C C V 5 4 C C V 1 1 U U _ E O T U O N I 5 5 2 2 1 1 Z Z S S 7 7 C C N N D N G 1 2 3 3 V 3 _ C C V 5 4 C C V 2 2 U U _ E O T U O N I 5 5 2 2 1 1 Z Z S S 7 7 C C N N D N G 1 2 3 1 7 7 1 1 C C 2 n n 0 0 0 0 1 1 I O _ C C V 5 4 C C V 3 3 U U _ E O T U O N I 5 5 2 2 1 1 Z Z S S 7 7 C C N N D N G 1 2 3 K K 0 0 1 1 0 0 4 4 R R N E _ D T F I 1 3 V 3 _ C C V 2 K K 0 0 1 1 6 6 4 4 R R N E _ D T F I 1 3 V 3 _ C C V 2 N E _ D T F I 1 K K 0 0 1 1 0 0 5 5 R R 3 V 3 _ C C V 2 X T _ B S U S T R _ B S U N E _ D T F I 3 V 3 _ C C V 1 2 3 3 4 4 R R K K 0 0 1 1 R T D _ B S U 5 5 5 5 R R K K 0 0 1 1 1 2 3 V 3 _ C C V I O _ C C V 5 5 U U I O _ C C V 1 0 0 2 2 C C 2 n n 0 0 0 0 1 1 2 R R 0 0 5 5 4 4 R R 1 S T C _ B S U R S D _ B S U 2 R R 0 0 8 8 4 4 R R 1 N E R W P _ B S U 2 R R 0 0 9 9 4 4 R R 1 I O _ C C V 3 V 3 _ C C V 1 2 4 4 4 4 R R K K 0 0 1 1 1 2 2 2 4 4 R R K K 0 0 1 1 S T C _ e u d o M l l X R _ e u d o M R S D
2 _ O P I I R
3 _ O P I 2 4 6 8 0 1 2 1 1 1 P P J J 2 2 X X 6 6 r r e e d d a a e e H H F F N N 1 3 5 7 9 1 1 D C D
1 _ O P I R T D
5 _ O P I S T R _ e u d o M l _ T E S E R l X T _ e u d o M C P _ I S O M _ P S C P _ O S I M _ P S I I 3 V 3 _ C C V 1 2 3 3 5 5 R R K K 0 0 1 1 642 2 2 P P J J 135 F F N N 2 2 5 5 R R K K 0 0 1 1 1 2 3 V 3 _ C C V K K 0 0 1 1 6 6 5 5 R R 2 1 7 7 5 5 R R K K 0 0 1 1 2 1 O S I M _ P S I 2 8 8 5 5 R R K K 0 0 1 1 1 K K 0 0 1 1 1 1 6 6 R R S C _ P S I K L C _ P S I I S O M _ P S I 2 1 K K 0 0 1 1 3 3 6 6 R R 0 2 9 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 O 4 I 1 O 5 I 2 O 6 I 3 O 7 I C C V _ 2 E O _ 1 E O 4 O 1 I 5 O 6 O 2 I 7 O 3 I 0 I D N G 1 2 3 4 5 6 7 8 9 0 1 C P _ S C _ P S I C P _ O S I M _ P S I C P _ K L C _ P S I C P _ I S O M _ P S I K K 0 0 1 1 0 0 6 6 R R K K 0 0 1 1 9 9 5 5 R R 2 2 1 1 5 5 6 6 R R K K 0 0 1 1 4 4 6 6 R R K K 0 0 1 1 1 1 2 2 6 6 R R K K 0 0 1 1 2 2 1 2 I O _ C C V 3 V 3 _ C C V I O _ C C V D N G A D N G A SPKR_B_P SPKR_B_N SPKR_A_P SPKR_A_N PIO_0/BT_ACTIVE PIO_1/DCD PIO_3/RI PIO_2/DSR SPI_CLK 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 1 9 9 6 6 R R 2 R R 0 0 SPI_MOSI SPI_MISO SPI_CS 0 T X E D E L 2 2 2 D D 1 1 1 J J 0 0 0 0 Q Q
0 0 0 0 1 1 A A
C C M M S S H H R R 0 0 3 3 1 1 1 1 7 7 R R 2 1 1 T X E D E L 2 1 1 D D 1 1 1 J J 0 0 0 0 Q Q
0 0 0 0 1 1 A A
C C M M S S H H R R 0 0 3 3 1 1 0 0 7 7 R R 2 1
D _ D O M _ B S U N N O C _ D D V R T D
5 _ O P I R S D
2 _ O P I I R
3 _ O P I D C D
1 _ O P I K L C _ M C P I N _ M C P C N Y S _ M C P T U O _ M C P 0 0 0 0 1 1 R R 5 5 K K 1 1 1 2 3 V 3 _ C C V
D _ D O M _ B S U D C D _ B S U X R _ B S U I I R
3 _ O P _ B S U 2 R R 0 0 6 6 6 6 R R 1 2 R R 70 70 6 6 R R 1 2 R R 80 80 6 6 R R 1 l X T _ e u d o M I R
3 _ O P I D C D
1 _ O P I B I S A B _ C M I N _ B _ R K P S N _ A _ R K P S P _ B _ C M I P _ A _ C M I 2 4 6 8 0 1 4 4 P P J J F F N N 1 3 5 7 9 D N G A D N G A N _ B _ C M I N _ A _ C M I P _ B _ R K P S P _ A _ R K P S 2 1 642 4 4 4 4 2 2 X X C C L L 4 4 7 7 3 3 P P J J 135 F F N N 5 5 J J 0 1234567891 1 1 X X 0 0 1 1 R R E E D D A A E E H H 3 3 3 f f f o o o 2 2 2 t t t e e e e e e h h h S S S 8 8 8 0 0 0 0 0 0 2 2 2
, 1 1 1 3 3 3 r r r e e e b b b o o o t t t c c c O O O
, y y y a a a d d d i i i r r r F F F 1 s s s m m m m m m o o o C C C
d d d r r r a a a o o o B B B v v v e e e D D D i i i n n n M M M i i i 4 4 4 0 0 0
1 1 1 0 0 0 0 0 0
R R R
D D D M M M V V V T T T B B B r r r e e e b b b m m m u u u N N N t t t n n n e e e m m m u u u c c c o o o D D D e e e l l l t t t i i i T T T C C C e e e z z z i i i S S S
e e e t t t a a a D D D 2 3 4 5 S T R _ e u d o M l R T D
5 _ O P I 3 V 3 _ C C V 1 8 8 1 1 C C 2 n n 0 0 0 0 1 1 D C 45 www.lairdtech.com C P _ K L C _ P S I C P _ S C _ P S I A Laird Technologies BTM520/521 Bluetooth Multimedia Plus Module MECHANICAL DRAWINGS D C B A t t r r e e V V _ _ A A M M S S 2 3 4 5 6 6 J J 1 1 2 1 1 1 1 R 1R 1 K K 9 9 F F N N 1 1 K K 9 9 2 2 9 9 R R F F N N 1 1 K K 9 9 1 1 9 9 R R F F N N k c a r T m h o _ 0 5 2 0 0 9 9 R R R R 0 0 1 1 1 k c a r T m h o 0 5 T N A 2 2 4 4 M M l l e e o o H H g g n n i i t t n n u u o o M M 3 3 M M 2 2 M M 1 1 M M l l e e o o H H g g n n i i t t n n u u o o M M l l e e o o H H g g n n i i t t n n u u o o M M l l e e o o H H g g n n i i t t n n u u o o M M 2 2 D D I I F F 1 1 D D I I F F l l a a i i c c u u d d i i F F l l a a i i c c u u d d i i F F N E R W P _ B S U P E E L S _ B S U K K 0 0 1 1 6 6 8 8 R R 2 1 I O _ 3 V 3 _ D D V
B S U
B S U 3 3 1 1 P P T T 4 4 1 1 P P T T 5 5 1 1 P P T T 1 2 3 4 I I T T N N O O P P _ _ T T S S E E T T _ _ H H T T 1 1 1 1 P P T T I I T T N N O O P P _ _ T T S S E E T T _ _ H H T T 2 2 1 1 P P T T 1 1 3 V 3 _ C C V 1 2 7 7 2 2 nC n C 0 0 0 0 1 1 _ T E S E R 1 1 J J 1 1 O O H H
0 0 0 0 1 1 A A
G G M M S S 5 H 5 H D D R R 0 0 1 1 1 1 3 3 7 7 R R 1 2 2 1 3 V 3 _ C C V 3 V 3 _ C C V 1 3 3 2 2 C C 2 n n 0 0 0 0 1 1 1 2 2 2 2 2 C C 2 2 u u 2 2 2 2 7 7 R R 1 1 K K 9 9 6 6 7 7 R R 3 3 K K 1 1 1 2 1 2 1 5 5 2 2 C C 2 N N 0 0 1 1 8 7 6 5 F F M M
E E J J D D A A
6 6 2 2 7 7 1 1 P P C C M M 9 6 6 U U t u o V J D A GND l y a e d C D G R W P 1 _ n V i 2 _ n V i N D H S
D N G 1 2 3 4 5 4 C C V 7 7 U U 1 C N T U O N I D N G 7 7 1 1 V V S S 7 7 C C N N 1 2 3 1 9 9 2 2 C C 2 n n 0 0 0 0 1 1 K K 0 0 1 1 9 9 7 7 R R 2 K K 1 1 0 0 8 8 R R 1 1 3 V 3 _ C C V 2 3 4 0 0 0 0 0 0 1 1
S S F F B B 6 6 W W S S 1 2 2 K K 0 0 1 1 1 5 5 7 7 R R 5 5 0 0 8 8 0 0 R R 1 1
. 0 0 8 8 P P T T 7 7 P P T T 4 4 7 7 R R 1 2 1 1 2 h h c c t t i i w w s s n n o o i i t t i i s s o o p p 3 3 5 5 W W S S 1 3 F F F F O O 1 2 6 6 2 2 C C 2 2 u u 2 2 N E R W P _ B S U 1 2 4 4 2 2 nC n C 0 0 0 0 1 1 6 4 1 5 23 0 0 1 1 8 8 5 5 F F R R I I 1 1 Q Q 7 7 7 7 R KR K 1 1 2 1 2 8 8 7 7 R R K K 0 0 1 1 1 1 8 8 2 2 C C 2 F F N N B S U _ D D V 3 V 3 _ C C V
D _ D O M _ B S U 2
B S U
B S U R R 0 0 F F N N 3 3 9 9 R R 2 2 1 R R 0 0 R R 0 0 1 1 1 8 8 R R 1 2 2 8 8 R R
D
D C C 4 4 5 5 T T A A 6 B 6 B D D 2 3
D _ D O M _ B S U 2 R R 0 0 F F N N 1 4 4 9 9 R R B B B B S S U U 6 C NC_3 NC_2 NC_1 VCCIO VCC 29 25 23 1 19 8 8 U U 3 3 8 8 R R K K 7 7
. 4 4 1 2 I O _ 3 V 3 _ D D V 1 N N O C _ D D V 1 2 1 1 3 3 nC n C 0 0 0 0 1 1 1 2 0 0 3 3 C C n n 1 1 m m m m 1 1
. 2 2 _ _ k k c c a a j j r r e e w w o o P P C C D D 1 1 N N C C 1 2 3 R R 2 2 3 3 2 2 T T F F 33 12 5 13 24 20 17 4 THPAD NC_4 NC_5 NC_6 AGND GND GND GND 7 7 8 8 R R K K 0 0 1 1 1 2 2 2 1 2 0 1 1 1 9 5 1 4 1 6 1 0 S U B C 1 S U B C 2 S U B C 3 S U B C 4 S U B C M D B S U P D B S U
S T C
S T R D X T D X R
R S D
D C D
R T D I
R
T E S E R I C S O O C S O T U O 3 V 3 T S E T 8 2 3 0 3 2 X T _ B S U X R _ B S U S T C _ B S U S T R _ B S U 3 6 7 1 3 8 1 7 2 8 2 6 2 2 F F
N N 1 5 5 8 8 R R R S D _ B S U I I R
3 _ O P _ B S U D C D _ B S U R T D _ B S U B S U _ D D V 1 2 7 7 K K 8 4 8 4 8 8 R R 2 1 4 4 8 8 R R K K 0 0 1 1 I D T F _ T E S E R B 5 3 3 D D 2 1 A A 1 1 S S _ _ e e d d o o D D i i N N O C _ D D V 46 www.lairdtech.com 5 5 L L 2 1 D D 1 1 N N S S 1 1 2 2 2 2 G G P P 8 8 1 1 M M L L B B 5 5 P P J J 5 B S U _ D D V D
1 2 3 4
D
D c c V 5 D N G 6 A Laird Technologies s s s e e e i i i l l l p p p p p p u u u S S S _ _ _ r r r e e e w w w o o o P P P _ _ _ v v v e e e D D D _ _ _ n n n M M M i i i i i i 4 4 4 0 0 0 v v v e e e R R R 4 4 4 0 0 0
1 1 1 0 0 0 0 0 0
R R R
D D D M M M V V V T T T B B B r r r e e e b b b m m m u u u N N N t t t n n n e e e m m m u u u c c c o o o D D D 3 3 3 f f f o o o 3 3 3 t t t e e e e e e h h h S S S 8 8 8 0 0 0 0 0 0 2 2 2
, 1 1 1 3 3 3 r r r e e e b b b o o o t t t c c c O O O
, y y y a a a d d d i i i r r r F F F 1 e e e l l l t t t i i i T T T C C C e e e z z z i i i S S S
e e e t t t a a a D D D 2 3 4 5 BTM520/521 Bluetooth Multimedia Plus Module ORDERING INFORMATION ORDERING INFORMATION BTM520 BTM521 DVK-BTM520 DVK-BTM521 Bluetooth Multimedia Plus Module (external antenna) Bluetooth Multimedia Plus Module with integrated antenna Development Board with BTM520 soldered in place Development Board with BTM521 soldered in place GENERAL COMMENTS This is a preliminary user manual. Please check with Laird Technologies for the latest information before commencing a design. If in doubt, ask. Refer to the schematic BTV-R-003.pdf for the Development Kit for examples of typical pin connections. A pdf of the schematic can be downloaded from the product web page. global solutions: local support TM USA: +1.800.492.2320 Europe: +44.1628.858.940 Asia: +852.2268.6567 wirelessinfo@lairdtech.com www.lairdtech.com/wireless 47 Laird Technologies is the world leader in the design and manufacture of customized, performance-critical products for wireless and other advanced electronics applications. Laird Technologies partners with its customers to find solutions for applications in various industries such as:
Network Equipment Telecommunications Data Communications Automotive Electronics Computers Aerospace Military Medical Equipment Consumer Electronics Laird Technologies offers its customers unique product solutions, dedication to research and development, as well as a seamless network of manufacturing and customer support facilities across the globe. LWS-UM-BTM520-521 0509 Copyright 2009 Laid Technologies, Inc. All rights reserved. The information contained in this manual and the accompanying software programs are copyrighted and all rights are reserved by Laird Technologies, Inc. Laird Technologies, Inc. reserves the right to make periodic modifications of this product without obligation to notify any person or entity of such revision. Copying, duplicating, selling, or otherwise distributing any part of this product or accompanying documentation/software without the prior consent of an authorized representative of Laird Technologies,Inc. is strictly prohibited. All brands and product names in this publication are registered trademarks or trademarks of their respective holders. This material is preliminary Information furnished by Laird Technologies in this specification is believed to be accurate. Devices sold by Laird Technologies are covered by the warranty and patent indemnification provisions appearing in its Terms of Sale only. Laird Technologies makes no warranty, express, statutory, and implied or by description, regarding the information set forth herein. Laird Technologies reserves the right to change specifications at any time and without notice. Laird Technologies products are intended for use in normal commercial and industrial applications. Applications requiring unusual environmental requirements such as military, medical life-
support or life-sustaining equipment are specifically not recommended without additional testing for such application. Limited Warranty, Disclaimer, Limitation of Liability For a period of one (1) year from the date of purchase by the OEM customer, Laird Technologies warrants the OEM transceiver against defects in materials and workmanship. Laird Technologies will not honor this warranty (and this warranty will be automatically void) if there has been any (1) tampering, signs of tampering; 2) repair or attempt to repair by anyone other than an Laird Technologies authorized technician. This warranty does not cover and Laird Technologies will not be liable for, any damage or failure caused by misuse, abuse, acts of God, accidents, electrical irregularity, or other causes beyond Laird Technologies control, or claim by other than the original purchaser. In no event shall Laird Technologies be responsible or liable for any damages arising: From the use of product; From the loss of use, revenue or profit of the product; or As a result of any event, circumstance, action, or abuse beyond the control of Laird Technologies, whether such damages be direct, indirect, consequential, special or otherwise and whether such damages are incurred by the person to whom this warranty extends or third party. If, after inspection, Laird Technologies determines that there is a defect, Laird Technologies will repair or replace the OEM transceiver at their discretion. If the product is replaced, it may be a new or refurbished product. 48
frequency | equipment class | purpose | ||
---|---|---|---|---|
1 | 2009-10-20 | 2402 ~ 2480 | DSS - Part 15 Spread Spectrum Transmitter | Class II permissive change or modification of presently authorized equipment |
2 | 2009-09-16 | 2402 ~ 2480 | DSS - Part 15 Spread Spectrum Transmitter | Original Equipment |
app s | Applicant Information | |||||
---|---|---|---|---|---|---|
1 2 | Effective |
2009-10-20
|
||||
1 2 |
2009-09-16
|
|||||
1 2 | Applicant's complete, legal business name |
Ezurio Ltd
|
||||
1 2 | FCC Registration Number (FRN) |
0013387386
|
||||
1 2 | Physical Address |
Saturn House, Mercury Park
|
||||
1 2 |
Wooburn Green, N/A HP10 0HH
|
|||||
1 2 |
United Kingdom
|
|||||
app s | TCB Information | |||||
1 2 | TCB Application Email Address |
r******@twn.tuv.com
|
||||
1 2 | TCB Scope |
A4: UNII devices & low power transmitters using spread spectrum techniques
|
||||
app s | FCC ID | |||||
1 2 | Grantee Code |
PI4
|
||||
1 2 | Equipment Product Code |
520B
|
||||
app s | Person at the applicant's address to receive grant or for contact | |||||
1 2 | Name |
D****** W****
|
||||
1 2 | Title |
Engineering Specialist
|
||||
1 2 | Telephone Number |
913 9********
|
||||
1 2 | Fax Number |
913 4********
|
||||
1 2 |
d******@lairdtech.com
|
|||||
app s | Technical Contact | |||||
1 2 | Firm Name |
Ezurio Limited
|
||||
1 2 | Name |
T******** J******** W********
|
||||
1 2 | Physical Address |
Saturn House, Mercury Business Park
|
||||
1 2 |
Wooburn Green, HP10 0HH
|
|||||
1 2 |
United Kingdom
|
|||||
1 2 | Telephone Number |
+4416********
|
||||
1 2 |
t******@lairdtech.com
|
|||||
app s | Non Technical Contact | |||||
n/a | ||||||
app s | Confidentiality (long or short term) | |||||
1 2 | Does this application include a request for confidentiality for any portion(s) of the data contained in this application pursuant to 47 CFR § 0.459 of the Commission Rules?: | Yes | ||||
1 2 | Long-Term Confidentiality Does this application include a request for confidentiality for any portion(s) of the data contained in this application pursuant to 47 CFR § 0.459 of the Commission Rules?: | No | ||||
if no date is supplied, the release date will be set to 45 calendar days past the date of grant. | ||||||
app s | Cognitive Radio & Software Defined Radio, Class, etc | |||||
1 2 | Is this application for software defined/cognitive radio authorization? | No | ||||
1 2 | Equipment Class | DSS - Part 15 Spread Spectrum Transmitter | ||||
1 2 | Description of product as it is marketed: (NOTE: This text will appear below the equipment class on the grant) | Bluetooth Multi-Media Module | ||||
1 2 | Related OET KnowledgeDataBase Inquiry: Is there a KDB inquiry associated with this application? | No | ||||
1 2 | Modular Equipment Type | Single Modular Approval | ||||
1 2 | Purpose / Application is for | Class II permissive change or modification of presently authorized equipment | ||||
1 2 | Original Equipment | |||||
1 2 | Composite Equipment: Is the equipment in this application a composite device subject to an additional equipment authorization? | No | ||||
1 2 | Related Equipment: Is the equipment in this application part of a system that operates with, or is marketed with, another device that requires an equipment authorization? | No | ||||
1 2 | Grant Comments | Power Output listed is conducted. The antenna must not be co-located or operating in conjunction with any other antenna or transmitter except in accordance with the FCC multi-transmitter product procedures. OEM integrators and end-Users must be provided with transmitter operation conditions for satisfying RF exposure compliance. This grant is valid only when the device is sold to OEM integrators and the OEM integrators are instructed to ensure that the end user has no manual instructions to remove or install the device. | ||||
1 2 | Is there an equipment authorization waiver associated with this application? | No | ||||
1 2 | If there is an equipment authorization waiver associated with this application, has the associated waiver been approved and all information uploaded? | No | ||||
app s | Test Firm Name and Contact Information | |||||
1 2 | Firm Name |
Electronics Testing Center, Taiwan
|
||||
1 2 | Name |
W****** T********
|
||||
1 2 | Telephone Number |
886-3********
|
||||
1 2 | Fax Number |
886-3********
|
||||
1 2 |
w******@etc.org.tw
|
|||||
1 2 |
w******@etc.org.tw
|
|||||
Equipment Specifications | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Line | Rule Parts | Grant Notes | Lower Frequency | Upper Frequency | Power Output | Tolerance | Emission Designator | Microprocessor Number | |||||||||||||||||||||||||||||||||
1 | 1 | 15C | 2402.00000000 | 2480.00000000 | 0.0040000 | ||||||||||||||||||||||||||||||||||||
Line | Rule Parts | Grant Notes | Lower Frequency | Upper Frequency | Power Output | Tolerance | Emission Designator | Microprocessor Number | |||||||||||||||||||||||||||||||||
2 | 1 | 15C | 2402.00000000 | 2480.00000000 | 0.0040000 |
some individual PII (Personally Identifiable Information) available on the public forms may be redacted, original source may include additional details
This product uses the FCC Data API but is not endorsed or certified by the FCC