Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 26-07-2016, 09:26   #1
3cp
Registered User

Join Date: Jul 2016
Posts: 6
opencpn 4.2 will not see nmea sentences

Hi
I have bought a ShipModul 3wi miniplex and i want to connect my Garmin 620 gps/plotter to opencpn via the miniplex
Thing is, that it seems like opencpn won't konw the sentences, at least it don't position the boat on the position and it reacts as if it gets no position data at all.
Anybody out there had the same experience / found a solution.
A screen dump of how the sentences look are attached.
Attached Thumbnails
Click image for larger version

Name:	Skærmbillede (1).jpg
Views:	90
Size:	366.2 KB
ID:	128428  
__________________

__________________
3cp is offline   Reply With Quote
Old 26-07-2016, 19:41   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,828
Re: opencpn 4.2 will not see nmea sentences

We can't see the nmea sentences either! Your screenshot needs to be clipped.

Or even better, use VDR_pi to record the data stream and save it to a file. Then rename it to xxx.doc and attach to your forum post.

We are looking for any position sentences. You can do that too. I suspect the Garmin is not sending GPS possibly?
__________________

__________________
rgleason is online now   Reply With Quote
Old 27-07-2016, 02:30   #3
3cp
Registered User

Join Date: Jul 2016
Posts: 6
Re: opencpn 4.2 will not see nmea sentences

Sorry! but the picture show the nmea debug window from opencpn. It shows among others, a line with a GPGLL sentence that, i think, is a position.
It is the correct position, that in the sentence. But it seems like opencpn ignores it.
__________________
3cp is offline   Reply With Quote
Old 27-07-2016, 03:02   #4
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,571
Re: opencpn 4.2 will not see nmea sentences

Yes, your screenshot of the NMEA debug window shows valid GPS values.
However what is irritating for me are the chars "\s:MX75-1*42\" in front of each NMEA sentence without a space before the sentence starting with $GP...

I don't know where these supplement chars come from.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 27-07-2016, 04:15   #5
3cp
Registered User

Join Date: Jul 2016
Posts: 6
Re: opencpn 4.2 will not see nmea sentences

I think these characters are added by the miniplexer.
__________________
3cp is offline   Reply With Quote
Old 27-07-2016, 04:40   #6
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,571
Re: opencpn 4.2 will not see nmea sentences

Quote:
Originally Posted by 3cp View Post
I think these characters are added by the miniplexer.
That is possible.
But normally the Debug Window looks like this attachment.
After the time stamp is the information about the device in brackets, then a space and then the NMEA sentence ($GP...).
It may be that OpenCPN has problems to recognize your different input.
The Miniplex has a configuration tool. Perhaps you have a chance to alter something there.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	DebugWindow.png
Views:	55
Size:	310.7 KB
ID:	128518  
__________________
CarCode is offline   Reply With Quote
Old 27-07-2016, 04:58   #7
3cp
Registered User

Join Date: Jul 2016
Posts: 6
Re: opencpn 4.2 will not see nmea sentences

Thanks! Carcode. Now i have something to compare to. I will try the config tool, to see if i can remove the bad parts.
__________________
3cp is offline   Reply With Quote
Old 27-07-2016, 05:06   #8
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,571
Re: opencpn 4.2 will not see nmea sentences

Quote:
Originally Posted by 3cp View Post
Thanks! Carcode. Now i have something to compare to. I will try the config tool, to see if i can remove the bad parts.
Another idea:
Can you try the WiFi output of the Miniplex instead of the USB connection?
Times ago I have installed the Miniplex for a harbour neighbor and it has worked very fine for his Windows computers, his Apple Mac and iPad; all using WiFi.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 27-07-2016, 05:18   #9
3cp
Registered User

Join Date: Jul 2016
Posts: 6
Re: opencpn 4.2 will not see nmea sentences

Sure i will and thanks again.
I still wonder, acording to the color of the lines (gray) the sentences should have been accepted by opencpn. Otherwise they should have had one of the other colors.
__________________
3cp is offline   Reply With Quote
Old 27-07-2016, 05:26   #10
Registered User

Join Date: Jun 2015
Posts: 122
Re: opencpn 4.2 will not see nmea sentences

Quote:
Originally Posted by 3cp View Post
I think these characters are added by the miniplexer.
Hi
They are NMEA v4.0 tags, seeing them in the debug window should be ok as there's code in OCPN for removing them, too bad it doesn't work in all cases : it's broken at least for gps data over serial link...

Remove them in the miniplexer or use a network link
__________________
did-g is offline   Reply With Quote
Old 27-07-2016, 05:31   #11
3cp
Registered User

Join Date: Jul 2016
Posts: 6
Re: opencpn 4.2 will not see nmea sentences

Is it something the miniplexer or the Garmin is doing?
__________________
3cp is offline   Reply With Quote
Old 27-07-2016, 07:13   #12
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,571
Re: opencpn 4.2 will not see nmea sentences

Quote:
Originally Posted by did-g View Post
Hi
They are NMEA v4.0 tags, seeing them in the debug window should be ok as there's code in OCPN for removing them, too bad it doesn't work in all cases : it's broken at least for gps data over serial link...

Remove them in the miniplexer or use a network link
I haven't found in NMEA ver 4.0 or latest version 4.1 any hint where the starting tag of a NMEA0183 sentence was changed from "$" to "\sMX75-1*42\$". Please enlighten me.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 27-07-2016, 07:21   #13
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,927
Re: opencpn 4.2 will not see nmea sentences

Gerhard...

The "\...*xx\" part of the sentence is NOT part of "starting tag". It is called a TAG block
If you need more enlightenment, read your documentation for NMEA v4 again or have a look for example at http://www.nmea.org/Assets/may%2009%...00183_v400.pdf (From Slide 15 onwards, Slide 22 of probably biggest interest for you)

Pavel
__________________
nohal is offline   Reply With Quote
Old 29-07-2016, 01:56   #14
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 343
Re: opencpn 4.2 will not see nmea sentences

Sorry to jump in without having looked hard at the problem. TAG blocks broke the code of everyone who had implicitly assumed that newlines would divide sentences including OCPN 3.something. I'd thought an update to the parsing (maybe by Pavel?) a couple of years ago fixed that but a quick look at the code suggests that serial data (and Garmin: we're assuming the interface isn't set for Garmin protocol, right?) is parsed using different routines (in OCP_DataStreamInput_Thread.cpp rather than datastream.cpp) to Network data, which is what I've mostly played with and what should handle TAG blocks ok.

In answer to 3cp, the TAG blocks are source identifiers being put out by the miniplex.

Assuming the miniplex input isn't erroneously expecting Garmin data I'm guessing the miniplex might be configurable not to output the source TAG. If not and this is on linux or Mac I can suggest a workaround. Probably someone more windowsy could do the same for Windows but if this *is* an OCPN parsing issue, maybe it's time for datastream parsing to be unified in one place?
__________________
muttnik is offline   Reply With Quote
Old 07-08-2016, 03:51   #15
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 343
Re: opencpn 4.2 will not see nmea sentences

Other commitments have prevented me from looking very closely at this but seems that Dave committed something (commit 07f5438766c9e77a2fafc450ee23a24915e13686, prior to 4.2) in Nov 2015 which should deal with NMEAv4 TAG blocks (in multiplexer.cpp) immediately after a sentence has been passed to the multiplexer from the serial input thread. Yet 3cp's debug window is still showing them. A second pair of backslashes preceding that would account for why the TAG blocks weren't stripped out but I can't think why that would consistently happen. Also I note that the title mentions OCPN 4.2 but the image in the first post seems to be of 4.4
__________________

__________________
muttnik is offline   Reply With Quote
Reply

Tags
enc, nmea, opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
NMEA AIS Sentences with Tag block. O 4.0 Do not show AIS targets. Gilletarom OpenCPN 4 08-12-2015 11:35
OpenCPN with B&G 390 - NMEA Sentences nickk OpenCPN 1 06-12-2015 12:18
OpenCPN 3.3.xxxx and plugins : NMEA sentences list ? Gilletarom OpenCPN 17 01-05-2014 07:02
Bug? OpenCPN ignoring lots of NMEA sentences - help! chris14679 OpenCPN 9 29-04-2014 19:37
OpenCPN not sending NMEA autopilot sentences. Islander OpenCPN 6 16-04-2014 08:02


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 08:34.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.