EH-MA41 User Guide
12-26
This command can query or configure the force to be master feature of Bluetooth module. Once configured, the
configuration will take effect at the next time when a Bluetooth connection is being established and until the next time the
module is configured by this command. It means the Bluetooth module will remember the configuration, and even if the
Bluetooth module has been powered off, the configuration will not be lost.
If the parameter is not presented, the Bluetooth module will report current configuration by the Indicator MT.
5.1.8.2. Syntax:
Synopsis:
AT+MT[=State]<CR><LF>
5.1.8.3. Parameter Description:
Parameter
Description
Mandatory
Comments
State
The new state of force to be
master feature.
Value: 00h or 01h
00: Deactivated
01: Activated
Default: 00 (Deactivated)
O
Notes:
1. In general, the device which initiates the Bluetooth connection will act as the Master automatically. Only some special
devices which cannot be a master device, in such cases, the user can use this command to make the Bluetooth
module force to be master device.
2.
Ehong’s Bluetooth module can act as either Master or Slave device, i.e. it can either initiate a Bluetooth connection or
accept a connection request.
5.1.8.4. Examples:
Ex. 5.16. To query current state of force to be master feature:
AT+MT<CR><LF>
query current state of force to be master feature.
MT=00<CR><LF>
report the force to be master feature is deactivated currently.
Ex. 5.17. To active the force to be master feature:
AT+MT=01<CR><LF>
active the force to be master feature.
OK<CR><LF>
response from the module to indicate the command is adopted.
5.1.9. PN
—Query or change the fixed pin code
5.1.9.1. Description:
This command can query or change the fixed pin code of Bluetooth module. Once changed, the new pin code will take
effect at next pairing procedure and until the next time the pin code is changed by this command. It means the Bluetooth
module will remember the pin code, and even if the Bluetooth module has been powered off, the pin code will not be lost.
If the parameter is not presented, the Bluetooth module will report current pin code by the Indicator PN.
5.1.9.2. Syntax:
Synopsis:
AT+PN[=PinCode]<CR><LF>
5.1.9.3. Parameter Description:
Parameter
Description
Mandatory
Comments
Pin Code
The new fixed pin code of the
Bluetooth module.
Length: 1
—16 characters
Default: 0000
O
The default pin
code may not be
“0000” per
software version.
5.1.9.4. Examples:
Ex. 5.24. To query current fixed pin code of Bluetooth module:
AT+PN<CR><LF>
query current fixed pin code.
PN=0000<CR><LF>
report current fixed pin code,
it’s “0000”.
Ex. 5.25. To change the fixed pin code of Bluetooth module:
AT+PN=abcdef<CR><LF>
change the fixed pin code to
“abcdef”
OK<CR><LF>
response from the module to indicate the command is adopted.