Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 10-07-2020, 23:31   #31
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: OpenCPN Version 5.1.708 RC2 Test

Mattzilla..
Most instruments now have a watchdog to blank out if incoming data is not updated in about 10 seconds. What is the update rate from your Arduino?
Håkan
Hakan is offline   Reply With Quote
Old 10-07-2020, 23:58   #32
Registered User

Join Date: Jul 2014
Posts: 24
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Hakan View Post
Mattzilla..
Most instruments now have a watchdog to blank out if incoming data is not updated in about 10 seconds. What is the update rate from your Arduino?
Håkan
I had exactly the same problem with an Arduino acting as barometer. Changing the update to 5 sec instead of 10 fixed the problem.

/Magnus
maohls is offline   Reply With Quote
Old 11-07-2020, 01:03   #33
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 245
Images: 3
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Hakan View Post
Mattzilla..
Most instruments now have a watchdog to blank out if incoming data is not updated in about 10 seconds. What is the update rate from your Arduino?
Håkan
Are you sure ?
This does not seem to be the case for the depth which remains displayed in the dashboard even after a long cut (which can be dangerous !)...

This had been requested in time - FS#2391 - but does not seem to have been taken into account ...

Schnapsy is offline   Reply With Quote
Old 11-07-2020, 01:18   #34
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Schnapsy View Post
Are you sure ?
This does not seem to be the case for the depth which remains displayed in the dashboard even after a long cut (which can be dangerous !)...

This had been requested in time - FS#2391 - but does not seem to have been taken into account ...

Depth should be supervised by a 10 seconds watchdog as well.

1) Are you using this OCPN-beta?
2) What's your NMEA depth sentence?
It's working for me, see pict where I closed the connection 30 seconds ago.
Attached Images
 
Hakan is offline   Reply With Quote
Old 11-07-2020, 02:41   #35
Registered User

Join Date: Jan 2016
Posts: 118
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by maohls View Post
I had exactly the same problem with an Arduino acting as barometer. Changing the update to 5 sec instead of 10 fixed the problem.

/Magnus

It was 10 seconds. I unplugged the USB from nav computer and plugged into my own to change to 5 seconds (Which has resolved it looks like) and then discovered that the instruments were all offline and did not re-connect automatically any more.



With stable release 5 could unpug and reconnect and would pick up straight away - is this related to 10 sec watchdog?
If yes, is there a way to have a button (Like in Expedition) to reconnect instruments - only way I could reconnect was to close and re open Open CPN
Mattzilla is offline   Reply With Quote
Old 11-07-2020, 03:18   #36
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: OpenCPN Version 5.1.708 RC2 Test

Mattzilla..
I'm not sure I understand the connection problem. Once a valid NMEA sentence is received from any connection it will be used by Dashboard without further actions.
Please check your NMEA Debug window to see what's coming in and maybe publish a shot of the XDR sentences here.
Hakan is offline   Reply With Quote
Old 11-07-2020, 03:24   #37
Registered User

Join Date: Jan 2016
Posts: 118
Re: OpenCPN Version 5.1.708 RC2 Test

I have resolved the Baro update by altering the arduino to update every 5 seconds as opposed to 10.


I have found another issue - the vessel I am on has a USB multiplexor. If the USB is unplugged, after ~10 seconds all instrument data no longer updates. IF I then reconnect the USB, it fails to reconnect the data.
For this I have to restart, or goto connections, uncheck my COM port connections, apply, then re-check, APPLY then instruments start working.


Suggestion is for a button that can force-reconnect instruments? (Expedition marine has this functions to force reconnect instrument ports) Or if watchdog can check for instruments after a time? I dont know how the watchdog is designed to work.
Mattzilla is offline   Reply With Quote
Old 11-07-2020, 04:01   #38
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: OpenCPN Version 5.1.708 RC2 Test

Mattzilla--
If data is flowing into OCPN they are also used immediately. The watchdog timer is only checking for new updates. If data is coming in the timer is reset. No need for any re-initialization in OCPN.
Your description of the multiplexer function seems strange though. What about put all USB direct to the PC or use a USB switch instead?
Hakan is offline   Reply With Quote
Old 11-07-2020, 04:13   #39
Registered User

Join Date: Jan 2016
Posts: 118
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Hakan View Post
Mattzilla--
If data is flowing into OCPN they are also used immediately. The watchdog timer is only checking for new updates. If data is coming in the timer is reset. No need for any re-initialization in OCPN.
Your description of the multiplexer function seems strange though. What about put all USB direct to the PC or use a USB switch instead?

The USB goes to a USB hub then into the laptop. I have tried direct to laptop and issue persists. But stable version OpenCPN issue is not present.
Is a Shipmodul multiplexor.
It seems with the RC2 version, that a USB com port does not start on its own after watchdog drops it or if removed/reconnected. This is true for the Arduino and/or the Multiplexor by USB



I also just tried switching to ethernet NMEA data in - same thing, if I unplug ethernet, after ~10secs, instruments all drop out, reconnect ethernet - no data started for about 30+ seconds, then came online. SO the Ethernet started on own, but USB needed forcing
Mattzilla is offline   Reply With Quote
Old 11-07-2020, 05:01   #40
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Hakan View Post
Mattzilla--
If data is flowing into OCPN they are also used immediately. The watchdog timer is only checking for new updates. If data is coming in the timer is reset. No need for any re-initialization in OCPN.
Your description of the multiplexer function seems strange though. What about put all USB direct to the PC or use a USB switch instead?
Just recreated the error with an esp32 sending a dummy nmea sentence.
Set connection to com3 in Opencpm 5.0, unplug and replug the USB and the data starts coming in again after a moment.
5.1.7 unplu/replug and no data comes in after the replug. LED flashes on the ESP so should be running ok, the led flash is in the same function as the print nmea .
conachair is offline   Reply With Quote
Old 11-07-2020, 05:55   #41
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: OpenCPN Version 5.1.708 RC2 Test

So, nothing to do with Dashboard or USB devices then?
I can't do the same test just now.
@Dave.. Anything you can reproduce?
Håkan
Hakan is offline   Reply With Quote
Old 11-07-2020, 06:09   #42
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Hakan View Post
So, nothing to do with Dashboard or USB devices then?
I can't do the same test just now.
@Dave.. Anything you can reproduce?
Håkan
Might be just arduino/esp that do this as well, they usually do a reset when the serial connects.
Unplugging/ replugging in v5 doesn't seem to leave anything in the log, the data just appears again in the debug window.
conachair is offline   Reply With Quote
Old 11-07-2020, 06:58   #43
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 245
Images: 3
Re: OpenCPN Version 5.1.708 RC2 Test

Quote:
Originally Posted by Hakan View Post
Depth should be supervised by a 10 seconds watchdog as well.

1) Are you using this OCPN-beta?
2) What's your NMEA depth sentence?
It's working for me, see pict where I closed the connection 30 seconds ago.

yes, I test with OCN 5.1.708.
But there may be a bias ...
Indeed, I test with a VDR file which contains multiple nmea sentences including the depth; then I stop this file and I launch a VDR file which contains nmea sentences but not the depth.
And the depth of the previous file remains displayed ...

I will have to do the test in real life, on my boat by turning off the sounder.

Maybe next week....
Schnapsy is offline   Reply With Quote
Old 11-07-2020, 07:34   #44
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN Version 5.1.708 RC2 Test

mgrouch...


re:
"Raspberry Pi 4 with Buster with theme called Breeze-Dark."


On very latest RaspiOS/32, buster, available from raspberry pi download, I do not see this "Breeze-dark" theme. pix attached.


Am I looking at the wrong thing?
Thanks
Dave
Attached Thumbnails
Click image for larger version

Name:	breeze.jpeg
Views:	44
Size:	141.7 KB
ID:	219140  
bdbcat is offline   Reply With Quote
Old 11-07-2020, 07:53   #45
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN Version 5.1.708 RC2 Test

Hakan...


Hmmm...
Seems to be a regression for sure.

My simple setup:
Win10, USB serial adapter to common NMEA0183 data stream containing RMC.
Test procedure:
1. Start O, verify position received OK. (green bars...)

2. unplug the USB cable, wait for red dot in upper right, no position watchdog timeout.
3. Re-plug USB.


Results:
O5: Works as expected. Connection is re-established, all is well.
O5.1.708: Connection is NOT re-established.


Nothing to do directly with dashboard timeouts. Must be in OCPN core.
I will investigate.
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
enc, opencpn


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB GPS BS-708 yachtvalhalla OpenCPN 12 21-04-2021 15:54
BS-708 USB GPS Receiver GILow OpenCPN 0 17-10-2019 14:36
OpenCPN Version 5 Beta Release 4.99.1520 (RC2) bdbcat OpenCPN 30 22-03-2019 17:35
OpenCPN Version 2.4 Beta Build 708 bdbcat OpenCPN 34 12-07-2011 13:20
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 19:17

Advertise Here


All times are GMT -7. The time now is 17:19.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.