nisargjhaveri / WirelessAndroidAutoDongle

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

Connect to usb after phone connection is available #35

Closed nisargjhaveri closed 5 months ago

nisargjhaveri commented 5 months ago

Seems like many head units have small timeouts that do not allow the entire Wireless AA connection process with phone.

Currently we wait first for the head unit to send the accessory start request to make sure it wants to use AA. Once that happens, we start the BT connection with the phone to start Wireless AA.

Instead of this, first try to connect to phone anyway. Once we have the phone ready with TCP connection, start the default gadget and wait for the accessory start request from head unit.