2016 Microchip Technology Inc. DS50002466A-page 15
RN4870/71 BLUETOOTH
®
LOW ENERGY MODULE
USER’S GUIDE
Chapter 2. Command Reference
2.1 INTRODUCTION
The RN4870/71 supports a variety of UART commands for controlling and configura-
tion. This chapter describes these commands in detail and provides examples.
2.2 COMMAND SYNTAX
The ASCII command syntax is a keyword followed by optional parameters.
• ASCII commands are divided into multiple groups:
- Set Commands
- Get Commands
- Action Commands
- List Commands
- Service Configuration Commands
- Characteristic Access Commands
- Script Commands
• All commands contain one, two or three case-insensitive characters
• Delimit command and any argument with a comma
• Text data is case sensitive such as Bluetooth name
• All commands end with carriage return ('\r', \x0d)
• Get commands return the value requested by the corresponding command to be
retrieved. Most of the other commands return either AOK (<AOK><CR>) that indi-
cates a positive response or ERR (<ERR><CR>), as a negative response.
All configuration changes made by Set commands are stored in the Non-Volatile Mem-
ory (NVM) and survive the power cycle. Any configuration changes takes effect after a
reboot.
For a list of all commands, refer to Table B- 2 in Appendix B. “Status Response
Summary Quick Reference”.
2.3 SET AND GET COMMANDS
Set and Get commands are used to configure features and functions of the RN4870/71
module. The format of the Set and Get commands are provided in Ta ble 2 -1. The Set
command starts with character “S” and followed by one or two character configuration
identifier. All Set commands take at least one parameter that is separated from the
command by a comma. Set commands change configurations and take effect after
rebooting either via R,1 command, hard Reset, or power cycle.