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
Please simplify the life of 'Signal K non-experts' users !
#4
(2021-04-21, 07:33 PM)SCarns Wrote: It took me a while to grasp the concepts, also. But once I figured it out, it works just fine. For what it's worth, here's my experience with my VHF:

I connected a usb serial cable to the RX/TX of the radio and plugged it into my RPi. As you stated, I added the connection into the Serial app as NMEA0184 and added it to SK.

In SK, I check the settings and put "VHFLocation" in "Output Events" field. This will be used to open the port to send data TO the VHF. Since my serial connection is bidirectional, I put "VHFAlert" into the "Sentence Event" to RECEIVE any DSC and DSE sentences sent from the radio. That's just the port set up.

Then, and this is the confusing part that I had to mess with to figure out, I had to install and set up the "NMEA0183-to-NMEA0183" plug in to essentially route the NMEA0183 data. In the plugin settings, I created the first filter with the input event of "nmea0183out", set the output event to "VHFLocation", and turned on GGA, GLL, GNS, and RMC, as these are the four NMEA0183 sentences my radio can receive. What this seems to do is every time there is a data even on the NMEA0183out (the main 0183 data stream of SK) it sends GGA, GLL, GNS, and RMC to VHFLocation, which we have routed to the output of the VHF serial connection. On my set, this works beautifully.

Next, I added another input event in the NMEA-to-NMEA plugin that "watches" for a "VHFAlert" event from port and outputs that event to nmea0183out. My radio only sends DSC and DSE sentences, and if it does send them, the plugin dumps them into the SK NMEA0183 data stream. This I'm unsure whether it works or not, as I haven't received any DSC alerts to know whether OpenCPN will pick those up or not, but it should work just fine. Anyone have any feedback on this?

For yours, you'll need an additional port for the AIS side of things, for sure, as the baud rate is different. But the idea is basically the same. You'll set up and receive data on that port. Then, you'll need a channel for it and insert it into the NMEA0183 data stream.

I myself would like have a better understanding of how NMEA data works within SK and what the difference is between nmea0183 and nmea0183out, as the "out" has a lot more data and information in it than nmea0183. Both of those seems to be reserved for SK and ancillary ports (such as VHFAlert or autopilot) must get their data from that stream of information.

Steve
Steve, thanks a lot, your clear explanations preserved me from drowning down !

I couldn't test the results yet, but I sincerely hope it will work ! And as it worked for you, it should
work for everyone, shouldn't it ?

I retain that to set-up a link we have 3 (4?) actions to do :
  • Step 0 : if not yet done, install, in Signal K the NMEA to NMEA plugin ;
  • Step 1 : define the device in SERIAL, and allocate a proper connection to Signal K ;
  • Step 2 : in Signal K / connections : adjust the bit rate if needed, define the input/events,
    or output/events, or both;
  • Step 3 : in signal K / plugin config / 'NMEA to NMEA' plugin : declare the input and/or output/events,
    and select associated NMEA sentences ;
In the lack of any guidelines, what was most obscure and confusing, for me at the beginning,  was whether
output/events and input/events were pre - defined keywords, or arbitrary keywords created freely by the user Huh
Please future doc writer elaborate !

If my understanding is right, they are arbitrary, user created,  keywords ! In this case the question is :
is there, hidden somewhere in the clouds, a mysterious 'Table of the rules' to create such keywords ?
Hum, maybe not  Dodgy Exclamation

(2021-04-21, 07:56 PM)PaddyB Wrote: https://github.com/SignalK/signalk-serve...tting-Data

Hi PaddyB !
Quite interesting !
I have not yet got 100 % of it, but I am still working at it Confused Smile
Cordialement
Didier B
Pi4, SSD USB3, OP 3.0 Touch SK 3.2.1 OpenCPN  5.8.4 :  Thank you  Thank you  Thank you


Reply


Messages In This Thread
RE: Please simplify the life of 'Signal K non-experts' users ! - by Didier B - 2021-04-24, 12:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)