5.2.15 Set Application Options (SR,<hex16>)
Format: SR,<hex16>
This command sets the supported feature of the RNBD451 module. The input parameter is a 16-bit bitmap that indicates the supported features.
Feature | Bitmap | Description |
---|---|---|
Enable Flow Control | 0x8000 | If set, the device enables hardware flow control. A reboot is necessary to make the changes effective. |
No Prompt | 0x4000 | If set, the device does not send prompt CMD> when the RNBD451 module is ready to accept the next command. If cleared, the device sends out prompt CMD> when it is ready to take the next command. |
Fast Mode | 0x2000 | If set, no checking of the configuration detect character in transparent UART mode is done. Instead, to enter Command mode, the RNBD451 module depends on the pin configured as the UART mode switch. |
Enable Pin Status Indication | 0x1000 | If set, the pin status indicator is enabled immediately and the RNBD451 module triggers GPIOs (PB3 and PB7) to indicate the RNBD451 module status. For more details, refer to 4.1 Bluetooth Low Energy Status Indication Pin 1 (PB3) and Pin 2 (PB7). |
No Connect Scan | 0x0800 | If set, no connectable advertisement shows up in the scan result. |
No Duplicate Scan Result Filter | 0x0400 | If set, the RNBD451 module does not filter out duplicate scan results. The recommendation is that this bit is set if the RNBD451 module expects a beacon or a peer device that dynamically changes its advertisement. |
Passive Scan | 0x0200 | If set, the RNBD451 module performs a passive scan instead of a default active scan. |
UART Transparent Without ACK | 0x0100 | If there is a credit base flow control in UART Transparent, the device uses write without response for UART Transparent and the device uses write request for UART Transparent when the credit number is zero. If there is not a credit base flow control in UART Transparent, the device uses write request for UART Transparent. |
Reboot After Disconnection | 0x0080 | If set, the RNBD451 module reboots after disconnection. |
Disable to Drop Received Data in Command Mode of Single | 0x0040 | If set, do not drop the received data in the Command mode of a single link. |
Enable Network Privacy Mode | 0x0020 | If set, the RNBD451 module uses the network Privacy mode. The peer device must support privacy and use the resolvable private address. Otherwise, it fails to create a connection with the RNBD451 module. |
No Response of IE Command | 0x0010 | If set, the RNBD451 module does not send the response when the host MCU sends data in specific connection by IE command. The Err still returns if the parameters of command is wrong. |
Command Mode Guard | 0x0008 | If set, the device sees any bytes before or after the $$$ characters in a one-second window, the device does not enter Command mode and these bytes are passed through. |
No Bluetooth® Low Energy Advertising | 0x0004 | If set, the Bluetooth® Low Energy advertising is not enabled automatically after power-on. |
Command Mode Switch by Pin (PB2) | 0x0002 | If set, it can use the specific pin to switch Command mode and Data mode. When the host MCU pulls the UART mode switch pin from low to high (rising edge), the RNBD451 module switches to the Data mode. When the host MCU pulls the UART mode switch pin from high to low (falling edge), the RNBD451 module switches to the Command mode. |
Enable Bluetooth Status LED (PB5) | 0x0001 | If set, the LED is enabled and LED function is effective after reboot. To indicate the Bluetooth Low Energy connection status by specific LED flash pattern, see the following pattern description:
|
Default: | 0000 | |
Example: | SR,A000 | // Enable hardware flow control and Fast mode |
Response: | AOK | // Success |
Err | // Syntax error or invalid parameter | |
Note: The PDS stores this parameter. |