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 26-02-2020, 05:27   #196
Registered User

Join Date: Mar 2011
Posts: 724
Re: Signal K Implementation

Sorry, but there are no PGN 129297 samples there.

What is needed is a capture from an EU Inland Waterways AIS transmission from a vessel with PGN's 129038 (Class A position report), 129794 (Class A Static and Voyage Related Data) and 129797 (Broadcast Binary Message).

129038 provides the vessel's MMSI number and Special Manoeuvre Indicator field,
129794 provides the matching MMSI number and the IMO field (which should be set to zero for EU Inland Waterways) and
129797 provides the matching MMSI number and the Designated Area Code (DAC) and Functional ID (FID) encapsulated in the binary message field.

I believe that OpenCPN should determine a vessel's "Blue Flag" status by testing for an IMO value of zero instead of testing for a DAC value of 200, which would make this discussion of how to process PGN129797 moot.

Refer to http://www.unece.org/fileadmin/DAM/t...S-SC3-176e.pdf

In anycase it would be great to have some sample data for PGN 129797 just so that we can understand how to interpret it. And while we're at it, samples of PGN 129808 Digital Selective Calling would round out my list.
stevead is offline   Reply With Quote
Old 26-02-2020, 09:37   #197
Registered User

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

Inland shipping here in Europe with dangerous goods must show blue cone(s), depending and the danger of the goods. This blue cones are displayed also on the display on icon of the vessel.

I think that is the meaning of the blue pgn. Default should be zero.


Bram
Attached Thumbnails
Click image for larger version

Name:	ventrans_ii_kegel2.jpg
Views:	64
Size:	48.6 KB
ID:	209513  
verkerkbr is offline   Reply With Quote
Old 26-02-2020, 09:57   #198
Registered User

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

stevead...
I believe that OpenCPN should determine a vessel's "Blue Flag" status by testing for an IMO value of zero instead of testing for a DAC value of 200, which would make this discussion of how to process PGN129797 moot.


Good idea. Today's O code is looking for the DAC from VDM. Now we can use that for data from SK when originating from NMEA0183 and combine it with the IMO status for N2K data from SK.
For the moment IMO status is not sent from VDM NMEA0183 via SK. Will for sure be fixed.
Håkan
Hakan is offline   Reply With Quote
Old 26-02-2020, 11:04   #199
Registered User

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

Quote:
Originally Posted by verkerkbr View Post
Inland shipping here in Europe with dangerous goods must show blue cone(s), depending and the danger of the goods. This blue cones are displayed also on the display on icon of the vessel.

I think that is the meaning of the blue pgn. Default should be zero.


Bram

Looking a the table NMEA183 > NMEA2K


ABM (Ais adressed binary and safety related message) > 129795, 129797, 129811 129812


ABM - Addressed Binary Message ALA - Set Detail Alarm Condition ASM - Addressed Safety Message BBM - Broadcast Binary Message BSM - Broadcast Safety Message ETL - Engine Telegraph Operation Status EVE - General Event Message FIR - Fire Detection GAL - Galileo Almanac Data GEN - Generic Status Information GFA - GNSS Fix Accuracy and Integrity



BBM Ais broadcast binary message > 1129795, 129797, 129811, 129812
verkerkbr is offline   Reply With Quote
Old 26-02-2020, 15:45   #200
Registered User

Join Date: Mar 2011
Posts: 724
Re: Signal K Implementation

Bram, you are wrong. Don't confuse blue cones with blue flags!

Blue Flag means pass starboard to starboard.
Blue Cones identifies the type/level of hazardous cargo.

Blue Flag status is carried in the Special Manoeuvre Indicator field of PGN 129038.
Blue Cones is carried in the Binary Message Field of PGN 129797.

Quote:
For the moment IMO status is not sent from VDM NMEA0183 via SK. Will for sure be fixed
Its not called IMO Status, it is called IMO Number and I would have assumed that is extracted from PGN 129794 alongside the ship's name.

The question for OpenCPN is whether it wants to achieve parity for displaying the equivalent details for inland waters vessels as it does for ocean going vessels (Ship or Combination Type, Length, Beam & Draft) and whether it wants to display the details specifically for inland waters vessels (Unique European vessel Identification Number, Number of Blue Cones). If so then it will need to parse the content of a Binary Message with a DAC value of 200 and FID of 10.
stevead is offline   Reply With Quote
Old 27-02-2020, 00:13   #201
Registered User

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

