direwolf icon indicating copy to clipboard operation
direwolf copied to clipboard

AIS format Waypoint sentence generation not working

Open KLyvers opened this issue 1 year ago • 3 comments

I configured Direwolf to generate and output NMEA sentences for use on my chartplotter. When I configure it for 'N' (generic NMEA) it works exactly as expected sending waypoints.

However when I configure 'A' nothing is generated/sent, either via the console (with '-dw') or the actual serial interface.

Version is 1.7 compiled from Master branch at the start of this project two days ago. Please let me know if there is any additional diagnostic information I can provide. Thanks in advance!

KLyvers avatar Jun 26 '24 22:06 KLyvers

From my reading of the code, waypoint sentence generation from APRS position reports has not yet been implemented for NMEA AIS sentences. Where NMEA waypoint sentences are being constructed in the code, there is no code today that creates AIS formatted sentences. As such, the 'A' format option mentioned in the documentation isn't going to work, unfortunately.

When Direwolf is receiving AIS over the radio, there is code to transform those packets into NMEA sentences in AIS format and output those, but this appears to be the only situation in which Direwolf will generate NMEA AIS sentences. The code that does this transcodes the AIS payload without parsing it, so this code is not reusable for creating waypoint sentences from APRS position reports.

mfncooper avatar Sep 23 '25 23:09 mfncooper

It took a while to review but I see what is going on now. In config.c, I see there was an intention to generate waypoints in AIS format but this was never competed.

When parsing WAYPOINT config file option:

          case 'A':
            p_misc_config->waypoint_formats |= WPL_FORMAT_AIS;
            break;

wb2osz avatar Sep 29 '25 23:09 wb2osz

Let me know how I can help. I have been testing AIS sentences for ingest by a Lowrance HDS-9 over the NMEA0183 interface.

KLyvers avatar Sep 30 '25 16:09 KLyvers