BlueWave Studio forum
Android Auto not connecting - Printable Version

+- BlueWave Studio forum (https://bluewavestudio.io/community)
+-- Forum: OpenAuto Pro (https://bluewavestudio.io/community/forum-86.html)
+--- Forum: Android Auto (https://bluewavestudio.io/community/forum-79.html)
+--- Thread: Android Auto not connecting (/thread-1735.html)

Pages: 1 2


Android Auto not connecting - Chaminda13 - 06-27-2020

Hi
I can get android auto to connect with my phone. Tried a few times, different phones etc..
Nothing happens - When I click USB (under android auto) it doesn't seem to have even detected the phone (Nothing under Udev either)

Also, the program crashes a lot (even when the phones not connected). Either just freezes or goes back to the Pi desktop 
Here's my setup

Pi3b
Open auto pro 9
IQAudio Pi-DAC+
USB microphone
USB Bluetooth adapter (CSR chip)


Phone
Samsung S9 , Android 10 
Android Auto 5.3.501644

I've attached the openauto.log file


RE: Android Auto not connecting - BlueWave - 06-27-2020

Looks like log file has not been attached. What power supply do you use? Did you try connecting phone with another cable? Did you try setting different USB configuration on your phone(e.g. file transfer)? What do you mean by crashes?


RE: Android Auto not connecting - Chaminda13 - 06-27-2020

[2020-06-27 11:49:36.980603] [0x70a2f010] [warning] [OpenAuto] [Cache] failed to read configuration file: .openauto/cache/openauto_cache.ini, error: .openauto/cache/openauto_cache.ini: cannot open file
[2020-06-27 11:49:36.985189] [0x70a2f010] [warning] [OpenAuto] [RecentAddressesList] failed to read configuration file: .openauto/cache/openauto_wifi_recent.ini, error: .openauto/cache/openauto_wifi_recent.ini: cannot open file. Empty list will be used.
[2020-06-27 11:49:36.985983] [0x70a2f010] [warning] [OpenAuto] [ObdConfiguration] failed to read configuration file: .openauto/config/openauto_obd_pid_info.ini, error: .openauto/config/openauto_obd_pid_info.ini: cannot open file. Empty list will be used.
[2020-06-27 11:49:36.986180] [0x70a2f010] [warning] [OpenAuto] [ObdConfiguration] failed to read configuration file: .openauto/config/openauto_obd_sport_dashboard.ini, error: .openauto/config/openauto_obd_sport_dashboard.ini: cannot open file. Empty list will be used.
[2020-06-27 11:49:36.986324] [0x70a2f010] [warning] [OpenAuto] [ObdConfiguration] failed to read configuration file: .openauto/config/openauto_obd_detailed_dashboard.ini, error: .openauto/config/openauto_obd_detailed_dashboard.ini: cannot open file. Empty list will be used.
[2020-06-27 11:49:37.052872] [0x70a2f010] [info] [OpenAuto] [VolumeManager] looking for default mixer.
[2020-06-27 11:49:37.053175] [0x70a2f010] [info] [OpenAuto] [VolumeManager] automatic mixer selection, id: 0x1e2b1f8
[2020-06-27 11:49:37.406086] [0x70a2f010] [debug] [OpenAuto] [TemperatureSensorController] sensor is not configured.
[2020-06-27 11:49:37.411984] [0x652fa140] [info] [OpenAuto] [AndroidAutoManager] initialized display region width: 1920, height: 1052, x: 0, y: 28
[2020-06-27 11:49:37.412220] [0x65afb140] [info] [OpenAuto] [AndroidAutoManager] initialized screen geometry width: 1920, height: 1052, x: 0, y: 28
[2020-06-27 11:49:37.413554] [0x70a2f010] [error] [OpenAuto] [StorageMusicManager] selecting directory error: filesystem error: recursive directory iterator cannot open directory: No such file or directory
[2020-06-27 11:49:37.413690] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] starting bluetooth manager service.
[2020-06-27 11:49:37.414405] [0x70a2f010] [info] [OpenAuto] [DayNightController] openauto manual mode changed, mode: 1
[2020-06-27 11:49:37.414499] [0x70a2f010] [debug] [OpenAuto] [RearCameraController] start.
[2020-06-27 11:49:38.369745] [0x662fc140] [info] [OpenAuto] [AndroidAutoManager] triggering USB connection.
[2020-06-27 11:49:38.369930] [0x662fc140] [info] [OpenAuto] [AndroidAutoManager] wait for usb device.
[2020-06-27 11:49:38.370747] [0x662fc140] [info] [OpenAuto] [AndroidAutoManager] usb start, No AOAP device detected.
[2020-06-27 11:49:38.383715] [0x70a2f010] [info] [OpenAuto] [OpenAuto] initializing interprocess routines.
[2020-06-27 11:49:38.384284] [0x70a2f010] [info] [OpenAuto] [OpenAuto] initialized interprocess routines.
[2020-06-27 11:49:38.390155] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemsList] telephony availability changed: true
[2020-06-27 11:49:38.390355] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemsList] looking up modems, availability: true
[2020-06-27 11:49:38.390444] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemsList] looking up modem, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F
[2020-06-27 11:49:38.396592] [0x70a2f010] [info] [OpenAuto] [BaseEqualizerManager] server address call finished, result: 0
[2020-06-27 11:49:38.396859] [0x70a2f010] [info] [OpenAuto] [BaseEqualizerManager] connecting to server: unix:path=/run/user/1000/pulse/dbus-socket
[2020-06-27 11:49:38.398075] [0x70a2f010] [info] [OpenAuto] [BaseEqualizerManager] connection result: true
[2020-06-27 11:49:38.401082] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] bluetooth service start finished, value: 2, error: 0
[2020-06-27 11:49:38.404466] [0x652fa140] [info] [OpenAuto] [AndroidAutoManager] wait for usb device.
[2020-06-27 11:49:39.404904] [0x70a2f010] [info] [OpenAuto] [LadspaEqualizerManager] get sink by name call finished, result: 0
[2020-06-27 11:49:39.405542] [0x70a2f010] [info] [OpenAuto] [LadspaEqualizerManager] sink path: /org/pulseaudio/core1/sink1, connection: 0x1e2c798
[2020-06-27 11:49:39.455402] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemsList] found hfp modem, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F, serial: 8C:83:E1:BA:2F:7F, name: Galaxy S9
[2020-06-27 11:49:39.532209] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] bluetooth manager start finished, value: 0
[2020-06-27 11:49:39.537938] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] obex service start finished, value: 2, error: 0
[2020-06-27 11:49:39.565509] [0x70a2f010] [info] [OpenAuto] [Phonebook] obex manager operational changed, value: true
[2020-06-27 11:49:39.565686] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] obex manager start finished, value: 0
[2020-06-27 11:49:39.565788] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] registering profile: /io/bluewavestudio/openautopro/prap
[2020-06-27 11:49:39.591758] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] registering profile: /io/bluewavestudio/openautopro/aawp
[2020-06-27 11:49:39.605049] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemConnector] looking for any connected modem.
[2020-06-27 11:49:39.605433] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemConnector] setting current modem, serial: 8C:83:E1:BA:2F:7F, name: Galaxy S9
[2020-06-27 11:49:39.605530] [0x70a2f010] [info] [OpenAuto] [VoiceCallController] modem connected, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F, name: Galaxy S9, serial: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:39.605586] [0x70a2f010] [info] [OpenAuto] [TelephonyController] modem connected, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F, name: Galaxy S9, serial: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:39.612157] [0x70a2f010] [warning] [OpenAuto] [FavoriteContactsList] failed to read configuration file: .openauto/cache/hfp/favorites_2677507128.ini, error: .openauto/cache/hfp/favorites_2677507128.ini: cannot open file. Empty list will be used.
[2020-06-27 11:49:39.627751] [0x70a2f010] [info] [OpenAuto] [TelephonyManager] modem connected, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F, name: Galaxy S9, serial: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:40.202807] [0x70a2f010] [info] [OpenAuto] [Phonebook] modem connected, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F, name: Galaxy S9, serial: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:40.203161] [0x70a2f010] [info] [OpenAuto] [Phonebook] resync contacts, serial: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:40.203265] [0x70a2f010] [info] [OpenAuto] [Phonebook] starting phonebook transfer.
[2020-06-27 11:49:40.206391] [0x70a2f010] [info] [OpenAuto] [VoiceCallManager] modem connected, serial: 8C:83:E1:BA:2F:7F, path: /hfp/org/bluez/hci0/dev_8C_83_E1_BA_2F_7F
[2020-06-27 11:49:40.206875] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] monitoring device, address: 8C:83:E1:BA:2F:7F, rssi: -32768, paired: true, type: 0
[2020-06-27 11:49:40.206995] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] setting up current adapter, address: 00:1A:7DBig GrinA:71:13
[2020-06-27 11:49:40.207045] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] setting adapter to discoverable, address: 00:1A:7DBig GrinA:71:13
[2020-06-27 11:49:40.216257] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] setting last connected bluetooth address, address: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:40.216785] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] stopping discovery.
[2020-06-27 11:49:40.216868] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] setting adapter to not discoverable, address: 00:1A:7DBig GrinA:71:13
[2020-06-27 11:49:40.222296] [0x70a2f010] [info] [OpenAuto] [BT::Network] device connected, address: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:40.225521] [0x70a2f010] [info] [OpenAuto] [A2DPManager] device connected, address: 8C:83:E1:BA:2F:7F
[2020-06-27 11:49:40.225733] [0x70a2f010] [info] [OpenAuto] [A2DPManager] setting up media player, handle: 0x2349330
[2020-06-27 11:49:40.226030] [0x70a2f010] [info] [OpenAuto] [A2DPManager] player status changed, status: 2
[2020-06-27 11:49:40.265616] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] profile: /io/bluewavestudio/openautopro/prap, registration result: 0
[2020-06-27 11:49:40.265764] [0x70a2f010] [info] [OpenAuto] [BluetoothSubsystem] profile: /io/bluewavestudio/openautopro/aawp, registration result: 0
[2020-06-27 11:49:44.366833] [0x70a2f010] [info] [OpenAuto] [Phonebook] obex session added, serial: 8C:83:E1:BA:2F:7F, session: /org/bluez/obex/client/session0
[2020-06-27 11:49:45.054673] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, start, serial: 8C:83:E1:BA:2F:7F, target: pb
[2020-06-27 11:49:45.055165] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, target selection, session: /org/bluez/obex/client/session0
[2020-06-27 11:49:45.062560] [0x70a2f010] [info] [OpenAuto] [Phonebook] obex session creation completed, serial: 8C:83:E1:BA:2F:7F, result: 0
[2020-06-27 11:49:46.960463] [0x70a2f010] [info] [OpenAuto] [A2DPManager] player status changed, status: 0
[2020-06-27 11:49:46.960843] [0x70a2f010] [debug] [OpenAuto] [AudioFocusManager] handle gain :: first focused, stream: 1
[2020-06-27 11:49:47.103956] [0x70a2f010] [debug] [OpenAuto] [VolumeManager] setting volume mode: 1
[2020-06-27 11:49:52.458631] [0x70a2f010] [info] [OpenAuto] [AudioFocusManager] requested, stream: 1, type: 0, result: true
[2020-06-27 11:49:52.458801] [0x70a2f010] [info] [OpenAuto] [A2DPManager] status changed, audio focus gained.
[2020-06-27 11:49:54.218793] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, target selection completed, serial: 8C:83:E1:BA:2F:7F, target: pb, error: 0
[2020-06-27 11:49:54.219132] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, pull
[2020-06-27 11:49:54.298196] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, target pull completed, serial: 8C:83:E1:BA:2F:7F, target: pb, error: 0
[2020-06-27 11:49:54.298477] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, creating obex transfer, path: /org/bluez/obex/client/session0/transfer0
[2020-06-27 11:49:54.432402] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemsList] looking up modem, path: /hfp/org/bluez/hci1/dev_8C_83_E1_BA_2F_7F
[2020-06-27 11:49:54.459590] [0x70a2f010] [info] [OpenAuto] [A2DPManager] player status changed, status: 2
[2020-06-27 11:49:56.234780] [0x70a2f010] [info] [OpenAuto] [PhonebookTransfer] 0x0x7ea15328, obex transfer status changed, serial: 8C:83:E1:BA:2F:7F, target: pb, status: 4
[2020-06-27 11:49:56.236127] [0x70a2f010] [info] [OpenAuto] [Phonebook] contacts transfer failed.
[2020-06-27 11:50:02.519487] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 8C:83:E1:BA:2F:7F, rssi: -32768, paired: true, type: 18
[2020-06-27 11:50:02.523470] [0x70a2f010] [info] [OpenAuto] [HandsFreeModemsList] modem removed, path: /hfp/org/bluez/hci1/dev_8C_83_E1_BA_2F_7F
[2020-06-27 11:50:30.697609] [0x65afb140] [info] [OpenAuto] [AndroidAutoManager] triggering USB connection.
[2020-06-27 11:50:30.697873] [0x65afb140] [info] [OpenAuto] [AndroidAutoManager] wait for usb device.
[2020-06-27 11:50:30.698516] [0x65afb140] [info] [OpenAuto] [AndroidAutoManager] usb start, No AOAP device detected.
[2020-06-27 11:50:30.700285] [0x662fc140] [info] [OpenAuto] [AndroidAutoManager] wait for usb device.
[2020-06-27 11:50:49.909697] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 00:04:4B:CD:81:91, rssi: -86, paired: false, type: 6
[2020-06-27 11:50:49.913142] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 6F:5D:FC:96:1B:8E, rssi: -73, paired: false, type: 18
[2020-06-27 11:50:49.914937] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 40:CB:C0:CB:9A:A0, rssi: -89, paired: false, type: 18
[2020-06-27 11:50:49.932595] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 1E:50:23:38:8E:08, rssi: -32768, paired: false, type: 18
[2020-06-27 11:50:49.935012] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 4C:41:E4:3B:3A:3E, rssi: -89, paired: false, type: 18
[2020-06-27 11:50:49.936316] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 51:AA:5F:0E:AC:CF, rssi: -86, paired: false, type: 18
[2020-06-27 11:50:49.937919] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 5D:8F:97Big GrinF:3C:99, rssi: -91, paired: false, type: 18
[2020-06-27 11:50:49.939431] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 1A:6E:42:BB:33Big Grin5, rssi: -90, paired: false, type: 18
[2020-06-27 11:50:49.941384] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: B8:27:EB:6FBig Grin0:03, rssi: -39, paired: false, type: 18
[2020-06-27 11:50:49.942783] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 72:66:30:C8:74:EB, rssi: -75, paired: false, type: 18
[2020-06-27 11:50:49.943405] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 57:47:BA:6C:AE:9B, rssi: -93, paired: false, type: 18
[2020-06-27 11:50:49.943830] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 46:0CBig GrinA:66:CD:8F, rssi: -86, paired: false, type: 18
[2020-06-27 11:50:49.944862] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 58:B4:88:F7:41:5F, rssi: -92, paired: false, type: 18
[2020-06-27 11:50:49.945543] [0x70a2f010] [info] [OpenAuto] [DeviceConnectionManager] device removed, address: 51:41:B8:19:B7:8E, rssi: -92, paired: false, type: 18

I couldn't attached the file - Seems to give an error

I've tried different cables, Also went into USB setting and set it to File transfer (under developer options)
I'm using a standard 2.5a power supply


RE: Android Auto not connecting - BlueWave - 06-27-2020

From provided logs looks like phone is even not detected at USB bus. Looks like an issue with USB on PI or phone side. Did you try with another PI or phone?


RE: Android Auto not connecting - Chaminda13 - 06-27-2020

Hi
I've tried it on 2 different Pis, 2 different phones

Any idea why the program crashes a lot? I haven't even connected the phone,, just browsing menus when it crashes. Also quite slow to respond when naviagating menus


RE: Android Auto not connecting - BlueWave - 06-27-2020

(06-27-2020, 09:55 PM)Chaminda13 Wrote: Hi
I've tried it on 2 different Pis, 2 different phones

Any idea why the program crashes a lot? I haven't even connected the phone,, just browsing menus when it crashes. Also quite slow to respond when naviagating menus

We asked in previous post what do you mean by crashing. What screen do you use? What resolution? Please post content of /boot/config.txt file.

Please not that Waveshare screens are not compatible with latest Raspberry PI OS version because they cannot be used with FKMS GPU driver. Disabled FKMS driver will lead to FPS drop and interface slowness that you mentioned. The only way is to replace screen with compatible one.


RE: Android Auto not connecting - Chaminda13 - 06-27-2020

Hi
I'm using the HDMI output - using a normal computer screen as my test bench. Using a wireless keyboard/mouse.

Crashing - I would click on a menu option and it would get stuck/frozen.. I have to disconnect the power and reconnect it.


RE: Android Auto not connecting - BlueWave - 06-28-2020

Please lower the resolution. Raspberry PI 3B has very limited GPU resources and amount of RAM.


RE: Android Auto not connecting - Chaminda13 - 06-28-2020

Hi
I tried disabling IQaudio  (also Disabled the onboard Bluetooth). reduced the resolution to 480p

I still can't get android auto to connect. UDEV doesn't' seem to detect it.
On one occasion I got a an error "Couldn't find matching udev device" then crashed. 


RE: Android Auto not connecting - BlueWave - 06-28-2020

(06-28-2020, 08:13 AM)Chaminda13 Wrote: Hi
I tried disabling IQaudio  (also Disabled the onboard Bluetooth). reduced the resolution to 480p

I still can't get android auto to connect. UDEV doesn't' seem to detect it.
On one occasion I got a an error "Couldn't find matching udev device" then crashed. 

Looks like a hardware problem.