Quote:
Originally Posted by stevead View Post
Bram, you are wrong. Don't confuse blue cones with blue flags!

Blue Flag means pass starboard to starboard.
Blue Cones identifies the type/level of hazardous cargo.

Blue Flag status is carried in the Special Manoeuvre Indicator field of PGN 129038.
Blue Cones is carried in the Binary Message Field of PGN 129797.

Its not called IMO Status, it is called IMO Number and I would have assumed that is extracted from PGN 129794 alongside the ship's name.

The question for OpenCPN is whether it wants to achieve parity for displaying the equivalent details for inland waters vessels as it does for ocean going vessels (Ship or Combination Type, Length, Beam & Draft) and whether it wants to display the details specifically for inland waters vessels (Unique European vessel Identification Number, Number of Blue Cones). If so then it will need to parse the content of a Binary Message with a DAC value of 200 and FID of 10.

Hi Steve,


your a right there are blue cone signs (dangeres goods 1, 2 or 3 cones) and blue signs (a square sign with a flashing light in the middle) indicating that ships pass each other at the wrong side),

I have never seen the indication on the screen that a ship show this blue sign.

The cone is permanent. The blue sign is temperary because of taking the inner side of a bend in a fast flowing river, like the Rhine or with approaching a mooring. Can this be switched on and off ?

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 27-02-2020, 01:33   #202
Registered User

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

Quote:
Originally Posted by verkerkbr View Post
Hi Steve,


your a right there are blue cone signs (dangeres goods 1, 2 or 3 cones) and blue signs (a square sign with a flashing light in the middle) indicating that ships pass each other at the wrong side),

I have never seen the indication on the screen that a ship show this blue sign.

The cone is permanent. The blue sign is temperary because of taking the inner side of a bend in a fast flowing river, like the Rhine or with approaching a mooring. Can this be switched on and off ?

Regards,


Bram
Yes, it is possible for inland schipping to show on the AIS screen the use of the blue sign.

But it can not be seen by the Ais of seegoing vessels.

There are warnings here of dangerous situations that can arise from the use of the Ais for this indication.

It is not automatically switched on or off together with the blue sign. It can easily lead to the wrong impression when not switched off.

It is only in use for inland shipping.
verkerkbr is offline   Reply With Quote
Old 27-02-2020, 02:04   #203
Registered User

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

Bram..
In OCPN blue sign, used/unused, looks like this:
Attached Thumbnails
Click image for larger version

Name:	blue.jpg
Views:	109
Size:	11.3 KB
ID:	209598  
Hakan is offline   Reply With Quote
Old 27-02-2020, 02:09   #204
Registered User

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

Quote:
Originally Posted by stevead View Post
Its not called IMO Status, it is called IMO Number and I would have assumed that is extracted from PGN 129794 alongside the ship's name.
I was referring to status of the SK information for the IMO number.
BTW is the status of that issue it's now implemented by the SK team and we just have to await next release.
Hakan is offline   Reply With Quote
Old 12-03-2020, 17:36   #205
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Signal K Implementation

I am trying out signalk in opencpn today.

From what I can tell, it only receives signalk correct? There is no support to forward nmea connections stream to signalk or output autopilot route following correct?

if signalk-node exists it can be automatically detected by both opencpn and pypilot.

It might be interesting to allow opencpn to directly communicate with pypilot over signalk without using signalk-node in certain situations. I'm not sure how this will work if both act as clients.
seandepagnier is offline   Reply With Quote
Old 12-03-2020, 17:39   #206
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Signal K Implementation

I am trying out signalk in opencpn today. It prints all signalk messages to stdout.

From what I can tell, it only receives signalk correct? There is no support to forward nmea connections stream to signalk or output autopilot route following correct?

if signalk-node exists it can be automatically detected by both opencpn and pypilot.

It might be interesting to allow opencpn to directly communicate with pypilot over signalk without using signalk-node in certain situations. Also linking opencpn to remote opencpn using signalk to finally allow syncronizing routes/tracks/waypoints and possibly other data like charts even. I'm not sure how this will work if both act as clients.
seandepagnier is offline   Reply With Quote
Old 12-03-2020, 18:11   #207
Marine Service Provider
 
bdbcat's Avatar

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

Sean...
Thanks for trying this out.
I like the idea of using sK for synchronization. Also not sure how it could work logically without a server in the loop. This calls for some thought.
Anyway, we go step-by-step.


Dave
bdbcat is offline   Reply With Quote
Old 13-03-2020, 00:05   #208
Registered User

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

Quote:
Originally Posted by boat_alexandra View Post
I am trying out signalk in opencpn today. It prints all signalk messages to stdout.

From what I can tell, it only receives signalk correct? There is no support to forward nmea connections stream to signalk or output autopilot route following correct?

if signalk-node exists it can be automatically detected by both opencpn and pypilot.

It might be interesting to allow opencpn to directly communicate with pypilot over signalk without using signalk-node in certain situations. Also linking opencpn to remote opencpn using signalk to finally allow syncronizing routes/tracks/waypoints and possibly other data like charts even. I'm not sure how this will work if both act as clients.

Hi Ba,


I do not understand your question. It is possible to send route information from O to the SignalK server. However not yet in SignalK format but in NMEA183. This information is converted to SignalK and can be seen in applications like MXTommy.



This can probably be used by autopilot steering.
Attached Thumbnails
Click image for larger version

Name:	test_nmea.jpg
Views:	77
Size:	372.0 KB
ID:	210540  
verkerkbr is offline   Reply With Quote
Old 13-03-2020, 02:10   #209
Registered User

Join Date: Dec 2019
Posts: 85
Re: Signal K Implementation

I thought I'd just share this screenshot for those interested.

The picture shows OpenCPN in a testsetup with SignalK (and Firefox with KIP/mxtommy running in the background).

I started the programs with:
taskset -c 3 openplotter-i2c-read
taskset -c 4 opencpn
taskset -c 5 firefox
Therefore one can assume that the cpu-load of core #3 #4 and #5 (right side of htop info) are caused by openplotter, opencpn and firefox/KIP respectively. I might try later to get signalK to run on a specified core for the complete picture.

Testsetup includes for the data input a windset (app wind only) via canboat and a pressure sensor via openplotter.
Bottom line: OpenCPN can handle signalK easily in power saving mode.

===================
Some details:

The opencpn-version is a little silenced by the logging commit Leamas posted yesterday (i.e. signalK logging to DEBUG and without the ---loglevel=DEBUG option). I think it shows where the github-version of OpenCPN stands today and it is looking good (WIP).

With logging commit the coreload is a about 20-40 (OpenCPN standby with instruments and oeschart).
Using a little core (arm A53) instead of a big core (arm A73) increases the load a little to 30-50%. A53 is the same core as used in a RPI3, A73 is roughly comparable with a RPI4 (A72)

Without commit the coreload seems only a little higher, about 30-50%.
Please note AIS-data and log/speed/depth/true wind is not present in this setup.

With firefox/KIP the A73 CPU-clock goes to max (1800MHz).
Without KIP (but with firefox) the CPU-clock drops to 500MHz for all cores.
Of course this depends on your mxtommy setup, mine might be a little heavy.

From what I saw the A53 with opencpn will run at a higher frequency, somewhere in the 1000-1500MHz range (with cpufreq set to conservative and the max clock being 1900MHz).


Much of the load is caused by I/O therefore don't stare yourself blind on the core performance. Also the speed variation is still a lot, the measurement is very rough.
Attached Thumbnails
Click image for larger version

Name:	opencpn+signalk.jpg
Views:	109
Size:	462.5 KB
ID:	210541  
hreuver is offline   Reply With Quote
Old 13-03-2020, 07:44   #210
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Signal K Implementation

Quote:
Originally Posted by bdbcat View Post
Sean...
Thanks for trying this out.
I like the idea of using sK for synchronization. Also not sure how it could work logically without a server in the loop. This calls for some thought.
Anyway, we go step-by-step.


Dave
Either pypilot or opencpn would have to listen for websocket or tcp connections for this to work. Right now they are clients.

As for being discovered with mDNS, for now probably better to require a manual connection made. With multiple signalk servers routing becomes an issue if they all auto detect each other. Maybe it can be addressed in future signalk.

For this to work efficiently, opencpn will need to handle signalk subscriptions as well as produce them, but for now just sending all messages would work.
seandepagnier 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 09:43.


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.