https://github.com/b4ck5p4c3/openhaystack-zephyr
📍OpenHaystack for Nordic Semi built on Zephyr RTOS
https://github.com/b4ck5p4c3/openhaystack-zephyr
ble bluetooth findmy nordic nrf51 nrf52 openhaystack zephyr
Last synced: 5 months ago
JSON representation
📍OpenHaystack for Nordic Semi built on Zephyr RTOS
- Host: GitHub
- URL: https://github.com/b4ck5p4c3/openhaystack-zephyr
- Owner: b4ck5p4c3
- License: mit
- Created: 2022-08-14T00:22:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-18T19:15:12.000Z (over 3 years ago)
- Last Synced: 2025-02-24T02:13:55.323Z (about 1 year ago)
- Topics: ble, bluetooth, findmy, nordic, nrf51, nrf52, openhaystack, zephyr
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📍OpenHaystack on Zephyr
Implementation of OpenHaystack firmware on [Zephyr RTOS](https://zephyrproject.org).
## Requirements
[PlatformIO](https://platformio.org) for building and flashing targets, [Node.js](https://nodejs.org) to generate code snippets with advertising key included.
## Install
```shell
# Clone this repo
git clone https://github.com/b4ck5p4c3/openhaystack-zephyr
# Add a new accessory in OpenHaystack, then get the advertising key in Base64.
# Convert it to payload snippet using convert-key script
node convert-key.js YOUR-BASE64-ADVERTISING-KEY
# Paste payload snippet to the corresponding place in src/main.cpp file
nano src/main.cpp
# Adjust the Device Name in Zephyr configuration
nano zephyr/prj.conf
# Compile and upload
pio run --target=upload --environment=nrf51-jlink # nRF51 connected with J-Link
pio run --target=upload --environment=nrf51-stlink # nRF51 connected with ST-Link
pio run --target=upload --environment=nrf52-stlink # nRF52 connected with ST-Link
```
## Full erase
If you experience weird issues on nRF51, you may want to re-flash SoftDevice using commands below.
```shell
# Download and extract S110 8.0.0 SoftDevice somewhere.
# https://www.nordicsemi.com/Products/Development-software/S110/Download?lang=en#infotabs
# Go to directory with extracted S110, then erase and upload S110 to target
nrfjprog_bin --eraseall
nrfjprog_bin --program s110_nrf51_8.0.0_softdevice.hex
```