OpenMarine

Full Version: AIS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(I posted different threads to keep the answers grouped - apologies for the multiple posts)

I've downloaded the Basic version of OpenPlotter 2.0 (I don't trust myself with the advanced one!) which does not come with SDR which I believe I need to get my DVB-T tuner to work to receive AIS targets.

What is the process for adding SDR to my basic setup?
I followed these instructions and it worked for me.

https://www.fontenay-ronan.fr/ais-receiv...h-rtl-sdr/

You'll have to create a system for starting the software when your RPI starts. In my case, I just added this command to rc.local:

rtl_ais -n -P 10112

This will give you AIS data on port 10112.
(2020-03-09, 04:08 PM)abarrow Wrote: [ -> ]I followed these instructions and it worked for me.

https://www.fontenay-ronan.fr/ais-receiv...h-rtl-sdr/

You'll have to create a system for starting the software when your RPI starts. In my case, I just added this command to rc.local:

rtl_ais -n -P 10112

This will give you AIS data on port 10112.

Thanks you! These instructions work fine except there seems to be a small bug in the kalibration tool installation which is described on the page below - the post by fillippog at the end. If you edit the 4 lines suggested in that post: all is well.

https://github.com/antirez/dump1090/issues/142
SDR AIS available in OpenPlotter 2
http://forum.openmarine.net/showthread.php?tid=2518
(2020-04-20, 07:29 PM)Sailoog Wrote: [ -> ]SDR AIS available in OpenPlotter 2
http://forum.openmarine.net/showthread.php?tid=2518

if you had an old version aktive, you have to disable this service first.
so you get the sdr-rtl chip free to use.
mostly there is an service enabled, so do these steps:

sudo systemctl status ais.service

if you get an result from the running service, you should disble it now with:

sudo systemctl stop ais.service
sudo systemctl disable ais.service

(simply the steps you did on installing the old service)
my service config sat here: /etc/systemd/system/ais.service
you may rename it to /etc/systemd/system/ais.servicex or remove it.

after this and maybe an reboot the new Openplotter SDR will work fine.
all the new calibrate scripts are integrated here nice and convinient. 

you may test the new service is running:

sudo systemctl status openplotter-rtl_ais.service

* openplotter-rtl_ais.service - Decode AIS received by rtl-sdr and send as NMEA 0183 to UDP port
  Loaded: loaded (/etc/systemd/system/openplotter-rtl_ais.service; enabled; vendor preset: enabled)
  Active: active (running) since Mon 2020-04-20 23:26:36 CEST; 12h ago
Main PID: 5348 (rtl_ais)
   Tasks: 4 (limit: 4915)
  Memory: 1.4M
  CGroup: /system.slice/openplotter-rtl_ais.service
          `-5348 /usr/bin/rtl_ais -d 0 -p 0 -P 10110


many thanks to the openplotter team!
stay well

holger
Thanks for that holger!