You are on page 1of 31

BTM-5 Bluetooth

Wireless TTL Master/Slave Transceiver Module

Datasheet
Rev 2.0, Jan 2011

BTM-5 Bluetooth Module Datasheet Rev1.0

Content
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Key Features ............................................................................................................................1 Product Description ................................................................................................................1 Applications .............................................................................................................................1 Specifications ...........................................................................................................................2 Electrical Characteristics .......................................................................................................2 Power Consumption ................................................................................................................ 2 Typical Application .................................................................................................................3 Pin Definition ...........................................................................................................................4 Package Description and Dimensions ....................................................................................5 Schematic Overview..................................................................................................................8 Full AT Commands list............................................................................................................11

BTM-5 Bluetooth Module Datasheet Rev2.0

1. Key Features
Bluetooth Spec v2.0+EDR Compliant Class 2 type Output Power Full speed Bluetooth operation with full piconet support Scatternet support Support Serial Port Profile (SPP) Onboard antenna 3.3V operation UART interface Support for 8Mbit external onboard Flash Minimized size 26.9mm(L) x 13mm(W) x 2.2mm(H) RoHS Compliant

2. Product Description

BTM-5 m odule is a Cl ass 2 B luetooth module using Bl ueCore4-External chipset fro m leading Bl uetooth chipset s upplier C ambridge Sil icon Radio. Th is module b oth support Mas ter and Sla ve m ode operation, i t can be e asily changed by A T command c onfiguration. Ea ch Master/Slave BTM-5 pair auto link with the defa ult device address after power up. After link is established, user can tra nsmit and rece ive data via t he UAR T i nterface wit h each other. T he transmission is almost transparent to user, it acts as tow UART connect with each other wirelessly. It is highly recommend to use BTM-5 pair to communicate with each other. User can also use the module with the Laptop, PDA, Mobile Phone and etc.

3. Applications
Bluetooth Carkit PCs Personal Digital Assistants (PDAs) Computer Accessories (Compact Flash Cards, PCMCIA Cards, SD Cards and USB Dongles) Access Points Digital Cameras

BTM-5 Bluetooth Module Datasheet Rev2.0

4. Specifications
Parameters Operating Frequency Baud Bluetooth Specification Output Power Class Sensitivity Data Rate Operating Voltage Host Interface Audio Interface Flash Memory Size Operation temperature Dimension Specifications 2.4GHz-2.48GHz unlicensed ISM Band V2.0+EDR -4 ~ 6dBm adjustable , Class 2 -80dBm at 0.1% BER Asynchronous: 2Mbps (Max) 3.3V USB / UART PCM and Analog interface 8Mbit -20 ~ +55 26.9mm(L) x 13mm(W) x 2.2mm(H)

*Specifications are subject to change without prior notice

5. Electrical Characteristics
Absolute Maximum Ratings Rating Min Storage temperature Supply voltage : VBAT Other terminal voltages -40 +150 -0.4V VSS-0.4V Max 5.6V VDD+0.4V

Recommended Operating Conditions Operating Condition Operating temperature range Guaranteed RF performance range Supply voltage : VBAT Min -40 +150 -25 +75 2.2V Max 4.2V

6. Power Consumption
Operation Mode Page scan ACL No traffic ACL with file transfer ACL 1.28s sniff ACL 1.28s sniff SCO HV3 30ms sniff SCO HV3 30ms sniff Standby Host connecton Connection Type Master Master Master Slave Master Slave UART Rate (kbps) 115.2 115.2 115.2 38.4 38.4 38.4 38.4 38.4 Average 0.42 4.60 10.3 0.37 0.42 19.8 19.0 40 Unit mA mA mA mA mA mA mA uA

BTM-5 Bluetooth Module Datasheet Rev2.0

7. Typical Application
The f ollowing sc hematic i s the ty pical hardw are a pplication for the BTM- 5 module, it provide both RS232 and 5V TTL logic level connection to the module.

We prov ide t wo varia tions of BTM-5 breakout board, one is RS23 2 in terface, t he ot her is TTL interface. Note that t hese two dif ferent br eakout bo ard use different su pply v oltage an d different interface, please take care before using them.

Pins

Signals

RS232 breakout board

TTL breakout board

1 2 3 4 5

VCC Mode RX TX GND

5V power suppler 1=AT cmd mode, 0=Normal RS232 logic level RS232 logic level Power ground

3.3V power suppler 1=AT cmd mode, 0=Normal 3.3V logic level Power ground

User can change t he d efault s etting of BTM-5 m odule w ith t he AT c ommand v ia onboard button or Mode pin. If t he bottom pressed or Mode pin pulled high, the module enter the AT command mode. Th e breakout board provide two LE D to i ndicate the st atus of t he module, th e RED led indicate the link activity status, the GREEN led indicate the pairing status.

BTM-5 Bluetooth Module Datasheet Rev2.0

8. Basic AT Command
Users can use AT commands t o s etup the m odule with dif ferent co nfigurations. Every AT command must be fol lowed with <CR> and<LF> control character which is 0x0D and 0 x0A in hexadecimal. Every AT command will foll owed with a response "OK". They will be som e basic AT command you should know. 1. AT AT command is use to test the module to see if it is OK. 2. AT+RESET AT+RESET command is reset the module back to power up status. 3. AT+ROLE? AT+ROLE? command inquiry the module's role, 0 = Slave, 1 = Master, 2 = Slave-loopback. 4. AT+ROLE=<param> AT+ROLE command is used to set the module with master or slave, 0 = Slave, 1 = Master, 2 = Slave-loopback. You have to configure one module to master and the other to slave to become a pair. 5. AT+CMODE? AT+CMODE? command inquiry the link mode. 0 = Specific bluetooth link address, 1 = Any bluetooth link address, 2 = Slave-loopback 6. AT+CMODE=<param> AT+CMODE com mand is use d to set up m odule l ink m ode. 0 = Spec ific b luetooth link address, 1 = Any bluetooth link address, 2 = Slave-loopback. It is better to set the mode to 1 if you only have one pair device, because it is much easier to make them a pair. 7. AT+PSWD? AT+PSWD? command inquiry the password of the module. 8. AT+PSWD=<param> AT+PSWD command is used to set the pairing password. 9. AT+UART? AT+UART? command inquiry the uart configurations

BTM-5 Bluetooth Module Datasheet Rev2.0

9. Pin Definition
Pin 1 UAR 2 UAR 3 UAR 4 UAR 9~11 N 12 13 GND 14~20 N 21,22 G 23 24 25 26 27 28 29 30 31 32 33 34 A ND PIO0 Programmable IO port PIO1 Programmable IO port PIO2 Programmable IO port PIO3 Programmable IO port PIO4 Programmable IO port PIO5 Programmable IO port PIO6 Programmable IO port PIO7 Programmable IO port PIO8 Programmable IO port PIO9 Programmable IO port PIO10 Programmable IO port PIO11 Programmable IO port A 3.3V Supply input Description T_TXD T_RXD T_CTS T_RTS

FULL

BTM-5 Bluetooth Module Datasheet Rev2.0

Schematic overview
The following schematic is the typical hardware application for the BTM-5 module, it provide both RS232 and 5V TTL logic level connection to the module.

The BTM-5 module pairs is default configured with 115200bps baud rate, the master and slave's PIO8 (Pin31) indicate the link status which is connected to a LED (D2) shown in the application schematic. When power up, the both module's LED flashes every 0.5 seconds and look for each other for pairing. After successfully pairing, the LED flashes 3 seconds. At this time you can transmit data via the UART port with each other. The module's PIO11 (Pin32) is a mode selection pin to switch between normal mode and AT command mode. In the application schematic, it is connected to a button S1. When it is press down the module enter AT command mode, it come back to normal mode if the button is released. Note that, when the link is not established, once the module enter AT command mode, it will not come back to normal mode until link established or send a AT+RESET command or re-power the module.

FAQ and Known Issues

The module is delivered with a default baud rate of 115200, although 38400baud is specified in the document. After sending AT+RESET, the module restores some "factory defaults" and the baud rate changes to 38400 Changing the PIO11 level from 0 to 1 or vice-versa, when the module is powered, changes the mode of operation istantly but the LED on PIO8 blinks the same way. Thus the user does not know whether the module changed the operation mode or not. The only way to find out is trying to send AT commands and see if it responds in any way. When the module is powered up in Data Transfer Mode, the LED blinks quickly (2-3Hz) indicating that the module is ready to connect. After a connection has been established the LED on PIO9 lights up and the LED on PIO8 blinks short twice every second. When the module is powered up in AT Command Mode, the LED on PIO8 blinks slowly(1 Hz). REGARDLESS of PIO11 level (0 or 1) changing the BT Connection state switches the module into Data Transfer Mode. If PIO11 is 1 and the user wants to continue with the AT Command Mode after a BT connection has been establishes it has to toggle PIO11 to switch the module back in AT Command mode.

Full list of AT ;omm$nds


<AT omm$nds $n be upper or lo&er $se2 $nd $lso end &ith 7r7n= >1 : Test ;omm$nd ;omm$nd AT Return O9 Ar%ument ?O?"

>2 : Reset ;omm$nd Return AT5R"1"T O9 Results: It &or's $s po&er y le. Ar%ument ?O?"

>3: Poll the so(t&$re )ersion ;omm$nd AT5@"R1IO?A "C$mple: $t5)ersionA7r7n 5@"R1IO?:1.3,233*3818 O9 Return 5@"R1IO?:BP$r$m O9 Ar%ument P$r$m: so(t&$re )ersion

