This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Signal K to modify NMEA data/sentences
#1
Hi folks!

I want to change some NMEA 0183 data and I did it with Node-RED. Know I am thinking about using Signal K but I am not sure if it is possible to modify data. I saw this thread:

https://forum.openmarine.net/showthread.php?tid=3809

But there is no answer to the question which was raised at the beginning.

I need to change a NMEA0183 MWV sentence and convert it to a NMEA0183 VWR sentence. Both contain wind information.

VWR is "relative wind angle". MWV is "wind angle" which seems to carry both, true and relative wind angles. In my case it is the relative wind angle but my autopilot only accepts VWR.

So, it is a simple conversion in this case. I can do it with Node-RED, I need to calculate a new checksum and send it out again. Okay.

But can Signal K modify sentences? 
I am also thinking about writing a plug-in for this special scenario. But before starting with that, I thought there might be something already which I can use.

Best regards, Malte
Reply
#2
(2024-03-12, 08:06 PM)SirReal Wrote: Hi folks!

I want to change some NMEA 0183 data and I did it with Node-RED. Know I am thinking about using Signal K but I am not sure if it is possible to modify data. I saw this thread:

https://forum.openmarine.net/showthread.php?tid=3809

But there is no answer to the question which was raised at the beginning.

I need to change a NMEA0183 MWV sentence and convert it to a NMEA0183 VWR sentence. Both contain wind information.

VWR is "relative wind angle". MWV is "wind angle" which seems to carry both, true and relative wind angles. In my case it is the relative wind angle but my autopilot only accepts VWR.

So, it is a simple conversion in this case. I can do it with Node-RED, I need to calculate a new checksum and send it out again. Okay.

But can Signal K modify sentences? 
I am also thinking about writing a plug-in for this special scenario. But before starting with that, I thought there might be something already which I can use.

Best regards, Malte

If you have signalk apparent wind speed and apparent wind angle the signalk to nmea0183 should do it for you maybe?

https://www.npmjs.com/package/@signalk/s...veTab=code
Reply
#3
Just had a play, if signalk receives this $IIMWV,000.0,R,010.6,N,A*3A
it creates 'environment.wind.speedApparent' & 'environment.wind.angleApparent'
then with the signalk to nmea0183 running and VWR selected over tpc port 10110 it outputs >

$IIMWV,000.0,R,010.6,N,A*3A
$IIVWR,0.00,R,10.60,N,5.45,M,19.63,K*47
Reply
#4
Cool, thanks PaddyB! I will give a try!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)