AN4571 Application note



Similar documents
32F072BDISCOVERY. Discovery kit for STM32F072xx microcontrollers. Features. Description

UM1676 User manual. Getting started with.net Micro Framework on the STM32F429 Discovery kit. Introduction

SPC5-FLASHER. Flash management tool for SPC56xx family. Description. Features

AN4646 Application note

STSW-IDW002. Hands-On Training for SPWF01SC and SPWF01SA Wi-Fi modules. Features. Description

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Single LNB supply and control IC DiSEqC 1.X compliant with EXTM based on the LNBH29 in a QFN16 (4x4) Description

M24LRxx/CR95HF application software installation guide

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

DSL03. Low capacitance TVS for high speed lines such as xdsl. Description. Features. Complies with the following standards

EVAL6491HB. Demonstration board for L6491 gate driver with smartsd. Description. Features

UM1969 User manual. Getting started with STM32F746G discovery software development tools. Introduction

AN3332 Application note

AN3354 Application note

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

AN4108 Application note

STEVAL-IEG001V2. Smart real-time vehicle tracking system. Features

32F769IDISCOVERY. Discovery kit with STM32F769NI MCU. Features

STM32F4DISCOVERY. Discovery kit with STM32F407VG MCU. Features. Description

AN4128 Application note

STIEC45-xxAS, STIEC45-xxACS

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

SPC5-CRYP-LIB. SPC5 Software Cryptography Library. Description. Features. SHA-512 Random engine based on DRBG-AES-128

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

BD238. Low voltage PNP power transistor. Features. Applications. Description. Low saturation voltage PNP transistor

BD241A BD241C. NPN power transistors. Features. Applications. Description. NPN transistors. Audio, general purpose switching and amplifier transistors

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

Features. Description. Table 1. Device summary. Order code Marking Package Packing. STP110N8F6 110N8F6 TO-220 Tube

STPS5L60. Power Schottky rectifier. Description. Features

DDSL01. Secondary protection for DSL lines. Features. Description

Table 1. Absolute maximum ratings (T amb = 25 C) Symbol Parameter Value Unit. ISO C = 330 pf, R = 330 Ω : Contact discharge Air discharge

AN3998 Application note

ULN2801A, ULN2802A, ULN2803A, ULN2804A

Description SO-8. Table 1. Device summary. Order codes. SO-8 (tape and reel) TO-92 (Bag) TO-92 (Ammopack) TO-92 (tape and reel)

Android Driver s App Update Version 1.89 Samsung Galaxy Tab 4

AN2680 Application note

AN3265 Application note

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

AN2604 Application note

TN0023 Technical note

STLQ ma, ultra low quiescent current linear voltage regulator. Description. Features. Application

ST High voltage fast-switching NPN power transistor. Features. Applications. Description

How To Write To An Eeprom Memory On A Flash Memory On An Iphone Or Ipro Memory On Microsoft Flash Memory (Eeprom) On A Microsoft Microsoft Powerbook (Ai) 2.2.2

BD135 - BD136 BD139 - BD140

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

AN4156 Application note

2STBN15D100. Low voltage NPN power Darlington transistor. Features. Application. Description

AN3110 Application note

STTH1R04-Y. Automotive ultrafast recovery diode. Features. Description

AN3155 Application note

Description. Table 1. Device summary

AN2389 Application note

Description. IO and RF AGC. ASIC controller and power management. Carrier recovery loop. GPIO switch matrix. Lock indicator and monitoring DVBS2 FEC

EVL185W-LEDTV. 185 W power supply with PFC and standby supply for LED TV based on the L6564, L6599A and Viper27L. Features.

50 ohm nominal input / conjugate match balun to nrf CEAA/CDAB/CFAC and nrf51422-ceaa/cdab/cfac. Benefits. Description

AN4296 Application note

LM217M, LM317M. Medium current 1.2 to 37 V adjustable voltage regulator. Description. Features

UA741. General-purpose single operational amplifier. Features. Applications. Description. N DIP8 (plastic package)

AN2824 Application note

Description. Table 1. Device summary. Order codes. TO-220 (single gauge) TO-220 (double gauge) D²PAK (tape and reel) TO-220FP

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

UM1613 User manual. 16-pin smartcard interface ST8034P demonstration board. Introduction

STN3NF06L. N-channel 60 V, 0.07 Ω, 4 A, SOT-223 STripFET II Power MOSFET. Features. Application. Description

DSL01-xxxSC5. Secondary protection for DSL lines. Features. Description. Applications. Benefits. Complies with the following standards

SDLS068A DECEMBER 1972 REVISED OCTOBER Copyright 2001, Texas Instruments Incorporated

Order code Temperature range Package Packaging

Trench gate field-stop IGBT, M series 650 V, 10 A low loss. Features. Description

STTH110. High voltage ultrafast rectifier. Description. Features

STWD100. Watchdog timer circuit. Description. Features. Applications

AN3353 Application note

AN3252 Application note

AN4368 Application note

STP60NF06. N-channel 60V Ω - 60A TO-220 STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

ETP01-xx21. Protection for Ethernet lines. Features. Description. Applications. Benefits. Complies with the following standards

MC34063AB, MC34063AC, MC34063EB, MC34063EC

Description SO-8. series. Furthermore, in the 8-pin configuration Very low-dropout voltage (0.2 V typ.)

TDA W CAR RADIO AUDIO AMPLIFIER

STP60NF06FP. N-channel 60V Ω - 30A TO-220FP STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

ST19NP18-TPM-I2C. Trusted Platform Module (TPM) with I²C Interface. Features

Intel HTML5 Development Environment. Tutorial Building an Apple ios* Application Binary

LM135-LM235-LM335. Precision temperature sensors. Features. Description

AN2557 Application note

BZW50. Transil, transient voltage surge suppressor (TVS) Features. Description

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

AN3990 Application note

SEO Meta Templates. Magento Extension. User Guide. SEO Meta Templates

ULN2001, ULN2002 ULN2003, ULN2004

STP55NF06L STB55NF06L - STB55NF06L-1

Obsolete Product(s) - Obsolete Product(s)

MC Low noise quad operational amplifier. Features. Description

HANDS-FREE BLUETOOTH CONTROLLER for SMART READY TABLETS AND COMPUTERS

L78L. Positive voltage regulators. Description. Features

UM0462 User manual. STM32 and STM8 Flash loader demonstrator. Introduction

User manual. Your best protection against theft and loss. (Android) Made for

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

L6234. Three phase motor driver. Features. Description

AN3270 Application note

MiniPOS and BluePad-50 user manual

STTH2R06. High efficiency ultrafast diode. Features. Description

Transcription:

Application note STM32 BLE toolbox for Android Introduction The application note describes the STM32 Bluetooth low energy (BLE) toolbox Android application (STSW-STM32153) to be used with an Android 4.3 with BLE mobile phone and an STM32 Nucleo board. The STM32 BLE toolbox Android application manages the BLE central device and the services provided by the STM32 Bluetooth low energy system solution. This STM32 BLE toolbox Android application is used for the following: Scanning of Bluetooth low energy peripheral devices Management of BLE peripheral GATT services Heart rate monitoring (HRM) service Health thermometer service (HTS) LEDs & buttons services (proprietary) Connect/disconnect validation procedure Figure 1. STM32 BLE toolbox for Android November 2014 DocID026815 Rev 1 1/10 www.st.com 1

Contents AN4571 Contents 1 Getting started.............................................. 3 1.1 Android application installation.................................. 3 1.2 Starting STM32 BLE toolbox................................... 3 2 STM32 BLE toolbox Android features........................... 4 2.1 Scanning.................................................. 4 2.2 BLE standard GATT services................................... 5 2.2.1 Heart rate monitoring service.................................. 5 2.2.2 Health thermometer service................................... 6 2.3 Proprietary GATT services..................................... 6 2.3.1 Button services............................................ 6 2.3.2 LED service............................................... 7 2.4 Connect/disconnect validation procedure......................... 8 3 Revision history............................................ 9 2/10 DocID026815 Rev 1

