nisargjhaveri / WirelessAndroidAutoDongle

Use Wireless Android Auto with a car that supports only wired Android Auto using a Raspberry Pi.
MIT License
706 stars 82 forks source link

Keep on searching for android auto - First time setting up with Raspberry Pi Zero 2W #171

Open deepakhadiya opened 1 month ago

deepakhadiya commented 1 month ago

Car - Hyundai i10 nios Sportz 2022 model (Having wired android auto) mobile - Oneplus6T Board - Raspberry Pi Zero 2W (From Silverlineelectronics)

I have followed all the steps and faced multiple issues to connect with bluetooth initially. But when i use micro usb power port of board then i am able to connect Bluetooth and wifi. also able to see androidauto connected and searching for android auto as this will not work as we have used power port we need to use usb port of board (second).

When i use the usb port of board (second) it will connect the bloetooth but wifi keep on assigning ip address never able to see the andoid auto connected.

Which means with usb port it is not able to get connected. i have also followed all steps multiple times. restarted car many times. Also tried with all 3 version of raspberrypizero2w-sdcard.img.xz v0.4.1 v0.4.0 v0.3.1

Let me know what should be done from my side.

sasha7460 commented 1 month ago

i am facing similar problem with my connection as well but i am using zero W Car - TATA Altroz iturbo 2021 model (Having wired android auto) mobile - SAMSUNG S23 Ultra Board - Raspberry Pi Zero W (From Silverlineelectronics)

i have successfully flashed the R Pi zero w with the image using balenaEtcher. i connected my phone to the car and started Android Auto in my phone. now i connected the R Pi to the car, with data cable connected to the data port of R pi. i am able to connect my phone to both the bluetooth and wireless hotspot of R pi, though the Bluetooth connection is erratic and gets disconnected most of the times.

This initiates Android Auto from phone, but i see Device error message from my car's IVI.

Any suggestions on how to resolve?

I tried using an additional cable for power as discussed in some of the solutions, but still same.

20240905_171826.jpg

Screenshot_20240905_171917_Settings.jpg

nisargjhaveri commented 1 month ago

When i use the usb port of board (second) it will connect the bloetooth but wifi keep on assigning ip address never able to see the andoid auto connected.

Some are having an issue where the connecting the USB port alone is not able to provide enough power to the board and it require connecting another cable to power usb port. It generally results in reboot, but some reports suggests weird behaviour in BT/Wifi connection as well. I don't personally know how safe is it to connect both the cables on the RPi, but seems to work based on some of the other issues.

sbala05 commented 1 month ago

https://forums.raspberrypi.com/viewtopic.php?t=223891

Raspberry Pi forums are saying do not connect both PWR and USB as the power lines are directly connected.

I have the same problem in one of my cars. I see that the Pi zero 2W is rebooting (flickering green light) and the car never connect. In another car it works with no issues

MridulChhajer commented 1 month ago

@deepakhadiya does the display on your i10 shows android auto ? Mine connects to the wifi and bluetooth but does not display the android auto . Tried multiple cables but no luck . IMG_20240904_223035709_Original

deepakhadiya commented 1 month ago

@deepakhadiya does the display on your i10 shows android auto ? Mine connects to the wifi and bluetooth but does not display the android auto . Tried multiple cables but no luck . IMG_20240904_223035709_Original

There are two scenarios i have tried but android auto doesn't appear on car head unit. 1) whith only usb port android auto keeps on searching. 2) with power and usb both port. i am able to see android auto connected in mobile but in car head unit no android auto shows up.

So actually same issue i am facing as per your screenshot.

nisargjhaveri commented 1 month ago

Please make sure you're using good quality data cable with the USB port (not PWR port). If the issue still persists, try to get the logs? It might help.

deepakhadiya commented 1 month ago

Hi @nisargjhaveri

I think it shouldn't be data cable issue because when i connected the board with laptop it is able to recognised as android auto. I have used two different data cable of ambrane company. I still try tomorrow with other cable as you suggested.

Can you please share how can i take logs, Can you please share complete DIY which will help community?

I have also checked in readme file with troubleshooting but i couldn't understand how to do it. i am new to this things.

Thank you for your response and support.

I hope you will find root cause of this issue.

deepakhadiya commented 1 month ago

Today I have tried with boat cable but no luck. I have also tried boat and ambrane cable with micro USB supported phone and that phone is able to connect with Android auto so I don't think it was cables issue. IMG_20240907_184008 Screenshot_20240907-183946 Screenshot_20240907-183934 Screenshot_20240907-183924

sasha7460 commented 1 month ago

i am facing similar problem with my connection as well but i am using zero W Car - TATA Altroz iturbo 2021 model (Having wired android auto) mobile - SAMSUNG S23 Ultra Board - Raspberry Pi Zero W (From Silverlineelectronics)

i have successfully flashed the R Pi zero w with the image using balenaEtcher. i connected my phone to the car and started Android Auto in my phone. now i connected the R Pi to the car, with data cable connected to the data port of R pi. i am able to connect my phone to both the bluetooth and wireless hotspot of R pi, though the Bluetooth connection is erratic and gets disconnected most of the times.

This initiates Android Auto from phone, but i see Device error message from my car's IVI.

Any suggestions on how to resolve?

I tried using an additional cable for power as discussed in some of the solutions, but still same.

20240905_171826.jpg

Screenshot_20240905_171917_Settings.jpg

i was able to get the log for this from the pi. log.pdf would this point to insufficient power supply for the unstable connection?

sasha7460 commented 1 month ago

[update]: i connected the board to a friend's innova hycross and it works flawlessly so i think the issue should be with the TATA Altroz's head unit. i will start a separate thread for this issue.

MridulChhajer commented 3 weeks ago

Any solution

Today I have tried with boat cable but no luck. I have also tried boat and ambrane cable with micro USB supported phone and that phone is able to connect with Android auto so I don't think it was cables issue. IMG_20240907_184008 Screenshot_20240907-183946 Screenshot_20240907-183934 Screenshot_20240907-183924

Did you find any solution to the problem ? Multiple good quality cables are also not working for me

Subramanian-SS commented 2 weeks ago

I have the same issue in my setup. The pi boots up and on connecting the USB to USB/OTG port. On pairing the device to the mobile, the connection succeeds and I see that the phones WiFi gets connected to the dongle. The Android Auto keeps trying to connect, and there are many "Device No Response" errors popping up on the car's screen.

Car: Nexon 2021 XZ+S - AAWired Enabled. Raspberry Pi Zero 2W running v0.4.1. in a 1 GB SD Card. Mobile connected - Moto G34 5G - Android 14. The issue is seen with or without additional power supplied via the PWR in the Pi02W.

The files below are the syslogs from my latest attempt this evening. AAWirelessSyslogMessages.log AAWirelessSyslogMessages2.log

I can confirm that the board is not rebooting as the ssh connection to the PI was not reset and I had tail -f on the syslog file. Any pointers to resolve this?

Subramanian-SS commented 2 weeks ago

A quick update. It works for me with a different cable. There was an old Bose cable lying around which was shorter (1 foot). I tried with OnePlus 10R and Moto G34 5G. Both work. Tried Voice Call, WhatsApp call, VLC, Waze, Maps and Google Assistant. All work.

Voice call when disconnected caused Android Auto to get disconnected as well. Do not have logs yet. Will try again and see if that repeats.