Webtronico BTM-5 Bluetooth User Manual - page 5
BTM-5 Bluetooth Module Datasheet Rev1.1
4
Examples:
Command : AT+VERSION? \r\n
Response :
+VERSION:2.0-20100601
OK
3.5 Get Address
Command Response
Parameter
AT+ADDR?
+ADDR:
OK
Param: the Bluetooth address
Representation of the address: NAP:UAP:LAP (HEX)
Examples:
The address of the Bluetooth device is: 10:7:180004
Command : At+ ADDR?\r\n
Response :
+ADDR:10:7:180004
OK
3.6 Get 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=
OK
Param: bluetooth device name
Examples:
Command : AT+NAME=BTM-5\r\n
Response :
OK
3.8 Set / Get Role
Command Response
Parameter
AT+ROLE=
OK
AT+ROLE?
+ ROLE:
OK
Param
0: Slave (be connected by other device)
1: Master (Actively poll the nearby device and
initialize binding to other devices)
2: Slave-loopback (be connected by other device,
receive and send back whatever received)
Default:0