RN41/42 Evaluation Kit User’s Guide 2014 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
Object of Declaration: RN41/42 Evaluation Kit 2014 Microchip Technology Inc.
RN41/42 Evaluation Kit User’s Guide NOTES: DS50002325A-page 4 2014 Microchip Technology Inc.
RN41/42 EVALUATION KIT USER’S GUIDE Table of Contents Preface ........................................................................................................................... 7 Chapter 1. Overview 1.1 Introduction ................................................................................................... 13 1.2 RN41/42 Evaluation Kit Features ................................................................. 13 1.3 RN41/42 Evaluation Kit Contents and Part Details ..........................
RN41/42 Evaluation Kit User’s Guide NOTES: DS50002325A-page 6 2014 Microchip Technology Inc.
RN41/42 EVALUATION KIT USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/ or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
RN41/42 Evaluation Kit User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: MPLAB® IDE User’s Guide Italic characters Referenced books Emphasized text ...is the only compiler...
Preface WARRANTY REGISTRATION Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use the RN-41-EK and RN42-EK Evaluation Boards. Other useful documents are listed below.
RN41/42 Evaluation Kit User’s Guide THE MICROCHIP WEB SITE Microchip provides online support via our web site at http://www.microchip.com. This web site is used as a means to make files and information easily available to customers.
Preface CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • • • • Distributor or Representative Local Sales Office Field Application Engineer (FAE) Technical Support Customers should contact their distributor, representative or Field Application Engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document.
RN41/42 Evaluation Kit User’s Guide NOTES: DS50002325A-page 12 2014 Microchip Technology Inc.
RN41/42 EVALUATION KIT USER’S GUIDE Chapter 1. Overview 1.1 INTRODUCTION This user’s guide describes the hardware and software setup for RN41 and RN42 Evaluation Kits. The RN41 and RN42 evaluation boards are field-ready with Bluetooth® SIG qualified platforms based on RN41 and RN42 modules, respectively. The boards have the flexibility to connect directly to computer/laptops via a standard USB interface (via the FTDI chipset), or to embedded controllers through the TTL UART interface.
RN41/42 Evaluation Kit User’s Guide 1.2.2 RN42 Evaluation Board Features The RN42 Evaluation Board has the following features: • • • • • Supports fully qualified Bluetooth version 2.1 module, supports version 2.1 UART (SPP or HCI) and USB (only HCI) data connection interfaces Sustained SPP data rates: 240 Kbps (slave), 300 Kbps (master) HCI data rates: 1.5 Mbps sustained, 3.
Overview Figure 1-1 and Figure 1-2 show the evaluation kit contents and part number information. FIGURE 1-1: RN41 EVALUATION KIT CONTENTS RN-41-EK RN41 Evaluation Board FIGURE 1-2: RN42 EVALUATION KIT CONTENTS RN-42-EK RN42 Evaluation Board 2014 Microchip Technology Inc.
RN41/42 Evaluation Kit User’s Guide 1.4 RN41/42 EVALUATION KITS/BOARD CONTENTS The components of the RN41/42 Evaluation Board are shown in Figure 1-3. This figure describes the evaluation board’s interfaces and connectors. Table 1-2 describes the status LEDs. The Green LED indicates the status of the Bluetooth connection and the device in Configuration mode. The RN41 and RN42 modules are pin compatible and the description applies to both RN-41-EK and RN-42-EK boards.
Overview GPIO Signal Header 1 (J1) GPIO Signal Header 2 (J2) Programming Header (J3) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 Pin Description Pin Description Pin Description 1 GPIO6 13 GPIO4 1 SPI_MISO 2 GPIO7 14 GPIO3 2 SPI_MOSI 3 RESET_N 15 GPIO2 3 SPI_SCK 4 No Connect 16 CTS 4 SPI_SS 5 No Connect 17 RTS 5 3.
RN41/42 Evaluation Kit User’s Guide 1.5 RN41/42 EVALUATION KIT RELATED INFORMATION CONTENTS To obtain the sample application codes, see details from the Bluetooth User Manual using the following links: • http://www.microchip.com/RN-41-EK • http://www.microchip.com/RN-42-EK. Note: DS50002325A-page 18 All the factory-shipped RN modules are available with firmware version and profile details.
RN41/42 EVALUATION KIT USER’S GUIDE Chapter 2. Getting Started 2.1 INTRODUCTION This chapter describes the RN41/42 Evaluation Kit board as an independent development board for exploring the ASCII command set and prototyping of embedded systems. Certain hardware and software/utilities are essential to support the development of demo applications. This chapter discusses the following topics: • Hardware Requirements • Software/Utility Requirements • Module Configuration 2.
RN41/42 Evaluation Kit User’s Guide FIGURE 2-1: 2.3 COMPLETE HARDWARE SETUP USING THE EVALUATION KIT Program Bluetooth devices over the Bluetooth link or through the serial interface (USB port) using a simple ASCII command language, which is similar to the industry standard Hayes AT protocol. The set command configures the Bluetooth module and get commands echoes the current configuration.
Getting Started 2.4 COMMAND MODE VS. DATA MODE The Bluetooth device operates in two modes: Data mode (default) and Command mode. Upon power-up, the device is in Data mode. While in Data mode, the module is essentially a data pipe. When the module receives data from a remote Bluetooth device over a serial port profile (SPP) connection, it strips the Bluetooth headers and trailers and passes the user data to the UART.
RN41/42 Evaluation Kit User’s Guide 2.5 CONFIGURE THE MODULE LOCALLY USING THE USB PORT Setup the RN-41-EK or RN-42-EK hardware as described in Section 2.2.1 “Hardware Setup”. With the Bluetooth device connected and powered on, run a terminal emulator and open the COM port to which the cable is connected. Configure the virtual COM port connected to the RN-41-EK or RN-42-EK as shown in Table 2-1.
Getting Started FIGURE 2-3: 2.7 VIEW CURRENT SETTINGS OPERATING MODES The Bluetooth device has several Operating modes, which user can set using the SM command in Command mode. Note: 2.7.1 In all Master modes, the device cannot be discovered or configured remotely over Bluetooth. Slave Mode (SM,0) This is the default mode, in which other Bluetooth devices can discover and connect to the device. Outbound connections can also be performed in this mode. 2.7.
RN41/42 Evaluation Kit User’s Guide 2.7.4 Auto-Connect Master Mode (SM,3) In this mode, the device automatically reconnects to the stored address on power-up when the connection is lost. This mode can be set by command, or by setting the external DIP switch 3 during power-up. If an address is not stored and DIP switch 2 is set, the device performs an inquiry process and the first device found that matches the Class Of Device (COD) is stored.
Getting Started Table 2-2 describes the functions controlled by the switches. TABLE 2-2: Switch CONFIGURATION SWITCH FUNCTIONS Function Default (Off) Description 1 Restore factory defaults 2 Automatic discovery Automatic discovery is turned off. 3 Automatic master Automatic master is turned off. With this switch turned on, the module acts as Bluetooth master and auto-connects to a stored remote address.
RN41/42 Evaluation Kit User’s Guide FIGURE 2-5: DISCOVERY - ADD A BLUETOOTH® DEVICE 2.9.2 Pairing To pair with the evaluation board, double click the board’s name in the list. The firmware automatically stores up to 8 pairings from remote hosts using the First-In, First-Out (FIFO) method. The evaluation board’s Default Authentication mode is the SSP keyboard mode (no pin required). However, most PCs require authentication and display a pin code. If a user uses a Bluetooth USB dongle (e.g.
Getting Started FIGURE 2-6: PAIRING - COMPARING PIN CODES AND PAIRING OPTIONS When the Bluetooth device manager completes pairing, it issues a message that the Bluetooth device is installed on COMX where COMX is unique to the used host computer. In some cases, the Bluetooth device manager creates two COM ports; in this case, only use the COM port labeled as outgoing. Figure 2-7 shows an example of COM port settings. 2014 Microchip Technology Inc.
RN41/42 Evaluation Kit User’s Guide FIGURE 2-7: PAIRING - BLUETOOTH® COM PORT SETTINGS If the remote Bluetooth device does not require authentication, a connection can occur without the pairing process. However, the Bluetooth specification requires that if either device involved in the pairing process requires authentication, the other device must participate to ensure a secure link. The RN41/RN42 modules default to an Open mode, such that the module does not require authentication.
Getting Started 2.9.3.1 OUTGOING CONNECTIONS To establish an outgoing Bluetooth connection from a PC to the RN-41-EK or RN-42-EK board, open the module’s outgoing COM port from host application or a terminal emulator. When the user establish a connection by opening the COM port, the evaluation board’s Green LED (labeled as S) goes on solid (not blinking) to indicate that the device is connected.
RN41/42 Evaluation Kit User’s Guide 2.9.3.3 CONNECTING TWO RN-41-EK OR RN-42-EK BOARDS Open the COM ports assigned to the two modules. As a default, the modules are in Slave mode when powered up. The two slaves can be connected to each other or one of the modules reconfigured to be a master, can connect to a slave. To make a connection between two RN-41-EK (Module A and Module B) or between two RN-42-EK (Module A and Module B) boards, perform the following steps: 1.
Getting Started FIGURE 2-8: PC’S BLUETOOTH® RADIO MAC ADDRESS 2014 Microchip Technology Inc.
RN41/42 Evaluation Kit User’s Guide FIGURE 2-9: 2.10 TERMINALS A AND B SECURITY MODES The Bluetooth module supports authentication. If the local or remote Bluetooth device has authentication enabled, a pin code is required the first time a connection is attempted. The pin code is a series of numbers or characters from 1 to 16 characters in length. After the user enters the pin code, the Bluetooth devices compare these codes. If a match is found, a link key is generated and stored.
RN41/42 EVALUATION KIT USER’S GUIDE Chapter 3. Application Design Concerns 3.1 INTRODUCTION The following sections provide information on designing with the RN41 and RN42 modules, including radio interference, factory reset, solder reflow profile, connection status, and so on. 3.2 CONCERNS RELATED TO RN41/42 3.2.1 Reset Circuit The RN41 contains a 1k pull-up to VCC, and the reset polarity is active-low.
RN41/42 Evaluation Kit User’s Guide 3.2.4 HCI Mode RN41/42 module offers the Host Controller Interface (HCI) mode in addition to the standard operational mode of its Bluetooth modules (standard mode refers to the on-board stack running on the module). In HCI mode, the on-board stack is bypassed and the module is put in a state that runs the Bluetooth baseband.
RN41/42 EVALUATION KIT USER’S GUIDE Appendix A. RN41 and RN42 Evaluation Kit Schematics A.1 INTRODUCTION This appendix provides the RN41 and RN42 Evaluation Boards schematic, PCB layout and Bill of Materials (BOM). • • • • A.
RN41/42 Evaluation Kit User’s Guide FIGURE A-1: RN41 EVALUATION BOARD SCHEMATIC M1 RN41 Module 3.3V 3.3V UART_RTS VDD UART_TX GND UART_RX 0 SHIE L D 12 PCM_OUT SPI _SS 22 PI O4 21 PI O5 20 PI O3 19 PI O2 Green LED 470 Connection Status D2 R3 PI O8 Red LED 470 18 17 Activity 16 CT S 15 RT S 14 TX D 13 RX D U1 TC1185 3.
RN41 and RN42 Evaluation Kit Schematics FIGURE A-2: RN42 EVALUATION BOARD SCHEMATIC M1 RN-42 Module 3.3V UART_RTS VDD UART_TX GND UART_RX 0 SHIE L D 12 PCM_OUT SPI _SS 22 PI O4 21 PI O5 20 PI O3 19 PI O2 Green LED 470 Connection Status D2 R3 PI O8 Red LED 470 18 17 Activity 16 CT S 15 RT S 14 TX D 13 RX D U1 TC1185 3.3V VBUS 5 C2 1uF 4 VOUT VI N GND 3.
RN41/42 Evaluation Kit User’s Guide A.3 RN41 AND RN42 EVALUATION KIT PCB LAYOUT AND ASSEMBLY DRAWINGS The RN41/42 Evaluation Board is a 2-layer, FR4, 0.062 inch, plated through a hole PCB construction. Figure A-3 through Figure A-6 show the PCB constructions and Assembly Drawings. FIGURE A-3: RN41/RN42 EVALUATION BOARD TOP SILKSCREEN FIGURE A-4: RN41/42 EVALUATION BOARD BOTTOM SILKSCREEN DS50002325A-page 38 2014 Microchip Technology Inc.
RN41 and RN42 Evaluation Kit Schematics FIGURE A-5: RN41/RN42 EVALUATION BOARD TOP COPPER FIGURE A-6: RN41/42 EVALUATION BOARD BOTTOM COPPER 2014 Microchip Technology Inc.
RN41/42 Evaluation Kit User’s Guide A.4 RN41 AND RN42 EVALUATION KIT BILL OF MATERIALS TABLE A-1: RN41 EVALUATION BOARD BILL OF MATERIALS (BOM) Reference Value Description Vendor Vendor P/N C1, C2 1 uF Cap ceramic, 10%, 16V, X5R, 0402 TDK Corporation C1005X5R1C105K C4, C5, C6 100 nF Cap ceramic, -20%, 80%, 16V, Y5V, 0402 Yageo CC0402ZRY5V7BB104 D1 Green LED Clear, Green LED, 10 mA, 2.1V, 569 nm, 130 degrees, 1206 Lite-On Inc LTST-C150GKT D2 Red LED Clear, Red LED, 10 mA, 1.
RN41 and RN42 Evaluation Kit Schematics A.5 RN41 AND RN42 EVALUATION KIT PHYSICAL DIMENSIONS Figure A-7 shows the physical dimensions of the RN41/42 Evaluation Board. FIGURE A-7: RN41/42 PHYSICAL DIMENSIONS 2014 Microchip Technology Inc.
RN41/42 Evaluation Kit User’s Guide NOTES: DS50002325A-page 42 2014 Microchip Technology Inc.
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.