Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 24-04-2015, 06:47   #1
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 301
New Plugin NmeaConvertor

I wanted dashboard to show the air temperature, but my AirmarPB200 doesn't send the right senteces for this. Now could I hack around in dashboard to get it work, but decided to take an other way.
I made a hard coded plugin to take the temp data from the PB200 (a $WIMDA sentence) and convert this to a $xxMTA sentence wanted by dashboard. When this worked I made it more general useable by adding a kind of spreadsheet art of formula writing.
In principle you can compose every posible nmea sentence, and send timed or after updating the input variables. That is sending every x seconds, or after all variables used in the output are renewed.
This could help to get some picky instruments working. Say converting waypoint to a format the autopilot understands, or routes to a gps that wants a special format.
https://github.com/RooieDirk/NmeaConverter
It works for me using linux, but almost sure to contain bugs. Attached a compiled linux 32 bit version and a very simple howto.
If somebody could try to make a windows .dll, that would be appreciated.
Constructive comments are welcomed.

PS working now to add calculating as in spreadsheets.
Attached Files
File Type: pdf libNmeaConverter_pi.so.pdf (527.7 KB, 202 views)
File Type: pdf NmeaConverter.pdf (143.6 KB, 249 views)
__________________

__________________
rooiedirk is online now   Reply With Quote
Old 24-04-2015, 09:42   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: New Plugin NmeaConvertor

Dirk...
Many thanks.
The installation packages for Windows and Mac are now available at https://sourceforge.net/projects/ope...aconverter_pi/
The Ubuntu packages will be ready in a couple of minutes in the beta PPA - just
Code:
sudo apt-get update
sudo apt-get install opencpn-plugin-nmeaconverter
Have fun

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 26-04-2015, 12:16   #3
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 301
Re: New Plugin NmeaConvertor

Added functions and calculations. So now you can recalculate some nmea data before transmitting again in a different form.
source code is now https://github.com/RooieDirk/NmeaConverter_pi here.

Attached Files
File Type: pdf NmeaConverter.pdf (178.1 KB, 203 views)
__________________
rooiedirk is online now   Reply With Quote
Old 29-04-2015, 17:35   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: New Plugin NmeaConvertor

Rooie Dirk, Thank you for the plugin. I tried compiling it for Windows and installed it, and simply tried enabling it and then went into preferences and looked and then closed preferences without changing the Dummy entry, the plugin bombed Opencpn unfortunately. Perhaps there should be a message that says you should change the Dummy entry into meaningful nmea, and then not send Opencpn anything to the thing closes without bomb.

I then found your nice short explanation pdf in this thread and should try to get my head around how you write a conversion because its going to become very handy.

I wonder if some of this how to could become more integrated? So when someone opens that Preferences, there is a Help button? More work I know, but I think the plugin is going to be very useful for people. Thanks for making it in any case.

Rick
__________________
rgleason is offline   Reply With Quote
Old 30-04-2015, 01:15   #5
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 301
Re: New Plugin NmeaConvertor

Rick,
Thanks for catching a fly. Forgot to check for a empty list. Corrected in git now. Including help will take some more time.
__________________
rooiedirk is online now   Reply With Quote
Old 03-11-2015, 05:41   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: New Plugin NmeaConvertor

Rooie Dirk, I finally made a Tracker entry for pi - NmeaConverter would you be the admin?
Thanks.

OpenCPN::Tracker pi - NmeaConverter: Tasklist
__________________
rgleason is offline   Reply With Quote
Old 06-11-2015, 06:59   #7
Registered User
 
edelvoilier's Avatar

Join Date: Dec 2011
Location: France - Haute Savoie
Boat: Edel 4DL 7m10
Posts: 53
Re: New Plugin NmeaConvertor

Hi Guys,

I would like to know how to use nmeaconverter using a XDR sentence.

XDR sentence can be use to send severals sort of informations

NMEA documentation said :
1 2 3 4 n
| | | | |
$--XDR,a,x.x,a,c--c, ..... *hh
1) Transducer type
2) Measurement data
3) Units of measurement
4) Name of transducer
x) More of the same
n) Checksum


For example my wind sensor send Two XDR sentences 1 for temperature and pressure and other for humidity

$OWXDR,H,77.7,P,2*65
$OWXDR,C,21.6,C,3,P,95754,P,4*70

So my request is : How to do to create a WIMDA sentence using those XDR sentences ?

Good idea this plugin
__________________
edelvoilier is offline   Reply With Quote
Old 06-11-2015, 08:41   #8
Registered User
 
edelvoilier's Avatar

Join Date: Dec 2011
Location: France - Haute Savoie
Boat: Edel 4DL 7m10
Posts: 53
Re: New Plugin NmeaConvertor

XDR sentences are :

$OWXDR,H,77.7,P,2*
$OWXDR,C,21.6,C,3*
$OWXDR,P,95754,P,4*
__________________
edelvoilier is offline   Reply With Quote
Old 08-11-2015, 08:45   #9
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 301
Re: New Plugin NmeaConvertor

I'm afraid you this doesn't work. The nmeaConverterPI does select te sentences is uses by TalkerID and sentence indentifier. As you are haveing different sentences with the same dentification the PI can't know with one to use.
As the PI is written now the "," is also the seperator, and you cant use it as an selector.
Dirk
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is online now   Reply With Quote
Old 08-11-2015, 08:48   #10
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 301
Re: New Plugin NmeaConvertor

Quote:
Originally Posted by rgleason View Post
Rooie Dirk, I finally made a Tracker entry for pi - NmeaConverter would you be the admin?
Thanks.

OpenCPN::Tracker pi - NmeaConverter: Tasklist
I could do, but as an merchant seaman I am regular a few months away.
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is online now   Reply With Quote
Old 08-11-2015, 11:29   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: New Plugin NmeaConvertor

Yes, understood. Sean is too on his voyages.
__________________
rgleason is offline   Reply With Quote
Old 09-01-2016, 14:50   #12
Registered User

Join Date: Feb 2015
Location: Cambridge, UK
Posts: 11
Send a message via Skype™ to povl
Re: New Plugin NmeaConvertor

I don't suppose anyone could post a recent Mac OS X build of the NMEA converter either on the website or on this forum? Pavel's package on GitHub is quite an old version - and while I normally would compile it myself, I am currently at sea with a slow satellite link, and forgot to copy my build environment onto my laptop before leaving...

Thanks,

Povl
(currently on RV Araon, 5647'S 16626'W)
__________________
povl is offline   Reply With Quote
Old 09-01-2016, 20:01   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,392
Re: New Plugin NmeaConvertor

Povl, maybe Peter (ptulp) will compile it for you.
I will shoot him a PM
__________________
rgleason is offline   Reply With Quote
Old 10-01-2016, 01:25   #14
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 179
Re: New Plugin NmeaConvertor

Quote:
Originally Posted by povl View Post
I don't suppose anyone could post a recent Mac OS X build of the NMEA converter
You can download the latest version here:
https://github.com/ptulp/NmeaConvert...Plugin_0.2.pkg

Peter
__________________
ptulp is offline   Reply With Quote
Old 10-01-2016, 18:30   #15
Registered User

Join Date: Feb 2015
Location: Cambridge, UK
Posts: 11
Send a message via Skype™ to povl
Re: New Plugin NmeaConvertor

Thank you very much, Peter and Rick. Downloaded successfully!

Povl
(now at 6002'S 15754'W, with ever slower internet access...)
__________________

__________________
povl is offline   Reply With Quote
Reply

Tags
nmea, plug

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
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 72 27-02-2016 12:42
Calculator_pi New Finished Plugin for OpenCPN SaltyPaws OpenCPN 95 26-11-2014 15:01
New Plugin Development on Linux globalkeith OpenCPN 5 03-05-2012 08:16
New History Plugin for OpenCPN boat_alexandra OpenCPN 11 04-10-2010 15:11



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 13:19.


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.