Page 1 of 1
AndroidAuto - unusual disconnects
Posted: Tue Apr 28, 2026 8:23 am
by ronabrak
Hello all,
I'm in the process of building a custom headunit for my Range Rover L322 using an ESP32P4, Raspberry PI5 and hudiy.
Unfortunately I experience quit a few disconnects with Android Auto within huiy.
Almost every time Android Auto loses focus, it disconnect within 30 seconds.
Bluetooth is still connected, but the Hotspot loses its connection to the phone, however the network is still visible on my phone.
Sometimes I can reconnect using the connect wifi option within hudiy/AndroidAuto, but often ik need to completely restart the PI to get it to work again.
Both Bluetooth and Wifi use the same name: VV256L-MM as identifier like on other AA systems I know.
Fault in logs: (channel error: error code: 5, error code: 12, End of file)
BT pairing request prior to disconnect (but maybe this is normal behavior?)
Timing: disconnect most of the times shortly after AA goes in suspend on PI, but sometimes also when app focus changed on phone.
Phone: Samsung S25 FE
Connectivity check (204) active on hotspot
Hopefully I made the problem clear to you, since English is not my native language.
Thank you in advance.
Re: AndroidAuto - unusual disconnects
Posted: Tue Apr 28, 2026 8:02 pm
by hudiy
Hello, by losing Android Auto focus, do you mean exiting the Android Auto interface while keeping the projection running in the background? Maybe it’s an issue with battery saving settings on your phone? Does it happen when Android Auto is working in the foreground?
Re: AndroidAuto - unusual disconnects
Posted: Thu Apr 30, 2026 1:04 pm
by ronabrak
What I mean is:
AndroidAuto has focus in Hudiy.
I am navigating and momentary switch to another page within Hudiy.
For instance; I've created some extra pages with information on CANbus status info from the car, a custom relaisboard and a front camera.
Thus while I'm looking at the canbus info screen, suddenly the phone and AndroidAuto disconnect.
Bluetooth is still connected, but it seems that the Wifi connection gets lost and it won't return on it's own.
Re: AndroidAuto - unusual disconnects
Posted: Thu Apr 30, 2026 1:55 pm
by hudiy
Yes, based on your description, it looks like Android Auto is disconnecting when running in the background. Please check your phone settings to see if Android Auto is allowed to work in background and make sure all battery optimizations for it are turned off.
Re: AndroidAuto - unusual disconnects
Posted: Thu Apr 30, 2026 9:34 pm
by ronabrak
Yes, ik checked my phone settings.
Also battery optimizations are off.
In my other car this is no issue, so I suspect it has something to do with hudiy OR the PI5.
Since it's not known to you, I suspect it is hardware related.
Re: AndroidAuto - unusual disconnects
Posted: Thu Apr 30, 2026 10:03 pm
by hudiy
Could you please send us logs located in $HOME/.hudiy/log? You can zip the entire directory and attach the archive to this thread.
Re: AndroidAuto - unusual disconnects
Posted: Sun May 10, 2026 12:02 am
by ronabrak
Sorry for my late reply, have been busy the last couple of days.
Hereby the last log, and the last couple of lines is exactly when the disconnect happens.
Focus went from AA to a custom menu I
made and after a short time AA disconnected.
Hopefully you have enough info.
Kind regards,
Ronald
Re: AndroidAuto - unusual disconnects
Posted: Tue May 12, 2026 3:02 pm
by hudiy
Thanks for the logs. They show that at least one disconnect isn't related to projection suspend. It looks like the connection is being dropped on the phone side (End of File). Does the issue reproduce when you set channelConfigurationType to AUTO in the hotspot settings?
[2026-05-10 00:37:05.954842] [0x00007ffe9236d420] [error] [hudiy] [AndroidAutoEntity] channel error: error code: 5, description: error code: 12, description: End of file
[2026-05-10 00:37:05.954983] [0x00007ffecd9f8020] [info] [hudiy] [AndroidAutoManager] quit.
[2026-05-10 01:04:19.481573] [0x00007ffede7cd420] [info] [hudiy] [AndroidAutoEntity] video projection suspended.
[2026-05-10 01:07:59.909744] [0x00007ffeddfbd420] [error] [hudiy] [AndroidAutoEntity] channel error: error code: 5, description: error code: 12, description: End of file
[2026-05-10 01:07:59.909995] [0x00007fff1a998020] [info] [hudiy] [AndroidAutoManager] quit.
[2026-05-10 00:46:58.633765] [0x00007fff037ed420] [info] [hudiy] [AndroidAutoEntity] video projection suspended.
[2026-05-10 00:47:30.267734] [0x00007fff01fbd420] [error] [hudiy] [AndroidAutoEntity] channel error: error code: 5, description: error code: 12, description: End of file
[2026-05-10 00:47:30.267839] [0x00007fff40488020] [info] [hudiy] [AndroidAutoManager] quit.