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 29-01-2024, 00:15   #616
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,286
Re: Plugin: DashBoard

Quote:
Originally Posted by Corsair63 View Post
Maybe I should be doing something wrong, but not able to show the date in the Dashboard.

should it be possible to add such feature? as another field to show.
There's an instrument in Dashboard called "GNSS clock" based on time in xxGGA or xxRMC.
The date is present in the GNSS system by e.g. RMC and ZDA but there's no "instrument" for that in Dashboard, correct. Everything is of course possible as a future request. Meanwhile you may use something from the PC itself.
Hakan is offline   Reply With Quote
Old 29-01-2024, 05:18   #617
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
How to create/rewrite checksums on a file

I found an aduino routine that creates the checksum at the end of each sentence. Perhaps it can be repurposed?


https://forum.arduino.cc/t/nmea0183-checksum/559531/2
rgleason is offline   Reply With Quote
Old 29-01-2024, 05:25   #618
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by Hakan View Post
Rick..
In Dashboard code here
Beautiful,... the XDR source.

Can this be expanded?
to include things like


WIXDR,H,89,P,HUMIDITY% Relative Humidity?
amount of water vapor present in the air expressed as a percentage of the maximum possible amount of water vapor that the air can hold at a given temperature.


WIXDR,H,??? Absolute Humidity?
actual amount of water vapor present in a given volume of air
Calculation 70% RelHumidity, 90 degrees airtemp, .03374 bar vapor pressure, 0.0014945 grms/m squared

Battery SOC? for example?
WIXDR,G,95.4,BATT%

Dual Frequency Depth for example?
$SDXDR,D,2.85,M,XDHI,D,2.92,M,XDLO,C,23.16,C,WTHI


I found this Nmea0183 XDR spec
Official Calypso XDR Spec
https://github.com/maritime-labs/cal...ent-1478400841
rgleason is offline   Reply With Quote
Old 29-01-2024, 06:15   #619
Registered User
 
rgleason's Avatar

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

Absolute Humidity would have to use the G generic Type Field with no (null) Unit field.

WIXDR,G,[some value with known units],HumidityAbsolute Units=lbs/cu.ft, grms/cubic meter or kilograms per cubic meter

I don't think that Absolute humidity is used much in weather instruments, so maybe we should drop it in Watchdog!

Actually it should be very easy to derive Absolute Humidity by calculation if we really need it?
using AirTemp and RHumidity. Maybe that is what should be done in Watchdog?
Dashboard could also have a Relative Humidity instrument and perhaps a derived Absolute Humidty instrument.
rgleason is offline   Reply With Quote
Old 30-01-2024, 14:57   #620
Registered User

Join Date: Mar 2011
Posts: 732
Re: Plugin: DashBoard

Re NMEA 0183 v4.11 XDR sentences, here are a few pages of a presentation I found somewhere that describes the standard transducer names, types and units.

You will note that Absolute Humidity is defined within the standard so no need to define your own.

For state of charge, unless there is an update to the standard, (or perhaps a question directed towards a company such as Victron may provide an answer), my suggestion would be to use the standard transducer name of "BATTERY#x", a type of "G" generic and units of "P" percent.

There is also some good documentation in the last several pages of the Shipmodul Miniplex manual.
Attached Files
File Type: pdf nmea xdr v4.11.pdf (333.0 KB, 25 views)
stevead is offline   Reply With Quote
Old 30-01-2024, 17:42   #621
Registered User
 
rgleason's Avatar

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

Thank you Steve, this is a great help.



Quote:
Originally Posted by stevead View Post
Re NMEA 0183 v4.11 XDR sentences, here are a few pages of a presentation I found somewhere that describes the standard transducer names, types and units.

You will note that Absolute Humidity is defined within the standard so no need to define your own.

For state of charge, unless there is an update to the standard, (or perhaps a question directed towards a company such as Victron may provide an answer), my suggestion would be to use the standard transducer name of "BATTERY#x", a type of "G" generic and units of "P" percent.

There is also some good documentation in the last several pages of the Shipmodul Miniplex manual.
rgleason is offline   Reply With Quote
Old 02-02-2024, 04:30   #622
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,286
Re: Plugin: DashBoard

I'm trying to extend Dashboard XDR parsing to transducerName exampled above.
Not less exchange some outside air descriptions by a common; contains "AIR" made capitals.

