Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 23-12-2012, 07:40   #76
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,287
Re: OpenCPN Beta Version 3.1.1220 Released

Hi
Have now tested with a GPS
WinXP: Crash or system slow down especially when "navigate to" is active and output to one or more ports are active.
PC Process load is not high but screen updating and OpenCPN response is very low.

Looking in the attached log file it seems that ports are restarted several times every second? When the timer 1 sec is involved then it's me reloading but not else. At the last program start is it evident. There are also NMEA sentences in the log due to a temporary ini-setting "DebugNMEA=500" during the latter start.

openpcn.ini-file and preferences print screen are attached as well.
Attach encryption:
...log1.pdf > A PDF print due its size.
...ini.pdf > take away the .pdf extension

Please have look.
Attached Thumbnails
Click image for larger version

Name:	preferences.jpg
Views:	145
Size:	314.8 KB
ID:	51602  
Attached Files
File Type: pdf opencpn.log1.pdf (280.0 KB, 71 views)
File Type: pdf opencpn.ini.pdf (13.5 KB, 68 views)
Hakan is online now   Reply With Quote
Old 23-12-2012, 07:58   #77
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,021
Re: OpenCPN Beta Version 3.1.1220 Released

hello Dave,

Tab connection, window "Sentence filter"

In the list of options, it would be nice to add "GP". Indeed, many GPS adds this prefix to the sentences issued. This is the case of Globalsat ND100

Other idea, add also "AI"

B.R.

Gilletarom
Attached Thumbnails
Click image for larger version

Name:	2012-12-23_GP_choice.jpg
Views:	166
Size:	56.3 KB
ID:	51606  
Gilletarom is offline   Reply With Quote
Old 23-12-2012, 09:16   #78
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: OpenCPN Beta Version 3.1.1220 Released

Hakan....

OK, thanks.

2 points:

1. There is a performance problem with NMEA retransmit to Serial port on Windows. Working on this now.

2. If you do UDP re-broadcast, then you should set the priority of the "real" NMEA input to something higher than the UDP stream. The reason is that if you are broadcasting, then you yourself will get the UDP message as well. Obviously, it duplicates the "real" data coming from serial in this case. Thus we get source priority flip-flop on each message, since they have the same priority. So, set the serial priority to "1", and the UDP priority to "0". This will clean up your log.

I'll get back with more info on the serial port output slowdown.

Thanks
Dave
bdbcat is online now   Reply With Quote
Old 23-12-2012, 09:28   #79
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,021
Re: OpenCPN Beta Version 3.1.1220 Released

Hello Dave,

I currently testing the connections.

If you accepted, here are two ideas:


It would be good in the list of connections, after column "Unable", there was a column "Priority" which recalls the priority given to each connection.


It would be good that each time we create or change a connection, the order in which connections are displayed in the list reflects the priority of each connection.

B.R.

Gilletarom
Gilletarom is offline   Reply With Quote
Old 23-12-2012, 09:35   #80
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,287
Re: OpenCPN Beta Version 3.1.1220 Released

Quote:
Originally Posted by bdbcat View Post
Hakan....

OK, thanks.

2 points:

1. There is a performance problem with NMEA retransmit to Serial port on Windows. Working on this now.

2. If you do UDP re-broadcast, then you should set the priority of the "real" NMEA input to something higher than the UDP stream. The reason is that if you are broadcasting, then you yourself will get the UDP message as well. Obviously, it duplicates the "real" data coming from serial in this case. Thus we get source priority flip-flop on each message, since they have the same priority. So, set the serial priority to "1", and the UDP priority to "0". This will clean up your log.

I'll get back with more info on the serial port output slowdown.

Thanks
Dave
Dave
The priority issue is very good. That's of course why it's there and will use it. The UDP broadcast is really a nice thing. I've tried it to feed a second, portable, edition of O instead of a COM port splitter before both. Work nice and handy. My imagination was that it wasn't the UDP causing the slow down but more the serials. Your focus on that is probably correct.

Thanks and enjoy Christmas.
Hakan is online now   Reply With Quote
Old 23-12-2012, 10:40   #81
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN Beta Version 3.1.1220 Released

Dave
I had the impression that you and Pavel agreed, that a sentence filtered on input, would still be available on the internal buss for output. It doesn't seem to work that way now?

Filtered and dropped sentences does not show up at all in the debug window. They are supposed to show up in a brown color.

Thomas
cagney is offline   Reply With Quote
Old 23-12-2012, 11:11   #82
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,021
Re: OpenCPN Beta Version 3.1.1220 Released

Hello,

Quote:
Originally Posted by cagney View Post
Dave
I had the impression that you and Pavel agreed, that a sentence filtered on input, would still be available on the internal buss for output. It doesn't seem to work that way now?

Filtered and dropped sentences does not show up at all in the debug window. They are supposed to show up in a brown color.

Thomas
I confirm that Thomas said. It was different with the previous version.
Gilletarom is offline   Reply With Quote
Old 23-12-2012, 11:43   #83
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,021
Re: OpenCPN Beta Version 3.1.1220 Released

Hello Dave,

W XP SP3. Test with serial connection. I see a problem.

1° I breakdown windows and I re-run windows with GPS ND100 in port 4. So all is new.

I run Xportand I send N°4 in N°5 and N°6.
Then I run Polarcom and I connect Polarcom on N°5. All is Ok. The NMEA sentences are present in the NMEA terminal of Polarcom.

