Datasheet

6 / 23
#7: Poll remote device name
Command
Return
Argument
AT+RNAME?
<Param1>
1: +RNAME: <Param2 >
OK --- successful
2: FAIL --- fail
Param1: remote device address
Param2: remote device name
Representation of the address: NAP:UAP:LAP (HEX)
Examples:
The address of the remote Bluetooth device is: 00:02:72:od:22:24, the device name is:
Bluetooth
t+rname? 0002,72,0d2224\r\n
+RNAMELBluetooth
OK
#8: Set/Poll device role
Command
Return
Argument
AT+ROLE=
<Param>
OK
Param:
0 – slave
1 – Master
2 – Slave-loop
Default: 0
AT+ROLE?
+ROLE: <Param >
OK
Explanation of device roles:
Slave – be connected by other device
Slave-loop – be connected by other device, receive and send back whatever received
Master – Actively poll the nearby device and initialize binding to other devices.
#9: Set and poll device type
Command
Return
Argument
AT+CLASS=<Param>
OK
Param: device type
Device type is a 32-bit
parameter. It is used to indicate
the device class and the service
it supports
Default: 0
The actual meaning is explained
in appendix 1.
AT+CLASS?
1. +CLASS: <Param>
OK
2. FAIL
In order the effectively filter the nearby device and quickly locate the users self defined
device, user can set the device to be nonstandard device, such as 0x1f1f (hex)