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 24-01-2020, 02:48   #76
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,233
Re: Signal K Implementation

Dave..
A small AIS load test.
Here I'm using a AIS feed that includes some 600 AIS targets. Streaming from my Win10 to SignK on RPi4 via UDP. The test of performance is done on a RPi3 wlan connected to RPi4-SignK.
CPU load on the RPi3 when:
Connected to SignK via SignalK socket and normal, ~50 AIS targets >> 40%
Connected to SignK via SignalK socket and about 600 AIS targets >> 55%
Connected to SignK via TCP/multiplexer and about 600 AIS targets >> 60%
Connected to SignK via TCP/multiplexer and normal, ~50 AIS targets >> 40%

Note: When TCP connected also depth, wind etc are parsed by the multiplexer and Dashboard.
Shots:
1. RPi3 when connected to SignK by socket and 600 AIS
2. Also when socket connected. S/Y MOMO is my boat as mentioned in my previous post.
Attached Thumbnails
Click image for larger version

Name:	AIS_SignK.jpg
Views:	82
Size:	160.0 KB
ID:	207495  
Attached Images
 
Hakan is offline   Reply With Quote
Old 24-01-2020, 03:07   #77
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: Signal K Implementation

Quote:
Originally Posted by verkerkbr View Post
Good Morning Dave,

it did a simple test in the past. Outgoing output setting in OpenCPN. TCP localhost port 2000. And in the SignalK server setup new connection for incoming NMEA183 on port 2000.

That worked. See image with MX Tommy app (SignalK) showing distance and course of the OpenCPN route.

There is also an application for use as an autopilot called Pypilot made by Sean Depaigner. Using a route from OpenCPN to steer the autoplilot. Have not tried this yet. (Boat in winter storage).

But it is perhaps a good idea to look at the code of the Pypilot to see what is needed as output from OpenCPN.

Regards,


Bram

Small addition: I had restricted the output to SMB .
verkerkbr is online now   Reply With Quote
Old 24-01-2020, 06:13   #78
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,460
Re: Signal K Implementation

Hakan...
Your observations comparing sK to old-fashioned NMEA0183-by-TCP are generally correct.
1. We can, and will, adapt Dashboard to accept signalK input. I plan to prototype this soon, and see how it goes.
2. Overall, the boat data interfacing is in a time of transition. There are very few signalK clients available, other than a few chart plotter apps like OCPN. As far as I can see, there are no signalK compatible autopilots beyond pyPilot. We hope that situation will improve, in time. Meanwhile, signalK for OCPN is available as another tool in the OCPN toolbox, and may be useful for particular use cases.
3. The especial value of signalK is that, by autoDiscovery, it enables a real plug-and-play environment. This will become even better as more devices adopt signalK. And it will be very welcomed by new users, not to mention tech support personnel.



The current situation reminds me of the early days of WiFi. Lots of fiddling required to get everyone to play nicely. Strange device drivers, arcane CLI commands, etc. Now, of course, WiFi really is a reliable "plug-and-play" environment. We hope to see signalK evolve in the same way.



Bottom line: Most users today are well served by TCP/UDP. But we are ready for future developments.


Dave
bdbcat is offline   Reply With Quote
Old 24-01-2020, 06:46   #79
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,460
Re: Signal K Implementation

Hakan...
I do not know why the s/y Momo (ownship) is not being filtered away by the logic. Works fine on my local test with live AIS data. I only can see three or four targets in my present location.


You may like to try some debug to analyze. The code for restricting ownship from the AIS decoder is at AIS_Decoder.cpp:358. There you will see the code:



Code:
        if (context == m_signalk_selfid) {
#if 0
            wxLogMessage(_T("** Ignore context own ship.."));
#endif
            return;
        }

Stepping through this method will be instructive.


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 24-01-2020, 06:57   #80
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: Signal K Implementation

Quote:
Originally Posted by bdbcat View Post
Hakan...
Your observations comparing sK to old-fashioned NMEA0183-by-TCP are generally correct.
1. We can, and will, adapt Dashboard to accept signalK input. I plan to prototype this soon, and see how it goes.
2. Overall, the boat data interfacing is in a time of transition. There are very few signalK clients available, other than a few chart plotter apps like OCPN. As far as I can see, there are no signalK compatible autopilots beyond pyPilot. We hope that situation will improve, in time. Meanwhile, signalK for OCPN is available as another tool in the OCPN toolbox, and may be useful for particular use cases.
3. The especial value of signalK is that, by autoDiscovery, it enables a real plug-and-play environment. This will become even better as more devices adopt signalK. And it will be very welcomed by new users, not to mention tech support personnel.



The current situation reminds me of the early days of WiFi. Lots of fiddling required to get everyone to play nicely. Strange device drivers, arcane CLI commands, etc. Now, of course, WiFi really is a reliable "plug-and-play" environment. We hope to see signalK evolve in the same way.



Bottom line: Most users today are well served by TCP/UDP. But we are ready for future developments.


Dave

Hi Dave,

don't forget that you can convert SignalK to NMEA2000. Then there are a lot of clients for the data export from OpenCPN.

And for routes etc. you need the data from OpenCPN. It would be nice if the output of OpenCPN could be used direct in the SignalK format

And SignalK can easily mix the incoming and outgoing streams. NMEA183, NMEA2K, SignalK.

Plus all the possibilities on other remote systems (internet ?) with this HTML SignalK in a browser.

Since NMEA2K is opened by SignalK/canboat the marine data communication is no longer closed,

The NMEA organisation is working on another standard called Onenet:

https://www.nmea.org/content/STANDARDS/OneNet

Regards,


Bram
verkerkbr is online now   Reply With Quote
Old 24-01-2020, 07:04   #81
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,460
Re: Signal K Implementation

Bram...


re:
don't forget that you can convert SignalK to NMEA2000.


And how does one do that today? By external hardware gateway? Or maybe in OCPN core?


Dave
bdbcat is offline   Reply With Quote
Old 24-01-2020, 07:24   #82
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: Signal K Implementation

Quote:
Originally Posted by bdbcat View Post
Bram...


re:
don't forget that you can convert SignalK to NMEA2000.

And how does one do that today? By external hardware gateway? Or maybe in OCPN core?

Dave

Hi Dave,

if you look at the applications in the SignalK server list you can find:

"SignalK to NMEA2000" plugin by Scot Bender. So you can transfer the SignalK to an NMEA2K system. Or an nmea183 windset via SignalK to NMEA2K.

This Scot Bender developed a lot of instruments for SignalK. However only for Apple systems.

https://www.wilhelmsk.com/


You need a canbus adapter. I'am using the small and cheap Canable canbus. But the NGT-1 from Actisense can also be used.


Regards,


Bram
verkerkbr is online now   Reply With Quote
Old 24-01-2020, 07:47   #83
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,460
Re: Signal K Implementation

Bram...


OK, just to be extra-clear, so that all readers can follow the jargon, and imagine the wiring:


One can add a plugin to the node.js signalK server to convert signalK to N2K, and output the data by canbus or NGT-1 USB adapter attached to the device running the server. Often this is a separate rPI running OpenPlotter.


More detail:
Do we have a list of N2K client devices (e.g. autopilot), and their required pgn's? This will lead us to the required signalK sentences that need to be output by OCPN core...



Accurate?
Dave
bdbcat is offline   Reply With Quote
Old 24-01-2020, 08:23   #84
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: Signal K Implementation

Quote:
Originally Posted by bdbcat View Post
Bram...


OK, just to be extra-clear, so that all readers can follow the jargon, and imagine the wiring:


One can add a plugin to the node.js signalK server to convert signalK to N2K, and output the data by canbus or NGT-1 USB adapter attached to the device running the server. Often this is a separate rPI running OpenPlotter.


More detail:
Do we have a list of N2K client devices (e.g. autopilot), and their required pgn's? This will lead us to the required signalK sentences that need to be output by OCPN core...



Accurate?
Dave

I don't have an autopilot with NMEA2K and I don't know what these systems need. My PyPilot system is not yet fitted.


This SignalK to the NMEA2K PGN's is still work in progress.


Accoding to the plugin SignalK > NMEA2K, these PGN's are allready available:

AIS (129794, 129038, 129041)Enabled

Battery (127506 & 127508)Enabled

Battery Mapping

COG & SOG (129026)Enabled

Depth (128267)Enabled

Temperature, exhaust (130312)Enabled

Engine Mapping

Engine Parameters (127489,127488)Enabled

Engine Mapping

Location (129025,129029)Enabled

Heading (127250)Enabled

Speed (128259)Enabled

System Time (126992)Enabled

Tank Levels (127505)Enabled

Outside Temperature (130312)Enabled

Inside Temperature (130312)Enabled

Engine Room Temperature (130312)Enabled

Refridgerator Temperature (130312)Enabled

Wind (130306)Enabled

Bram
verkerkbr is online now   Reply With Quote
Old 24-01-2020, 08:34   #85
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,233
Re: Signal K Implementation

