This is an Ant+ to BLE (Bluetooth Low Energy) Bridging app for ANT+ Cycling Speed and Cadence (CSC) sensors and ANT+ heart rate sensors. The app will act as a Cycling speed/cadence and/or HR BLE sensor so other BLE device (phone, PC, Mac, tablet) can reads data from ANT+ sensors.
This is an Android app which reads ANT+ cycling speed/cadence (CSC) and/or heart rate sensors in the background (actually in an Android foreground service), and advertises itself as a Bluetooth Low Energy (BLE)
device which implements Cycling Speed and Cadence Profile (CSCP)
and Heart Rate Profile (HRP)
so that other devices can see this Android device as a Cycling Speed and Cadence Bluetooth and/or Heart Rate BLE sensor.
This is useful when you only have ANT+ CSC/HR sensors but you want to connect to them as BLE sensors (provided that you don't have an USB ANT+ stick around but happen to have an ANT+ enabled Android device like a Samsung phone).
Long hold on the sensors name on top of the screen to rescan for Ant+ devices after the "Start BLE bridging" button has been pressed. All sensors will automatically scan for Ant+ sources when the "Start BLE bridging" button is pressed.
I want to try out Zwift desktop version but I can't get a USB ANT+ Stick anywhere now in my country (due to the C-19 pandemic). So I decided to write one.
I can now sees my speed and cadence coming from ANT+ sensors on Zwift Mac without the need of extra hardware.
Special thanks to pinkemma who implements Heart Rate sensor profile so that this app also reads heart rate from ANT+ sensor and bridges it to bluetooth. (see PR #5 since 10/2020)
- Samsung Galaxy S8 (Android 9)
- Samsung Galaxy J5 2016 - Thanks louisJ20
- Samsung Galaxy S9 (Android 10) - Thanks pinkemma
- One Plus 7 Pro (Android 10)
- Garmin gen 1 ANT+ only speed and cadence sensor
- Garmin speed cadence combined sensor - Thanks louisJ20
- Garmin HRM-Run
- Garmin Fenix 5s with broadcasting mode on (ANT+ signal) - Thanks pinkemma
- Garmin 935 with broadcasting mode on (ANT+ signal)
- Zwift (Mac version)
- The Sufferfest (Mac version)
- limited testing. See Tested devices list above.
- more sensors?
- On my Samsung S8 sometimes the bluetooth PHY is messed up (for unknown reason). I have to reboot the phone to get it working. (When it doesn't work, the advertising reports success but actually you can't see any).
Code samples:
Spec and Document
- ANT+ Basic
- Introduction to Bluetooth low energy
- CH4 of Getting Started with Bluetooth Low Energy
- Bluetooth GATT Specifications
- Cycling Speed and Cadence Profile/Service
- Heart Rate Profile/Service
- Bluetooth Assigned numbers