Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 20-04-2014, 03:11   #16
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,761
Re: BSB4 plugin chs windows 8.1

Bob, Doug...

with the S-63 plug-in it will be possible now to use the Canadian ENCs from OpenCPN.

I'm aware that they are about the most expensive ones worldwide (aprox. 10$/cell at ChartWorld), but as one usually uses just some cells for a specific zone this might be a step for people in need of actual and precise charts.

"Step" because the second one should be to get the HO's to reconsider their policy regarding ENCs for the leisure market.
And no, Jeppesen, Garmin, Navionics, MaxSea etc. as licensees of CHS are not the "solutions" we are talking about.

Hubert
__________________

__________________
bcn is offline   Reply With Quote
Old 20-04-2014, 03:51   #17
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,294
Re: BSB4 plugin chs windows 8.1

There is also some explanation here :

BSB4, 2011 Canadian Chart Problem [pics]
__________________

__________________
Gilletarom is offline   Reply With Quote
Old 11-07-2014, 16:09   #18
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Bob hi. Thanks for this explicit detailed instruction.

I have a similar problem with British Admiralty charts in BSB4 format. Spent several hours with Maptech tech support on the phone, but no joy.

+ I'm on Windows 7 Ultimate

+ I've successfully entered the Maptech website, registered the product, have
C:\ChartKit\Encryption

+ On the Maptech's advice, went over the entire registration routine, they agree I'm registered, and then copied the BSBCHART directory from the CD to the hard drive as
C:\ChartKit\BSBCHART

I specifically asked if I had to run some special program to import the charts. He said no, if you're registered and you point to the charts they should appear.

Unfortunately the log indicates something different, that there should be a decryptor.dll installed somewhere, and of course it is not, since I haven't installed any Maptech software other than running the registration routine and installing the charts per Maptech advice.

+ On your advice (previous) added these to openCPN Charts:
C:\ChartKit\Encryption
C:\ChartKit\

(as well as much time trying different variants, including C:\ChartKit\BSBCHART)

No joy.

The Force Full Database option runs and cites all the CAP files, but does so very quickly. The log file says the following for each chart (BANNNN_Y.CAP) in the folio:

5:43:09 PM: Loading chart data for C:\ChartKit\BSBCHART\BANNNN_Y.CAP
5:43:09 PM: BSB4_PI: Could not find registry key for decryption tool location at node HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories
5:43:09 PM: BSB4_PI: Failed to load decryptor dll specified by certificate : 00003058.CET
5:43:09 PM: BSB4_PI: Closing chart C:\ChartKit\BSBCHART\BANNNN_Y.CAP
5:43:09 PM: ...initialization failed for C:\ChartKit\BSBCHART\BANNNN_Y.CAP
5:43:09 PM: CreateChartTableEntry() failed for file: C:\ChartKit\BSBCHART\BANNNN_Y.CAP

Failed to load decryptor dll specified by certificate : 00003058.CET

That certificate reads:

_User: <>
_Registration_Number: <BAE-R03-2F6-23Z-KV8-Q3TT8>
_Volume_ID: <GGH4MH2AE>
_DLL_Ver: <0201>
_Cert_Ver: <0201>
_Machine_Key: <235PZLKJEA>
_Control_Sum: <AS>

In which there is no mention of decryptor.dll...

So any further clues most gratefully accepted...

Cheers, Andy
__________________
alavarre is offline   Reply With Quote
Old 11-07-2014, 21:31   #19
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: BSB4 plugin chs windows 8.1

Andy...

There are unfortunately some hard-coded paths in the BSB4 PlugIn that might not be working correctly for your chart set.

We need to look at the registry.
Run regedit, and find the key:
Code:
HKEY_LOCAL_MACHINE\\SOFTWARE\\Maptech\\ChartKit\\3.00\\Directories
I have attached a picture of my XP setup for reference.

What does yours look like? If not the same as mine, what do you find if you search the registry for any reference to "Maptech"?

Dave
Attached Thumbnails
Click image for larger version

Name:	bsb4.jpg
Views:	125
Size:	83.0 KB
ID:	84874  
__________________
bdbcat is online now   Reply With Quote
Old 12-07-2014, 08:40   #20
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Bob hi, thanks for quick reply.

My registry does not have an entry for Maptech under

HKEY_LOCAL_MACHINE\\SOFTWARE

It does have a number of other keys citing Maptech:

HKEY_CURRENT_USER\\SOFTWARE\\MAPTECH\\CHARTKIT\\4. 00

contains my first and last name, but no subkey for DIRECTORIES

There are keys for the certificate; the second one lists chartreg.dll and cryp0201.dll:
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MA CHINE\SOFTWARE\Wow6432Node\Maptech\ChartKit\3.00\E ncryption\00003058

HKEY_USERS\S-1-5-21-34645374-1695674902-328014968-1000_Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432 Node\Maptech\ChartKit\3.00\Encryption\00003058

There are a number of Rose Point (Coastal Explorer) keys pointing to the chart directory.

There are also some empty keys:
HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wo w6432Node\Maptech HKEY_CURRENT_USER\Software\Classes\VirtualStore\MA CHINE\SOFTWARE\Wow6432Node\Maptech
HKEY_USERS\S-1-5-21-34645374-1695674902-328014968-1000\Software\Maptech

=====
If the key path you cite is what is hard-coded in the PI then it's easy enough just to create that key, but what do I put into it? The actual path to my charts? AND the path to the encryption cert? and what about the missing decryptor.dll?

Thanks again!

Cheers, Andy
__________________
alavarre is offline   Reply With Quote
Old 12-07-2014, 12:35   #21
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Oops DAVE not. Bob.. :-( Sorry but thanks!

Sent from my Nexus 4 using Cruisers Sailing Forum mobile app
__________________
alavarre is offline   Reply With Quote
Old 12-07-2014, 20:47   #22
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: BSB4 plugin chs windows 8.1

Andy...

Wow, we need to do a much better job of finding this stuff in the registry. Your examples give me hints.

Meanwhile, I think we can hack this to get you going. We need two new keys, with REG_SZ values:

Code:
1.  HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\Directories

     Name: "EncDir"
     Data:   {wherever your "Encryption" directory is}, e.g. C:\ChartKit\Encryption
Code:
2. HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\Encryption\00003058

      Name: "DecryptDLL"
      Data:  "Cryp0201.dll"
The second key points to the decryptor dll. You should check to make sure that it is actually present in C:\Chartkit\Encryption directory.

Good Luck
Dave
__________________
bdbcat is online now   Reply With Quote
Old 13-07-2014, 13:39   #23
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Dave hi, thanks again, but still no joy:

I tried entering Name and Data both quoted and not quoted.

In adding the keys, I chose String Value to add the data within the key, but there are some six choices (Binary, etc.) Is String value correct?

If so, here are my string value keys

HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories
(Default) REG_SZ (Value not set)
Data REG_SZ C:\ChartKit\Encryption\00003058
(Also tried C:\ChartKit\Encryption)
Name REG_SZ EncDir

The certificate is actually in C:\ChartKit\Encryption\00003058, not C:\ChartKit\Encryption, which is why I tried, but it didn't make a difference...

HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption\00003058
(Default) REG_SZ (Value not set)
Data REG_SZ crypt0201.dll
Name REG_SZ DecryptDLL

I also tried putting these in
HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption

since the dll is actually in C:\ChartKit\Encryption but that didn't make a difference either,.
=====
There are no errors in the log.

I did reboot after each iteration.

Any other ideas? Thanks again.

Kind regards, Andy
__________________
alavarre is offline   Reply With Quote
Old 13-07-2014, 15:01   #24
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Quote:
We need two new keys, with REG_SZ values:
Ah. Single String. I did try the various other types (binary, DWord) but only String returns REG_SZ.

So at least I have that bit right...

Thanks again.
__________________
alavarre is offline   Reply With Quote
Old 13-07-2014, 17:10   #25
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

OK, just to make sure, I deleted OC and all its directories, reinstalled OC and reinstalled the plugin, double checked the registry per earlier report. All is good.

And of course after every change in registry I force a rebuild of the database.

Fired up OC and got:

5:48:03 PM: Loading chart data for C:\ChartKit\BSBCHART\BA3750_2.CAP
5:48:03 PM: BSB4_PI: Could not find registry key for decryption tool location at node HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories
5:48:03 PM: BSB4_PI: Failed to load decryptor dll specified by certificate : 00003058.CET
5:48:03 PM: BSB4_PI: Closing chart C:\ChartKit\BSBCHART\BA3750_2.CAP
5:48:03 PM: ...initialization failed for C:\ChartKit\BSBCHART\BA3750_2.CAP
5:48:03 PM: CreateChartTableEntry() failed for file: C:\ChartKit\BSBCHART\BA3750_2.CAP

For each BSB4 CAP.

So let's break it down by the numbers:

1. 5:48:03 PM: BSB4_PI: Could not find registry key for decryption tool location at node HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories

The key reads

[HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories]
"Name"="EncDir"
"Data"="C:\\ChartKit\\Encryption"

The file cryp0201.dll does indeed reside in that directory as
cryp0201.dll 5/30/2002 6:53AM Application extension 108KB

But the log's not saying it can't find the file, it's saying it can't find the key.

So what is the proper key title and path for C:\ChartKit\Encryption?

2. 5:48:03 PM: BSB4_PI: Failed to load decryptor dll specified by certificate : 00003058.CET
Well of course if it couldn't find its key in step 1 it can't load it in step 2.
The certificate resides at
C:\ChartKit\Encryption\00003058\00003058.CET
and reads
_User: <>
_Registration_Number: <BAE-R03-2F6-23Z-KV8-Q3TT8>
_Volume_ID: <GGH4MH2AE>
_DLL_Ver: <0201>
_Cert_Ver: <0201>
_Machine_Key: <235PZLKJEA>
_Control_Sum: <AS>
So there is no explicit specification of the decryptor tool filename. So the question arises,
is cryp0201.dll the correct tool?

3. I created the key
HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption\00003058
It reads:
[HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption\00003058]
"Name"="DecryptDLL"
"Data"="cryp0201.dll"
But that resulted in the errors above. It would appear that it is not even being read.

4. So I then created the key
HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption
It reads:
[HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption]
"Name"="DecryptDLL"
"Data"="cryp0201.dll"
After rebooting and starting up OC the log, after step 3b., reads, for each BSB4 chart:

6:49:42 PM: CreateChartTableEntry() failed for file: C:\ChartKit\BSBCHART\BA3750_2.CAP
6:49:42 PM: Loading chart data for C:\ChartKit\BSBCHART\BA3750_3.CAP
6:49:42 PM: BSB4_PI: Could not find registry key for decryption tool location at node HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories
6:49:42 PM: BSB4_PI: Failed to load decryptor dll specified by certificate : 00003058.CET
6:49:42 PM: BSB4_PI: Closing chart C:\ChartKit\BSBCHART\BA3750_3.CAP
6:49:42 PM: ...initialization failed for C:\ChartKit\BSBCHART\BA3750_3.CAP

So the new key has no effect.

So it's back to the plugin: what registry keys is it looking for?

Thanks again, Andy
__________________
alavarre is offline   Reply With Quote
Old 13-07-2014, 18:12   #26
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: BSB4 plugin chs windows 8.1

Andy....

So very close, now....

Windows is fussy about some things:


1. 5:48:03 PM: BSB4_PI: Could not find registry key for decryption tool location at node HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories

The key reads

[HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Directories]
"Name"="EncDir"
"Data"="C:\\ChartKit\\Encryption"

I see two problems:
a. There is an extra <space> before the word "Directories" in the key path.
b. There should not be double "\\" in the "Data" field.



Next step:
3. I created the key
HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption\00003058
It reads:
[HKEY_LOCAL_MACHINE\SOFTWARE\Maptech\ChartKit\3.00\ Encryption\00003058]
"Name"="DecryptDLL"
"Data"="cryp0201.dll"
But that resulted in the errors above. It would appear that it is not even being read.

I see one problem here:
a. There is an extra <space> before the word "Encryption" in the key path.

For both new keys/values, the double quotes are not to be entered by you. They are an indication of REG_SZ type.

Can you try to fix as indicated above? If it does not work, maybe a screen shot of the regedit window, similar to my earlier post, will help us to see clearly.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 13-07-2014, 18:33   #27
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Dave hi, cool, thanks. Give me about a bit of a while and I'll report back, hopefully tonight but otherwise by midday tomorrow (haven't had dinner and there are some other familial issues... :-(:

I entered the data in regedit.exe without the quotes, colons, double slashes, or spaces. And verified the keys in regedit.

But regedit won't let me copy the key contents, only the key name. So to quote the contents I exported the key as trash.reg and then opened the .reg file in Notebook to get the actual contents, resulting in all the double slashes and quote marks and spaces.

Maybe I should export and reimport the key to ensure there isn't a glitch with regedit.exe, although I'd be very surprised to find one as it's been around forever... :-(

If I am correct that the REG_SZ type (normal string key, not binary or anything else) is correct, then I infer that I should not enter any double backslashes, spaces, or quotes when entering the data.

So I'll give it another whack and report back. I'll include screen shots of the actual entry field that pops up when you double click in the contents window of an actual key.

But it will take a bit longer. inner has to come first. -)

At least I now know that syntax is very important.

Thanks again. It will be fun to sort this out, for all.

Cheers, Andy
__________________
alavarre is offline   Reply With Quote
Old 13-07-2014, 19:47   #28
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Dave hi, thanks again. Here are the screen shots, starting with the overall Maptech tree, then drilling down to Directories and Encryption.

Thanks again. Cheers, Andy

[IMG]file:///home/andy/Desktop/Downloads/01_maptech_tree.png[/IMG]

[IMG]file:///home/andy/Desktop/Downloads/02_maptech_tree_Directories.png[/IMG]

[IMG]file:///home/andy/Desktop/Downloads/03_maptech_tree_Encryption.png[/IMG]

[IMG]file:///home/andy/Desktop/Downloads/04_maptech_tree_Encryption_00003058.png[/IMG]
__________________
alavarre is offline   Reply With Quote
Old 13-07-2014, 19:52   #29
Registered User

Join Date: Jul 2014
Posts: 20
Re: BSB4 plugin chs windows 8.1

Hmm. Embedding images didn't seem to work, so here they are as attachments.

Life is great. Always learning...

Thanks again, Andy
Attached Thumbnails
Click image for larger version

Name:	01_maptech_tree.png
Views:	103
Size:	29.2 KB
ID:	84970   Click image for larger version

Name:	02_maptech_tree_Directories.png
Views:	100
Size:	13.6 KB
ID:	84971  

Click image for larger version

Name:	03_maptech_tree_Encryption.png
Views:	109
Size:	11.2 KB
ID:	84972   Click image for larger version

Name:	04_maptech_tree_Encryption_00003058.png
Views:	105
Size:	11.1 KB
ID:	84973  

__________________
alavarre is offline   Reply With Quote
Old 13-07-2014, 21:15   #30
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: BSB4 plugin chs windows 8.1

Andy...

Pretty close...

See my screen shots attached.

Don't worry about the additional reg values in the Encryption key. BSB4_pi need just the one DecryptDLL item.

Dave
Attached Thumbnails
Click image for larger version

Name:	bsb5.jpg
Views:	109
Size:	29.8 KB
ID:	84974   Click image for larger version

Name:	bsb6.jpg
Views:	110
Size:	35.4 KB
ID:	84975  

__________________

__________________
bdbcat is online now   Reply With Quote
Reply

Tags
bsb, plug, wind

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot activate BSB4 Plugin Grainne OpenCPN 8 28-10-2013 14:25
Canadian CHS S57 charts roddy55 Navigation 1 02-01-2013 07:17
For Sale: CHS Charts and Books: Nova Scotia and Newfoundland jtighe Classifieds Archive 0 01-09-2011 18:42
OpenCNP does not see CHS BSB charts bruce.gilbert OpenCPN 1 15-06-2011 09:28
Announcement: Plugin download (for Windows only) Netsurfer OpenCPN 2 25-05-2011 08:16



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:03.


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.