Home
BlueNRG development kits
Contents
1. 38 kyy DoclD025464 Rev 2 3 39 Getting started UM1686 1 1 4 39 Getting started This section describes all the software and hardware requirements for running the BlueNRG GUI utility as well as the related installation procedure STEVAL IDB002V1 kit contents This kit is composed of the following items e 1 development motherboard e 1 BlueNRG daughterboard s 12 4 GHz Bluetooth antenna e 1USB cable Figure 1 BlueNRG kit motherboard with daughterboard connected STEVAL IDB002V1 d DoclD025464 Rev 2 UM1686 Getting started 1 2 STEVAL IDB003V1 kit This kit is composed of the following items 1 USB dongle Figure 2 STEVAL IDB003V1 BlueNRG USB dongle 1 3 System requirements The BlueNRG graphical user interface utility has the following minimum requirements PC with Intel or AMD processor running one of the following Microsoft operating systems Windows XP SP3 Windows Vista Windows 7 At least 128 Mb of RAM 2 USB ports 40 Mb of hard disk space available Adobe Acrobat Reader 6 0 or later 1 4 BlueNRG development kit setup Extract the content of the BlueNRG_DK_ x x x Setup zip file into a temporary directory Launch the BlueNRG DK x x x Setup exe file and follow the on screen instructions Note EWARM Compiler 6 60 version is required for building the BlueNRG_DK_x x x demonstration applications d Doc
2. 10 2 1 6 JTAG connector 10 2 1 7 LEDS AE aar dads ee dE Vege ae dis ended Bc AER e 10 2 1 8 Daughterboard interface 10 2 2 BlueNRG daughterboard 11 2 2 1 Current measurements 12 2 2 2 Hardware setup 12 2 2 3 STM32L preprogrammed application 13 2 3 STEVAL IDB003V1 USB dongle 13 2 3 1 Microcontroller and connections 13 2 3 2 SWD interface 15 2 3 3 RF CONMCCION A on Midd diet ae bbs ddd bho wha tees 16 2 3 4 PUSH DUTLONS AI Aa Ar ETS ed nae 17 2 3 5 User LEDS sa gece ana dees he Sms Sd Ge ee Ee Sa en a en Ga eae 17 2 3 6 Hardware setup 17 2 3 7 STM32L preprogrammed application 17 3 GUI software description 18 3 1 Requirements 18 3 2 The BlueNRG graphical user interface eee 18 3 2 1 GUImainwindow 19 3 2 2 TOOIS eegen Ca a ee EE E en ee 21 2 39 DoclD025464 Rev 2 ky UM1686 Contents 4 Programming with BlueNRG network processor 24 4 1 Requirements
3. 24 4 2 Software directory structure 25 5 BlueNRG sensor profile demo 26 5 1 Supported platforms 27 5 2 BlueNRG app for smartphones 27 5 3 BlueNRG sensor profile demo connection with a central device 28 5 3 1 Initialization 28 5 3 2 Add service and characteristics 28 5 3 3 Set security requirements 29 5 3 4 Enter connectable mode 29 5 3 5 Connection with central device 29 6 BlueNRG chat demo application 31 6 1 Supported platforms 31 6 2 BlueNRG chat demo application peripheral amp central devices 31 6 2 1 initialization a Na eed ee ede eee ES ape naa ebay eee aed 32 6 2 2 Add service and characteristics 32 6 2 3 Set security requirements 33 6 2 4 Enter connectable mode 33 6 2 5 Connection with central device 33 7 List oT acronyms lt sara are a RR RR ERRER en RR RRR a 35 8 Available board schematics 36 9 Revision history
4. Cr UM1686 N I life augmented User manual BlueNRG development kits April 2014 Introduction This document describes the BlueNRG development kits and related hardware and software components The BlueNRG is a very low power Bluetooth low energy BLE single mode network processor compliant with Bluetooth specifications core 4 0 The BlueNRG can act as master or slave There are two types of BlueNRG kits 1 BlueNRG development platform order code STEVAL IDBO02V 1 2 BlueNRG USB dongle order code STEVAL IDBO003V 1 The BlueNRG software package includes a graphical user interface application to control the BlueNRG through a simple ACI protocol DoclD025464 Rev 2 1 39 www st com Contents UM1686 Contents 1 Gettingstarted 4 1 1 STEVAL IDB002V1 kit contents 4 1 2 STEVAL IDBOO3V1I kit 5 1 3 System requirements 5 1 4 BlueNRG development kit setup 5 2 Hardware description 6 2 1 STEVAL IDB002V1 motherboard 6 2 1 1 Microcontroller and connections 7 2 1 2 POWER IA AA eget ded ka 9 2 1 3 SE EE AA pase enn A a a 10 2 1 4 Extension connector 10 2 1 5 Push buttons and joystick
5. orcsa _ BLUEHCLGAPINT e 1 09 56 38 207 HCI COMMAND COMPLETE vat WAA eee 2 095638956 HCLRESET OOL Peripheral O01 Peripheral 0302 Broadcaster 00 3 09 56 38 970 HCI COMMAND COMPLETE 4 09 56 38 970 EVT_BLUE INITIALIZED 6 09 56 41 299 HCI COMMAND COMPLETE 8 09 57 05 510 HCI COMMAND COMPLETE 10 09 57 13 154 HCI COMMAND COMPLETE L SS d The BlueNRG GUI main window is characterized by different zones Some of these zones can be resized Port and interface selection The uppermost zone allows the user to open the COM port associated to the BTLE controller HCI commands The HCI Commands tab contains a list of all the available HCI commands Commands can be filtered by checking unchecking boxes under the filter section After clicking on one of the commands all the packet fields will be displayed on the command packet table in the upper right section of the tab see Figure 8 DoclD025464 Rev 2 19 39 GUI software description UM1686 Figure 8 Command packet table ACI Commands BLUEHCI GATT_INIT Command Packet BLUEHCI GATT ADD SERVICE BLUEHCI GATT INCLUDE SERVICE D Literal Z Parameter Value Info BLUEHCI_GATT_ADD_CHAR BLUEHCI_GATT_ADD_CHAR_DESC 0x05 BLUEHCI_GATT_UPD_CHAR_VAL BLUEHCI_GATT_DEL_CHAR BLUEHCI GATT DEL SERVICE BLUEHCI GATT DEL INC SERVICE m J D Filter E SELECT ALL E Gap V GATT HAL
6. LEDs D2 D3 2 3 1 Microcontroller and connections d The board utilizes an STM32L151CBU6 which is an ultra low power microcontroller with 128 KB of Flash memory 16 KB of RAM 32 bit core ARM cortex M3 4 KB of data EEPROM RTC timers USART IC SPI ADC DAC and comparators The microcontroller is connected to various components such as buttons LEDs and connectors for external circuitry The following table shows which functionality is available on each microcontroller pin DoclD025464 Rev 2 13 39 Hardware description UM1686 Table 4 MCU pin description versus board function Board function Pin name Pin num LEDs BlueNRG Buttons USB SWD VLCD 1 VBAT PC13 2 PC14 3 PC15 4 OSC_IN 5 OSC_OUT 6 NRST 7 VSS_A 8 VDD_A 9 PAO 10 PA1 11 Button SW2 PA2 12 PA3 13 PA4 14 PA5 15 PA6 16 PA7 17 PBO 18 Led D2 PB1 19 Led D3 PB2 20 Button SW1 PB10 21 BlueNRG_IRQ PB11 22 VSS1 23 VDD1 24 PB12 25 SPI2 CS PB13 26 SPI2_CLK PB14 27 SPI2_MISO PB15 28 SPI2 MOSI PA8 29 PAQ 30 EEPROM_CS PA10 31 PA11 32 USB_DM 14 39 DoclD025464 Rev 2 er UM1686 Hardware description Table 4 MCU pin description versus board function continued Board function Pin name Se LEDs BlueNRG Buttons USB SWD PA12 33 USB_DP PA13 34 SWDIO VSS2 35 VDD
7. ORO 0805 between 1 3 H G so n Dei KR Solder a 10u 0805 between 1 2 Dm ow DN 0402 XTR wao vaars KEE 100 002 XM cs e _0402_COD L J wo vaar ee KI BE Zeg T o i l a Male Ometo Zei GSPG0210011215 d DoclD025464 Rev 2 Available board schematics UM1686 Figure 19 BlueNRG USB dongle schematic ayo oe 090 ans es ayo ayo ayo k ma macana ca en om vusonworgsen P L anr br DEE zovoans oe goe snids aus ams ano De zow ans AOS dor Ap HOL so ans zow ans MOL we K ayo marta ayo lS a vwooewdoso To Wo 090 p vw 006 uwo 90 vwooewdoso Le mas L H mas E Z S S E sowas oop 4 1 SIN SU aes EN Es S ST eelerer oon IY oeren Ca ayo den aan a acho EES E T ano ATIWA P E S ayo ayo zoro ans Lemos ayo INE se aie ania ane d wei ugo ngi _F o me a GE ano oe su aaa EF ano L Ase MEET i mk zeen s i dazre fenba zovoans razi Tag oe anog ssveng Nee oa e Ze 480 w d i Siga 480 oke Y k
8. Press and hold SW1 button Plug the USB dongle on a PC USB port The orange LED D3 will start to blink Use BlueNRG GUI to Flash the device with a new firmware Tools gt Flash Motherboard FW The BlueNRG graphical user interface This section describes the main functions of BlueNRG GUI application You can run this utility by clicking on the BlueNRG GUI icon on the Desktop or under Start STMicroelectronics BlueNRG DK X X X BlueNRG GUI d DoclD025464 Rev 2 UM1686 GUI software description 3 2 1 4 GUI main window Figure 7 BlueNRG GUI main window ee CC ER E BlueNRG GUI v1 4 0 _ File Tools Help ACI Commands Reset HCIREAD_LOCAL_SUPPORTED_COMMANDS Command Packet HCI READ LOCAL SUPPORTED FEATURES 5 See Value Literal HCI READ BD ADDR a HCI READ RSSI HCILE SET EVENT MASK Det HCILE READ BUFFER SIZE Peripheral Gi Peripheral 0302 Broadcaster 0303 Central 004 HCI LE READ LOCAL SUPPORTED FEATURE HICI LE SET RANDOM ADDRESS HICI LE SET ADVERTISING PARAMETERS HCI LE READ ADVERTISING CHANNEL TK E HCI LE SET ADVERTISING DATA hai m D Filter F SELECT ALL Wear Wear El hai W L2CAP V HCI Test V HCI Gear List V Update V Autoscroll Send SentfReceived Packets Packet Details N Time Type Parameter Value Literal Info 0 09 56 38 176 HCLREAD LOCAL VERSION INFORMATION
9. for the chat service Primary service The command will return the service handle in chatServHandle The TX characteristic is added using the following command on BLE Chat Server role device aci_gatt_add_char chatServHandle UUID_TYPE_128 charUuidTX 20 CHAR PROD NOTIFY ATTR_PERMISSION_NONE 0 16 1 amp TXCharHandle Where charUuidTX is the private characteristic UUID 128 bits allocated for the TX characteristic notify property The characteristic handle is also returned on TXCharHandle The RX characteristic is added using the following command on BLE Chat Server role device aci_gatt_add_char chatServHandle UUID TYPE 128 charUuidRX 20 CHAR_PROP_WRITE CHAR_PROP_WRITE_WITHOUT_RESP ATTR_PERMISSION_NONE GATT_SERVER_ATTR_WRITE 16 1 amp RXCharHandle Where charUuidRX is the private characteristic UUID 128 bits allocated for the RX characteristic write property The characteristic handle is also returned on RXCharHandle See ACI documentation for more information on these commands as well as those that follow d DoclD025464 Rev 2 UM1686 BlueNRG chat demo application 6 2 3 6 2 4 6 2 5 d Set security reguirements BlueNRG exposes a command that the application can use to specify its security requirements If a characteristic has security restrictions a pairing procedure must be initiated by the central in order to access that characteristic On BLE chat demo a fixed pin 1
10. in the software package is a graphical user interface that can be used to interact and evaluate the capabilities of the BlueNRG network processor This utility can send standard and vendor specific HCI commands to the controller and receive events from it It lets the user configure each field of the HCI command packets to be sent and analyzes all received packets In this way BlueNRG can be easily managed at low level Requirements In order to use the BlueNRG GUI make sure you have correctly set up your hardware and software BlueNRG GUI installed The STM32L in the STEVAL IDBO02V1 kit has been preprogrammed with a demo application see Section 5 Hence new firmware must be loaded into the STM32L Firmware images can be found within the firmware folder The firmware image that must be programmed is BlueNRG_VCOM hex The GUI has the ability to Flash new firmware In order to download binary images into the internal Flash of the STM32L the microcontroller must be put into a special DFU device firmware upgrade mode To enter DFU mode 1 BlueNRG development platform STEVAL IDB002V 1 Power up the board Press and hold USER button Reset the board using RESET button keep USER button pressed while resetting The orange LED DL2 will start to blink Release USER button Use BlueNRG GUI to Flash the device with new firmware Tools gt Flash motherboard FW 2 BlueNRG USB Dongle order code STEVAL IDBO03V 1
11. kits are preprogrammed with the sensor profile demo firmware If the development board has been flashed with another firmware it can be programmed with the correct firmware Refer to Section 4 1 for the programming procedure using the device firmware upgrade feature and BlueNRG GUI The correct pre compiled firmware can be found inside firmware folder SensorDemo hex The source file for the demo is inside the project folder This app enables notifications on the acceleration characteristic and displays the value on the screen Data from environmental sensors are also periodically read and displayed DoclD025464 Rev 2 27 39 d BlueNRG sensor profile demo UM1686 5 3 5 3 1 5 3 2 28 39 Figure 14 BlueNRG app Locked SIM 12 12 Z C l Back Accel Temp RSSI Back Accel Temp RSSI Back Accel Temp RSSI ya D 1 Sa X EE ky SD er Z GN a lad 9 CO EB Scan L Scan L Scan L BlueNRG sensor profile demo connection with a central device This section describes how to interact with a central device while BlueNRG is acting as a peripheral The central device can be another BlueNRG acting as a master or any other Bluetooth smart or smart ready device First BlueNRG must be set up In order to do this a series of ACI command need to be sent to the processor Initialization BlueNRG s stack must be correctly initialized before establishing a connection with anothe
12. 1 32 PB12 33 DB CSN PB13 34 DB_SCLK PB14 35 DB_sDo PB15 36 Dp Spull PC6 37 PUSH BTN PC7 38 DB 1000 PC8 39 DB 1010 PC9 40 DB 1020 PA8 41 JOY LEFT PA9 42 JOY CENTER 8 39 DoclD025464 Rev 2 er UM1686 Hardware description Table 1 MCU pin description versus board function continued Board function Pin name ba SES e pand Accelerometer eae USB TAG n PA10 43 JOY_UP PA11 44 USB_DM PA12 45 USB_DP PA13 46 JTMS 16 VSS 2 47 VDD 2 48 PA14 49 JTCK 14 PA15 50 JTDI 12 PC10 51 DB 103 IRQ PC11 52 DB_PIN1 PC12 53 DB_PIN2 PD2 54 LED3 PB3 55 JTDO 10 PB4 56 JNTRST 8 PB5 57 TSEN_INT PB6 58 I2C1_SCL PB7 59 I2C1 SDA BOOTO 60 PB8 61 4 PB9 62 6 VSS 3 63 VDD 3 64 1 These lines are also available on the test point row 2 1 2 Power The board can be powered either by the mini USB connector CN1 A in Figure 3 or by 2 AAA batteries To power the board through USB bus jumper JP1 must be in position 1 2 as in Figure 3 B To power the board using batteries 2 AAA batteries must be inserted in the battery holder at the rear of the board and jumper JP1 set to position 2 3 When the board is powered the green LED DL6 is on C If needed the board can be powered by an external DC power supply Connect the positive output of the power supply to the central pin of JP1 pin 2 and ground to one of the four test point connectors
13. 2 36 PA14 37 SWCLK PA15 38 PB3 39 SWO PB4 40 PB5 41 PB6 42 PB7 43 BOOTO 44 PB8 45 PB9 46 VSS 3 47 VDD 4 48 2 3 2 SWD interface d The SWD interface is available through the J2 pins The SWD interface allows programming and debugging of the STM32L microcontroller on the board using an in circuit debugger and programmer like the ST LINK V2 In Figure 5 the connection scheme illustrating how to connect the ST LINK V2 with the board pins is shown Figure 5 SWD connection scheme with ST LINK V2 v 19 171513 119 75 3 1 0025059000 D D DB D D D D D G 20 181614 1210 8 6 4 2 DoclD025464 Rev 2 15 39 Hardware description UM1686 2 3 3 16 39 The signals available on the STEVAL IDBO03V1 are GND VDD nRESET SWDIO SWO TRACE 6 SWCLK ar WN gt The connection to the ST LINK V2 interface is given in the table below as shown in Figure 5 Table 5 SWD connection Signal name EADS Sn ST LINKIV2 pin number pin number SCH 1 14 6 VDD 2 211 nRESET 3 15 SWDIO 4 7 SWO TRACE 5 13 SWCLK 6 9 RF connector The STEVAL IDBO03V1 provides two different RF connections antenna chip antenna default configuration and UFL connector Although the default configuration allows communication on air it can be useful to switch to the UFL connector in order to connect the STEVAL IDB003V1 to RF equipment such as a spectrum analyzer or RF signal generator To switch from
14. 23456 is used as follows aci_gap_set_auth_requirement MITM_PROTECTION_REQUIRED OOB_AUTH_DATA_AB SENT NULL 7 16 USE FIKED PIN FOR PAIRING 123456 BONDING Enter connectable mode On BLE chat server role device uses GAP ACI commands to enter into general discoverable mode aci_gap_set_discoverable ADV_IND 0 0 PUBLIC ADDR NO WHITE LIST USE 8 local name 0 NULL 0 0 The local_name parameter contains the name that will be present in advertising data as described in the Bluetooth core specification version 4 0 Vol 3 Part C Ch 11 Connection with central device Once the BLE chat server role device is put in a discoverable mode it can be seen by the BLE chat client role device in order to create a Bluetooth low energy connection On BLE chat client role device uses GAP ACI commands to connect with the BLE chat server role device in advertising mode aci_gap_create_connection 0x4000 0x4000 PUBLIC ADDR bdaddr PUBLIC ADDR 9 9 0 60 1000 1000 where bdaddr is the peer address of the BLE chat client role device Once the 2 devices are connected the user can set up a serial terminal and type into each of them The typed characters will be respectively stored in 2 buffers and upon pressing the keyboard return key BLE communication will work as follows 1 On BLE chat server role device the typed characters will be sent to BLE chat client role device by notifying the TX characteristic that has been pre
15. 3 slave master 8 connections small GATT database RAM2 on during sleep Change HS startup time parameter This parameter control the time offset between the wake up of the device and the start of RX TX phase Must be big enough to let the device be ready to transmit or receive after wake up from sleep This time depends on the startup time of the high speed crystal Change sleep clock accuracy It must reflect the actual clock accuracy depending on the low speed oscillator or crystal in use View registers that are written into the radio View change date to distinguish different versions of configurations Read IFR content from BlueNRG Write configuration into BlueNRG IFR Flash motherboard firmware The BlueNRG GUI embeds an utility that allows to Flash a firmware into the STM32L microcontroller on the motherboard without a JTAG SWD programmer This utility uses a bootloader that has been programmed in the first 12 KB of the Flash Any application that wants to be programmed into the STM32L by this tool must consider that the lower area of the Flash is used by the bootloader C Two precautions must be taken for any firmware 1 change memory regions in linker script vector table and Flash must start at 0x08003000 2 Change the vector table offset NVIC_SetVectorTable DoclD025464 Rev 2 ky UM1686 GUI software description OTA bootloader OTA bootloader is a tool that allows to Flash new firmware into th
16. E LE Ep NOLINaHSna zn ONG ZMS IMS L GE vosamns ano zovo ans ON HNIA Ins nes mee z J e sn wo L SEN AM el ng wa L zovo ans EE d aha e ws zovo ans wa Gan EEN L z San ano L lt en mm og z going zesn T Going zesn AS gan da aj Mr aa asn men vasn Ir aha aaa en D D K WOUdAA 8 ASN abejs WEW Jomod suong Jor spa Joer 1009 gt OMS zort Tuma erase Keyed n iann EE T RI ayo me am zme T ee ee D aa a zna ans zoro ans 5 Loge 1n6oso_ L ven zoroaws D Amt AOL Z0 ONS AML AOL Go ONS AML AOL pot Aen ei wei voor e pot 0001 920 a ei K 620 m a Gs ano ano ano ano ayo elvan Zeen ivan ayo ns Ne La Ku TE aan Ma ro IS zopo OWS zovo ans zovo ans ee we zoo ane E toro are Foe di KE ar aroi Y Scoot TE WI wi ar WA sen KC E 029 D I D I D ugo 95 3477 een LL Zo I C E L L L ereer zeien z wap a t t t T Vaan T GH Zon Fan aa H aa v aaf a aaf a aa a aai a PPP suste 09995009 ano 92922999 RSS ano mwa ve Le aye Bars ges d SG kuti mer gagged od LLS3L EH 9921517288 Ivv DUI IJS Ee 5555 rigs ENE Dass Ces SIT weng WIES u 38058 taursiva La aat uasn 8 alaka WEEN CGALNQOW LON ge del ve 25550449 CRU OH ads YAI Wa Sai 8 EE doesn ae zoroans zo E ens Boo eng L araa KS AE 8 CS waasi nsu k zo ESES P loes gt s aa z More bo 25355298 Z zr fed 5 Loe so woudaa LNV ayo ayo mer zy FA hapo Ce a d KEERdA le a rat S Sa e A S 4 Irano r orga D las ono f aada t ras ae mes UE Leen G E s G
17. SIE HCI Test HCI The command packet table contains four columns e Parameter name of the packet field as they are named in volume 2 part E of Bluetooth specification e Value field value represented in hexadecimal format right click on a cell to change its representation format e Literal meaning of the current field value e Info description of the corresponding field Only the yellow cells of this table can be modified by the user The Parameter Total Length is fixed or automatically calculated after modifying cell content After the fields have been modified if required the command can be sent using the Send button HCI Packet history and details At the bottom of the main window two tables show packets sent to and received from the BTLE controller as well as other events The left table sent received packets holds a history of all packets see Figure 9 The right one packet details shows all the details of the selected packet as is done in the command packet table Figure 9 Figure 9 Packet history and details Sent Received Packets Packet Details Time Type Parameter Value Literal Info Ox 11 53 31 305 HCI COMMAND COMPLETE Dx Ox 0Ox1009 Ox 0x554433221 100 Double clicking on a row of the sent received packets table shows the raw packet d 20 39 DoclD025464 Rev 2 UM1686 GUI software description Figure 10 Raw packet du
18. SOLE RISK EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS PRODUCTS FORMALLY ESCC QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2014 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ky DoclD025464 Rev 2 39 39
19. antenna to UFL connector capacitor C10 must be removed and capacitor C42 must be soldered To restore the default configuration and use the antenna capacitor C42 must be removed and capacitor C10 must be soldered Both capacitors C10 and C42 have the same value 56 pF In Figure 6 the two pads for C10 and C42 are shown together with the chip antenna and UFL connector d DoclD025464 Rev 2 UM1686 Hardware description Figure 6 RF connector scheme UFL Connector C42 C10 Antenna 2 3 4 Push buttons For user interaction the board has two buttons both available to the application BW SW2 Note SWT is the DFU button The BlueNRG USB dongle is preprogrammed with a DFU application allowing upgrades to the STM32L firmware image through USB and using the BlueNRG GUI To activate the DFU press button SW1 and plug the BlueNRG USB dongle into a PC USB port 2 3 5 User LEDs Two LEDs are available _D2 red D3 orange Note When DFU is activated LED D3 is blinking 2 3 6 Hardware setup Plug the BlueNRG USB dongle into a PC USB port 2 3 7 STM32L preprogrammed application d The STM32L on the STEVAL IDB003V1 motherboard is preprogrammed with the BlueNRG_VCOM hex application when the kits components are assembled refer to Section 3 1 for the application description DoclD025464 Rev 2 17 39 GUI software description UM1686 3 3 1 3 2 18 39 GUI software description The BlueNRG GUI included
20. control an external board connected to the J4 and J5 connectors L in Figure 3 Table 1 shows which pins of the microcontroller are connected to the daughterboard Some of the lines are connected also to a row of test points M a The STM32L is preprogrammed with a DFU firmware that allows the downloading of a firmware image without the use of a programmer If an user accidentally erases DFU firmware he can reprogram it through STLink using the hex image DFU_Bootloader hex available on BlueNRG DK SW package firmware folder d DoclD025464 Rev 2 UM1686 Hardware description 2 2 d BlueNRG daughterboard The BlueNRG daughterboard Figure 4 included in the development kit is a small circuit board to be connected to the main board It contains the BlueNRG network processor in a QFN32 package an SMA antenna connector discrete passive components for RF matching and balun and small number of additional components required by the BlueNRG for proper operation see the schematic diagram in Figure 18 Figure 4 BlueNRG daughterboard E The main features of the BlueNRG daughterboard are BlueNRG low power network processor for Bluetooth low energy BLE with embedded host stack High frequency 16 MHz crystal Low frequency 32 kHz crystal for the lowest power consumption Balun matching network and harmonic filter SMA connector The daughterboard is also equipped with a discrete indu
21. ctor for the integrated high efficiency DC DC converter for best in class power consumption It is still possible to disable the DC DC converter In this case the following changes must be performed on the daughterboard see Figure 18 Remove inductor from solder pads 1 and 2 of D1 Place a 0 ohm resistor between pads 1 and 3 Move resistor on R2 to R1 For proper operation jumpers must be set as indicated in Figure 4 The following tables show the connections between the daughterboard and the main board DoclD025464 Rev 2 11 39 Hardware description UM1686 Table 2 Connections between BlueNRG board and motherboard on left connector Pin J4 motherboard J3 daughterboard 1 DB_PIN1 NC 2 3V3 3V3 3 DB_PIN3 NC 4 NC NC 5 GND GND 6 DB_PIN2 ns 7 GND GND 8 3V3 U2 pin 1 9 DB_SDN_RST RST 10 3V3 U2 pin 1 Table 3 Connections between BlueNRG board and motherboard on right connector Pin J5 motherboard J4 daughterboard 1 GND GND 2 GND GND 3 DB_CSN CSN 4 DB 103 IRQ IRQ 5 DB_SCLK CLK 6 DB 102 NC 7 DB SDI MOSI 8 DB 107 NC 9 DB SDO MISO 10 DB 100 NC 2 2 1 Current measurements To monitor power consumption of the entire BlueNRG daughterboard remove the jumper from U2 and insert an ammeter between pins 1 and 2 of the connector Since power consumption of the BlueNRG during most operation time is very low an accurate instrument
22. e STM32L of a remote device via Bluetooth low energy technology Refer to the dedicated application note for more information Get production data From tools menu there is the possibility to retrieve production information from the BlueNRG daughterboard This data is stored inside the EEPROM on the daughterboard Get version The Get version tool is used to retrieve the version of the BlueNRG GUI firmware VCOM on the STM23L and hardware and firmware version from the BlueNRG d DoclD025464 Rev 2 23 39 Programming with BlueNRG network processor UM1686 4 4 1 24 39 Programming with BlueNRG network processor The BlueNRG provides a high level interface to control its operation This interface is called ACI application controller interface The ACI is implemented as an extension to the standard Bluetooth HCI interface Since BlueNRG is a network processor the stack runs inside the device itself Hence no library is required on the external microcontroller except for profiles and all the functions needed to communicate with the BlueNRG SPI interface The development kit software includes sample code that shows how to configure BlueNRG and send commands or parsing events The source library is called simple BlueNRG HCI to distinguish it from the library for the complete profile framework not present in the software development kit This library is able to handle multiple profiles at the same time and supports several Bl
23. evelopment kit 2 1 1 Microcontroller and connections The board features an STM32L151RB microcontroller which is an ultra low power microcontroller with 128 KB of Flash memory 16 KB of RAM 32 bit core ARM cortex M3 4 KB of data EEPROM RTC LCD timers USART Ee SPI ADC DAC and comparators The microcontroller is connected to various components such as buttons LEDs and connectors for external circuitry The following table shows what functionality is available on each microcontroller pin Table 1 MCU pin description versus board function Board function Pin name Pin LEDs DB Buttons Accelerometer Temperature USB JTAG Pt connector joystick sensor conn VLCD 1 PC13 2 DB_SDN_RST PC14 3 3 PC15 4 5 OSC_IN 5 OSC_OUT 6 NRST 7 RESET 7 PCO 8 LED1 PC1 9 LED2 PC2 10 DB_PIN3 Kys DoclD025464 Rev 2 7 39 Hardware description UM1686 Table 1 MCU pin description versus board function continued Board function Pin name ba SES e Se Accelerometer eae USB TAG PC3 11 9 VSSA 12 VDDA 13 PAO 14 1 PA1 15 13 PA2 16 15 PA3 17 17 Vss_4 18 VDD 4 19 PA4 20 SPI1_NSS PA5 21 SPI1_SCK PAG 22 SPI1_MISO PA7 23 SPI1_MOSI PC4 24 LED4 PC5 25 LEDS PBO 26 JOY_DOWN PB1 27 JOY_RIGHT PB2 28 18 PB10 29 INT PB11 30 INT2 VSS_1 31 VDD_
24. firmware img 4 Press update to start the update procedure If the procedure completes with no errors the new firmware has been loaded into the BlueNRG internal Flash BlueNRG IFR To preserve BlueNRG s flexibility its firmware uses a table of configurable parameters This table resides in a sector of the Flash IFR BlueNRG IFR Tool can read and modify this portion of BlueNRG s Flash b In special cases a new BlueNRG BLE stack may require a new bootloader In such cases a special firmware must be loaded before flashing the new stack Refer to that particular firmware documentation for more info d DoclD025464 Rev 2 21 39 GUI software description UM1686 22 39 Figure 11 BlueNRG GUI IFR tool T lt BlueNRG IFR Stack Mode Mode 2 Large DB 1 connection HS Startup time 512 us Slave SCA 100 gt ppm Master SCA 100 ppm Z LS Crystal Period 0x190000 LS Crystal Freq 0x28F5C2 Cold Table Hot Table Reg Addr Value Reg Addr Value 1 oes 058 1 oac 053 2 gen OxA2 3 OGA 0x58 Day Month Year This tool allows to Load a configuration file Save the parameters into a configuration files Change stack mode Each mode has a different functionality Mode 1 slave master 1 connection only small GATT database RAM2 off during sleep Mode 2 slave master 1 connection only large GATT database RAM2 on during sleep Mode
25. hows the whole GATT database including the GATT and GAP services that are automatically added by the stack One of the acceleration service s characteristics has been called free fall characteristic This characteristic cannot be read or written but can be notified The application will send a notification on this characteristic with value equal to 0x01 if a free fall condition has been detected by the LIS3DH MEMS sensor the condition is detected if the acceleration on the 3 axes is near zero for a certain amount of time Notifications can be enabled or disabled by writing on the related client characteristic configuration descriptor The other characteristic exposed by the service gives the current value of the acceleration that is measured by the accelerometer The value is made up of six bytes Each couple of bytes contains the acceleration on one of the 3 axes The values are given in mg This characteristic is readable and can be notified if notifications are enabled Another service is also defined This service contains characteristics that expose data from some environmental sensors temperature pressure and humidity For each characteristic a characteristic format descriptor is present to describe the type of data contained inside the characteristic All of the characteristics have read only properties d An expansion board with LPS25H pressure sensor and HTS221 humidity sensor can be connected to the motherboard through the expan
26. ible to the other device Supported platforms The BlueNRG chat demo server amp client roles is supported on the BlueNRG development platform STEVAL IDB002V1 and on the BlueNRG USB dongle STEVAL IDB003V1 BlueNRG chat demo application peripheral amp central devices This section describes how two BLE chat devices server peripheral amp client central interact with each other in order to set up a point to point wireless chat communication DoclD025464 Rev 2 31 39 BlueNRG chat demo application UM1686 6 2 1 6 2 2 32 39 First BlueNRG must be set up on both devices In order to do this a series of ACI commands need to be sent to the processor Initialization BlueNRG s stack must be correctly initialized before establishing a connection with another Bluetooth LE device This is done with two commands e BLUEHCI GATT _INIT BLE Chat Server role BLUEHCI_GAP_INIT Role 0x01 peripheral BLE Chat Client role BLUEHCI_GAP_INIT Role 0x03 central Peripheral amp central BLE roles must be specified inside the GAP_INIT command See ACI documentation for more information on these commands and on those that follow Add service and characteristics The chat service is added on the BLE chat server role device using the following command aci_gatt add serv UUID TYPE 128 service uuid PRIMARY SERVICE 7 amp chatServHandle Where service_uuid is the private service UUID 128 bits allocated
27. ices described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN A SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS B AERONAUTIC APPLICATIONS C AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS AND OR D AEROSPACE APPLICATIONS OR ENVIRONMENTS WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE THE PURCHASER SHALL USE PRODUCTS AT PURCHASER S
28. in the range of few microamps may be required 2 2 2 Hardware setup Plug the BlueNRG daughterboard into J4 and J5 connectors as in Figure 1 Ensure the jumper configuration on the daughterboard is as in Figure 1 Connect the motherboard to the PC with an USB cable through connector CN1 Verify the PWR LED lights is on eO MN d 12 39 DoclD025464 Rev 2 UM1686 Hardware description 2 2 3 STM32L preprogrammed application The STM32L on STEVAL IDB002V1 motherboard is preprogrammed with the sensor demo application when the kits components are assembled refer to Section 5 for the application description 2 3 STEVAL IDB003V1 USB dongle The BlueNRG USB dongle allows users to easily add BLE functionalities to their PC by plugging it into a USB port The USB dongle can be used as a simple interface between the BlueNRG and a GUI application on the PC The on board STM32L microcontroller can also be programmed so the board can be used to develop applications that use the BlueNRG The board can be powered through the USB connector which can also be used for 1 0 interaction with a USB host The board also has two buttons and two LEDs for user interaction Below is a list of some of the main features that are available on the board see Figure 2 e BlueNRG network coprocessor e TM32L151CBU6 48 pin microcontroller s USB connector for power supply and I O e One row of pins with SWD interface e Chip antenna e Two user buttons SW1 SW2 e Two
29. ith the BlueNRG name will appear on the screen Tap on the box to connect to the device A list of all the available services will be shown on the screen Touching a service will show the characteristics for that service BlueNRG has added two standard services GATT Service 0x1801 and GAP service 0x1800 Try to read the characteristic from the service just added OxA001 The characteristic has a variable length attribute so you will not see any value Write a string into the characteristic and read it back e The first byte of the value is the AD Type In BlueNRG GUI the xHH notation is used to specify a byte in hexadecimal format inside a string DoclD025464 Rev 2 29 39 BlueNRG sensor profile demo UM1686 30 39 BlueNRG can send notifications of the characteristic that has been previously added with UUID 0xA002 after notifications have been enabled This can be done using the following command BLUEHCILGATT_UPD_CHAR_VALUE Service_Handle 0x0010 Char_Handle 0x0011 Val_Offset 0 Char_Value_Length 0x05 Char_Value hello Once this ACI command has been sent the new value of the characteristic will be displayed on the phone d DoclD025464 Rev 2 UM1686 BlueNRG chat demo application 6 6 1 6 2 d BlueNRG chat demo application The software development kit contains another example which implements a simple 2 way communication between two BlueNRG devices It shows a simple point to p
30. lD025464 Rev 2 5 39 Hardware description UM1686 2 2 1 6 39 Hardware description The following sections describe the components of the kits STEVAL IDB002V1 motherboard The motherboard included in the development kit allows testing of the functionality of the BlueNRG processor The board can be used as a simple interface between the BlueNRG and a GUI application on the PC The STM32L microcontroller on the board can also be programmed so the board can be used to develop applications using the BlueNRG A connector on the motherboard Figure 1 allows access to the JTAG interface for programming and debugging The board can be powered through a mini USB connector that can also be used for I O interaction with a USB Host The board includes sensors and buttons and a joystick for user interaction The RF daughterboard can be easily connected through a dedicated interface This is a list of some of the features that are available on the boards e TM32L151RBT6 64 pin microcontroller e Mini USB connector for power supply and I O e JTAG connector e RF daughterboard interface s One RESET button and one USER button s One LIS3DH accelerometer e One STLM75 temperature sensor e One joystick e 5LEDs e One PWR LED e One battery holder for 2 AAA batteries e One row of test points on the interface to the RF daughterboard d DoclD025464 Rev 2 UM1686 Hardware description Figure 3 Motherboard for the BlueNRG d
31. mp Raw Packet 0x01 0x0D 0x20 0x19 0x00 0 40 0x00 0x40 0x00 0x00 0x00 0x00 Ox00 0x00 0x00 0x00 0x00 0x06 0x00 0x80 0x0C 0x00 0x00 0x80 0 xOC 0x00 0x00 0xFF 0xFF Some events displayed in yellow cells can provide other information HCI packets sent towards the BTLE controller are displayed in gray cells while received packets are shown inside white cells The Sent received packets table can be cleared by clicking on clear list button Update and auto scrolling check boxes enable or disable updating and auto scrolling of the Sent received packets table while new packets are sent or received however information will still be printed 3 2 2 Tools The BlueNRG GUI has some functions that can be accessed through the tools menu These tools are described in this section BlueNRG updater This tool can be used to update the firmware inside the BlueNRG by using its internal bootloader VCOM firmware must be present on the STM32L and COM port must be open in order to use this function If new stack firmware requires a new bootloader version follow these 4 steps 1 Go to Tools gt BlueNGR updater 2 Check bootloader update 3 Select the new bootloader firmware img and press update procedure 4 Make sure the procedure successfully completes without errors Otherwise directly execute the following steps 1 Go to Tools gt BlueNGR updater 2 Uncheck bootloader update 3 Select the correct stack
32. oint wireless communication using the BlueNRG product This demo application exposes one service chat service The chat service contains 2 characteristics The TX characteristic the client can enable notifications on this characteristic When the server has data to be sent it will send notifications which will contain the value of the TX characteristic e The RX characteristic this is a writable characteristic When the client has data to be sent to the server it will write a value into this characteristic e The maximum length of the characteristic value is 20 bytes There are 2 device roles which can be selected through the specific EWARM workspace The Server that exposes the chat service BLE peripheral device The Client that uses the chat service BLE central device The application requires 2 devices to be programmed respectively with the 2 devices roles server and client The user must connect the 2 devices to a PC through USB and open a serial terminal on both with the following configurations Figure 15 Serial port configuration Baudrate 115200 bit sec Data bits 8 bit Parity None bit Stop bits 1 bit The application will listen for keys typed into one device and upon pressing the keyboard return key it will send them to the remote device The remote device will listen for RF messages and will output them in the serial port In other words anything typed in one device will be vis
33. on the motherboard TP1 TP2 TP3 and TP4 d DoclD025464 Rev 2 9 39 Hardware description UM1686 2 1 3 10 39 Sensors Two sensors are available on the motherboard LIS3DH an ultra low power high performance three axis linear accelerometer D in Figure 3 The sensor is connected to the STM32L through the SPI interface Two lines for interrupts are also connected STLM75 a high precision digital CMOS temperature sensor with I2C interface E in Figure 3 The pin for the alarm function is connected to one of the STM32L GPIOs Extension connector There is the possibility to solder a connector on the motherboard to extend its functionality F in Figure 3 16 pins of the microcontroller are connected to this expansion slot Table 1 Push buttons and joystick For user interaction the board has two buttons One is to reset the microcontroller while the other is available to the application There is also a digital joystick with 4 possible positions left right up down G in Figure 3 JTAG connector A JTAG connector on the board H in Figure 3 allows the programming and debugging of the STM32L microcontroller on board using an in circuit debugger and programmer such as the ST LINK V2 LEDs Five LEDs are available I in Figure 3 _DL1 green DL2 orange D red DL4 blue DLS yellow Daughterboard interface The main feature of the motherboard is the capability to
34. r Bluetooth LE device This is done with two commands BLUEHCI_GATT_INIT BLUEHCI_GAP_INIT Role 0x01 See ACI documentation for more information on these commands and on those that follow as well Peripheral role must be specified inside the GAP_INIT command Add service and characteristics BlueNRG s Bluetooth LE stack has both server and client capabilities A characteristic is an element in the server database where data are exposed A service contains one or more characteristics Add a service using the following command Parameters are provided only as an example BLUEHCI_GATT_ADD_SERVICE Service_UUID_Type 0x01 Service_UUID_16 0xA001 Service_Type 0x01 Max_Attributes_Records 0x06 The command will return the service handle eg 0x0010 A characteristic must now be added to this service This service is identified by the service handle BLUEHCI_GATT_ADD_CHAR Service_Handle 0x0010 Char_UUID_Type 0x01 Char_UUID_16 0xA002 Char_Value_Length 10 Char_Properties 0x1A Security_Permissions 0x00 GATT_Evt_Mask 0x01 Enc_Key_Size 0x07 Is_Variable 0x01 DoclD025464 Rev 2 ky UM1686 BlueNRG sensor profile demo 5 3 3 5 3 4 5 3 5 d With this command a variable length characteristic has been added with read write and notify properties The characteristic handle is also returned Char_Handle Set security requirements BlueNRG exposes a command that the application can use to specify its securit
35. rk processor 4 2 Software directory structure The project folder contains some sample code that can be used on the application processor to control the BlueNRG Platform dependent code is also provided for STM32L1 platforms The example project provided in the package will run as is on the development kit The files are organized using the following folder structure Bluetooth LE Contains the code that is used to send ACI commands to the BlueNRG network processor It contains also definitions of BlueNRG events platform Contains all the platform dependent files These can be taken as an example to build applications that can be run on other platforms examples Contains source code that can be used as an example to build other applications that will use the Bluetooth technology with the BlueNRG Project files for IAR embedded workbench are also available d DoclD025464 Rev 2 25 39 BlueNRG sensor profile demo UM1686 5 BlueNRG sensor profile demo The software development kit contains an example which implements a proprietary Bluetooth profile the sensor profile This example is useful for building new profiles and applications that use the BlueNRG network processor This GATT profile is not compliant to any existing specification The purpose of this project is simply to show how to implement a given profile This profile exposes two services acceleration service and environmental service Figure 13 s
36. s ae ated D onan so l ano an9 A Raag 921 piga LE TAn aa S E H omeen vw k isowzids 82 ae HOL LT J ZININ OLH EIOd F stane i Isu ounona ZI Gun E OF OIAMS SIUr ELvd ez EE EE ENK AE DOMS LE omszoweL oarr ead lt s k k k k D mee Zoro GINS ZOO ans zovo ans zovoans OMS GE ER S NOSO LE At AOL At door SS vo L Lo S bo k H Llelslgs d a x Leek E ano N S 8 Jan enig eBeHOA NOW JOJeIIDSO NOW 37 39 DoclD025464 Rev 2 Revision history UM1686 9 38 39 Revision history Table 7 Document revision history Added Section 7 List of acronyms Added Section 8 Available board schematics Minor text edits throughout the document Date Revision Changes 28 Nov 2013 1 Initial release Added reference to the STEVAL IDBO03V1 BlueNRG USB Dongle Added Section 6 BlueNRG chat demo application 24 Apr 2014 2 DoclD025464 Rev 2 d UM1686 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and serv
37. sion connector F in Figure 3 If the expansion board is not detected only temperature from STLM75 will be used 26 39 DoclD025464 Rev 2 ky UM1686 BlueNRG sensor profile demo Figure 13 BlueNRG sensor demo GATT database 3 0003 2A05 Service Changed start handle 0x0001 end handle 0xFFFF 4 0004 2902 Client Characteristic Configuration 0x0000 7 0007 2A00 Device Name bluenrg 9 0009 2A01 Appearance 0x0000 18 0012 23E78A0CF4A11E18FFC0002A5D5C51B Free Fall 0x00 19 0013 2902 Client Characteristic Configuration 0x0000 UUID 0 D 21 0015 340A1B80CF4B11E1AC360002A5D5C51B Acceleration 0x000000000000 22 0016 2902 Client Characteristic Configuration 0x0000 UU 25 0019 A32E5520E47711E2A9E30002A5D5C51B Temperature 0x0000 0075 2904 Characteristic Format format 0x0E exp 1 unit 0x272F n_sp 0x00 R 0x0000 3 001C CD20C480E48B11E2840B0002A5D5C51B Pressure 0x000000 0075 2904 Characteristic Format format 0x0F exp 5 unit 0x2780 n_sp 0x00 29 001F 01C50B60E48C11E2A0730002A5D5C51B Humidity 0x0000 31 2 0075 2904 Characteristic Format format 0x06 exp 1 unit 0x2700 n_sp 0x00 descr 0x0000 5 1 Supported platforms The BlueNRG sensor profile demo is supported only on the BlueNRG development platform STEVAL IDB002V1 5 2 BlueNRG app for smartphones An application is available for smartphones iOS and android that works with the sensor profile demo The development
38. uetooth GATT based profiles for BlueNRG Documentation on the ACI is provided in a separate document Figure 12 Profile framework structure Proximity FindMe HOGP Basic profile framework Requirements In order to communicate with BlueNRG network processor very few resources are needed by the main processor These are listed below SPI interface Platform dependent code to write read to from SPI A timer to handle SPI timeouts or to run Bluetooth LE Profiles Minimum requirements in terms of Flash and RAM space largely depend on the functionality needed by the application on the microprocessor that will run the code and on the compiler toolchain used to build the firmware On the STM32L Cortex M3 core the memory footprint for the code interfacing the BlueNRG requires few kilobytes of Flash and RAM typically 2 4 KB of Flash and 0 8 1 5 KB of RAM So a complete simple application like the BlueNRG sensor demo could require just 15 KB of Flash and 2 KB of RAM If using the complete BlueNRG profile framework the memory footprint is around 9 KB of code and 3 KB of data for just the ACI interface and the profile framework functions The memory required for the profiles can vary depending on the complexity of the profile itself For example code for HID over GATT host is around 6 KB while for heart rate monitor is around 2 3 KB d DoclD025464 Rev 2 UM1686 Programming with BlueNRG netwo
39. viously added after notifications have been enabled This can be done using the following command aci_gatt_update_char_value chatServHandle TXCharHandle 0 len tHalUint8 cmd j 2 On BLE chat client role device the typed characters will be sent to the BLE chat server role device by writing the RX characteristic that has been previously added This can be done using the following command aci_gatt_write_without_response connection_handle RX_HANDLE 1 len tHalUint8 cmd j Where connection_handle is the handle returned on connection creation as a parameter of the EVT_LE_CONN_COMPLETE event Once these ACI commands have been sent the values of the TX RX characteristics are displayed on the serial terminals DoclD025464 Rev 2 33 39 BlueNRG chat demo application UM1686 Figure 16 BLE chatclientexample Figure 17 BLE chat server example COM69 115200baud Tera Term cid biome So FT coM68 115200b00d Tee Tem File Edit Setup Control Window Help File Edit Setup Control Window Help hello See you tomorrow d 34 39 DoclD025464 Rev 2 UM1686 List of acronyms 7 List of acronyms Table 6 List of acronyms used in this document Term Meaning BLE Bluetooth low energy USB Universal serial bus Kys DoclD025464 Rev 2 35 39 Available board schematics UM1686 8 36 39 Available board schematics Figure 18 BlueNRG daughterboard schematic or a
40. y requirements If a characteristic has security restrictions a pairing procedure must be initiated by the central in order to access that characteristic Let s assume we want the user to insert a passcode during the pairing procedure BLUEHCIGAP_SET AUTH _REQUIREMENT MITM_Mode 0x01 OOB_Enable 0 OOB_Data 0 Min_Encryption_Key_Size 7 Max_Encryption_Key_Size 16 Use_Fixed_Pin 0 Fixed_Pin 123456 Bonding_Mode 1 Enter connectable mode Use GAP ACI commands to enter one of the discoverable and connectable modes BLUEHCI_GAP_SET_DISCOVERABLE Advertising_Type 0x00 Advertising_Interval_Min 0x800 Advertising_Interval_ Max 0x900 Own_Address_Type 0x00 Advertising_Filter_Policy 0x00 Local_Name_Length 0x08 Local Name x08BlueNRG Service_UUID_Length 0x00 Service_UUID_List 0x00 Slave_Connection_Interval_Min 0x0000 Slave_Connection_Interval_Max 0x0000 The Local Name parameter contains the name that will be present in advertising data as described in Bluetooth core specification version 4 0 Vol 3 Part C Ch 11 Connection with central device Once BlueNRG is put in a discoverable mode it can be seen by a central device in scanning Any Bluetooth smart and smart ready device can connect to BlueNRG such as a smartphone LightBlue is one of the applications in the Apple store for iPhone 4S 5 and later versions of Apple s iPhone Start the LightBlue application It will start to scan for peripherals A device w
Download Pdf Manuals
Related Search
Related Contents
Proyector digital Kalinka Optics Warehouse User Manual www.kalinkaoptics.com GUINEVERE® TS970T SOIRÉE® TS960T TSTT Copyright © All rights reserved.
Failed to retrieve file