Sathish-Chandrasekaran-Pinayour / Eximius_Android_Workspace

Android Nougat (7.1.2) Bring Up and Stabilization on Raspberry Pi 3
0 stars 6 forks source link

BT connection is not stable during A2DP playback. #8

Open Sathish-Chandrasekaran-Pinayour opened 6 years ago

Sathish-Chandrasekaran-Pinayour commented 6 years ago

Issue : BT connection is not stable during A2DP playback. BT often gets disconnected and requires a system reboot to recover.

Steps to Reproduce :

  1. Flash the Android Nougat image for RPI 3.
  2. Enable WiFi and connect to an Access Point (Ensure to set the current Date & Time).
  3. Pair & Connect to a wireless BT Speaker. Scenario 1: Settings --> Sound --> Toggle the Volume Panel of Media/Alarm/Notifications tones. Scenario 2 Play a local/streaming video using VLC/Browser and play around by seeking the video.

Expected Result : The BT connection should be intact and the A2DP playback should be smooth.

Actual Result : BT connection is lost (BT becomes disabled). We are unable to enable it again. Need to restart the device to initiate BT connection.

Additional Notes :

  1. Issue in seen even if WiFi is not enabled. We need to have WiFi enabled to get logs since we are using adb over WiFi.
  2. The issue is not seen much with local music playback over A2DP.

Logcat: log_BT_A2DP_Connection_loss_Scenario 1.txt log_BT_A2DP_Connection_loss_Scenario 2.txt

girishbeximiusdesign commented 6 years ago

@Sathish-Chandrasekaran-Pinayour, We studied the issue from logcat and tried to reproduce it with simple scenario Turn On Wifi -> Turn on BT -> (Bluetooth crashed)

We attached logcat.

and analyzing this logcat we found that BT was crashing due to co-existence of BT and wifi on the same chip.

02-20 15:58:51.052 E/wpa_supplicant( 2123): wpa_driver_nl80211_driver_cmd: failed to issue private command: BTCOEXSCAN-START

the above error is occure before BT crash.

Next Experiment: Disable wifi completely and taking adb log via USB and whether the BT - COEXISTENCE issue occurs again or not.

Logcat : bt_crashlog.txt