Ticket Created
over 4 years ago

WERETECH-10039

ANT+ Battery Status

The latest in the saga for Battery Status. I used an ANT+ dongle on my Windows Laptop, and paired it with the Eclipse Simulator. I tried both an older Garmin Cadence Sensor, and a brand new one (the one that does both ANT and BT). Same outcome. In both cases, the CIQ data field immediately gets Device State info. After maybe 30-40 seconds, the ProductInfo.serial number comes thru. Just like in real life when paired to a real Garmin Edge computer. But in both cases, even after several minutes, the Battery Status remains null.

When I pair the new cadence sensor to my actual Garmin Edge computer, the Battery Status does come up as OK within 15 seconds or so and then maybe 30 seconds later the Serial # info comes through.

Any clue why the polling code isn't seeing the Battery Status?

Oh, also, the State Update Listener is triggering, but the BatteryStatusListener is not.

Parents
  • Hey Kurev, just reporting back.  I added a bikeSpeed Listener class (including your onMessage function and appropriate initialisation at the start) into my app to test.  I can see my Speed Sensor in the "ANT+ Sensors" view under the simulator, though it does show a status with a grey circle (not sure what that means); I can see my sensor on my Fenix5+ and it reports Battery:  OK.  Running my app (and it's been running for 20 mins), I'm not seeing any messages at all coming out of the listener (except for one I added into initialize()).  Is that what you expected?  My Garmin sensor is definitely ANT+ (It's imprinted on the back).
Comment
  • Hey Kurev, just reporting back.  I added a bikeSpeed Listener class (including your onMessage function and appropriate initialisation at the start) into my app to test.  I can see my Speed Sensor in the "ANT+ Sensors" view under the simulator, though it does show a status with a grey circle (not sure what that means); I can see my sensor on my Fenix5+ and it reports Battery:  OK.  Running my app (and it's been running for 20 mins), I'm not seeing any messages at all coming out of the listener (except for one I added into initialize()).  Is that what you expected?  My Garmin sensor is definitely ANT+ (It's imprinted on the back).
Children
No Data