nisargjhaveri / WirelessAndroidAutoDongle

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

Xiaomi cant connect to bluetooth #14

Closed leifj79 closed 6 months ago

leifj79 commented 8 months ago

Have an xiaomi device and i cant connect to the rpi 2 zero by bluetooth using the latest code! Have tested BluemediaGER fork and there i can connect and it shows up correctly but then it cant connect to my cars android auto. The bluetooth doesn't show up unless i tell my phone to not show names on bluetooth and then i can see the mac adress of the device but pairing fails!

nu00 commented 8 months ago

Try to build the project from source, with #7 have been made some changes in VID and PID of the USB mode that might help you with your problem

leifj79 commented 8 months ago

Im building from ca7859b and will be back with logs

nisargjhaveri commented 8 months ago

You can also try the latest build on main from Github Actions.

leifj79 commented 8 months ago

Took the latest image 0.2 for Raspberry pi zero 2 w Took one dmesg to see what the state of things are and cat from var/log/mes...

Tested with one samsung older phone, but no bt device and same with my Xiaomi I have a german car, a passat from 2016

messages.txt dmesg.txt

The cable works atleast if i plug in the device in to a windows device a AAwireless device is recognized

nisargjhaveri commented 8 months ago

The logs suggests that the headunit is not recognising and not sending the accessory start request. I'm out of ideas on why this would happen if Android Auto works in the car, as we're very close to what Pixel devices report via USB.

leifj79 commented 8 months ago

The head unit shows it's connected to Android Auto

leifj79 commented 8 months ago

I guess its my head unit that is to blame, i have to choose between android auto and mirrorlink and i think that is the issue :( haven't found any way to disable mirrorlink in the car, but newer models dosnt have mirrorlink and it seems fine!

nisargjhaveri commented 8 months ago

I guess its my head unit that is to blame, i have to choose between android auto and mirrorlink and i think that is the issue :(

It is technically supposed to work once you select Android Auto. I guess #2 also discusses about a headunit that has similar options for Android Auto and MirrorLink.

leifj79 commented 8 months ago

Yeah the BT starts and my phone tried to connect but doesn't connect before the head unit resets

nisargjhaveri commented 8 months ago

Right, you can maybe try out the suggestion here: https://github.com/nisargjhaveri/AAWirelessDongle/issues/2#issuecomment-1783434263

Though, this looks like a common issue. Let me try to make a permenant change to fix the timeouts.

leifj79 commented 7 months ago

Tested BluemediaGER version and it works, now I'm going wireless with my Passat 🥳

leifj79 commented 6 months ago

Works with suggested solution

leifj79 commented 6 months ago

Had some new problems but I built from the tree optimistic_phone_connection and my wolksvagen accepts it without any issues! Awsome work!