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

Hud show ok but no navigation #7

Open gary52 opened 5 years ago

gary52 commented 5 years ago

Hello I just got my garminHUD to try with this. 2 issues i have so far. 1. In 0.1.5 release, nothing happen or show the bluetooth device menu when i hit "scan bluetooth".

  1. I rolled back to 0.1.4. This time i got the garminHUD to pair. However it stuck showing OK, but nothing else after i started a navigation with my google maps. (The app is showing its reading notification from google map) I have read the issues post before, it looks like it was something to do with language. I am in the US, so not sure if there's issue with the US english Google maps.
skyforcetw commented 5 years ago

Hi, which version do you use ? 0.1.5 or 0.1.5a? 0.1.5 had some bluetooth issue, cannot link to garmin hud.

gary52 commented 5 years ago

Will give 0.1.5a a try. Side note, i found build 542 version worked for me, tho the app build say its 0.1.0.

skyforcetw commented 5 years ago

Will give 0.1.5a a try. Side note, i found build 542 version worked for me, tho the app build say its 0.1.0.

It should be my mistake, I forget to push Garminuino/GoogleMaps_HUD/app/version.properties to github. This file records the build number & version. Than I build app in two place, information is not sync.

gary52 commented 5 years ago

Confirmed 0.1.5a works. Although I don't think the bluetooth auto reconnect is working. Still need to go into the app, click scan and click to connect to the hud.

Niklas04 commented 5 years ago

Hi,

Autoconnect-feature have been temporary disabled with version 0.1.5a cause it leads the app to crash

skyforcetw commented 5 years ago

Auto-connect function maybe not workable cause of Android-BluetoothSPPLibrary had some issue with auto-connect: https://github.com/akexorcist/Android-BluetoothSPPLibrary/pull/14

Niklas04 commented 5 years ago

Don't really understand what the problem is. Maybe you can explain it a little bit?

I am using autoconnect all time and it seems generally to work.

I think the Bluetooth library is sometimes a little bit buggy. Sometimes it need more times to connect (with autoconnect disabled).

doctorkrypto commented 5 years ago

I've just downloaded the signed apk and am having this issue. Is there a known workaround that is not discussed above. Totally love the idea of the project and do hope to get it working.

skyforcetw commented 5 years ago

I've just downloaded the signed apk and am having this issue. Is there a known workaround that is not discussed above. Totally love the idea of the project and do hope to get it working.

Could you screenshot the 2 tabs of app: SETUP and DEBUG .

doctorkrypto commented 5 years ago

Hey Skyforcetw,

I will do this tonight or tomorrow morning. I can't right now as I'm at work.

What I do recall is that the 3 indicators / switches are all green so I don't think it's anything very obvious.

Thanks for the quick reply,

N.

On Fri, 29 Mar 2019, 09:31 skyforce, notifications@github.com wrote:

Reopened #7 https://github.com/skyforcetw/Garminuino/issues/7.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#event-2238562504, or mute the thread https://github.com/notifications/unsubscribe-auth/AuyQeDQ_GYc_igNu1QarwZPNextTqtsfks5vbdHtgaJpZM4Z2eJb .

Niklas04 commented 5 years ago

@doctorkrypto What language are you using? One of the supported languages? (English, Chinese, Korean, German)

doctorkrypto commented 5 years ago

Yes,

UK English,

Also, Samsung Galaxy S7.

On Fri, 29 Mar 2019, 12:56 Niklas04, notifications@github.com wrote:

@doctorkrypto https://github.com/doctorkrypto What language are you using? One of the supported languages https://github.com/skyforcetw/Garminuino/blob/master/GoogleMaps_HUD/README.md#supported-languages? (English, Chinese, Korean, German)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-477987589, or mute the thread https://github.com/notifications/unsubscribe-auth/AuyQeElk_F7G21z1tHc5ho4wtiT6rCHqks5vbg1jgaJpZM4Z2eJb .

doctorkrypto commented 5 years ago

Hey guys,

Please find the screenshots attached.

Noel.

Screenshot_20190330-112259_GoogleMaps HUD

Screenshot_20190330-112242_GoogleMaps HUD

skyforcetw commented 5 years ago

Hey guys,

Please find the screenshots attached.

Noel.

It's seems no problem with these screenshots. What the android version do you use?

Can you screenshot the google map's notification like this: image

doctorkrypto commented 5 years ago

Hey skyforcetw,

