Ezurio PI4510B User manual

Category
Bluetooth music receivers
Type
User manual

This manual is also suitable for

BTM510/511
MULTIMEDIA MODULE
USER MANUAL
Innovative Technology
for a Connected World
www.lairdtech.com
2
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONTENTS
BTM510/511 Bluetooth® Module ..3
Overview .............................................. 3
BTM510/511 Key Features ................... 3
Specications ................................4
Detailed Specications ......................... 4
Pin Denitions ...................................... 6
Operating Parameters ...................8
Voltage Specications .......................... 8
Notes for PCB Layout ........................... 8
Conguring the BTM510/511 ........9
References ........................................... 9
Glossary of Terms ............................... 10
AT Command Set .............................. 11
Assumptions ...................................... 11
Commands ........................................ 11
General AT Commands ..................... 11
General Bluetooth® Control ............... 22
Hardware Unit Control ....................... 28
Bluetooth® Proles ............................. 30
Secure Simple Pairing ......................... 37
Link Key Management ....................... 37
Miscellaneous...................................... 38
Appendix ........................................... 39
BT-MM Unsolicited Messages ............ 39
BT-MM Error Responses ..................... 39
Mechanical Drawings ..................41
Mechanical Details ............................. 41
Recommended PCB Footprint ............ 41
Diagrams ............................................ 42
Ordering Information ..................45
Product Part Numbers ........................ 45
General Comments ............................ 45
TABLE OF
CONTENTS
3
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
The BTM510 and BTM511 are low-power Bluetooth® modules designed for adding robust
audio and voice capabilities. Based on the market-leading Cambridge Silicon Radio BC05
chipset, these modules provide exceptionally low power consumption with outstanding range.
Supporting the latest Bluetooth® Version 2.1+EDR speci cation, these modules provide the
important advantage of secure simple pairing that improves security and enhances easy use.
At only 14mm x 20mm, the compact size of the BTM510 makes it ideal for battery-powered
or headset form factor audio and voice devices. With a 16-bit stereo codec and microphone
inputs to support both stereo and mono applications, these modules also contain a full,
integrated Bluetooth®-quali ed stack along with SPP, HFP 1.5, HSP, AVRCP, and A2DP
pro les. Customers using these modules may list and promote their products free of charge
on the Bluetooth® website.
The BTM510/511 modules include an embedded 32-bit, 64-MIPS DSP core within the BC05.
This is integrated with the Bluetooth® functionality which allows designers to add signi cant
product enhancements including features such as echo cancellation, noise reduction, and
audio enhancement using additional soft codecs. The availability of the 16MB of  ash memory
in the module allows complex functionality to be included. DSP routines can be licensed
through a number of specialist partners. Typical applications for these modules include
Bluetooth® stereo headsets, VoIP phones, and wireless audio links.
To speed product development and integration, Laird Technologies has developed a
comprehensive AT command interface that simpli es application development, including
support for audio and headset functionality. Access to GPIO pins allows mapping for direct
connection to actuator buttons on headsets. Combined with a low-cost development kit,
Laird Technologies’ Bluetooth® modules provide faster time to market.
FEATURES
• Fully featured Bluetooth® multimedia module
• Bluetooth® v2.1+EDR
Supports mono and stereo
headset applications
Adaptive Frequency Hopping to cope with
interference from other wireless devices
• 32bit Kalimba DSP for enhanced
audio applications
• Support for Secure Simple Pairing
• External or internal antenna options
• HSP, HFP, A2DP, and AVRCP audio pro les
• 16-bit stereo codec and microphone input
• Integrated audio ampli ers for driving
stereo speaker
Comprehensive AT interface for
simple programming
• Bluetooth® END product quali ed
• Compact size
• Class 2 output – 4dBm
• Low power operation
• Wi-Fi co-existence hardware support
APPLICATION AREAS
• High-quality stereo headsets
• Mono voice headsets
• Hands-free devices
• Wireless audio cable replacement
• MP3 and music players
• Phone accessories
• VoIP products
• Cordless headsets
Automotive
OVERVIEW AND
KEY FEATURES
4
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CATEGORIES FEATURE IMPLEMENTATION
Wireless Specication Standards Supported Bluetooth® v2.1 + EDR
Transmit Class Class 2
Frequency 2.402 – 2.480 GHz
Channels 79 channels Frequency Hopping Adaptive Frequency Hopping
Max Transmit Power +4 dBm @ antenna pad – BTM510
+4 dBmi from integrated antenna – BTM511 (provisional)
Min Transmit Power -27 dBm @ antenna pad – BTM510
-27 dBmi from integrated antenna – BTM511 (provisional)
Receive Sensitivity Better than -86 dBm
Data Transfer rate Up to 300kbps
Range Up to 50 meters free space (Data)
Antenna Modes External Antenna 50 Ohm matched SMT pad – BTM510
Integrated Antenna +0dB (provisional) multilayer ceramic – BTM511
UART Interface Serial Interface RS-232 bi-directional for commands and data 16550 compat-
ible
Baud Rate Congurable from 1,200 to 921,600bps
Non-standard baud rates supported
Bits 8
Parity Odd, even, none
Stop bits 1 or 2
Default Serial parameters 9,600,n,8,1
Levels Set by VDD_USB pin
Modem Control DTR, DSR, DCD, RI, RTS, CTS
General Purpose Interface I/O 8 general purpose I/O pins
I2S Stereo Audio Digital Interface Bus
LED Two
Audio Codec Integrated stereo codec with -95dB SNR for DAC
Ampliers Direct drive for 22Ω Mono Speaker / 44Ω Stereo Speakers
Microphone Input with bias for low noise microphone
Sample Rates (DAC & ADC) 8, 11.025, 16, 22.05, 32 & 44.1kHz
Protocols & Firmware Bluetooth® Stack V2.1 compliant. Fully integrated.
Proles GAP (Generic Access Prole)
SDP (Service Discovery Prole)
SPP (Serial Port Prole)
HSP
HFP – Audio Gateway and Handsfree
A2DP – Source and Sink
AVRCP – Target and Controller
Protocols RFCOMM
AVCTP
AVDTP
Firmware Upgrade Available over UART
SPECIFICATIONS
5
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CATEGORIES FEATURE IMPLEMENTATION
Command Interface AT Instruction set Comprehensive control of connection and module operation,
including extensions for Audio control.
Direct mapping of GPIO to audio functions, e.g. Play, Volume,
etc.
S Registers for non-volatile storage of parameters
DSP Kalimba DSP Integrated in BC05 32bit, 64MIPS, 16Mbps Flash Memory
(shared)
Applications Available from partners
Current Consumption Data Transfer Typically < 35mA
Stereo Music Typically < 70mA (including speaker drive)
Low Power Sniff Mode Less than 1.5mA
Supply Voltage Supply 3.0V – 3.6V DC
I/O 1.7V – 3.6V DC
USB 1.7V – 3.6V DC
Coexistence / Compatibility WLAN (802.11) 2-wire and 3-wire hardware coexistence schemes supported
Connections External Antenna (option) Pad for 50 Ohm antenna – BTM510
Interface Surface Mount Pads
Physical Dimensions 14.0mm x 20.0 x 1.6mm - BTM510
14.0mm x 26.0mm x 1.6mm - BTM511 (provisional)
Weight 3 grams
Environmental Operating Temperature -30°C to +70°C
Storage Temperature -40°C to +85°C
Approvals Bluetooth®Qualied as an END product
FCC Meets FCC requirements
Modular Approval (Integrated Antenna option – BTM511)
CE & R&TTE Meets CE and R&TTE requirements
Miscellaneous Lead free Lead-free within EU requirements and RoHS compliant
Warranty 12 Months
Development Tools Development Kit Development board and software tools
SPECIFICATIONS
CATEGORIES FEATURE IMPLEMENTATION
Wireless Specication Standards Supported Bluetooth® v2.1 + EDR
Transmit Class Class 2
Frequency 2.402 – 2.480 GHz
Channels 79 channels Frequency Hopping Adaptive Frequency Hopping
Max Transmit Power +4 dBm @ antenna pad – BTM510
+4 dBmi from integrated antenna – BTM511 (provisional)
Min Transmit Power -27 dBm @ antenna pad – BTM510
-27 dBmi from integrated antenna – BTM511 (provisional)
Receive Sensitivity Better than -86 dBm
Data Transfer rate Up to 300kbps
Range Up to 50 meters free space (Data)
Antenna Modes External Antenna 50 Ohm matched SMT pad – BTM510
Integrated Antenna +0dB (provisional) multilayer ceramic – BTM511
UART Interface Serial Interface RS-232 bi-directional for commands and data 16550 compat-
ible
Baud Rate Congurable from 1,200 to 921,600bps
Non-standard baud rates supported
Bits 8
Parity Odd, even, none
Stop bits 1 or 2
Default Serial parameters 9,600,n,8,1
Levels Set by VDD_USB pin
Modem Control DTR, DSR, DCD, RI, RTS, CTS
General Purpose Interface I/O 8 general purpose I/O pins
I2S Stereo Audio Digital Interface Bus
LED Two
Audio Codec Integrated stereo codec with -95dB SNR for DAC
Ampliers Direct drive for 22Ω Mono Speaker / 44Ω Stereo Speakers
Microphone Input with bias for low noise microphone
Sample Rates (DAC & ADC) 8, 11.025, 16, 22.05, 32 & 44.1kHz
Protocols & Firmware Bluetooth® Stack V2.1 compliant. Fully integrated.
Proles GAP (Generic Access Prole)
SDP (Service Discovery Prole)
SPP (Serial Port Prole)
HSP
HFP – Audio Gateway and Handsfree
A2DP – Source and Sink
AVRCP – Target and Controller
Protocols RFCOMM
AVCTP
AVDTP
Firmware Upgrade Available over UART
6
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
PIN SIGNAL DESCRIPTION VOLTAGE
SPECIFICATION
1 PIO15 / DTR Host I/O VIO
2 PIO5/BT_STATE/BT_PRIORITY Host I/O, BT Co-existence VIO
3 PCM_IN PCM Data I/P VIO
4 PCM_OUT PCM Data O/P VIO
5 PCM_SYNC PCM Sync I/P VIO
6 PCM_CLK PCM CLK I/P VIO
7 LED_EXT1 Host I/O See Note 2
8 LED_EXT0 Host I/O See Note 2
9 GND
10 VDD_USB USB supply voltage
11 VDD_IO I/O supply voltage
12 VDD_IN Main supply voltage
13 GND
14 SPI_CSB SPI bus chip select I/P VIO
15 SPI_MISO SPI bus serial O/P VIO
16 SPI_CLK SPI bus clock I/P VIO
17 SPI_MOSI SPI bus serial I/P VIO
18 PIO2/DSR Host I/O VIO
19 PIO3/RI Host I/O VIO
20 PIO1/DCD Host I/O VIO
21 PIO0/BT_ACTIVE Host I/O, BT Co-existence VIO
22 GND
23 AUDIO_GND Audio ground
24 SPKR_A_N Speaker, channel A- (left) See note 3
25 SPKR_A_P Speaker, channel A+ (left) See note 3
26 SPKR_B_N Speaker, channel B- (right) See note 3
27 SPKR_B_P Speaker, channel B+ (right) See note 3
28 MIC_BIAS Microphone bias See note 4
29 MIC_BP_C Microphone, channel A- (left) See note 4
30 MIC_BN_C Microphone, channel A+ (left) See note 4
31 MIC_AP_C Microphone, channel B- (right) See note 4
32 MIC_AN_C Microphone, channel B+ (right) See note 4
33 Unused
34 ANT Antenna connection – BTM510 (50 ohm matched)
35 Unused
36 Unused
37 Unused
38 Unused
39 Unused
40 Unused
41 Unused
42 Unused
43 Unused
44 Unused
45 USB_D- VUSB
46 USB_D+ VUSB
47 GND
48 UART_RTS Request to Send O/P VUSB
49 UART_CTS Clear to Send I/P VUSB
50 UART_TX Transmit data O/P VUSB
51 UART_RX Receive data I/P VUSB
52 PIO7/RF_ACTIVE Host I/O, BT Co-existence VIO
53 PIO6/WLAN_ACTIVE Host I/O, BT Co-existence VIO
54 Reset Module reset I/P See Note 1
SPECIFICATIONS
7
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
SPECIFICATIONS
The voltage on the module pad should be maintained below 0.5V
in which case the Ron of the FET is around 20Ω. Provided that this
condition is met, then the current owing through the diode is:
3. The speaker output is capable of driving loads with a minimum
impedance of 16Ω directly.
4. The audio inputs can operate in either line input mode or microphone
mode. The input circuit has a two stage amplier – the rst stage
provides a xed 24dB gain and the second a variable gain of
between -3dB and 18dB. If an input gain of less than 24dB is selected,
then the rst stage is switched out and the module is operating in line
input mode.
Iled =VDD - VFWhere VF is the forward bias voltage of the LED.
R + 20
When operating in microphone mode the
microphone should be biased as follows:
MIC_AP
MIC_AN
Module
External Circuit
External Circuit
MIC_BIAS
15 nH
15 pF
15 nH
15 pF
The input impedance on the microphone inputs (in microphone mode) is typically 6kΩ. In order to
maintain the regulation on the MIC_BIAS pin, the current drawn must be in the range 0.2 – 1.23mA.
If the microphone draws less current than this then an additional resistor to ground must be added to
pre-load the microphone output. The audio input is designed for use with inputs of between 1μA
and 10μA at 94dB SPL. If the biasing resistors are set to 1kΩ this implies a microphone with a
sensitivity in the range -40dBV to -60dBV.
The low pass lter elements formed by the inductor and capacitor are required to eliminate RF pick
up on the microphone inputs and should be placed as close to the module as possible.
When operating in line input mode, the input can be connected directly to the module input pins
in either single or double ended conguration as follows:
AC AC
Single ended Double ended
Note: 1. Reset input is active low. Input is pulled up to VDD_IN via 22k.
Minimum reset pulse width is 5ms.
2. LED drive pins are open drain outputs and hence the external circuit
to the right should be used.
VDD
Module External Circuit
R
8
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
NOTES FOR PCB LAYOUT:
1. The RF output pin must be matched to a 50Ω strip-line or coplanar waveguide on the antenna-less version (BTM510).
2. Ensure that there are no exposed conductors under the module to avoid shorts to the test points on the module underside.
3.  ThePCBfootprintisprovidedforguidanceonly.UsersmaywishtomodifythePCBlanddimensionstosuittheirspecic
manufacturing or process.
OPERATING PARAMETERS
RECOMMENDED OPERATING CONDITIONS
Operating Condition Min Max
VDD_USB
(USB compatibility not required) 1.7 3.6
VDD_USB
(USB compatibility required) 3.1 3.6
VDD_IO 1.7 3.3
VDD_IN 3.0 3.6
VOLTAGE SPECIFICATIONS
LOGIC LEVELS (VUSB)
Input Voltage Levels Min Typ Max
Vih 0.625VDD_USB VDD_USB+0.3
Vil -0.3 0.25VDD_USB
Output Voltage Levels
Voh (Iout = -4mA) 0.75VDD_USB VDD_USB
Vol (Iout = 4mA) 0 0.125
LOGIC LEVELS (VIO)
Input Voltage Levels Min Typ Max
Vih 0.625VDD_IO VDD_IO+0.3
Vil -0.3 0.25VDD_IO
Output Voltage Levels
Voh (Iout = -4mA) 0.75VDD_IO VDD_IO
Vol (Iout = 4mA) 0 0.125
LOGIC LEVELS (VUSB – USB TERMINALS D+, D-)
Input Voltage Levels Min Typ Max
Vih 0.7VDD_USB
Vil 0.3VDD_USB
Output Voltage Levels (to correctly terminated USB cable)
Voh 2.8 VDD_USB
Vol 0 0.2
OPERATING
PARAMETERS
9
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
INTRODUCTION
This document describes the protocol used to control and congure the BT-MM Bluetooth device.
The AT commands described in the document apply to rmware releases from V14.0.9 onwards.
The protocol is similar to the industry standard Hayes AT protocol used in telephony modems which is
appropriate for cable replacement scenarios, as both types of devices are connection oriented.
Just like telephony modems, Laird Technologies’ devices powers up in an unconnected state and will only respond
via the serial interface. In this state the device will not even respond to Bluetooth Inquiries. Then, just like controlling
a modem, the host can issue AT commands which map to various Bluetooth activities. Conguration can be saved,
so that on a subsequent power up the device is discoverable or automatically connects.
The device has a serial interface and an RF communications end point. The latter has a concept of connected
and unconnected modes and the former will have a concept of command and data modes. This leads to the
matrix of states shown below.
RF UNCONNECTED RF CONNECTED
Local Command Mode OK OK
Remote Command Mode ILLEGAL OK
Data Mode ILLEGAL OK
The combinations, ‘Data and RF Unconnected Mode’ and ‘Remote Command and RF Unconnected Mode’ do
not make sense and will be ignored.
Navigation between these states is done using the AT commands which are described in detail in subsequent
sections.
REFERENCES
[1] “AT Command Set”
[2] “BlueLab_v4.0_Release_Note.pdf”
[3] “Audio/Video Distribution Transport Protocol Specication” Rev.V12, 16/04/2007
[4] “Advanced Audio Distribution Prole Specication” Rev. V12, 16/04/2007
[5] “Audio/Video Remote Control Prole” 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 Specication Version 2.1 + EDR [vol3]”, 26 July 2007
10
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
Glossary of Terms
DESCRIPTION
A2DP : Advanced Audio Distribution Prole
ADC :Analogue to Digital Converter
AGHFP : Audio Gateway Hands-Free Prole
AT : Command prex, ‘Attention’
AVRCP : Audio/Video Remote Control Prole
BISM :Bluetooth Intelligent Serial Module
Codec :Device capable of encoding / decoding an analogue / digital signal
DAC :Digital to Analogue Converter
DSP :Digital Signal Processor
DUN : Dial-Up Network Prole
FTP : File Transfer Prole
GOEP : Generic Object Access Exchange Prole
GPIO :General Purpose Input Output
HFP : Hands Free Prole
HID : Human Interface Device Prole
I/O (IO) : Input/Output
Mic :Microphone
OPP : Object Push Prole
PBAP : Phone Book Access Prole
PWM :Pulse Width Modulation
Sxxx :S-Register No. xxx
SBC : Sub Band Codec
SPP : Serial Port Prole
TBD :To Be Determined
UART :Universal Asynchronous Receiver / Transmitter
PT :PASSS THROUGH Command
UI :UNIT INFO Command
SUI :SUBUNIT INFO Command
11
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
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
respectively and shall be represented by the string <cr,lf>.
3. All Bluetooth addresses are represented by a xed 12 digit hexadecimal string, case insensitive.
4. All Bluetooth Device Class codes are represented by a xed 6 digit hexadecimal string, case insensitive.
Commands
The following syntax is employed throughput this document to describe optional or mandatory parameters for
AT commands.
<bd_addr> A 12 character Bluetooth address consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
<devclass> A 6 character Bluetooth device class consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
N A positive integer value.
M 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
<string> A string delimited by double quotes. E.g. “Hello World”. The “ character MUST be supplied as delimiters.
<uuid> A 4 character UUID number consisting of ASCII characters ‘0’ to ‘9’, ‘A’ to ‘F’ and ‘a’ to ‘f’.
General AT Commands
1. AT
Used to check the module is available.
Response: <cr,lf>OK<cr,lf>
2. ATA {Answer Call}
Accept an incoming connection, which is indicated by the unsolicited string
<cr,lf>RING 123456789012<cr,lf> every second. 123456789012 is the Bluetooth address of
the connecting device.
Response: <cr,lf>CONNECT 123456789012<cr,lf>
3. ATD<bd_addr>,<uuid> {Make Outgoing Connection}
Make a connection to device with Bluetooth address <bd_addr> and SPP prole <uuid>.
The <uuid> is an optional parameter which species the UUID of the prole server to attach to,
and if not supplied then the default UUID from S Register 101 is used. As this is a device
which utilises the RFCOMM layer as described in the Bluetooth specication, it necessarily implies
that only proles based on RFCOMM can be accessed.
The timeout is specied by S register 505.
Response: <cr,lf>CONNECT 123456789012<cr,lf>
Or <cr,lf>NO CARRIER<cr,lf>
Due to a known issue in the Bluetooth RFCOMM stack, it is not possible to make more than
65525 outgoing connections in a single power up session. Therefore if that number is exceeded,
then the connection attempt will fail with the following response:-
Response: <cr,lf>CALL LIMIT
Or <cr,lf>NO CARRIER<cr,lf>
In that case, issuing an ATZ to reset the device will reset the count to 0 and more connections
are possible.
12
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
The following RFCOMM based UUIDs are dened in the Bluetooth Specication:-
4. ATDL {Remake Connection}
Make a connection with the same device and service as that specied in the most recent ATD
command. An error will be returned if the ‘L’ modier is specied AND a Bluetooth address.
If both ‘L’ and ‘R’ modiers are specied then an error will be returned.
Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or <cr,lf>NO CARRIER<cr,lf>
5.ATDR{MakeConnectiontopeerspeciedinAT+BTR}
Make a SPP connection with the device address specied in the most recent AT+BTR command.
The service is as specied in S Register 101. An error will be returned if the ‘R’ modier is specied
AND a Bluetooth address.
If both ‘R’ and ‘L’ modiers are specied then an error will be returned.
Response: <cr,lf>CONNECT 123456789012 AE<cr,lf>
Or <cr,lf>NO CARRIER<cr,lf>
6. ATEn {Enable/Disable Echo}
This command enables or disables the echo of characters to the screen. A valid parameter value
will be written to S Register 506.
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>
PROFILE NAME UUID
Serial Port 0x1101
LAN Access Using PPP 0x1102
Dialup Networking 0x1103
IrMC Sync 0x1104
OBEX Object Push 0x1105
OBEX File Transfer 0x1106
IrMC Sync Command 0x1107
Headset 0x1108
Cordless Telephony 0x1109
E0 Disable echo.
E1 Enable echo.
PROFILE NAME UUID
Intercom 0x1110
Fax 0x1111
Audio Gateway (HSP) 0x1112
WAP 0x1113
WAP_CLIENT 0x1114
Advanced Audio
Distribution
0x110D
A/V Remote Control 0x110E
Handsfree 0x111E
Audio Gateway (HFP) 0x111F
13
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511
Table 3-1: S-Register List
REGISTER DEFAULT RANGE COMMENT
S0 1 -1..15 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.
S2 0x5E 0x20..0x7E 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 ‘^’.
S12 100 40..5000 Escape sequence guard time in milliseconds, with a granularity of 20ms. New
values are rounded down to the nearest 20ms multiple
S100 15 0..15 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.
S101 $1101 0..$ffff UUID of default SPP based prole when not specied explicitly in the ATD
command.
S102 1 1..0x7FF Denes a set of bits masks for enabling prole servers. Values can be ORed.
0x001 is Serial Port Prole
0x080 is A2DP
0x100 is AVRCP
S103 1 1..7 Boot Mode on cold boot.
S126 ? 0 .. 0xFFFF Primer for changing to Multipoint mode
S300 1 0..2 Set A2DP role:
0 is feature not set
1 is A2DP Sink (default)
2 is A2DP Source
S301 1 0..2 Set AVRCP role:
0 is feature disabled
1 is Control (CT) (default)
2 is Target (TG)
S302 0 0..4 Set AVRCP category:
0 is Feature disabled (default)
1 is Player/Recorder
2 is Monitor/Amplier
3 is Tuner
4 is Menu
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 specied 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.
14
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S303 0 0..0xFFFFFF Set Company ID:
IEEE Company ID, 24bit hexadecimal,
Required for UNIT INFO Response in AVRCP target mode, default value is 0.
S305 1 0..1 Accept UNIT INFO request:
0 – reject
1 – accept
S306 1 0..1 Accept SUBUNIT INFO request:
0 – reject
1 – accept
S310 1 0..1 Congure 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’
S311 1 w
9 r
0..7 (Write) 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
S312 1 0..15 A2DP sink supported features (Bitmask) :
Bit 0 = Headphone (default)
Bit 1 = Speaker
Bit 2 = Recorder
Bit 3 = Amplier
S313 1 0..15 A2DP source supported features (Bitmask) :
Bit 0 = Player (default)
Bit 1 = Microphone
Bit 2 = Tuner
Bit 3 = Mixer
S320 2 1..3 Security Level: see [12], Generic Access Prole - Table 5.7
needs subsequent ‘AT&W’ and power cycle to take effect
S321 1 0..4 Set IO capability:
0 – display only
1 – display yes no
2 – keyboard only
3 – no input no output
4 – reject IO-cap requests
S322 0 0..1 Force man-in-the-middle-protection (MITM):
0 – disabled
1 – enabled
S323 0 0..1 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 specication
S325 1 0..1 Store link key automatically on dedicated bonding outgoing (DBO),
identical with S538
S326 1 0..1 Store link key automatically on general bonding outgoing (GBO)
S327 1 0..1 Store link key automatically on dedicated bonding incoming (DBI)
S328 1 0..1 Store link key automatically on general bonding incoming (GBI)
S329 0 0..1 Enable legacy (BISM2) response format
15
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S330 1 1..15 Congure 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
S415 0 0..1 Enable Microphone Input Gain, adds extra 24dB to input gain
S416 0 0..1 Enable MicBias
S417 0 0..15 Set MicBiasCurrent
S418 0 0..15 Set MicBiasVoltage
S419 6 0..6 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
S504 0 0..1 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
congured in cable replacement mode.
S505 10 2..120 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 specied in the ATD
command, the “NO CARRIER” response will be immediate. See S register
560 for specifying disconnect max timeout.
S506 1 0..1 Enable/Disable echoes. The ATEn command also affects this.
S507 0 0..2 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
16
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S512 1 0..7 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 trafc 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 trafc 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 trafc 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 species the time in seconds that the device will
remain in the specied mode after power up. On timeout, the device will
fall back to the mode specied in S Register 555.
In some rmware 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 congured 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 dened by S Reg 566 and if deasserted then S Reg 567.
S514 10 1..60 Pairing Timeout in seconds. This includes the time a host takes to supply
the PIN number when PIN? messages are indicated.
S515 0x001F00 0.. 0xFFFFFF Default Device Class Code on power up. When queried, the value is always
printed as a hexadecimal number.
To change the device class of the module permanently, use this S register plus
subsequent AT&W and ATZ. To change the device class temporarily (until next
power cycle), use the command AT+BTC.
S516 0x000000 0..0x2FFFFFF Default Device Class lter to be used with AT+BTI when it is not explicitly
specied. When queried the value is always printed as a hex number.
The seventh most signicant digit, can be 0,1 or 2, and is used to specify
the type of device class lter.
When 0, it species no ltering.
When 1, it species an AND mask and all 24 bits are relevant
When 2, it species a lter to look for devices with matching major device
class which occupies a 5 bit eld from bits 8 to 12 inclusive (assuming
numbering starts at bit 0). All other 19 bits MUST be set to 0.
S517 20 2..61 Inquiry Length in units of seconds. This parameter is referenced by the
AT+BTI command.
S518 8 0..255 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 rmware 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
rmware build.
S519 500 100..6000 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 specied
in this register. This value is rounded down to the nearest 100ms
S530 1000 100..15000 Reconnect delay when congured as master in pure-cable-replacement
mode. This value is rounded down to the nearest 100ms. See S Register
505 and 543 also.
17
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S531 0 0..5 Species 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
S532 0 0..7 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.
S533 1 0..2 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.
S534 1 0..2 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.
S535 20 0..41 Link Supervision Timeout. If units go out of range, then a NO CARRIER
message will be sent to the host after the time specied here
S536 0 0..1 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.
S538 0 0..1 If 1, then when a successful pairing occurs, it is automatically saved in the
trusted device database – if it has room to store it.
S539 0 0..1 When set to 1, in idle mode (S512=1), UART Rx characters are discarded if
DSR is deasserted.
S541 6 -50..6 This sets the power level in dBm when inquiring or paging. Reading this
register returns the value stored in non-volatile memory.
S542 6 -50..6 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.
S543 0 0..1 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
18
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S551 0x3211 0xFFFF This register species 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 species the source for RTC
4..7 species the source for RTR
8..11 species the source for DV (i.e. DCD)
12..15 species 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 species 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.
S552 0x0122 0x0FFF This register species in each 4 bit nibble, how the DTR, DCD, RI output
pins are controlled when in a Bluetooth connection
Nibble 0..3 species the source for DTR
4..7 species the source for DCD
8..11 species 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.
S553 0x0201 0x0FFF This register species in each 4 bit nibble, how the DTR,DCD,RI output pins
are controlled when NOT in a Bluetooth connection
Nibble 0..3 species the source for DTR
4..7 species the source for DCD
8..11 species 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
19
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S554 0 0..900 If S Register 512>=2 and <=7 then this register species 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.
S555 1 1..7 If S Register 554 is nonzero, then after the post reset window expires,
the mode will revert to the mode specied 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 rmware 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 congured 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 dened by S Reg 568 and if deasserted then S Reg 569.
S558 0 0..1 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.
S559 0 0..3 This species 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.
S560 15 15..120 Disconnect timeout in seconds. This timer species how long to wait for
conrmation from the peer device and/or the underlying stack that the
connection has been successfully torn down. There can be instances where
a conrmation 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 specied with 15 seconds intervals.
S565 0 1 If set to 1, RI (Ring Indicate) line is congured 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 dened
by SRegs 566 to 569 inclusive.
S566 1 7 If S565=1, and RI is asserted then this is the mode the device will start up in.
S567 1 7 If S565=1, and RI is deasserted then this is the mode the device will
start up in.
S568 1 7 If S565=1, and RI is asserted then this is the mode the device will assume
after the post-start-up timeout dened in SReg 554 instead of mode dened
in SReg555
S569 1 7 If S565=1, and RI is deasserted then this is the mode the device will assume
after the post-start-up timeout dened in SReg 554 instead of mode dened
in SReg555
S584 0 0..1 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.
S588 0 0..1 After a disconnection, there will be a cold reset
S589 15 0..22 Codec output gain
S590 15 0..22 Codec input gain
S591 0 0..1FF Default GPIO output states when not in a connection. This is used when
virtual digital i/o cable replacement mode is in operation
20
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth® Multimedia Module
CONFIGURING
THE BTM510/511 REGISTER DEFAULT RANGE COMMENT
S592 0 0..1 Set this to 1 to reduce the trusted device database to just 1 record
when autosaving of pairing is enabled via S reg 538
S593 0 0..1 Automatically append last 6 digits of local bluetooth address to the
friendlyname which was set via AT+BTN or AT+BTF
S689 0 -450..+215 Set codec output gain in dBr * 10
(applies to sink), default = 0
S690 0 -450..+215 Set codec input gain in dBr * 10
(applies to source), default = 0
S730 0 0..1 Enable Auxiliary DAC
S731 0 0..225 Set Auxiliary DAC Level
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
species 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>
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46

Ezurio PI4510B User manual

Category
Bluetooth music receivers
Type
User manual
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI