background image

12

  

 

www.lairdtech.com

 

 

Laird Technologies

 

 

BTM510/511

Bluetooth

® 

Multimedia Module

BTM - AT COMMAND SET

This section describes the AT Command Set for a BTM module. This section is structured in functional  

groups of AT commands related to module configuration, Bluetooth profiles, hardware units and 

 

miscellaneous purposes. 

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 BTM 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 fixed 12 digit hexadecimal string, case insensitive.

 

4.  All Bluetooth Device Class codes are represented by a fixed six digit hexadecimal string, case insensitive.

 

5.  All profile specific commands are identified by the prefix shown in Table 3.1

Profile

Term

AT-Command Prefix

Serial Port Profile

SPP

AT+SP…

Advanced Audio Distribution Profile

A2DP

AT+AP…

Audio/Video Remote Control Profile

AVRCP AT+AV…

Headset Profile

HSP

AT+HS…

Hands-Free Profile

HFP

AT+HF…

Dial-Up Network Profile

DUN

AT+DU…

Table 3.1: AT Command prefix for profiles

Command Syntax

The following syntax is employed throughout 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 six 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 four 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.  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 … Disable echo.

 

 

E1 … 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>

AT COMMAND SET 

REFERENCE

Summary of Contents for BTM510

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

Page 2: ... 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 Profiles 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 4...

Page 3: ...f flash 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 simplifies application devel...

Page 4: ... RS 232 bi directional for commands and data 16550 compat ible Baud Rate Configurable 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 I2 S Stereo Audio Digital Interface Bus LED Two Audi...

Page 5: ...n 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 Te...

Page 6: ...IO 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 Se...

Page 7: ...H 15pF 15nH 15pF 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 ...

Page 8: ...nditions 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 Ty...

Page 9: ... to various Bluetooth activities The configuration of the device 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 h...

Page 10: ...er Profile GOEP Generic Object Access Exchange Profile GPIO General Purpose Input Output HF Hands free Role of Hands free Profile Hands free Unit HFG Audio Gateway Role of Hands free Profile Hands free Gateway HFP Hands Free Profile HID Human Interface Device Profile HS Headset Role of Headset Profile Headset HSG Audio Gateway Role of Headset Profile Headset Gateway HSP Headset Profile I O IO Inpu...

Page 11: ...oth version 2 1 Features SSP EIR SCO 1 eSCO 1 Profiles SPP 1 external codec required BTM510 BTM511 Chipset CSR BC5MM Ext Bluetooth version 2 1 Features SSP EIR SCO eSCO Profiles SPP A2DP AVRCP HSP HFP DUN DT BTM520 BTM521 Chipset CSR BC5MM Ext Bluetooth version 2 1 Features SSP EIR SCO eSCO Profiles SPP A2DP AVRCP HSP HFP DUN DT AT Command Set Reference ...

Page 12: ...Video Remote Control Profile AVRCP AT AV Headset Profile HSP AT HS Hands Free Profile HFP AT HF Dial Up Network Profile DUN AT DU Table 3 1 AT Command prefix for profiles Command Syntax The following syntax is employed throughout 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 ...

Page 13: ...t type 1 Bits 2 7 Minor Device Class The value of these six bits is interpreted differently based on the Major Device Class stored in the next five bits Bits 8 12 Major Device Class Five bits refer to Figure 1 and Table 3 in Bluetooth Assigned Numbers 8 Bits 13 23 Major Service Class 11 bit field used as a mask to define service classes refer to Figure 1 and Table 2 in Bluetooth Assigned Numbers 8...

Page 14: ...nse cr lf My Friendly Name cr lf cr lf OK cr lf 10 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 11 AT BTP Make Device Discoverable and Connectable Make the device discoverable and connectable and wait for a connection from any device The setting remains valid until next reset or power cy...

Page 15: ...cr lf For unrecognized values of n Response cr lf Laird Technologies Inc UK c 2009 cr lf AT Commands for S Registers 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 For a list of general S registers please refer to page 17 and Table 4 1 S registers associated with a particular profile or ...

Page 16: ...200 F4 Medium power consumption UART baud rate set to 115200 F5 Maximum power consumption UART baud rate set to 115200 The new values are NOT updated in non volatile memory until the AT W command is sent to the device Response cr lf OK cr lf Or Response cr lf ERROR nn cr lf 5 AT F Clear Non Volatile Memory The AT F variant of the command installs values in S registers as per command AT F4 and then...

Page 17: ...ess 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 then the inquiry procedure is aborted and in that case an error response is sent to the host To clarify a single AT BTI will never return the same Blue...

Page 18: ...nd FN disabled RSSI enabled Inquiry Response cr lf 123456789012 54 cr lf 123456789014 54 cr lf OK cr lf 2 AT BTIV devclass Inquire As per AT BTI but the response comprises for all inquiry responses 1 the Bluetooth device address 2 device class code S register 330 is not referenced 3 AT BTIN devclass Inquire As per AT BTI but the response comprises for all inquiry responses 1 the Bluetooth device a...

Page 19: ...s of SSP They can be found by searching the Internet for e g Bluetooth Secure Simple Pairing Please familiarize with those documents to get a better understanding of SSP and the following settings 1 Security Level S320 The security level is defined in the BT2 1 EDR specification 1 vol3 Generic Access Profile Table 5 7 There are 4 Levels providing different levels of security Security Level Charact...

