hammerheadnav / karoo-ext

Android library for Karoo System extensions and interactions
Apache License 2.0
16 stars 1 forks source link

Effect to request ANT #8

Open valterc opened 5 days ago

valterc commented 5 days ago

Hi, I see there's an effect RequestBluetooth that ensures that Bluetooth will be enabled, so an app can use Bluetooth even if Karoo OS is not using any Bluetooth connection.

Can a similar new effect be added to request that ANT is enabled in the same circumstances? Or is it assumed that ANT is always enabled and available for any app using extensions (even when Karoo is not using any ANT sensor)?

Thank you.

brentnd commented 5 days ago

The nRF chip for ANT has a few other functions. On the new Karoo, the nRF chip is never turned off but on K2, if there are no ANT+ sensors in the Hammerhead sensors list and no phone is paired, the radio is optimized to shut off. Therefore, it does make sense to add RequestANT like you suggest. I'll capture this as a new effect to implement.