(2018-10-05, 10:26 AM)PaddyB Wrote:Hi PaddyB(2018-10-04, 08:12 PM)vagspel Wrote:
I have in Serial:
ais /dev/tty/USB0
In Kplex:
system UDP in 10110
signalK TCP out 30330
ais Serial in ttyOP_ais
shipin TCP in (my ais server) portxxxx
shipout TCP out localhost 10114
What I do is taking a local ais receiver on USB0
Also I get info from my AIS server and I am sending that via the AP to be able to connect from a tablet.
Complicated!? I am on Skype then I could explain better. Can give my Skypename via PM.
//Gunnar
Don't quite understand why you have the last 2 entries in Kplex? Do you have 2 x AIS recievers? Tablet should be able to connect to tcp on 10.10.10.1 port 10110 same as opencpn if the tablet is connected to the Openplotter access point, then all NMEA data gets sent to that from Kplex/Signalk.
Where do you see that the serial connection has been lost?
The last two are connections to our AIS server. Easier to use that when I am out showing OpenCPN to our sailing community www.jrsk.org.
On all our AIS station we have a RP with Kplex that is sending the data to our server and then send it on to for example MT and VF.
This is one station: http://stations.vesselfinder.com/stations/5125
The serial connection is lost when I restart PI and the start Opcn, no data is coming in but data is sent via the AP.
If I delete the USB0 and enable it again it works. Sometimes restarting Ocpn helps but not every time. I think that the problem is not in OP but Ocpn!?
I am using the serial connection for a local AIS that I have at home. Gives better info on the result when changing receivers or antennas :-)