skyforcetw / Garminuino

This is a project use GarminHUD as speedometer HUD, or a GoogleMap navigation HUD.
https://hackaday.io/project/155238-garminuino
MIT License
40 stars 13 forks source link

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

Open seriojel opened 3 years ago

seriojel commented 3 years ago

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

now what works:

what does not work (that i could observe):

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 commented 3 years ago

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

Likes this: Screenshot_20210812-174515_Maps

seriojel commented 3 years ago

sure, let me know if you need anything else.

B31DABA1-1332-4976-A65D-4DC1775101FB

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

skyforcetw commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

oh, Android 6 if that matters.

seriojel commented 3 years ago

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

skyforcetw commented 3 years ago

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

seriojel commented 3 years ago

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

oh.. any chances you can fix this?

skyforcetw commented 3 years ago

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 commented 3 years ago

pls try this version for experiment.

gmaps_hud-release_v0.8.4.zip

skyforcetw commented 3 years ago

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

seriojel commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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

seriojel commented 3 years ago

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

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

skyforcetw commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

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

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

skyforcetw commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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

EDBAE26A-CA63-4822-A599-69F73923DDA6

seriojel commented 3 years ago

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 commented 3 years ago

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

seriojel commented 3 years ago

thank you!

skyforcetw commented 3 years ago

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

seriojel commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

OK. But I will fix arrow bug first.

arrows now, in 0.8.5, work as expected.

skyforcetw commented 3 years ago

OK. But I will fix arrow bug first.

arrows now, in 0.8.5, work as expected.

Really! Good news!

skyforcetw commented 3 years ago

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

seriojel commented 3 years ago

@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 commented 3 years ago

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

skyforcetw commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

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

thanks again and stay safe

seriojel commented 3 years ago

@skyforcetw

https://user-images.githubusercontent.com/88826384/130448711-a4085af0-ac9e-4f31-b3e6-e86b842b72c5.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 commented 3 years ago

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 commented 3 years ago

:(

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 commented 3 years ago

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

Same phenomenon as android 6.0 :(

skyforcetw commented 3 years ago

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 commented 3 years ago

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

skyforcetw commented 3 years ago

@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 commented 3 years ago

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