Page 20: ...ity requests prior to SSP are rejected Table 3 4 IO capabilities 3 Force Man In The Middle Protection MITM S322 Protection against MITM attacks can be enabled by S332 This S Register only applies if the security level S320 is less than 3 In case of security level S320 3 MITM protection is always enabled and this S 322 is ignored A new value written to S322 applies immediately No power cycle is req...

Page 21: ...process Please refer to that table for the required actions On pairing completion an unsolicited message in the form PAIR n bd_addr will be sent to the host 8 S Registers for Secure Simple Pairing The following table lists all S Registers for Secure Simple Pairing For the registers details please refer to their descriptions above Register Default Range Comment S320 2 1 3 Security Level see 1 vol3 ...

Page 22: ...c storage to trusted device list Value 0 success settings controlled by S325 to S328 Please refer to section 2 3 page 82 PAIR 1 BdAddr Pairing timeout PAIR 2 BdAddr Pairing failed PAIR 3 BdAddr Pairing failed too many repeat attempts PAIR 4 BdAddr Pairing rejected by remote device PAIR 5 BdAddr Pairing failed unit keys not supported PAIR 6 BdAddr Pairing failed SSP not supported PAIR 7 BdAddr Pair...

Page 23: ... device is not in a mode from where such commands can be actioned Response cr lf OK cr lf 2 AT BTK string Set Passkey This command is used to provide a PIN passkey The PIN is stored in non volatile memory for future use If this command is used as response to a PIN 12345678 asynchronous message the PIN provided by this command will not be stored in non volatile memory Specifying an empty string del...

Page 24: ... a connection the link key gets cached in the underlying stack So if you subsequently delete the key using AT BTD and immediately request a connection to the same device then the connection will be established To ensure this does not happen send ATZ after the AT BTD Response cr lf OK cr lf 5 AT BTW List Cached Trusted Device This command is used to list the cached trusted device Response cr lf 123...

Page 25: ...on visual character is to be sent then insert the escape sequence hh where hh are two hexadecimal digits The three character sequence hh will be converted into a single byte before transmission to the peer Response cr lf OK cr lf Or cr lf ERROR 05 cr lf e g string too long 3 Enter Local Command Mode When in data and connected mode and when S 507 is set to 0 or 1 the host can force the device into ...

Page 26: ...formance hit the device s connection drop capability is configurable to be in one of two modes One mode allows for a connection to be dropped using either method and the other mode allows for a connection drop using the DTR method only By default the device is in the former mode This mode is selected using the S507 register Appendix Table 4 1 To reiterate the escape sequence is as follows Guard ti...

Page 27: ...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 digit...

Page 28: ...ce immediately after this command Response cr lf OK cr lf 5 AT BTM Read Incoming Peer Address This command is used to display the peer address stored in non volatile memory used to put the module in pure cable replacement mode Response cr lf 12346789012 cr lf OK cr lf If the location is empty the response is as follows Response cr lf 00000000000 cr lf OK cr lf 6 AT BTR bd_addr Set Outgoing Peer Ad...

Page 29: ... been written the changed value needs to be saved to non volatile memory AT W and subsequently a reset ATZ or power cycle is required Please note that AT W saves the content of all S Registers to non volatile memory 2 SPP Serial Port Profile The serial port profile SPP is used for serial data transmission with a remote device in both directions It behaves like a wireless replacement for a serial c...

Page 30: ...ected A and B Connected A B data Any character entered on one end is displayed at the other end Enter command mode A or B Response OK Command mode confirmed now AT commands are expected at the UART UART data from host is not sent across to remote device Disconnect AT SPH Response NO CARRIER A and B disconnection confirmed Table 3 9 SPP Example Command Sequence Figure 3 2 SPP example Preparation of...

Page 31: ...patibility the following command fulfils the same purpose ATD bd_addr Response cr lf CONNECT 123456789012 1101 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 c...

Page 32: ...n this mode by default on power up When the lower layers detect an SPP connection request a RING 123456789012 string is sent to the host every second The command ATA is used to accept the connection and ATH to reject the request On connection if the S0 Register is 0 then confirmation to the host is in the form CONNECT 123456789012 1101 When S0 register is 1 neither RING nor CONNECT is sent to the ...

Page 33: ...S 102 to a value of 128 Also an A2DP role must be assigned to a BTM module either source or sink After this has been done the settings need to be stored by AT W followed by ATZ 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 de...

Page 34: ...er default in S300 ATS515 040400 Set A2DP device class ATS512 4 Make device connectable and discoverable permanent setting AT W Store settings ATZ Reset Preparation Connection setup PC n a 1 Open Bluetooth Settings from the taskbar icon Figure 3 6 2 Click on New Connection Figure 3 6 3 Click Next Discover BT Devices Figure 3 7 4 Select Laird BTMM if not listed click Refresh Figure 3 8 5 Click Yes ...

Page 35: ... lairdtech com Laird Technologies BTM510 511 Bluetooth Multimedia Module Figure 3 6 A2DP example 1 PC Bluetooth settings Figure 3 7 A2DP example 1 Start discovery of Bluetooth devices AT Command Set Reference ...

Page 36: ...timedia Module Figure 3 8 A2DP example 1 Select Bluetooth device Click Refresh if Laird BTMM is not listed Figure 3 9 A2DP example 1 Confirm pairing here Secure Simple Pairing no PIN required Figure 3 10 A2DP example 1 Connection established AT Command Set Reference ...

