Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT+ Devices dropping out during use

Rank

Total Posts: 23

Joined 2013-02-06

PM

Just got back to "refreshing" my app CycleBike+ (https://www.thisisant.com/directory/cyclebike-plus/) or (http://www.cyclebikeapp.com/) after some months away and now see this issue in this Forum about ANT+ sensors dropping when blue tooth connecting. Phone is Sony Xperia Xperia Z1 compact D5503 running Android 5.1.1. My app continuously tries to connect to paired ANT+ sensors, but they are quickly dropped when a blue tooth connection is active, giving an error:

11-17 07:55:40.274 13562-13578/? E/System: Uncaught exception thrown by finalizer
11-17 07:55:40.274 13562-13578/? E/System: java.lang.IllegalStateException: Binder has been finalized!
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at com.dsi.ant.channel.ipc.aidl.IAntChannelAidl$Stub$Proxy.releaseChannel(IAntChannelAidl.java:568)
at com.dsi.ant.channel.ipc.aidl.AntChannelCommunicatorAidl.releaseChannel(AntChannelCommunicatorAidl.java:768)
at com.dsi.ant.channel.AntChannel.release(AntChannel.java:1110)
at com.dsi.ant.channel.AntChannel.finalize(AntChannel.java:1123)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:191)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:174)
at java.lang.Thread.run(Thread.java:818)


I have three other Android phones running different Android OS. I will test the blue tooth issue on them and report back.      
Rank

Total Posts: 23

Joined 2013-02-06

PM

Update from previous post. Tried battery optimization on the Sony Xperia Z1 Compact (Stamina, UltraStamina, Low-battery and Queued background mode) all off showed no difference in ANT sensors dropping out.

CycleBike+ app runs a MultiDevice Search periodically to find active sensors, then does requestAccess(). With Bluetooth active, I can either do MDS or connect to one ANT+ sensor. Multiple sensors also do not stay connected simultaneously. I've captured a Logcat file. PM me and I'll send the file with my findings.      
Rank

Total Posts: 23

Joined 2013-02-06

PM

Testing Sony Ericsson Active ST17a with CycleBike+ app (http://www.cyclebikeapp.com) (https://www.thisisant.com/directory/cyclebike-plus/)

No sensors drop out even with BT paired and connected, but still getting
11-18 07:46:50.417 5371-5379/? E/System: Uncaught exception thrown by finalizer
11-18 07:46:50.417 5371-5379/? E/System: java.lang.IllegalStateException: Binder has been finalized!
at android.os.BinderProxy.transact(Native Method)
at com.dsi.ant.channel.ipc.aidl.IAntChannelAidl$Stub$Proxy.releaseChannel(IAntChannelAidl.java:568)
at com.dsi.ant.channel.ipc.aidl.AntChannelCommunicatorAidl.releaseChannel(AntChannelCommunicatorAidl.java:768)
at com.dsi.ant.channel.AntChannel.release(AntChannel.java:1110)
at com.dsi.ant.channel.AntChannel.finalize(AntChannel.java:1123)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:182)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
at java.lang.Thread.run(Thread.java:856)


PM me for logcat result for this test      
Rank

Total Posts: 23

Joined 2013-02-06

PM

Testing Sony Ericsson Xperia Mini ST15a running Android 4.0.4, (CyanogenMod 9.1.0-smultron) with CycleBike+ app (http://www.cyclebikeapp.com) (https://www.thisisant.com/directory/cyclebike-plus/)

No sensors drop out even with BT paired and connected, but still getting
11-19 08:30:56.464 26297-26306/com.dsi.ant.plugins.antplus E/System: Uncaught exception thrown by finalizer
11-19 08:30:56.464 26297-26306/com.dsi.ant.plugins.antplus E/System: java.lang.IllegalStateException: Binder has been finalized!
at android.os.BinderProxy.transact(Native Method)
at com.dsi.ant.channel.ipc.aidl.IAntChannelAidl$Stub$Proxy.releaseChannel(IAntChannelAidl.java:568)
at com.dsi.ant.channel.ipc.aidl.AntChannelCommunicatorAidl.releaseChannel(AntChannelCommunicatorAidl.java:768)
at com.dsi.ant.channel.AntChannel.release(AntChannel.java:1110)
at com.dsi.ant.channel.AntChannel.finalize(AntChannel.java:1123)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:185)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
at java.lang.Thread.run(Thread.java:856)


logcat for this event available      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

@driscollta, I will PM for the logs. I think I will might need to send you some services with extra debug info enabled too. However, the binder finalized exception is a false lead; it is an expected error that occurs when closing/cleaning up a channel while there is still traffic occurring or if the other side has already cleaned up. It probably should have been caught and just logged instead of left unhandled though, just hasn't been done yet.      

Signature

Dynastream Developer

Rank

Total Posts: 2

Joined 2017-01-30

PM

Phone: Sony XPERIA Z5 Compact E582
Android: 6.0.1
ANT+ device: Soft Strap Premium Heart Rate Monitor. PART NUMBER: 010-10997-07
App: Endomondo v12.1.12
Issue: Connects initially, but after a few minutes of running (random number of minutes) it looses connection.

Apps that is running simultaneously is Spotify (7.5.0.1076) and bluetooth sender/reciever (SBH20)      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

@bearly, if you turn Spotify off does it still disconnect randomly?      

Signature

Dynastream Developer

Rank

Total Posts: 2

Joined 2017-01-30

PM

I will test out some use cases and come back to you. Thank you for the quick response.      
Rank

Total Posts: 2

Joined 2016-09-03

PM

Hello. First of all, sorry for my english.

As i wrote previously in this forum, i had continuous signal loses with my ANT+ sensors (cadence and HRM), and RunGPS or Endomondo. So i decided to use BT sensor for HRM and forget to register cadence, because i thought it was Android problem, not apps problem.

But today i installed a little app, called "Pulsometro RR" just for use in elliptical training, and i take a surprise because HRM doesn't disconnect (has a sound alarm if disconnected)
https://play.google.com/store/apps/details?id=com.beetlesoft.pulsometer&hl=es

To test it in a longer training, i used both apps, setting sound alarm in the little app (to notice when disconnected) but this app holds connection and bigger apps disconnect as usual.

So maybe is not an Android problem

P.D.: When i first wrote in this forum i had Android 6, now have Android 7 with same device (Sony Xperia Z5 Compact)