Application demonstrating the BLE Peripheral role. It has several well-known and vendor-specific GATT services that it exposes.
- BlueZ running on the host, or
- A board with BLE support
export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
export GNUARMEMB_TOOLCHAIN_PATH=~/gcc-arm-none-eabi-7-2018-q2-update/ # path to downloaded toolchain
source ./setup-env.sh # Setups up python virtualenv, and zephyr
./build.sh # invokes cmake nad builds the application
An example of using OpenOCD with Adafruit's FT232H breakout board to flash the nRF52
Note:
D0is SWDCLK,D1is SWDIO, andD2must be connected toD1with a 470 Ohm (or equivalent) resistor.
openocd \
-f interface/ftdi/ft232h-module-swd.cfg `# Use FT232h as our hardware interface` \
-f target/nrf52.cfg `# the target chip` \
-c "init" `# Tell OpenOCD we're done with setup` \
-c "reset halt" `# reset the chip and halt the CPU` \
-c "flash write_image erase build/zephyr/zephyr.hex" `# Flash our firmware image` \
-c "reset run" `# reset and run` \
-c "exit" `# reset and run`-
Service Uniform Type Identifier Assigned UUID Rainbow Flying disc nz.co.nzsmartie.services.rainbow_flying_disc d9a204a1-9ca4-41ec-9dd6-526d6c53c7fe-
Characteristic Uniform Type Identifier Assigned UUID Requirement Display Message d9a204a2-9ca4-41ec-9dd6-526d6c53c7feMandatory The message displayed on the flying disc when in motion.
Property Requirement Read Mandatory Write Mandatory Write Without Response Excluded Signed Write Excluded Reliable Write Excluded Notify Excluded Indicate Mandatory Writable Auxiliaries Excluded Broadcast Excluded
-