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 13-05-2024, 01:04   #1
Registered User

Join Date: Mar 2008
Location: momo_hersbruck@hotmail.com
Boat: ATCH 10,7m Aluminium
Posts: 11
openCPN WPL/APRS not working in Version 5.8.4

Hello,
in openCPN Version 5.6.2 we have a set up
so we can use WPL to show APRS positions on the map.

In Version 5.8.4, with the same settings it is NOT working.

In the NMEA monitor we see the data coming in (see picture),
but they do not show up on the map.

In the settings "ship" -> "AIS-Targets" we
activated "WPL-Positions" and selected "APRS Positionreports"

What are we doing wrong?
Can somebody help us?

Jutta and Heiko
Attached Thumbnails
Click image for larger version

Name:	IMG_20240513_095242_edit_79169720487397.jpg
Views:	33
Size:	285.1 KB
ID:	289786  
SY-MOMO is offline   Reply With Quote
Old 13-05-2024, 06:36   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,433
Re: openCPN WPL/APRS not working in Version 5.8.4

SY-MoMo...


For analysis, will you post a data dump of the (serial?) datastream you are passing to OpenCPN?


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 20-05-2024, 00:47   #3
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,197
Re: openCPN WPL/APRS not working in Version 5.8.4

On O 5.9..
I've tried to read your screenshot and got the sentences printed below. I also verified the checksum.
I can confirm neither "WPR..." nor "Create mark" are working.


$GPWPL,5054.40,N,00437.53,E,ON65SX*44
$GPWPL,5057.68,N,00358.34,E,ON7GR*68
$GPWPL,5112.60,N,00336.76,E,OS5P*34
$GPWPL,5036.95,N,00300.75,E,F5SSM*78


Code:
<GREEN>09:41:22 (virtual) $GPWPL,5112.60,N,00336.76,E,OS5P*34<0x0D><0x0A>
<GREEN>09:41:22 (virtual) $GPWPL,5036.95,N,00300.75,E,F5SSM*78<0x0D><0x0A>
<GREEN>09:41:23 (virtual) $GPWPL,5054.40,N,00437.53,E,ON65SX*44<0x0D><0x0A>

btw: SY-MOMO..... Nice boat name! I use the same Presuming the same Ende book?
Hakan is offline   Reply With Quote
Old 20-05-2024, 00:58   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,197
Re: openCPN WPL/APRS not working in Version 5.8.4

SY-MOMO...
I think this function is seldom used and therefor not reported.
I also think the the function "Send to Peer", where it's possible to send routes and marks between different OCPN instances on the same network, has in some cases taken over the "WPL" functions.
Hakan is offline   Reply With Quote
Old 20-05-2024, 01:41   #5
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,197
Re: openCPN WPL/APRS not working in Version 5.8.4

But since it's present it would work.
Issue created
Hakan is offline   Reply With Quote
Old 21-05-2024, 01:14   #6
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 308
Re: openCPN WPL/APRS not working in Version 5.8.4

Here's a script for the JavaScript plugin that does what I think you want.
It creates an OCPN waypoint for each WPL sentence received.
It keeps a record of each mark name and if the same mark name is received again at a different position, it moves the OCPN waypoint accordingly.

I am afloat and do not have time to test fully but it does compile OK.

See the plugin User Guide for help understanding it and for setting attributes for the created waypoints.

By all means discuss this application here but if you have difficulty with the JavaScript plugin, please ask on the plugin discussions.

Code:
Position = require("Position");
WayPoint = require("Waypoint");
position = new Position();	//create working position
OCPNonAllNMEA0183(gotOne, "GPWPL");
seen = {};	// remember here seen marks

function gotOne(input){
	if (!input.OK) return;
	sentence = input.value;
	thisPos = position.NMEAdecode(sentence, 0);
	parts = sentence.split(",");
	markName = parts[5];
	if (typeof seen[markName] == "undefined"){ // not seen this mark before
		waypoint = new Waypoint(thisPos);
		waypoint.iconName = "circle";
		// set other attributes here - see UserGuide
		guid = OCPNaddSingleWaypoint(waypoint);
		waypoint.GUID = guid;
		seen.markName = waypoint;
		}
	else {	// we have seen this mark name before
		lastPos = seen.markName.position;
		if ((thisPos.latitude != lastPos.latitude) || (thisPos.longitude != lastPos.longitide)) {
			// it has moved
			seen.markName.position = thisPos;
			OCPNupdatSinglWaypoint(seen.markName);
			}
		}
	}
__________________
If all else fails, read the instructions.
Antipole is offline   Reply With Quote
Old 21-05-2024, 11:54   #7
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 308
Re: openCPN WPL/APRS not working in Version 5.8.4

Here's a version with debugging:

Code:
debug = true;
Position = require("Position");
Waypoint = require("Waypoint");
position = new Position();	//create working position
OCPNonAllNMEA0183(gotOne, "GPWPL");
seen = {};	// remember here seen marks

function gotOne(input){
	if (!input.OK) return;
	sentence = input.value;
	if (debug) print(sentence);
	thisPos = position.NMEAdecode(sentence, 0);
	parts = sentence.split(",");
	markName = parts[5];
	if (typeof seen.markName == "undefined"){ // not seen this mark before
		if (debug) print("\tis new\n");
		waypoint = new Waypoint(thisPos);
		waypoint.iconName = "circle";
		// set other attributes here - see UserGuide
		guid = OCPNaddSingleWaypoint(waypoint);
		waypoint.GUID = guid;
		seen.markName = waypoint;
		}
	else {	// we have seen this mark name before
		lastPos = seen.markName.position;
		if ((thisPos.latitude != lastPos.latitude) || (thisPos.longitude != lastPos.longitide)) {
			// it has moved
			if (debug) print("\thas moved\n");
			seen.markName.position = thisPos;
			OCPNupdatSingleWaypoint(seen.markName);
			}
		else if (debug) print("\thas not moved\n");
		}
	}
__________________
If all else fails, read the instructions.
Antipole is offline   Reply With Quote
Old 21-05-2024, 14:21   #8
Registered User

Join Date: May 2024
Posts: 1
Re: openCPN WPL/APRS not working in Version 5.8.4

Quote:
Originally Posted by Hakan View Post
But since it's present it would work.
Issue created
Not sure if it helps in any way, but it also doesn't work on the latest android version. I see the NMEA sentences in the viewer but no waypoints are created.
Pella is offline   Reply With Quote
Old 21-05-2024, 17:55   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,433
Re: openCPN WPL/APRS not working in Version 5.8.4

Pella...
We have a solution in hand, will appear in the upcoming OpenCPN v5.9 Beta series.
Thanks for your patience.


Dave
bdbcat is offline   Reply With Quote
Old 22-05-2024, 09:11   #10
Registered User

Join Date: Mar 2008
Location: momo_hersbruck@hotmail.com
Boat: ATCH 10,7m Aluminium
Posts: 11
Re: openCPN WPL/APRS not working in Version 5.8.4

Hello to all

We have been sailing offshore for a few days, so the delay in answering.
Thanks for all the Posts/comments.
We are not really firm with Java, but are looking forward to the next Beta-Version.

Jutta DL1HXB & Heiko DO3SYM
on
www.SY-MOMO.de

PS:
Yes, boatname was inspired of book from Michael Ende, right story for longterm cruising.
SY-MOMO is offline   Reply With Quote
Old 26-05-2024, 06:46   #11
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,197
Re: openCPN WPL/APRS not working in Version 5.8.4

SY MOMO..
This bug is now corrected in master code and will be available at coming OCPN beta test and later release.
Thanks for the report.
Hakan is offline   Reply With Quote
Reply

Tags
enc, opencpn, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Sending WPL and RTE sentence(s) TO OpenCpn does not work... m1ch3al OpenCPN 3 21-12-2016 09:37
APRS Plugin Development alawatsakima OpenCPN 8 21-09-2015 12:21
nmea WPL for APRS , howto show MMSI roozeboos Navigation 5 06-04-2014 03:44
Display your boat on SpotWalla using callsign and APRS sinbad7 Navigation 1 04-03-2013 07:52
Ham Question: Satellite, Digital, Gateway, EchoLink, ILRP, APRS ? SaltyMonkey Marine Electronics 79 22-11-2010 13:07

Advertise Here


All times are GMT -7. The time now is 01:12.


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.