Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 28-04-2013, 02:47   #31
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

Hakan
Your dead right remove the outputs.

The way I stumbled on it was I was trying to set up 2 computers, 1 with USB puck input, the other my AIS as input.

Then the aim was to share this information over TCP/UDP using lesser priority settings, thus covering an event of failure of either puck or AIS unit.

This UDP flow also allows AIS on both computers.

So is the answer to have 2 UDP connections
1 for send
1 for receive
Setting priorities to suit

Now if I can just fool the electricity meters out the front with the same logic.
redog
__________________

__________________
redog is offline   Reply With Quote
Old 28-04-2013, 02:58   #32
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

Or, maybe you can try to allow output on the 2nd, with the AIS, and filter it to only send AIVDM (and possible AIVDO) and the opposite filter on the 1st, e.g. filter incoming sentences to accept only the same.
Håkan
__________________

__________________
Hakan is offline   Reply With Quote
Old 28-04-2013, 03:02   #33
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

Thoughts coming up afterwards....
---And on the 1st filter outgoing message to not send AIVDM....
__________________
Hakan is offline   Reply With Quote
Old 28-04-2013, 03:19   #34
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

yeeeeah
I see where your coming from.
Half an hour with pen and paper would be able to nut out my requirements for sentences needed.

What about a fail safe in event of puck failure.
Have had that once before.

I'm wondering!!

Does the receiving comp retransmit (information received on a lower priority) back on a higher priority???
__________________
redog is offline   Reply With Quote
Old 28-04-2013, 03:27   #35
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

Yes, fail safes are good. In my setup the AIS is working like that. It transmits also the GPS messages and a proper OCPN prioritisation, e.g. the highest on the GPS puck, will sort out what's not needed for the moment and switch in the AIS's GPS-sentences in case of a puck failure.

And, I don't think OCPN will bother about the prioritisation in that case.
__________________
Hakan is offline   Reply With Quote
Old 28-04-2013, 14:15   #36
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

Not convinced I slept on it.
What would happen if all GPS input fails??

Idea!!!

Start both computers with no connections at all.
Activate a course.

"BINGO" both comp's status bar turned green and RMB,RMC,APB output in endless loop
and boat heading to rocks.

Haven't tried on water.

Can any one simulate same??
redog
__________________
redog is offline   Reply With Quote
Old 28-04-2013, 14:40   #37
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

To clarify:
Self generating endless loop is only created with UDP 0.0.0.0:10110

Static IP can not duplicate same problem.

I use static on the water so it shouldn't raise a concern for me.
However I need to link local the computers while connected to the WIFI at home. (IP conflicts)
Link local is random so I use the 0.0.0.0 IP
__________________
redog is offline   Reply With Quote
Old 28-04-2013, 14:42   #38
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

Ha ha. Some ideas are good but why not take an old track and run it with VDR simulating there are no rocks!
But of course every electrical gear can and possible will failure not less near salt water. The only truth is that the rock will be there anyhow and you have to control the boat with or without any computers.
But you are right if you mean one should be careful not to complicate to much. The straight thing here would be to have all incoming messages, GPS/AIS, into one computer and just forward to the other. That's a one way connection and more reliable.
__________________
Hakan is offline   Reply With Quote
Old 28-04-2013, 15:24   #39
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

"Static IP can not duplicate same problem."

Guess what I can, well sort of the same. (can't is really a very big word)

Static IP no GPS input
Activate course on #1 and #2 the status goes green.
Activate course on 2 and #1 goes green.

Hakan great idea one way messages.
Turn off output on UDP receiving comp #2.
Activate course on #1
#2 goes green receiving RMB RMC APB
AP not connected but with APB available I guess Ap would still be happy and not alarm.
Rocks still a concern!!

Getting confusing : need to do some manual work to clear the RAM
redog
__________________
redog is offline   Reply With Quote
Old 29-04-2013, 11:02   #40
Marine Service Provider

Join Date: Oct 2009
Location: In the U.S.
Boat: FP Tobago 35 [sold]
Posts: 402
Re: OpenCPN 3.2 Crash / Invalid NMEA in Log

I would probably move this UDP topic into new thread as it is not related to the issue of the post. Just to keep things organized a bit. May be valuable for other people, but unlikely anyone will find it in here.
__________________

__________________
Mark (It's Irie - Sailing Blog)
The Wirie AP+ and The Wirie pro - Long Range Marine WiFi and 2/3/4G Systems
kiltym is offline   Reply With Quote
Reply

Tags
nmea, opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:44.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.