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 05-03-2024, 09:26   #1
Registered User

Join Date: May 2023
Posts: 52
I am not seeing True Wind Angle and Speed on OpenCPN

Forgive my lack of knowledge.

My OpenCPN dashboard is not displaying True Wind direction or angle.
My goal is to get this data recorded using the VDR plugin so I can analyze later.

I get my STW data from a NMEA0183 sensor patched in to a NMEA 2000 network which is the backbone of the boat's electronics. The wind data is already native NMEA 2000 and these are forwarded to the Raymarine display in the cockpit that calculates and displays correctly True and Apparent wind speed and angle. But this is not the case for the dashboard in OpenCPN. I can't see True wind here. Only Apparent wind.

Click image for larger version

Name:	OP4b.jpg
Views:	45
Size:	123.7 KB
ID:	287294

I am able to receive data from my NMEA 2000 network into a Raspberry Pi 4 running OpenCPN and Signal K via an Actisense NGT-1. I have a Network connection on port 3000 in OpenCPN to receive the Signal K data. I have a Signal K plugin called Signal K to NMEA0183 enabled to convert all the Signal K data to NMEA0183 so that the VDR plugin can read it. I believe I have checked the proper PGNs in the ACtisense and sentences in the SK to N0183 plugin to be passed to OpenCPN. I have a working UDP connection between Signal K and OpenCPN to send the NMEA0183 data.


This is a sample of a VDR recorded file with the data that is currently being received:

Quote:
$IIMWV,138.97,R,3.29,M,A*32
$IIVWR,138.97,R,6.40,N,3.29,M,11.84,K*7B
$IIMWV,121.47,R,3.29,M,A*37
$IIVWR,121.47,R,6.40,N,3.29,M,11.84,K*7E
$IIMTW,14.6,C*10
$IIMWV,121.47,R,3.29,M,A*37
$IIVWR,121.47,R,6.40,N,3.29,M,11.84,K*7E
$IIMWV,121.47,R,3.29,M,A*37
$IIVWR,121.47,R,6.40,N,3.29,M,11.84,K*7E
$IIMWV,121.47,R,3.29,M,A*37
$IIVWR,121.47,R,6.40,N,3.29,M,11.84,K*7E
$IIMWV,121.47,R,3.29,M,A*37
$IIVWR,121.47,R,6.40,N,3.29,M,11.84,K*7E
$IIDBT,81.8,f,24.94,M,13.6,F*1F
$IIMWV,121.47,R,3.29,M,A*37
$IIVWR,121.47,R,6.40,N,3.29,M,11.84,K*7E
$IIMTW,14.6,C*10
I can't find any MWD or VHW or VWT sentences.

Any help would be appreciated.
J.Hernandez is offline   Reply With Quote
Old 05-03-2024, 09:52   #2
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: I am not seeing True Wind Angle and Speed on OpenCPN

Dashboard is only showing data. Data that is not coming in, can't be shown.

If you are ready to do a deep dive in nmea you might install the nmea-converter plugin and calculate your own sentences. Altough you would need also a heading and speed input.
__________________
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 05-03-2024, 10:12   #3
Registered User

Join Date: May 2023
Posts: 52
Re: I am not seeing True Wind Angle and Speed on OpenCPN

I am willing to.

The boat gets heading via GPS and speed data from a transducer. I am not sure I am routing that info correctly.
J.Hernandez is offline   Reply With Quote
Old 05-03-2024, 10:19   #4
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 432
Re: I am not seeing True Wind Angle and Speed on OpenCPN

To get the true speed and direction of the wind you have to have the input of the true course and speed.
of course, as per roojerdik says you can do the calculation using the COG and speed from GNSS, but you have to use nmea-converter plugin, the help in the web about this plugin is useful and I guess that in the same help comes an example of converting the app wind into true wind.

if you could do the calculation, you'll be able to have the NMEA string available in VDR recording plugin.
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Old 05-03-2024, 10:22   #5
Registered User

