2016 Microchip Technology Inc.
DS50002547A-page 21
5. To display the basic configuration settings, press the letter
D
followed by <Enter>
key (
\r
). The configuration settings can be modified using ASCII commands.
Refer to the
“RN4870/71 Bluetooth
®
Low Energy Module User’s Guide”
(DS50002466) for a detailed explanation of the commands.
FIGURE 3-3:
RESULTS OF “D” TO DISPLAY BASIC CONFIGURATION
3.3
CHANGING SETTINGS USING ASCII COMMANDS
The RN4870/71 PICtail is shipped with a default configuration
not
including GATT ser-
vices as noted by the result of the previous command
D
(display basic configuration).
The services value is set to
Services=00
. The RN4870 module can be discovered
using Bluetooth SmartDiscover App. The SmartDiscover App is available for iOS
®
devices on Apple AppStore. Check the Google Play Store for Android version.
To enable built-in services and connect to the RN4870/71 module, perform the follow-
ing steps:
1. Connect the RN4870/71 PICtail to the host PC USB port:
a) Using Terminal Emulator, open the COM port to the RN4870/71 module
b) Type
$$$
to enter Command mode
c) Enter
+
to turn on ECHO. Refer to
2. To change the default name and enable GATT services (Device Information Ser-
vice and Transparent UART), send the following commands:
a)
S-,BLE
to create a unique serialized name based on Bluetooth (BT)
address of the device
b)
SS,C0
to enable Device Information Profile and Transparent UART services
c)
R,1
to reboot the module and enable the configuration commands to take
effect. Refer to
.
FIGURE 3-4:
S-
AND
SS
COMMAND EXAMPLE