Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 24-11-2014, 14:25   #1
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Garmin xHD Radar Overlay

Hi all!

After purchasing a Garmin GMR xHD radar dome to go with OpenCPN radar overlay I realized that the protocol differs from
the GMR 18 HD reversed engineered and implemented by Dave.

So I went and bought a matching 721 plotter to be able to control the antenna.
I also got a mirroring Ethernet switch so that I will be able to monitor the traffic between the plotter and the antenna.

I have the ambition to reverse engineer this protocol as Dave has done with the gradar plugin.
At a first glance it looks like at least the commands are not that difficult to decode.

If this can be a joint effort together with the people here that's got knowledge of the gradar plugin I would be more than happy.

I am not really a software but a hardware electronics designer but have done some software coding when needed and I think I can understand the code for the gradar_pi.

/Hans
hasse_A is offline   Reply With Quote
Old 26-11-2014, 16:26   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Garmin xHD Radar overlay.

hasse_A...

I would be more than happy to help you R/E the new protocols. Its fiddly work, with some inspiration required. Feel free to bounce ideas in my direction as you proceed. I can help walk you through the PlugIn as required, also.

I think this project is do-able.

Good Luck

Dave
bdbcat is offline   Reply With Quote
Old 27-11-2014, 00:35   #3
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

Nice Dave,

I have put together a spreadsheet with data command codes and suspected status words.

There seem to be a lot more packets sent across the Ethernet cable compared to the Garmin HD setup.

A lot of data sent from the antenna seem to be static.
At the moment I have 2 traces I am working on .
1) From power on until the plotter is ready to transmit. This is about a minute.
2) A short transmission period of a few seconds.

When I come home this evening I will post the spreadsheet.
It might need some explanation since it's not that well commented.
Every command from the plotter seem to generate 3 packets.
Could be for compatibility reasons.
The repetition rate of data sent from the antenna is 2 seconds when in standby.
The "old" commands are most likely there, but also a new set that seem to contain the same info.

I will check if it is doable to upload the traces. Haven't checked the size of them.

Cheers Hans
hasse_A is offline   Reply With Quote
Old 27-11-2014, 09:34   #4
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

Ok, so here is the spreadsheet and
the pcap file for the 60 sec. start up as promised..

The Transmitt capture is to large (1.2 MB).
I will generate a smaller one later.

/Hans
Attached Files
File Type: pdf Packets.xls.pdf (43.0 KB, 170 views)
File Type: pdf Startup_66_sek.pcapng.pdf (533.5 KB, 102 views)
hasse_A is offline   Reply With Quote
Old 27-11-2014, 10:43   #5
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

So her is smaller transmit capture.
/Hans
Attached Files
File Type: pdf Transmit_2.pcapng.pdf (400.3 KB, 96 views)
hasse_A is offline   Reply With Quote
Old 27-11-2014, 11:50   #6
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

Dave

I have attached a picture.
I am thinking of setting up something like this.

The idea is to be able to run control the radar either from the plotter or PC.
I will also be able to drop messages I believe are irrelevant.
It's easy to trace any ethernet port also.
I will of course have to do some winsock programming.
What do you think ? Is it useful and worth the effort ?

/Hans
Attached Thumbnails
Click image for larger version

Name:	Setup.jpg
Views:	417
Size:	5.0 KB
ID:	92427  
hasse_A is offline   Reply With Quote
Old 27-11-2014, 13:58   #7
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

A nice breakthrough!
Looks like most of the low frequent packets from the antenna are status reports where the pkt_type corresponds to the given command.
/Hans
hasse_A is offline   Reply With Quote
Old 27-11-2014, 18:43   #8
Registered User
 
Opie91's Avatar

Join Date: Apr 2009
Location: CT
Boat: C&C 34
Posts: 1,050
Re: Garmin xHD Radar overlay.

Hans,
Thanks for making this happen. I was going to buy a HD radar a few years back, but the finances didnt work out. Anyway a xHD is in my future this spring and it would be great if it worked with O!!!
Opie91 is offline   Reply With Quote
Old 03-12-2014, 23:14   #9
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

Here's an update!

What is working ?
1) Manual Range control
2) Manual Gain control
3) Dome offset
4) Scan Speed

All these are functioning and can be set from either the gxradar program or the plotter. Also, the respond from the scanner is updated to the "other" controller.
I.e. If a change is made on the plotter the respond from the scanner is updated in gxradar or the other way around.

