-
Notifications
You must be signed in to change notification settings - Fork 90
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
HUD Navigation #135
Comments
After some more digging, I think it is supported by android auto? Guess my next step is trying to take a look at how the factory navigation does it. |
This would be excellent to have. I'm happy to help test if you get something working. |
Yeah, I'm pretty sure AA will send this info if we report it's supported when we enumerate at startup. No idea how to get this to the right spot in the CMU or even where it will show up since I don't have the stock nav system 😃 and we don't have the proto definitions for those messages yet. If you make any progress pull requests are welcome since this would be a really cool addition! |
More data.
The first message with msg_type 32772, does contain the street name that was displayed. "John St." the last mesg_type 32733 seems to contain the distance in the second position 0xAA == 170 which was the distance in meters displayed. |
Did some more digging, and this is what I think the two messages are so far. Both unsurprisingly(?) seem to be encoded by protobuf
Using the naming convention from https://android.googlesource.com/platform/packages/services/Car/+/master/car-support-lib/src/android/support/car/navigation/CarNavigationStatusManager.java |
Nice, it seems like you're making some good progress! I dumped a bunch of the dbus xml from scraping the car's binaries and we are generating wrappers in mazda\dbus\generated_cmu.h. It seems there is already the com.jci.vbs.navi interface with SetHUDDisplayMsgReq method although it's missing stuff like SetHUD_Display_Msg2 unfortunately. Maybe the v55 version I dumped from didn't have all the stuff? You can edit https://github.com/gartnera/headunit/blob/master/mazda/dbus/cmu_interfaces.xml to add new stuff manually or rerun the python script to regenerate it from a new dump. At least for SetHUDDisplayMsgReq it seems like
there are weird annotations specific to CMU which can tell you the params
which is uint32, uint16, uint8, uint16, uint8 in this case (https://dbus.freedesktop.org/doc/dbus-specification.html#basic-types) which matches what you saw in the dump. The proto definitions we are using are in https://github.com/gartnera/headunit/blob/master/hu/hu.proto. The names we have sometimes dont totally match offical sources since a lot of was deduced from the raw datastream. Sometimes you can get clues by dumping symbols from the Linux binary of the desktop headunit emulator since the protoc generated code follows some patterns. Probably the best way to connect these would be to add new methods to IHUConnectionThreadEventCallbacks so that we can also stub these out on Linux to debug (rendering to another window, terminal etc.) |
I did some poking around in the binaries and compared that with the dump you posed. It seems things are starting to match up? At least it looks like a "usual" AA channel, which is a good sign.
|
Nice, that gives me a lot to go on! |
Making some progress!
|
Awesome! if setting the type doesn't work you might need to populate the image_options field of NavigationStatusService. I'm not sure if there is way of displaying these images in CMU though, but at least we would have a full understanding of the protocol. Another thing we should consider is that not all cars have this display (AFAIK my 2016 MX5 does not unless I get a nice surprise when I run this code 😄 ) so hopefully there is some kind of CMU API we can use to detect the presence of the screen so we can decide to report support for the NavigationStatusService or not. Maybe it's the existence of com.jci.vbs.navi.tmc? I'm not sure. |
Enough to make an initial push of what I have done :D |
I generated a new cmu_interfaces.xml, and it looks like we can check for the HUD's existence with a call to com.jci.navi2IHU.HUDSettings.GetHUDIsInstalled(), I have checked, and on my car that returns true. I feel it would be a good guess that it returns false on cars without it :) I was also able to get a bit of interface code working, and it looks like SetHUDDisplayMsgReq and SetHUD_Display_Msg2 are exactly what we need. I think I now need to figure out what all the icon values are... which will probably be fun! |
Progress silverchris@9aa519e It also probably needs a lot of cleanup still :) |
i so excited to seeing this, hope it can run on my Mazda 2 soon. |
How is this feature coming along? It would be really awesome to have it working! |
Seems to be working - just installed AA .1.10 on my M3 and saw the hud pop directions up. It's showing in KM instead of MPH - not sure how to change that - but cool that it's there. |
I have been running it on my car for a little bit now.
I am hoping I will have a few quiet nights this week or next to do some fixes |
Guys am I missing something I have installed the AA V1.10 but i dont see anything on the hud even in KM, is there a way to activate it or something !? |
I have the same problem.
I'm in a 6 with firmware 59.00.449 EU N.
If it should be there let me know if there's any usefull debug I can grab...
…On Mon, 15 Oct 2018, 14:24 amrmori, ***@***.***> wrote:
Guys am I missing something I have installed the AA V1.10 but i dont see
anything on the hud even in KM, is there a way to activate it or something
!?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMGSrlahT5zgwcCcigOcxqswrDdZvzW8ks5ulIx8gaJpZM4WX4Q9>
.
|
Do you have factory navigation? It may be helpful to test with that, and make sure it is all working? It could be that it works differently on the 6. I also haven't actually tried it without the navigation SD card in(I don't think that should be needed, but who knows!) |
I would have both: The old Navigation software via SD-Card an SSH access to my Mazda |
Here is the test app https://github.com/silverchris/headunit/blob/WiFi/mazda/hud-test It should also show if it detects the HUD, by printing "hud installed 1" |
Hi Chris,
Ran the test app, it did pop up on the HUD - but no street name, see
https://imagebin.ca/v/4JReLMePCHyU
# /mnt/sdb1/hud-test Test 4 1 -1 -1 100 -1 1
DBUS::Glib::BusDispatcher attached
hud installed 1
Event Name: Test
Turn Event: 4
Turn Side: 1
Turn number: -1
Turn angle: -1
distance: 100
time: -1
msg: 1
#
So looks like it should work.
I've installed AA using mzd-aio v2.8.1 which says it is installing AA v1.10
- is there a good way to double check which version I have running? (Just
in case!).
Thanks, Rich
…On Wed, 17 Oct 2018 at 00:24, Chris ***@***.***> wrote:
Here is the test app
https://github.com/silverchris/headunit/blob/WiFi/mazda/hud-test
to test, you should be able to run it as
hud-test Test 4 1 -1 -1 100 -1 1
Which should show a left turn, with the street name "Test" in 100 meters
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMGSrlmMGX4Dyh9bSMBfT9McFCPT0EgTks5ulmqOgaJpZM4WX4Q9>
.
|
Interesting, your display seems to be laid out in a different way than mine. Do you get street names when you use the factory nav? If you do, we may need to use dbus-monitor to see if there are any differences in the way they communicate? |
Good question! It's been so long since I used the factory navigation I
can't remember..I give it a test and report back!
…On Thu, 18 Oct 2018 at 00:13, Chris ***@***.***> wrote:
Hi Chris, Ran the test app, it did pop up on the HUD - but no street name,
see https://imagebin.ca/v/4JReLMePCHyU # /mnt/sdb1/hud-test Test 4 1 -1
-1 100 -1 1 DBUS::Glib::BusDispatcher attached hud installed 1 Event Name:
Test Turn Event: 4 Turn Side: 1 Turn number: -1 Turn angle: -1 distance:
100 time: -1 msg: 1 # So looks like it should work. I've installed AA using
mzd-aio v2.8.1 which says it is installing AA v1.10 - is there a good way
to double check which version I have running? (Just in case!). Thanks, Rich
… <#m_5045595434835793624_>
On Wed, 17 Oct 2018 at 00:24, Chris ***@***.***> wrote: Here is the test
app https://github.com/silverchris/headunit/blob/WiFi/mazda/hud-test to
test, you should be able to run it as hud-test Test 4 1 -1 -1 100 -1 1
Which should show a left turn, with the street name "Test" in 100 meters —
You are receiving this because you commented. Reply to this email directly,
view it on GitHub <#135 (comment)
<#135 (comment)>>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGSrlmMGX4Dyh9bSMBfT9McFCPT0EgTks5ulmqOgaJpZM4WX4Q9
.
Interesting, your display seems to be laid out in a different way than
mine. Do you get street names when you use the factory nav? If you do, we
may need to use dbus-monitor to see if there are any differences in the way
they communicate?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMGSru2buLryz_U66rtZPdkhnGQ93GrFks5ul7l7gaJpZM4WX4Q9>
.
|
I also have the factory Navi but I don't get the street names in the HUD (Mazda 6 2015) |
Mazda 3 here - 2017. I had Navi (pulled the SD) and I do get Street names,
direction, distance in km/m (although never accurate until you're within a
few km of the turn) on my hud.
…On Thu, Oct 18, 2018, 2:32 AM Andy ***@***.***> wrote:
Hi Chris, Ran the test app, it did pop up on the HUD - but no street name,
see https://imagebin.ca/v/4JReLMePCHyU # /mnt/sdb1/hud-test Test 4 1 -1
-1 100 -1 1 DBUS::Glib::BusDispatcher attached hud installed 1 Event Name:
Test Turn Event: 4 Turn Side: 1 Turn number: -1 Turn angle: -1 distance:
100 time: -1 msg: 1 # So looks like it should work. I've installed AA using
mzd-aio v2.8.1 which says it is installing AA v1.10 - is there a good way
to double check which version I have running? (Just in case!). Thanks, Rich
… <#m_2164902494850279117_>
On Wed, 17 Oct 2018 at 00:24, Chris ***@***.***> wrote: Here is the test
app https://github.com/silverchris/headunit/blob/WiFi/mazda/hud-test to
test, you should be able to run it as hud-test Test 4 1 -1 -1 100 -1 1
Which should show a left turn, with the street name "Test" in 100 meters —
You are receiving this because you commented. Reply to this email directly,
view it on GitHub <#135 (comment)
<#135 (comment)>>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGSrlmMGX4Dyh9bSMBfT9McFCPT0EgTks5ulmqOgaJpZM4WX4Q9
.
Interesting, your display seems to be laid out in a different way than
mine. Do you get street names when you use the factory nav? If you do, we
may need to use dbus-monitor to see if there are any differences in the way
they communicate?
I also have the factory Navi but I don't get the street names in the HUD
(Mazda 6 2015)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADLiWWzquz5TcqH13IrCFH1Y0Gza5Q5xks5umCCQgaJpZM4WX4Q9>
.
|
No names on the hud with the factory navigation, do get them on the main
window status bar though - see the pics.
https://imagebin.ca/v/4JfIj6GS4Atf
https://imagebin.ca/v/4JfK05iUXChI
I also tried AA without the Nav SD card inserted, just to make sure there
were no issues. Still nothing on the hud from AA.
I'm using Google maps btw, just in case that's relevant.
Let me know if there's anything else usefull I can do.
Cheers, Rich
…On Thu, 18 Oct 2018 at 14:42, Dave ***@***.***> wrote:
Mazda 3 here - 2017. I had Navi (pulled the SD) and I do get Street names,
direction, distance in km/m (although never accurate until you're within a
few km of the turn) on my hud.
On Thu, Oct 18, 2018, 2:32 AM Andy ***@***.***> wrote:
> Hi Chris, Ran the test app, it did pop up on the HUD - but no street
name,
> see https://imagebin.ca/v/4JReLMePCHyU # /mnt/sdb1/hud-test Test 4 1 -1
> -1 100 -1 1 DBUS::Glib::BusDispatcher attached hud installed 1 Event
Name:
> Test Turn Event: 4 Turn Side: 1 Turn number: -1 Turn angle: -1 distance:
> 100 time: -1 msg: 1 # So looks like it should work. I've installed AA
using
> mzd-aio v2.8.1 which says it is installing AA v1.10 - is there a good way
> to double check which version I have running? (Just in case!). Thanks,
Rich
> … <#m_2164902494850279117_>
> On Wed, 17 Oct 2018 at 00:24, Chris ***@***.***> wrote: Here is the test
> app https://github.com/silverchris/headunit/blob/WiFi/mazda/hud-test to
> test, you should be able to run it as hud-test Test 4 1 -1 -1 100 -1 1
> Which should show a left turn, with the street name "Test" in 100 meters
—
> You are receiving this because you commented. Reply to this email
directly,
> view it on GitHub <#135 (comment)
> <#135 (comment)
>>,
> or mute the thread
>
https://github.com/notifications/unsubscribe-auth/AMGSrlmMGX4Dyh9bSMBfT9McFCPT0EgTks5ulmqOgaJpZM4WX4Q9
> .
>
> Interesting, your display seems to be laid out in a different way than
> mine. Do you get street names when you use the factory nav? If you do, we
> may need to use dbus-monitor to see if there are any differences in the
way
> they communicate?
>
> I also have the factory Navi but I don't get the street names in the HUD
> (Mazda 6 2015)
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#135 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ADLiWWzquz5TcqH13IrCFH1Y0Gza5Q5xks5umCCQgaJpZM4WX4Q9
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMGSroDrEz92wwMmh0OWuHiAz-HuN83gks5umIVcgaJpZM4WX4Q9>
.
|
There's info on https://mazdatweaks.com/
Since you're on v70 firmware, you won't be able to use it without
first getting root on your CMU via the serial console method. It's
kind of a PITA unless you're comfortable with running a couple of
wires and doing serial console.
The alternative is you could also just buy the OEM Android Auto /
Apple Carplay upgrade. You're already on the correct firmware for it.
I just bought it and installed it myself, it was pretty easy. There's
step by step guides for how to do it all if you're so inclined.
http://shop.mazmart.com/en/apple-carplayandroid-kit-for-2014-skyactiv-models
…On Mon, Nov 05, 2018 at 02:19:01PM -0800, mellda wrote:
Yes, it supports 2014+. I have a 2014.
[1]…
On November 4, 2018 2:40:29 PM PST, mellda ***@***.***> wrote: Guys, is
there any chance to run it on Mazda 3 2014? -- You are receiving this
because you are subscribed to this thread. Reply to this email directly
or view it on GitHub: [2]#135 (comment)
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
That's great!
I am totally new in this area. Is there any info, what this project/SW is
and how to build it, how to flash it to the car and so on? Or where or how
to search? Is this complete replacement of the Mazda firmware in the car
infotainment? I have the new version 70 so I am not sure, if there is some
extra feature I will miss when I reflash this firmware but if the process
is reversible, I will try it :) I really appreciate any help and of course
the huge work you did on this great project guys.
—
You are receiving this because you commented.
Reply to this email directly, [3]view it on GitHub, or [4]mute the thread.
References
Visible links
1. file:///tmp/mutt-xanadu-1000-10706-1385037618951532720#
2. #135 (comment)
3. #135 (comment)
4. https://github.com/notifications/unsubscribe-auth/AAwIYTGGWuFN19uLlh0rC5XV9O6ffGZ7ks5usLlVgaJpZM4WX4Q9
--
Misha Nasledov <[email protected]>
GPG: A063 B99A 2BD3 2D48 F2D7 8E68 0F27 4D21 948F 8F06
|
I already have this upgraded unit. They installed it to my car and updated the official firmware to the version 70. I don't use (and have never used) the "Mazda AIO Tweaks". When I run google maps or waze, there are no info from navigation on HUD. So what should I do? To install the Mazda AIO Tweaks and then this? Or only the Mazda AIO Tweaks? |
Made some fairly major changes to the HUD code, trying to track down why the navigation sometimes gets cleared off the HUD. Looks like the factory nav periodically sends the intersecting street names to the HUD with zero for the distance and icon, which blanks out our navigation data. I have to look and see if there is a way to turn that feature off, or possibly try and catch it, and rapidly resend the proper navigation data |
Can you give me a link to download binary? |
@silverchris can you share the installer to us, i not able to compile. Thanks |
After some testing... I don't think you want this build, as it still suffers from the display being cleared of navigation data too frequently. Thought I had that fixed! |
Still having a lot of issues with the navigation getting cleared off the hud, at least in my car |
I try to use this commit app. Same problem with you. I think if distance rather than 1000. It will only display once.And clear the hud screen. until distance less than 1000. It will work very good. I think you lost upload some files |
I think navi_data->previous_msg+1 |
The factory navigation doesn't change the msg number unless it is changing the street name I am starting to think it has something to do with the distance traveled. The factory navigation seems to keep it at intervals of 100m. I think the HUD module is keeping track, and if it doesn't get an updated distance every 100m it clears the navigation message off the display? |
Thank your send log. I have not offical nav .So this a very useful log The old version of this. |
I have make a request pull to you github. |
agree with you .After many test on weekend. I think hud trace distance by it self. Some big found. signal,:1.138,(null destination),1544,/com/NNG/Api/Server,com.NNG.Api.Server.Guidance,GuidanceChangedForHUD,,,,,,,," int32 3 |
any progress on this issue? IIUC official AA integration also doesn't have this implemented |
just a note. After I cleared the cache of google maps I now have turn by turn navigation on my HUD! Andy |
Mine started to work all of a sudden today after the google maps update i think. I haven't updated AA or CMU. Latest AA installed with CMU 56.00.513 and 2015 Mazda 3 with mono color hud. Could be related with this: |
Do you have the stock CMU and AA in CMU? |
No. Using AIO version of AA v1.10+. |
Is the hud navigation reliable? I mean if it is accurate. Same as in the navigation displayd on infotainment screen. I have installed the upgrade of USB unit and got the official AA in FW version 70. I cannot go back to 59 to use the AIO version of AA. |
for me it is only "accurate" during city driving. On the speedway there are a lot of strange turn signals displayed... |
I haven't test it long enough to decide whether it's reliable or not. |
same with me on speedway a lot wrong turn signals |
i have tested with android auto 3.9.5850 / mazda3 2017 with colored HUD everything works but main problem is too many direction.This problem root cause is HUD not displayed 3.4km and over.I think minor fix resolved this issue and works perfectly |
Spontaneous genesis for me as well a couple of days ago in my 6! I also now see that the directions displayed on the HUD don't match the main maps display.
I'll take a closer look at the work @leonunix did to diagnose this but was wondering if any updates were made to the code in the end as it wasn't clear to me from this thread. I will try and see if I can get a better view of what's going on and report back. |
Any update for this HUD, now my HUD is no showing turn by turn navigate after android auto and google maps update. any facing the same problem? |
I have CMU 56.00.100A and latest headunit AndroidAuto_v1.05-52-g54b38d6 (the one someone compiled to fix the restarts caused by Google's AA update) and HUD navigation does not work; it only shows the intital arrow for the first turn and it gets stuck, will not go away until you exit AA and switch CMU Navigation enabled setting on and off again. I leave this setting Off all the times but it does not prevents the arrow to appear. This also happened in headunit AA-v1.12 and it is very annoying. I read somewhere CMU 59.x was needed to HUD to work, is this true? If so, for all of us that can't upgrade it would be nice HUD navigation is either fixed or a setting to shut it off is available. I'd prefer to have that HUD off/on setting because I think it also contributes to Spotify stutter when maps auto-zoom or re-positions on a turn. I see stutter is almost all fixed by that latest 'user-compiled' version and turning off Waze auto-zoom, but still it happens on hard turns, for example in roundabouts, so I think maybe the HUD functionality is related. |
Hey guys how is this going? Is there any way I can offer some help? Testing or development. |
I have been meaning to get back to this for awhile. |
Update: I do think the HUD code does need an option to turn it off and on, as I can understand people not wanting to use it for what ever reason. |
The round about code I wrote originally I think didn't work well or at all.
I haven't had much chance to try it, as I only see a round about once a
year.
I am from America, so yes, left hand drive
…On Tue., Nov. 3, 2020, 7:25 a.m. Radarwild, ***@***.***> wrote:
@silverchris <https://github.com/silverchris> @Trevelopment
<https://github.com/Trevelopment> regarding the latest code for AA v1.13
fw59 roundabout in the HUD do you sit on the left with steering wheel and
drive on the road on the right? And exit roundabout anti-clock wise? If so
E.g when you wanted to do a u-turn at the roundabout exiting anti-clock
wise does the (diricon 49 or 37) image shows up on your HUD? If so what is
the log please if you could provide. My steering wheel are on the right and
drive on left the roads roundabout enter & exit clock-wise. Therefore
taking a u-turn at roundabout should show diricon 49 on HUD but it doesn't.
All others diricon 50+ shows. Anyway to re-write the code in hud.cpp to
make it show up on HUD?
//original
uint32_t diricon;
if (navi_data->turn_event == 13) {
diricon = roundabout(navi_data->turn_angle, navi_data->turn_side - 1);
} else {
int32_t turn_side = navi_data->turn_side - 1; //Google starts at 1 for
some reason...
diricon = turns[navi_data->turn_event][turn_side];
}
//i tried some codes and diricon 49 or 37 shows on HUD but then all other
roundabouts are mirror afterwards
uint32_t diricon;
if (navi_data->turn_event == 13) {
diricon = roundabout(navi_data->turn_angle, navi_data->turn_side - 1);
} else if (diricon == 60) {
diricon = 49; //37 for steering wheel on the left {
int32_t turn_side = navi_data->turn_side - 1; //Google starts at 1 for
some reason... diricon = turns[navi_data->turn_event][turn_side];
}
//why is it mirroring all roundabout diricons except u-turn roundabout
this time shows up on HUD correctly?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6Z5BZN6NGDR7URCWHDDSN7ZC5ANCNFSM4FS7QQ6Q>
.
|
Hey Everyone,
Not sure if this is the best place to ask, but I am debating installing this on my car (Mostly being lazy, as I have to dig out the serial console connection :) ), and was wondering if there has been any research into getting navigation directions onto the little HUD display in some cars?
Haven't had a chance to dig into the code to see if this is something android auto passes to the car, but I would assume it may be possible on the car side, as factory navigation does it?
The text was updated successfully, but these errors were encountered: