nisargjhaveri / WirelessAndroidAutoDongle

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

laggy rpi zero 2 w #136

Open ccebrecos opened 1 month ago

ccebrecos commented 1 month ago

Tested the image with the Pi4 and works perfectly. But the image for the rpi zero 2 w it's laggy making it non functional.

Is there anything I can do to improve the performance?

Antho91 commented 1 month ago

I have the same experience. Also changing the channel (for wifi) does not help 😄. issues I had:

lob-star commented 1 month ago

Same. Mine was very hot and eventually started to boot loop faster and faster.

nisargjhaveri commented 1 month ago

Yeah, multiple people have reported similar issues with RPi 2 W. Someone with the issues need to debug what's going on. #66 has some more discussion around an similar issue.

ccebrecos commented 1 month ago

Tested with another car, this time is a Volkswagen Polo and works by far better. The first car was a Volkswagen Scirocco, newer by a couple of years, I was expecting to work better on a newer car.

So, I'd say it's something related to the car, maybe the power supply?

lob-star commented 1 month ago

Tested with another car, this time is a Volkswagen Polo and works by far better. The first car was a Volkswagen Scirocco, newer by a couple of years, I was expecting to work better on a newer car.

I'm running mine on a 2017 VW Golf R. It has the MIB 2.0 system.

Installed Software Train version: MST2_US_VW_P0628D Installed Software MU version: 0751 Part number: 3Q0035876A Software version: H28.28.133_STD2Nav_NAR

cardassianscot commented 1 month ago

If it helps, 0.31 didn't have the same issues. It had more issues connecting but once connected it was rock solid stable. 0.40 connected much more reliably but it's often virtually unusable on my pi zero 2 w. I can cope with the lag, it's the choppy audio that makes it unusable. So far using a pi 4 seems much better. (Using a mg5 EV)

ccebrecos commented 1 month ago

I tested 0.31 and works way more better with the same setup, without extreme lag, so now it's usable!

nisargjhaveri commented 1 month ago

This is very curious. Can you try latest main branch version? I'd like to pinpoint if the reason is because of the use of "dongle mode" or some other change that went in between? It'd help a lot if we can identify that.

ccebrecos commented 1 month ago

Sure. I'll give it a try and I'll let you know

cardassianscot commented 1 month ago

Sorry not in a position to compile this at the moment, but happy to try a prebuilt version.

nisargjhaveri commented 1 month ago

You can use rha artifacts from https://github.com/nisargjhaveri/WirelessAndroidAutoDongle/actions/runs/9421948282

Antho91 commented 1 month ago

I'm flashing it and will test it on my 1 hour drive :) (today)

ccebrecos commented 1 month ago

The image seems to not be properly configured:

image image
Antho91 commented 1 month ago

On Windows with raspberry img burner tool it flashes just fine

Antho91 commented 1 month ago

Just drove for an hour and i could feel no lag.

Touch was fine and audio also.

Was using Maps and Spotify

Antho91 commented 1 month ago

3the test and laggy. Dont know what has been changed 🤷

Laggy interface and laggy audio

ccebrecos commented 1 month ago

Tested a couple of times; way more fluid than the v.0.4.0 but still laggy. Some chunks get lost and spotify is not fluid. Still usable, but not fluid enough to finish a song without any jump.

Second time had a better experience than the first.

May the temperature be related?

nisargjhaveri commented 1 month ago

Okay, this is getting even more interesting. I went through the changes since 0.3.1 and nothing apparent is coming to mind that can cause this. If you have consistent lag in newer versions and no lag 0.3.1 consistently, you can try bisecting to figure out the change that causes this. This may require multiple trials and multiple builds though, I don't think all the builds would still be available in Github Actions. https://github.com/nisargjhaveri/WirelessAndroidAutoDongle/compare/v0.3.1...v0.4.0 should show all the changes between the two versions.

cardassianscot commented 1 month ago

Tried this version, for a couple of hours long journeys and it seems to work fine. There may be a slight lag compared to a cable but it is useable and there is no choppy audio.

nisargjhaveri commented 1 month ago

Glad that the latest version seems to be better. I'll create a new release.

Btw, between 0.4.0 had the dongle mode as default. Both 0.3.1 and the latest main have phone-first connection as default. Maybe that is messing something and causing the lag?