adi961 / mib2-android-auto-vc

:iphone: Show navigation directions and current track info from android auto in the VW Virtual Cluster
MIT License
34 stars 4 forks source link

Mib2 seat 1447 #8

Open lito69 opened 4 weeks ago

lito69 commented 4 weeks ago

Hello, I have introduced the jar file by executing the script that introduces jar at the address within mib2 and nothing happens, however, if I rename the jar file to navignore and follow the steps as if I were inserting navignore into mib2, I obtain the navigation pictograms as a result in black and in audio that never finds songs. Of course I run a route with android auto in google mpas and waze PXL_20241026_082755541~3

adi961 commented 3 weeks ago

Hi, @lito69 that is unfortunate. Could you tell me out software train version and send me the java logs? You can get them using mib2-toolbox

lito69 commented 3 weeks ago

Hola,@lito69 Es una lástima. ¿Podrías decirme la versión del software y enviarme los registros de Java? Puedes obtenerlos usando mib2-toolbox

MHI2_ER_SEG11_P4709_MU1447

How do I get the records? I know how to use mibtoolbox, but I don't know how to extract java logs. Right now it is with the navignore

adi961 commented 3 weeks ago

thank you. You can get the logs using mib2-toolbox there is an option to write the logs to the sdcard. Are you trying to use the patch in combination with navIgnore? or did you just use the navIgnore installer in mib2-toolbox?

lito69 commented 3 weeks ago

Gracias. Puedes obtener los registros usando mib2-toolbox . Hay una opción para escribir los registros en la tarjeta SD. ¿Estás intentando usar el parche en combinación con navIgnore? ¿O simplemente usaste el instalador de navIgnore en mib2-toolbox?

I have tried both things, inserting the file using the script I have not achieved anything, then inserting it, renaming it as navignore and using the navignore script, the screen remains black as in the photo.

PXL_20241027_155641610

adi961 commented 3 weeks ago

It seems like there are some issues with Skoda mib2. Could you send me the java logs and your lsd.jxe? You can get both using mib2-toolbox

jilleb commented 3 weeks ago

hi Adi961, I have the same software on my daily driver. I'll grab the lsd.jxe for you and see if I can get some logging :-) by the way: I LOVE THIS!! I've been hoping for a feature like this since I first used Android Auto 7 years ago.

lito69 commented 3 weeks ago

Parece que hay algunos problemas con Skoda mib2. ¿Podrías enviarme los registros de Java y tu lsd.jxe? Puedes obtener ambos usando mib2-toolbox

I don't know how to extract the records, the file you ask me does MHI2_ER_SEG11_P4709.zip

jilleb commented 1 week ago

@lito69 , you can dump all logs by going into the production menu, debugging, Copy Available ... to SD1. I believe that's the right logging.

@adi961 , I made a dump from the loggings and LSD.jxe. Not sure if the dump has everything you need. I haven't tested together with your JAR yet, will do so tomorrow, and make new logs,

01_Export_19700101_005533.zip MHI2_ER_SEG11_P4709.zip

filippz commented 1 week ago

Slightly off topic - I'm looking to improve/fix issues with Webradio functionality on my A4 running MHI2_ER_AUG22_K3346 and I figured out a way how to extract lsd.jxe from firmware updates: https://gist.github.com/filippz/e6e494c19a32840582e66a81ab311fc0 This way it's possible to easily compare different lsd.jxe files and see what's different between MU versions. I hope it helps.

adi961 commented 1 week ago

@jilleb thank you for the kind words! It would not be possible without your great tooling!

When you get the logs can you enable debug logging for my logger with echo TRACE > /fs/sda0/MIBLogger. I have a suspicion what the issue might be. I think it has to do with the BAPString classes being slightly different.

adi961 commented 1 week ago

I compiled a version using the MHI2_ER_SEG11_P4709 lsd

VCAndroidAuto.zip

adi961 commented 1 week ago

Slightly off topic - I'm looking to improve/fix issues with Webradio functionality on my A4 running MHI2_ER_AUG22_K3346 and I figured out a way how to extract lsd.jxe from firmware updates: https://gist.github.com/filippz/e6e494c19a32840582e66a81ab311fc0 This way it's possible to easily compare different lsd.jxe files and see what's different between MU versions. I hope it helps.

Good work will make research easier for different versions! I would probably extract the lsd.jxe of each version into java classes and use git where every version is its own branch and then use git diff tools to see whats different

filippz commented 1 week ago

Good work will make research easier for different versions! I would probably extract the lsd.jxe of each version into java classes and use git where every version is its own branch and then use git diff tools to see whats different

I simply extract & decompile those lsd.jxe files of interest (together with /eso/bundles where RemoteHMI-Inplementation.jar and "friends" are located that provide a way for MMI to have "apps" loaded from myAudi app) and use Meld to compare them.

I would say that higher MU number means newer version of (at least) java stuff and it seems that Audi/Prosche/Bentley versions use de/audi java classes while the rest of the group doesn't have de/audi classes inside lsd.jxe. I only have my daily driver for trials so I haven't tried to simply copy over lsd.jxe and dependencies from higher MU to my car to see if it would be possible to make such partial updates which would make patching much easier as the classes would be the same.

jilleb commented 1 week ago

I compiled a version using the MHI2_ER_SEG11_P4709 lsd

VCAndroidAuto.zip

Testing this in the car today. I'll get the trace for you as well.

jilleb commented 1 week ago

image

Media info and Navigation patch is working like a charm! I have an MIB2 STD here as well, I'm pretty sure this can be applied there too, although I need to do some soldering to get in :-D

lito69 commented 1 week ago

I try too ✌️

adi961 commented 1 week ago

image

Media info and Navigation patch is working like a charm! I have an MIB2 STD here as well, I'm pretty sure this can be applied there too, although I need to do some soldering to get in :-D

Great🎉 you are using the jar I sent in this issue right? Is navigation working as well?

lito69 commented 1 week ago

imagen

¡El parche de información de medios y navegación funciona de maravillas! También tengo un MIB2 STD aquí, estoy bastante seguro de que esto también se puede aplicar allí, aunque necesito realizar algunas soldaduras para poder ingresar :-D

Have you lost navignore or is it still working?

lito69 commented 1 week ago

I've tried, but I don't know if I'm doing it correctly. I use m.i.b. For SD, I copy the script into the mod folder, renaming it to command.sh, copy the vcandroid file to the root of the SD, enter m.i.b. from the engineer menu and I run individual script, it seems to do it well but I don't get any difference, I have it as I had it with navignore and everything is the same. How did you do it jilleb? Is there an easier method with an SD and MIB? thanks

lito69 commented 1 week ago

I've made it and at least the music works! I have done it with mib, with sd, I have modified the individual script script so that it takes the vcandroid script from the sd root and not from inside the mod folder, I have put the two files inside the root and I have executed it from mib in the engineer menu the individual script. The GPS instructions don't work for me, but I think it's because I'm not moving with the car. Thank you so much!

lito69 commented 1 week ago

PXL_20241113_180549101 It would be nice if the car's original maps also showed in the window that now says android auto, where you normally see the music artist, etc.

Both navigations continue to work at the same time.

One question, where is the lsd backup saved? on the sd? Would it be possible to do it on the SD itself to easily restore it in the same way as patching?

Edit: I've been trying now and the navigation doesn't work for me, only the music, I've tried with navignore on and off, I don't know what I'm doing wrong for jilleb to work.

PXL_20241113_212103251

I'm very happy, but I'll mention the errors I see. When you turn off the car and turn it back on, the album disappears until the next song plays, which updates the information.

lito69 commented 3 days ago

I compiled a version using the MHI2_ER_SEG11_P4709 lsd

VCAndroidAuto.zip

It works!!! I used a modified script from more incredible bash m.i.b. , first I removed the navignore with m.i.b., then I patched it using individual script inside the green menu from the radio, I'll upload the files now, you just have to overwrite the m.i.b. to the sd, then go to the radio to individual script and run it, if it doesn't work go to navigation and deactivate navignore. Thanks!!

Restaura lsd original seat 1447.zip vcandroidauto.zip

Now I only have one problem, sometimes it doesn't load the car map and stays like in the photo. PXL_20241121_121931721

To improve the vc it has more pictograms that android auto does not use, such as the lane selection that does not show anything, it almost always indicates that you should go straight and the meters that remain.

Also when I disconnect the Android Auto cable it gets stuck, it doesn't show again that the navigation is not active, the music thing always works perfectly.

I've messed around with the radio too much, how can I restore navignore to the original file and this time just apply the vcandroidauto patch? Thank you

adi961 commented 21 hours ago

Great to hear! Navignore is unfortunately not compatible with this patch. In the future I may add a version which includes navignore. There is a script in mib2-toolbox which restores your lsd.sh to the factory default.

lito69 commented 18 hours ago

¡Qué bueno saberlo! Lamentablemente, Navignore no es compatible con este parche. En el futuro, es posible que agregue una versión que incluya Navignore. Hay un script en mib2-toolbox que restaura el archivo lsd.sh a los valores predeterminados de fábrica.

I've been having navignore off for days, two days ago I restored lsd and then this patch and the problem with the car map is still there, sometimes it works and sometimes it doesn't.

The music has no errors, it's perfect.Whatever I do, it works well and doesn't crash. However, with the GPS, there are several things that need to be improved.This is all funny, I wish I could help.

Are pictograms assigned to messages? If so, there is still room for improvement.

The map problem in the vc sometimes I try it by starting a route in android auto when it loads the map, I know that the car map in the vc flickers when I start a route in android auto, sometimes It blinks and the map doesn't come back up.

Could you make the backup to the SD and not stay inside the radio?