Moe wrote:
Well this is a blind hack. I can't even see it stream via xgps because for me the data doesn't even come though the gpsd. I pick up AIS through the soundcard modem gnuais.
...but here goes.
[cut]
Save the file (it should still executable) and give it a try.
If it doesn't work.
sudo mv -v /usr/local/bin/opencpnais.bak /usr/local/bin/opencpnais
...it will have only cost us our pride.
Thank for your time Moe.
As far as I can see, I did exactly as you describe. I performed both of the 'sudo' commands and I replaced the code that comes up in gedit with the code you supplied and then saved it.
After that the chart directory in OpenCPN was empty, so I had to put the right charts in again. The chart selection window shows much more than before: I actually had to look for the BSB-directory.
After hooking up GPS and AIS-receiver as before, nothing seems changed. In the Network LIBGPS mode, a position shows on the map. In xgps the AIS-stream is visible as before, but nothing shows on the map. I tried all 7 ports again for AIS and switched around in the GPS-box (AIS-port shared, baud rates), but to no avail.
Is it necessary to return to the original code I replaced? The replacement does not seem to hinder operation as is.
You did not say anything on installing the supplied driver. What can be expected from doing that?
--
greetings from the Netherlands,
Hans Valk