RN4020 Firmware 1.33BEC Release Note

Microchip

Date: May 2, 2016

1 Overview

Firmware version 1.33BEC is released for Microchip's RN4020 Bluetooth Low Energy Module. This release adds new the following features:

1.1 Resolved Issues

Release 1.33BEC contains the fixes from firmware release 1.23.

1.2 Known Issues

1.3 New Features

GATT Service Enhancements

In firmware 1.33BEC, the SS command has been modified to support two public services: battery service and device information. The PS and PC commands are used to support 16-bit UUIDs, allowing more flexibility to define any public or private service.

User Defined Advertising Packets

The SS command has been modified to support only battery service and device information. The PS and PC commands now support 16-bit UUIDs, allowing more flexibility to define any public or private service.

Bluetooth Address Functions

Several new commands are added to manage the Bluetooth address of the device. The address can be set to specified MAC or random (private) resolvable address.

1.4 Ordering Information

1.5 Firmware Upgrade

RN4020 devices, such as modules and PICTails, can be updated to firmware 1.33BEC using the DFU Update Utility which can be downloaded from the www.microchip.com\RN4020 product page. To perform a firmware update on an RN4020 module or PICTail, execute the utility on a Windows PC with a COM port connected to the RN4020 UART interface. Hardware flow control (CTS/RTS) is required to perform a DFU update. Follow the instructions in the DFU Update Utility.

2 New Commands in 1.33BEC

2.1 Connectable Advertising Payload

NA, <HEX>

This command is used to customize connectable advertisement payload. By default, a connectable advertisement started by command “A” or auto-advertisement feature has following Advertisement Data (AD) structure format:

Flags | Service UUID List 16-bit | Service UUID List 128-bit | Local Name Complete

Due to the limited size of advertisement payload, the following conditions apply:

  • When private service or MLDP is enabled, AD structure Service UUID List 16-bit is omitted
  • When private service and MLDP are both enabled, only the private service UUID is in the Service UUID List 128-bit.
  • In the AD structure Service UUID List 16-bit, common services such as Device Info and Battery services are not listed
  • AD structure Local Name Complete is added to advertisement payload only if there is enough space. Therefore, if AD structure Service UUID List 128-bit is included, device name less or equal to 6 bytes could be included in advertisement payload.

Command “NA” provides the capability to modify the default advertisement payload by adding an AD structure one at a time. The input parameter of command “NA” is the raw AD structure format without AD length. See table 1 for AD types. For details specifications of AD structure, please refer to Core Spec Vol3, Part C, Section 11 and Core Spec Supplement v4, Part A.

Command “NA” appends additional AD to the advertisement payload, not replacing previous one. To clear the advertisement payload, use command “NZ”.

The flags field is added by RN4020 module automatically.

For example, to add local device name and TX power level, use following commands:

  • Y // Stop advertising
  • NZ // clear AD payload set by previous NA & NB
  • NA,0944617665 // AD Type 0x09 Local Name Complete // local name complete, and 44617665 are ASCII // code "Dave", the name of device
  • NA,0A04 // add AD Tx power level, where 0x0A is AD type // Tx power level and 04 indicates output power is // 4dBm.
  • A // start connectable advertisement with custom payload

2.2 Non-Connectable Advertisement Payload

NB,<HEX>

This command is used to customize non-connectable advertisement payload. The use of command “NB” is the similar to that of command “NA”. The difference is that command "NB" customizes non-connectable advertisement, while command “NA” customizes connectable advertisement. “NB” can be used define customer beacons

The following example defines several types of advertising packets:

  • // Custom ADV packet, MSD ad type (xFF), Microchip vendor ID (0x00CD) // two byte payload (0xDA1E)
  • NB,FFCD00DA1E
  • // AltBeacon Packet (https://github.com/AltBeacon/spec) // AD Type: (xFF) MSD, see table 1 for AD types // MFG ID: (x00CD) Microchip MFG ID assigned by BT SIG is used in this // in this example. It must be encoded little endian in payload. // Becon Code: (xBEAC) fixed value // Beacon ID:16 byte UUID: 5b60c10e62f311e59d70feff819cdc9f // 2 byte user defined: 0xdale used in this example // RefRSSI: Signed byte 0 to -127: 0xc9, (-55 dB) used in this example // Mfg Rsvd: 1 byte reserved for user defined, 0x88 used in this example
  • NB,FFCD00BEAC560C10E62F311E59D70FEFF819CDC9FDA1EC988

2.3 Clear Advertisement Payload

NZ

This command is used to clear custom advertisement payload set by previous NA and NB commands. The default connectable advertisement is enabled after this command is sent.

2.4 Assign Address to Local Device

&,<MAC>

Command "&" assigns a specific address to local device. It accepts one input parameter, which is 6-byte random address. This random address could be a static or private address. For format of random address, please refer to Bluetooth Core Specification version 4.1, Vol 3, Part C, Section 10.8. If device is currently advertising, the advertising address will be immediately changed to the assigned random address. This command can be invoked directly or automated via a script. The address is not saved in NVM.

Example

&,6F1234567890 // Set random address to be 6F1234567890

2.5 Enable Resolvable Random Addresses

&R

Command "&R" generates a resolvable random address and assign it as the current random address. If device is currently advertising, the advertising address will be immediately changed to the new resolvable random address. This command can be invoked directly or automated via a script

Example

&R // Automatically generate and assign a resolvable // random address

2.6 Disable Random Addresses

&C

Command "&C" clears the random address and uses local MAC address for advertisement. If device is currently advertising, the advertising address will be immediately changed to the local MAC address.

Example

&C // Clears random address and use MAC address

3 Appendix A: AD Types

Table 1: Bluetooth AD Types for NA and NB commands

AD Type (HEX) Description
01Flags
02Incomplete list of 16-bit UUIDs
03Complete list of 16-bit UUIDs
04Incomplete list of 32-bit UUIDs
05Complete list of 32-bit UUIDs
06Incomplete list of 128-bit UUIDs
07Complete list of 128-bit UUIDs
08Shortened local name
09Complete local name
0ATX power level
0DClass of device
0ESimple pairing hash
0FSimple pairing randomizer
10TK value
11Security OOB flag
12Slave connection interval range
14List of 16-bit service UUIDs
15List of 128-bit service UUIDs
16Service data
FFManufacture Specific Data

PDF preview unavailable. Download the PDF instead.

RN4020 Firmware 1.33BEC Release Note-May2016 C15227 Adobe PDF Library 10.0

Related Documents

Preview Microchip RN4020 Bluetooth Low Energy Module Data Sheet
This data sheet provides detailed specifications, features, and application information for the Microchip RN4020 Bluetooth Low Energy Module, a fully certified Bluetooth v4.1 module with an ASCII command interface, MLDP support, and a compact form factor.
Preview Microchip BM83 Audio Transceiver v1.0 Release Notes
Release notes for the Microchip BM83 Audio Transceiver v1.0 firmware, detailing new features, enhancements, fixed issues, and known errata for the Bluetooth module.
Preview ATWINC3400 Software Release Notes - Version 1.4.6
Release notes for Microchip's ATWINC3400 Wi-Fi Network Controller, detailing software version 1.4.6, including new features, bug fixes, and comparisons with previous versions.
Preview BM83 MSPK2 v1.2 Release Notes - Microchip
This document details the release notes for Microchip's BM83 MSPK2 v1.2 firmware version, outlining new features, enhancements, resolved issues, and errata for the BM83 Bluetooth module.
Preview BM83 MSPK2v1.3 Firmware Release Notes
Release notes for the BM83 MSPK2v1.3 firmware, detailing firmware updates, utility tool updates, new features, enhancements, and bug fixes for version 1.3 and version 1.2.
Preview Microchip SmartRAID 4300 Series Software/Firmware Release Notes
This document details the software and firmware release notes for the Microchip SmartRAID 4300 Series, including release identification, components, new features, known limitations with workarounds, and revision history. Essential for managing Adaptec SmartRAID 4300 Series NVMe RAID controllers.
Preview PIC32-BZ6 Curiosity Board User's Guide
This user guide provides comprehensive information on the PIC32-BZ6 Curiosity Board, a development platform for Microchip's PIC32WM-BZ6204UE Module. It details the board's features, capabilities, and supported applications, including Bluetooth Low Energy (BLE) and IEEE 802.15.4 wireless communication, integrated debugging, and various expansion and connectivity options. The guide is intended for developers working on IoT, home automation, and industrial applications.
Preview Microchip BM62/64 Bluetooth 4.2 Stereo Audio Module Datasheet
Detailed datasheet for the Microchip BM62/64 Bluetooth 4.2 Stereo Audio Module, covering features, specifications, applications, and pin descriptions for both BM62 and BM64 variants.