Datasheet

RN4020
DS50002279B-page 12 2015 Microchip Technology Inc.
6.0 ASCII COMMAND API
The RN4020 command API is documented in RN4020
Bluetooth Low Energy Module User’s Guide
(DS70005191).
Commands are categorized into the following
functions:
Built-in Public Services
- Enable/Disable service as Server or Client
- Read/Write characteristic values
- Set notification for characteristic
•Max TX Power
- Set power in dB
GAP Role
- Central, Peripheral, Observer and
Broadcaster
Advertising
- Start/Stop
Bonding
- Bond/Unbound to Master
Private Service
- Set private service UUID
- Set characteristic UUID for private service
- Set private service filter
Microchip Low-energy Data Profile (MLDP)
- Enable
- Enter MLDP mode
- Peripheral side configuration
- Central side configuration
Device Information Profile settings
Connection
-Status
- Disconnect
- Kill active connection
- Establish connection (Central role only)
- Start/Stop inquiry scan for other devices
(Central role only)
•IO
- Configure GPIO mask
- Set/Get GPIO states
- Ready and Write ADC values
- Read/Write I
2
C
- Configure PWM
- Device Firmware Update
- Accessing remote configuration
System
- Reboot
- Factory default
- Display configuration
•Scripting
- Enter script mode
- Declare event handler
- Execute current script
- List current script
- Clear script
- Define User function