EasyManua.ls Logo

Microchip Technology RN4870 - Page 22

Microchip Technology RN4870
65 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RN4870/71 Bluetooth
®
Low Energy Module User’s Guide
DS50002466A-page 22 2016 Microchip Technology Inc.
2.4.20 SP,<4/6 digit pin>
This command sets the fixed security pin code. The fixed pin code has two
functionalities:
If the fixed pin is a six-digit code, it is used to display when I/O capability is set to
Display Yes/No by command SA,1. The six-digit pin is used for Simple Secure
Pairing (SSP) authentication method in BLE if a fixed passkey is desirable. In this
way, RN4870 is not required to display the passkey if the remote peer already
knows the passkey. The user must to understand the security implication by using
the fixed passkey.
The four digit pin code option is used to authenticate remote command connec-
tion. For more details on remote command feature, refer to command ! (2.4.4).
2.4.21
SR,<hex16>
This command sets the supported feature of the RN4870 device. The input parameter
is a 16-bit bitmap that indicates features to be supported. After changing the features,
a reboot is necessary to make the changes effective. Table 2-5 shows the bitmap of
features.
Default: 000000
Example: SP,123456 // Set pin code to “123456”
Response: AOK
ERR
// Success
// Syntax error or invalid parameter
TABLE 2-5: BITMAP OF FEATURES
Feature Bitmap Description
Enable Flow Control 0x8000 If set, the device enables hardware flow control.
No Prompt 0x4000 If set, device does not send prompt CMD> when RN4870/71
is ready to accept the next command. If cleared, device
sends out prompt CMD> when it is ready to take the next com-
mand.
Fast Mode 0x2000 If set, no checking of configuration detect character in Trans-
parent UART mode is done. Instead, to enter Command
mode, RN4870/71 depends on the pin configured as UART
Mode Switch.
No Beacon Scan 0x1000 If set, no non-connectable beacon shows up in the scan
result.
No Connect Scan 0x0800 If set, no connectable advertisement shows up in the scan
result.
No Duplicate Scan
Result Filter
0x0400 If set, RN4870/71 does not filter out duplicate scan results. It
is recommended that this bit be set if the RN4870/71 expects
a beacon or a peer device which dynamically changes its
advertisement.
Passive Scan 0x0200 If set, RN4870/71 performs passive scan instead of default
active scan.
UART Transparent
without ACK
0x0100 If set, the device uses Write without Response for UART
Transparent when communicating with another RN4870/71
module. If cleared, the device uses Write Request for UART
Transparent when communicating with another RN4870/71
module.
Reboot after
Disconnection
0x0080 If set, the RN4870/71 reboots after disconnection.
Running Script after
Power On
0x0040 If set, the RN4870/71 automatically runs the script after
powering on, starting with @PW_ON event.

Other manuals for Microchip Technology RN4870

Related product manuals