Yes, I can see the green google maps notifications bar. Google 'Maps' has all Notifications allowed in 'Settings > Apps' and all Notifications allowed in 'More settings in app' (at the bottom of the 'Settings > Apps screen). Additionally your app 'GoogleMaps HUD' has all permissions and notifications allowed.

My phone is running android version 8.0.0

Thanks,

N.

skyforcetw commented 5 years ago

189601

Hi, could you try to press the debug button? (scroll to the bottom of the debug tab)

There are two main part of the app. Part 1: Parse notification. Part 2: Send to Garmin HUD.

These buttons can test the Part 2. If you can see any arrow on Garmin HUD when pressing. ,there should have some mistake in Part 1.

Please try and help us to clarify the problem. Thanks.

doctorkrypto commented 5 years ago

Of course. I'm very happy to help.

I will do this this evening and report back.

N.

On Mon, 8 Apr 2019, 09:15 skyforce, notifications@github.com wrote:

[image: 189601] https://user-images.githubusercontent.com/5211184/55708633-f3f2c780-5a18-11e9-8a5e-51f1f017575f.jpg

Hi, could you try to press the debug button? (scroll to the bottom of the debug tab)

There are two main part of the app. Part 1: Parse notification. Part 2: Send to Garmin HUD.

These buttons can test the Part 2. If you can see any arrow on Garmin HUD when pressing. ,there should have some mistake in Part 1.

Please try and help us to clarify the problem. Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-480731513, or mute the thread https://github.com/notifications/unsubscribe-auth/AuyQeNt-oloOhKC6oJEY8LRHlOn3OVNiks5vevqkgaJpZM4Z2eJb .

doctorkrypto commented 5 years ago

Hey skyforcetw,

There is no reaction on the hud to pressing those buttons.

Only thing you see on the hud is either circling (when it's connecting to Bluetooth), "ok" (when, I assume it's connected), or "----" when I turn Bluetooth off on my phone.

Hope that helps a little,

N.

On Mon, 8 Apr 2019, 09:22 Noel McCullagh, noelmccullagh@gmail.com wrote:

Of course. I'm very happy to help.

I will do this this evening and report back.

N.

On Mon, 8 Apr 2019, 09:15 skyforce, notifications@github.com wrote:

[image: 189601] https://user-images.githubusercontent.com/5211184/55708633-f3f2c780-5a18-11e9-8a5e-51f1f017575f.jpg

Hi, could you try to press the debug button? (scroll to the bottom of the debug tab)

There are two main part of the app. Part 1: Parse notification. Part 2: Send to Garmin HUD.

These buttons can test the Part 2. If you can see any arrow on Garmin HUD when pressing. ,there should have some mistake in Part 1.

Please try and help us to clarify the problem. Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-480731513, or mute the thread https://github.com/notifications/unsubscribe-auth/AuyQeNt-oloOhKC6oJEY8LRHlOn3OVNiks5vevqkgaJpZM4Z2eJb .

skyforcetw commented 5 years ago

app-debug.zip

I build a simple app that can connect to garmin hud, and show a arrow. We can clarify connection problem by this app.

Please connect to garmin hud, and press the button "send". If everything ok, it should be show "success". If failed, will show a error-code.

197258 197260

doctorkrypto commented 5 years ago

Interesting. That said success, but nothing happened on the hud device other than "OK". Is that what you were expecting?

On Fri, 12 Apr 2019, 18:32 skyforce, notifications@github.com wrote:

app-debug.zip https://github.com/skyforcetw/Garminuino/files/3074468/app-debug.zip

I build a simple app that can connect to garmin hud, and show a arrow. We can clarify connection problem by this app.

Please connect to garmin hud, and press the button "send". If everything ok, it should be show "success". If failed, will show a error-code.

[image: 197258] https://user-images.githubusercontent.com/5211184/56055283-b5983800-5d8b-11e9-83a1-31b0a7f2bdc7.jpg [image: 197260] https://user-images.githubusercontent.com/5211184/56055287-b7fa9200-5d8b-11e9-8eb1-c2147d056ca9.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-482658475, or mute the thread https://github.com/notifications/unsubscribe-auth/AuyQeBV0GTqRp6WWUp3afkjwfp7SzSaBks5vgMMZgaJpZM4Z2eJb .

skyforcetw commented 5 years ago

Ok, it not a good news... The blue-tooth library the app use which maybe not compatible with samsung S7.

doctorkrypto commented 5 years ago

No worries.

I've done a bit of java development myself in the past (no android unfortunately). I might try and dig into it. If i get anywhere with it I'll let you know.

N.

On Mon, 15 Apr 2019, 16:46 skyforce, notifications@github.com wrote:

Ok, it not a good news... The blue-tooth library the app use which maybe not compatible with samsung S7.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-483307761, or mute the thread https://github.com/notifications/unsubscribe-auth/AuyQeBdeCUb6s09CAbfKNY0JzNxdc1FXks5vhJ68gaJpZM4Z2eJb .

skyforcetw commented 5 years ago

app-debug.zip

I apply another bt library for testing: https://github.com/skyforcetw/Blue2Serial If it works, it should be a bt library problem. If not, needs some working on it.......

step1 press "Connect" , connect to garmin hud. step2 press button, it will send "100 meter" to garmin hud. 1555412407585

wypiki commented 5 years ago

I also have the problem that the connection and speed display is working fine, but Google Maps navigation notification is not captured. (Gmap's notification is disabled) Google Maps is listed in the debug screen, the language is german.

skyforcetw commented 5 years ago

I also have the problem that the connection and speed display is working fine, but Google Maps navigation notification is not captured. (Gmap's notification is disabled) Google Maps is listed in the debug screen, the language is german.

What is the android version you use?

wypiki commented 5 years ago

Android 6, Blackberry Priv

skyforce notifications@github.com schrieb am Do., 25. Apr. 2019, 13:26:

I also have the problem that the connection and speed display is working fine, but Google Maps navigation notification is not captured. (Gmap's notification is disabled) Google Maps is listed in the debug screen, the language is german.

What is the android version you use?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-486633559, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVHKM6PGQMK264GF4JLUDLPSGIN5ANCNFSM4GOZ4JNQ .

doctorkrypto commented 5 years ago

Hey Skyforcetw,

So I did a bit of C# code on the PC myself and got the attached screenshot as a log (lines starting "<<" are what the hud sent to the PC and lines starting ">>" are PC to hud).

I seem to be able to connect to it, send stuff and always get the same response (but i have no idea what it means).

Even with the PC I don't get beyond the OK screen .. even when it sends the replies over bluetooth.

The sample messages I sent came from the second last post here

https://gist.github.com/gabonator/7150910/

Could it be a firmware issue? Or is there a difference between the HUD and HUD+ api? I tried to download the api docs from the garmin website but they have all been removed or are corrupted. Can you post them if you have a copy?

So it appears the issue is not with your code at least.

all the best,

Noel.

[image: garmin_log.PNG]

On Thu, Apr 25, 2019 at 3:09 PM wypiki notifications@github.com wrote:

Android 6, Blackberry Priv

skyforce notifications@github.com schrieb am Do., 25. Apr. 2019, 13:26:

I also have the problem that the connection and speed display is working fine, but Google Maps navigation notification is not captured. (Gmap's notification is disabled) Google Maps is listed in the debug screen, the language is german.

What is the android version you use?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-486633559>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAVHKM6PGQMK264GF4JLUDLPSGIN5ANCNFSM4GOZ4JNQ

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-486688497, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJA6CCY3FO3ZE4L4AYODDPSG3QTANCNFSM4GOZ4JNQ .

doctorkrypto commented 5 years ago

garmin_log

skyforcetw commented 5 years ago

https://gist.github.com/gabonator/7150910/ Could it be a firmware issue? Or is there a difference between the HUD and HUD+ api?

Hi, I have HUD & HUD+, all can work with this app. Maybe HUD+ had two different firmware, but how does official app to recognize it? It's need some sniffer on it.

I tried to download the api docs from the garmin website but they have all been removed or are corrupted. Can you post them if you have a copy?

No. I don't see anything about protocol of garmin hud from official before. The only resource is https://github.com/gabonator/Work-in-progress/tree/master/GarminHud .

doctorkrypto commented 5 years ago

Official documentation should be linked from the bottom of the page I sent previously, but it's a broken link.

Would you mind checking if you get the same responses from the hud (as I posted yesterday)?

On Tue, 30 Apr 2019, 08:12 skyforce, notifications@github.com wrote:

https://gist.github.com/gabonator/7150910/ Could it be a firmware issue? Or is there a difference between the HUD and HUD+ api?

Hi, I have HUD & HUD+, all can work with this app. Maybe HUD+ had two different firmware, but how does official app to recognize it? It's need some sniffer on it.

I tried to download the api docs from the garmin website but they have all been removed or are corrupted. Can you post them if you have a copy? No. I don't see anything about protocol of garmin hud from official before. The only resource is https://github.com/gabonator/Work-in-progress/tree/master/GarminHud .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/skyforcetw/Garminuino/issues/7#issuecomment-487842462, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJA6DX2CZ22KOVCKLQLY3PS7WMPANCNFSM4GOZ4JNQ .

skyforcetw commented 5 years ago

Would you mind checking if you get the same responses from the hud (as I posted yesterday)?

OK, could you give the .exe file or visual studio project?

skyforcetw commented 5 years ago

Would you mind checking if you get the same responses from the hud (as I posted yesterday)?

I guess the gist result is same as the garminuino app. Because the library we use and the gist you mentioned , all author are same one: gabonator

https://github.com/gabonator/Work-in-progress/tree/master/GarminHud https://gist.github.com/gabonator/7150910/

Could you test the official app: https://play.google.com/store/apps/details?id=com.garmin.hud.indonesia&hl=en_US&rdid=com.garmin.hud.indonesia

doctorkrypto commented 5 years ago

bluetooth_hud.zip

Visual Studio 2019 project attached

I guess what I meant previously is that there seems to be a lot of documentation on what to send to the HUD, but nothing on what the HUD sends back. Maybe in my case it is trying to communicate some sort of an error. What's why I was wonder what does yours send back in response to sending it commands.