BTM-5 Bluetooth Wireless TTL Master/Slave Master/Slave Transc eiver Modu le
Datasheet Rev 2.0, Jan 2011
BTM-5 Bluetooth Module Datasheet Rev1.0
Content 1.
Key Features ............................................................................................................................ ............................................................................................................................1 1
2.
Product Description ................................................................................................................ ................................................................................................................1 1
3.
.............................................................................................................................1 1 Applications .............................................................................................................................
4.
Specifications ........................................................................................................................... ...........................................................................................................................2 2
5.
Electrical Characteristics Characteristics ....................................................................................................... 2
6.
Power Consumption ................................................................................................................ 2
7.
Typical Application ................................................................................................................. .................................................................................................................3 3
8.
...........................................................................................................................4 4 Pin Definition ...........................................................................................................................
9.
Package Description and Dimensions .................................................................................... ....................................................................................5 5
10. Schematic Overview..................................................................................................................8 11. Full AT Commands list............................................................................................................11
BTM-5 Bluetooth Module Datasheet Rev1.0
Content 1.
Key Features ............................................................................................................................ ............................................................................................................................1 1
2.
Product Description ................................................................................................................ ................................................................................................................1 1
3.
.............................................................................................................................1 1 Applications .............................................................................................................................
4.
Specifications ........................................................................................................................... ...........................................................................................................................2 2
5.
Electrical Characteristics Characteristics ....................................................................................................... 2
6.
Power Consumption ................................................................................................................ 2
7.
Typical Application ................................................................................................................. .................................................................................................................3 3
8.
...........................................................................................................................4 4 Pin Definition ...........................................................................................................................
9.
Package Description and Dimensions .................................................................................... ....................................................................................5 5
10. Schematic Overview..................................................................................................................8 11. 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 BTM-5 m odule odule is a Cl ass 2 B luetoo luetooth th module module using using Bl ueCore ueCore4-E 4-Exte xterna rnall chipse chipsett fro m leading leading Bluetooth chipset chipset supplier C ambridge ambridge Sil icon Radio. Th Th is module b oth support support Master and Sla ve m ode operat operation ion,, i t can be e asily asily change changed d by A T comman command d c onfigu onfigurat ration ion.. Ea ch Master/Slave BTM-5 pair auto link with the defa ult device ad ad dress a fter power pow er u p. A fter link is establ establish ished, ed, user user can can tra nsmit nsmit and rece rece ive data data via t he UAR T i nterfa nterface ce wit h each each other other.. T he transmission is almost transparent to user, it acts as tow UART connect connect with each other wirelessly. 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 Accessories (Compact Flash Cards, PCMCIA Cards, SD Cards and USB Dongles)
Access Points
Digital Cameras
1
BTM-5 Bluetooth Module Datasheet Rev2.0
4. Specifications Parameters
Specifications
Operating Frequency Baud
2.4GHz-2.48GHz unlicensed ISM Band
Bluetooth Specification
V2.0+EDR
Output Power Class
-4 ~ 6dBm adjustable , Class 2
Sensitivity
-80dBm at 0.1% BER
Data Rate
Asynchronous: 2Mbps (Max)
Operating Voltage
3.3V
Host Interface
USB / UART
Audio Interface
PCM and Analog interface
Flash Memory Size
8Mbit
Operation temperature
-20 ~ +55 ℃
Dimension
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
Max
Storage temperature
-40℃ +150
℃
Supply voltage : VBAT
-0.4V
5.6V
Other terminal voltages
VSS-0.4V
VDD+0.4V
Recommended Operating Conditions Operating Condition
Min
Operating temperature range
-40 ℃ +150
Guaranteed RF performance range
-25 ℃ +75
Supply voltage : VBAT
2.2V
Max ℃ ℃
4.2V
6. Power Consumption Operation Mode Page scan
Connection
UART Rate
Type
(kbps)
Average
Unit
-
115.2
0.42
mA
ACL No traffic
Master
115.2
4.60
mA
ACL with file transfer
Master
115.2
10.3
mA
ACL 1.28s sniff
Master
38.4
0.37
mA
ACL 1.28s sniff
Slave
38.4
0.42
mA
SCO HV3 30ms sniff
Master
38.4
19.8
mA
SCO HV3 30ms sniff
Slave
38.4
19.0
mA
-
38.4
40
uA
Standby Host connecton
2
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 variations of BTM-5 breakout board, one is RS23 2 interface, the 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
VCC
5V power suppler
3.3V power suppler
2
Mode
1=AT cmd mode, 0=Normal
1=AT cmd mode, 0=Normal
3
RX
RS232 logic level
4
TX
RS232 logic level
3.3V logic level
5
GND
Power ground
Power ground
User can change the default setting of BTM-5 module with the AT command via onboard button or ‘Mode’ pin. If t he bottom pressed or ‘Mode’ pin pulled high, the module enter the AT command mode. The breakout board provide two LED to i ndicate the status of t he module, the RED led indicate the link activity status, the GREEN led indicate the pairing status.
3
BTM-5 Bluetooth Module Datasheet Rev2.0
8. Basic AT Command Users can use AT commands to s etup the m odule with dif ferent configurations. Every AT command must be fol lowed with < CR> and
control character w hich is 0x0D and 0 x0A i n 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=
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=
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=
AT+PSWD command is used to set the pairing password. 9.
AT+UART?
AT+UART? command inquiry the uart configurations
4
BTM-5 Bluetooth Module Datasheet Rev2.0
9.
Pin Definition Pin
Description
1 UAR
T_TXD
2 UAR
T_RXD
3 UAR
T_CTS
4 UAR
T_RTS
9~11 N 12
A 3.3V Supply input
13 GND
5
14~20 N
A
21,22 G
ND
23
PIO0 Programmable IO port
24
PIO1 Programmable IO port
25
PIO2 Programmable IO port
26
PIO3 Programmable IO port
27
PIO4 Programmable IO port
28
PIO5 Programmable IO port
29
PIO6 Programmable IO port
30
PIO7 Programmable IO port
31
PIO8 Programmable IO port
32
PIO9 Programmable IO port
33
PIO10 Programmable IO port
34
PIO11 Programmable IO port
FULL
BTM-5 Bluetooth Module Datasheet Rev2.0
6
Schematic overview The following schematic is the typical hardware app lication 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 1 : Test ;omm$nd ;omm$nd AT
R eturn
O 9
Ar %ument ?O ?"
>2 : R eset R eturn ;omm$nd O 9 AT5R "1"T R esults: It &or's $s po&er yle.
Ar %ument ?O ?"
>3: Poll the so(t&$re )er sion ;omm$nd AT5@"R 1IO ?A
R eturn 5@"R 1IO ?:P$r $m
Ar %ument P$r$m: so(t&$re )er sion
O9
"C$m ple: $t5)e r sion7 r 7n 5@"R IO ?:1.,2*818 O9
>0: R estor e the de($ult settin% R eturn ;omm$nd O9 AT5O R D ! Restore the de($ult settin%: 1. #e)ie l$ss: 2. InEuiry ode: C*e8b33 3. #e)ie mode: l$)e mode 0. Bindin% mode: PP . eri$l port: 380 bits/ s 1 stop bit2 no p$ r ity F. P$irin% ode: 41230 G. #e)ie n$me: 4++ H ,PP,18,2
Ar %ument
?O ?"
>: Poll the $ddress o( the Bluetooth de)ie ;omm$nd AT5A## R A
R eturn 5A##R: P$r $m-
O9
Ar %ument P$r$m: the $ddress o( the Bluetooth de)ie
Represent$tion o( the $ddress: ?AP:UAP:!AP <+"= "C$m ples: The $ddress o( the Bluetooth de)ie is: 12 :30:F:$b:d:e( A t5$dd r 7 r7 n 5A ## R :1230 :F :$b de ( O9
>F: et $nd poll de)ie n$me ;omm$nd AT5 ?AJ "6P$r $1AT5 ?AJ "A
R eturn
O9 1: 5?AJ": P$r $mO9 ,,, suess( ul 2: /AI! ,,, ($il
Ar %ument P$r$m: de)ie n$me #e($ult: 4++H,PP,18, 2
"C$m ple: KKKKK et #e)ie n$me $s ++ H ,PP,18,2 A T5 ?A J"6++H ,PP,18,27 r7 n
O9 KKKKK et #e)ie n$me $s ++ H ,PP,18,2 AT 5 ?A J"64++ H ,PP,18,287 r 7n
O9
$t5n$me7 r 7n 5?AJ": Bei Lin O9
>G: Poll remote de)ie n$me ;omm$nd AT5R?AJ" P$r $m1-
R eturn Ar %ument 1: 5R?AJ": P$r$m2 P$r$m1: remote de)ie $ddr ess O9 ,,, suess( ul P$r$m2: remote de)ie n$me 2: /AI! ,,, ($il Represent$tion o( the $ddress: ?AP:UAP:!AP <+"= "C$m ples: The $ddress o( the remote Bluetooth de)ie is: :2 :G2 :od:22 :20 2 the de)ie n$me is: B luetooth
t5rn$meA 22G2 2d22207 r7 n 5R?AJ"!Bluetooth O9
>8: 1et/ Poll de)ie role R eturn
;omm$nd AT5R O!"6 P$r $m-
AT5R O!"A
O9
Ar %ument P$r $m: M sl$)e 1 M J $ster 2 M l$)e,loop #e($ult:
5RO!": P$r$m O9
"Cpl$n$tion o( de)ie r oles: l$)e M be onneted by other de)ie l$)e,loop M be onneted by other de)ie2 reei)e $nd send b$' &h$te)er r eei)ed J$ster M Ati)ely poll the ne$rby de)ie $nd initi$liNe bindin% to other de)ies.
>*: et $nd poll de)ie ty pe ;omm$nd AT5;!A116P$r $m-
AT5;!A11A
R eturn
O9
1. 5;!A11: P$r $mO9 2. /AI!
Ar %ument P$r$m: de)ie ty pe #e)ie type is $ 32, bit p$r$meter. It is used to indi$te the de)ie l$ss $nd the ser)ie it suppor ts #e($ult: The $tu$l me$nin% is eC pl$ined in $ppendiC 1.
In order the e((eti)ely (ilter the ne$rby de)ie $nd Eui'ly lo$te the users sel( de ( in ed de )ie2 user $n set the de)ie to be nonst$nd$rd de )ie2 suh $s C1(1(
>1: 1et/ Poll InEuir e Aess ;ode ;omm$nd AT5IA;6P$r $mAT5IA;A
R eturn 1: O 9 2: /AI! 5IA;: P$r $m-
Ar %ument P$r$m: InEuir e Aess ;ode #e($ult: *38 b33
O9
#et$iled eCpl$n$tion $n be ( ound the $ ppendiC.
I( the inEuire $ess ode is set to D IA;
"C$m ple: A T5IA;6*28b3( 7r 7n O9 n A T5IA; 7 r7 5 IA;: *28 b3( O9
>11: et $nd poll InEuir y mode ;omm$nd AT5I ?J 6P$r $m1- P$r $m2- P$r $m3-
AT5I ?J A
R eturn
1. O9 2. /AI!
5I?J: P$r $m1- P$r $m2-P$r $m3O9
Ar %ument
P$r$m1: InEuir y J ode K inEuirey mode st$nd$rd 1K inEuiry mode rssi P$r$m2: m$C r esponse number P$r$m3: time out 1,08 <1.28s,F1.00s= #e($ult: 1108
A T5I ?J612*208 7 r7 n ,, et inEuiry mode: &ith RI m$C de)ie response number * then sto p inEuir y2 m$C time out 081.28 6F1.00s O9 A T5I ?J7 r7 n 5I ?J :12*208 O9
>12: et $nd poll p$rin% p$ss&ord ;omm$nd AT5P 1H# 6P$r $mAT5P 1H# A
R eturn
O9 5PH#:P$r$m - O9
Ar %ument P$r$m: p$rin% p$ss&ord
#e($ult: 41230
>10: et $nd poll seri$l port p$r $meter s ;omm$nd AT5UAR T6P$r $m1-P$r $m2- P$r $m3-
AT5UART A
R eturn
O9
5UART :P$r $m1-P$r $m2- P$r $m3O9
Ar %ument P$r$m1: b$ud r$te < bits/ s= 08 *F 1*2 380 GF 112 230 0F8 *12F 13820 P$r$m2: stop bit , 1 bit 1, 2 bits P$r$m3: p$rity bit , ?one 1, Odd 2, ")en
#e($ult: *F
"C$mple: et seri$l port p$r$meters to 1122 2 bits stop bit2 $nd e)en p$ r ity
AT5UART611233 122 7 r 7n O9 AT5UART 5UA R T:1122122 O9
>10: et $nd poll onnetion mode ;omm$nd AT5;J O# "6P$r $m-
AT5;J O# "A
Ar %ument P$r $m: M spei(i $ddress mode
R eturn
O9
5;J O# ":: P$r $mO9
#e($ult:
>1: et $nd poll bindin% de)ie $ddr ess ;omm$nd AT5BI ?# 6P$r $1AT5BI ?# A
R eturn
Ar %ument P$r$m M Bindin% Bluetooth de)ie $ddr ess
O9 5BI ?# :P$r $mO9
#e($ult $ddr ess: : ::::
The $ddress $n be represented $s ?AP:UAP:!AP
"C$m ple: n A T5BI ?#612302F2$ bde ( 7r 7 O9 A T5BI ?#7 r7 n 5BI ?#:1230:F :$ bde ( O9 >1F: 1et/ Poll the pol$rity o( !"# indi$tor dr i)er ;omm$nd AT5PO!AR 6P$r $m1- P$r $m2AT5# "/AU!T
R eturn
O9
Ar %ument P$r $m1: M PI8 outputs lo& le)el to turn on !"# 1, PI8 outputs hi%h le)el to turn on !"#
P$r $m2: ,PI* outputs lo& le)el to turn on !"# 1,PI* outputs hi%h le)el to turn on !"# #e($ult: 11
PI8 dri)es the &or'in% st$tus 2 $nd PI* dri)es the lin' st$tus .
"C$m ple: PI8 outputs lo& le)el to turn on !"# $nd PI* outputs hi%h le)el to turn on ! "#. AT5PO!AR631 7 r 7n O9 n A T5PO! A R 7 r7 5PO! A R : 21 O9
>1G: et sin%le PIO out put ;omm$nd AT5P IO6P$r $m1-P$r $m2-
R eturn
O9
Ar %ument P$r$m1: PIO port number
The use$ble port is PIO2, PIOG $nd PIO1 .
"C$m ple: 1. PIO1 outputs hi%h le)el A T 5PIO61 217 r 7n O9 2. PIO1 outputs lo& le)el A T 5PIO61 27 r 7n O9 >18: et multiple port out put ;omm$nd AT5J P IO6P$r $m-
R eturn
O9
Ar %ument P$r$m: PIO port number m$s' ombin$tion
The use$ble port is PIO2, PIOG $nd PIO1 . PIO port m$s' 6 <1 port num ber = PIO port m$s' ombin$tion 6 < PIO port m$s' 1P PIO port m$s' 2 PPIO port m$s' 3 PQ=
"C$m ple: PIO2 m$s'6 <12=6C0 PIO1 m$s' 6 <11 =6C0 PIO port m$s' ombin$tion6 <C0 P C0 =6C 00 PIO 2 $nd PIO 1 output hi%h: A T5JPIO600 7 r7 n O9
>1*: Poll PIO port input ;omm$nd AT5J P IOA
Ar %ument P$r$m, PIO port )$lue <1F bits= P$r $mS6PIO P$r $m1S6PIO1 P$r $mp2S6PIO2
R eturn
5JPIO: P$r $mO9
Q
P$r $m1S6PIO 1 P$r $m11S6PIO 11
>2: 1et/ Poll InEuir y p$r $meter s ;omm$nd AT5IP1;A ?6P$r $m1-P$r $m2- P$r$m3- P$r $m0AT5IP1;A ?A
R eturn
O9 5IP1;A ?: P$r $m1- P$r$m2-P$r$m3-P $r $m0-
Ar %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 deim$l num ber s
#e($ult: 120 12 120 12
>21: 1et/ Poll 1?I// ener%y s$)in% p$r $meter s ;omm$nd AT51 ?I//6P$r $m1-P$r $m2- P$r $m3-P$r $m0AT51 ?I//A
R eturn
O9 51 ?I//:P$r $m1-P$r $m2- P$r $m3-P$r $m0-
Ar %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 num ber s
$re
#e($ult:
deim$l
>22: 1et/ Poll eurity $nd "nr y ption modes ;omm$nd AT51" ?J 6P$r $m1-P$r $m2AT51" ?J A
R eturn 1: O 9 2:/AI! 51" ?J: P$r $m1-P$r $m2-
O9
Ar %ument P$r$m1: eurity mode , 1e mode o(( 1, 1e mode1 non,seur e 2, 1e mode2 ser )ie 3, 1e mode3 lin' 0, 1e mod un' no&n P$r$m2:enryption mode , h i en mode o(( pt to pt 1, h i en mode 2, h i en mode pt to pt $nd b$st
#e($ult:
>23: #elete Authenti$ted #e)ie (rom the $uthenti$ted de)ie list ;omm$nd AT5R J 1A# 6P$r $m-
R eturn
O9
Ar %ument P$r$m: Bluetooth de)ie $ddr ess
"C$m ple: #elete de)ie &ith $ddress: 12 :30:F : $b:d:e( $t5r ms$d 61230:F :$b de( 7 r7 n O9 Or $t5r ms$d 61230:F :$b de( 7 r7 n /AI! 6666 there is no suh de)ie in the l ist >20: #elete $ll Authenti$ted #e)ies (rom the $uthenti$ted de)ie list ;omm$nd AT5R J 1A#
R eturn
O9
Ar %ument ?one
>2: !o$te Authenti$ted #e)ie (rom the $uthenti$ted de)ie list ;omm$nd AT5/1A# 6P$r $m-
R eturn 1. O9 , eCists 2. /AI!, no,eCisit
Ar %ument P$r$m: Bluetooth de)ie $ddr ess
"C$m ple: /indde)ie &ith $ddress: 12 :30: F:$b:d:e( $t5/A #61230:F :$ bde ( 7r 7n O9 Or $t5( s$d 61230:F : $ bde ( 7r 7n /AI! 6666 there is no suh de)ie in the l ist >2F: Obt$in the tot$l Authenti$ted #e)ie number in the $uthenti$ted de)ie list ;omm$nd AT5A# ; ?A6P$r $m-
R eturn 5A# ; ?:P$r $m-
O9
Ar %ument P$r$m: tot$l number o( de)ie in the $uthenti$ted de)ie list
>2G: Obt$in the most reently used Authenti$ted #e)ie ;omm$nd
R eturn
Ar %ument
AT5JRA#
5 J RA# :P$r $m-
P$r$m: most reently $uthenti$ted de)ie
>28: Obt$in the &or'in% st$tus o( the Bluetooth de)ie ;omm$nd AT51TAT"A
R eturn 51TAT":P$r $m-
O9
Ar %ument P$r$m: &or'in% st$tus 4I ?ITIA!IU"# 8 4R"A# V8 4P AIR AB!"8 4P AIR # 8 4I ?UIR I ?D8 4;O ??";TI ?D 8 4;O ??";T"# 8 4# I1;O ??";T"# 8 4 ?U9 ?OH8
used
>2*: Initi$lise the spp pro(ile lib ;omm$nd AT5I ?IT
R eturn 1. O9 2. /AI!
Ar %ument ?O ?"
>3: InEuir e ne$rby de)ies ;omm$nd AT5I ?
R eturn 5I ?: P$r $m1-P$r $m2-P$r $m3Q.
Ar %ument P$r$m1: $ddr ess P$r$m2: de)ie l$ss P$r$m3: R 11I
O9
"C$mple 1: $t5init7r 7n —— Initi$liNe PP <$nWt r e pe$tedly initi$liNe=
O9
$t5i$6*e8 b337r 7n —— inEuire %ener$l inEuire $ess ode O9
$t5l$ss67r 7n —— inEuire $ll de)ies ty pes O9
$t5inEm61*087r 7n —— InEuir e mode: R11I2 m$C number * timeout 08 At5inE7r 7n —— inEuir e
5I ?:2:G2:#22203"10//B; 5I ?:1230:F:1/1///;1 5I ?:1230:F:1/1///; 5I ?:1230:F:1/1///;1 5I ?:2:G2:#22203"10//A# 5I ?:1230:F:1/1///B" 5I ?:1230:F:1/1///;2 5I ?:1230:F:1/1///B" 5I ?:2:G2:#22203"10//B;
O9 >31: ;$nel InEuir e ne$rby de)ies ;omm$nd AT5I ?;
R eturn
O9
Ar %ument ?one
>32: #e)ie p$ir in% ;omm$nd AT5P AIR 6P$r $m1-P$r $m2-
R eturn 1. O9 2. /AI!
Ar %ument P$r$m1: remote de)ie $ddr ess P$r $m2:timeout
"C$m ple: P$ir &ith remote de)ie: 12 :30 :F :$b :d:e( 2 timeout 2 s. A t5 p$ ir 61230 2F 2$bde ( 2 2 7 r 7n O9 >33: #e)ie ;onnetion ;omm$nd AT5!I ?9 6P$r $m-
R eturn 1. O9 2. /AI!
Ar %ument P$r$m: remote de)ie $ddr ess
"C$m ple: !in' to remote de)ie: 12 :30 :F :$ b:d:e( A t5( s$d 612302F 2$b de ( 7 r7 n ,, he' i( remote de)ie is in the $uthenti$ted de)ie list or not O9 A t5lin' 6612302F 2$bde ( 7r 7 n ,, it is in the list2 doesnWt need to be inEuired $nd $n be diretly lin' ed O9 >30: #e)ie #isonnetion R eturn 1. 5#I1;: 1U;;"11 2. 5# I1;:!I ?9 !O11 3. 5# I1;: ?O 1!; 0. 5# I1;:TIJ "O UT . 5# I;1:"RR OR >3: "nter into ener%y s$)in% mode
;omm$nd AT5# I1;
;omm$nd AT5" ?1 ?I//6P$r $m-
R eturn
O9
Ar %ument ?one
Ar %ument P$r$m: Bluetooth de)ie $ddr ess
>3F: "Cit ener%y s$)in% mode ;omm$nd AT5"1 ?I//6P$r $m-
R eturn
O9
Ar %ument P$r$m: Bluetooth de)ie $ddr ess
AppendiC 1: AT omm$nd error "RROR ode deoder "rror ode
0 F G 8 * A B ; # " / 1 11 12 13 10 1 1F 1G 18 1* 1A 1B 1;
"C pl$n$tion AT omm$nd error The result is de($ult )$lue P19"V &rite error #e)ie n$me is too lon%
Aess ;ode len%th is InEuir e Aess ;ode is too lon% In)$li d InEuir e Aess ;ode P$irin% p$ss&ord is P$irin% p$ss&ord is too lon%
AppendiC 2: #e)ie ;l$ss
The ;l$ss o( # e)ie/ 1er )ie<;o# =is $ 32 bits number th$t is m$de o( 3 (ields. One (ield
spei(ies the ser)ie supported by the de)ie. Another (ield spei(ies the m$Lor de)ie
l$ss &hih bro$dly orresponds to the type o( the de)ie. The third (ield spei(ies the minor de)ie l$ss &hih desribes the de)ie type in more det$il. The ;l$ss o( # e)ie/ 1er )ie <;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#
e$h bit orrespondin% to $ hi%h le)el %eneri $te%ory o( ser)ie l$ss. ;urr ently G $te%ories $re de(ined. These $re prim$rily o( $ Xpubli ser)ieX n$ture. The rem$inin% 11 bits $re used to indi$te de)ie type $te%ory $nd other de)ie,spei( i h$r $ter istis.Any reser)ed but other&ise un$ssi%ned bits suh $s in the J$Lor 1er )ie ;l$ss (ield should be set to .
/i%ure 1.2: The ;l$ss o( # e)ie/ 1er )ie (ield <(irst (orm$t type=. Ple$se note the order in &hih the otets $re sent on the $ir $nd stored in memory. Bit number is sent (irst on the $ir .
1. JAYOR 1"R@I;" ;!A11"1
Bit no 13 10 1 1F 1G 18 1* 2 21
J$Lor er)ie ;l$ss !imited #iso)er$ble Jode Re( >1S
22 23
;!A" Re( >1 As de(ined in ee D en er i Aess Pr o( ile2 Bluetooth IDS
2.
JAYOR #"@I;" ;!A"
The J$Lor ;l$ss se%ment is the hi%hest le)el o( %r$nul$rity (or de(inin% $ Bluetooth #e)ie. T he m$in (untion o( $ de)ie is used to determine the m$Lor l$ss %r oup in%. There $re 32 di(( er ent possible m$Lor l$sses. The $ssi%nment o( this J$Lor ;l$ss (ield is de(ined in T$ble 1.3.
12
11
1 1
* 1 1
8 1 1
1
1
1 1 1
1 1
1 1
J$Lor #e)ie ;l$ss Jisell$neous Re( >2S ; om pu te r
Im$%in% < p r intin%2 s$nner 2 $me r $ 2 disp l$y2 ...= Un$te %or iNed 2 spei(i de)ie ode not spe i( ied
All other )$lues r ese r )ed TAB!" 1.3: JAYOR #"@I;" ;!A"
Re( >2: Used &here $ more spei(i J$Lor #e)ie ;l$ss ode is not suited
3. T+" JI?OR #"@I;" ;!A /I"!# The XJinor #e)ie ;l$ss ( ieldX
0.
JI?OR #"@I;" ;!A /I"!# , ;OJPUT"R JAYOR ;!A
G
F
0 1 1 1
3 1 1 1
2 1 1 1
Jinor #e)ie ;l$ss bit no o( ;o# Un$te%or iNed 2 ode (or de)ie not $ss i%ned #es'top &or 's t$tion er)er,l$ss om pu te r ! $p to p +$ndheld P;/ P#A <l$m she ll= P$lm siNed P;/ P#A He$r$ble omputer
TAB!" 1.0: UB #"@I;" ;!A /I"!# /OR T+" X;OJPUT "R X JAYOR ;!A
.
F.
JI?OR #"@I;" ;!A /I"!# , P+O?" JAYOR ;!A
G
F
0 1 1 1
3 1 1 1
2 1 1 1
Jinor #e)ie ;l$ss bit no o( ;o# Un$te%or iNed 2 ode (or de)ie not $ss i%ned ;ellul$r ;or dless m$rt ph one Hired modem or )oie %$te&$y ;ommon I#? Aess im ; $r d R e$der All other )$lues r ese r )ed
JI?OR #"@I;" ;!A /I"!# , ! A ?/ ?"TH OR 9 A;;" POI?T JAYOR ;!A
G 1 1
F 1 1
1 1 1
Jinor #e)ie ;l$ss bit no o( ;o# /ully $)$il$ble 1 , 1GZ utiliNed 1G , 33Z utiliNed 33 , Z utiliNed , FGZ utiliNed FG , 83Z utiliNed
1 1
1 1
83 , **Z utiliNed 1 ?o ser)ie $)$il$ble R"/ >3S All other )$lues r ese r )ed
TAB!" 1.F: T+" !A ?/ ?" TH OR 9 A;;" POI?T !OA# /A;TOR /I"!# Re( >3: [#e)ie is (ully utiliNed $nd $nnot $ept $ddition$l onnetions $t this time2 ple$se retry l$ter [S The eC$t lo$din% (ormul$ is not st$nd$ r diNed . 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 pe r ent$%e. The only reEuirement is th$t the number re(lets $n e)er , inre$sin% utiliN$tion o( ommuni$tion resoures &ithin the boC . As $ r eommen d$ tion2 $ lient th$t lo$tes multiple ! A ?/ ?et&or ' Aess Points sh ould
$ttempt to onnet to the one reportin% the lo&est lo$d .
0
3
2
Jinor #e)ie ;l$ss bit no o( ;o# Un$te%oriNed
TAB!" 1.G: R""R@"# UB,/I"!# /OR T+" !A ?/ ?" TH OR 9 A;;" POI?T
G.
JI?OR #"@I;" ;!A /I"!# , A U#IO/ @I# "O JAYOR ;!A
G
F
0 1 1
3 1 1
2 1 1 1
Jinor #e)ie ;l$ss bit no o( ;o# Un$te%or iNed 2 ode (or de)ie not $ss i%ned #e)ie on(orms to the +e$dset pr o( ile +$nds,( r ee
1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
+e$dphones Port$ble A udio ;$r $ud io et,top boC +i/i Audio # e)ie @;R @ideo ; $mer $ ;$mor de r @ideo Jonitor @ideo #ispl$y $nd ! oudspe$' er @ideo ;on( er enin%
1
1
D $min%/ Toy Re( >0S All other )$lues r ese r )ed
Re( >0: Only to be used &ith $ D $min%/ Toy de)ie th$t m$'es $ud io/ )ide o $p$bilities $)$il$ble )i$ Blue toothS TAB!" 1.8: UB #"@I;" ;!A" /OR T+" XA U#IO/ @ I#"OX JAYOR ;!A
8.
JI?OR #"@I;" ;!A /I"!# , P"RIP+"RA! JAYOR ;!A
G 1 1
F 1 1
Jinor #e)ie ;l$ss bit no o( ;o# 9 ey bo$r d Pointin% de )ie ;ombo ' ey bo$r d/ pointin% de )ie All other )$lues r ese r )ed
TAB!" 1.*: T+" P"RIP+"RA! JAYOR ;!A 9 "VBOA R # / POI ? TI ?D #"@I;" /I"!# Bits F $nd G independently spei(y mouse 2 'eybo$rd or ombo mouse / 'e y bo$r d de )ies. These m$y be ombined &ith the lo&er bits in $ multi(untion$l de )ie.
0 1 1
3 1 1
2 1 1 1
Jinor #e)ie ;l$ss bit no o( ;o# Un$te%oriNed de )ie Yoysti' D $mep$d Remote ontrol ensin% de )ie #i%itiNer t$b let All other )$lues r ese r )ed
TAB!" 1.1 : R""R@"# UB,/I"!# /OR T+" #"@I;" TVP"
*.
JI?OR #"@I;" ;!A /I"!# , IJADI?D JAYOR ;!A
G
F
1
1
1
0 1
Jinor #e)ie ;l$ss bit no o( ;o# #isp l$y ;$me r $ $nner Pr inter All other )$lues r ese r )ed
TAB!" 1.11 : T+" IJADI?D JAYOR ;!A BIT 0 TO G Bits 0 to G independ$ntly spei(y disp l$y2 $mer $2 s$nner or pr inter . These m$y be ombined in $ multi(untion$l de )ie.
3
2
Jinor #e)ie ;l$ss bit no o( ;o# Un$te%or iNed 2 de ( $u lt All other )$lues r ese r )ed
TAB!" 1.12 : T+" IJADI?D JAYOR ;!A BIT 2 A?# 3 Bits 2 $nd 3 $re r ese r )ed