background image

RN4870/71 PICtail™/PICtail Plus Daughter Board User’s Guide

DS50002547A-page 22

 2016 Microchip Technology Inc.

3. After any Set commands issued, the RN4870/71 module needs a device reboot 

(

R,1

) for the changes to take effect. 

To verify the configuration settings, perform the following steps:
a) Type 

$$$

 to enter Command mode

b) Enter 

+

 to turn on local echo 

c) Issue  command 

D

 to display the settings

d) Note the name of the device 

BLE-b1b0

 where b1b0 are the low order bytes 

of the BT address; in this example, the Bluetooth is set to 

BLE-C071

e) Verify that the services field is set to 

C0

; refer to 

Figure 3-5

FIGURE 3-5:

CONFIRM NEW SETTINGS IN COMMAND MODE

3.4

CONNECTING TO THE RN4870/71 USING SMARTDISCOVER APP

The RN4870/71 features can be demonstrated by using the SmartDiscover App. 
To connect the RN4870/71 using SmartDiscover App, perform the following steps:
1. Configure the RN4870/71 PICtail according to the steps in 

Section 3.3 “Changing Settings Using ASCII Commands”

. Connect it to the 

host PC and type 

$$$

 to

 

enter Command mode.

2. Download and install the SmartDiscover App on your device. See 

Figure 3-6

 fo

example of SmartDiscover App icon.

FIGURE 3-6:

SMART DISCOVER ICON

Содержание RN4870

Страница 1: ...2016 Microchip Technology Inc DS50002547A RN4870 71 PICtail PICtail Plus Daughter Board User s Guide...

Страница 2: ...eceived ISO TS 16949 2009 certification for its worldwide headquarters design and wafer fabrication facilities in Chandler and Tempe Arizona Gresham Oregon and design centers in California and India T...

Страница 3: ...opment evaluation tool complies with EU RoHS2 Directive 2011 65 EU This development evaluation tool when incorporating wireless and radio telecom functionality is in compliance with the essential requ...

Страница 4: ...RN4870 71 PICtail PICtail Plus Daughter Board User s Guide DS50002547A page 4 2016 Microchip Technology Inc NOTES...

Страница 5: ...g ASCII Commands 21 3 4 Connecting to the RN4870 71 Using SmartDiscover App 22 3 5 Creating Custom GATT Services 24 3 6 Accessing GATT Service Using UART Commands and SmartDiscover App 25 3 7 Reading...

Страница 6: ...il Schematic 49 B 5 RN4871 PICtail BOM 50 B 6 RN4870 Sensor Board Schematic 52 B 7 RN4870 Sensor Board BOM 52 Appendix C Bluetooth Low Energy Primer C 1 GAP Roles Peripheral and Central 53 C 2 GATT Se...

Страница 7: ...the Sensor board Chapter 3 Quick Start Guide This chapter describes how to connect the RN4870 71 PICtail PICtail Plus Daughter board to the Host PC via USB and connecting and communicating with a sma...

Страница 8: ...T Appendix A Updating PICtail Firmware This appendix shows the steps to update the firmware on the RN4870 71PICtail PICtail Plus Daughter board Appendix B Schematics and BOM This appendix shows the sc...

Страница 9: ...dialog button Click OK A tab Click the Power tab N Rnnnn A number in verilog format where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle brackets A key on...

Страница 10: ...releases and archived software General Technical Support Frequently Asked Questions FAQs technical support requests online discussion groups Microchip consultant program member listing Business of Mi...

Страница 11: ...ical 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...

Страница 12: ...RN4870 71 PICtail PICtail Plus Daughter Board User s Guide DS50002547A page 12 2016 Microchip Technology Inc NOTES...

Страница 13: ...are available on Apple AppStore and Google Play Store and include SmartDiscover SmartData BLESensorApp For more information on the RN487x commands and specifications refer to the Blue tooth 4 2 Low E...

