Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 13-09-2023, 09:48   #1
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 151
NMEA2000: water temp not shown in Dashboard

I get water temp data via N2K from an Airmar Triducer. The Nmea window shows:

<GREEN>18:31:45 (N2000) PGN: 130312 Source: nmea2000 socketCAN-can0 ID: 0 Desc: Temperature. Not used by OCPN, maybe by Plugins

<GREEN>18:31:45 (N2000) PGN: 130316 Source: nmea2000 socketCAN-can0 ID: 0 Desc: Temperature extended range. Not used by OCPN, maybe by Plugins

The dashboard does not show the temp data.

When reading the data via SignalK the temperature is displayed.

I guess both PGNs are not supported by the Dashboard.

Can I do anything about it?

Manfred
Aldebaran17 is offline   Reply With Quote
Old 13-09-2023, 11:21   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: NMEA2000: water temp not shown in Dashboard

Quote:
Originally Posted by Aldebaran17 View Post
I get water temp data via N2K from an Airmar Triducer....
I guess both PGNs are not supported by the Dashboard.
Manfred
Sorry, neither PGN 130312 nor PGN 130316 are so far implemented in Dashboard.
Hakan is offline   Reply With Quote
Old 13-09-2023, 11:54   #3
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 151
Re: NMEA2000: water temp not shown in Dashboard

Thanks again Hakan.

So, here as well I have to take the route via SignalK.
Aldebaran17 is offline   Reply With Quote
Old 14-09-2023, 00:19   #4
Registered User

Join Date: Mar 2011
Posts: 651
Re: NMEA2000: water temp not shown in Dashboard

Perhaps a good reason for the built-in plugins (Dashboard, Grib, Chart Downloader, World Magnetic Model) to no longer be built-in, but rather to be installed via the plugin manager.
  1. Allows the plugins to be released independently of OpenCPN release cycles thereby enabling bug fixes or new features to be made available more frequently.
  2. The core developers can share the pain suffered by developers of managed plug-ins.
stevead is offline   Reply With Quote
Old 14-09-2023, 02:31   #5
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: NMEA2000: water temp not shown in Dashboard

stevead..
Perhaps something to discuss but in this case we anyway need core OCPN to handle the PGNs and pass them to any plugin.
Hakan is offline   Reply With Quote
Old 14-09-2023, 03:15   #6
Registered User

Join Date: Mar 2011
Posts: 651
Re: NMEA2000: water temp not shown in Dashboard

OpenCPN core doesn't need to process this.

The Dashboard plugin just needs to implement something like:
Code:
int dashboard_pi::Init(void) {
......

	// PGN 130312 NMEA Temperature
	wxDEFINE_EVENT(EVT_N2K_130312, ObservedEvt);
	NMEA2000Id id_130312= NMEA2000Id(130312);
	listener_130312 = std::move(GetListener(id_130312, EVT_N2K_130312, this));
	Bind(EVT_N2K_130312, [&](ObservedEvt ev) {
		HandleN2K_130312(ev);
	});

......

void dashboard_pi::HandleN2K_130312(ObservedEvt ev) {
	NMEA2000Id id_130312(130312);
	std::vector<uint8_t>payload = GetN2000Payload(id_130312, ev);

......
	Decode data
......
	SendToAllInstruments(blah, blah);
I'm not sure whether Timo's libraries which are used by OpenCPN for decoding support this PGN. I'm aware of a few that aren't such as 129040 (AIS Class B Extended Position Report) and 129808 (DSC Call Information).
stevead is offline   Reply With Quote
Old 14-09-2023, 10:39   #7
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: NMEA2000: water temp not shown in Dashboard

stevead..
You're correct. And e.g. PGN 130312 is included the core OCPN PGN list.
This would have been clear also from the NMEA debug example above where PGN 130312 is recognized. Sorry for my to fast reply.
Thanks
Hakan is offline   Reply With Quote
Old 14-09-2023, 13:10   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: NMEA2000: water temp not shown in Dashboard

stevead..
We may both have missed one thing.
When I tried this for PGN 130312 we actually have to update core OCPN!

.\OpenCPN\libs\N2KParser\src\N2KParser.cpp needed an update as well so....
Hakan is offline   Reply With Quote
Old 14-09-2023, 14:43   #9
Registered User

Join Date: Mar 2011
Posts: 651
Re: NMEA2000: water temp not shown in Dashboard

That's why I qualified my response with
Quote:
I'm not sure whether Timo's libraries which are used by OpenCPN for decoding support this PGN.
And why I made the suggestion that the built-in plugins, should be released independently of OpenCPN core, via the plugin manager.
stevead is offline   Reply With Quote
Old 18-09-2023, 02:08   #10
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 151
Re: NMEA2000: water temp not shown in Dashboard

Quote:
Originally Posted by stevead View Post

I'm not sure whether Timo's libraries which are used by OpenCPN for decoding support this PGN.
I just checked on Timo's GitHub: 130316 is implemented, whereas 130312 is labeled as deprecated.

Signal K (on Raspberry Pi), which may use the same library, interprets both PGNs.

Manfred
Aldebaran17 is offline   Reply With Quote
Reply

Tags
nmea, water


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
Dashboard - digital speed value not shown elan 333 OpenCPN 5 21-06-2020 13:17
dashboard water temp (not metric?? RickyEM OpenCPN 5 16-07-2018 12:49
Lipari 41: 41 with Osmosis treatment vs. one that has not shown osmosis Te81611 Fountaine Pajot 16 10-11-2015 08:16
RSA Sentence. Rudder angle not shown rodec OpenCPN 3 28-02-2015 05:51
Tides not Shown on CM93 Charts Sunfish OpenCPN 9 12-02-2012 02:35

Advertise Here


All times are GMT -7. The time now is 05:50.


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.