Page 37: ...ons along with the sequence of AT commands are listed in Table 3 14 Figure 3 12 to Figure 3 15 show appropriate screenshots Phase Dev AT Command Comment Preparation ext audio equipm 1 Connect an audio source e g MP3 player to the stereo audio input line in of Device B 2 Connect a headphone or a speaker to the stereo audio output line out of device A Preparation A AT F Restore factory default setti...

Page 38: ...heck audio output of the audio source e g connect head phones directly to audio source for a test Adjust Volume A AT GOU Increment volume audio output gain by one AT GOD Decrement volume audio output gain by one B AT GIU Increment volume audio input gain by one AT GID Decrement volume audio input gain by one Note the audio input gain A2DP source is a critical setting because the optimal setting ca...

Page 39: ... W Finally issue ATZ to make the new settings effective If the A2DP flag in S102 0x80 is not set after ATZ although it was set and saved before ATZ then S300 was 0 at boot time which is invalid for A2DP 3 4 Select A2DP Role The A2DP role is selected by S register 300 as follows 0 no role selected 1 A2DP Sink default 2 A2DP Source The setting must be saved by AT W and becomes effective on next powe...

Page 40: ...Major Service Major Device Minor Device A2DP Role 0x040400 Rendering Audio Video n a Sink 0x040414 Rendering Audio Video Loudspeaker Sink 0x040418 Rendering Audio Video Headphones Sink 0x04041C Rendering Audio Video Portable Audio Sink 0x040420 Rendering Audio Video Car audio Sink 0x080400 Capturing Audio Video n a Source 0x080410 Capturing Audio Video Microphone Source 0x080428 Capturing Audio Vi...

Page 41: ...plied by 10 Please refer to section 1 page 74 4 4 Release A2DP Connection AT APH ATH110D Release an A2DP connection by AT APH Alternatively ATH110D can be used 110D presents the UUID for the A2DP profile Please refer to section4 page 83 4 5 Supported Features A2DP Sink S312 Use S Register 312 to set the A2DP sink supported features that will be advertised in the A2DP service record Refer to Table ...

Page 42: ... default 0 S690 450 215 Set codec input gain in dBr 10 applies to source default 0 Increment Gain AT GOU Increment codec output gain by 1 step in gain table refer to section 1 page 74 AT GIU Increment codec input gain by 1 step in gain table refer to section 1 page 74 Decrement Gain AT GOD Decrement codec output gain by 1 step in gain table refer to section 1 page 74 AT GID Decrement codec input g...

Page 43: ...NIT INFO command O Yes X No 4 Receiving UNIT INFO command X No M Yes 5 Sending SUBUNIT INFO command O 1 X No 6 Receiving SUBUNIT INFO command X No M Yes 7 Sending VENDOR DEPENDENT command O No X No 8 Receiving VENDOR DEPENDENT command X No O No 9 Sending PASS THROUGH command M Yes X No 10 Receiving PASS THROUGH command X No M Yes M mandatory O optional X excluded 1 incomplete Table 3 17 AVRCP Supp...

Page 44: ..._PC Response Figure 3 19 CONNECT BdAddr_PC 110E AVRCP connected Connected send remote control commands BTM5xx AT AVC44 Send Play Figure 3 20 Figure 3 21 Response OK command accepted AVPTC 0 44 0 confirmation received from PC AVPTC 0 44 1 confirmation received from PC Reception of command should be displayed in top right corner of PC screen Figure 3 21 Player should start playing AT AVC46 Send Paus...

Page 45: ...logies BTM510 511 Bluetooth Multimedia Module Figure 3 16 AVRCP Example 1 Bluetooth Address of PC and AV Remote Control Service Figure 3 17 AVRCP Example 1 Player Selection and Receiving Commands Display Setup AT Command Set Reference ...

Page 46: ...AVRCP Example 1 Secure simple pairing dialogue Figure 3 19 AVRCP Example 1 BTM5xx Preparation and Connection Setup Figure 3 20 AVRCP Example 1 BTM5xx Sending Commands and Connection Release Figure 3 21 AVRCP Example 1 Incoming AVRCP commands top right corner of screen AT Command Set Reference ...

Page 47: ...ection AT AVH Release AVRCP control connection Response cr lf NO CARRIER 110E cr lf 5 3 AVRCP Control CT This section describes AT Commands an S registers when BTM5xx is configured as an AVRCP Controller S301 1 5 3 1 Send UNIT INFO Request AT AVU Send a Unit Info request to a connected AVRCP target Response immediately cr lf OK cr lf On command completion cr lf AVUR n unit_idhex unit_typehex compa...

Page 48: ... button_state cr lf after command completion If status n indicates an unsuccessful outcome operation_idhex and button_state are omitted 5 4 AVRCP Target TG This section describes AT Commands an S registers when BTM5xx is configured as an AVRCP Target S301 2 In this mode BTM5xx supports one subunit PANEL see 3 5 4 1 Incoming AVRCP Connection Request An incoming AVRCP connection request is accepted ...