Join Date: Dec 2017
Boat: IP 44
Posts: 210
Re: I am not seeing True Wind Angle and Speed on OpenCPN

True wind direction and speed is derived from a couple of inputs. I havnt thought about it in awhile, but I think it needs GPS speed (ground speed), apparent speed (water wheel speed), and AWA and speed. You may be missing one of those.

I apologize because I know I mix aviation terms with nautical. My history.
CrispyCringle is offline   Reply With Quote
Old 05-03-2024, 23:10   #6
Registered User

Join Date: May 2023
Posts: 52
Re: I am not seeing True Wind Angle and Speed on OpenCPN

I installed the Derived Data plugin and I am seeing True Wind data in the Data browser in Signal K but these data is not passing to OpenCPN despite having both the SignalK 3000 network connection and the Signal K to NMEA 0183 plugin working.

What am I missing?
J.Hernandez is offline   Reply With Quote
Old 06-03-2024, 00:36   #7
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: I am not seeing True Wind Angle and Speed on OpenCPN

To calculate a valid true wind angle, by OCPN or other apps, a heading input is needed as of Corsair's post. If only magnetic heading is available plugin WMM will make it true.

Using COG for true wind calculation will not make a usable true wind due to leeway or similar.
Hakan is offline   Reply With Quote
Old 06-03-2024, 05:51   #8
Registered User

Join Date: May 2023
Posts: 52
Re: I am not seeing True Wind Angle and Speed on OpenCPN

Quote:
Originally Posted by Hakan View Post
To calculate a valid true wind angle, by OCPN or other apps, a heading input is needed as of Corsair's post. If only magnetic heading is available plugin WMM will make it true.

Using COG for true wind calculation will not make a usable true wind due to leeway or similar.
I already have the WMM plaugin installed and enabled. That does not seem to be the problem.

Like I said, using the SK plagin Derived Data I am able to see the calculated True wind speed and direction when I look at the Data Browser like this:

Click image for larger version

Name:	SK.jpg
Views:	35
Size:	36.1 KB
ID:	287334

Both TRUE and APPARENT are equal now because the boat is moored. The problem seems to be that these Derived Data is not being send to OpenCPN from SK either as SK data or N0183 data.
J.Hernandez is offline   Reply With Quote
Old 06-03-2024, 06:25   #9
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: I am not seeing True Wind Angle and Speed on OpenCPN

We don't know how this true angle is derived if no heading is available, but anyhow..
To let Dashboard use the "environment.wind.angleTrueGround", instead of "environment.wind.angleTrueWater" you need to tell Dashboard to do so:
Dashboard (right click) Preferences.. -> Appearance: Select: [] Use N2k_SignalK true wind data over ground.
Hakan is offline   Reply With Quote
Old 06-03-2024, 06:38   #10
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: I am not seeing True Wind Angle and Speed on OpenCPN

btw:
Some legends for OCPN:
Wind direction is the angle related to north. (Meteorologic)
Wind angle is the angle related to ship's bow. (Used for sailing)
Hakan is offline   Reply With Quote
Old 06-03-2024, 15:09   #11
Registered User

Join Date: May 2023
Posts: 52
Re: I am not seeing True Wind Angle and Speed on OpenCPN

I seem to be getting somewhere.

Click image for larger version

Name:	gsw.jpg
Views:	22
Size:	61.4 KB
ID:	287348

I abandoned the SK plugin Derived data because it took me nowhere. I switched to the OpenCPN plugin NMEA Converter. There I used this sentence:

HTML Code:
$XXMWV,90-deg(atan(($??MWV3*cos(rad($??MWV1))-$GPRMC7)/$??MWV3*sin(rad($??MWV1)))),T,sqrt(sqr($??MWV3*sin (rad($??MWV1)))+sqr($??MWV3*cos(rad($??MWV1))-$GPRMC7)),N,A
Which I modified to:

HTML Code:
$XXMWV,90-deg(atan(($IIMWV3*cos(rad($IIMWV1))-$GNRMC7)/$IIMWV3*sin(rad($IIMWV1)))),T,sqrt(sqr($IIMWV3*sin (rad($IIMWV1)))+sqr($IIMWV3*cos(rad($IIMWV1))-$GNRMC7)),N,A
in order to suit my system/data better but it's esentially the same. Now I get TRUE WIND data!!

There's one thing I don't like about the formula used. It is based on SOG instead of STW. I do have the STW reading in my system (currently 0.0 because the boat is moored) but I reviewed a previous recording of NMEA0183 data and I can't find the sentence VHM there. I can see the PGN 128259 coming into SK from my Raymarine network and I have the SK plugin "SK to NMEA0183" enabled and VHM checked but it's not appearing in the NMEA debug window in OpenCPN. Am I missing something? I would prefer to use VHM (STW) over SOG for the calculation.
J.Hernandez is offline   Reply With Quote
Old 06-03-2024, 18:21   #12
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: I am not seeing True Wind Angle and Speed on OpenCPN

VHM?? - Maybe turn the last letter upside down?
Spec for VHW is here.
Hakan is offline   Reply With Quote
Old 06-03-2024, 23:50   #13
Registered User

Join Date: May 2023
Posts: 52
Re: I am not seeing True Wind Angle and Speed on OpenCPN

Oops! Yes. I meant VHW. Working up too late.

As I was saying I would like to use $??VHW5 in the formula. That value represents STW in knots.

I am getting that info from my NMEA2000 network and SK can see it as you can see here as PGN 128259.

Click image for larger version

Name:	SKDataBrowser.jpg
Views:	21
Size:	147.0 KB
ID:	287355

And I am sending that over UDP2000 to OpenCPN after converting the SK data to NMEA0183 as you can see here:

Click image for larger version

Name:	SKtoN0183.jpg
Views:	19
Size:	109.0 KB
ID:	287356

And I do see in the OpenCPN dashboard so I must be getting that sentence trough:

Click image for larger version

Name:	dashboard.jpg
Views:	14
Size:	38.7 KB
ID:	287357

But it is NOT appearing in the NMEA debug windows or in the VDR recorded files which where I needed it to be in order to use it, correct?:

Click image for larger version

Name:	NMEAdebug.jpg
Views:	23
Size:	87.7 KB
ID:	287358
J.Hernandez is offline   Reply With Quote
Old 07-03-2024, 00:50   #14
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: I am not seeing True Wind Angle and Speed on OpenCPN

Derived data works fine for me, but why are you using UDP to get data from signalk into opencpn? Signalk by default sends out nmea0183 on TCP port 10110, that's what most people use. On my setup derived data creates the true wind sigK delkta then signalk to nmea sends it out over tpc port 10110.

SigK questions might be better asked direct to the sigK team > https://discord.gg/vzRREWBn
barcoMeCasa is offline   Reply With Quote
Old 07-03-2024, 01:39   #15
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: I am not seeing True Wind Angle and Speed on OpenCPN

Because UDP is a much better protocol for this kind of application. People use TCP because of lack of knowledge, hardware limitations or combination of both, but there is no real reason to do it and their life would be better with UDP in the majority of cases.

If Signal K server sends different NMEA 0183 data over TCP and UDP, then it is a bug in that server.

The real question here of course is why use NMEA 0183 at all here as it means double conversion of data.
nohal is offline   Reply With Quote
Reply

Tags
enc, opencpn, wind


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
True wind angle not showing jptf59 OpenCPN 2 14-07-2023 09:55
Raymarine st 60 wind speed above true wind sowwaninii Marine Electronics 0 07-06-2021 09:01
True Wind Direction in Magnetic vs True B4A Marine Electronics 0 18-10-2019 07:59
OpenCPN Manual on Ground Wind, True Wind, Apparent Wind Dockhead OpenCPN 11 15-08-2018 20:15
OpenCPN not seeing dAISy output Lomax OpenCPN 45 14-12-2016 22:23

Advertise Here


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


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.