UM2264 User manual Getting started with the STEVAL-IDB007V1M SPBTLE-1S module development kit Introduction ® ® The SPBTLE-1S module is a low power Bluetooth smart system-on-chip, compliant with the Bluetooth v4.2 specification and supporting master, slave and simultaneous master-and-slave roles. The available kit is the STEVAL-IDB007V1M development platform (order code: STEVAL-IDB007V1M).
Adobe Acrobat Reader 6.0 or later BlueNRG-1 development kit setup After downloading the BlueNRG-1 DK software package (STSW-BLUENRG1-DK) from www.st.com, extract BlueNRG-1_DK-x.x.x-Setup.zip contents to a temporary directory, launch BlueNRG-1-DK-x.x.x-Setup.exe and follow the on-screen instructions. EWARM Compiler 7.70 or later is required for building the BlueNRG1_DK_x.x.x demonstration applications.
Hardware description UM2264 Hardware description STEVAL-IDB007V1M1 board overview The SPBTLE-1S module in the STEVAL-IDB007V1M development kit lets you experiment with BlueNRG-1 system-on-chip functions. It features: ® Bluetooth SMART board based on the BlueNRG-1 Bluetooth low energy system-on- chip Associated BlueNRG-1 development kit software package including firmware and documentation ...
UM2264 Hardware description Table 1: STEVAL-IDB007V1M board component descriptions Region Description SPBTLE-1S module Micro USB connector for power supply and I/O JTAG connector RESET button two USER buttons LPS25HB MEMS pressure sensor with embedded temperature LSM6DS3 3D digital accelerometer and 3D digital gyroscope PWR LED three user LEDs back of the...
The board section labeled SPBTLE-1 (Figure 2: "STEVAL-IDB007V1M board components" – region A) includes only the certified and BQE qualified module SPBTLE-1S (for more details, see Figure 24: "STEVAL-IDB007V1M SPBTLE-1S module (BlueNRG-1)"). Power supply – region G) signals Green LED DL4 (Figure 2: "STEVAL-IDB007V1M board components"...
The microcontroller is connected to the BlueNRG-1 device through an ST2378E level translator (region R). The STM32L microcontroller on the board is not intended to be programmed by users. ST provides a pre-programmed firmware image for the sole purpose of interfacing BlueNRG-1 to a USB host device (e.g., a PC). 2.11...
UM2264 Hardware description 2.12 Hardware setup Configure the board to USB power supply mode as per the jumper settings in Table 3: "STEVAL-IDB007V1M kit platform power supply modes" Connect the board to a PC via USB cable (connector CN5) Verify the power indication LED DL4 is on DocID030868 Rev 1 13/55...
BlueNRG-1 Navigator UM2264 BlueNRG-1 Navigator BlueNRG-1 Navigator is a user-friendly GUI which lets you select and run demonstration applications easily, without requiring any extra hardware. It lets you access the following BlueNRG-1 DK software package components: BlueNRG-1 Bluetooth low energy (BLE) demonstration applications ...
UM2264 BlueNRG-1 Navigator Flash: to automatically download and run the available prebuilt binary file to a BlueNRG-1 or SPBTLE-1S platform connected to a PC USB port. Doc: to display application documentation (html format) Project: to open the project folder with application headers, source and project files. The figure below shows you how to run the BLE Beacon demo application;...
BlueNRG-1 Navigator UM2264 Selecting the “Doc” tab opens the relative html documentation. Figure 6: BLE Beacon documentation BlueNRG-1 Navigator ‘Basic examples’ 3.1.1 This page lists some basic sample applications for the SPBTLE-1S or BlueNRG-1 device to verify that BlueNRG-1 device is alive as well as the device sleep and wakeup modes. Figure 7: Basic examples BlueNRG-1 Navigator ‘BLE demonstration and test applications’...
UM2264 BlueNRG-1 Navigator Figure 8: BLE demonstration and test applications BlueNRG-1 Navigator ‘Peripherals driver examples’ 3.1.3 This page lists the available BlueNRG-1 peripherals and corresponding test applications to work with certain features specific to the selected SPBTLE-1S, based on BlueNRG-1, peripheral.
BlueNRG-1 Navigator UM2264 BlueNRG-1 Navigator ‘Development Kits’ This window displays the available BlueNRG-1 DK Kit platforms and corresponding resources. When you hover the mouse pointer over a specific item, the related component is highlighted on the board. Figure 10: STEVAL-IDB007V1M Kit components BlueNRG-1 Navigator ‘Release Notes’...
UM2264 BlueNRG-1 Flasher utility BlueNRG-1 Flasher utility The BlueNRG-1 Flasher utility allows SPBTLE-1S or BlueNRG-1 programming using the UART bootloader. How to run The BlueNRG-1 Flasher utility PC configuration requires the following minimum characteristics: ® ® a PC with USB port running Windows XP or Windows ...
BlueNRG-1 Flasher utility UM2264 Main user interface window In the upper section of the BlueNRG-1 Flasher –Utility main window, you can: Select the image file (‘Select file’ button) Choose the flashing address (‘Flash from’ text input bar, only enabled for .bin files) Select the COM port to be used to interface the device (‘Port’...
UM2264 BlueNRG-1 Flasher utility From the ‘Tools’ menu, you can mass erase all the device Flash memory. 4.2.2 Image file selection Use the ‘Select file’ button on the main page (or the File>Load menu) to load an existing .bin or .hex file. The full path of the selected file appears next to the button and the ‘Flash’ becomes active.
BlueNRG-1 Flasher utility UM2264 Figure 15: BlueNRG-1 Flasher utility device memory viewer Click the ‘Read’ button to transfer the memory segment defined by ‘Start Address and ‘Size’ into the table. The first column gives the base address of the following 16 bytes in a row (e.g., row 0x10040050, column 4 holds the hexadecimal byte value at 0x10040054).
UM2264 BlueNRG-1 Flasher utility Figure 17: BlueNRG-1 Flasher utility ‘Comport Setting’ popup When this popup appears, set the SPBTLE-1S or BlueNRG-1 pin DIO7 high and reset the SPBTLE-1S or BlueNRG-1 device (keeping the DIO7 high); the device should now be in bootloader mode.
Programming with BlueNRG-1 system-on-chip UM2264 Programming with BlueNRG-1 system-on-chip The SPBTLE-1S module, based on BlueNRG-1 Bluetooth low energy (BLE) stack is provided as a binary library. A set of APIs to control BLE functionality. Some callbacks are also provided for user applications to handle BLE stack events. The user is simply requested to link this binary library to his or her application and use the relevant APIs to access BLE functions and complete the stack event callbacks to manage responses according to application requirements.
UM2264 BlueNRG-1 Beacon demonstration application BlueNRG-1 Beacon demonstration application The BlueNRG-1 Beacon demo is supported by the SPBTLE-1S or BlueNRG-1 development platform (STEVAL-IDB007V1 or STEVAL-IDB007V1M). It demonstrates how to configure a SPBTLE-1S or BlueNRG-1 device to advertise specific manufacturing data and allow another BLE device to determine whether it is in BlueNRG-1 BLE Beacon device range.
Page 26
BlueNRG-1 Beacon demonstration application UM2264 /* Remove TX power level field from the advertising data: it is necessary have enough space for the beacon manufacturing data */ aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL); /* Define the beacon manufacturing payload */ uint8_t manuf_data[] = {26, AD_TYPE_MANUFACTURER_SPECIFIC_DATA, 0x30, 0x00, //Company identifier code (Default is 0x0030 - STMicroelectronics) 0x02,// ID 0x15,//Length of the remaining payload...
UM2264 BlueNRG-1 chat demo application BlueNRG-1 chat demo application The BlueNRG-1 chat demo (server and client roles) is supported on the SPBTLE-1S or BlueNRG-1 development platform (STEVAL-IDB007V1 or STEVAL-IDB007V1M). It implements simple two-way communication between two BlueNRG-1 devices, demonstrating point-to-point wireless communication using the BlueNRG-1 product. This demo application exposes a single chat service with the following (20 byte max.) characteristic values: ...
BlueNRG-1 chat demo application UM2264 BLE Chat client role: aci_gap_init(GAP_CENTRAL_ROLE, 0, 0x08, &service_handle, &dev_name_char_handle, &appearance_char_handle); Peripheral and central BLE roles must be specified in the aci_gap_init() command. See the BlueNRG-1 BLE stack API documentation for more information on these and following commands.
UM2264 BlueNRG-1 chat demo application on the BLE chat server device, the typed characters are sent to the BLE chat client device by notifying the previously added TX characteristic (after notifications are enabled) with: aci_gatt_update_char_value(chatServHandle,TXCharHandle,0,len, (uint8_t*)cmd+j); on the BLE chat client device, the typed characters are sent to the BLE chat server device by writing the previously added RX characteristic with: aci_gatt_write_without_resp(connection_handle, rx_handle+1, len, (uint8_t *)cmd+j);...
BLE chat master and slave demo application UM2264 BLE chat master and slave demo application The BlueNRG-1 chat master and slave demo is supported on the SPBTLE-1S or BlueNRG- 1 development platform (STEVAL-IDB007V1 or STEVAL-IDB007V1M). It demonstrates simple point-to-point wireless communication using a single application which configures the chat client and server roles at runtime.
UM2264 BLE chat master and slave demo application The BLE peripheral and central roles are specified in the aci_gap_init() command. See the BlueNRG-1 BLE API documentation for more information on these and following commands. 8.1.2 Add service and characteristics Refer to Section 7.1.2: "Add service and characteristics".
BlueNRG-1 remote control demo application UM2264 BlueNRG-1 remote control demo application The BlueNRG-1 BLE remote control application is supported on the SPBTLE-1S or BlueNRG-1 development platforms (STEVAL-IDB007V1or STEVAL-IDB007V1M). It demonstrates how to control a remote device (like an actuator) using a BlueNRG-1 device. This application periodically broadcasts temperature values that can be read by any device.
UM2264 BlueNRG-1 remote control demo application See BlueNRG-1 BLE stack API documentation for more information on these and following commands. 9.1.2 Define advertising data The BLE remote control application advertises certain manufacturing data as follows: /* Set advertising device name as Node */ const uint8_t scan_resp_data[] = {0x05,AD_TYPE_COMPLETE_LOCAL_NAME,'N','o','d','e'} /* Set scan response data */ hci_le_set_scan_response_data(sizeof(scan_resp_data),scan_resp_data);...
BlueNRG-1 sensor profile demo UM2264 BlueNRG-1 sensor profile demo The BlueNRG-1 sensor profile demo is supported on the BlueNRG-1 or SPBTLE-1S development platform (STEVAL-IDB007V1 or STEVAL-IDB007V1M). It implements a proprietary, Bluetooth low energy (BLE) sensor profile. This example is useful for building new profiles and applications that use the BlueNRG-1 SoC.
UM2264 BlueNRG-1 sensor profile demo 10.1 BlueNRG app for smartphones An application is available for iOS™ and Android™ smartphones or tablets that also works with the BLE sensor profile demo. This app enables notification of the acceleration characteristic and displays the value on screen. Data from environmental sensors are also periodically read and displayed.
BlueNRG-1 sensor profile demo UM2264 10.2.2 Add service and characteristics The BlueNRG-1 BLE stack has both server and client capabilities. A characteristic is an element in the server database where data is exposed, while a service contains one or more characteristics. The acceleration service is added with the following command: aci_gatt_add_service(UUID_TYPE_128, &service_uuid, PRIMARY_SERVICE, 7, &accServHandle);...
UM2264 BlueNRG-1 sensor profile central demo BlueNRG-1 sensor profile central demo The BlueNRG-1 sensor profile central demo is supported on the BlueNRG-1 or SPBTLE- 1S development platforms (STEVAL-IDB007V1 or STEVAL-IDB007V1M). It implements a basic version of the BlueNRG-1 BLE Sensor Profile Central role which emulates the BlueNRG-1 Sensor Demo applications available for smartphones (iOS and Android).
BlueNRG-1 HID/HOGP demonstration application UM2264 BlueNRG-1 HID/HOGP demonstration application The BLE HID/HOGP demonstration applications are supported by the BlueNRG-1 or SPBTLE-1S development platforms (STEVAL-IDB007V1 or STEVAL-IDB007V1M). It demonstrates a BlueNRG-1 device using the standard HID/HOGP Bluetooth low energy application profile. Keyboard and mouse demo examples are provided. 12.1 BLE HID/HOGP mouse demonstration application The BlueNRG-1 HID mouse application implements a basic HID mouse with two buttons...
UM2264 BlueNRG-1 throughput demonstration application BlueNRG-1 throughput demonstration application The BlueNRG-1 throughput demonstration application provides some basic throughput demonstration applications to provide some reference figures regarding the achievable Bluetooth low energy data rate using the BlueNRG-1 device. The throughput application scenarios provided are: Unidirectional scenario: the server device sends characteristic notifications to a client device.
Page 40
BlueNRG-1 throughput demonstration application UM2264 Program the client bidirectional application on one BLE platform and reset it. The platform is seen on the PC as a virtual COM port. Open the related port in a serial terminal emulator (the required serial port baudrate is 921600) ...
UM2264 BLE notification consumer demonstration application BLE notification consumer demonstration application The BLE ANCS demonstration application configures a BlueNRG-1 device or SPBTLE-1S module as a BLE notification consumer, which facilitates Bluetooth accessory access to the many notifications generated on a notification provider. After reset, the demo places the BlueNRG-1 device in advertising with device name "ANCSdemo"...
BlueNRG-1 peripheral driver examples UM2264 BlueNRG-1 peripheral driver examples The BlueNRG-1 peripheral driver example applications are supported by the BlueNRG-1 or SPBTLE-1S development platform (STEVAL-IDB007V1 or STEVAL-IDB007V1M). The kit contains a set of examples demonstrating how to use the BlueNRG-1 device peripheral drivers (ADC, GPIOs, I²C, RTC, SPI, Timers, UART and WDG).
UM2264 BlueNRG-1 peripheral driver examples IO wakeup: demonstrates device wakeup from standby mode using the GPIO interrupt. The PUSH1 button (IO13) is configured to generate the interrupt event on both edges of the input signal. LED DL2 is toggled, the system becomes active and LED DL1 is toggled by the systick interrupt service routine every 500 ms.
BlueNRG-1 peripheral driver examples UM2264 PUSH1: toggle LED DL1 15.5 RTC examples Clock watch: implements both RTC timer and RTC clockwatch. The RTC timer generates the 500 ms interrupt interval. The LED DL1 state is toggled in the RTC interrupt handler to signal proper RTC timer operation. The RTC clockwatch is also enabled with the system time and date set to December 1 2014, 23 h 59 m 31 s.
UM2264 BlueNRG-1 peripheral driver examples The SPI is configured in master mode and the SPI clock set to 100 kHz. The data is transferred in the Motorola format with an 8-bit data frame, with clock low when inactive (CPOL=0) and data valid on clock trailing edge (CPHA = 1). Master DMA: SPI communication is controlled by DMA of the SPI status register content.
Page 46
BlueNRG-1 peripheral driver examples UM2264 Timer/Counter 1 interrupts on reload are enabled for MFTX1. Interrupt routines toggle LED DL1 for MFTX2. Mode 2 (dual-input capture mode): Timer/Counter 1 counts down with the selected clock and TnA and TnB pins function as capture inputs. Transitions received on the TnA and TnB pins trigger a transfer of timer content to the TnCRA and TnCRB registers, respectively.
UM2264 BlueNRG-1 peripheral driver examples MFT timers: this example shows how configure peripherals MFT1, MFT2 and SysTick to generate three timer interrupts at different rate: MFT1 at 500 ms, MFT2 at 250 ms and SysTick at 1 second. 15.9 UART examples DMA: IO8 and IO11 are configured as UART pins and DMA receive and transmit requests are enabled.
Revision history UM2264 Revision history Table 8: Document revision history Date Version Changes 25-Jul-2017 Initial release. 54/55 DocID030868 Rev 1...
Page 55
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.
Need help?
Do you have a question about the STEVAL-IDB007V1M SPBTLE-1S and is the answer not in the manual?
Questions and answers