Страница 14: ...tail Plus Daughter board has the following features Fully certified Bluetooth Low Energy 4 2 RF module 2 dBm maximum TX power On Board Dual In Line Package DIP switch block to set operating modes PICt...

Страница 15: ...il PICtail Plus Daughter Board RN4871 PICtail PICtail Plus Daughter Board Sensor Board 2 2 RN4870 PICtail PICtail PLUS DAUGHTER BOARD Figure 2 1 shows the interfaces of the RN4870 PICtail PICtail Plus...

Страница 16: ...USB host LED6 14 SPI Serial Flash Interface J4 15 UART connections J3 RTS CTS jumpers must be closed when hardware flow control is enabled on module 16 Status indicator LED LED1 for blink rate descri...

Страница 17: ...than the full size RN4870 module For the specific pinouts of the RN4870 and the RN4871 modules refer to the Bluetooth 4 2 Low Energy Module Data Sheet DS50002489 Although the module sizes are differen...

Страница 18: ...r the RN4870 PICtail PICtail Plus Daughter board to demonstrate digital and analog IO capabilities over Bluetooth Low Energy connections In order to use the Sensor board with the RN4870 it must be con...

Страница 19: ...ng the Sensor board The files can be downloaded from the www microchip com RN4870 product page 3 2 CONNECTING THE RN4870 71 PICtail PICtail PLUS DAUGHTER BOARD TO A HOST PC To connect the RN4870 71 PI...

Страница 20: ...ATOR 4 Enter Command mode by sending the command escape sequence Press ing the dollar sign three times puts the RN4870 71 into Command mode and CMD prompt is displayed When interacting directly with t...

Страница 21: ...ing Bluetooth SmartDiscover App The SmartDiscover App is available for iOS devices on Apple AppStore Check the Google Play Store for Android version To enable built in services and connect to the RN48...

Страница 22: ...this example the Bluetooth is set to BLE C071 e Verify that the services field is set to C0 refer to Figure 3 5 FIGURE 3 5 CONFIRM NEW SETTINGS IN COMMAND MODE 3 4 CONNECTING TO THE RN4870 71 USING S...

Страница 23: ...evice name is BLE C071 as shown in Figure 3 7 5 Click the RN4870 71 device from the list to initiate a connection 6 Ensure that the connection is established The GATT service view is illustrated in Fi...

Страница 24: ...he product web page at www microchip com RN4870 1 Connect the RN4870 PICtail to the host PC USB port a Using Terminal Emulator open the COM port to the RN4870 71 module b Type to enter Command mode c...

Страница 25: ...F636869702D524E34383730 with three characteristics identified by low order bytes C501 C502 and C503 from the 128 bit UUID A 16 bit handle is assigned to each characteristic Handles are used to referen...

Страница 26: ...RN4870 71 PICtail PICtail Plus Daughter board configured with the private GATT as shown in Section 3 5 Creating Custom GATT Services In this example the device BLE C071 is used Follow the steps in Fi...

Страница 27: ...ess peripheral IO on the Sensor board connected to the RN4870 PICtail as illustrated in Figure 3 13 1 Connect the Sensor board to the RN4870 PICtail as shown in Figure 1 1 2 Set Factory Default to def...

Страница 28: ...2016 Microchip Technology Inc FIGURE 3 13 RN4870 PINS USED BY SENSOR BOARD INTERFACE 4 After the IO ports are configured and the module is rebooted perform the com mands shown in Figure 3 14 to read...

Страница 29: ...s The critical function of associating GATT characteristic with a peripheral is performed by the RN4870 scripting capability The RN4870 can be configured manually by following the instructions in Sect...

Страница 30: ...4 1 RN4870 MODULE SETTINGS CONFIGURATION 4 3 SENSOR BOARD GATT SERVICE The data from the RN4870 peripheral IO are stored in the characteristics of a custom GATT service accessed by the Sensor Board B...

Страница 31: ...SENSOR BOARD GATT SERVICE DECLARED IN RN4870 Figure 4 2 illustrates that a custom GATT service has been created in the RN4870 module A 16 bit handle is assigned to each characteristic where each char...

Страница 32: ...is displayed in Section D 1 3 Sensor Board Script It can be copied to the clipboard and pasted in UART using TeraTerm Similarly the PC Utility can load it into RN4870 To load the Sensor board script m...

Страница 33: ...URE 4 4 COMPLETED SENSOR BOARD SCRIPT f Enter command R 1 to reboot the RN4870 module After the reboot the Sensor board is ready to use The script event handlers can be seen on the TeraTerm display as...

Страница 34: ...igure 4 5 FIGURE 4 6 BLESENSORAPP ICON The BLESensorApp requires the Sensor board to be configured as described in Section 4 2 4 4 1 Ensure that the Sensor board is attached to the RN4870 PICtail as s...

Страница 35: ...e BLESensorApp where the App updates the Graphical User Interface GUI BLE data can also be transferred from the BLESensorApp to the RN4870 module and later processed by the script to write a received...

Страница 36: ...of the extracted folder include the RN4870 71 Provision Utility executable the RN4870 71 Provision Utility Help files and the example configuration XML files This utility requires the MCP2200 USB UAR...

Страница 37: ...ision options for the RN4870 module are provided Choose the RN4870_Sensors_Demo_1 xml XML file from the Provision File drop down menu as shown in Figure 4 10 FIGURE 4 10 CONFIGURATION UTILITY SELECT X...

Страница 38: ...G MODULE 10 After the provisioning process is completed an information dialog window pops up to inform about the successful provisioning of the RN4870 module Refer to Figure 4 12 FIGURE 4 12 CONFIGURA...

Страница 39: ...T The PICtail interface can also be used to access the UART and the GPIOs on the RN4870 71 module 5 2 USING BM7X CONFIGURATION LIBRARY WITH PICtail BOARD The RN4870 71 PICtail plugs into the Explorer...

Страница 40: ...put port available on the Explorer Development board FIGURE 5 1 EXPLORER 16 DEVELOPMENT BOARD WITH RN4870 PICtail PLUS FIGURE 5 2 EXPLORER 16 DEVELOPMENT BOARD WITH RN4870 PICtail PLUS Note On the Exp...

Страница 41: ...RN4870 71 configuration by inserting break points into the work space or by optionally using the debug UART port 2 Download and install the BtChat_V1 0 3 apk file on the Android device from the BM7x...

Страница 42: ...RN4870 71 PICtail PICtail Plus Daughter Board User s Guide DS50002547A page 42 2016 Microchip Technology Inc NOTES...

Страница 43: ...ing steps 1 Download the firmware zip file from the product web page and extract the con tents The zip file contains the isupdate exe utility and a folder including the firmware images 2 Connect the P...

Страница 44: ...ick the Disconnect button to close the COM port The port disconnect mes sage is displayed as indicated in Figure A 2 FIGURE A 2 DISCONNECT ISUPDATE COM FROM MODULE 9 Set SW7 to the 1 position for Appl...

Страница 45: ...Appendix B Schematics and BOM B 1 INTRODUCTION This appendix provides the schematics and the Bill of Materials BOM for the RN487x PICtail PICtail Plus Daughter board RN4870 PICtail Schematic RN4870 P...

Страница 46: ...P31 P32 P33 P34 P35 P02 RB2 SS1 AN2 1 RF2 U1RX_E 2 RF6 SCK1 3 RF3 U1TX_E 4 RF7 SDI1_E 5 RG2 SCL1 6 RD0 RF8 SDO1_E 7 RG3 SDA1 8 GND 9 GND 10 RB0 AN0 11 RB1 AN1 12 RB3 AN3 13 RB4 AN4 14 GND 15 GND 16 R...

Страница 47: ...103 08 L D 3 J2 J3 J10 CON HDR 2 54 Male 2x4 Gold 5 84MH TH VERT Samtec TSW 104 08 L D 1 J4 CON HDR 2 54 Male 1x6 Gold 5 84MH TH VERT FCI 68001 106HLF 1 J8 CON HDR 2 54 Male 2x14 Gold 5 84MH TH R A Su...

Страница 48: ...SW6 SWITCH TACTILE PUSH ON OFF 6 PIN ROKI ELECTRONICS CO LTD PS07 22L PF 1 SW7 SWITCH DIP 1 SPST 24V 25 mA 418117270901 SMD Wurth Electronics Inc 4 18117E 11 1 X1 CRYSTAL 12MHz 8 pF SMD NX3225SA NDK N...

Страница 49: ...16 17 18 19 20 21 22 23 24 25 26 27 28 HDR 2 54 Male 2x14 JP14 BLUE LED1 P0_0 11 RST 10 P2_7 15 GND 13 GND 2 P1_2 3 UART_TX 8 P1_6 6 P2_0 16 UART_RX 7 P1_7 5 P1_3 4 P3_6 9 BT_RF 1 VBAT 14 P0_2 12 51...

Страница 50: ...1R 10 1 J1 CON HDR 2 54 Male 2x3 Gold 5 84MH TH VERT Samtec TSW 103 08 L D 4 J2 J3 J10 J14 CON HDR 2 54 Male 2x4 Gold 5 84MH TH VERT Samtec TSW 104 08 L D 2 J11 J13 CON HDR 2 54 Male 1x5 Tin 5 84MH TH...

Страница 51: ...M RT C K Components RS 282G05A3 SM RT 1 SW6 SWITCH TACTILE PUSH ON OFF 6 PIN ROKI ELECTRONICS CO LTD PS07 22L PF 1 SW7 SWITCH DIP 1 SPST 24V 25 mA 418117270901 SMD Wurth Electronics Inc 418117270901 1...

Страница 52: ...3386P 1 203TLF 1 R2 RES TKF 12k 1 1 10W SMD 0603 Yageo RC0603FR 0712KL 1 R3 RES TKF 100R 1 1 10W SMD 0603 Panasonic ERJ 3EKF1000V 1 S1 SENSOR PHOTOCELL 27 60KOHM Advanced Photonix Inc PDV P8104 1 SW1...

Страница 53: ...service On the other hand devices that acquire data from their peer are called Client Each service and its characteristics can be identified by their Universally Unique Iden tifier UUID The UUID can b...

Страница 54: ...be performed using RN4870 CHR and CUR commands Notifications and Indications are unsolicited updates sent from the GATT server to the GATT client The GATT client must enable the Notification and Indic...

Страница 55: ...GATT service RN4870 Module Settings RN4870 Sensor Board GATT Service Sensor Board Script D 1 1 RN4870 Module Settings WP WC PZ S RN4870 SR 4040 SS 80 SW 01 00 SW 02 00 SW 03 00 SW 04 09 R 1 D 1 2 RN4...

Страница 56: ...SM 2 0000 SM 1 0002 0078 FUNC1 FUNC1 1 1 PM1 PM2 DISCON SM 1 0000 SM 2 0000 SM 3 0000 R 1 CONN SM 1 0000 SM 2 0000 SM 3 001A TMR1 IA Z IA FF CD00FE14AD11CF40063F11E5BE3E0002A5D5C51B000C000D SM 2 000F...

Страница 57: ...7 5980 5118 China Xian Tel 86 29 8833 7252 Fax 86 29 8833 7256 ASIA PACIFIC China Xiamen Tel 86 592 2388138 Fax 86 592 2388130 China Zhuhai Tel 86 756 3210040 Fax 86 756 3210049 India Bangalore Tel 91...

Страница 58: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip RN 4870 SNSR RN 4871 PICTAIL...

Отзывы: