-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Auto with FW 70 not working properly #36
Comments
can you try adding this to headunit-wrapper? |
What is headunit-wrapper? Should I connect to cmu over ssh using putty and run that command? |
https://github.com/Trevelopment/MZD-AIO/blob/master/app/files/tweaks/config/androidauto/data_persist/dev/bin/headunit-wrapper |
I have just tried that (I checked HUD so I editted androidautohud) and it didn't help. Still no audio. No navigation sound,no music and even when I say ok google, no sound at all. When I call someone,I can hear them. The volume/mute knob does not work. |
There are some errors. I tried to start "Android Auto Headunit" from "AIO Tweaks" app. The cmd content: $ headunit-wrapper 2>&1 & I noticed that the cpu is running almost 50% so I wanted to connect using ssh but withnout success. My CMU was connected to my phone hotspot. I connected my laptop as well and tried to connect using putty. I tried to connect to 192.168.53.1 and port 2222. Not successful. Then I tried to open "Wifi AP" menu from "AIO Tweaks" app and same error: $ start_wifi.sh && jci-wifiap.sh start Do you think it can be related to the problem with AA? |
That error is related to the file where stdout is written to not the shell commands themselves (404 is page not found that is a web error not a shell error) |
Cannot connect to the ip with port 22, 36000 or 24000. |
I installed "Autorun & Recovery" with ID7, WiFi AP and Dryrun. Then I could see the network but when I connect, the CMU stopped the AP. I couldn't see the network any more and had to reboot it. I tried it second and third time. All the time the same. I tried my android phone and my Win 10 laptop. So I decided to uninstall the WiFi AP. I ran The "Autorun & Recovery" again but only with WiFi AP. I inserted the flash disk to the CMU and chose the Uninstall option. It seems that not only the WiFi AP was unistalled. When I ran "Autorun & Recovery" again but only with the ID7 and Dryrun, there were no prompt to install it. It cannot read the flash disk any more? What happened? Was it uninstalled at all? I can see the AIO Tweaks applications (like speedometer) but I cannot install/uninstall Autorun and probably the tweaks at all. I have FW v70. I don't want to open the car again and do the serial hack again. It was nightmare for me. |
No, there is still a way to get into this because you still have taken away all the protections from the firewall so there has to be a way to get in or maybe something was not right since you couldn't get in through those 3 ports then maybe the firewall file wasn't fixed. also your SSH root user/pass is still cmu/jci so you have the root user still if you can just connect to wifi and get in through one of those ports you can fix it the SSH bringback and wifi together are all you need and those both cannot be uninstalled for this very reason. |
But I cannot connect to the car. I could see the AP but when I tried to connect, I connected for a second or two and then it disconnected and I couldn't see the network any more until restart. I cannot access it using Wifi and USB. Is there still a way to get access at least by USB for installing/uninstalling tweaks? |
The reason you cant connect to the Wifi AP is because of a defective wifi adapter #19. If you can connect the car wifi to your phone hotspot for long enough to transfer another autorun file then you can use a USB but when you uninstalled autorun you uninstalled the mechanism to install tweaks with USB. |
I have the same sound issue with FW 70. @mellda have you tried connecting your CMU to a different AP? I was able to log in through SSH using a portable modem and copied the |
I have the same issue: No audio when using android auto. Before I installed AIO tweaks I have retro fitted the OEM AA/CP usb hub+cable on my 2018 CX-9. After installation of AIO tweaks using serial access, everything works flawlessly, but AA headunit app does not output sound. Bluetooth audio works, but stops when AA takes over audio source. I love the AA headunit in the AIO tweaks simply because it allows touch screen, while the official AA does not allow touch screen at all even at full stop. I had tried uninstall the AA headunit app, and then the official Android Auto works fine. Is there any way to fix? Please let me know how I can help. |
Hey @szsong are you connecting to AA with a USB cable or over Wifi? I have been working on this by connecting over USB but without the upgraded USB hub and ran into a libusb issue that I can't figure out gartnera/headunit#147 so if you have some C++ skillz or libusb knowledge you could help a lot. |
@Trevelopment Thanks Trez. I was connecting using USB. Unfortunately I only have very limited experiences with C++. However thank you for all your hard work on all those project, it really means a lot! Thank you for pointing out the direction and I'll follow your work. |
@szsong that is very interesting so AA does work over USB with the upgraded hub? are you building headunit from source? Maybe it is a USB driver issue that is preventing AA from working with the old USB hub but I would think v70 would need to have both drivers to support the old and new USB hubs depending on which one you have. The updated libusb version (libusbx) must have some conflict with the old USB drivers and the developers probably decided that the best way to solve that is to use new drivers and upgrade the USB hub. @lmagder you said that headunit will use whatever libusb version the system is running but is there a way to maybe bundle the older version of libusb into the binary and force headunit to use it if the USB hub is stock? |
Also I want to add while exploring the official AA binaries I saw that they just use another gstreamer pipeline for audio instead of using alsa directly like we do. their pipeline looks something like this: |
@Trevelopment Yes. AA headunit app does indeed work over USB with upgraded hub. I am not building from source. Just used MZD-AIO-TI v2.8.3 to install AA headunit app (with serial access of course). After installation, with my android phone connected, I can see two AA app, the official one is grayed-out, and the custom one runs just fine, with touch screen working properly (the official one does not support touchscreen). No audio output. |
@szsong, It seems to me that you may have a driver or software conflict between the 2 apps on your phone and the one installed on your MZD unit.. i doubt its a USB driver issue or even a cable issue.. the issue is with the AUDIO source not being handed over to the external source (the MZD).. are you aware that android auto has built in settings within the google settings of your phone?? as a suggestion, i recommend clearing the cache and clearing the data of both AA apps on your Android device. this will reset all settings and will help in narrowing down the cause of the problem.. in all honesty it basically just seems like a software conflict / issue.. or just simply wrong settngs EDIT possible solution to fix your issue permanently is as follows..
try that and let me know how you go |
OK so I was wrong... it is not a libusb issue it is something deeper. I know this because I got headunit to use the older version of libusb and the same issue is still happening. I am guessing it has something to do with the drivers but here is what I get now when using
I don't understand how the endpoint comes out to 0x01 instead of 0x02 I can't figure that out either
for the sound issue I am guessing it is how we register the audio streams that is the problem.
|
I have tried everything as you suggested, unfortunately they did not fix the missing audio. To my surprise, besides the missing audio issue, everything else is working almost perfectly, even the HUD shows correct directions when I use google maps navigation-AMAZING! The HUD shows distance units in km and meter instead of miles and ft, but it's trivial. Audio still does not work. One thing I noticed is that, the mute/unmute button stopped working while AA is connected. even if I exit the AA headunit app and go to "music", the mute knob/button stopped working. Hope this helps. Another finding is that, if I click "home" button inside AA app, it goes to black screen, unless I press "home" again. I hope there is some quick switch shortcut to go back-and-forth between AA and MZD screen, but I found the quickest way is to shout "hey google", and the AA headunit app will come to foreground. |
So I am reviewing the firmware files in the *.up files for differences between the base linux systems and curiously, sometime around the 59.00.441A transition to 59.00.546A(may have occured earlier in between), /etc/udev/rules.d/10local.rules were added and then updated in the transition to v70. Given that v70 is intended to use the new Hub it makes sense that there would be a difference. One thing to note is there is a physical port difference as well between the two hubs with the newer android auto/carplay hub having two USB connection lines and the older ones only have one. This may affect the naming convention and locations reported, I don't have the newer hub yet, but I am curious to see if I can create a rule that would allow the older hubs to be linked into the correct group and thereby enable the official android auto on them. I also wonder if this project has had the ability to see the difference usb systemwise between the older(texas instrument hub) and the newer panasonic hub. |
I have a Fiat Abarth 124 spider. I upgraded from fw 56 to fw 70.00.100 using this guide [ https://www.124spider.org/threads/carplay-android-auto-upgrade-howto.32286/ ], so I installed ID7 Tweak Package, then the new firmware, then Ameridan’s Version 70 NNG fix tweak, after that I upgraded the usb cable and hub. All worked fine, Android Auto working well and no problem. After that I installed AIO and selected also Android Auto HeadUnit App (by the way there is no alert this option is not compatible with fw >= 70, maybe you should add it). Now I have sometimes blank screens, sometimes can't play spotify and so on. I would like to use your Android Auto instead of FW70 because I would like to connect wireless using head unit, but your Android Auto often hangs. And yes, I tried to remove e repair my phone using bluetooth. I have also other glitches, gui sometimes is slow and speedometer and other apps sometimes don't open or crash. In attachment there are the logs created on usb pen drive during the AIO install, I hope you can use it to understand what is not working. I noticed these lines: AIO_log.log gst-inspact.log What should I do now to have a stable firmware? Should I use AIO and remove ONLY the Android HeadUnit app? Should I remove also video player (gstreamer error is about videoplayer)? |
I also tried to uninstall AA 1.1 and install AA 1.2 beta but no luck, same problems. As soon as I uninstalled AA 1.2 I got a fast and responsive unit with no crash at all. I also noticed that bluetooth is working in a different way: I got sharing contact option and contacts are now synced at startup. Bluetooth and USB are working fine now. In the meanwhile this bug is fixed I think you should add an alert message in AIO to do not install AA with FW >= 70 |
I too have this issue. I am on a 2020 Mazda CX-5 with AIO Tweaks on firmware 70.00.335 and whenever I install the v1.1 or v1.2 version it detects nothing over wireless and it just goes to a black screen on usb. |
Black screen on usb?? Is that with or without AA installed on the mazda unit itself? And with or without hardware upgrade? |
I love the AIO Tweaks. Great work! The best feature I was looking forward is wireless AA with navigation instructions in HUD. I have FW version 70 and when I installed the AIO with AA, it is automatically started over wifi but it is unstable. Sometimes I can see black screen. It was frozen once and even the restart (NAV + MUTE) did not worked. The sound from navigation or from spotify was not working as well. The system is slower. I cannot see the navigation instructions in HUD. The other tweaks are really good. When I uninstall the AA everything work very good and I am really glad I have it. But the AIO version of AA is not working with FW 70. Is it possible to fix it? If not I consider to downgrade the FW if possible.
The text was updated successfully, but these errors were encountered: