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 11-01-2021, 04:13   #346
Registered User

Join Date: Jan 2021
Posts: 2
Re: New Plugin NmeaConvertor

I have tried without spaces :


Code:
$XXMWV_formula,$WIMWV1,cos($WIMWV3+$WIMWV3),int(pi*3.1111)
same result :
Code:
<GREEN>13:12:10 (Virtual:) $XXMWV_formula,274.1,cos(11.1+11.1),int(pi*3.1111)*68<0x0D><0x0A>
Topodom is offline   Reply With Quote
Old 11-01-2021, 16:38   #347
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by pa391as View Post
I could not figure out how to become a wiki editor, can you advise, or post my example to the wiki?

SEND ME A PM
rgleason is offline   Reply With Quote
Old 06-03-2021, 14:12   #348
Registered User

Join Date: Aug 2017
Location: Cape Breton, NS, Canada
Boat: Cape Islander - tour boat
Posts: 68
Re: New Plugin NmeaConvertor

May I get some help on changing the date in the incoming ZDA sentence? I have a furuno GP32, which outputs the incorrect date, but the time is still correct.

I opened a ticket on github before finding this thread: https://github.com/RooieDirk/NmeaConverter_pi/issues/23

I have knowledge of virtual COM ports and even went so far as trying to write my own CLI java program. My program works but it is too slow, I end up missing incoming location data.

Basically, my question is can this be done using your plugin?
ian5142 is offline   Reply With Quote
Old 07-03-2021, 00:40   #349
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 515
Re: New Plugin NmeaConvertor

Short answer no.


It won't work because you can't resend a changed sentence with the same header without introducing a loop. However if you are able to alter the header with an external program or javascript into something OpenCPN is not using, then yes.
ae if you change extern an incoming:

$GPZDA,hhmmss.ss,xx,xx,xxxx,xx,xx*hh<CR><LF>
into
$WRONG,hhmmss.ss,xx,xx,xxxx,xx,xx*hh<CR><LF>
then you can use the pluging to change the incoming $WRONG sentence back in an altered $xxZDA.

You need to change the sentence before it is coming into OpenCPN as otherwise O is 'seeing' two different ZDA sentences and cant know wich one is correct, and also constant flipping the date.
__________________
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 07-03-2021, 05:24   #350
Registered User

Join Date: Aug 2017
Location: Cape Breton, NS, Canada
Boat: Cape Islander - tour boat
Posts: 68
Re: New Plugin NmeaConvertor

Can I just change the talker ID into something else in your plugin?
ian5142 is offline   Reply With Quote
Old 07-03-2021, 05:32   #351
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 515
Re: New Plugin NmeaConvertor

Yes you can.
__________________
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 07-03-2021, 05:54   #352
Registered User

Join Date: Aug 2017
Location: Cape Breton, NS, Canada
Boat: Cape Islander - tour boat
Posts: 68
Re: New Plugin NmeaConvertor

My question was more, how do I dynamically grab the date from the computer / OpenCPN to update the sentence?
ian5142 is offline   Reply With Quote
Old 13-03-2021, 11:26   #353
Registered User
 
monkeyx's Avatar

Join Date: Feb 2021
Location: North Shields, England
Boat: Halberg Rassy, 312 Mk2, 9.42 Metres
Posts: 7
Re: New Plugin NmeaConvertor

Quote:
Originally Posted by ian5142 View Post
May I get some help on changing the date in the incoming ZDA sentence? I have a furuno GP32, which outputs the incorrect date, but the time is still correct.

I opened a ticket on github before finding this thread: https://github.com/RooieDirk/NmeaConverter_pi/issues/23

I have knowledge of virtual COM ports and even went so far as trying to write my own CLI java program. My program works but it is too slow, I end up missing incoming location data.

Basically, my question is can this be done using your plugin?
Maybe look at using Node_Red to format the data as you want it?
monkeyx is offline   Reply With Quote
Old 15-03-2021, 16:31   #354
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 316
Re: New Plugin NmeaConvertor

@ian5142 you can do what you want with the JavaScript plugin. In the user guide is an example of modifying an NMEA record and sending with different talker. You can fix the date/time as you wish.
Antipole is offline   Reply With Quote
Old 20-03-2021, 00:59   #355
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 289
Re: New Plugin NmeaConvertor

Trying to convert GPZDA contained date information to e.g. RMC contained date format and fails miserably.
The GPZDA uses, in fields 2 thru 4 'DD,MM,YYYY' while e.g. RMC has the date information in field 7 as 'DDMMYY'. Looks simple enough if using something like this:

10000 * $??ZDA2 + 100 * $??ZDA3 + $??ZDA4 - 2000

That however fails if day or month has a leading zero like for 21'st of March (today). The result simply displays '321', always terminated to the last three digits if day or month has a leading zero.
Other examples using numbers for date and month pinpointing the problem:

10000 * 01 + 100 * 12 + $??ZDA4 - 2000 ----> 221 Error
10000 * 01 + 100 * 03 + $??ZDA4 - 2000 ----> 321 Error
10000 * 10 + 100 * 03 + $??ZDA4 - 2000 ----> 321 Error
10000 * 10 + 100 * 12 + $??ZDA4 - 2000 ----> 101221 Correct!

What am I missing here?
LennartG is offline   Reply With Quote
Old 24-03-2021, 23:05   #356
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 289
Re: New Plugin NmeaConvertor

The problem described in #355 now filed as a bug with Github rooiedirk/NmeaConverter
LennartG is offline   Reply With Quote
Old 03-04-2021, 01:54   #357
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 289
Re: New Plugin NmeaConvertor

Almost two weeks now and not a single reply nor a suggestion how to get around this bug.
Have tried lots of alternatives but nothing works . . . .

Anybody? Please!
LennartG is offline   Reply With Quote
Old 03-04-2021, 02:22   #358
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 316
Re: New Plugin NmeaConvertor

Quote:
Originally Posted by LennartG View Post
Almost two weeks now and not a single reply nor a suggestion how to get around this bug.
Have tried lots of alternatives but nothing works . . . .

Anybody? Please!
You can do what you want with the JavaScript plugin - see my earlier reply

Quote:
@ian5142 you can do what you want with the JavaScript plugin. In the user guide is an example of modifying an NMEA record and sending with different talker. You can fix the date/time as you wish.
Antipole is offline   Reply With Quote
Old 03-04-2021, 04:55   #359
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 289
Re: New Plugin NmeaConvertor

Antipole,
thanks for the reply. Had a look at your Java scripting tool before and I will give it a try again, not being a programmer but a system engineer it is not such a simple task.
Have a NMEA 2000 GPS but neither TwoCan nor Signal K generates the RMC sentence. What I'm aiming at is a complete build of RMC from ZDA, GLL, VTG and eventually HDG. Have all but date working thru NmeaConverter.
/LennartG
LennartG is offline   Reply With Quote
Old 13-03-2022, 06:32   #360
Registered User

Join Date: Feb 2014
Location: Nederland
Boat: Dufour 40P
Posts: 20
Images: 1
Re: New Plugin NmeaConvertor

Hi, I would like to display the ETA on min instruments. Unfortunately, opencpn only returns ECRMB, ECRMC, ECAPB, ECXTE. to show the eta you need ZTG. I was wondering if you can calculate this using the nmea converter plugin
arnolddemaa is offline   Reply With Quote
Reply

Tags
nmea, plug


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
Calculator_pi New Finished Plugin for OpenCPN SaltyPaws OpenCPN 136 28-12-2022 07:19
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
New Plugin Development on Linux globalkeith OpenCPN 5 03-05-2012 07:16
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11

Advertise Here


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


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.