User's Manual

If the parameter is 2, MLDP data over the air will be authenticated. If this mode is
enabled, Enable Authentication bit must be set for command “SR”, RN4020 must
have I/O capability and bonding must be made before MLDP service starts.
Default: 0
Example: SE,1 // Secure MLDP data over the air
3.3.6 RN4020 Standalone Scripting Commands
3.3.6.1 RN4020 Standalone Scripting Capabilities
In typical set up, a host MCU via AT commands drives RN4020 BLE module over
UART interface. But for very simple application, the requirement of host MCU could
be waived and the function could be performed by executing scripts on RN4020
directly. The script is ASCII commands that do not need to be compiled or processed
before writing to RN4020. By no ways that RN4020 firmware is changed by writing,
reading or executing the scripts. The script is written into NVM of RN4020 module,
so power cycle wouldn’t affect the contents of script.
The standalone scripting capability on RN4020 may be useful under following
situations:
Added cost of host MCU is sensitive
User application uses proprietary service and characteristics
User application mainly uses analogue or digital ports that are available on
RN4020
The logic of user application is simple
Instead of RN4020, peer device could perform interpolation of data
The total script could not exceed 512 bytes and less than 50 lines
Scripting capability could also used to lower load of host MCU. It could be
used to initialize setting and perform operations once certain event is
triggered.
3.3.6.2 Fundamental of RN4020 Script
The main functionalities of scripting are achieved by executing AT commands, which
are the same as those via UART interface.
3.3.6.2.1 Event Driven
The script is driven by events. There are 7 events currently defined. Table 7 lists
supported events and their labels. All event scripts starts with event label and then