While on it the "Dual frequency depth" mentioned above with this example.
$SDXDR,D,2.85,M,XDHI,D,2.92,M,XDLO
Present XDR parser don't include water depth. If we would add this can anyone explain how the HI and LO values would be used and prioritized? In Dashboard we have one depth instrument only.
Hakan is offline   Reply With Quote
Old 02-02-2024, 04:41   #623
Registered User
 
rgleason's Avatar

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

Hakan, I know there are many thoughts about Dashboard and XDR. Dashboard is a "plugin", albeit "internal". It is really separate from OpenCPN but uses the nmea data stream coming from OpenCPN.

I wonder why the restriction on instruments, since the nmea sentences are all available will will pass through to Dashboard, why not use the complete set? Would this slow OpenCPN down? Make it more confusing for users? What is the problem? Processing overhead for smaller cpu like RPI? As it is Openplotter supports all these instruments via signalk.
rgleason is offline   Reply With Quote
Old 02-02-2024, 04:58   #624
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,286
Re: Plugin: DashBoard

Quote:
Originally Posted by rgleason View Post
will pass through to Dashboard
If I don't misunderstand that's not correct. Dashboard is just a receiver. Nothing is "passed through"

OCPN, the multiplexer, collects and send all or requested N0183 sentences by the function ".....SendToAllPlugins".
In Dashboard when XDR is received we parse what's needed for the instruments defined there.
The same is valid for other plugins e.g. Watchdog. When XDR is received to Watchdog, from OCPN, he has to parse whats needed for defined watches. So Watchdog and other plugins can use and parse XDR totally independent of Dashboard.
Hakan is offline   Reply With Quote
Old 02-02-2024, 05:01   #625
Registered User

Join Date: May 2012
Posts: 1,226
Re: Plugin: DashBoard

Anything useful here?

https://www.eye4software.com/hydroma...-nmea0183-xdr/
Rasbats is offline   Reply With Quote
Old 02-02-2024, 05:08   #626
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,286
Re: Plugin: DashBoard

Rasbats.
I've seen that. But is that an example how one manufacturer uses XDR for there own needs?
Is it commonly used in ships using OCPN? And if so would we prioritize between HO and LO?
Hakan is offline   Reply With Quote
Old 02-02-2024, 05:54   #627
Registered User
 
rgleason's Avatar

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

Hakan you've expressed more clearly, what I intended.


Quote:
If I don't misunderstand that's not correct. Dashboard is just a receiver. Nothing is "passed through"

OCPN, the multiplexer, collects and send all or requested N0183 sentences by the function ".....SendToAllPlugins".
rgleason is offline   Reply With Quote
Old 02-02-2024, 05:55   #628
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by Rasbats View Post
Yes, thank you. I do have that info and link in my spreadsheet.


I found Steve's post very helpful, The attachment is hugely useful for XDR. "nmea xdr v4.11.pdf "
Why shouldn't this be followed?


Due to Watchdog being in RX and many of the alarms not appearing to work properly,
I've created an Issue TESTING WATCHDOG which has more information about XDR.
rgleason is offline   Reply With Quote
Old 02-02-2024, 06:08   #629
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by Hakan View Post
Rasbats.
I've seen that. But is that an example how one manufacturer uses XDR for there own needs?
Is it commonly used in ships using OCPN? And if so would we prioritize between HO and LO?
As they indicate, it is a dual frequency transducer. Probably for fishing? So you would want it to show both low and high (does this refer to frequency or depth?) I think. This is a specialized instrument, but I think you would probably take the one that represents the sea floor.

I think this is pretty specialized and would not expect it in Dashboard, but what about those fancy fisherman multifrequency transponders, do they have a common nmea0183 sentence? Or are they using other communication protocols? ...nmea2K?


In the description about the Hydro XDR Plugin at the bottom they have
  • XDLO - Low frequency transducer depth;
  • XDHI - High frequency transducer depth;
rgleason is offline   Reply With Quote
Old 02-02-2024, 06:09   #630
Registered User

Join Date: May 2012
Posts: 1,226
Re: Plugin: DashBoard

Quote:
Originally Posted by Hakan View Post
Rasbats.
I've seen that. But is that an example how one manufacturer uses XDR for there own needs?
Is it commonly used in ships using OCPN? And if so would we prioritize between HO and LO?
Think it should be up to the user to decide which frequency to use. No need for priority.
Rasbats is offline   Reply With Quote
Reply


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
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50

Advertise Here


All times are GMT -7. The time now is 21: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.