Silica Sensor Node board sends custom ble advertising for the Gateway board

Dependencies:   X_NUCLEO_IKS01A2_SPI3W

Fork of sensor-node-ble by Roberto Spelta

Getting started with mbed SensorNode BLE

Information

History project:

  • 26/01/2017 - First Release

This project uses the Bluetooth Low Energy in order to send advertaisments every second. These payloads are read by the Visible Things Gateway board, more about it here . Every advertaisments contains sensors data read form the SensorTile and the Silica Sensor Board. For details please read the document in the MAN folder,

The application:

  • reads sensors data (accelerometer, gyroscope, lux, pressure, temperature, proximity, magnetometer)
  • send these data by BLE

You can compile this project in three ways:

1. Using the Online compiler.

Information

Learn how to use the Online compiler reading https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/online_comp/ page.

2. Using the compiler on your PC

Information

Learn how to use the mbed-cli reading https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/cli/ page.
The name of the machine is SILICA_SENSOR_NODE.

3. Exporting to 3rd party tools (IDE)

Information

Learn how to use the mbed-cli reading https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/third_party/ page. We have exported the project for you, please read here

Warning

This example requires a Visible Things Gateway board. If you don't have this board you can use RF Connect app from an Android phone just to see the raw data sent from the SensorNode.

Committer:
rspelta
Date:
Fri Jan 26 18:26:48 2018 +0100
Revision:
5:26b07c500aa2
Parent:
0:6a77043d1ee1
fix comments

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rspelta 0:6a77043d1ee1 1 {
rspelta 0:6a77043d1ee1 2 "target_overrides": {
rspelta 0:6a77043d1ee1 3 "K64F": {
rspelta 0:6a77043d1ee1 4 "target.features_add": ["BLE"],
rspelta 0:6a77043d1ee1 5 "target.extra_labels_add": ["ST_BLUENRG"],
rspelta 0:6a77043d1ee1 6 "target.macros_add": ["IDB0XA1_D13_PATCH"]
rspelta 0:6a77043d1ee1 7 },
rspelta 0:6a77043d1ee1 8 "NUCLEO_F401RE": {
rspelta 0:6a77043d1ee1 9 "target.features_add": ["BLE"],
rspelta 0:6a77043d1ee1 10 "target.extra_labels_add": ["ST_BLUENRG"]
rspelta 0:6a77043d1ee1 11 },
rspelta 0:6a77043d1ee1 12 "NUCLEO_L476RG": {
rspelta 0:6a77043d1ee1 13 "target.features_add": ["BLE"],
rspelta 0:6a77043d1ee1 14 "target.extra_labels_add": ["ST_BLUENRG"],
rspelta 0:6a77043d1ee1 15 "target.macros_add": ["SENSOR_TILE","SPI3W_SUPPORT","SPI3W_TEST",
rspelta 0:6a77043d1ee1 16 "BLUENRG_PIN_SPI_MOSI=PA_7",
rspelta 0:6a77043d1ee1 17 "BLUENRG_PIN_SPI_MISO=PA_6",
rspelta 0:6a77043d1ee1 18 "BLUENRG_PIN_SPI_nCS=PB_2",
rspelta 0:6a77043d1ee1 19 "BLUENRG_PIN_SPI_RESET=PH_0",
rspelta 0:6a77043d1ee1 20 "BLUENRG_PIN_SPI_IRQ=PC_5",
rspelta 0:6a77043d1ee1 21 "BLUENRG_PIN_SPI_SCK=PA_5"]
rspelta 0:6a77043d1ee1 22 },
rspelta 0:6a77043d1ee1 23 "SILICA_SENSOR_NODE": {
rspelta 0:6a77043d1ee1 24 "target.features_add": ["BLE"],
rspelta 0:6a77043d1ee1 25 "target.extra_labels_add": ["ST_BLUENRG"],
rspelta 0:6a77043d1ee1 26 "target.macros_add": ["SENSOR_TILE","SPI3W_SUPPORT","SPI3W_TEST",
rspelta 0:6a77043d1ee1 27 "BLUENRG_PIN_SPI_MOSI=PA_7",
rspelta 0:6a77043d1ee1 28 "BLUENRG_PIN_SPI_MISO=PA_6",
rspelta 0:6a77043d1ee1 29 "BLUENRG_PIN_SPI_nCS=PB_2",
rspelta 0:6a77043d1ee1 30 "BLUENRG_PIN_SPI_RESET=PH_0",
rspelta 0:6a77043d1ee1 31 "BLUENRG_PIN_SPI_IRQ=PC_5",
rspelta 0:6a77043d1ee1 32 "BLUENRG_PIN_SPI_SCK=PA_5"]
rspelta 0:6a77043d1ee1 33 }
rspelta 0:6a77043d1ee1 34 }
rspelta 0:6a77043d1ee1 35 }