UM2094 User manual Getting started with STEVAL-IDB007Vx, STEVAL-IDB008Vx and STEVAL-IDB009Vx evaluation boards Introduction The STEVAL-IDB007Vx (STEVAL-IDB007V1/STEVAL-IDB007V2) is an evaluation board based on BlueNRG-1 (QFN32 package). The STEVAL-IDB008Vx (STEVAL-IDB008V1/STEVAL-IDB008V2) is an evaluation board based on BlueNRG-2 (QFN32 package). The STEVAL-IDB009Vx (STEVAL-IDB009V1) is an evaluation board based on BlueNRG-2 (QFN48 package). BlueNRG-1 (QFN32 package) and BlueNRG-2 (QFN32 and QFN48 packages) are low power Bluetooth(R) smart systems-onchip compliant with the Bluetooth(R) specification and support master, slave and simultaneous master-and-slave roles. The document content is valid for the STEVAL-IDB007Vx, STEVAL-IDB008Vx and STEVAL-IDB009Vx platforms. Any specific difference is highlighted whenever it is needed. UM2094 - Rev 5 - November 2018 For further information contact your local STMicroelectronics sales office. www.st.com UM2094 Development platforms 1 Development platforms Figure 1. STEVAL-IDB007V1 development platform Figure 2. STEVAL-IDB007V2 development platform Figure 3. STEVAL-IDB008V1 development platform UM2094 - Rev 5 page 2/14 UM2094 Development platforms Figure 4. STEVAL-IDB008V2 development platform Figure 5. STEVAL-IDB009V1 development platform UM2094 - Rev 5 page 3/14 UM2094 Acronyms and abbreviations 2 Acronyms and abbreviations Table 1. List of acronyms UM2094 - Rev 5 Acronym Description BLE Bluetooth low energy DK Development kit SW Software USB Universal serial bus page 4/14 UM2094 Getting started 3 Getting started The evaluation board is preprogrammed with sensor profile firmware (BLE_SensorDemo.hex) which allows to set and establish a connection with a smartphone (iOS or Android) running a BlueNRG sensor application which works with the sensor profile firmware running on the STEVAL-IDB007Vx, STEVAL-IDB008Vx or STEVALIBD009Vx evaluation board. The sensor profile firmware implements a proprietary Bluetooth profile which exposes two services: acceleration and environmental service. The acceleration service contains the following characteristics: * Acceleration: it gives the current value of the acceleration detected by the MEMS sensor on the evaluation board. * Free fall characteristic: it allows detection of free-fall condition by the LSM6DS3 MEMS sensor on the evaluation board (the condition is detected if the acceleration on the 3 axes is near zero for a certain amount of time). The environmental service contains characteristics that expose data from some environmental sensors, such as temperature sensors. 3.1 Powering up the evaluation board running the sensor profile firmware (peripheral role) Two power options are available: * Batteries - To power the selected evaluation board using batteries, 2 AAA batteries must be inserted into the battery holder at the rear of the board, and jumper JP1 set to position 2-3 and jumper JP2 set to position 1-2 (Figure 6. Board power options). * USB - To power the selected evaluation board through USB, jumper JP1 must be in position 1-2 and jumper JP2 set to position 2-3 (Figure 6. Board power options ). Connect a USB cable to the micro-USB connector (Figure 6. Board power options) and to a PC USB port. Once powered, the evaluation board sensor profile firmware starts advertising, waiting for a smartphone to connect to it. UM2094 - Rev 5 page 5/14 UM2094 Install the BlueNRG app for smartphones (central role) Figure 6. Board power options 3.2 Install the BlueNRG app for smartphones (central role) * * 3.3 Run BlueNRG app for smartphones * * * UM2094 - Rev 5 Two versions (Android and iOS) of the smartphone sensor application are available for download on the specific web pages (Table 2. Reference information Android & iOS SensorApp). Install the smartphone SensorApp application on the selected smartphone. Launch the BlueNRG SensorApp application on the smartphone It starts scanning for the BlueNRG sensor peripheral. A device called "BlueNRG" appears on the screen (this is the STEVAL-IDB007Vx, STEVAL-IDB008Vx or STEVAL-IDB009Vx running the sensor profile firmware) Tap on the BlueNRG name to connect to the selected platform running the sensor profile firmware. The BlueNRG SensorApp application enables notifications on the acceleration characteristic and displays the received value on the screen. page 6/14 UM2094 Run BlueNRG app for smartphones Figure 7. Smartphone BlueNRG SensorApp acceleration notification * Data from environmental sensors are also periodically read and displayed. Figure 8. Smartphone BlueNRG SensorApp RSSI notifications UM2094 - Rev 5 page 7/14 UM2094 Software demonstration applications 4 Software demonstration applications * * * * * Note: UM2094 - Rev 5 In order to develop a software application for the STEVAL-IDB007Vx, STEVAL-IDB008Vx or STEVALIDB009Vx evaluation board, it is recommended to start with the reference demonstration applications provided within the BlueNRG-1_2 DK SW package for BlueNRG-1, BlueNRG-2 BLE stack v2.x family (STSW-BLUENRG1-DK) available on the STEVAL-IDB007Vx, STEVAL-IDB008Vx, STEVAL-IDB009Vx web pages, or the BlueNRG-1_V1 DK SW package for BlueNRG-1 BLE stack v1.x family (STSW-BNRG_V1DK), available on the STEVAL-IDB007Vx web page. Unzip the file, launch the related installer and follow installation steps. Wait for the package installation to complete. The Projects folder in DK SW package contains the available demonstration applications, IAR projects, sources and header files. IAR Embedded Workbench for ARM (EWARM) tool is needed for building and downloading software applications running on the BlueNRG-1, BlueNRG-2 microcontrollers. For a description of the available BlueNRG-1, BlueNRG-2 demonstration applications and supported platforms, refer to BlueNRG-1, BlueNRG-2 development kits user manual available on the related web page. The BLE_SensorDemo.hex prebuilt binary images for BlueNRG-1, BlueNRG-2 platforms are also provided within the DK software package, in the Firmware folder. Keil MDK-ARM and Atollic TrueStudio for ARM (GCC) toolchains projects are also available. page 8/14 UM2094 References 5 References Table 2. Reference information What UM2094 - Rev 5 Where Description BlueNRG-1 Bluetooth Low Energy wireless System on Chip BlueNRG-1 BlueNRG-1 device web page BlueNRG-2 Bluetooth Low Energy wireless System on Chip BlueNRG-2 BlueNRG-2 device web page Bluetooth Low Energy Specification https://www.bluetooth.org/en-us/specification/ adopted-specifications Bluetooth Low Energy specification web page Smartphone Android 4.3 Sensor App https://play.google.com/store/apps/details? id=com.st.blunrg Android 4.3 BlueNRG Sensor App web page Smartphone IoS Sensor App https://itunes.apple.com/us/app/bluenrg/ id705873549?l=it&ls=1&mt=8 IoS BlueNRG Sensor App web page STSW-BLUENRG1-DK STEVAL-IDB007V1, STEVAL-IDB007V2, STEVAL-IDB008V1, STEVAL-IDB008V2 and STEVAL-IDB009V1 web pages, Tools and Software section BlueNRG-1_2 DK SW package for BlueNRG_1, BlueNRG-2 BLE stack v2.x family, with reference demonstration applications STSW-BNRG_V1-DK STEVAL-IDB007V1 web page, Tools and Software section BlueNRG-1_V1 DK SW package for BlueNRG-1 BLE stack v1.x family, with reference demonstration applications STEVAL-IDB007V1 BlueNRG-1, Evaluation Tools section STEVAL-IDB007V1 platform web page STEVAL-IDB007V2 BlueNRG-1, Evaluation Tools section STEVAL-IDB007V2 platform web page STEVAL-IDB008V1 BlueNRG-2, Evaluation Tools section STEVAL-IDB008V1 platform web page STEVAL-IDB008V2 BlueNRG-2, Evaluation Tools section STEVAL-IDB008V2 platform web page STEVAL-IDB009V1 BlueNRG-2, Evaluation Tools section STEVAL-IDB009V1 platform web page UM2071 STEVAL-IDB007V1, STEVAL-IDB007V2, STEVAL-IDB008V1, STEVAL-IDB008V2 and STEVAL-IDB009V1 web pages BlueNRG-1, BlueNRG-2 Development Kits User Manual page 9/14 UM2094 Revision history Table 3. Document revision history Date Revision Changes 14-Jul-2016 1 Initial release. 19-Dec-2016 2 Updated STEVAL-IDB007V1 Bluetooth(R) low energy evaluation board on the cover page. 23-Oct-2017 3 Added: reference to STEVAL-IDB008V1 BlueNRG-2 evaluation platform, reference to BlueNRG-1_2 DK SW package for BLE stack v2.x family and reference to BlueNRG-1_V1 DK SW package for BLE stack v1.x family. 02-May-2018 4 27-Nov-2018 5 Updated Introduction. Added references to STEVAL-ID007V2 and STEVAL-IDB008V2 evaluation platforms. Updated title and Introduction. UM2094 - Rev 5 Added Section 1 Development platforms and references to the STEVAL-IDB009V1 evaluation platform (BlueNRG-2 QFN48 package). page 10/14 UM2094 Contents Contents 1 Development platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Acronyms and abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 3.1 Powering up the evaluation board running the sensor profile firmware (peripheral role) . . . . 5 3.2 Install the BlueNRG app for smartphones (central role) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.3 Run BlueNRG app for smartphones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4 Software demonstration applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 UM2094 - Rev 5 page 11/14 UM2094 List of tables List of tables Table 1. Table 2. Table 3. List of acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Reference information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 UM2094 - Rev 5 page 12/14 UM2094 List of figures List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. UM2094 - Rev 5 STEVAL-IDB007V1 development platform . . . . . . . . . . . . STEVAL-IDB007V2 development platform . . . . . . . . . . . . STEVAL-IDB008V1 development platform . . . . . . . . . . . . STEVAL-IDB008V2 development platform . . . . . . . . . . . . STEVAL-IDB009V1 development platform . . . . . . . . . . . . Board power options . . . . . . . . . . . . . . . . . . . . . . . . . . . Smartphone BlueNRG SensorApp acceleration notification Smartphone BlueNRG SensorApp RSSI notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 2 3 3 6 7 7 page 13/14 UM2094 IMPORTANT NOTICE - PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries ("ST") reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST's terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers' products. No license, express or implied, to any intellectual property right is granted by ST herein. Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product. ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces information previously supplied in any prior versions of this document. (c) 2018 STMicroelectronics - All rights reserved UM2094 - Rev 5 page 14/14