>0: Restore the de($ult settin% ;omm$nd Return AT5ORD! O9 Restore the de($ult settin%: 1. #e)i e l$ss: 3 2. InEuiry ode: 3C33*e8b33 3. #e)i e mode: 1l$)e mode 0. Bindin% mode: 1PP :. 1eri$l port: 38033 bits/s. 1 stop bit2 no p$rity F. P$irin% ode: 412308 G. #e)i e n$me: 4++H,1PP,1833,2 Ar%ument ?O?"

>:: Poll the $ddress o( the Bluetooth de)i e ;omm$nd AT5A##RA Return 5A##R: BP$r$mO9 Ar%ument P$r$m: the $ddress o( the Bluetooth de)i e

Represent$tion o( the $ddress: ?AP:UAP:!AP <+"I= "C$mples: The $ddress o( the Bluetooth de)i e is: 12:30::F:$b: d:e( At5$ddrA7r7n 5A##R:1230::F:$b de( O9

>F: 1et $nd poll de)i e n$me ;omm$nd AT5?AJ"6BP$r$1AT5?AJ"A Return O9 1: 5?AJ": BP$r$mO9 ,,, su ess(ul 2: /AI! ,,, ($il Ar%ument P$r$m: de)i e n$me #e($ult: 4++H,1PP,1833, 28

"C$mple: AT5?AJ"6++H,1PP,1833,27r7n KKKKK 1et #e)i e n$me $s ++H,1PP,1833,2 O9 AT 5 ?AJ"64++H,1PP,1833,287r7n KKKKK 1et #e)i e n$me $s ++H,1PP,1833,2 O9 $t5n$meA7r7n 5?AJ": BeiLin O9

>G: Poll remote de)i e n$me ;omm$nd AT5R?AJ"A BP$r$m1Return Ar%ument 1: 5R?AJ": BP$r$m2 P$r$m1: remote de)i e $ddress O9 ,,, su ess(ul P$r$m2: remote de)i e n$me 2: /AI! ,,, ($il Represent$tion o( the $ddress: ?AP:UAP:!AP <+"I= "C$mples: The $ddress o( the remote Bluetooth de)i e is: 33:32:G2:od:22:202 the de)i e n$me is: Bluetooth

t5rn$meA 33322G223d22207r7n 5R?AJ"!Bluetooth O9 >8: 1et/Poll de)i e role ;omm$nd AT5RO!"6 BP$r$mReturn O9 Ar%ument P$r$m: 3 M sl$)e 1 M J$ster 2 M 1l$)e,loop #e($ult: 3

AT5RO!"A

5RO!": BP$r$m O9

"Cpl$n$tion o( de)i e roles: 1l$)e M be onne ted by other de)i e 1l$)e,loop M be onne ted by other de)i e2 re ei)e $nd send b$ ' &h$te)er re ei)ed J$ster M A ti)ely poll the ne$rby de)i e $nd initi$liNe bindin% to other de)i es. >*: 1et $nd poll de)i e type ;omm$nd AT5;!A116BP$r$mReturn O9 Ar%ument P$r$m: de)i e type #e)i e type is $ 32,bit p$r$meter. It is used to indi $te the de)i e l$ss $nd the ser)i e it supports #e($ult: 3 The $ tu$l me$nin% is eCpl$ined in $ppendiC 1.

AT5;!A11A

1. 5;!A11: BP$r$mO9 2. /AI!

In order the e((e ti)ely (ilter the ne$rby de)i e $nd Eui 'ly lo $te the users sel( de(ined de)i e2 user $n set the de)i e to be nonst$nd$rd de)i e2 su h $s 3C1(1( <heC=

>13: 1et/Poll InEuire A ess ;ode ;omm$nd AT5IA;6BP$r$mAT5IA;A Return 1: O9 2: /AI! 5IA;: BP$r$mO9 Ar%ument P$r$m: InEuire A ess ;ode #e($ult: *38b33 #et$iled eCpl$n$tion $n be (ound the $ppendiC.

I( the inEuire $ ess ode is set to DIA;<Dener$l InEuire A ess ;ode: 3C*e8b33=2 it $n be used to dis o)er or be dis o)ered by $ll ne$rby de)i es. I( user &$nts the de)i e to be $ble to be (ound Eui 'ly2 user $n set the InEuire A ess ;ode to be ode not $s DIA; $nd !IA;2 su h $s 3C*28b3(. "C$mple: AT5IA;6*28b3(7r7n O9 AT5IA;A7r7n 5 IA;: *28b3( O9 >11: 1et $nd poll InEuiry mode ;omm$nd AT5I?OJ6BP$r$m1-2 BP$r$m2-2 BP$r$m3Return 1. O9 2. /AI! Ar%ument P$r$m1: InEuiry Jode 3K inEuirey mode st$nd$rd 1K inEuiry mode rssi P$r$m2: m$C response number P$r$m3: time out2 1,08 <1.28s,F1.00s= #e($ult: 121208 AT5I?OJ612*2087r7n ,, 1et inEuiry mode: &ith R11I2 m$C de)i e response number * then stop inEuiry2 m$C time out 08I1.286F1.00s O9 AT5I?OJA7r7n 5I?OJ:12*208 O9

AT5I?OJA

5I?OJ: BP$r$m1-2 BP$r$m2-2BP$r$m3O9

>12: 1et $nd poll p$rin% p$ss&ord ;omm$nd AT5P1H#6BP$r$mAT5P1H#A Return O9 5P1H#:BP$r$m - O9 Ar%ument P$r$m: p$rin% p$ss&ord #e($ult: 412308

>10: 1et $nd poll seri$l port p$r$meters ;omm$nd AT5UART6BP$r$m1-2BP$r$m2-2 BP$r$m3Return O9 Ar%ument P$r$m1: b$ud r$te <bits/s= 0833 *F33 1*233 38033 :GF33 11:233 233033 0F3833 *12F33 1382033 P$r$m2: stop bit 3, 1 bit 1, 2 bits P$r$m3: p$rity bit 3, ?one 1, Odd 2, ")en #e($ult: *F332323 "C$mple: 1et seri$l port p$r$meters to 11:2332 2 bits stop bit2 $nd e)en p$rity AT5UART611:2332 122 7r7n O9 AT5UART A 5UART:11:2332122 O9

AT5UARTA

5UART:BP$r$m1-2BP$r$m2-2B P$r$m3O9

>10: 1et $nd poll onne tion mode ;omm$nd AT5;JO#"6BP$r$mReturn O9 Ar%ument P$r$m: 3 M spe i(i $ddress mode <the $ddress is spe i(ied in bindin% omm$nd= 2, ?o spe i(i $ddress #e($ult: 3

AT5;JO#"A

5;JO#"::BP$r$mO9

>1:: 1et $nd poll bindin% de)i e $ddress ;omm$nd AT5BI?#6BP$r$1AT5BI?#A Return O9 5BI?#:BP$r$mO9 Ar%ument P$r$m M Bindin% Bluetooth de)i e $ddress #e($ult $ddress: 33:33:33:33:33:33

The $ddress $n be represented $s ?AP:UAP:!AP <heC= The bindin% omm$nd is only )$lid in spe i(i $ddress mode. "C$mple: AT5BI?#612302:F2$b de(7r7n O9 AT5BI?#A7r7n 5BI?#:1230::F:$b de( O9 >1F: 1et/Poll the pol$rity o( !"# indi $tor dri)er ;omm$nd AT5PO!AR6BP$r$m1-2 BP$r$m2AT5#"/AU!T Return O9 Ar%ument P$r$m1: 3 M PI38 outputs lo& le)el to turn on !"# 1, PI38 outputs hi%h le)el to turn on !"# P$r$m2: 3,PI3* outputs lo& le)el to turn on !"# 1,PI3* outputs hi%h le)el to turn on !"# #e($ult: 121

PI38 dri)es the &or'in% st$tus2 $nd PI3* dri)es the lin' st$tus. "C$mple: PI38 outputs lo& le)el to turn on !"#2 $nd PI3* outputs hi%h le)el to turn on !"#. AT5PO!AR6321 7r7n O9 AT5PO!ARA7r7n 5PO!AR:321 O9 >1G: 1et sin%le PIO output ;omm$nd AT5PIO6BP$r$m1-2BP$r$m2Return O9 Ar%ument P$r$m1: PIO port number <de im$l= P$r$m2! PIO port output 3, !o& )olt$%e 1, +i%h )olt$%e

The use$ble port is PIO2, PIOG $nd PIO13. "C$mple: 1. PIO13 outputs hi%h le)el AT5PIO613217r7n O9 2. PIO13 outputs lo& le)el AT5PIO613237r7n O9 >18: 1et multiple port output ;omm$nd AT5JPIO6BP$r$mReturn O9 Ar%ument P$r$m: PIO port number m$s' ombin$tion <heC=

The use$ble port is PIO2, PIOG $nd PIO13. PIO port m$s' 6 <1 BB port number= PIO port m$s' ombin$tion 6 < PIO port m$s' 1P PIO port m$s' 2 PPIO port m$s' 3 PQ= "C$mple: PIO2 m$s'6 <1BB2=63C330 PIO13 m$s' 6 <1BB13=63C033 PIO port m$s' ombin$tion6 <3C330 P 3C033=63C030 PIO 2 $nd PIO 13 output hi%h: AT5JPIO60307r7n O9

>1*: Poll PIO port input ;omm$nd AT5JPIOA Return 5JPIO: BP$r$mO9 Ar%ument P$r$m, PIO port )$lue <1F bits= P$r$mR3S6PIO3 P$r$mR1S6PIO1 P$r$mp2S6PIO2 Q P$r$mR13S6PIO13 P$r$mR11S6PIO11

>23:1et/Poll InEuiry p$r$meters ;omm$nd AT5IP1;A?6BP$r$m1-2BP$r$m2-2 BP$r$m3-2 BP$r$m0AT5IP1;A?A Return O9 5IP1;A?:BP$r$m1-2 BP$r$m2-2BP$r$m3-2BP $r$m0Ar%ument P$r$m1: inEuiry time inter)$l P$r$m2: ontinous poll time P$r$m3: $ll time inter)$l P$r$m0: $ll ontinuous time All $bo)e $re de im$l numbers #e($ult: 13202 :122 13202 :12

>21:1et/Poll 1?I// ener%y s$)in% p$r$meters ;omm$nd AT51?I//6BP$r$m1-2BP$r$m2-2B P$r$m3-2BP$r$m0AT51?I//A Return O9 51?I//:BP$r$m1-2BP$r$m2-2B P$r$m3-2BP$r$m0Ar%ument P$r$m1: m$C time P$r$m2: min time P$r$m3: try time P$r$m0: time out All $bo)e numbers $re de im$l

#e($ult: 3232323