Getting started 1 Getting started 1.1 Android application installation Copy STM32_BLE_Toolbox.apk to the SD card of your Android 4.3 mobile phone, by using a file explorer. Once the application is installed, the STM32 BLE toolbox icon is available on the application page. Figure 2. STM32 BLE toolbox icon 1.2 Starting STM32 BLE toolbox The application displays the following welcome page. Click on the butterfly to start scanning of the BLE peripheral devices. Figure 3. Welcome page DocID026815 Rev 1 3/10 9

STM32 BLE toolbox Android features AN4571 2 STM32 BLE toolbox Android features 2.1 Scanning The scanning procedure starts automatically after clicking the butterfly on the welcome page. Subsequently, scanning can be started or stopped by clicking the STOP / SCAN button. All the BLE scan peripheral devices are listed. Figure 4. BLE scan peripheral devices Select the peripheral device. Click the OPTION button to select the application on the device. Connection/disconnection loop is a test procedure used to stress the peripheral device by doing several BLE link connections disconnections. BLE Services Display is used to manage the peripheral device GATT services. Figure 5. Application selection option Select the application. The connection is done by clicking the peripheral device name. 4/10 DocID026815 Rev 1

STM32 BLE toolbox Android features 2.2 BLE standard GATT services 2.2.1 Heart rate monitoring service The peripheral device with the name STM32_HRM provides the heart rate monitoring service. Select STM32_HRM. All the services are displayed and the heart rate measurement recorded by the peripheral device can be retrieved by enabling the notification. (Notif/Indic button) Figure 6. Heart rate monitoring service DocID026815 Rev 1 5/10 9

STM32 BLE toolbox Android features AN4571 2.2.2 Health thermometer service The peripheral device with the name STM32_HTS provides the health thermometer service. Select STM32_HTS. All the services are displayed and the health temperature value recorded by the peripheral device can be retrieved by enabling the indication. (Notif/Indic button) Figure 7. Heath thermometer service The health thermometer service requires a bonding procedure which is launched automatically at the time connection. Before the connection, it is recommended to erase the existing paired devices via the Android standard Bluetooth settings parameter utility. 2.3 Proprietary GATT services 2.3.1 Button services The button service concept is used to transfer information from the peripheral device to the central device (mobile phone) each time one of the three buttons is pushed. The peripheral device with the name LED_BUTT is used for the button service. Select LED_BUTT. All the services are displayed and the button update value recorded by the peripheral device can be retrieved by enabling the notification. (Notif/Indic button) Button1 sends the information 0x01 Button2 sends the information 0x02 Button3 sends the information 0x03 6/10 DocID026815 Rev 1

STM32 BLE toolbox Android features Figure 8. Button service 2.3.2 LED service The LED service concept is used to transfer information from the central device (mobile phone) to the peripheral device. The information transferred is used to switch ON/OFF one of the three LEDs available on the peripheral device. The peripheral device with the name LED_BUTT provides the led service. Select LED_BUTT. All the services are displayed and the led status from the mobile phone device can be provided either by writing the hex value LED1 = bit[0], LED2 = bit[1], LED3 = bit[2], or by pushing individual ON/OFF led buttons. Figure 9. LED service DocID026815 Rev 1 7/10 9

STM32 BLE toolbox Android features AN4571 2.4 Connect/disconnect validation procedure The connection/disconnection concept is used to verify and stress the consecutive fast connection and disconnection from the mobile phone side. This test gives a good indication on the robustness of the system. Select the Connection/disconnection loop option. The STM32 BLE toolbox enters the test mode procedure. Select the number of preferred consecutive connection/disconnection by pushing the button OPTION. The test starts after the pushing the button CONNECT. When the test ends, the test execution time is provided. Figure 10. Connection/disconnection loop test 8/10 DocID026815 Rev 1

Revision history 3 Revision history Table 1. Document revision history Date Revision Changes 05-Nov-2014 1 initial release. DocID026815 Rev 1 9/10 9

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. 2014 STMicroelectronics All rights reserved 10/10 DocID026815 Rev 1