User's Manual Part 2

11.2: GAP Commands Chapter 11: AT Commands Reference
37
Responses Description
<CR><LF>OK<CR><LF> Successful response.
<CR><LF>ERROR<CR><LF> Error response.
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.
Read_MasterSlaveRole_Policy (AT*AGMSP?)
AT Command Description
AT*AGMSP?<CR> Reads the role policy of the device.
Responses Description
<CR><LF>*AGMSP:<role_policy><CR><LF>OK<CR><LF> Successful response.
<CR><LF>ERROR<CR><LF> Error response.
Response
Parameters
Type Value
role_policy enumerator 0: Always attempt to become master on incoming
connections.
1: Always let the connecting device select mas-
ter/slave role on incoming connections (default
value).
Write_MasterSlaveRole_Policy (AT*AGMSP=)
AT Command Description
AT*AGMSP=<role_policy>,<store_in_startup_database><CR> Writes the role policy of the
device.
Command Pa-
rameters
Type Value
role_policy enumerator 0: Always attempt to become master on incom-
ing connections.
1: Always let the connecting device select
master/slave role on incoming connections
(default value).
store_in_startup_database enumerator 0: The setting will only be valid for the current
power cycle.
1: The Serial Port Adapter will remember the
setting between power cycles. The settings
database in the Serial Port Adapter will be
updated.