/**
@page BlueNRG Expansion Board for STM32 Nucleo Boards Sensor Demo Application
@verbatim
******************** (C) COPYRIGHT 2015 STMicroelectronics *******************
* @file readme.txt
* @author CL/AST
* @version V0.0.1
* @date 10-Sep-2015
* @brief This application contains an example which shows how implementing
* a proprietary Bluetooth Low Energy profile: the sensor profile.
* The communication is done using a Nucleo board and a Smartphone
* with BTLE.
******************************************************************************
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
@endverbatim
@par Example Description
Main function to show how to use the BlueNRG Bluetooth Low Energy
expansion board to send data from an STM32 Nucleo board to a smartphone with
the support BLE and the "BlueNRG" app freely available on both GooglePlay and iTunes.
The URL to the iTunes for BlueNRG is http://itunes.apple.com/app/bluenrg/id705873549?uo=5
The URL to the GooglePlay is https://play.google.com/store/apps/details?id=com.st.bluenrg
The source code of the "BlueNRG" app, both for iOS and Android, is freely downloadable
from the developer website at http://software.g-maps.it/
NO SUPPORT WILL BE PROVIDED TO YOU BY STMICROELECTRONICS FOR ANY OF THE
ANDROID .apk FILES INCLUDED IN OR REFERENCED BY THIS PACKAGE.
The board will act as Server-Peripheral.
After establishing the connection:
- by pressing the USER button on the board, the cube showed by
the app on the smartphone in the MOTION tab will rotate on the
three axes (x,y,z).
- in the ENVIRONMENT tab of the app the temperature, pressure
and humidity fake values sent by the STM32 Nucleo to the smartphone are shown.
- in the OTHER tab of the app the RSSI value is shown.
For testing this sample application, a smartphone (acting as Central device) with the
"BlueNRG" app running is needed.
This application uses the STM32 Cube Low Level low power optimizations
along with the DMA module for offloading the MCU.
Current consumption could be monitored through an amperemeter connected to JP6.
This application shows also how to add new GATT services and characteristics.
Setting the NEW_SERVICES define to 1 (in $PATH_TO_THIS_APPLICATION\Inc\sensor_service.h),
two new services are enabled:
- the Time Server service, which has two characteristics
- seconds, a read only characteristic which exposes the number of seconds
passed since system boot
- minutes, a characteristic which exposes the number of minutes passed
since system boot. This characteristic can be read by GATT server, and a
“notify” event is generated for this characteristic at one minute intervals.
- the LED service, which can be used to control the state of LED2 present on the
STM32 Nucleo board. This service has a writable “LED button characteristic”,
which controls the state of LED2.
When the GATT client application modifies the value of this characteristic, LED2
is toggled.
Hence the application advertises its services and characteristics to the listening client
devices while waiting for a connection to be made.
After the connection is created by the central device, data is periodically updated.
In this example, when the NEW_SERVICES is set to 1, the STM32 Nucleo board acts as GATT
server (and as a Peripheral device) and the PC as a GATT client (and as a Central device).
The BlueNRG GUI is needed.
The BlueNRG GUI installer is provided in the STSW-BLUENRG-DK package available at
http://www.st.com
The BlueNRG GUI can be used to initialize and configure the BlueNRG USB dongle
properly so that it can be used to test the BLE application running on the STM32 Nucleo
board equipped with a BlueNRG expansion board.
The PC connected to the BlueNRG USB dongle will be configured as “GAP central device”,
and the STM32 Nucleo board equipped with a BlueNRG expansion board is “GAP peripheral
device”.
Once the BlueNRG USB dongle is configured correctly, it can be used to scan remote
devices and send the ACI commands.
If you don't have the USB dongle, as an alternative you can use a STM32 Nucleo board +
X-NUCLEO-IDB04A1/X-NUCLEO-IDB05A1 with the Virtual_COM_Port application included in this package.
------------------
| PC with |
| BlueNRG GUI |
| running |
------------------
/ --------------- /
/ --------------- /
/---------->/ --------- /<------\ USB Mini-B to A Cable
/ In USB ------------------ \ powering the board
/ port \
-------------- -----------------------
| BlueNRG |-- | STM32 Nucleo + |
| USB Dongle |-- | X-NUCLEO-IDB04A1 |
-------------- | or X-NUCLEO-IDB05A1 |
-----------------------
The communication is done using a vendor specific profile.
@par Hardware and Software environment
- This example runs on STM32 Nucleo devices with BlueNRG STM32 expansion board
(X-NUCLEO-IDB04A1 or X-NUCLEO-IDB05A1)
- This example has been tested with STMicroelectronics:
- NUCLEO-L053R8 RevC board
- NUCLEO-F401RE RevC board
- NUCLEO-L476RG RevC board
and can be easily tailored to any other supported device and development board.
This example runs also on the NUCLEO-F411RE RevC board, even if the chip could
be not exploited at its best since the projects are configured for the
NUCLEO-F401RE target board.
@par How to use it?
In order to make the program work, you must do the following:
- WARNING: before opening the project with any toolchain be sure your folder
installation path is not too in-depth since the toolchain may report errors
after building.
- Open IAR toolchain (this firmware has been successfully tested with
Embedded Workbench V7.40.3).
Alternatively you can use the Keil uVision tool
没有合适的资源?快使用搜索试试~ 我知道了~
x-cube-ble1.zip_X-NUCLEO-IDB05A1_stm32 bluetooth_stm32cube_xx970
共1098个文件
h:378个
c:270个
s:153个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 31 浏览量
2022-09-24
07:26:23
上传
评论
收藏 10.82MB ZIP 举报
温馨提示
The X-CUBE-BLE1 is an expansion software package for STM32Cube. The software runs on the STM32 and includes drivers for ST’s BlueNRG Bluetooth Low Energy device. The expansion is built on STM32Cube software technology to ease portability across different STM32 microcontrollers. The software comes with sample implementations of the drivers running on the X-NUCLEO-IDB04A1 or X-NUCLEO-IDB05A1, when connected to a NUCLEO-L053R8, NUCLEO-L476RG, NUCLEO-F401RE or NUCLEO-F411RE board.
资源推荐
资源详情
资源评论
收起资源包目录
x-cube-ble1.zip_X-NUCLEO-IDB05A1_stm32 bluetooth_stm32cube_xx970 (1098个子文件)
ThT_CLIENT.bin 25KB
SampleApp_SERVER.bin 21KB
SampleApp_CLIENT.bin 21KB
ThT_SERVER.bin 20KB
ThTest_CLIENT.bin 19KB
DMA_LP_SensDemo.bin 18KB
ThTest_SERVER.bin 17KB
ThTest_CLIENT.bin 17KB
SampleApp_SERVER.bin 17KB
SampleApp_CLIENT.bin 17KB
DMA_LP_App_SERVER.bin 17KB
DMA_LP_App_CLIENT.bin 17KB
DMA_LP_SensorDemo.bin 16KB
DMA_LP_App_SERVER.bin 15KB
DMA_LP_App_CLIENT.bin 15KB
SampleApp_SERVER.bin 15KB
SampleApp_CLIENT.bin 15KB
ThTest_SERVER.bin 14KB
DMA_LP_SensDemo.bin 13KB
DMA_LP_App_SERVER.bin 13KB
DMA_LP_App_CLIENT.bin 13KB
SensorDemo.bin 12KB
SensorDemo.bin 11KB
SensorDemo.bin 10KB
Virtual_COM_Port.bin 9KB
Virtual_COM_Port.bin 9KB
Virtual_COM_Port.bin 7KB
logo.bmp 7KB
stm32f4xx_hal_tim.c 174KB
stm32l4xx_hal_tim.c 163KB
stm32l0xx_hal_tim.c 156KB
stm32f4xx_hal_fmpi2c.c 133KB
stm32l4xx_hal_i2c.c 126KB
stm32l0xx_hal_i2c.c 125KB
stm32f4xx_hal_cryp.c 120KB
stm32l4xx_hal_adc.c 118KB
stm32f4xx_hal_sd.c 110KB
stm32l4xx_hal_sd.c 106KB
stm32l4xx_hal_dfsdm.c 105KB
stm32f4xx_hal_i2c.c 104KB
stm32f4xx_hal_cryp_ex.c 103KB
stm32f4xx_hal_rcc_ex.c 96KB
stm32l4xx_hal_adc_ex.c 94KB
stm32l4xx_hal_tim_ex.c 91KB
stm32l4xx_hal_cryp_ex.c 85KB
stm32l4xx_hal_spi.c 83KB
stm32l0xx_hal_adc.c 81KB
stm32l0xx_hal_spi.c 78KB
stm32f4xx_hal_eth.c 72KB
stm32l4xx_hal_smbus.c 71KB
stm32f4xx_hal_spi.c 71KB
stm32l0xx_hal_cryp.c 70KB
stm32f4xx_hal_dsi.c 70KB
stm32l0xx_hal_smbus.c 68KB
stm32l4xx_hal_rcc_ex.c 67KB
stm32l4xx_hal_uart.c 67KB
stm32l0xx_hal_uart.c 67KB
stm32f4xx_hal_tim_ex.c 67KB
stm32l4xx_hal_qspi.c 65KB
stm32f4xx_hal_qspi.c 65KB
stm32f4xx_hal_usart.c 63KB
stm32f4xx_hal_sai.c 63KB
stm32f4xx_hal_uart.c 63KB
stm32f4xx_ll_fmc.c 62KB
stm32l4xx_hal_sai.c 62KB
stm32l0xx_hal_rtc_ex.c 60KB
stm32f4xx_hal_hash.c 59KB
stm32l4xx_hal_usart.c 59KB
stm32l4xx_hal_smartcard.c 57KB
stm32f4xx_hal_rtc_ex.c 57KB
stm32l0xx_hal_usart.c 57KB
stm32l4xx_hal_rcc.c 56KB
stm32l4xx_hal_rtc_ex.c 56KB
stm32f4xx_hal_rtc.c 54KB
stm32f4xx_hal_i2s_ex.c 54KB
stm32l4xx_hal_irda.c 53KB
stm32f4xx_hal_hash_ex.c 53KB
stm32l4xx_hal_lptim.c 52KB
stm32f4xx_hal_lptim.c 51KB
stm32l4xx_hal_rtc.c 51KB
stm32l0xx_hal_rtc.c 51KB
stm32f4xx_ll_usb.c 51KB
stm32l0xx_hal_rcc.c 51KB
stm32f4xx_hal_flash_ex.c 50KB
stm32l4xx_hal_cryp.c 50KB
stm32l0xx_hal_lptim.c 50KB
stm32f4xx_hal_irda.c 49KB
stm32f4xx_hal_adc.c 49KB
stm32l0xx_hal_i2s.c 48KB
stm32l4xx_ll_usb.c 48KB
stm32f4xx_hal_rcc.c 47KB
stm32l0xx_hal_irda.c 47KB
stm32f4xx_hal_i2s.c 47KB
stm32l0xx_hal_smartcard.c 45KB
stm32f4xx_hal_can.c 45KB
stm32f4xx_hal_smartcard.c 45KB
stm32l4xx_hal_can.c 44KB
stm32f4xx_hal_dma2d.c 42KB
stm32f4xx_hal_ltdc.c 42KB
stm32l4xx_hal_swpmi.c 42KB
共 1098 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功