Then I run OpenCPN. At this moment, the connetion with port 4 was active because this connetion was active before I breakdown Windows.
Then I modify the connection and I replace the port n°4 by n° 6. And I click on "Apply" ("Appliquer" in french)

And there is no NMEA sentences in the debuging window of openCPN.

See screen copy.

This problem do not exist with previous version.

Gilletarom
Attached Thumbnails
Click image for larger version

Name:	2012-12-23_Xport_4_to_5_and_6_Sentences_in_Polarcom_ok.jpg
Views:	158
Size:	219.4 KB
ID:	51613   Click image for larger version

Name:	2012-12-23_Xport_4_to_5_and_6_No_sentences_by_port_6_with_OpenCPN.jpg
Views:	169
Size:	228.2 KB
ID:	51614  

Gilletarom is offline   Reply With Quote
Old 23-12-2012, 11:57   #84
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,021
Re: OpenCPN Beta Version 3.1.1220 Released

HHello,

Other test with VSPE.

I create a splitter and send port 4 to port 1
I create an other splitter and send port 1 to port 2.

Then I run OpenCPN, I destroy the connection with port 4
I create a connection with port 1. No sentence in NMEA debugger window
Then without destroy connection with port 1
I create a second connection with port 2. Then crash.
Attached Thumbnails
Click image for larger version

Name:	2012-12-23_VSPE_Port_4_to_1_and_2_Crash.jpg
Views:	173
Size:	198.4 KB
ID:	51615  
Gilletarom is offline   Reply With Quote
Old 23-12-2012, 14:01   #85
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: OpenCPN Beta Version 3.1.1220 Released

cagney/Gilletarom..

I confirm a problem with input filtering, debug window, and output data.
Simple misplaced character in the source. Fixed in github and next Beta

Thanks
Dave
bdbcat is online now   Reply With Quote
Old 24-12-2012, 07:26   #86
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 513
Re: OpenCPN Beta Version 3.1.1220 Released

Quote:
Originally Posted by bdbcat View Post
2. If you do UDP re-broadcast, then you should set the priority of the "real" NMEA input to something higher than the UDP stream. The reason is that if you are broadcasting, then you yourself will get the UDP message as well. Obviously, it duplicates the "real" data coming from serial in this case.
I can confirm that filtered sentences are now making it through to be ouput (in today's git source) but does this present another problem? If you filter something on an input and then re-broadcast it over udp, you will receive it again and unless you filter the udp interface as well. What you were trying to block will still get to opencpn.

I thought perhaps the trick of setting the udp output to a lower priority than the input might solve this, as it might depending on whether the prioritisation code is invoked before or after the filtering code. Curiously with the udp interface (with re-broadcast) set to be lower priority than the (tcp) input, in the debug window I see my filtered packets dropped and re-broadcast, but not re-accepted by the udp interface (ie no green input messages as there would be with equal priority on the interface). All good and correct. Except that data *is* coming in. I have the San Francisco AIS stream coming in via tcp and I can still see traffic moving and AIS updating in opencpn. If I then filter AIVDM the UDP input as well as tcp, updates stop.

I'm aware that I'm not using a proper beta (to get the fixed code bdbcat mentioned in the previous post) and that this may be a known and currently worked on problem, but I thought I'd mention it.

I was wondering whether it might be an option to do a getifaddrs() and drop any udp broadcast packets originating from a local interface, but a quick look at your code (I don't claim to be a C++ coder, just an antediluvian C hacker) suggests that's not really an easy option with the datastream abstracted out in wxSockets.
muttnik is offline   Reply With Quote
Old 24-12-2012, 07:28   #87
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 492
Re: OpenCPN Beta Version 3.1.1220 Released

Quote:
Originally Posted by cagney View Post
Right clicking a Dashboard -> Preferences -> Dashboard -> Caption

Whatever changes in Caption, Calling it "Dashboard 1" or "Whatever", is not displayed on the screen. Each dashboard is always just called "Dashboard".

adding:
Why is the "Edit" button in the Dashboard preference dialog?
As far as I can say, there has never been any "action" connected to it.

Thomas
Hello Thomas,

This caption is working (at least for me), you have to stop and re-start OpenCPN after the change.

Serge
AISEAG is offline   Reply With Quote
Old 24-12-2012, 07:40   #88
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: OpenCPN Beta Version 3.1.1220 Released

cagney....

Regarding:

Right clicking a Dashboard -> Preferences -> Dashboard -> Caption

Whatever changes in Caption, Calling it "Dashboard 1" or "Whatever", is not displayed on the screen. Each dashboard is always just called "Dashboard".


Seems to be a bug in wxWidgets. The new Dashboard caption takes effect after the next start of O, at least on linux. Or if you dock/undock the Dashboard.
Windows?

Thanks
Dave
bdbcat is online now   Reply With Quote
Old 24-12-2012, 07:51   #89
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,806
Re: OpenCPN Beta Version 3.1.1220 Released

Win XP SP3
In effect directly, no need to restart O
Attached Thumbnails
Click image for larger version

Name:	OpenCPN 3.1.1220-Dashboards.png
Views:	144
Size:	49.2 KB
ID:	51640  
bcn is offline   Reply With Quote
Old 24-12-2012, 09:49   #90
Registered User

Join Date: Feb 2011
Posts: 1,128
Re: OpenCPN Beta Version 3.1.1220 Released

When do you expect to put out the next Windows version corrected?
In the meantime Merry Christmas.
Bye.
P_Dub
P_Dub is offline   Reply With Quote
Reply

Tags
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


Advertise Here


All times are GMT -7. The time now is 08:30.


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.