User's Manual Part 2

11.2: GAP Commands Chapter 11: AT Commands Reference
36
Get_MasterSlaveRole (AT*AGGMSR=)
AT Command Description
AT*AGGMSR=<bd_addr><CR> Read the local master-slave role.
Returns the role of the Serial Port Adapter, master or
slave, for the connection between the Serial Port
Adapter and the remote device identified by the
‘bd_addr’ parameter.
Command
Parameters
Type Value
bd_addr Bd_Addr Identifies a device that the Serial Port Adapter is
currently communicating with.
Responses Description
<CR><LF>*AGGMSR:<role><CR><LF>OK<CR><LF> Successful response.
<CR><LF>ERROR<CR><LF> Error response.
Response
Parameters
Type Value
role enumerator 0: Slave
1: Master
Model Constraint
cB-OEMSPA311
cB-OEMSPA331
cB-OEMSPA312
cB-OEMSPA332
Not supported. The module always allows a master slave switch
if requested by the remote side.
Change_MasterSlaveRole (AT*AGCMSR=)
AT Command Description
AT*AGCMSR=<bd_addr>,<role><CR> Changes the master-slave role.
Changes the role of the Serial Port Adapter, master or
slave, for the connection between the Serial Port
Adapter and the remote device identified by the
‘bd_addr’ parameter.
Note that the remote device does not have to accept
the master/slave switch.
Command
Parameters
Type Value
bd_addr Bd_Addr Identifies a device that the Serial Port
Adapter is currently communicating with.
The role will be changed on the connec-
tion to this device.
role enumerator 0: Slave
1: Master