?
Solved

Identifying which COM port has been assigned to a USB-to-serial adapter based on the FTDI chip

Posted on 2005-03-15
3
Medium Priority
?
349 Views
Last Modified: 2008-03-10
We have a legacy product that uses a USB-to-COM port chip from FTDI to provide a COM port that our app (written in D5) can use.  What I am wanting to do is to identify at run-time what COM port the FTDI device has been assigned to so that I can relieve the user of the need to look in device manager and set the COM port accordingly.  I will also hook into the message that fires when a USB device change is detected and use that to re-assign the COM port on the fly.

I'm just wondering where the proper place to poke around is to get the COM port number - the registry seems the most likely candidate - but there seem to be several registry entries that have the COM port in them, but some of them are there even when the device isn't plugged in.

I realise it's not too much to do with Delphi but it seemded like a good place to ask.
 
0
Comment
Question by:rossmcm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 800 total points
ID: 13552647
Have a look at http://www.sf.net/projects/jedi-apilib
In the Setup API and Config Manager API Zip there is a nice example (Win 2000/XP) for that.
You need both Zips.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question