reading unique arduino FTDI ID

hi every one ...

I need to protect software for my project using unique arduino FTDI ID to not work with any other

arduino boards ..

I have found this topic

but the software seems old not working with visual 2010 even the exe file doesn't work fine giving this error message

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.DllNotFoundException: Unable to load DLL 'FTChipID.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at FTChipID.ChipID.wrapped_FTID_GetNumDevices(Int32& Devices)
at FTChipID.ChipID.GetNumDevices(Int32& Devices)
at Reading_FTDI_Data.Form1.GetFTDIChipData() in C:\Reading_FTDI_Data\Reading_FTDI_Data\Reading_FTDI_Data\Form1.vb:line 65
at Reading_FTDI_Data.Form1.btnReadFTDIChip_Click(Object sender, EventArgs e) in C:\Reading_FTDI_Data\Reading_FTDI_Data\Reading_FTDI_Data\Form1.vb:line 38
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

but the FTChipID.dll file already exist in exe folder ...

so I need to read FTDI ship ID using Visual Basic.net ...

any help will be appreciated ...

thanks and regards ...

I have found the code but still having this problem :

Cannot register ftchipid.dll

Have you looked at the long list of documents on FTDI's website ?

...R

yes i have ...

all leads to this software I have downloaded ..

this visual basic application is from FTDI web site

The_Under_Taker:
yes i have ...
all leads to this software I have downloaded ..
this visual basic application is from FTDI web site

Post the code, not a picture of it.
Post a link to the appropriate FTDI document.

...R

the complete code :

Imports FTChipID

' PLEASE NOTE
' You must add a reference to the FTChipIDNet.dll in order to use this sample
' To do this:
'   1. Click on Solution explorer tab.
'   2. Right click the References tree.
'   3. Choose Add Reference option.
'   4. Browse to the FTChipIDNet.dll (as a personal preference I place this in my bin directory)
'   5. Click OK
'
Public Class MainForm
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents colNumber As System.Windows.Forms.ColumnHeader
    Friend WithEvents colSerial As System.Windows.Forms.ColumnHeader
    Friend WithEvents colDescription As System.Windows.Forms.ColumnHeader
    Friend WithEvents colLocationID As System.Windows.Forms.ColumnHeader
    Friend WithEvents colChipID As System.Windows.Forms.ColumnHeader
    Friend WithEvents btnFindDevices As System.Windows.Forms.Button
    Friend WithEvents lstDevices As System.Windows.Forms.ListView
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.lstDevices = New System.Windows.Forms.ListView
        Me.colNumber = New System.Windows.Forms.ColumnHeader
        Me.colSerial = New System.Windows.Forms.ColumnHeader
        Me.colDescription = New System.Windows.Forms.ColumnHeader
        Me.colLocationID = New System.Windows.Forms.ColumnHeader
        Me.colChipID = New System.Windows.Forms.ColumnHeader
        Me.btnFindDevices = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'lstDevices
        '
        Me.lstDevices.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.colNumber, Me.colSerial, Me.colDescription, Me.colLocationID, Me.colChipID})
        Me.lstDevices.Location = New System.Drawing.Point(16, 16)
        Me.lstDevices.Name = "lstDevices"
        Me.lstDevices.Size = New System.Drawing.Size(384, 176)
        Me.lstDevices.TabIndex = 0
        Me.lstDevices.View = System.Windows.Forms.View.Details
        '
        'colNumber
        '
        Me.colNumber.Text = "Number"
        Me.colNumber.Width = 30
        '
        'colSerial
        '
        Me.colSerial.Text = "Serial"
        Me.colSerial.Width = 80
        '
        'colDescription
        '
        Me.colDescription.Text = "Description"
        Me.colDescription.Width = 100
        '
        'colLocationID
        '
        Me.colLocationID.Text = "LocationID"
        Me.colLocationID.Width = 70
        '
        'colChipID
        '
        Me.colChipID.Text = "ChipID"
        Me.colChipID.Width = 100
        '
        'btnFindDevices
        '
        Me.btnFindDevices.Location = New System.Drawing.Point(16, 200)
        Me.btnFindDevices.Name = "btnFindDevices"
        Me.btnFindDevices.Size = New System.Drawing.Size(112, 23)
        Me.btnFindDevices.TabIndex = 1
        Me.btnFindDevices.Text = "Find 232R Devices"
        '
        'MainForm
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(416, 301)
        Me.Controls.Add(Me.btnFindDevices)
        Me.Controls.Add(Me.lstDevices)
        Me.Name = "MainForm"
        Me.Text = "ChipID"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub btnFindDevices_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFindDevices.Click
        Dim numDevices, LocID, ChipID As Integer
        Dim i As Integer
        Dim SerialBuffer As String
        Dim Description As String
        Dim item As ListViewItem

        lstDevices.Items.Clear()

        SerialBuffer = Space(50)
        Description = Space(50)

        Try
            FTChipID.ChipID.GetNumDevices(numDevices)
            If numDevices > 0 Then
                For i = 0 To numDevices - 1
                    item = New ListViewItem
                    item.Text = i.ToString
                    FTChipID.ChipID.GetDeviceSerialNumber(i, SerialBuffer, 50)
                    item.SubItems.Add(SerialBuffer)
                    FTChipID.ChipID.GetDeviceDescription(i, Description, 50)
                    item.SubItems.Add(Description)
                    FTChipID.ChipID.GetDeviceLocationID(i, LocID)
                    item.SubItems.Add("0x" + LocID.ToString("X"))
                    FTChipID.ChipID.GetDeviceChipID(i, ChipID)
                    item.SubItems.Add("0x" + ChipID.ToString("X"))
                    lstDevices.Items.Add(item)
                Next
            End If
        Catch ex As FTChipID.ChipIDException
            MsgBox(ex.ToString)
        End Try

    End Sub
End Class

FTDI Document

FTDI web site tells that this application can read unique FTDI ID ...

Reading Unique FTDI ID application

but it cannot display any arduino devices that already connected to PC.

I suspect I have been holding the wrong end of the stick - sorry.

I thought you wanted the Arduino to read the FTDI number, but I now have the impression that it can only be read by the software on your PC.

If that is correct you will need to seek help elsewhere. This is a Forum for Arduino code.

...R

ok thanks for you time

I have just figured out after contacting with FTDI web site that arduino doesn't use FTDI ships any more...

Nano does tho.
I use them with my '1284P boards too, but as a module that can be installed, or not:
Onboard with MIKROE483



Offboard with FTDI Basic clone

The_Under_Taker:
I have just figured out after contacting with FTDI web site that arduino doesn't use FTDI ships any more...

That's true.
I had assumed you were making your own "clones" with FTDI TTL - USB devices.

...R