Skip to content
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

new arrows style? (HUD+ not showing directions) #37

Open
seriojel opened this issue Aug 12, 2021 · 50 comments
Open

new arrows style? (HUD+ not showing directions) #37

seriojel opened this issue Aug 12, 2021 · 50 comments

Comments

@seriojel
Copy link

hello and thank you for this project.
i have a HUD+ and decided to revive it by using this project.

now what works:

  • pairing
  • speed
  • current time
  • test buttons in debug (all 3)

what does not work (that i could observe):

  • directions
  • ETA (i believe it’s related to above)
  • manual brightness (but it’s less important that above 2 issues)

some pictures, sorry for the poor quality of them.

my arrows style:
C2F1E312-FB2D-4D51-860F-4F9BA029B5FD

testing buttons in debug:
79681479-C106-467C-BCD1-8B296F88B413

version and statuses:
E8249063-C593-47AF-B0FD-C3210A95E375

notifications ok:
49C21F27-A1FA-4541-A8F9-CAF8734FBA32

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 12, 2021

It looks like notification from navigation is parsing failed.
Could you provide some notification pictures?

Likes this:
Screenshot_20210812-174515_Maps

@seriojel
Copy link
Author

sure, let me know if you need anything else.

B31DABA1-1332-4976-A65D-4DC1775101FB

5F635AFB-0FB8-4944-AAC3-54E2E1E20AB7

@skyforcetw
Copy link
Owner

What language do you set on android phone?
And what is your departure and destination?
I want to use your condition to test app.

@seriojel
Copy link
Author

Language: English (Unitated States)
Departure: strada Lev Tolstoi 24/1, Chisinau, Moldova
Destination: Dacia 29, Chisinau, Moldova

my feeling is the arrows on my phone are "thinner" than yours, but i can be wrong

@seriojel
Copy link
Author

oh, Android 6 if that matters.

@seriojel
Copy link
Author

@skyforcetw if you need any additional details, please ask.

@skyforcetw
Copy link
Owner

I can clone same issue now, it should be occurs at Android 6.0 only.

@seriojel
Copy link
Author

I can clone same issue now, it should be occurs at Android 6.0 only.

oh.. any chances you can fix this?

@skyforcetw
Copy link
Owner

I can clone same issue now, it should be occurs at Android 6.0 only.

oh.. any chances you can fix this?

Yes, give me some time.

@skyforcetw

This comment has been minimized.

@skyforcetw
Copy link
Owner

pls try this version for experiment.
gmaps_hud-release_v0.8.4.zip

@seriojel
Copy link
Author

seriojel commented Aug 15, 2021

@skyforcetw thanks for quick response!
Tried the new version, all I get onto the HUD is "OK" text and again no navigation.
Moreover, now

  1. the Button 1-3 in Debug screen do nothing (in 0.8.3 they worked)
  2. “Notifications capture” is not enabled

IMG_20210815_205758

IMG_20210815_210348

IMG_20210815_210424

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 16, 2021

@skyforcetw thanks for quick response!
Tried the new version, all I get onto the HUD is "OK" text and again no navigation.
Moreover, now

  1. the Button 1-3 in Debug screen do nothing (in 0.8.3 they worked)
  2. “Notifications capture” is not enabled

It's weird, I didn't modify the blue-tooth part of 0.8.4.
Debug button 1-3 should be work.
Could you remove garminuino and reboot, then install app after boot ?

@seriojel
Copy link
Author

seriojel commented Aug 16, 2021

@skyforcetw it's alive!!!

one more question, if I may: when activating "Show current speed" option, where should the speed appear on HUD?
in my case, it toggles between distance to next event and speed.

IMG_20210816_094826

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 16, 2021

There are 2 case for "Show current speed".

  1. If in navigation, speed will show on Section 6
  2. If not in navigation, speed will show on Section 1 for gathering big number.

image

@seriojel
Copy link
Author

thanks for quick help, can’t wait to give it a go in city :)

@seriojel
Copy link
Author

@skyforcetw i have a issue with arrow recognition and speed display.

  • speed is altering with distance to next event (turn or similar)
  • arrow is incorrectly shown, maps show turn left but on HUD is take sharp right?

98A76EBF-CE87-490E-81D3-0C590F0403AF

6C276331-FBD4-4CD5-B84D-3B5E52CC1A8D

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 17, 2021

@skyforcetw i have a issue with arrow recognition and speed display.

  • speed is altering with distance to next event (turn or similar)
  • arrow is incorrectly shown, maps show turn left but on HUD is take sharp right?
  1. What is your "Arrow Type" set? v1 or v2?
  2. Please open "Arrow Debug" , then capture the app's notification. There should be a arrow image show on garminuino's notify.
    550644

@seriojel
Copy link
Author

@skyforcetw if i put arrow v2 it doesn’t work at all, and from the pictures i have v1, right?

i will start arrow debug and see what i get and report back. thanks for quick advice!

@seriojel
Copy link
Author

by the way, i get a lot of “Notify parsing failed” errors in Debug window.

4A984D05-7EDE-4469-89ED-8F67940F559D

@skyforcetw
Copy link
Owner

@skyforcetw if i put arrow v2 it doesn’t work at all, and from the pictures i have v1, right?

i will start arrow debug and see what i get and report back. thanks for quick advice!

I think your arrow is v2.

https://github.com/skyforcetw/Garminuino/blob/master/GoogleMaps_HUD/SUPPORTED_ARROWS.md

https://github.com/skyforcetw/Garminuino/blob/master/GoogleMaps_HUD/SUPPORTED_ARROWSv2.md

@skyforcetw
Copy link
Owner

by the way, i get a lot of “Notify parsing failed” errors in Debug window.

4A984D05-7EDE-4469-89ED-8F67940F559D

I thnik....... There should be some bug for parsing on android 6.0 ...
Give me some time to resolve.

@seriojel
Copy link
Author

@skyforcetw if i select arrow v2 then my HUD only displays a line and that’s all:

EDBAE26A-CA63-4822-A599-69F73923DDA6

@seriojel
Copy link
Author

seriojel commented Aug 17, 2021

by the way, i get a lot of “Notify parsing failed” errors in Debug window.
4A984D05-7EDE-4469-89ED-8F67940F559D

I thnik....... There should be some bug for parsing on android 6.0 ...
Give me some time to resolve.

this is with debug for arrows:
31A09E60-3354-4F20-91A4-3CD6A60CBA08

33B69809-CC56-433E-92E6-EC11DB3FB50E

@skyforcetw
Copy link
Owner

I find the problem: the arrow v2 recognize mechanism is not work at android 6.0.
Give me some time to resolve it.

@seriojel
Copy link
Author

thank you!

@skyforcetw
Copy link
Owner

gmaps_hud-release_v0.8.5.zip
Please try v0.8.5, it fix arrow v2 for android 6.0

@seriojel
Copy link
Author

@skyforcetw this is how it’s now:
F6141987-D504-4C04-A8CE-28A5C190E743

FEDCC72E-1DD8-4DC7-8B39-57D4BB78F8EF

3D25EDB5-AE19-4A21-AFFC-31C6676006F5

23D7EB72-F05B-495D-941A-F1C9FCEC8F49

sometimes i get the ‘No gmaps app found’ (although in debug apps it’s listed) sometimes ‘Parsing error’.

HUD unfortunately does not show any info except OK.

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 19, 2021

Would you like to borrow a mobile phone with android 8.0 or higher? It is possible that the notification of 6.0 has changed the mechanism, resulting in garminuino app parsing errors

@seriojel
Copy link
Author

that’s exactly what i thought, to test out on another android. at the moment found one, but again with android 6 and it even don’t have the Notifications Capture on so no good again.
will try borrowing an android 8 or upper from friends and report back with the status.

THANK YOU once more for trying to help me out, appreciate this!

@seriojel
Copy link
Author

seriojel commented Aug 19, 2021

@skyforcetw ok, after a couple of tries i managed to get it connected with android 6.
it a works except Speed (and maybe speed alerts and traffic jams, i don’t know).

if i enable ‘Show speed’ it changes for a second with the ‘next instructions distance’ and so on (where 200m is in the photo below). i don’t know if you have any more patience to look into this, so i am just reporting.

BA711074-C67F-4268-A87B-643EF8809969

@skyforcetw
Copy link
Owner

@skyforcetw ok, after a couple of tries i managed to get it connected with android 6.
it a works except Speed (and maybe speed alerts and traffic jams, i don’t know).

if i enable ‘Show speed’ it changes for a second with the ‘next instructions distance’ and so on (where 200m is in the photo below). i don’t know if you have any more patience to look into this, so i am just reporting.

BA711074-C67F-4268-A87B-643EF8809969

OK. But I will fix arrow bug first.

@seriojel
Copy link
Author

OK. But I will fix arrow bug first.

arrows now, in 0.8.5, work as expected.

@skyforcetw
Copy link
Owner

OK. But I will fix arrow bug first.

arrows now, in 0.8.5, work as expected.

Really! Good news!

@skyforcetw
Copy link
Owner

Please try 0.8.7 for show speed bug fix.
gmaps_hud-release_v0.8.7.zip

@seriojel
Copy link
Author

@skyforcetw unfortunately with 0.8.7 nothing works: no arrows, no speed.

you can see a lot of Parsing failed:
6980D3E5-502F-43B0-A1A8-9465B0FBD218

7DBE2E29-CEDA-40AE-8563-F9E2EBEE8F0A

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 20, 2021

It seems like notify parser is not stable on android 6.0 .

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 20, 2021

It seems like notify parser is not stable on android 6.0 .

I found the root cause.
The use of java reflection restricted by newer android 10, that is notify parser's base.
Unfortunately this may be unsolvable.
https://developer.android.google.cn/about/versions/10/non-sdk-q?hl=zh-cn

But we are at android 6.0, I don't understand how this happens.

@seriojel
Copy link
Author

@skyforcetw yeah, it works good for a couple of minutes (although i can’t say if speed is working for sure) and then Parsing failing. and after a while again it’s good and then failing. this behavior again and again.

@seriojel
Copy link
Author

@skyforcetw still no luck finding an android 8+.

meanwhile, can you point me into the direction what data the HUD expects to receive in order to show info on screen? where i can find documentation, or, at lease a command to send to it to get it displayed on HUD?

@skyforcetw
Copy link
Owner

@skyforcetw still no luck finding an android 8+.

meanwhile, can you point me into the direction what data the HUD expects to receive in order to show info on screen? where i can find documentation, or, at lease a command to send to it to get it displayed on HUD?

HUD's protocol hacked by gabonator.
This is the base of garminuino app.

@seriojel
Copy link
Author

@skyforcetw thanks, have no idea how to use it but i have google and who knows… lol

thanks again and stay safe

@seriojel
Copy link
Author

seriojel commented Aug 23, 2021

@skyforcetw

IMG_6162.MOV

notifications:
6BD1EEBA-CF91-4FC3-9DB6-F4642AADCAB9

debug:
C000AB4C-598B-4BCE-A7B3-84BE8738B633

found an android 7

v 0.8.5 shows correct arrows, no speed.
v 0.8.7 shows incorrect arrows, but speed.

see please video above. can we mix them to have good arrows and speed?

@skyforcetw
Copy link
Owner

I don't have android 7.0..., there is too less information for debug.
Could yo use v0.8.8 for more information?

gmaps_hud-release_v0.8.8.zip

@seriojel
Copy link
Author

seriojel commented Aug 23, 2021

:(

B11FCB9C-EFEF-4B91-948C-A550EF20F327

@skyforcetw but after a couple of minutes it starts parsing:
F0E27DB1-A3EF-4425-A086-022F51A485D8

and then it can again fail and then again parse…

@skyforcetw
Copy link
Owner

:(
and then it can again fail and then again parse…

Same phenomenon as android 6.0 :(

@skyforcetw
Copy link
Owner

Let me explain what happen:
With android 6.0 / 7.0., the app use reflection to "digging" inside notification.
The reflection is not a official method to parse notification. (parse method 1&2)

Sometimes we can dig something in notification as we expect (show parse method 1 or 2)
, but sometimes cannot (show "non-SDK interface restriction" )
This means the notification changes the format with times go, this is strangeness.

With android 10, the app use "Extra" to "digging" notification. The "Extra" is a official & recommend method for parse notification. (show parse method 0)

@seriojel
Copy link
Author

@skyforcetw what android version is recommended then to have, so it works good?

@skyforcetw
Copy link
Owner

skyforcetw commented Aug 24, 2021

@skyforcetw what android version is recommended then to have, so it works good?

In my test, android 10 & 11's google map notification can parse by "extras", without any trouble.

@seriojel
Copy link
Author

seriojel commented Aug 24, 2021

@skyforcetw ok, will skip 8 and will try finding 10 or 11.
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants