{"id":17055585,"url":"https://github.com/tuna-f1sh/tailwind","last_synced_at":"2025-03-23T06:16:31.218Z","repository":{"id":209812928,"uuid":"724600285","full_name":"tuna-f1sh/tailwind","owner":"tuna-f1sh","description":"BLE remote for Wahoo Headwind as an exploration into embassy-rs and embassy-rs/nrf-softdevice","archived":false,"fork":false,"pushed_at":"2023-12-10T14:19:38.000Z","size":134,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T12:44:26.362Z","etag":null,"topics":["nordicsemi","rust-embedded","softdevice","wahoo"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuna-f1sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-28T12:16:28.000Z","updated_at":"2024-12-02T16:56:56.000Z","dependencies_parsed_at":"2023-12-10T14:23:46.248Z","dependency_job_id":"5cdc91b9-8798-4664-b68e-2aba4a084261","html_url":"https://github.com/tuna-f1sh/tailwind","commit_stats":null,"previous_names":["tuna-f1sh/tailwind"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuna-f1sh%2Ftailwind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuna-f1sh%2Ftailwind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuna-f1sh%2Ftailwind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuna-f1sh%2Ftailwind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuna-f1sh","download_url":"https://codeload.github.com/tuna-f1sh/tailwind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061375,"owners_count":20554563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nordicsemi","rust-embedded","softdevice","wahoo"],"created_at":"2024-10-14T10:18:38.465Z","updated_at":"2025-03-23T06:16:31.197Z","avatar_url":"https://github.com/tuna-f1sh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"BLE remote for [Wahoo Headwind](https://eu.wahoofitness.com/devices/indoor-cycling/accessories/kickr-headwind) using [embassy-rs/nrf-softdevice](https://github.com/embassy-rs/nrf-softdevice).\n\nCycles modes and speed setpoint in sync with front-panel/App control. The system works from my reverse engineering the simple BLE protocol with WireShark. It's not perfect; the protocol state notify is cyclic rather than actual notify so can represent an old state rather than expected setpoint. The remote handles this well enough for this task though.\n\nhttps://github.com/tuna-f1sh/tailwind/assets/1886746/1fe502b9-5f74-41d0-b3a3-664f1ef39549\n\n## Requires\n\n* nRF52840 board (using nRF52840dk) or Feather nRF52840 (will require JLink); can be ported to other nrf5XXXX but these are my targets.\n* NeoKey Wing for final assembly and [case](https://learn.adafruit.com/deco-two-key-keypad-macropad-circuitpython-feather/build-the-deco-keypad): `--features=feather_neokey`.\n* `cargo install probe-rs -F=cli`\n\n## Setup\n\n1. Download SoftDevice S140 from Nordic's website [here](https://www.nordicsemi.com/Software-and-tools/Software/S140/Download). Supported versions are 7.x.x\n2. Program SoftDevice with: `probe-rs download --chip nrf52840 --format hex s140_nrf52_7.X.X_softdevice.hex`\n3. Run `cargo run`\n\nBy default the DEFMT_LOG level is 'info' (set in ./cargo/config). For debugging use `DEFMT_LOG=debug cargo run`.\n\nTo flash build: `cargo flash --release --chip nRF52840_xxAA`.\n\n## Usage\n\nThe default build will scan for BLE devices and use the first device with advertisement data name (0x09) starting with 'HEADWIND' (default Wahoo Headwind name) - the Headwind service UUID is not in advertisement packet unfortunately.\n\nTo use a fixed address, change the `HEADWIND_ADDR` const in './src/main.rs' and use the `--features=fixed_addr`.\n\nOnce connected, the buttons control the Headwind mode:\n\n* Button 1: Next mode = Off -\u003e Heartrate -\u003e Manual .. STEP,100,STEP -\u003e Off.\n* Button 2: Previous mode = Off \u003c- Heartrate \u003c- Manual .. 100,STEP,-STEP \u003c- Off.\n\nThe current operating mode and speed setpoint are maintained via the notify characteristic so if changed by the front-panel or App, the buttons will cycle from that updated mode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuna-f1sh%2Ftailwind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuna-f1sh%2Ftailwind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuna-f1sh%2Ftailwind/lists"}