nisargjhaveri / WirelessAndroidAutoDongle

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

Jittery Music and Slow response on RPI 2w #185

Open hiteshgitz opened 6 days ago

hiteshgitz commented 6 days ago

Hi,

I am currently using Raspberry Pi 2W for this project and I was able to connect to Creta system. However, the music is very jittery (skips 2/3 seconds randomly) and also the UI is very slow in response. Do you know if there is a fix already for this?

Thanks for your code.

Thanks, Hitesh

ankitgoenka commented 5 days ago

I am using raspberry pi 2 w with a class 10 micro sd card on hyundai creta 2020 - used it today for the 1st time for 3hrs on a highway drive - with music playing via spotify and using Google maps - made and recieved few calls too.. worked fine.. till now

nisargjhaveri commented 5 days ago

Out best guess on the lag is wifi interference, or in some cases insufficient power from headunit so far as I've not seen any patterns of Headunit, RPi board or phone combination that always works badly. If you can, you can use a board with 5GHz wifi (Recommended RPi 4 for ease of setup) and see if that improves (no guarantees so far).

brijkishores commented 4 days ago

I am using RPI 2w with a heat sink for my Nexon. I had frequent disconnections initially, so I figured it was because of the cable. I changed to a much better short cable, which started working better. All functionalities work fine when connected, even the initial connection happens fast when I enter the car. The issue is sometimes there is some lag when playing music while using the Maps. When I receive calls I get disconnected from the head unit. For an hour it worked perfectly with some time lags in music playing but after an hour it kept disconnecting frequently from the Head unit. It was not a heating issue as I kept the top cover open and when I touched the heat sink it was just warm. I think there is some improvement required for the RPI 2w code. And I also want to thank the developer for the solution. If it gets better I think it will help a lot of people. Also just to understand, is it possible to connect a USB port to the head unit and a separate power cable to power the RPI 2 to check if that helps?

ten24bytes commented 3 days ago

@brijkishores can you share the link of a good short length micro USB cable? I'm unable to find one on Amazon. The reviews for most short cables are dicey on the part whether the cable supports data or not.

wsadzc commented 2 days ago

Hello, respected developer, I'm currently using both the Pi 4 and Pi Zero 2W interchangeably. Indeed, the Pi 4 doesn't experience the shaking and aforementioned issues (except when it starts to overheat, which then causes shaking and disconnection). The Pi Zero 2W does frequently encounter issues to the point of becoming unusable. (For instance, frequent operations on the car stereo screen, such as using navigation, can cause music to stutter or pause, eventually leading to instability and the car stereo disconnecting.) At this point, the phone screen displays a message indicating insufficient phone performance. These malfunctions only occur with the Pi Zero 2W. The Pi 4 runs well. Regardless, thank you to @nisargjhaveri for the development, allowing us to use it smoothly. I've been actively recommending it to my friends. Currently, everything is working very well, except for the aforementioned issues with the Pi Zero 2W, which are a bit troublesome. The above conversation was translated with the assistance of Claude.ai. I hope I've expressed my meaning clearly. Thank you.

brijkishores commented 2 days ago

@ten24bytes

I bought it a couple of years back from Amazon and couldn't find the product now when I searched for it. I think I bought from a friend's account so I don't have it in my order history as well.