User's Manual

Once DFU finishes and verified successful, message “Upgrade OK” will be displayed
and module reboots to use the new firmware. If DFU is not successful, message
“Upgrade Err” is displayed and RN4020 stays in DFU mode. User should NOT reset
or power down the module, but try to stream valid and signed Microchip RN4020
image again until the upgrade is successful. Typical DFU over UART lasts less than 1
minute.
If the input parameter is 2, DFU mode is set to be OTA upgrade. A valid BLE
connection must be established before command “~,2” could be issued from the
device to send DFU image. Once both devices enter OTA mode, message “OTA” is
sent to UART of device to send DFU image. Device to send DFU image then could
start streaming valid and signed Microchip RN4020 image. If a terminal emulator is
used, it is recommended to use feature such as “send file” or something similar.
Once OTA finishes and verified successful, message “Upgrade OK” will be displayed
and module reboots to use the new firmware. If OTA is not successful, message
“Upgrade Err” is displayed and both RN4020 modules stay in OTA mode. User
should NOT reset or power down either module, but try to stream valid and
signed Microchip RN4020 image again until the upgrade is successful. Typical OTA
lasts between 5 - 10 minutes.
4 Demonstrations with RN4020
BTLE capability of RN4020 could be demonstrated either between RN4020 and a
third-party Bluetooth Smart/Smart Ready device (such as an iPhone or iPad), or
between two RN4020 modules.
4.1 Demonstration with Apple Device
In this section, we show step-by-step procedure for RN4020 to work with an Apple
device. To support BTLE, there are following hardware and software restrictions:
iPhone 4S or later, running iOS 6.0 or later
iPad 3 or later, running iOS 6.0 or later
Mac desktop or laptop that supports Bluetooth 4.0 LE and runs OS X 10.8.5 or
later
There are many ways that BTLE could be demonstrated on Apple devices. Microchip
recommends using application LightBlue to perform the demonstration. LightBlue is
a free app that is available both from iOS app store and MAC app store. Follow
normal installation procedure on Apple devices to set up the app and then launch it.