OpenMarine
Problems with losing connection on USB0 - Printable Version

+- OpenMarine (http://forum.openmarine.net)
+-- Forum: OpenPlotter (http://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (http://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: Problems with losing connection on USB0 (/showthread.php?tid=1521)



Problems with losing connection on USB0 - vagspel - 10-04-2018

I have tried to understand why, when starting OpenCPN, I have lost the AIS connected on /dev/tty/USB0 38400.
First I thought that adding a delay in starting the services in OpenPlotter, set it to 20 sec, would help but after doing several test I still have this problem.
If I delete the connection in OpenCPN and make a new equal connection it works with no problem.
Running latest version of OpenCPN and OpenPlotter on a Raspberry 3B+.
//Gunnar


RE: Problems with losing connection on USB0 - PaddyB - 10-04-2018

(10-04-2018, 11:52 AM)vagspel Wrote: I have tried to understand why, when starting OpenCPN, I have lost the AIS connected on /dev/tty/USB0 38400.
First I thought that adding a delay in starting the services in OpenPlotter, set it to 20 sec, would help but after doing several test I still have this problem.
If I delete the connection in OpenCPN and make a new equal connection it works with no problem.
Running latest version of OpenCPN and OpenPlotter on a Raspberry 3B+.
//Gunnar

Is it connected in the serial tab?  

You shouldn't need to touch the connections in opencpn, kplex/signalk does all that.

[Image: Ls6UaBH.png]


RE: Problems with losing connection on USB0 - jim321 - 10-04-2018

you only need the tcp :10110 connection in openCPN then the ais should work, like paddyB said kplex/signalk sends it to opencpn
mine does not even show up in openplotters serial tab


RE: Problems with losing connection on USB0 - vagspel - 10-04-2018

(10-04-2018, 03:02 PM)jim321 Wrote: you only need the tcp :10110 connection in openCPN then the ais should work, like paddyB said kplex/signalk sends it to opencpn
mine does not even show up in openplotters serial tab

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


RE: Problems with losing connection on USB0 - PaddyB - 10-05-2018

(10-04-2018, 03: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?


RE: Problems with losing connection on USB0 - vagspel - 10-05-2018

(10-05-2018, 05:26 AM)PaddyB Wrote:
(10-04-2018, 03: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?
Hi PaddyB
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 :-)


RE: Problems with losing connection on USB0 - PaddyB - 10-05-2018

(10-05-2018, 05:54 AM)vagspel Wrote: Hi PaddyB
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 :-)

Nice site  Cool
Did you know signalk has an app to send position to marinetraffic? (Though a very quick play I couldn't get it to work...)

Not sure I can help much with the serial connection - when it shows no data in OCPN is there anything coming in the diagnostic window in the Kplex tab?


RE: Problems with losing connection on USB0 - vagspel - 10-05-2018

(10-05-2018, 06:38 AM)PaddyB Wrote:
(10-05-2018, 05:54 AM)vagspel Wrote: Hi PaddyB
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 :-)

Nice site  Cool
Did you know signalk has an app to send position to marinetraffic? (Though a very quick play I couldn't get it to work...)

Not sure I can help much with the serial connection - when it shows no data in OCPN is there anything coming in the diagnostic window in the Kplex tab?
Thanks!
I have not checked the Kplex diagnostic, will do asap.
Will try the app but the setup that we have is working very nice. Why change a working concept :-)