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-04-2015, 05:47   #1
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 510
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, 817 views)
File Type: pdf NmeaConverter.pdf (143.6 KB, 836 views)
rooiedirk is offline   Reply With Quote
Old 24-04-2015, 08:42   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
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, 11:16   #3
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 510
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, 493 views)
rooiedirk is offline   Reply With Quote
Old 29-04-2015, 16:35   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
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, 00:15   #5
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 510
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 offline   Reply With Quote
Old 03-11-2015, 04:41   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
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, 05:59   #7
Registered User
 
edelvoilier's Avatar

Join Date: Dec 2011
Location: France - Haute Savoie
Boat: SUN ODYSSEY 40
Posts: 58
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, 07:41   #8
Registered User
 
edelvoilier's Avatar

Join Date: Dec 2011
Location: France - Haute Savoie
Boat: SUN ODYSSEY 40
Posts: 58
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, 07:45   #9
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 510
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 offline   Reply With Quote
Old 08-11-2015, 07:48   #10
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 510
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 offline   Reply With Quote
Old 08-11-2015, 10:29   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: New Plugin NmeaConvertor

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

Join Date: Feb 2015
Location: Cambridge, UK
Posts: 16
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, 56°47'S 166°26'W)
povl is offline   Reply With Quote
Old 09-01-2016, 19:01   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
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, 00:25   #14
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 219
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, 17:30   #15
Registered User

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

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

Povl
(now at 60°02'S 157°54'W, with ever slower internet access...)
povl is offline   Reply With Quote
Reply

Tags
nmea, plug


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
Calculator_pi New Finished Plugin for OpenCPN SaltyPaws OpenCPN 136 28-12-2022 07:19
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
New Plugin Development on Linux globalkeith OpenCPN 5 03-05-2012 07:16
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11

Advertise Here


All times are GMT -7. The time now is 07:20.


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.