Page 49: ... has not been set see S301 Error 48 if S301 2 and Category has not been set see S302 Needs subsequent AT W and ATZ to be come effective Set AVRCP role S301 0 2 0 disabled 1 Control CT default 2 Target TG Needs subsequent AT W and ATZ to be come effective Set AVRCP category S302 0 4 0 Feature disabled default 1 Player Recorder 2 Monitor Amplifier 3 Tuner 4 Menu Needs subsequent AT W and ATZ to be c...

Page 50: ...ect incoming Unit Info Requests 1 accept incoming Unit Info Requests and send response automatically default with Company ID as per S303 and unit type 0x09 Panel fixed Enable Subunit Info Response Target S306 0 1 0 reject incoming Subunit Info Requests 1 accept incoming Subunit Info Requests and send response automatically default with Subunit type 0x09 Panel fixed and MaxSubUnitId 0x00 fixed Conf...

Page 51: ...25 6 0x26 7 0x27 8 0x28 9 0x29 Dot 0x2A Enter 0x2B Clear 0x2C Channel up 0x30 Channel down 0x31 Sound select 0x32 Input select 0x33 Display information 0x34 Help 0x35 Page up 0x36 Page down 0x37 Power 0x40 Volume up 0x41 Volume down 0x42 Mute 0x43 Play 0x44 Stop 0x45 Pause 0x46 Record 0x47 Rewind 0x48 Fast forward 0x49 Eject 0x4A Forward 0x4B Backward 0x4C Angle 0x50 Sub picture 0x51 F1 0x71 F2 0x...

Page 52: ...2 In transition 11 3 Stable 12 4 Changed 13 5 Interim 15 6 Bad profile 16 7 Table 3 22 AVRC Response Types Message Comment CONNECT 123456789012 110E Outgoing AVRCP connection established 123456789012 bd_addr of peer device 110E UUID indicating AVRCP CONNECT 123456789012 110E Incoming AVRCP connection established 123456789012 bd_addr of peer device 110E UUID indicating AVRCP NO CARRIER 110E AVRCP c...

Page 53: ...r must be set to 1 in order to indicate received commands at a digital output A write operation to a GPIO will not have any effect if that GPIO is mapped to AVRCP The level inversion Flag INV of the GPIO Configuration Register also applies in target mode Restrictions can apply if certain GPIOS will be reserved for other functions in future e g coexistence supporting functionality Please refer to s...

Page 54: ...d interface Figure 3 22 Headset block diagram 6 1 1 Initiate ACL connection from HS AT HSD bd_addrhex Initiate ACL connection from local headset instance to remote device with bd_addrhex The remote device must support the audio gateway role AG of the headset profile HSP Response cr lf CONNECT 123456789012 1112 cr lf Or cr lf NO CARRIER cr lf Or cr lf ERROR 59 cr lf Or cr lf ERROR 63 cr lf After an...

Page 55: ...mpleteness and should be used for testing purposes only Response On audio disconnection optional cr lf HS AU0 cr lf On ACL disconnection cr lf NO CARRIER 1108 cr lf 6 1 4 Headset status ATI63 Returns the status of the Headset HSP instance 0 not connected 1 ACL connected 2 Audio connected 6 1 5 Headset asynchronous messages CONNECT bd_addrhex uuidhex dir An ACL connection to headset has been establ...

Page 56: ...H for HS S332 Enable HS disconnection ATH1108 and ATH 0 disabled default 1 enable Should only be enabled for test purpos es because disconnection initiated by HS other than sending AT CKPD 200 to gateway is not defined in HSP speci fication Inquire HS status ATI63 0 not connected 1 ACL connected 2 Audio connected Table 3 26 Headset role HSP Summary of S Registers and AT Commands 6 2 Audio gateway ...

Page 57: ...on the HS through the SCO connection The in band ringtone is not created by BTM5xx itself It is required to be created by the external circuit and to be connected to the BTM5xx analogue audio input In band ringing is indicated by ATI64 returning 6 Alerting using the RING message is indicated by ATI64 returning 5 In both cases the response AT CKDP 200 Button pressed is expected from the HS 6 2 3 Ca...

Page 58: ...y doing nothing 6 2 10 AG Status ATI64 Returns the status of the Audio Gateway HSP instance 0 not connected 1 ACL connected 2 Audio connected 5 Alerting HS by sending RING 6 Alerting HS by in band ringing 6 2 11 AG Asynchronous Messages CONNECT bd_addrhex uuidhex dir An ACL connection to headset has been established bd_addrhex Bluetooth address of headset device uuidhex 1112 if it was an incoming ...

Page 59: ... is required Release audio connection Transfer audio from HS to AG AT HSGR Response successful OK and HSG AU0 wrong state ERROR 63 profile role disabled ERROR 59 Release audio and SLC from AG AT HSGH or ATH1112 or ATH Response successful NO CARRIER 1112 AG HSP was connected previously wrong state ERROR 63 profile role disabled ERROR 59 Enable automatic alerting on ACL establishment S345 0 disable ...

Page 60: ... 3 28 and Table 3 1 of 5 Section Appropriate Section in 5 Example 3_4 12 feature no 3 section 4 12 HFP Feature Support in HF Support in AG Specification BTM5xx Specification BTM5xx 1 Connection management M Yes M Yes 2 Phone status information M Yes M Yes 3 Audio Connection handling M Yes M Yes 4 Accept an incoming voice call M Yes M Yes 5 Reject an incoming voice call M Yes O Yes 6 Terminate a ca...

