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 22-10-2017, 09:44   #1
Registered User

Join Date: Oct 2017
Posts: 7
NMEA sentence basics

Hi all

Im playing around with open cpn
Generating nmea sentences to play around with wind position, boat headings and things of that nature
Ive read the nmea2000 white paper on sentences but there are so many

I was just wondering could someone rattle me off a few key sentences to get me up and running

I have the boat spinning through the HDT sentence

Im looking for a sentences that moves the boat in a given direction at a particular speed??
thanks
new_to_cuiser is offline   Reply With Quote
Old 22-10-2017, 10:17   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: NMEA sentence basics

To start with, there is no NMEA sentence that moves the boat, the boat is moved by engine sails, current or whatever else. The NMEA sentences you receive from various sensors contain information about the boat movement and other stuff.
There are two NMEA standards in use today, the older, more understandable and well documented NMEA 0183, which is what OpenCPN uses and you obviously talk about. And NMEA2000, the proprietary standard available only to the members of the NMEA consortium, irrelevant for us.

Let's assume you are interested in data from a GPS sensor, then from the variety of NMEA sentences that exist and cover this kind of info, you are probably interested in RMC sentence, but the same information can be established also from GGA or GLL, for example.

Pretty much all of the NEMA 0183 sentences and their meaning are described in NMEA Revealed

Pavel
nohal is offline   Reply With Quote
Old 22-10-2017, 15:21   #3
Registered User
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPBs
Posts: 12,891
Re: NMEA sentence basics

Quote:
Originally Posted by nohal View Post
To start with, there is no NMEA sentence that moves the boat, the boat is moved by engine sails, current or whatever else. The NMEA sentences you receive from various sensors contain information about the boat movement and other stuff.
I would have thought it fairly obvious that the OP was talking about moving the boat icon in OpenCPN, not his actual vessel.
StuM is offline   Reply With Quote
Old 23-10-2017, 10:36   #4
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: NMEA sentence basics

On the internet you will find files containing NMEA-0183 data of actual boats under sailing conditions. A member here on CF provides a nice file on his web site: http://navmonpc.com/downloads.html

NavMonPC can feed NMEA data into OpenCPN. It can also do lots of other things.
transmitterdan is offline   Reply With Quote
Old 23-10-2017, 16:44   #5
Registered User
 
Jman's Avatar

Join Date: Sep 2012
Location: Northeast, USA
Boat: Luders 36
Posts: 237
Re: NMEA sentence basics

Quote:
Originally Posted by new_to_cuiser View Post
Hi all



Im playing around with open cpn

Generating nmea sentences to play around with wind position, boat headings and things of that nature

Ive read the nmea2000 white paper on sentences but there are so many



I was just wondering could someone rattle me off a few key sentences to get me up and running



I have the boat spinning through the HDT sentence



Im looking for a sentences that moves the boat in a given direction at a particular speed??

thanks


I gather you are trying to manually feed nema sentences to simulate using a boat in the Nav software.

Sending sentences about heading and boat speed or speed over ground won’t “move” the boat on the chart. It will display the numbers on and “instruments” page but the boat will remain at whatever lat/long it last received. Only way to “move” the boat is to change the lat/long.
Jman is offline   Reply With Quote
Old 27-10-2017, 06:06   #6
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 983
Re: NMEA sentence basics

OpenCPN gets information about the boat's position from NMEA sentences sent by the GPS receiver updating latitude and longitude. Feeding a series of position sentences to OpenCPN will make the boat's charted position appear to move.

Fabbian
fgd3 is offline   Reply With Quote
Old 27-10-2017, 06:41   #7
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,468
Re: NMEA sentence basics

You can generate a series of position nmea sentences in a spreadsheet and save them in a file. This file played back will make the boat move in the plotter.

You must use a plotter that allows you to disable checksums. You cannot generate correct checksums from an xls generator unless you are quite skilled in programmin VB and willing to spend heaps of time writing the macro.

There is a simple alternative though: go sailing, dump your gps data to file. Then use this file to play it back on a plotter. This way you get a file with correct checksums on each line.

Etc.

Cheers,
b.
barnakiel is offline   Reply With Quote
Old 27-10-2017, 06:59   #8
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: NMEA sentence basics

Quote:
Originally Posted by barnakiel View Post
You can generate a series of position nmea sentences in a spreadsheet and save them in a file. This file played back will make the boat move in the plotter.

You must use a plotter that allows you to disable checksums. You cannot generate correct checksums from an xls generator unless you are quite skilled in programmin VB and willing to spend heaps of time writing the macro.
Maybe not a bad idea, use a spreadsheet to create random incremental positions.

Node red will create the checksum for you and read the file with a limit on how fast.

Quote:
var nmea = msg.payload;
var checksum = 0;

for(var i = 0; i < nmea.length; i++) {
checksum = checksum ^ nmea.charCodeAt(i);
}
checksum = checksum.toString(16); //convert to hex
nmea = '$' + nmea + '*' + checksum; //make the full nmea sentence again
msg.payload = nmea+"\r\n";
conachair is offline   Reply With Quote
Old 27-10-2017, 07:47   #9
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,468
Re: NMEA sentence basics

Quote:
Originally Posted by new_to_cuiser View Post

(...)
Im looking for a sentences that moves the boat in a given direction at a particular speed??
thanks
Yep. As others said. A series of RMC or alt.

Standard NMEA-0183 sentences description

RMC file dump is nice as it contains speed and heading in one file to play with.

It is easy to write a simple RMC file generator in Android that will generate a file for any start stop point speed and heading.

Just that doing a dump while walking the dock with your smartphone in your pocket is twice as simple and effective. Many apps do the dump.

Cheers,
b.
barnakiel is offline   Reply With Quote
Old 29-10-2017, 12:07   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,763
Images: 2
Re: NMEA sentence basics

Look at these posts:
http://www.cruisersforum.com/forums/...ml#post2497545

http://www.cruisersforum.com/forums/...ml#post2497658
Copy and rename CN-bos-boat-pos.txt.doc to CN-bos-boat-pos.txt and run with VDR_pi.

You may want to change the lat-long in the file with a text editor.
rgleason is offline   Reply With Quote
Reply

Tags
enc, nmea


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
how to generate nmea sentence for configuration Pegase Marine Electronics 4 03-03-2015 14:30
Radio Ocean O.Chart 7 NMEA 0183 Sentence moteje Marine Electronics 0 23-09-2013 04:13
NMEA WPL sentence support? s/v Jedi OpenCPN 9 04-03-2013 04:29
OpenCPN and NMEA sentence dmoore OpenCPN 8 21-12-2012 12:47
MOB NMEA sentence Cavalier Marine Electronics 13 27-08-2012 10:12

Advertise Here


All times are GMT -7. The time now is 16:54.


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.