>22: 1et/Poll 1e urity $nd "n ryption modes ;omm$nd AT51"?J6BP$r$m1-2BP$r$m2AT51"?JA Return 1: O9 2:/AI! 51"?J:BP$r$m1-2BP$r $m2O9 Ar%ument P$r$m1: 1e urity mode 3, 1e Tmode3To(( 1, 1e Tmode1Tnon,se ure 2, 1e Tmode2Tser)i e 3, 1e Tmode3Tlin' 0, 1e TmodTun'no&n P$r$m2:en ryption mode 3, h iTen TmodeTo(( 1, h iTen TmodeTptTtoTpt 2, h iTen TmodeTptTtoTptT $ndTb $st #e($ult: 323

>23: #elete Authenti $ted #e)i e (rom the $uthenti $ted de)i e list ;omm$nd AT5RJ1A#6BP$r$mReturn O9 Ar%ument P$r$m: Bluetooth de)i e $ddress

"C$mple: #elete de)i e &ith $ddress: 12:30::F:$b: d:e( $t5rms$d61230::F:$b de(7r7n O9 Or $t5rms$d61230::F:$b de(7r7n /AI! 6666 there is no su h de)i e in the list >20: #elete $ll Authenti $ted #e)i es (rom the $uthenti $ted de)i e list ;omm$nd AT5RJ1A# Return O9 Ar%ument ?one

>2:: !o $te Authenti $ted #e)i e (rom the $uthenti $ted de)i e list ;omm$nd AT5/1A#6BP$r$mReturn 1. O9 , eCists 2. /AI!, no,eCisit Ar%ument P$r$m: Bluetooth de)i e $ddress

"C$mple: /indde)i e &ith $ddress: 12:30::F:$b: d:e( $t5/1A#61230::F:$b de(7r7n O9 Or $t5(s$d61230::F:$b de(7r7n /AI! 6666 there is no su h de)i e in the list >2F: Obt$in the tot$l Authenti $ted #e)i e number in the $uthenti $ted de)i e list ;omm$nd AT5A#;?A6BP$r$mReturn 5A#;?:BP$r$mO9 Ar%ument P$r$m: tot$l number o( de)i e in the $uthenti $ted de)i e list

>2G: Obt$in the most re ently used Authenti $ted #e)i e ;omm$nd AT5JRA#A Return 5JRA#:BP$r$mAr%ument P$r$m: most re ently $uthenti $ted de)i e

used

>28: Obt$in the &or'in% st$tus o( the Bluetooth de)i e ;omm$nd AT51TAT"A Return 51TAT":BP$r$mO9 Ar%ument P$r$m: &or'in% st$tus 4I?ITIA!IU"#8 4R"A#V8 4PAIRAB!"8 4PAIR#8 4I?OUIRI?D8 4;O??";TI?D8 4;O??";T"#8 4#I1;O??";T"#8 4?U9?OH8

>2*: Initi$lise the spp pro(ile lib ;omm$nd AT5I?IT Return 1. O9 2. /AI! Ar%ument ?O?"

>33: InEuire ne$rby de)i es ;omm$nd AT5I?O Return 5I?O: BP$r$m1-2BP$r$m2-2BP$r$m3Q. O9 Ar%ument P$r$m1: $ddress P$r$m2: de)i e l$ss P$r$m3: R11I

"C$mple 1: $t5init7r7n Initi$liNe 1PP < $nWt repe$tedly initi$liNe= O9 $t5i$ 6*e8b337r7n inEuire %ener$l inEuire $ ess ode O9 $t5 l$ss637r7n inEuire $ll de)i es types O9 $t5inEm612*2087r7n InEuire mode: R11I2 m$C number *2 timeout 08 At5inE7r7n inEuire 5I?O:2:G2:#222023"31302//B; 5I?O:1230::F:321/1/2//;1 5I?O:1230::F:321/1/2//;3 5I?O:1230::F:321/1/2//;1 5I?O:2:G2:#222023"31302//A# 5I?O:1230::F:321/1/2//B" 5I?O:1230::F:321/1/2//;2 5I?O:1230::F:321/1/2//B" 5I?O:2:G2:#222023"31302//B; O9 >31: ;$n el InEuire ne$rby de)i es ;omm$nd AT5I?O; Return O9 Ar%ument ?one

>32: #e)i e p$irin% ;omm$nd AT5PAIR6BP$r$m1-2BP$r$m2Return 1. O9 2. /AI! Ar%ument P$r$m1: remote de)i e $ddress P$r$m2:timeout

"C$mple: P$ir &ith remote de)i e: 12:30::F:$b: d:e(2 timeout 23 s. At5p$ir612302:F2$b de(2 237r7n O9 >33: #e)i e ;onne tion ;omm$nd AT5!I?96BP$r$mReturn 1. O9 2. /AI! Ar%ument P$r$m: remote de)i e $ddress

"C$mple: !in' to remote de)i e: 12:30::F:$b: d:e( At5(s$d612302:F2$b de(7r7n ,, he ' i( remote de)i e is in the $uthenti $ted de)i e list or not O9 At5lin'6612302:F2$b de(7r7n ,, it is in the list2 doesnWt need to be inEuired $nd $n be dire tly lin'ed O9 >30: #e)i e #is onne tion ;omm$nd AT5#I1; Return 1. 5#I1;: 1U;;"11 2. 5#I1;:!I?9T!O11 3. 5#I1;:?OT1!; 0. 5#I1;:TIJ"OUT :. 5#I;1:"RROR >3:: "nter into ener%y s$)in% mode Ar%ument ?one

;omm$nd AT5"?1?I//6BP$r$m-

Return O9

Ar%ument P$r$m: Bluetooth de)i e $ddress

>3F: "Cit ener%y s$)in% mode ;omm$nd AT5"I1?I//6BP$r$mReturn O9 Ar%ument P$r$m: Bluetooth de)i e $ddress

AppendiC 1: AT omm$nd error "RROR ode de oder "rrorT ode <heC= 3 1 2 3 0 : F G 8 * A B ; # " / 13 11 12 13 10 1: 1F 1G 18 1* 1A 1B 1;

"Cpl$n$tion AT omm$nd error The result is de($ult )$lue P19"V &rite error #e)i e n$me is too lon% <more th$n 32 bytes= #e)i e n$me is 3 byte Bluetooth $ddress: ?AP is too lon% Bluetooth $ddress: UAP is too lon% Bluetooth $ddress: !AP is too lon% PIO port m$s' len%th is 3 In)$lid PIO port #e)i e l$ss is 3 byte #e)i e l$ss is too lon% InEuire A ess ;ode len%th is 3 InEuire A ess ;ode is too lon% In)$lid InEuire A ess ;ode P$irin% p$ss&ord is 3 P$irin% p$ss&ord is too lon% <more th$n 1F bytes= Role o( module is in)$lid B$ud r$te is in)$lid 1top bit is in)$lid P$rity bit is in)$lid ?o de)i e in the p$irin% list 1PP is not initi$liNed 1PP is repe$tedly initi$liNed In)$lid inEuiry mode InEuiry timeout Address is 3 In)$lid se urity mode In)$lid en ryption mode

AppendiC 2: #e)i e ;l$ss

The ;l$ss o( #e)i e/1er)i e<;o#=is $ 32 bits number th$t is m$de o( 3 (ields. One (ield spe i(ies the ser)i e supported by the de)i e. Another (ield spe i(ies the m$Lor de)i e l$ss2 &hi h bro$dly orresponds to the type o( the de)i e. The third (ield spe i(ies the minor de)i e l$ss2 &hi h des ribes the de)i e type in more det$il. The ;l$ss o( #e)i e/1er)i e <;o#= (ield h$s $ )$ri$ble (orm$t. The (orm$t is indi $ted usin% the X/orm$t Type (ieldX &ithin the ;o#. The len%th o( the /orm$t Type (ield is )$ri$ble $nd ends &ith t&o bits di((erent (rom X11X. The )ersion (ield st$rts $t the le$st si%ni(i $nt bit o( the ;o# $nd m$y eCtend up&$rds. In the X(orm$t >1X o( the ;o# </orm$t Type (ield 6 33=2 11 bits $re $ssi%ned $s $ bit,m$s' <multiple bits $n be set= e$ h bit orrespondin% to $ hi%h le)el %eneri $te%ory o( ser)i e l$ss. ;urrently G $te%ories $re de(ined. These $re prim$rily o( $ Xpubli ser)i eX n$ture. The rem$inin% 11 bits $re used to indi $te de)i e type $te%ory $nd other de)i e,spe i(i h$r$ teristi s.Any reser)ed but other&ise un$ssi%ned bits2 su h $s in the J$Lor 1er)i e ;l$ss (ield2 should be set to 3.

/i%ure 1.2: The ;l$ss o( #e)i e/1er)i e (ield <(irst (orm$t type=. Ple$se note the order in &hi h the o tets $re sent on the $ir $nd stored in memory. Bit number 3 is sent (irst on the $ir.

1. JAYOR 1"R@I;" ;!A11"1

Bit no 13 10 1: 1F 1G 18 1* 23 21 22 23

J$Lor 1er)i e ;l$ss !imited #is o)er$ble Jode RRe( >1S <reser)ed= <reser)ed= Positionin% <!o $tion identi(i $tion= ?et&or'in% <!A?2 Ad ho 2 ...= Renderin% <Printin%2 1pe$'er2 ...= ;$pturin% <1 $nner2 Ji rophone2 ...= ObLe t Tr$ns(er <),InboC2 ),/older2 ...= Audio <1pe$'er2 Ji rophone2 +e$dset ser)i e2 ...= Telephony <;ordless telephony2 Jodem2 +e$dset ser)i e2 ...= In(orm$tion <H"B,ser)er2 HAP, ser)er2 ...= TAB!" 1.2: JAYOR 1"R@I;"

;!A11"1 RRe( >1 As de(ined in 1ee Deneri A ess Pro(ile2 Bluetooth 1IDS 2. JAYOR #"@I;" ;!A11"1

The J$Lor ;l$ss se%ment is the hi%hest le)el o( %r$nul$rity (or de(inin% $ Bluetooth #e)i e. The m$in (un tion o( $ de)i e is used to determine the m$Lor l$ss %roupin%. There $re 32 di((erent possible m$Lor l$sses. The $ssi%nment o( this J$Lor ;l$ss (ield is de(ined in T$ble 1.3. 12 3 3 3 3 3 3 3 1 I 11 3 3 3 3 3 3 3 1 I 13 3 3 3 3 1 1 1 1 I * 3 3 1 1 3 8 3 1 3 1 3 J$Lor #e)i e ;l$ss
Jis ell$neous RRe( >2S ;omputer <des'top2noteboo'2 P#A2 or%$niNers2 .... = Phone < ellul$r2 ordless2 p$yphone2 modem2 ...= !A? /?et&or' A ess point Audio/@ideo <he$dset2spe$'er2stereo2 )ideo displ$y2 ) r..... Peripher$l <mouse2 Loysti '2 'eybo$rds2 ..... = Im$%in% <printin%2 s $nner2 $mer$2 displ$y2 ...= Un $te%oriNed2 spe i(i de)i e ode not spe i(ied

3 1 1 3 1 1 I I All other )$lues reser)ed TAB!" 1.3: JAYOR #"@I;" ;!A11"1

RRe( >2: Used &here $ more spe i(i J$Lor #e)i e ;l$ss ode is not suited <but only $s spe i(ied in this do ument=. #e)i es th$t do not h$)e $ m$Lor l$ss ode $ssi%ned $n use the $ll,1 ode until X l$ssi(iedXS

3.

T+" JI?OR #"@I;" ;!A11 /I"!# The XJinor #e)i e ;l$ss (ieldX <bits G to 2 in the ;o#=2 $re to be interpreted only in the onteCt o( the J$Lor #e)i e ;l$ss <but independent o( the 1er)i e ;l$ss (ield=. Thus the me$nin% o( the bits m$y h$n%e2 dependin% on the )$lue o( the XJ$Lor #e)i e ;l$ss (ieldX. Hhen the Jinor #e)i e ;l$ss (ield indi $tes $ de)i e l$ss2 then the prim$ry de)i e l$ss should be reported2 e.%. $ ellul$r phone th$t $n $lso &or' $s $ ordless h$ndset should use X;ellul$rX in the minor de)i e l$ss (ield.

0.

JI?OR #"@I;" ;!A11 /I"!# , ;OJPUT"R JAYOR ;!A11 G 3 3 3 3 3 3 3 I F 3 3 3 3 3 3 3 I : 3 3 3 3 3 3 3 I 0 3 3 3 3 1 1 1 I 3 3 3 1 1 3 3 1 I 2 3 1 3 1 3 1 3 I Jinor #e)i e ;l$ss bit no o( ;o# Un $te%oriNed2 ode (or de)i e not $ssi%ned #es'top &or'st$tion 1er)er, l$ss omputer !$ptop +$ndheld P;/P#A < l$m shell= P$lm siNed P;/P#A He$r$ble omputer <H$t h siNed= All other )$lues reser)ed

TAB!" 1.0: 1UB #"@I;" ;!A11 /I"!# /OR T+" X;OJPUT"RX JAYOR ;!A11 :. JI?OR #"@I;" ;!A11 /I"!# , P+O?" JAYOR ;!A11 G 3 3 3 3 3 3 3 I F 3 3 3 3 3 3 3 I : 3 3 3 3 3 3 3 I 0 3 3 3 3 1 1 1 I 3 3 3 1 1 3 3 1 I 2 3 1 3 1 3 1 3 I Jinor #e)i e ;l$ss bit no o( ;o# Un $te%oriNed2 ode (or de)i e not $ssi%ned ;ellul$r ;ordless 1m$rt phone Hired modem or )oi e %$te&$y ;ommon I1#? A ess 1im ;$rd Re$der All other )$lues reser)ed

F.

JI?OR #"@I;" ;!A11 /I"!# , !A?/?"THOR9 A;;"11 POI?T JAYOR ;!A11 G 3 3 3 3 1 1 F 3 3 1 1 3 3 : 3 1 3 1 3 1 Jinor #e)i e ;l$ss bit no o( ;o# /ully $)$il$ble 1 , 1GZ utiliNed 1G , 33Z utiliNed 33 , :3Z utiliNed :3 , FGZ utiliNed FG , 83Z utiliNed

1 1 I

1 3 1 1 I I

83 , **Z utiliNed ?o ser)i e $)$il$ble RR"/ >3S All other )$lues reser)ed

TAB!" 1.F: T+" !A?/?"THOR9 A;;"11 POI?T !OA# /A;TOR /I"!# RRe( >3: [#e)i e is (ully utiliNed $nd $nnot $ ept $ddition$l onne tions $t this time2 ple$se retry l$ter[S The eC$ t lo$din% (ormul$ is not st$nd$rdiNed. It is up to e$ h !A?/?et&or' A ess Point implement$tion to determine &h$t intern$l onditions to report $s $ utiliN$tion per ent$%e. The only reEuirement is th$t the number re(le ts $n e)er, in re$sin% utiliN$tion o( ommuni $tion resour es &ithin the boC. As $ re ommend$tion2 $ lient th$t lo $tes multiple !A?/?et&or' A ess Points should $ttempt to onne t to the one reportin% the lo&est lo$d.

0 3 I

3 3 I

2 3 I

Jinor #e)i e ;l$ss bit no o( ;o# Un $te%oriNed <use this )$lue i( no other $pply= All other )$lues reser)ed

TAB!" 1.G: R"1"R@"# 1UB,/I"!# /OR T+" !A?/?"THOR9 A;;"11 POI?T G. JI?OR #"@I;" ;!A11 /I"!# , AU#IO/@I#"O JAYOR ;!A11

G 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3

F 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 1

: 3 3 3 3 3 3 3 3 1 1 1 1 1 1 1 1 3 3

0 3 3 3 3 1 1 1 1 3 3 3 3 1 1 1 1 3 3

3 3 3 1 1 3 3 1 1 3 3 1 1 3 3 1 1 3 3

2 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1

Jinor #e)i e ;l$ss bit no o( ;o# Un $te%oriNed2 ode (or de)i e not $ssi%ned #e)i e on(orms to the +e$dset pro(ile +$nds,(ree <Reser)ed= Ji rophone !oudspe$'er +e$dphones Port$ble Audio ;$r $udio 1et,top boC +i/i Audio #e)i e @;R @ideo ;$mer$ ;$m order @ideo Jonitor @ideo #ispl$y $nd !oudspe$'er @ideo ;on(eren in% <Reser)ed=

3 I

1 3 I I

3 I

1 I

3 I

D$min%/Toy RRe( >0S All other )$lues reser)ed

RRe( >0: Only to be used &ith $ D$min%/Toy de)i e th$t m$'es $udio/)ideo $p$bilities $)$il$ble )i$ BluetoothS TAB!" 1.8: 1UB #"@I;" ;!A11"1 /OR T+" XAU#IO/@I#"OX JAYOR ;!A11

8.

JI?OR #"@I;" ;!A11 /I"!# , P"RIP+"RA! JAYOR ;!A11

G 3 1 1 I

F 1 3 1 I

Jinor #e)i e ;l$ss bit no o( ;o# 9eybo$rd Pointin% de)i e ;ombo 'eybo$rd/pointin% de)i e All other )$lues reser)ed

TAB!" 1.*: T+" P"RIP+"RA! JAYOR ;!A11 9"VBOAR#/POI?TI?D #"@I;" /I"!# Bits F $nd G independently spe i(y mouse2 'eybo$rd or ombo mouse/'eybo$rd de)i es. These m$y be ombined &ith the lo&er bits in $ multi(un tion$l de)i e.

: 3 3 3 3 3 3 I

0 3 3 3 3 1 1 I

3 3 3 1 1 3 3 I

2 3 1 3 1 3 1 I

Jinor #e)i e ;l$ss bit no o( ;o# Un $te%oriNed de)i e Yoysti ' D$mep$d Remote ontrol 1ensin% de)i e #i%itiNer t$blet All other )$lues reser)ed

TAB!" 1.13: R"1"R@"# 1UB,/I"!# /OR T+" #"@I;" TVP"

*.

JI?OR #"@I;" ;!A11 /I"!# , IJADI?D JAYOR ;!A11

G I I I 1 I

F I I 1 I I

: I 1 I I I

0 1 I I I I

Jinor #e)i e ;l$ss bit no o( ;o# #ispl$y ;$mer$ 1 $nner Printer All other )$lues reser)ed

TAB!" 1.11: T+" IJADI?D JAYOR ;!A11 BIT1 0 TO G Bits 0 to G independ$ntly spe i(y displ$y2 $mer$2 s $nner or printer. These m$y be ombined in $ multi(un tion$l de)i e.

3 3 I

2 3 I

Jinor #e)i e ;l$ss bit no o( ;o# Un $te%oriNed2 de($ult All other )$lues reser)ed

TAB!" 1.12: T+" IJADI?D JAYOR ;!A11 BIT1 2 A?# 3 Bits 2 $nd 3 $re reser)ed

AppendiC 3 The InEuiry A ess ;odes

The Dener$l, $nd #e)i e,1pe i(i InEuiry A ess ;odes <#IA;s= The InEuiry A ess ;ode is the (irst le)el o( (ilterin% &hen (indin% Bluetooth de)i es $nd ser)i es. The m$in purpose o( de(inin% multiple IA;s is to limit the number o( responses th$t $re re ei)ed &hen s $nnin% de)i es &ithin r$n%e. 3 3C*"8B33 Dener$l/Unlimited InEuiry A ess ;ode <DIA;= 1 3C*"8B33 !imited #edi $ted InEuiry A ess ;ode <!IA;= 2 3C*"8B31 3C*"8B32 R"1"R@"# /OR /UTUR" U1" 3 3C*"8B30 3C*"8B3/ R"1"R@"# /OR /UTUR" U1"

The !imited InEuiry A ess ;ode <!IA;= is only intended to be used (or limited time periods in s en$rios &here both sides h$)e been eCpli itly $used to enter this st$te2 usu$lly by user $ tion. /or (urther eCpl$n$tion o( the use o( the !IA;2 ple$se re(er to the Deneri A ess pro(ile. In ontr$st it is $llo&ed to be ontinuously s $nnin% (or the Dener$l InEuiry A ess ;ode <DIA;= $nd respond &hene)er inEuired.

You might also like