Microchip Technology RN4020 User Mnaual Technical Spec.

Bluetooth® Low Energy Module

DRAFT
Features
• Fully qualified Bluetooth® version 4.1 module
• Onboard Bluetooth Low Energy 4.1 stack
• ASCII command interface API over UART
• Secure AES128 encryption
• GAP, GATT, SM, L2CAP and integrated public profiles
• Create custom services using command API
• Microchip Low Energy Data Protocol (MLDP) for streaming data applications
• Software configurable role as peripheral or cen­tral, client or server
• Compact form factor 11.5 x 19.5 mm
• Low-power consumption
• UART interface, GPIO, ADC
• 64 KB internal serial flash
• Castellated SMT pads for easy and reliable PCB mounting
• Environmentally friendly, RoHS compliant
• Certifications: FCC, IC, CE, QDID
• Device Firmware Upgrade (DFU)
Description
Microchip’s RN4020 Bluetooth Low Energy Module provides a highly integrated solution for delivering low power Bluetooth 4.1 solu tions. The advanced com­mand interface offers rapid time to market.
The RN-4020 module complies with Bluetooth specifi­cation version 4.1. It integrates RF, a baseband control­ler, command API processor, making it a compl ete Bluetooth Low Energy Solution.
The RN4020 can be use d with either low cost micro­controller for intelligent Bluetooth Low Energy applica­tions. For simpl e sensor ap plications, the RN4020 internal scripting capabilities enable basic functions to be implemented without the need for external host MCU or software development tools.
RN4020
Applications
• Health/Medical Devices
- Glucose Meters
- Heart rate
-Scale
• Sports Activity and Fitness
- Pedometer
- Cycling computer
- Heart rate
• Retail
-POS
- Asset tagging and tracking
- Proximity Advertising
• Beacon applications
• Internet of Things Sensor tag
• Remote Control
- Keyboard Mice
- AV consoles, game controllers
• Wearable smart devices and accessories
• Industrial Control
- Private (custom) services
- Low bandwidth cable replacement
• Smart Energy/Smart Home
2014 Microchip Technology Inc. DSXXXXXXXXA-page 1
RN4020
DRAFT
Table of Contents
1.0 Device Overview........................................................................................................................................................................... 3
2.0 General Specifications.................................................................................................................................................................. 5
3.0 Microcontroller to RN4020 Interface ............................................................................................................................................. 6
4.0 Physical Dimensions..................................................................................................................................................................... 7
5.0 Typical Application Schematic ...................................................................................................................................................... 8
6.0 ASCII Command API .................................................................................................................................................................... 9
7.0 Supported Services .................................................................................................................................................................... 10
8.0 Regulatory Approval ................................................................................................................................................................... 13
9.0 Ordering Information................................................................................................................................................................... 19
Appendix A: Revision History ............................................................................................................................................................... 21
The Microchip Web Site ....................................................................................................................................................................... 23
Customer Change Notification Service................................................................................................................................................. 23
Customer Support ................................................................................................................................................................................ 23
Product Identification System............................................................................................................................................................... 25
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via E-mail at docerrors@microchip.com. We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. The last character of the literature number is the version number, (e.g., DS30000000A is version A of document DS30000000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page) When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.
DSXXXXXXXXA-page 2  2014 Microchip Technology Inc.

1.0 DEVICE OVERVIEW

DRAFT
FIGURE 1-1: RN4020 TOP VIEW
Figure 1-2 shows the module’s pinout and Table 1-1 describes the pins.
RN4020
FIGURE 1-2: RN4020 PIN DIAGRAM
2014 Microchip Technology Inc. DSXXXXXXXXA-page 3
RN4020
DRAFT

TABLE 1-1: PIN DESCRIPTION

Pin Symbol Description Function
1 GND Ground Ground 2 AIO2 Bi-directional with programmable analog IO 1.65V input, 1.35V out, and 30mA max out 3 AIO1 Bi-directional with programmable analog IO 1.65V input, 1.35V out, and 30mA max out 4 AIO0 Bi-directional with programmable analog IO 1.65V input, 1.35V out, and 30mA max out 5 UART TX UART TX Output from RN4020 6 UART RX UART RX Input to RN4020 7 WAKE-SW Deep Sleep Wake; active high to wake
module from deep sleep
8 CMD/DATA Command or Data – In Command , UART
traffic is sent to command interpreter, other maybe routed to Microchip Serial Data ser­vice.
9 GND Ground Ground 10 SPI-CLK
GPIO[1]
11 SPI-CS#
GPIO[2]
12 SPI-MOSI
GPIO[3]
13 SPI-MISO
GPIO[4]
14 CTS
GPIO[6]
15 WAKE-HW Hardware wake from Hibernate or Dormant
16 GND Ground Ground 17 SPI/PIO
18 RTS
GPIO[5]
19 ADVCONN
GPIO[7]
20 RSVD Do not connect. Factory diagnostics NC
SPI-CLK for diagnostics and factory calibra­tion if pin 17 asserted. Default state is out­put: Active Low indicates module is connected to remote device. High level indi­cates disconnected state. Configurable as GPIO[1] via software command.
SPI-CS# for diagnostics and factory calibra­tion if pin 17 asserted. Default state is out­put. Active High indicates module has a pending event. Low level indicates no events. Event only triggered in DATA , pin 8 is high. Configurable as GPIO[2] via soft­ware command.
SPI-MOSI for diagnostics and factory cali­bration if pin 17 asserted. Default state is output. Active High indicates module is awake and active. Low level indicates a sleep state. Configurable as GPIO[3] via software command.
SPI-MISO for diagnostics and factory cali­bration if pin 17 asserted. Configurable as GPIO[4] via software command.
Reserved for CTS if hardware flow control is on UART. Configurable as GPIO[6] if hard­ware flow control is disabled.
state
SPI/PIO for pins 10-13, Active High Input with internal pull down; selects SPI on 10-
Reserved for RTS if hardware flow control on UART. Configurable as GPIO[5] if hard­ware flow control disable
Active Low; In Peripheral the input put module in advertising state (discoverable and open for connection). In Central , initi­ates connect to stored address.
Input; weak pull down
Input; Active High to enter Command
• SPI-CLK
• Connected Status (Green LED)
• GPIO[1]
• SPI-CS#
• Event Pending (Red LED)
• GPIO[2]
• SPI-CLK
• Wake Status (Blue LED)
• GPIO[3]
• SPI-CLK
• GPIO[4]
• CTS (input)
• GPIO[6]
Active High; internal pull down
13
• RTS (output)
• GPIO[5]
Initiate Advertising state or connect to stored address
DSXXXXXXXXA-page 4  2014 Microchip Technology Inc.
TABLE 1-1: PIN DESCRIPTION (CONTINUED)
DRAFT
Pin Symbol Description Function
21 RSVD Do not connect. Factory diagnostics NC 22 RSVD Do not connect. Factory diagnostics NC 23 VDD Supply voltage: 2.0 to 4.2V Supply Voltage, 2.0 to 4.2 24 GND Ground Ground
RN4020

2.0 GENERAL SPECIFICATIONS

Table 2-1 provides the general specifications for the
module. Ta bl e 2 -2 , Ta bl e 2 -3 , and Table 2-4 provide the module’s weight, dimensions, electrical character­istics, and current consumption.

TABLE 2-1: GENERAL SPECIFICATIONS

Specification Description
Standard Bluetooth 4.1
Frequency Band 2.4 ~ 2.48 GHz
Modulation Method GMSK
Maximum Data Rate 1 Mbps
Antenna PCB and chip (0dBi)
Interface UART, PIO, AIO, SPI
Operation Range 100 meters
Sensitivity -93 dBm at 0.1% BER
RF TX Power +8.5 dBm (max)
Temperature (operating) -30°C to +85°C
Temperature (storage) -40°C to +85°C
ESD JESD22-A224 class 0
product
Humidity 10% ~ 90% non-con-
densing

TABLE 2-4: CURRENT CONSUMPTION

Mode Typical Current at 3V
Dormant <700nA
Hibernate <2.0uA
Deep Sleep <5.0uA
Idle <1.5mA
Tx/Rx active 16 mA at 0 dBM

TABLE 2-2: WEIGHT AND DIMENSIONS

Specification Description
Dimensions RN4020: 19.5 x 11.5 x 2.5 mm
Weight 1.2 g
TABLE 2-3: ELECTRICAL
CHARACTERISTICS
Specification Description
Supply Voltage 3Vport: 2.0 - 4.2 V DC
Working current Depends on profiles, 12 mA
typical
Standby current (disconnected)
2014 Microchip Technology Inc. DSXXXXXXXXA-page 5
<0.5 mA)
RN4020
DRAFT

3.0 MICROCONTROLLER TO RN4020 INTERFACE

FIGURE 3-1: INTERFACE DESCRIPTION
Figure 3-1 illustrates the interface between PIC micro-
controller and RN4020 module. The minimum interface consists of UART and WAKE HW line. This enables the microcontroller to communi cate with RN 4020 module using ASCII comman d API. T he command API is described in Sec XX.

3.1 CTS/RTS Hardware Flow Control

For customer applications using the Microch ip Low Energy Data Protocol (MLEDP), Pin 8 (CMD/DATA) is required. CTS/RTS hardware control is also highly rec­ommended for this service to avoid buffer overruns.

3.2 Microchip Low Energy Data Protocol (MLDP)

The Microchip Low En ergy Data Protocol is a private BTLE service that provides a 20kbps serial data trans­port over Bluetooth Low Energy on the RN4020. Pin 8 (CMD/DATA) is required. CTS/RTS hardware control is also highly recommended for this service to avoid data loss.
Refer to “ RN4020 Command Reference”, for more
information on how to configure the MLDP service mandatory for DFU over UART.
DSXXXXXXXXA-page 6  2014 Microchip Technology Inc.
RN4020
DRAFT

4.0 PHYSICAL DIMENSIONS

Figure 4-1 shows the physical dimensions for RN4020 module. Figure 4-2 shows the recommended PCB layout.
FIGURE 4-1: PHYSICAL DIMENSIONS FOR RN4020
FIGURE 4-2: RECOMMENDED PCB FOOTPRINT
2014 Microchip Technology Inc. DSXXXXXXXXA-page 7
RN4020
DRAFT

5.0 TYPICAL APPLICATION SCHEMATIC

Figure 5-1 shows schematic for the RN4 020 PICtail™/PICtail Plus Daughter Board development tool, PN-
XXXXXXXXXX.
FIGURE 5-1: RN4020 TYPICAL APPLICATION SCHEMATIC
DSXXXXXXXXA-page 8  2014 Microchip Technology Inc.

6.0 ASCII COMMAND API

DRAFT
The RN4020 command API is documented in RN4020 Command Reference: doc-xxx-xxxxxx:
Commands are categorized into the following func­tions:
• Built-in public services
- Enable/Disable service as Server or Client
- Red value
- Set value
•Max Tx Power
- Set Power in DB
•Role
- Peripheral or Central
• Advertising
- Start/Stop
• Bonding
- Bond/Unbond to Master
• Private Service
- Set Private Service UUID
- Set Characteristic UUID for Private Service
• Microchip Low Energy Data Protocol
- Enable/Disable
- 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 raw ADC values
• System
- Reboot
- Enter deep sleep
- Factory default
- Test functions for type approval
- Display configuration
RN4020
2014 Microchip Technology Inc. DSXXXXXXXXA-page 9
Loading...
+ 19 hidden pages