Untitled Document




Become a Fan of
ScubaBoard.com

 

Register today and make this ad disappear!

Welcome to ScubaBoard, an online scuba diving forum community where you can join over 100,000 divers from around the world discussing all things related to Scuba Diving. To gain full access to ScubaBoard you must register for a free account. As a registered member you will be able to:
  • Participate in over 500 dive topic forums and browse from over 3,000,000 posts.
  • Communicate privately with other divers from around the world.
  • Post your own photos or view from 80,000 user submitted images.
  • Gain access to our free classifieds marketplace to buy, sell and trade gear, travel and services.
  • Use the calendar to organize your events and enroll in other members' events.
All this and much more is available to you absolutely free when you register for an account, so sign up today!

If you have any problems with the registration process or your account login, please contact the ScubaBoard Support Team.

Go Back   ScubaBoard > Manufacturers Forums > Q and A for Scuba Manufacturers > AERIS
Forums Register Today's Posts Calendar


AERIS Come and meet your AERIS reps here on ScubaBoard. Ask any question about their products. This is an AERIS only forum.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old July 9th, 2009, 04:55 AM   #1
Senior Member
 
bperrybap's Avatar

Status
Profile Info
Join Date: Aug 2005
Location: Dallas, Tx
Logged Dives: 200 - 499
Stats
Posts: 515
Photos: 64
Thanks Received: 23
ACI/Oceanlog selects incorrect COM port.

Doug,
Just noticed that ACI/Oceanlog 2.x can select the incorrect com port when
locating the USB data cable com port.

This occurs because the s/w looks in the registry for
HKLM\HARDWARE\DEVICEMAP\SERIALCOMM\VCP0

While this method is nice in that the "VCP0" device will be created dynamically
when the USB data cable is plugged in, it is not guaranteed to always be VCP0 for
the Pelagic data cable.


If there is any other device in the system that creates a virtual comm port prior
to the Pelagic data cable being plugged in, the pelagic data cable will get assigned
something other than VCP0.

So say somebody has another USB serial device in their system it would be assigned
VCP0 and the Pelagic data cable would be assigned VCP1 when it is plugged in.
Virtual comm ports can also be created for certain types of other devices
or even debugging tools.

A better/foolproof method is to locate the com port by running
through all the enumerations of the FTDI devices and subinstances under the
HKLM\SYSTEM\CurrentCotrolSet\Enum\FTDIBUS hive and look for
"USB Download Interface" in the "Friendlyname" values of each sub instance.

This will indicate which device is a Pelagic USB data cable.
Then you can grab the "Portname" value from the "Device Parameters" hive
of that instance.

This gives you a comport name but only tells you that the device driver
has been installed and the cable has been plugged in but doesn't you if the
cable is currently plugged in.

To tell that, you must then go back to the ...\DEVICEMAP\SERIALCOMM hive
and check each virtual comport instance for a comport name that matches
the name you got from scanning the FTDIBUS instances.
If there is a match, you know that the Pelagic data cable is currently plugged in.

Not as simple as the current method used in OceanLog/ACI but it will always work, even when the PC has other virtual comports installed.

--- bill
bperrybap is offline
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Add to your Facebook!Twitter
Reply With Quote
This member has said "Thank you." to bperrybap for this useful post:
Old July 13th, 2009, 06:12 PM   #2
Equipment Manufacturer
 
Doug Krause's Avatar

Status
Badge
Profile Info
Join Date: Oct 2004
Location: San Leandro, California (just south of Oakland)
Stats
Posts: 1,036
Thanks Received: 66
Thank you Bill -
__________________
Doug Krause is offline
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Add to your Facebook!Twitter
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On



Quick Style Chooser:

Powered by: vBulletin. Copyright ©2000-2006, Jelsoft Enterprises Limited.
© 2000-2009 All content is copyrighted to ScubaBoard.com, except for the Photo Gallery and under prior arrangements.

All times are GMT -4. The time now is 05:58 PM.
Syndicate this content on your website with rss or javascript data feeds.
ScubaBoard is a Founding Member of the UnderWater Network

© 2000-2009 All content is copyrighted to ScubaBoard.com, except for the Photo Gallery and under prior arrangements. Search Engine Friendly URLs by vBSEO 3.3.1