Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:45:30+00:00 2026-06-05T06:45:30+00:00

I have a c# windows form program which uses the FTDI FTD2XX_NET library to

  • 0

I have a c# windows form program which uses the FTDI FTD2XX_NET library to enumerate devices using the ftdi driver and get their comports.

My problem is I want to determine specifically if the hardware I am talking to is the specific device I am looking for. This is a custom piece of hardware, but it looks like the vendor left the generic PID/VID for the FTDI chipset.

Right now I have resorted to sending a command and waiting for a valid response/timeout but this seems likely to fail in the greater world given the large number of devices using this chipset.

What is the correct approach to tackle this? I am not a hardware programmer so I am not sure what the best practice recommendation for this would be. I can ask the vendor to modify the hardware- firmware if needed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:45:32+00:00Added an answer on June 5, 2026 at 6:45 am

    Even with a generic PID/VID, the vendor can change the device description, so you can check it before starting the communication:

    // Create new instance of the FTDI device class
    var ftdiDevice = new FTDI();
    
    // Check how many FTDI devices are connected
    uint deviceNum = 0;
    ftdiDevice.GetNumberOfDevices(ref deviceNum);  
    
    var status = FTDI.FT_STATUS.FT_DEVICE_NOT_FOUND;            
    if (deviceNum > 0)
    {
        // Get information about the connected devices
        var devicelist = new FTDI.FT_DEVICE_INFO_NODE[deviceNum];
        ftdiDevice.GetDeviceList(devicelist);
        for (uint i = 0; i < deviceNum; i++)
        {
            if (devicelist[i].Description == "My Device Description") 
            {
                status = ftdiDevice.OpenByIndex(i);
                break;
            }
        }
    }
    
    if (status != FTDI.FT_STATUS.FT_OK)
    {
        throw new Exception("Unable to connect");
    }
    

    You can check or change the device description, serial number, PID/VID, etc. using FT PROG. Using a custom description while leaving the generic PID/VID will allow you to use the signed drivers from FTDI without any modification.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program which displays an image to the windows form, and places
I have a Windows form App which write to log files using log4net. The
I have a program where I am using windows form, in that form I
I have a windows-form which runs without any problem and displayed well. But if
Hi I have to design a Windows Form which has a simple textbox. The
I have a windows form that creates multiple console applications of the same program
we have a very old windows program which developed with c# and with every
I have created a wysiwyg editor as a standard C# program using the windows
I have a program which is able to retrieve various registry values using C#
I have created 2 windows form applications in a c# program. I did this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.