BTM410/411 DATA MODULE USER MANUAL www.lairdtech.
BTM410/411 Bluetooth® AT Data Module REVISION HISTORY 2 www.lairdtech.
BTM410/411 Bluetooth® AT Data Module TABLE OF CONTENTS CONTENTS BTM410/411 Bluetooth® Module ...4 Application Examples . .................36 Overview . ............................................. 4 BTM410/411 Key Features . .................. 4 RS232 Modem Signals ........................ 36 Modem Signaling over Bluetooth® ..... 37 Pure Cable Replacement Mode .......... 37 Audio Cable (Voice) ............................ 38 Specifications .................................
BTM410/411 Bluetooth® AT Data Module OVERVIEW AND KEY FEATURES The BTM410 and BTM411 Bluetooth® modules from Laird Technologies have been designed to meet the needs of developers who wish to add robust, short range Bluetooth data connectivity to their products. They are based on the market leading Cambridge Silicon Radio BC04 chipset, providing exceptionally low power consumption with outstanding range. They support the latest Bluetooth® Version 2.
BTM410/411 Bluetooth® AT Data Module SPECIFICATIONS CATEGORIES Wireless Specification FEATURE IMPLEMENTATION Bluetooth® Version 2.1+EDR Transmit Class Class 2 Frequency 2.402 – 2.
BTM410/411 Bluetooth® AT Data Module SPECIFICATIONS CATEGORIES FEATURE Command Interface AT Instructions set Current Consumption Supply Voltage Multipoint Software Comprehensive control of connection and module operation S Registers for non-volatile storage of parameters Supports multiple connections Data Transfer Typically 32mA Low Power Sniff Mode Less than 2.5mA Supply 3.0V – 3.3V DC I/O 1.7V – 3.3V DC (independent of Supply) USB & UART 1.7V – 3.
BTM410/411 Bluetooth® AT Data Module SPECIFICATIONS Pin Signal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 Unused GND UART_CTS UART_RXD UART_RTS UART_TXD GND SPI_CSB SPI_MISO SPI_MOSI SPI_CLK VDD_USB VDD_IO VDD_IN GND PCM_IN PCM_SYNC PCM_CLK PCM_OUT RESET GPIO5 GPIO3 / UART_DCD GND Unused Unused Unused Unused GND ANT (BTM410) GND Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused GND GPI
BTM410/411 Bluetooth® AT Data Module OPERATING PARAMETERS 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.3 Voltage Specifications Logic Levels (VUSB) Input Voltage Levels Vih Vil Min Typ Max 0.7VDD_IO 1.7
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Introduction This document describes the protocol used to control and configure the BT Data Bluetooth device. 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.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 AT Command Set Assumptions The CSR (Cambridge Silicon Radio) Bluecore chipset in Laird Technologies devices is memory resource limited. Therefore it is NOT proposed that there be full implementation of the AT protocol as seen in modems. The claim made for this device is that it will have a protocol similar to an AT modem.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 3. AT Used to check the module is available. Response: OK 4. ATA {Answer Call} Accept an incoming connection, which is indicated by the unsolicited string RING 123456789012 every second. 123456789012 is the Bluetooth address of the connecting device. Response: CONNECT 123456789012 5. ATD, {Make Outgoing Connection} 11 www.lairdtech.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 6. ATDL {Remake Connection} Make a connection with the same device and service as that specified in the most recent ATD command. The modifiers are optional. An error will be returned if the ‘L’ modifier is specified AND a Bluetooth address. If both ‘L’ and ‘R’ modifiers are specified then an error will be returned. Response: CONNECT 123456789012 AE Or NO CARRIER 7.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 I11 The reason why a “NO CARRIER” resulted in the most recent attempt at making an outgoing connection.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 For recognised values of n. All other values of n will generate an error. Response: As AppropriateOK Or Response: ERROR nn 11. ATO {Enter Data Mode} (letter ‘o’) Return to data mode. Assume that the module is in data mode after OK is received. Responds with an error if there is no Bluetooth connection.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment S504 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. 0 0..1 Suppressing connection based messaged allows the device to be configured 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.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment S515 Default Device Class Code to be used with AT+BTO when it is not explicitly specified. When queried, the value is always printed as a hexadecimal number. 0x001F00 0.. 0xFFFFFF To change the device class of the module, after AT+BTO, use the command AT+BTC. S516 0x000000 0..0x2FFFFFF Default Device Class filter to be used with AT+BTI when it is not explicitly specified.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment S531 Specifies the mode on connection establishment. 0 0..5 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.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment S551 This register specifies in each 4 bit nibble, how the outgoing modem status bits to the remote peer gets its value. Bluetooth allows for RTR, RTC, DV and IC bits to be exchanged over an RFCOMM connection. 0x3211 0xFFFF Nibble 0..3 specifies the source for RTC 4..7 specifies the source for RTR 8..11 specifies the source for DV (i.e. DCD) 12..15 specifies the source for IC (i.e.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment S554 If S Register 512>=2 and <=7 then this register specifies a time in seconds for which the device will stay in the S512 mode after power up or reset. On timeout, it will abort the discoverable and/or connectable and fall back into S512=1 mode, when it is deaf and dumb. 0 0..
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment 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 defined in SReg 554 instead of mode defined in SReg555 S583 0xB 0 ..
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Register Default Range Comment S641 n/a 0..65535 As per 631, but the action of reading the value will reset the count to 0. S642 n/a 0..65535 As per 632, but the action of reading the value will reset the count to 0. S701 n/a 0..65535 Read/Write to Analogue Line 0, when reading value is returned in decimal S702 n/a 0..65535 Read/Write to Analogue Line 1, when reading value is returned in decimal S711 n/a 0000..
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 17. ATZ {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.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 22. AT+BTAn {Control Audio Channel} Once a Bluetooth connection is active, and assuming the peer device is also a Laird Technologies device, this command is used to start/stop a SCO channel which will connect the PCM interfaces of the two peer devices. This means that if a codec is attached to the PCM pins, then 2-way audio can be established. +BTA0 Switch off the channel. +BTA1 Switch on the channel.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 25. AT+BTD {Remove Trusted Device} This command is used to remove the specified device from the list of trusted devices in the non-volatile database. If the device is not in the database then the response will still be an OK. Response: OK 26. AT+BTD* {Remove All Trusted Devices} This command is used to remove all devices from the list of trusted devices in the non-volatile database.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 32. AT+BTGY {Enable Promiscuous Page Scanning ONLY} Enable page scanning only and wait for a connection from any device. Inquiry scans disabled. Authentication is disabled and encryption is enabled. Response: OK 33. AT+BTGUY {Enable Promiscuous Page Scanning ONLY} Enable page scanning only and wait for a connection from any device. Inquiry scans are disabled.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 36. AT+BTIN {Inquire} As per AT+BTI but the response includes the device class code and friendly name for all inquiry responses. Please refer to the ‘ERROR ESPONSE’ note in the description for AT+BTI. The friendly name strings are in UTF-8 format as per the Bluetooth specification.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 42. AT+BTN? {Read Friendly Name from Non-volatile Memory} Read the default friendly name from non-volatile memory. Response: ”My FriendlyName” OK 43. AT+BTO {Open and make Unit Detectable} After power up and ATZ, this command is sent so that RFCOMM is initialised and opened and the service name as specified in AT+BTN is exposed via the SDP registry.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 50. AT+BTR {Set Outgoing Peer Address} This command is used to store a peer address for outbound connections in non-volatile memory. A value of 000000000000 has the special meaning of invalid peer address. This command is used to set up a module in pure cable replacement mode.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 55. AT+BTT {Add Trusted Device} This command is used to store the cached link key in the non-volatile database. If the database is full it will respond with an ERROR. If the device is already in the database, then the key is replaced. If the link key cache is empty, that is, a pairing has not been performed since the device was powered, then the response will be an ERROR.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Unsolicited Responses The ‘AT’ Protocol is a command/response type of protocol. This means that the device will normally only respond to AT commands. Under special circumstances, unsolicited responses will be sent to the host. They are described in the following subsections. RING This string is sent to the host when a remote device is initiating a serial port connection.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Incoming Connections The device can be configured using the AT+BTP or AT+BTG command so that it will scan for incoming connections from other Bluetooth devices. It can also be configured via S Register 512 to be in this mode by default on power up. When the lower layers detect an incoming call, a RING 123456789012 string is sent to the host every second. The command ATA is used to accept the connection and ATH to reject it.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Pairing and Trusted Devices When authentication is enabled via S register 500 or when using the ‘u’ modifier in the ATD and AT+BTP commands, a connection attempt will require a link key for the peer device. The link key can be obtained prior to connection by invoking the AT+BTW and AT+BTK commands. A new link key can be obtained as often as required and is stored in a volatile cache.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 33 www.lairdtech.com Error Responses All error responses from the device will be in the form ERROR nn, where nn will be a number in the range 00 to 99. Error Description 01 Register not recognised 02 Value for register is out of range 03 Incoming call NOT pending 04 No call to connect to.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Factory Default Mode Laird Technologies devices are capable of operating at a very wide range of baud rates. S Registers 520 and 521 allow the baud rate to be set very easily. The baud rate clock generator in the device is more versatile than that available in a standard 16550 UART commonly available in PCs. In fact, as long as the equation BAUDRATE * 0.
BTM410/411 Bluetooth® AT Data Module CONFIGURING THE BTM410/411 Disclaimers LAIRD TECHNOLOGIES’ WIRELESS PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE MANAGING DIRECTOR OF LAIRD TECHNOLOGIES.
BTM410/411 Bluetooth® AT Data Module Application Examples Application Examples RS232 Modem Signals Just as a telephony modem has control and status lines, the BT Data Module also provides for 6 control and status lines as per the table below. The direction column is as seen from the module’s viewpoint.
BTM410/411 Bluetooth® AT Data Module Application Examples Modem signalling over Bluetooth The RFCOMM protocol used in Bluetooth for implementing the serial port profile allows for the exchange of four modem signals. This information is contained in a special transparent message which contains bits identified as RTR, RTC, DV and IC which depending on the type of serial device being emulated maps to DTR or DSR, RTS, DCD and RI respectively.
BTM410/411 Bluetooth® AT Data Module Application Examples Where is optional. If it is not specified, then the slave unit will accept connections from any device. If specified then only connections from the device specified will be accepted. If it is desired that the slave unit should not be discoverable (the master is by default not discoverable), then the configuration commands are: AT&F* ATS512=3 ATS0=-1 AT&W AT+BTR Where is optional.
BTM410/411 Bluetooth® AT Data Module Application Examples Modem Control and Status Signals A serial port has DTR, DSR, RTS, CTS, DCD and RI control lines. RTS and CTS are locally controlled to prevent local buffer overflow. The status of DTR, DRS, DCD and RI can be exchanged with the remote peer device. If for example, the DTR/DSR lines are to be exchanged between the two peers to simulate the performance of a physical cable, then it is possible to do so.
BTM410/411 Bluetooth® AT Data Module MECHANICAL DRAWINGS H RF Shield 29 36 26 26 TOP VIEW (COMPONENT SIDE) 25 25 36 29 BOTTOM VIEW (SMT PADS) 37 b 37 RF OUT RF OUT Mechanical Details U2 50 Description Size Pitch Dimension A A1 A2 b D E e D1 E1 F G H Units 40 www.lairdtech.com E1 e A A1 A2 D 50 pin BT Data Module 18.0 x 12.5 x 2.5mm 1mm Minimum Typical Maximum 2.4 2.7 2.3 0.8 0.9 1.0 1.3 1.5 1.7 0.55 0.65 0.60 12.37 12.5 12.63 17.87 18.0 19.13 1.0 10.0 12.0 1.25 2.50 0.
BTM410/411 Bluetooth® AT Data Module Recommended pcb Footprint MODULE OUTLINE (See note 2) Pad Width 0.7 Typ Pad Length 1.65 Typ 9.6 50 37 36 5 13.7 1x10 pin pitch 1 29 RF OUT (See Note 1) 26 11 12 6.85 MECHANICAL DRAWINGS 25 6.5 pin pitch 1x13 19.2 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 (BTM410). 2.
A B C VCC_IO VCC_IO 5 R3 10K R8 10K R62 10K VCC_3V3 10K R56 R52 10K 10K 1 2 R64 10K VCC_IO 10K R44 NF SW1 NF SW2 1 2 1 1 3 5 7 9 11 1 R65 10K 2 R42 VCC_3V3 PIO_3/DCD PIO_9/DTR Module_RTS RESET_ Module_TX VCC_IO SPI_CS_PC SPI_CLK_PC PIO_4 PIO_5 PIO_2/RI Module_TX PIO_3/DCD 100n C18 VCC_3V3 PIO_9/DTR Module_RTS 1 2 1 2 VCC_IO 3 4 NF 1 3 5 0R 2 3 4 R68 JP2 1 NF Header 6X2 JP1 2 4 6 8 10 12 USB_PWREN 1 0R 2 R67 2 4 6 R49 1 R66 0R 2 0R 2 10K
A B C JP5 BLM18PG221SN1D USB B Vcc DD+ GND 2 12 3 4 L5 RESET_FTDI 1 D+ 5 10K R84 4K7 R88 VDD_USB CN1 DC Power jack_2.1mm 1 D- USB_DCD USB_DTR USB_PIO_2/RI USB_DSR 2 2 2 N/F Q1 USB_MOD_D+ 2 1 USB_MOD_D- 1K USB+ USB- USB_CTS USB_RTS USB_TX USB_RX NF 0R R85 1 NF 0R 2 0R R82 1 R94 1 2 R93 1 10K R78 0R 1 R81 1 VDD_CONN NF C28 R77 2 3 5 1n C30 IRF5810 4 6 10K R87 4.
BTM410/411 Bluetooth® AT Data Module ORDERING INFORMATION ORDERING INFORMATION part number DESCRIPTION BTM410 Bluetooth AT Data Module (external antenna) BTM411 Bluetooth AT Data Module (with integrated antenna) Q1-2009 DVK – BTM410 Development board with BTM410 module soldered in place DVK – BTM411 Development board with BTM411 module soldered in place Q2-2009 General Comments This is a preliminary datasheet.
Laird Technologies is the world leader in the design and manufacture of customized, performance-critical products for wireless and other advanced electronics applications.