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

Join Date: Apr 2020
Boat: Norman Cross, Ray Pond Trimaran, 50
Posts: 38
Plots plugin - barometer error: nan

Hello,

I would like to track baro changes using the 'Plots' plugin but got 'nan' and no baro data when plotting. (see attached pic 1)

My setup: the baro data comes from enviro pHAT attached to the 40 pins of raspberry pi 4. The baro sensor detected on the i2c app and the signalk connection was established. I can see the pressure and temp data on signalk without problems. The pressure is also correctly displayed on opencpn's dashboard.

(see attached pic 2)

Since 'Plots' plugin for barometer expects NMEA/ MDA, the baro data on signalk is then converted to NMEA0138.

Here is the problem:
The 'Plots' plugin shows only nan and no data goes into it. From the NMEA debug window, I got the following (red indicates error):
Code:
<GREEN>18:50:52 (TCP:localhost:10110) $IIXDR,P,1.0155,B,Barometer*17<0x0D><0x0A>
<RED>--> 18:50:52 (TCP:192.168.14.1:20220) $IIXDR,P,1.0155,B,Barometer*17<0x0D><0x0A>
<GREEN>18:50:53 (TCP:localhost:10110) $IIMMB,29.9900,I,1.0156,B*71<0x0D><0x0A>
<RED>--> 18:50:53 (TCP:192.168.14.1:20220) $IIMMB,29.9900,I,1.0156,B*71<0x0D><0x0A>
<GREEN>18:50:53 (TCP:localhost:10110) $IIXDR,P,1.0156,B,Barometer*14<0x0D><0x0A>
<RED>--> 18:50:53 (TCP:192.168.14.1:20220) $IIXDR,P,1.0156,B,Barometer*14<0x0D><0x0A>
Any ideas how to debug this? Many thanks!
Attached Thumbnails
Click image for larger version

Name:	plots_barometer.png
Views:	21
Size:	11.6 KB
ID:	288138   Click image for larger version

Name:	NMEA_debug.png
Views:	19
Size:	68.2 KB
ID:	288139  

volksbar is offline   Reply With Quote
Old 27-03-2024, 18:21   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Plots plugin - barometer error: nan

What the dickens? Are you trying to use Plots_pi to show barometer data?
That is not its purpose. Please read the manual. Thanks.


LATER: Actually that looks like Dashboard_pi which does have an instrument for barometer.

It looks like you've got the barometer data, but are the checksum ok?
Try verifying the checksum for starts.
rgleason is offline   Reply With Quote
Old 27-03-2024, 21:57   #3
Registered User

Join Date: Apr 2020
Boat: Norman Cross, Ray Pond Trimaran, 50
Posts: 38
Re: Plots plugin - barometer error: nan

@rgleason:

I would like to track baro changes over time, as clearly indicated in my previous post! Dashboard shows the baro at the current point but does not track it!

