You are currently viewing Advanced ANT+

Advanced ANT+

new in version 1.02
– Connect by device ID directly on android
– Get lists of nearby device ID to unity on android without using the device picker
– Force device disconnect

NOW works on Android !

new in version 1.01
– multiple usb dongle support
– continuous scan example
– sensor prefabs rollover fix
– FE-C set slope % fix

NOW works on Android !

includes ready to use prefabs for Cadence , Heart rate, speed, Power Meter, Speed & Cadence and Fitness Equipment.

The android plugin can use the built-in device selection UI by setting the useAndroidUI boolean to true on the prefabs. On PC and Mac you can connect to the first device found or get a list of found sensors.

If you use multiple prefabs with autoconnect, the java plugin will queue the request and connect to the sensor one by one.

The ant+ Android plugin will let you connect to premade device profiles, you cannot create your own custom Ant devices with it or access anything the plugin is not coded for.

If you need any specific event from a device not implemented yet by the plugin, send me an email and I will add it if possile

Here are the events the android plugin forwards to Unity for each sensor for now:

All sensors :isDisconnected , StateChange , ConnectEvent

Cadence sensor: Receive_calculatedCadence

Speed & Cadence sensor: Receive_calculatedCadence, Receive_calculatedSpeed, Receive_CalculatedAccumulatedDistance

Speed sensor: Receive_calculatedSpeed, Receive_CalculatedAccumulatedDistance

Power Meter sensor: Receive_calculatedPower, Receive_calculatedCadence

Heart Rate sensor: Receive_computedHeartRate

Fitness Equipment: Receive_instantaneousHeartRate, Receive_elapsedTime, Receive_instantaneousSpeed, Receive_cumulativeDistance, Receive_trainer_instantaneousPowe, Receive_trainer_instantaneousCadence SetTrainerResistance(resitance %)
SetTrainerTargetPower(power)
SetTrainerSlope(slope%)
RequestTrainerCapabilities
SetTrainerUserConfiguration( weight…)

Minimum Android version: 5.0.1
Requires Unity 5.5.1 or higher.