Silica Sensor Node board sends custom ble advertising for the Gateway board
Dependencies: X_NUCLEO_IKS01A2_SPI3W
Fork of sensor-node-ble by
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.
mbed_settings.py@5:26b07c500aa2, 2018-01-26 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
rspelta | 0:6a77043d1ee1 | 1 | """ |
rspelta | 0:6a77043d1ee1 | 2 | mbed SDK |
rspelta | 0:6a77043d1ee1 | 3 | Copyright (c) 2016 ARM Limited |
rspelta | 0:6a77043d1ee1 | 4 | |
rspelta | 0:6a77043d1ee1 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
rspelta | 0:6a77043d1ee1 | 6 | you may not use this file except in compliance with the License. |
rspelta | 0:6a77043d1ee1 | 7 | You may obtain a copy of the License at |
rspelta | 0:6a77043d1ee1 | 8 | |
rspelta | 0:6a77043d1ee1 | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
rspelta | 0:6a77043d1ee1 | 10 | |
rspelta | 0:6a77043d1ee1 | 11 | Unless required by applicable law or agreed to in writing, software |
rspelta | 0:6a77043d1ee1 | 12 | distributed under the License is distributed on an "AS IS" BASIS, |
rspelta | 0:6a77043d1ee1 | 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
rspelta | 0:6a77043d1ee1 | 14 | See the License for the specific language governing permissions and |
rspelta | 0:6a77043d1ee1 | 15 | limitations under the License. |
rspelta | 0:6a77043d1ee1 | 16 | """ |
rspelta | 0:6a77043d1ee1 | 17 | |
rspelta | 0:6a77043d1ee1 | 18 | from os.path import join, abspath, dirname |
rspelta | 0:6a77043d1ee1 | 19 | |
rspelta | 0:6a77043d1ee1 | 20 | #ROOT = abspath(join(dirname(__file__), ".")) |
rspelta | 0:6a77043d1ee1 | 21 | |
rspelta | 0:6a77043d1ee1 | 22 | ############################################################################## |
rspelta | 0:6a77043d1ee1 | 23 | # Build System Settings |
rspelta | 0:6a77043d1ee1 | 24 | ############################################################################## |
rspelta | 0:6a77043d1ee1 | 25 | #BUILD_DIR = abspath(join(ROOT, "build")) |
rspelta | 0:6a77043d1ee1 | 26 | |
rspelta | 0:6a77043d1ee1 | 27 | # ARM |
rspelta | 0:6a77043d1ee1 | 28 | #ARM_PATH = "C:/Program Files/ARM" |
rspelta | 0:6a77043d1ee1 | 29 | |
rspelta | 0:6a77043d1ee1 | 30 | # GCC ARM |
rspelta | 0:6a77043d1ee1 | 31 | #GCC_ARM_PATH = "" |
rspelta | 0:6a77043d1ee1 | 32 | |
rspelta | 0:6a77043d1ee1 | 33 | # GCC CodeRed |
rspelta | 0:6a77043d1ee1 | 34 | #GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin" |
rspelta | 0:6a77043d1ee1 | 35 | |
rspelta | 0:6a77043d1ee1 | 36 | # IAR |
rspelta | 0:6a77043d1ee1 | 37 | #IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm" |
rspelta | 0:6a77043d1ee1 | 38 | |
rspelta | 0:6a77043d1ee1 | 39 | # Goanna static analyser. Please overload it in private_settings.py |
rspelta | 0:6a77043d1ee1 | 40 | #GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin" |
rspelta | 0:6a77043d1ee1 | 41 | |
rspelta | 0:6a77043d1ee1 | 42 | #BUILD_OPTIONS = [] |
rspelta | 0:6a77043d1ee1 | 43 | |
rspelta | 0:6a77043d1ee1 | 44 | # mbed.org username |
rspelta | 0:6a77043d1ee1 | 45 | #MBED_ORG_USER = "" |