background image

DS50002547A-page 57

 2016 Microchip Technology Inc.

AMERICAS

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.com

Atlanta

Duluth, GA 
Tel: 678-957-9614 
Fax: 678-957-1455

Austin, TX

Tel: 512-257-3370 

Boston

Westborough, MA 
Tel: 774-760-0087 
Fax: 774-760-0088

Chicago

Itasca, IL 
Tel: 630-285-0071 
Fax: 630-285-0075

Dallas

Addison, TX 
Tel: 972-818-7423 
Fax: 972-818-2924

Detroit

Novi, MI 
Tel: 248-848-4000

Houston, TX 

Tel: 281-894-5983

Indianapolis

Noblesville, IN 
Tel: 317-773-8323
Fax: 317-773-5453
Tel: 317-536-2380

Los Angeles

Mission Viejo, CA 
Tel: 949-462-9523
Fax: 949-462-9608
Tel: 951-273-7800 

Raleigh, NC 

Tel: 919-844-7510

New York, NY 

Tel: 631-435-6000

San Jose, CA 

Tel: 408-735-9110
Tel: 408-436-4270

Canada - Toronto

Tel: 905-695-1980 
Fax: 905-695-2078

ASIA/PACIFIC

Asia Pacific Office

Suites 3707-14, 37th Floor
Tower 6, The Gateway
Harbour City, Kowloon

Hong Kong

Tel: 852-2943-5100
Fax: 852-2401-3431

Australia - Sydney

Tel: 61-2-9868-6733
Fax: 61-2-9868-6755

China - Beijing

Tel: 86-10-8569-7000 
Fax: 86-10-8528-2104

China - Chengdu

Tel: 86-28-8665-5511
Fax: 86-28-8665-7889

China - Chongqing

Tel: 86-23-8980-9588
Fax: 86-23-8980-9500

China - Dongguan

Tel: 86-769-8702-9880 

China - Guangzhou

Tel: 86-20-8755-8029 

China - Hangzhou

Tel: 86-571-8792-8115 
Fax: 86-571-8792-8116

China - Hong Kong SAR

Tel: 852-2943-5100 
Fax: 852-2401-3431

China - Nanjing

Tel: 86-25-8473-2460
Fax: 86-25-8473-2470

China - Qingdao

Tel: 86-532-8502-7355
Fax: 86-532-8502-7205

China - Shanghai

Tel: 86-21-3326-8000 
Fax: 86-21-3326-8021

China - Shenyang

Tel: 86-24-2334-2829
Fax: 86-24-2334-2393

China - Shenzhen

Tel: 86-755-8864-2200 
Fax: 86-755-8203-1760

China - Wuhan

Tel: 86-27-5980-5300
Fax: 86-27-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-80-3090-4444 
Fax: 91-80-3090-4123

India - New Delhi

Tel: 91-11-4160-8631
Fax: 91-11-4160-8632

India - Pune

Tel: 91-20-3019-1500

Japan - Osaka

Tel: 81-6-6152-7160 
Fax: 81-6-6152-9310

Japan - Tokyo

Tel: 81-3-6880- 3770 
Fax: 81-3-6880-3771

Korea - Daegu

Tel: 82-53-744-4301
Fax: 82-53-744-4302

Korea - Seoul

Tel: 82-2-554-7200
Fax: 82-2-558-5932 or 
82-2-558-5934

Malaysia - Kuala Lumpur

Tel: 60-3-6201-9857
Fax: 60-3-6201-9859

Malaysia - Penang

Tel: 60-4-227-8870
Fax: 60-4-227-4068

Philippines - Manila

Tel: 63-2-634-9065
Fax: 63-2-634-9069

Singapore

Tel: 65-6334-8870
Fax: 65-6334-8850

Taiwan - Hsin Chu

Tel: 886-3-5778-366
Fax: 886-3-5770-955

Taiwan - Kaohsiung

Tel: 886-7-213-7830

Taiwan - Taipei

Tel: 886-2-2508-8600 
Fax: 886-2-2508-0102

Thailand - Bangkok

Tel: 66-2-694-1351
Fax: 66-2-694-1350

EUROPE

Austria - Wels

Tel: 43-7242-2244-39
Fax: 43-7242-2244-393

Denmark - Copenhagen

Tel: 45-4450-2828 
Fax: 45-4485-2829

Finland - Espoo

Tel: 358-9-4520-820

France - Paris

Tel: 33-1-69-53-63-20 
Fax: 33-1-69-30-90-79

France - Saint Cloud

Tel: 33-1-30-60-70-00 

Germany - Garching

Tel: 49-8931-9700

Germany - Haan

Tel: 49-2129-3766400

Germany - Heilbronn

Tel: 49-7131-67-3636

Germany - Karlsruhe

Tel: 49-721-625370

Germany - Munich

Tel: 49-89-627-144-0 
Fax: 49-89-627-144-44

Germany - Rosenheim

Tel: 49-8031-354-560

Israel - Ra’anana 

Tel: 972-9-744-7705

Italy - Milan 

Tel: 39-0331-742611 
Fax: 39-0331-466781

Italy - Padova

Tel: 39-049-7625286 

Netherlands - Drunen

Tel: 31-416-690399 
Fax: 31-416-690340

Norway - Trondheim

Tel: 47-7289-7561

Poland - Warsaw

Tel: 48-22-3325737 

Romania - Bucharest

Tel: 40-21-407-87-50

Spain - Madrid

Tel: 34-91-708-08-90
Fax: 34-91-708-08-91

Sweden - Gothenberg

Tel: 46-31-704-60-40

Sweden - Stockholm

Tel: 46-8-5090-4654

UK - Wokingham

Tel: 44-118-921-5800
Fax: 44-118-921-5820

Worldwide Sales and Service

11/07/16

Содержание 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...

Отзывы: