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 30-04-2011, 05:48   #1
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
VDR Plugin

Hi OpenCPN'ers,

Here's the other plugin I wanted to release. It's called VDR or Voyage Data Recorder. Very simple use: it can save and replay NMEA stream to/from a file.

Warning: this plugin require some plugin API changes:
Implement WANTS_AIS_SENTENCES for plugins



and
New plugin callback function PushNMEABuffer

I'll check with Dave if they can be included in OpenCPN plugin API (the first is probably OK, it's already available but not implemented)

Code:
git remote add github git@github.com:OpenCPN/OpenCPN.git
git checkout -b VDR
git pull github VDR
Replay speed is 1 sentence per second at minimum to 100 sentences per second to the maximum.

PS: The icons are ugly, if someone with better graphics skills can provide some I'll be very grateful.
SethDart is offline   Reply With Quote
Old 20-05-2011, 08:06   #2
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: VDR plugin

Hi all,

I've uploaded updated build for 2.4.506 to PlugIns | Official OpenCPN Homepage

Stay tuned.
SethDart is offline   Reply With Quote
Old 20-05-2011, 09:07   #3
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: VDR plugin

Quote:
Originally Posted by SethDart View Post
Hi all,

I've uploaded updated build for 2.4.506 to PlugIns | Official OpenCPN Homepage

Stay tuned.
Good point:it does not crash 506 on start up (vista) .
No preference: OK ?

I seem to have 2 instances of 'play' icons on the toolbar
When I press 'record', it asks for the name and location of a file. I could not remember which extension to give.

Sorry, can't test further as I have no AIS stream, being at home....

Added: Disabling the pluging leaves a 'record' icon on the toolbar. Opening and closing adds the play and record icons (not two play icons as on my first attempt)
Attached Images
  
sailorF54 is offline   Reply With Quote
Old 20-05-2011, 09:55   #4
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello,

Using the tool described in the website of the French help to OpenCPN with NavMonPc to make a simulation of the AIS, I could easily make a file with the VDR and play it automatically.

Bravo SethDart.

There is no need for extension to file name, but actually, this is surprising. Why not automatically choose the ". txt"?

Just a request, in the window that shows the speed of execution and progress, why not put some as X1, X10 .... X100 NavMonPc like.

Gilletarom.

In page openCPN. org where we can download the plug-in, it should update the version date which is not there.
Gilletarom is offline   Reply With Quote
Old 20-05-2011, 11:08   #5
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello Sethdart

Another note:
If I save a whole day's NAV, such as a nav than 12 hours straight, it would be interresting can start the replay anywhere in the nav.

Yet currently, it is imperative again from the beginning of the file .....

It is not yet completely practical.

Best regards

Gilletarom
Gilletarom is offline   Reply With Quote
Old 21-05-2011, 14:40   #6
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello SethDart

Yesterday, trying the VDR , I had a crash during the first use. I did not talk because they could not reproduce it. I first wanted to be positive.

Today following a crash with the introduction of (new) dll Logbook, while I de-installed. Then reinstalled everything.

I wanted to play by the VDR file that I recorded yesterday and it did not work.
The window with the slider speed and progress bar opened without ever reading did occur. and moreover, it was impossible to close this window.

Finally I wanted to close OpenCPN. The OpenCPN window was closed but window VDR was not closed. And then crash.

See bug report and attached logfile and ini file

Sorry to report these problems, but tonight I had more unexplained crashes of all kinds that for several successive weeks.

And it's hard to separate things to highlight the cause.

Salut à toi.

Gilletarom.
Attached Thumbnails
Click image for larger version

Name:	2011-05-21_Crash_fermeture_OpenCPN_avec_VDR_ouvert.jpg
Views:	468
Size:	33.8 KB
ID:	27645  
Attached Files
File Type: doc opencpn.ini.doc (4.9 KB, 124 views)
File Type: doc opencpn.log.doc (19.7 KB, 123 views)
Gilletarom is offline   Reply With Quote
Old 21-05-2011, 15:28   #7
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello SethDart,

I still made ​​the big household. And I reinstalled everything.

I validated only VDR plugin.

I tried to play my file -----> same problem, nothing happens except that the window with the slider and progress bar appears.

I started again on the icon of Replay. The window for selecting a file to play was again open. I chose to play another file. And this time, the replay took place normally.

I then clicked on the icon of replay. The replay has stopped. but the replay window has not closed. She returned to the position open but nothing happens.

So there are two instance of action that are initiated in my experience. The second instance has functioned normally but the first does not work correctly.

Then I shutdown OpenCPN and then crash.

The attachment shows you my screen at the end of the experiment.
I also add the. ini and. log (should be removed. doc)

I hope this time I brought you something usable.

Best regards

Gilletarom.
Attached Thumbnails
Click image for larger version

Name:	2011-05-22_Etat-final.jpg
Views:	485
Size:	97.8 KB
ID:	27653   Click image for larger version

Name:	2011-05-22_Bug-report.jpg
Views:	489
Size:	34.7 KB
ID:	27654  

Attached Files
File Type: doc opencpn.ini.doc (4.5 KB, 112 views)
File Type: doc opencpn.log.doc (6.6 KB, 127 views)
Gilletarom is offline   Reply With Quote
Old 21-05-2011, 16:05   #8
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello,

I re-started everything again.

There are two instances of the VDR running if you go directly to Replay. I have two windows open.

See attached file

Gilletarom.
Attached Thumbnails
Click image for larger version

Name:	2011-05-22_Deux_instances_ouvertes.jpg
Views:	608
Size:	79.7 KB
ID:	27657  
Gilletarom is offline   Reply With Quote
Old 22-05-2011, 04:31   #9
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello Sethdart,

This morning, I have not changed my configuration. I don 't do anything reinstalled. There is no problem with the VDR! I can not reproduce the problem last night!

The only thing that has changed:
- I stopped the machine at night to restart this morning.
- And I corrected the French language file

Afterwards, I did a lot of test on behalf of a problem that disappeared too, on display in toolbox / language.

Actually I do not understand.

Best regards

Gilletarom
Gilletarom is offline   Reply With Quote
Old 23-05-2011, 03:06   #10
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: VDR plugin

Hi,

Thanks for these reports. Here are a few reply:

- It doesn't crash
Well it's not intended to ;-)

- Multiple icons & remaining icon
This must be related to others plugins breaking toolbar API code. Can you try it with all other plugins disabled and report. Please also try to locate wich plugin is the curlpit and ask the maintainer accordingly.

- No .txt extension
Well, it's not a txt file even if it contains text, it should not be edited by hand. There are checksums allaround. I would rather use .nmea
Anyway, you can name it the way you want. It'll keep the name upon reload.

- Two instances
Could not reproduce yet but it may be related to reaching the end of the file and then playing another file. This lead to two dialogs open with one lost thus not destroyed and crashing opencpn.
v0.2 coming soon to address this.
SethDart is offline   Reply With Quote
Old 23-05-2011, 08:36   #11
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: VDR plugin

I uploaded v0.2 to address the multi-window issue.
SethDart is offline   Reply With Quote
Old 23-05-2011, 12:41   #12
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

First use with the 0.2 .

No problem for now. Record and replay Ok

But who knows ....Wait and see.

A gag ... I launched NavMonPc (for the simulation AIS) and simultaneously the replay of a file. I found the displays strange until I understood what was happening. In any case, this has not been a problem. But obviously does not for that fact.

You can:
- Launch a replay and then click on "Save" without problem.
- change the file "played" by interrupting the reading of a first file to launch a second one in stride.
The result should give some sort of concatenation of the two files played sequentially.
It works, it seems. There was no HARC.

I also tried something absurd, which should be "banned". I started recording and then I launched the "replay " of the same file. There was no crash.
Another test "absurd", I made a record then I launched the replay of the same file and then I stopped recording. No crash. but it should be banned.

Best regards

Gilletarom.
Gilletarom is offline   Reply With Quote
Old 23-05-2011, 12:50   #13
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: VDR plugin

Sethdart....

Any chance of a linux/Ubuntu build?

Dave
bdbcat is online now   Reply With Quote
Old 23-05-2011, 13:27   #14
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: VDR plugin

Quote:
Originally Posted by SethDart View Post
Hi,


- Multiple icons & remaining icon
This must be related to others plugins breaking toolbar API code. Can you try it with all other plugins disabled and report. Please also try to locate wich plugin is the curlpit and ask the maintainer accordingly.

.
With the new 0.2 version, starting with all plugins disabled, enable VDR, 2 icons on the toolbar as expected, start recording, then closing VDR, the play icon remains on the toolbar...
(Vista, 506)
sailorF54 is offline   Reply With Quote
Old 23-05-2011, 13:30   #15
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,989
Re: VDR plugin

Hello,

Quote:
Originally Posted by sailorF54 View Post
With the new 0.2 version, starting with all plugins disabled, enable VDR, 2 icons on the toolbar as expected, start recording, then closing VDR, the play icon remains on the toolbar...
(Vista, 506)
With XP, SP3.
If I disable VDR, the play icon remains also on the toolbar...

And it is always possible to run the replay.

And if I enable VDR, there is two icons replay and one recorder icon.
Gilletarom is offline   Reply With Quote
Reply


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
Plugin: DashBoard SethDart OpenCPN 644 02-04-2024 16:55
Logbook Plug-in SethDart OpenCPN 113 04-06-2022 11:21
BSB 4 PlugIn bdbcat OpenCPN 98 25-04-2018 18:46
Chartwork Plugin mario f OpenCPN 10 29-03-2012 19:21
Plugin Documentation cagney OpenCPN 0 17-05-2011 10:51

Advertise Here


All times are GMT -7. The time now is 07:46.


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.