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 17-09-2018, 05:31   #1
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
NMEA Converter crashing with Raymarine data?

I have been trying to use the NMEA Converter as my Raymarine wind data in MVW is in knots but has the K identifier so is roughly halved for display on the dashboard.
It all looked good in theory using the Converter Plugin but it just crashes v4.8.6. I have checked this on two Win10 pcs.
You can installing, enable it, set a conversion, but then it hangs on closing. It forces O to reopen, then the plugin is disabled and won't enable.
Any help on this. I can bodge it by setting the dashboard wind units to Km/hr. The numbers are then right but not the description.
ratsea is offline   Reply With Quote
Old 17-09-2018, 09:28   #2
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

It can be made to work by using the timed inputs in the converter plugin but it creates a virtual port which the dashboard still isn't picking up
ratsea is offline   Reply With Quote
Old 17-09-2018, 10:25   #3
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: NMEA Converter crashing with Raymarine data?

What is the conversion format string you using? And please an example of the nmea input sentence.
__________________
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 17-09-2018, 11:05   #4
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

I am trying to replace the 'K' in this sentence:
$IIMWV,336,R,005.6,K,A*23
with an 'N' as the data is in knots, but the raymarine output must use a K for Knots as the data is in Knots.
The Plugin formula is very simple:
$IIMWV,$IIMWV1,$IIMWV2,$IIMWV3,N,A
and you can see the actual data being received in Blue above the edit box.
If you send every 1 or 2 seconds it does output data but does not replace the original NMEA stream, it just creates a virtual port output that the dashboard ignores but can be seen in the NMEA debug window.
like this:
$IIMTW,024.4,C*21
$IIMWV,023,R,010.4,K,A*22 Input line
$IIVHW,,T,359,M,00.00,N,00.00,K*6A
$IIMWV,23,R,10.4,N,A*27 Converted
Leading zeros are missing, but that shouldn't matter should it

I am on Windows 10.
If you change the edit to 'send after update all variables', it just freezes.
Thanks
ratsea is offline   Reply With Quote
Old 17-09-2018, 12:30   #5
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: NMEA Converter crashing with Raymarine data?

Ah, What you are doing is sending a $IIMTW.... line using data from a $IIMTW line.
But the newly constructed sentence is send everywhere in OpenCPN including the nmeaconverterPI. So the PI is receiving its own sentence (without knowledge from where it comes) and constructs a newone from it and sends it again. And so on. You are making a perfect infinite loop, no wonder OpenCPN is crashing


By making it a timed tranmission, you will send only every 'x' seconds, so there is no infinite loop. You should however make the transmission interval lower than the original sentence, to make sure that the data you are using is from the instrument and not from the PI.
But then still the Dashboard is receiving both sentences, the original and the one from the PI. As a result your dashboardinstrument will start flashing between a 'K' anf a 'N '.
__________________
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 17-09-2018, 13:03   #6
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

Thanks, that explains it. I have now added the 5th term as $IIMWV5 for the A and set the timer to 1 sec and that for some reason eliminates the dual N and K display and all is working fine.
This will be a very useful PI
Thsnks
ratsea is offline   Reply With Quote
Old 17-09-2018, 23:57   #7
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: NMEA Converter crashing with Raymarine data?

Just think about it, what also could work is using wildcards. It looks like raymarine is using fixed number length and prefix it with zero's if needed.

Then something like:
$IIMWV,$IIMWV?????????????K1,$IIMWV?????????????K2,.......
Should do the trick as well. (Make sure you have exact the right number of '?'.
__________________
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 18-09-2018, 03:16   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: NMEA Converter crashing with Raymarine data?

Doesn't the raymarine instrument have settings to change the parameter? Nevertheless, good excercise here.
rgleason is offline   Reply With Quote
Old 18-09-2018, 04:47   #9
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

I would have expected Raymarine to have a setting too, and it is set to Knots for all speed items, but the ST60 Multi outputs the NMEA sentence with a K and the O Dashboard thinks that is Km/HR. If you set it to Km, the numbers are right.
As you say an interesting bit of learning on the Converter.
ratsea is offline   Reply With Quote
Old 18-09-2018, 16:36   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: NMEA Converter crashing with Raymarine data?

Ratsea, thank you. Which Raymarine instruments?
rgleason is offline   Reply With Quote
Old 18-09-2018, 23:16   #11
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

I am using the NMEA output from the ST60 Multi as the input to OpenCPN for the wind/speed/depth data. I have ST60 Wind, Depth, Speed and Multi (not the Graphic). They are all set to Knots. I changed the wind units on the ST60Wind to M/S - it was the only other option. This had no effect on the NMEA sentence unit identifier. It was still K.

I also tried resetting the Multi but that is set by the master, ie Wind sets the wind units.

Without any adjustment, the O Dashboard displays about half the value shown on the ST's with its units set as Kts, but if you change them to Km/hr the data is corrected albeit that unit description is wrong. I note that the K identifier is the 'offical' one for Km/hr, so I suspect Raymarine have got it wrong. They don't offer Km/hr as a units option one these units.
I am somewhat surprised no one else has had this before, and it's only wind the speed is fine.

Hope this helps,
Richard
ratsea is offline   Reply With Quote
Old 19-09-2018, 05:01   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: NMEA Converter crashing with Raymarine data?

Quote:
ST60 Wind, Depth, Speed and Multi (not the Graphic). They are all set to Knots.
Very interesting, I have the same instruments. What device do you use to convert to nmea0183? For opencpn I use gadgetpoole.de Tiny Seatalk Converter. I'll have to note what is happening.
rgleason is offline   Reply With Quote
Old 19-09-2018, 05:35   #13
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

Quote:
Originally Posted by rgleason View Post
What device do you use to convert to nmea0183?

I thought I had said. I use the NMEA output functionality of the ST60Multi.


It has NMEA input and output. The input is the GPS stream, and the output the Depth/Speed/Wind data.


Richard
ratsea is offline   Reply With Quote
Old 20-09-2018, 04:31   #14
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: NMEA Converter crashing with Raymarine data?

Yes, you did say so. Sorry, I don't have an ST60 Multi, so didn't realize that Nme0183 is available on that. I have ST60 Tridata and ST60 Wind.
rgleason is offline   Reply With Quote
Old 20-09-2018, 12:26   #15
Registered User

Join Date: May 2010
Location: Greece/Med
Boat: HR34
Posts: 34
Re: NMEA Converter crashing with Raymarine data?

Interesting that you don't have the same issue. It must be the Multi not doing the conversion properly.
The NMEA converter solves the problem though. The manual could do with a few more examples and the explaination I was given about O freezing.
ratsea 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
NMEA crashing and closing OPENCPN Stufishing OpenCPN 12 21-02-2017 13:28
For Sale: Comar NMEA-2-WIFI NMEA 0183 Converter $230 4arch Classifieds Archive 1 02-11-2015 03:02
RS11 CANbus Engine Data Converter & Raymarine SeaTalk NG Aussie Monty Marine Electronics 6 20-04-2015 23:04
FTDI NMEA to USB COnverter cblake OpenCPN 0 26-08-2010 10:15
Data Converter NMEA to Ethernet ticki Marine Electronics 2 21-03-2010 13:37

Advertise Here


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