Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-07-2015, 09:34   #1
Registered User

Join Date: May 2015
Posts: 16
Adding AIS targets

So I am racing the Pt Huron to Mackinac Race next weekend and have access to a low bandwidth listing of my section. We are using OpenCPN and weather routing for navigation and putting out a NMEA feed for out tablets on deck for optimizing performance in realtime. What I would like to know is if there is a way I can add ais targets with a script. The file will be the exact same format every time. A txt file with boat information including lat/long, speed and heading along with when the last time reporting. What I would like to do is add these boats, 12, as ais targets on the open cpn screen. Failing this I am sure I could upload them as waypoints which may be a easier task. Here is a link to the file from the race last year.
http://yb.tl/l/chicagomack2014?class=beneteau36.7
Thoughts anyone? Thanks
__________________

__________________
Uncle Augie is offline   Reply With Quote
Old 09-07-2015, 10:25   #2
Senior Cruiser

Cruisers Forum Supporter

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 17,314
Re: Adding AIS targets

Why not convert AIS data to wpt (marks) data and drop the marks rather than the AIS objects?

Then it would be just like you upload any other WPTs file.

b.
__________________

__________________
barnakiel is offline   Reply With Quote
Old 09-07-2015, 10:37   #3
Registered User

Join Date: May 2015
Posts: 16
Re: Adding AIS targets

Quote:
Originally Posted by barnakiel View Post
Why not convert AIS data to wpt (marks) data and drop the marks rather than the AIS objects?

Then it would be just like you upload any other WPTs file.

b.
This is the easy, dirty way. Adding them as AIS targets would be a more elegant solution IMHO.
__________________
Uncle Augie is offline   Reply With Quote
Old 09-07-2015, 12:44   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Adding AIS targets

Of course you can. Take the data, convert it to AIS NMEA messages, broadcast over a network or save them to a text file and play it using the VDR plugin.
Is there something that already does it? Depending on whether you prefer Java or python, you may have a look at https://github.com/dma-ais/AisLib and https://softwaredevelopmentperestroi...odingdecoding/

If you are good with just the positions, you can save yourself the trouble with encoding AIVDM and generate just normal WPL sentence, which OpenCPN can treat as APRS position reports (treated similarly to AIS) if you have it enabled as described in http://opencpn.org/ocpn/ais

Pavel
__________________
nohal is offline   Reply With Quote
Reply

Tags
ais

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
AIS Class B targets cagney OpenCPN 64 22-10-2014 06:43
AIS targets not displayed jolanda OpenCPN 1 18-03-2014 06:10
AIS Targets not visible hcolvin1 OpenCPN 13 06-11-2013 09:32
AIS targets but no position? Oceansailor OpenCPN 0 10-05-2012 13:29
AIS Targets Disappear After a Longer Period sinbad7 OpenCPN 86 30-04-2012 10:18



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:29.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.