openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

Bandwidth requirements for Android Auto? 480Mbps max? #163

Open Chaos02 opened 2 months ago

Chaos02 commented 2 months ago

Hi, this is more of a discussion post than an issue. I have a question about the Android Auto bandwidth: Does it benefit from USB 3.0 aka 5Gbps speeds? I would like the smoothest possible experience and the best info I could find online would be that USB 2.0 is fully saturated but then no more. Whats the bandwidth for wireless AA? I bet lower since you can see compression artifacts usually

GreyAsteroid commented 2 months ago

Based off of the leaked integration guide we have the requirement of >50 Mbits/s throughput and a max video bitrate of 8,000 kbits/s for 1080p 60 FPS. Though I haven't measured any actual bandwidth used, if we're going off of those numbers then USB 2.0 is more than enough for AA. Regarding wireless, it's not mentioned in the guide since it predates it but it's almost certainly a lower bandwidth.

Chaos02 commented 1 month ago

Based off of the leaked integration guide we have the requirement of >50 Mbits/s throughput and a max video bitrate of 8,000 kbits/s for 1080p 60 FPS. Though I haven't measured any actual bandwidth used, if we're going off of those numbers then USB 2.0 is more than enough for AA. Regarding wireless, it's not mentioned in the guide since it predates it but it's almost certainly a lower bandwidth.

thanks for that information! With your input I can design my hardware to confidence now. I hope this will be useful to someone else, I might try adding this to the wiki. Will leave this open for further input tho

pedrorosasb commented 1 month ago

Hi, this is more of a discussion post than an issue. I have a question about the Android Auto bandwidth: Does it benefit from USB 3.0 aka 5Gbps speeds? I would like the smoothest possible experience and the best info I could find online would be that USB 2.0 is fully saturated but then no more. Whats the bandwidth for wireless AA? I bet lower since you can see compression artifacts usually

Bro, My suggestion for your setup is to use an USB 3.0 hub to avoid any problem. Don't forget to power the USB hub with an extra 5v power supply to avoid problems with Raspi PMIC. Here, my setup is composed by:

  1. RPi 4 4GB;
  2. 7 inch touchscreen display (RPi clone);
  3. SSD 120GB with USB3.0 adapter (connected directly in one of USB3.0 RPi ports);
  4. USB3.0 Hub (connected directly in one of USB3.0 RPi ports);
  5. Behringer UCA222;
  6. RTL-SDR Blog V4 R828D RTL2832U ;
  7. Generic USB Video Capture card with reverse camera;
  8. Generic Bluetooth dongle (Broadcom BT has been disabled).

P.S: Wireless AA only worked flawlessly after using 5.0 GHz WiFi. 2.4 GHz was very unstable.

Chaos02 commented 1 month ago

P.S: Wireless AA only worked flawlessly after using 5.0 GHz WiFi. 2.4 GHz was very unstable.

if I may ask: how did you configure the rPi hotspot to be 5GHz only during AA transmission?

pedrorosasb commented 1 month ago

P.S: Wireless AA only worked flawlessly after using 5.0 GHz WiFi. 2.4 GHz was very unstable.

if I may ask: how did you configure the rPi hotspot to be 5GHz only during AA transmission?

Chaos02,

I don't know which distro you are using (i.e Bullseye, Bookworm, etc.) but you can use the wireless manager to set the 5 GHz hotspot as the "preferable" network. Further, you can create a Python or bash script to connect to 5 GHz network before starting Openauto. So, after closing the app, your script will disconnect to 5 GHz hotspot and check if any 2.4 GHz network is available.

Well... there are many ways of doing it but I think it's the easiest way of doing, ok?

Regards, bro.