Whats next ?

I will in the near future implement the noise control (sea and rain clutter).

I want to get rid of (fix them to the known commands) as many respond messages as possible before I take on the task of finding out what packet(s) holds the scanner status.
It seems as if for every command there are mostly 3 packets sent to the scanner. However, only one of them is significant.

What may I need help with ?

There must be a change in the GUI at certain places.
On the xHd scanner there are a few more functions.
1) There are 2 auto gain's High and Low. Not just 1.
2) You are able to set a no transmit sector.

This must be added to the widgets. I have no experience of writing
GUI's so there can be a need for help to get things moving a bit faster.
Otherwise I will have to do some reading.

The scanner is lying on my basement floor and will not go onto the boat until April or so. This means I will have trouble getting live radar scan data earlier than that. During the time up until then I will be doing whatever can be done to get everything else working.

/Hans
hasse_A is offline   Reply With Quote
Old 05-12-2014, 02:40   #10
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

Dave

Things are working out just fine.
I have almost implemented all the noise return messages from the scanner.

Now I need to change the menus since the functionality of the xHD is different compared to the HD scanner.

I have been reading up on wxWidgets and vxFormBuilder.
Do you have the project file (.fbp) for the gradar plugin I could start of from so i won't have to do it from scratch ?

/Hans
hasse_A is offline   Reply With Quote
Old 05-12-2014, 09:34   #11
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: Garmin xHD Radar overlay.

Quote:
Originally Posted by hasse_A View Post
Dave

Things are working out just fine.
I have almost implemented all the noise return messages from the scanner.

Now I need to change the menus since the functionality of the xHD is different compared to the HD scanner.

I have been reading up on wxWidgets and vxFormBuilder.
Do you have the project file (.fbp) for the gradar plugin I could start of from so i won't have to do it from scratch ?

/Hans
Hans

Here is the .fbp file you are looking for.

Chuck
Attached Files
File Type: doc GRadarDialog.7z.doc (6.7 KB, 97 views)
ChuckSK is offline   Reply With Quote
Old 05-12-2014, 10:15   #12
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar overlay.

Thank you Chuck!

Unzipped, loaded, code generated and compared. Found to be equal .
Great.

/Hans
hasse_A is offline   Reply With Quote
Old 08-12-2014, 15:16   #13
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar Overlay

Well, things are moving along quite nicely.

Range, Noise and Dome Control menus are now working in
the sense that setting control buttons or sliders in gxradar will
control the scanner and the Garmin plotter will update it's display
accordingly. I.e. I am running both as masters.

Not much more to be done there except I have a question
for you out there.

In the original gradar written by Dave, the sliders when set to
auto mode are not movable.
Is this the way we want it ?
I'd rather have the mode change from auto to manual when you
pull the slider. This is the way the Garmin plotter behaves.
I think we should aim for some kind of standard.

Any comment on this?

/Hans
hasse_A is offline   Reply With Quote
Old 08-12-2014, 15:27   #14
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Garmin xHD Radar Overlay

Hans...

Your idea seems fine. When you touch the slider, it disables auto mode, and simply goes to manual.

Good idea
Dave
bdbcat is offline   Reply With Quote
Old 11-12-2014, 23:17   #15
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Garmin xHD Radar Overlay

Quote:
Originally Posted by hasse_A View Post
Range, Noise and Dome Control menus are now working
Sentry mode with timed transmit is implemented and working.
I have added a menu for the "No transmit zone" and will soon
have that working as well.
This is an added functionality to the Garmin xHD scanner.

I will shortly post a screenshot of what the changed and added menu's look like.

/Hans
hasse_A is offline   Reply With Quote
Reply

Tags
garmin, radar, xHD


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Radar Overlay PlugIn bdbcat OpenCPN 900 21-09-2022 00:26
Best GPS-Radar-Sonar overlay display Wolfhound Navigation 17 01-10-2013 13:14
Can You Get Radar & AIS Overlay on Laptop ? AIS Transceiver Recommendations ? lunasea.ds Marine Electronics 22 27-12-2010 13:06
Radar / Chartplotter - Overlay vs Parallel truant Navigation 7 23-08-2010 20:49
Newbie Impressions of Radar Overlay (Raymarine c80) Northeaster Marine Electronics 0 06-07-2009 06:06

Advertise Here


All times are GMT -7. The time now is 12:31.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.