Page 61: ...een established the module remains in AT command mode S Register 531 is ignored for HFP connections 7 1 2 Initiate Audio Connection from HF 3_4 11 AT HFA Initiate audio connection from local Hands free instance An existing service level connection is required Response Audio on cr lf HF AU1 cr lf 7 1 3 Release Audio Connection from HF 3_4 12 AT HFR Release audio connection only The service level co...

Page 62: ...ll be sent to the AG In return the audio gateway shall update its indicator callsetup 2 and send the appropriate CIEV message to the HF HF will notify its host by a HFI indicator value message Please refer to section 7 1 15 on page 64 7 1 10 Enable Caller Line Identification Presentation CLIP 13_4 23 The CLIP feature is enabled by setting Bit 2 value 4 in the HF supported features S register 581 S...

Page 63: ...ay is ignoring this query for any reason 7 1 13 Query Operator Selection 2_4 8 AT HFO Query operator selection from HFG AT COPS is sent to the HFG HFG will send the operator selection information indicated on the HF by HF COPS An OK will be sent by HFG on termination indicated on HF by the asynchronous message HF COPS OK If the HFG does not support this feature it should send ERROR indicated on HF...

Page 64: ...SLC connected 4 In call audio connected 7 1 17 Hands Free Asynchronous Messages CONNECT bd_addrhex uuidhex dir A Service level connection to headset has been established and initialized bd_addrhex Bluetooth address of headset device uuidhex 111E if it is an incoming connection 111F if it is an outgoing connection dir I O optionally indicates the direction incoming outgoing please refer to S331 and...

Page 65: ...d and can be one of the following values values 128 143 The phone number format bay be a national or international format and may contain prefix and or escape digits No changes on the number presentation are required values 144 159 The phone number format is an international number including country code prefix If the plus sign is not included as part of the number and shall be added by the HFG as...

Page 66: ...AU0 Initiate call with number provided by HF AT HFC nnn nnn number string Initiate call with number provided by memory of AG AT HFCM mmm mmm memory location in AG of number requested to dial Initiate call to last dialled number AT HFCL Response HFI callsetup 2 confirmation call is being set up OR HFG ERROR last dialled number not available in AG Disconnect SLC from HF and audio if exists AT HFH AT...

Page 67: ...h bd_addrhex The remote device must support the Hands free role HF of the Hands free profile HFP Response SLC established cr lf CONNECT 123456789012 111E cr lf Failed cr lf NO CARRIER cr lf Or cr lf ERROR 59 cr lf Or cr lf ERROR 63 cr lf After an SLC connection has been established the module remains in AT command mode S Register 531 is ignored for HFP connections 7 2 2 Initiate Audio Connection f...

Page 68: ... by HF and is indicated on the AG side by the following asynchronous messages HFG Dnnn dial number nnn given by headset HFG D nnn dial from AG memory location nnn HFG L redial last number AT HFGC2 Signal to HF that remote party was reached and is being alerted during an outgoing call setup procedure CIEV 3 3 callsetup 3 indicator is sent to HF If the wireless network does not provide an indication...

Page 69: ...service This command adds a subscriber number record to the HFG The subscriber number is the telephone number of the HFG It is allowed to have more than one subscriber numbers All subscriber numbers available should be stored in the HFG immediately after power up of the system As soon as an SLC to a HF device is established the HF can query the HFG s subscriber numbers at any time by sending AT CN...

Page 70: ...ervice of this subscriber number 4 voice 5 fax AT HFGSD Delete all subscriber number records in the HFG Response cr lf OK cr lf AT HFGSD n Delete subscriber number record with index n in the HFG n refers to the index that is displayed on HFGS n is assumed to be one digit The index is not fixed to a record If there are higher numbered indexes than the one deleted the remaining records will get a ne...

Page 71: ... confirm the outgoing call with the command AT HFGC1 HFG D nnn Request from HF to place an outgoing call using memory dialling with nnn memory location The AG is expected to either confirm the outgoing call with the command AT HFGC1 or to respond with AT HFGE if the memory location is invalid HFG L Request from HF to place an outgoing call using the last number dialled The AG is expected to either...

Page 72: ...lerted AT HFGC3 Outgoing call Remote party has answered the call Signal termination of a call or a call setup procedure to HF AT HFGCH Command also used to inform HF about remote rejection of outgoing call Send AG indicator status to HF CIEV AT HFGI indicator_ iddec valuedec For indicator_id and value see Table 3 31 Command is recommended to be used only with indicator IDs 1 5 6 and 7 For all othe...

Page 73: ...fication BTM Specification BTM 1 Data call without audio feedback M Yes M No 2 Data call with audio feedback O No O No 3 Fax services without audio feedback N A No N A No 4 Fax services with audio feedback N A No N A No 5 Voice call N A No N A No M mandatory O optional N A not applicable 8 1 Profile Activation DUN profile is activated by setting flag 0x04 in S102 plus AT W plus ATZ 8 2 Initiate DU...

Page 74: ...esired as permanent setting Initiate DUN connection AT DUD bd_addrhex Responses successful CONNECT 123456789012 1103 failed NO CARRIER profile disabled ERROR 59 incorrect state ERROR 63 Release DUN connection AT DUH Responses successful NO CARRIER 1103 profile disabled ERROR 59 incorrect state ERROR 63 Table 3 33 DUN Summary of S Registers and AT Commands Hardware Units BTM510 511 This section cov...

Page 75: ...et 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 command class AT G enables incremental and decremental gain settings The increment decrement command corresponds to one row up down in the gain table Table 3 34 The Gain level registers S589 S689 and S590 S690 are not affected by increment decrement com...

Page 76: ...ed too Set input overall gain dBr S690 450 215 default 0 See Gain Table value must be entered and is returned multiplied by 10 S590 is affected too Increment current output gain level AT GOU Error 57 may appear if maximum gain level reached Decrement current output gain level AT GOD Error 58 may appear if minimum gain level reached Query current output gain level AT GO Restore current output gain ...

Page 77: ...n LED PWM Period 0 or to specify blinking with defined on time in a defined period PWM Period blinking visible for the eye In LED_PULSE mode the brightness of an LED is modulated Modulation speed is defined by parameter Pulse Rate and maximum brightness is defined by parameter Duty Cycle Task AT Command SRegister Comment Set LED 0 mode S335 0 3 default 0 Mode 0 LED_OFF 1 LED_ON 2 LED_PWM 3 LED_PUL...

Page 78: ...Hardware Units 6 GPIO On a BTM device a number of digital I Os can be used for general purposes Each GPIO will be assigned to an S Register S651 to S663 which will be capable of both GPIO configuration config mode as well as single pin read write access r w mode The bitmask of the I O pin for direct read write access will be 0x01 All configuration flags are allocated to higher value bits A bitmask...

Page 79: ...st be set in GPIO configuration register 8 15 The pin will carry out the assigned operation and is not accessible anymore as GPIO 0 disable function mapping 1 enable function mapping 4 FMS Function Mapping Select Selects if a Function Mapping Code see Table 3 46 or an av_operation_id see Table 3 20 is set in GPIO configuration register 8 15 Valid only if FME 1 0 select Function Mapping Code Table ...

Page 80: ...isters 6 1 Profile Specific GPIO Function Mapping In some Bluetooth profiles it makes sense to map GPIOs to certain functions e g Volume Up Down HFP A2DP answer call HFP reject call HFP etc Therefore new S registers 651 to 663 will be introduced corresponding to GPIO1 to GPIO13 If a function mapping code is set to one of those registers and function mapping enabled FME 1 the appropriate Pin will c...

Page 81: ...mended to enable all three packet types for eSCO links This will pass the final decision down to the baseband eSCO packets involve a CRC code and retransmission of erroneous eSCO packets Packet types and link types SCO or eSCO are negotiated on link setup A BTM can accept either incoming SCO or eSCO links S register 584 but not both SCO and eSCO at one time If the initiating side requests an unsup...

Page 82: ...with the intention of establishing a connection immediately This is the case if a device tries to connect to another device without existing link key Hence pairing authentication and exchange of link keys is initiated automatically prior to the connection General bonding is initiated by a connection requesting AT command if there is no link key for the peer device existing Such AT commands are AT ...

Page 83: ...H may be used Please see Table 3 61 Task AT Command Comment Disconnect SPP ATH1101 or AT SPH or ATH Single ATH retained for backward compatibility response NO CARRIER or NO CARRIER 1101 depending on S329 and if a SPP connection has existed previously Disconnect A2DP ATH110D or AT APH If A2DP connection released response NO CARRIER 110D If no A2DP connection has existed response NO CARRIER Disconne...

Page 84: ...If A2DP was connected response NO CARRIER 110D If A2DP was not connected response NO CARRIER AT AVH ATH110E Response NO CARRIER If AVRCP was connected re sponse NO CARRIER 110E If AVRCP was not connected response NO CARRIER AT HSH ATH1108 Response NO CARRIER If HS instance was connected response NO CARRIER 110E If HS instance was not connected response NO CARRIER AT HSGH ATH1112 Response NO CARRIE...

Page 85: ...d a direction indicator to a connect message This enables the host to distinguish an incoming connection from an outgoing connection based on the CONNECT message The direction indicator only applies to role indicating UUIDs and if S329 0 The direction indicator is configured by S register 331 please refer to Table 3 65 S331 Meaning Example Incoming connection Outgoing connection 0 Disabled CONNECT...

Page 86: ...he specification goes further by also specifying a third parameter called timeout T which specifies extra timeslots that the slave will agree to listen for after receiving a valid data packet Put another way if a data packet is received by the slave then it knows that it MUST carry on listening for at least T more slots If within that T slot time period another data packet is received then the tim...

Page 87: ...or this circumstance the BTM device will come out of reset using 9600 N 8 1 comms settings for exactly 750 milliseconds and then revert to the communication parameters as per the S Registers If the host sends the string BISM cr where cr is the carriage return character within that 750ms period then the module will remain at 9600 N 8 1 and will also configure itself using factory default S Register...

Page 88: ...ity in Ezurio Terminal 16 Append Bluetooth Address to Friendly Name If S Reg 593 is set to 1 then the last six hex digits of the Bluetooth address are automatically appended to the friendly name This allows multiple devices with the same name in a neighborhood to be differentiated AT Command Set Reference ...

Page 89: ...set HS 0x004 is DUN 0x008 is Audio Gateway Headset HSG 0x010 is Handsfree HF 0x020 is OBEX FTP 0x040 is Audio Gateway Handsfree HFG 0x080 is A2DP 0x100 is AVRCP 0x200 is PBAP 0x400 is HID S103 1 1 4 Boot Mode on cold boot Boot modes are required to configure some low level device settings which cannot be configured by S registers and AT com mands Currently there are predefined settings defining th...

Page 90: ... 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...

Page 91: ...mporary and immedi ately without power cycle use the command AT BTC To change the device class of the module permanently write the new value to this S Register ATS515 devclasshex save the set ting AT W and initiate a power cycle ATZ S516 000000 0 2FFFFFF 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 T...

Page 92: ...s case the BTM device cannot be communi cated with If this happens there is a procedure to recover from this situation which is described in section 13 page 87 Factory Default UART Baud Rate S523 1 1 2 Number of Stop bits See S Register 526 for further information S524 0 0 2 Parity 0 None 1 Odd 2 Even For the Go blue Activator variant of the module this register is read only See S Register 526 for...

Page 93: ... will result in ERROR 33 S539 0 0 1 When set to 1 in idle mode S512 1 UART Rx characters are discarded if DSR is de asserted S541 20 43 20 This sets the power level in dBm when inquiring or paging Read ing this register returns the value stored in non volatile memory S542 4 43 20 As per S541 however reading this register returns the current power level as set in the base band The read can be diffe...

Page 94: ...ice 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 not connectable not discoverable 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...

Page 95: ...as an input and forces the start up mode S Reg 512 and post timeout on Start up mode S Reg 555 to be dependent on the state of RI The RI con ditional modes are defined by S Registers 566 to 569 inclusive S566 1 1 7 If S565 1 and RI is asserted then this is the mode the device will start up in S567 1 1 7 If S565 1 and RI is de asserted then this is the mode the device will start up in S568 1 1 7 If...

Page 96: ...mote 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 ATI12 The last ERROR response number ATI13 The Sniff status is returned as follows Res...

Page 97: ...us 0 not connected 1 SLC connected 2 Audio connected 3 in call SLC 4 in call audio ATI67 DUN connection status 0 not connected 1 connected in local command mode 2 connected in remote command mode ATI101 The RSSI value in dBm If a connection does NOT exist then a value of 32786 is returned A value of 0 means the RSSI is within the golden range this is quite a large band therefore RSSI is not always...

Page 98: ...cal Address 25 Connection Setup Fail DSR Not asserted 26 Unauthenticated licence 27 Max Responses See S Register 518 too high Memory allocation error 28 The length of Pin in AT BTK is too long 29 Invalid Ring count specified for S Register 0 or 100 If S0 0 and S100 0 then S0 must be S100 30 ADC Error 31 Analogue Value cannot be read as it is set for output 32 Analogue Value cannot be written as it...

Page 99: ...e not enabled 60 Profile under construction 61 Unknown Headset command 62 Unknown Hands free command 63 Incorrect state 64 Unknown DUN command 65 UART resource error Table 4 3 BTM Error Responses List of UUIDs Table 4 4 gives a list of selected UUIDs For a complete list refer to the Assigned Numbers Service Discovery SDP document 3 by the Bluetooth SIG UUID Mnemonic Profile Role 0x1101 Serial Port...

Page 100: ...m Bluetooth Technology Works HFP htm link at the bottom of page Need more View the Hands Free Profile HFP 1 5 6 Dial Up Networking Profile Version 1 1 http www bluetooth com Bluetooth Technology Works DUN htm link at the bottom of page Need more View the Dial up Networking Profile DUN 7 Serial Port Profile Specification http www bluetooth com Bluetooth Technology Works SPP htm link at the bottom o...

Page 101: ...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 PI4510B or Contains FCC ID PI4510B Any similar wording that expresses the same meaning may be used BTM511 FCC and Industry Canada Statements The user manual must show the foll...

Page 102: ...A1 1998 A2 2001 EN61000 4 3 2002 A1 2002 3 2 Means of the efficient use of the radio frequency spectrum EN 300 328 V1 7 1 2006 10 Declaration We Ezurio Ltd declare under our sole responsibility that the essential radio test suites have been carried out and that the above product to which this declaration relates is in conformity with all the applicable essential requirements of Article 3 of the EU...

Page 103: ...A1 1998 A2 2001 EN61000 4 3 2002 A1 2002 3 2 Means of the efficient use of the radio frequency spectrum EN 300 328 V1 7 1 2006 10 Declaration We Ezurio Ltd declare under our sole responsibility that the essential radio test suites have been carried out and that the above product to which this declaration relates is in conformity with all the applicable essential requirements of Article 3 of the EU...

Page 104: ...104 www lairdtech com Laird Technologies BTM510 511 Bluetooth Multimedia Module BTM510 Mechanical Diagrams Mechanical Drawings ...

Page 105: ...105 www lairdtech com Laird Technologies BTM510 511 Bluetooth Multimedia Module BTM510 Mechanical Diagrams Mechanical Drawings ...

Page 106: ...106 www lairdtech com Laird Technologies BTM510 511 Bluetooth Multimedia Module BTM511 Mechanical Diagrams Mechanical Drawings ...

Page 107: ...107 www lairdtech com Laird Technologies BTM510 511 Bluetooth Multimedia Module BTM511 Mechanical Diagrams Mechanical Drawings ...

Page 108: ...nologies BTM510 511 Bluetooth Multimedia Module 4 Ensure their is no exposed copper under the module on host p c board to avoid shorting to the test points on the underside of the module BTM511 Mechanical Diagrams Mechanical Drawings ...

Page 109: ... 2 TP3 1 R24 NF 0R 1 2 J4 3 way 2 5mm audio jack 1 2 4 3 R4 39R 1 2 R19 NF 0R 1 2 R27 0R 1 2 C6 100u 1 2 C36 NF 15pF 1 2 R14 0R 1 2 SW2 NF 1 3 2 4 R3 10K 1 2 C2 100n 1 2 L1 15n C1 100u 1 2 SW4 NF 1 3 2 4 R22 NF 0R 1 2 TP4 1 R32 0R 1 2 R23 NF 0R 1 2 R5 1MR 1 2 TP2 1 R9 39R 1 2 C35 NF 100u R38 NF 0R 1 2 C34 NF 100u R33 NF 0R 1 2 R20 0R 1 2 J2 3 way 2 5mm audio jack 1 2 4 3 J1 3 way 2 5mm audio jack ...

Page 110: ...C_3V3 VCC_IO VCC_IO VCC_3V3 VCC_IO VCC_3V3 VCC_3V3 VCC_IO VCC_IO VCC_IO VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VDD_CONN VCC_3V3 VCC_IO VCC_3V3 VCC_3V3 VCC_3V3 R41 10K 1 2 R47 10K 1 2 JP4 NF Header 2X5 1 2 3 4 5 6 7 8 9 10 C19 100n 1 2 U3 NC7SZ125 1 2 3 4 5 OE_ IN GND OUT VCC C17 100n 1 2 R64 10K 1 2 D1 HSMC A100 Q00J1 2 1 R58 10K 1 2 R49 0R 1 2 R65 10K 1 2 R52 10K 1 2 C18 ...

Page 111: ...9 10K 1 2 C24 100n 1 2 M2 Mounting Hole C29 100n 1 2 R77 1K 1 2 C27 100n 1 2 J6 SMA_Vert 1 2 3 4 5 TP15 R86 10K 1 2 C26 2u2 1 2 L5 BLM18PG221SN1D 1 2 R78 10K 1 2 R91 NF 9K1 1 2 C25 10N 1 2 FID2 Fiducial Q1 IRF5810 1 5 6 4 2 3 C22 2u2 1 2 R83 4K7 1 2 TP12 TH_TEST_POINT 1 R73 110R 1 2 D5 HSMG A100 HO1J1 2 1 U7 NC7SV17 1 2 3 4 5 NC1 IN GND OUT VCC R75 10K 1 2 R92 NF 9K1 1 2 U6 MCP1726 ADJE MF 1 2 3 4...

Page 112: ... 100u 1 2 C6 100u 1 2 TP4 1 L2 15n R13 10K 1 2 R36 2K2 1 2 R37 7K5 1 2 L1 15n R102 NF 0R 1 2 J1 3 way 2 5mm audio jack 1 2 4 3 R25 NF 0R 1 2 R26 NF 0R 1 2 R6 0R 1 2 R3 10K 1 2 C37 4 7u 1 2 C34 NF 100u R31 NF 0R 1 2 R18 10K 1 2 C1 100u 1 2 R39 NF 0R 1 2 R30 2K2 1 2 C5 100u 1 2 R38 NF 0R 1 2 R2 0R 1 2 R21 NF 0R 1 2 R1 0R 1 2 R33 NF 0R 1 2 SW4 NF 1 3 2 4 SW3 NF 1 3 2 4 C10 NF 15pF 1 2 TP1 1 L4 15n C3...

Page 113: ...VCC_3V3 VCC_IO VCC_IO VCC_3V3 VCC_IO VCC_3V3 VCC_3V3 VCC_IO VCC_IO VCC_IO VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VCC_3V3 VDD_CONN VCC_3V3 VCC_IO VCC_3V3 VCC_3V3 VCC_3V3 R64 10K 1 2 R40 10K 1 2 R42 10K 1 2 U9 CONN_SM_54_BTM511 1 2 3 4 5 6 10 11 12 14 15 16 17 18 7 8 21 22 23 24 25 26 27 28 54 53 46 45 52 47 48 49 44 43 42 41 40 39 38 37 36 34 35 33 32 31 30 29 51 50 9 13 19 20 GPIO...

Page 114: ...g Hole R85 N F 1 2 D6 BAT54C 1 2 3 D3 Diode_S1A 1 2 TP15 C22 2u2 1 2 R80 1K 1 2 SW6 BFS 1000 1 3 2 4 C30 1n 1 2 C27 100n 1 2 TP14 U6 MCP1726 ADJE MF 1 2 3 4 5 6 7 8 9 Vin_1 Vin_2 SHDN GND PWRGD Cdelay ADJ Vout GND JP5 USB B 1 2 3 4 5 6 Vcc D D GND 5 6 FID1 Fiducial TP8 1 R86 10K 1 2 U7 NC7SV17 1 2 3 4 5 NC1 IN GND OUT VCC OFF SW5 3 position switch 2 1 3 R76 1K3 1 2 TP11 TH_TEST_POINT 1 Q1 IRF5810 ...

Page 115: ...tenna Q2 2009 DVK BTM510 Development Board with BTM510 soldered in place Q1 2009 DVK BTM511 Development Board with BTM511 soldered in place Q2 2009 General Comments This is a preliminary datasheet 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 on the following two pages for exam...

Page 116: ...press 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 equi...

Reviews: