tomasz-grobelny / AACS

Android Auto Server encapsulates communication with modern car infotainment system
GNU General Public License v3.0
225 stars 29 forks source link

Does not get recognized by Car Head Unit #32

Open PatrickChenHZ opened 9 months ago

PatrickChenHZ commented 9 months ago

I was able to get it recognized by Google's official Desktop Head Unit (DHU), and all negotiations went through, but it would stuck at "waiting phone" with no image displayed at all(I am testing without anbox so I modified the script to have the image test pattern feed into the video pipeline). I assumed it is an issue with DHU so I went out to try it on my two cars and they would just either never recognize AAServer at all(2022 Chevy Bolt), or recognize AAServer and it is compatible with Android Auto but never start AA negotiation(2023 Mercedes). And Server.log verify that in these cases negotiation never started, only

pre read
post read: 12
pre hSM

post hSM: 12
pre read
post read: 12
pre hSM

post hSM: 12
pre read
post read: 12
pre hSM
Got 51, write=2
post hSM: 12

I assumed my cars might be "too" modern and went out to buy a Walmart Radio to test it on, and got a head unit that was released 2020 with wired AA/Carplay support. And it does the same thing as my Chevy, which is it just never sees AAServer. I tried to modify the USB PID&VID to the same as my Samsung phone, assuming the head unit think AAServer is not legit. but it did nothing.

Anybody had a similar experience with it? Or any possible solution to resolve it?

Thanks,

lilianmoraru commented 6 months ago

@PatrickChenHZ @tomasz-grobelny It's most likely due to the expired phone key: https://github.com/tomasz-grobelny/AACS/commit/f6c23380ed473852463cf2cc01adbad53b30fd6f . As the commit message says: Phone key expires: Aug 24 12:29:12 2022 GMT

khimaros commented 2 months ago

see also https://github.com/tomasz-grobelny/AACS/issues/15#issuecomment-1287651274

PatrickChenHZ commented 2 months ago

see also #15 (comment)

Don't believe it is a Phone Key issue, I actually had to use a non-expired key that I asked from someone in the #15 to get it recognized by Android Desktop Head Unit, though interstingly after updating the key the walmart radio starts attempting to negotiate, just never succeeds. The two actual car I mentioned above demonstrates exactly the same behavior as before.