Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 21-06-2023, 03:03   #16
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,212
Re: OpenCPN not reporting a special NMEA 2000 AIS target

Quote:
Originally Posted by Hakan View Post
Now the Dutchman's didn't make a mmsi-number rule for that. Only a "diver's radio" See here
Initialize the variable to “Unknown”, then run the lookup table to set the variable to a known ID if available and plot whatever it ends up with
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is online now   Reply With Quote
Old 21-06-2023, 06:33   #17
Registered User

Join Date: Mar 2011
Posts: 696
Re: OpenCPN not reporting a special NMEA 2000 AIS target

Perhaps I'm being daft, but as far as I can tell OpenCPN does parse PGN 129040, albeit "incorrectly" displaying (or possibly storing it) as a Class A AIS device (Note the Class A dialog and missing draft value).

My dump of one example of PGN 129040 from the attached log file:
Code:
AIS Message ID: 19
Repeat Indicator: 0
MMSI: 503067900
Latitude -38 6.90
Longitude: 144 23.40
Position Accuracy: 0
RAIM: 0
Time Stamp: 49
COG: 43.00
SOG: 9.19
Heading: Unavailable
Ship Type: 56
Ship Name: MV DELPHINUS
Regional Reserved A: 0
Regional Reserved B: 2
Reserved A: 15
Reserved B: 15
Length: 17.00
Beam: 4.00
Reference Point from Starboard: 2.00
Reference Point from Bow: 7.00
GNSS Type: 0
DTE Flag: 1
Assigned Mode Flag 0
Transceiver Info: 1
SequenceId: 255
Nonetheless if anyone wishes to send logs containing samples of the offending fishing line AIS transmissions, I would be more than happy to have a look.
Attached Thumbnails
Click image for larger version

Name:	129040.jpg
Views:	41
Size:	307.1 KB
ID:	277068  
Attached Files
File Type: pdf 129040.log.pdf (192.9 KB, 15 views)
stevead is offline   Reply With Quote
Old 21-06-2023, 12:09   #18
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,468
Re: OpenCPN not reporting a special NMEA 2000 AIS target

Steve, for MMSI 503067900, your dump also has a

Code:
2021-03-14-01:15:01.111 6  43 255 129809 AIS Class B static data (msg 24 Part A):  Message ID = Static data report; Repeat Indicator = Initial; User ID = "503067900"; Name = MV DELPHINUS; AIS Transceiver information = Channel B VDL rece
ption; Sequence ID = Unknown
and
Code:
2021-03-14-01:16:12.972 6  43 255 129810 AIS Class B static data (msg 24 Part B):  Message ID = Static data report; Repeat Indicator = Initial; User ID = "503067900"; Type of ship = Spare; Vendor ID = Unknown; Callsign = VKV5418; Length
 = 17.0 m; Beam = 4.0 m; Position reference from Starboard = 2.0 m; Position reference from Bow = 7.0 m; Mothership User ID = "000000000"; Spare = 20; AIS Transceiver information = Channel B VDL reception; Sequence ID = Unknown

and I think that is where O gets position & name from. I used following command:
Code:
cat candump-from-steve.dump |candump2analyzer |analyzer |grep 503067900



When looking at the O NMEA debug window, I see this when a PGN 129040 comes by:
Code:
 18:42:03 (N2000) PGN: 129040 Source: nmea2000 socketCAN-vcan0 ID: 43  Desc: No description. Not used by OCPN, maybe passed to plugins

So I still stand with what I said earlier, when a AIS fishing buoy only transmits PGN 129040, O will not display it.
LeaseOnLife is offline   Reply With Quote
Old 21-06-2023, 13:54   #19
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,468
Re: OpenCPN not reporting a special NMEA 2000 AIS target

Here is a heavily filtered (small) candump with only PGN 129040, from last April. The target(s) should show up around Longitude = -148.097; Latitude = -17.321
Remove the pdf extension, it is just text.
Attached Files
File Type: pdf candump-AISGPS-only-no-systemtime.dump.pdf (10.0 KB, 12 views)
LeaseOnLife is offline   Reply With Quote
Old 21-06-2023, 14:36   #20
Registered User

Join Date: Mar 2011
Posts: 696
Re: OpenCPN not reporting a special NMEA 2000 AIS target

Like I said, perhaps I'm daft.

You are correct, in the previous log there were some PGN 129809 & 129810 messages that referred to the same MMSI number as present in the PGN 129040 message.

Find attached the same log file but with all PGN 129038 (Class B Position Report), 129809 (Class B Static Data Part A) and 129810 (Class B Static Data Part B) messages removed.

Indeed as you observed, PGN 129040 messages are not parsed.

A kind of WTF !

So two bugs,
Firstly PGN 129040 is not processed.
Secondly reception of PGN 129809 or 129810 without a previous PGN 120039 results in an erroneous AIS Class A Position report.
Attached Files
File Type: pdf No-ClassB-Messages.log.pdf (191.4 KB, 13 views)
stevead is offline   Reply With Quote
Reply

Tags
nmea, ais, opencpn, enc, nmea 2000


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
Raymarine NMEA 2000 -> NMEA 2000 cable GreenHeaven Marine Electronics 5 24-08-2021 03:52
OpenCPN AIS target list disappeared damosail OpenCPN 1 27-07-2021 11:07
AIS Targets not displaying, not showing on target list James_Armstrong OpenCPN 2 22-03-2021 08:12
How can I select any AIS target as own ship on OPENCPN? chiangkent Navigation 9 14-12-2013 13:46
OpenCPN v2.5.0 Unable to Display AIS Target Query Window jsavage Navigation 4 28-11-2011 00:35

Advertise Here


All times are GMT -7. The time now is 10:22.


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.