BimmerGestalt / AAIdrive

Implementations of some Android Auto features as unofficial IDrive apps
MIT License
531 stars 89 forks source link

Connection dropping #662

Closed beartrackrecords closed 1 year ago

beartrackrecords commented 1 year ago

Hello! For some reason, connection has started dropping a couple of times throughout the drive. Was previously pretty solid, so not sure what changed. I'm using Android 12 and all battery restrictions are off, for the apps and the phone. Not sure if this has anything to do with it, but noticed the message about being paused on the Aaidrive screen:

Screenshot_20230204-134007_AAIdrive

hufman commented 1 year ago

While AAIdrive is running in the background, it checks that it hasn't been paused or been killed unexpectedly. In the Background Pause case, it runs a timer every 4 seconds and will raise that alert if the timer hasn't fired for 10 seconds.

When the app connection breaks, please check the car's Apps checkbox to confirm if the Apps tunnel is still connected. In my experience, the connection usually breaks if the MyBMW/Mini app is shut down or paused, and the car will disconnect after 10 seconds if its keepalive messages are not handled.

Some phone brands are very aggressive about pausing and shutting down programs in the background. Please check for brand-specific battery optimization settings, if the standard Android settings are already configured.

LACNR commented 1 year ago

I'm not sure if it has any relation to your expierence or with BMW and AAID, but what I noticed of few weeks ago during a road trip, that the sound spontanously (about every 20 minutes) stopped even though all connections were still active and on iDrive Display music was also playing just no sound via Bluetooth. Now, prior I enabled the setting of TomTom AmiGo Navi to auto-start when a bluetooth connection is established using the app for navigation this time looks nicer and shows all speedtraps, speed restrictions and so on. One solution was reconnecting USB and Bluetooth. We had the same problem on the drive home, I couldn't figure it out but then at the gas station I came up to disable the auto-start of the Navi app upon Bluetooth connection and never had the Problem on the drive. Last week on another trip I used the same app without auto-start, no problems with sound muting.

My guess could be, if you have any App enabled to auto-start upon Bluetooth connection could cause the sound muting. Though in my case connection itself was never lost, there's just no sound.