As for the checksum, the format is correct and the value is fine (according to http://www.hhhh.org/wiml/proj/nmeaxor.html).
volksbar is offline   Reply With Quote
Old 27-03-2024, 22:20   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Plots plugin - barometer error: nan

The Dashboard has an instrument named Barometric history, which shows the pressure changes over time.
If you have Signal K data available, the DashboardSK plugin can draw history of absolutely anything.
nohal is offline   Reply With Quote
Old 28-03-2024, 01:03   #5
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 324
Re: Plots plugin - barometer error: nan

Quote:
Originally Posted by rgleason View Post
What the dickens? Are you trying to use Plots_pi to show barometer data?
That is not its purpose. Please read the manual. Thanks.


LATER: Actually that looks like Dashboard_pi which does have an instrument for barometer.

It looks like you've got the barometer data, but are the checksum ok?
Try verifying the checksum for starts.
It's the plots plugin. As well as speed/winf it can graph barometer data



But the pressure data input needs to be MDA, not XDR.
barcoMeCasa is online now   Reply With Quote
Old 28-03-2024, 08:21   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Plots plugin - barometer error: nan

@barcoMeCasa Bravo! I just learned something. Sorry for the mis-information.


Quote:
It's the plots_pi plugin. As well as speed/winf it can graph barometer data
But the pressure data input needs to be MDA, not XDR.
You found another little gift from Sean! I have been wanting to implement this graph of information somehow into the barometric plugins. NmeaConverter willl convert XDR to MDA. But maybe we should update this....to accept XDR which is more standard now.

https://opencpn-manuals.github.io/main/plots/index.html
https://opencpn-manuals.github.io/ma...ter/index.html

David Burch advises
We have a new high-accuracy, low-cost barometer that works great in OpenCPN. This video shows how to set it up: https://youtu.be/ZqQN4uWb9hI


Also I think this Barometer Cheat Sheet Information should be a part of the plugin somehow.


https://sailingeurybia.com/reading-b...m-cheat-sheet/
https://www.sailingeurybia.com/wp-co...r-WBF-2016.pdf
Attached Thumbnails
Click image for larger version

Name:	barometer-image_cr.jpg
Views:	9
Size:	171.5 KB
ID:	288176  
rgleason is offline   Reply With Quote
Old 28-03-2024, 21:25   #7
Registered User

Join Date: Apr 2020
Boat: Norman Cross, Ray Pond Trimaran, 50
Posts: 38
Re: Plots plugin - barometer error: nan

Quote:
Originally Posted by rgleason View Post
@barcoMeCasa Bravo! I just learned something. Sorry for the mis-information.



You found another little gift from Sean! I have been wanting to implement this graph of information somehow into the barometric plugins. NmeaConverter willl convert XDR to MDA. But maybe we should update this....to accept XDR which is more standard now.

https://opencpn-manuals.github.io/main/plots/index.html
https://opencpn-manuals.github.io/ma...ter/index.html

David Burch advises
We have a new high-accuracy, low-cost barometer that works great in OpenCPN. This video shows how to set it up: https://youtu.be/ZqQN4uWb9hI


Also I think this Barometer Cheat Sheet Information should be a part of the plugin somehow.


https://sailingeurybia.com/reading-b...m-cheat-sheet/
https://www.sailingeurybia.com/wp-co...r-WBF-2016.pdf
Many thanks! NmeaConverter_pi solved it!

I converted XDR to MDA so that the Plots_pi can get the data input.
Quote:
$IIMDA,,,$IIXDR2,$IIXDR3,,,,,,,,,,,,,,,,
It would be great if Plots_pi can accept XDR instead of the obsolete MDA.
volksbar is offline   Reply With Quote
Old 29-03-2024, 04:22   #8
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 428
Re: Plots plugin - barometer error: nan

Quote:
Originally Posted by volksbar View Post
Many thanks! NmeaConverter_pi solved it!

I converted XDR to MDA so that the Plots_pi can get the data input.


It would be great if Plots_pi can accept XDR instead of the obsolete MDA.
it is very curious because I had same problem with pressure sensor in my computers.

I have one USB sensor for computers that transmit XDR & MDA & MTA so there is no problem at all with Dashboard data.

also, I have the mobile with "BT GPS" app that send he pressure data with only XDR sentence.
disconnected the USB sensor and connected mobile via BT and dashboard in the windows computers (O 5.9.0) doesn't show the pressure reading in the dashboard. but the value is shown in the dashboard of the RPi4 under O 5.8.4-3, and it's transmitting only XDR sentence.

just in case I need that data for the tablet, and I did a conversion with NMEAConverter app and now shown.

are the same version of Dashboard app different for different o.s.?
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Old 29-03-2024, 05:15   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Plots plugin - barometer error: nan

are the same version of Dashboard app different for different o.s.?

No, I don't believe the base code is that different, but depending on the OS and the external build libraries being used, it can be different functionally, ie Windows libs, Linux libs, Flatpak libs, MacOS libs, Android Libs. There is a common set of opencpn-libs which helps. That is a complicated answer, so yes they are different but not necessarily in the way that you meant?
rgleason is offline   Reply With Quote
Old 29-03-2024, 12:23   #10
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 428
Re: Plots plugin - barometer error: nan

Quote:
Originally Posted by rgleason View Post
are the same version of Dashboard app different for different o.s.?

No, I don't believe the base code is that different, but depending on the OS and the external build libraries being used, it can be different functionally, ie Windows libs, Linux libs, Flatpak libs, MacOS libs, Android Libs. There is a common set of opencpn-libs which helps. That is a complicated answer, so yes they are different but not necessarily in the way that you meant?
my computers are as follows:
Code:
Windows 11 (x64)
OCPN Version 5.9.0-0+d40a564 Build 2024-02-25
Dashboard Version: included in OCPN build

Raspi 4 - 8 GB
Debian (Bookworm) x64
OCPN Version 5.8.4 Build 2023-07-21
Dashboard Version:  included in OCPN build
and really happens what I talking, in windows version XDR pressure is not shown in the dashboar but it's shown the same XDR in Raspi version.
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Old 29-03-2024, 12:58   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Plots plugin - barometer error: nan

I wrote @Hakan about it he may have an explanation.
rgleason is offline   Reply With Quote
Old 29-03-2024, 13:38   #12
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Plots plugin - barometer error: nan

corsair..
In 5.9 the XDR barometer pressure was "narrowed" to exclude other pressures like oil pressure.
To be recognized as an outside air pressure the VDR shall include:
TransducerType == "P", UnitOfMeasurement == "B" and (and this is new) TransducerName.MakeUpper() .Contains "BARO" That is any upper/lower of the letters "baro".
That was the change, correct or not.
I suppose your XDR sentence don't include the text "baro" in the name part (#4) of the quadruple?
Hakan is offline   Reply With Quote
Old 29-03-2024, 13:44   #13
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 428
Re: Plots plugin - barometer error: nan

just an example of date received.

in windows, also, notice that in WD plugin XDR data are not shown too.
Attached Thumbnails
Click image for larger version

Name:	sshot-1.png
Views:	15
Size:	82.3 KB
ID:	288263  
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Old 29-03-2024, 14:21   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Plots plugin - barometer error: nan

Corsair..
I played the data from your picture.
Shows fine in Dashboard OCPN 5.9 current Github master:
Attached Thumbnails
Click image for larger version

Name:	XDR_baro.png
Views:	9
Size:	156.4 KB
ID:	288265  
Hakan is offline   Reply With Quote
Old 30-03-2024, 04:47   #15
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 428
Re: Plots plugin - barometer error: nan

Quote:
Originally Posted by Hakan View Post
Corsair..
I played the data from your picture.
Shows fine in Dashboard OCPN 5.9 current Github master:
I'll update to latest 5.9.0. and revert with findings.
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Reply

Tags
plug, plugin


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
Plots Plugin rgleason OpenCPN 26 09-04-2024 16:22
PM- Plots and Watchdog - Fe2 updates - Errors similar rgleason OpenCPN 6 25-08-2020 17:52
Danger, & Escape Bearings - Who still plots them, & how? UNCIVILIZED Anchoring & Mooring 38 28-09-2017 11:49
For Sale: Nan Tai 37 feitzu Classifieds Archive 1 16-10-2013 10:42
Info About Nan Tai Sailing Boats . . . newbiesailor General Sailing Forum 0 19-07-2011 16:41

Advertise Here


All times are GMT -7. The time now is 03:46.


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.