Autopilot N2K
Check here what Douwe did, although using an Actisense converter
https://github.com/douwefokkema/AutoTrackRaymarine_pi
Hakan is offline   Reply With Quote
Old 24-01-2020, 08:52   #86
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,700
Images: 2
Re: Signal K Implementation

I believe Dashboard-tactics_pi is a signal k client. That is just one of the reasons I think it should be an internal plugin in lieu of dashboard.
rgleason is offline   Reply With Quote
Old 24-01-2020, 11:42   #87
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,233
Re: Signal K Implementation

Quote:
Originally Posted by bdbcat View Post
Hakan...
I do not know why the s/y Momo (ownship) is not being filtered away by the logic. Works fine on my local test with live AIS data. I only can see three or four targets in my present location.


You may like to try some debug to analyze. The code for restricting ownship from the AIS decoder is at AIS_Decoder.cpp:358. There you will see the code:



Code:
        if (context == m_signalk_selfid) {
#if 0
            wxLogMessage(_T("** Ignore context own ship.."));
#endif
            return;
        }
Stepping through this method will be instructive.


Thanks
Dave
Dave..

Thanks for the hint. I understand the code you made for SignK is quit different from when passing through the multiplexer.
From here: m_signalk_selfid = (root["self"].AsString()); I see that a lot info is passed from the Signal-K server. Here you're looking for info about the own ship as stated at the SK server. And on my server on the RPi4 I didn't entered any own ship information.
So when having fed my SK server with a MMSI number the own ship AIS target is no longer drawn on the RPi3 client.
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 24-01-2020, 12:53   #88
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,233
Re: Signal K Implementation

Quote:
Originally Posted by rgleason View Post
I believe Dashboard-tactics_pi is a signal k client. That is just one of the reasons I think it should be an internal plugin in lieu of dashboard.
I suppose that's a misunderstanding? Only GPS data are shown. And actually I've not investigated how Dashboard does receive that.

Here all missing data are sent to SingK and are also returned. That I can see when I switch input from SignalK socket to a TCP connection. Then all data are shown on the Dashboard.
Håkan
Attached Thumbnails
Click image for larger version

Name:	DB_SK.jpg
Views:	72
Size:	140.7 KB
ID:	207523  
Hakan is offline   Reply With Quote
Old 24-01-2020, 13:16   #89
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,460
Re: Signal K Implementation

Hakan...
re:
So when having fed my SK server with a MMSI number the own ship AIS target is no longer drawn on the RPi3 client.

You got it. Does not really matter what your ownship MMSI is, just as long as it is not matching some received external target. I think the OpenPlotter default MMSI is something like "123456789", a nonsense number that will never be seen as a valid target.



Thanks for looking
Dave
bdbcat is offline   Reply With Quote
Old 24-01-2020, 13:44   #90
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,233
Re: Signal K Implementation

Dave..
Ok, Understood. My list was total empty after some SK-reinstall and other stuff.
Håkan



BTW: Some more log messages to omit after the debug period is ended.
I got 8000 rows of this for a 10 minutes period.

Code:
9:27:03 PM: ** Signal K unhandled update: navigation.magneticVariationAgeOfService
9:27:03 PM: ** Signal K unhandled update: navigation.datetime
9:27:03 PM: ** Signal K unhandled update: navigation.magneticVariationAgeOfService
9:27:03 PM: ** Signal K unhandled update: navigation.datetime
9:27:03 PM: ** Signal K unhandled update: environment.water.temperature
9:27:03 PM: ** Signal K unhandled update: navigation.log
9:27:03 PM: ** Signal K unhandled update: navigation.trip.log
9:27:04 PM: ** Signal K unhandled update: navigation.speedThroughWater
9:27:04 PM: Context: vessels.urn:mrn:imo:mmsi:265514850, 265514850
9:27:04 PM: Got MMSI from context.
Hakan is offline   Reply With Quote
Reply

Tags
men


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
Open source implementation of PACTOR-3 and -4 Jammer Marine Electronics 53 02-02-2019 16:30
Navico BR24 Radar - Open Source protocol implementation maxxflow OpenCPN 23 30-07-2012 04:20
New Waypoint Properties Implementation nohal OpenCPN 206 14-07-2012 12:38
GPS signal too weak on Datamarine 5000 phorvati Marine Electronics 2 11-08-2009 14:26
Info on Signal flag Fonts ? JMRmarinero Flotsam & Sailing Miscellany 2 28-06-2007 08:54

Advertise Here


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


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.