Webtronico BTM-5 Bluetooth User Manual Download Page 7

                                                                     

BTM-5 Bluetooth Module Datasheet Rev1.1

 

                                 

6

2: Even 

Default:38400,0,0 

 

3.12

 

Set / Get Link Mode 

Command Response 

 Parameter 

AT+CMODE=<Param> OK 

AT+ CMODE? 

+ CMODE:< Param > 

OK 

Param  

0: Specify bluetooth link 

address 

1: Any bluetooth link address 

2: Slave-Loopback 

Default : 0 

 

3.13

 

Set / Get Bind Bluetooth Address 

Command Response 

 Parameter 

AT+BIND=<Param> OK 

AT+ BIND? 

+ BIND:< Param > 

OK 

Param : Bluetooth address to 

be bind 

Default : 00:00:00:00:00:00 

 

3.14

 

Set Single PIO Output 

Command Response 

 

Parameter 

AT+PIO=<Param1>,<Param2>  OK 

Param1: PIO port number (decimal) 

Param2L PIO port output 

0- Low voltage 

1- High voltage 

Examples: 

Set the PIO10 outputs high 

Command : AT+PIO=10,1\r\n 

Response : 

OK 

Set the PIO10 outputs low 

Command : AT+PIO=10,0\r\n 

Response : 

OK 

 

3.15

 

Set Multiple PIO Output 

Command Response 

Parameter 

AT+MPIO=<Param> 

OK 

Param: PIO port number mask combination (hex) 

The useable port is PIO2- PIO7 and PIO10. 

PIO port mask = (1 << port number) 

PIO port mask combination = ( PIO port mask 1| PIO port mask 2 |PIO port mask 3 |

Example: 

PIO2 mask= (1<<2)=0x004 

PIO10 mask = (1<<10)=0x400 

PIO port mask combination= (0x004 | 0x400)=0x404 

Summary of Contents for BTM-5 Bluetooth

Page 1: ...BTM 5 Bluetooth Wireless TTL Master Slave Transceiver Module AT Command User Guide Rev 1 1 Oct 2010 http www webtronico com...

Page 2: ...4 Get Firmware Version Command 3 3 5 Get Address 4 3 6 Get the Device Name 4 3 7 Set the Device Name 4 3 8 Set Get Role 4 3 9 Get Device Type 5 3 10 Set Get Password 5 3 11 Set Get Baudrate 5 3 12 Set...

Page 3: ...ransmission is almost transparent to user it acts as tow UART connect with each other wirelessly The AT command mode is the advanced operation mode User can use supported AT command to change the defa...

Page 4: ...in to change between tow modes in real time 3 AT Command Set Note All AT commands not case sensitive should be ended up with r n characters 3 1 TEST Command Command Response Parameter AT OK NULL Examp...

Page 5: ...et the Device Name Command Response Parameter AT NAME OK NULL Examples Command AT NAME r n Response NAME HC05S OK 3 7 Set the Device Name Command Response Parameter AT RNAME Param OK Param bluetooth d...

Page 6: ...ault 0 The actual meaning is explained in appendix 1 Examples Command AT CLASS r n Response CLASS 0 OK 3 10 Set Get Password Command Response Parameter AT PSWD Param OK AT PSWD PSWD Param OK Param lin...

Page 7: ...PIO Output Command Response Parameter AT PIO Param1 Param2 OK Param1 PIO port number decimal Param2L PIO port output 0 Low voltage 1 High voltage Examples Set the PIO10 outputs high Command AT PIO 10...

Page 8: ...high Command AT MPIO 404 r n Response OK 3 16 Get Multiple PIO Input Command Response Parameter AT MPIO MPIO Param OK Param PIO port value 16bits Param 0 PIO0 Param 1 PIO1 Paramp2 PIO2 Param 10 PIO10...

Page 9: ...rt mask length is 0 9 Invalid PIO port A Device class is 0 byte B Device class is too long C Inquire Access Code length is 0 D Inquire Access Code is too long E Invalid Inquire Access Code F Pairing p...

Reviews: