Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-10-2008, 07:33 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
Using FTDI USB 'direct D2xx' libraries


I'm not sure if this is the correct forum for this - happy to be corrected.

I am having problems porting an application from Win to Linux. It talks to an FTDI USB-serial chip. I am using the FTDI supplied 'direct D2xx' library (version 0.4.13). Installation, linking etc seems OK, as some functions seem to work OK.

However, my problem is that the function FT_GetDeviceInfoList() gives all nulls for the various information fields (eg description, serial number, manufacturer, etc). The functions FT_GetDeviceInfoDetail() and FT_ListDevices() fail similarly. The function FT_CreateDeviceInfoList() returns the correct number of devices connected (tested with 0,1 or 2 devices).

The system knows the correct information about the devices, checked by both the KDE program KInfoCenter->USBDevices, and the program 'usbview'.

I have tried removing the modules ftdi_sio and usbserial (/sbin/rmmod ....)

Has anyone had success/problems with using this library, especially running 2.6 kernel (I have 2.6.18, fedora 6) and version 0.4.13 of the FTDI library?

I have tried support at FTDI but they have not responded at all!

Old 01-14-2008, 04:58 PM   #2
LQ Newbie
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
As there have been no replies to my query, can anyone point me to another forum (either on LinuxQuestions or otherwise) that would be more appropriate?

Thankyou, gl2008
Old 01-31-2008, 09:59 PM   #3
LQ Newbie
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Did you try to run your program by root?
Old 01-31-2008, 10:28 PM   #4
LQ Newbie
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Since posting my initial question, that has been suggested to me (logging on as root) and yes, it does avoid the problems I had. However, this does not seem a very satisfactory way of working. Are there any other suggestions?

Thanks, gl2008.
Old 02-01-2008, 03:14 AM   #5
LQ Newbie
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
My Linux system is Debian (sid) and the kernel version is 2.6.20.
I'm using FT245RL chip.

# lsusb
Bus 007 Device 013: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

I tried a sample program (Simple) which is in the D2XX driver.
I had added following two lines:
#include <stdlib.h> //for malloc
#include <string.h> //for memset

And I changed following line;
int iNumDevs = 0; => DWORD iNumDevs = 0;

I succeeded compile of the source without any warning.
However the result was;

Number of devices is 1
Dev 0:
Error: FT_ListDevices(18)

I ran this program by root, there were no problem..

By the way. There is another library for FTDI chip.


Last edited by mk1; 02-01-2008 at 08:56 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[openslug3.10beta] ftdi.h no such file or directory dolphs Linux - Server 4 07-31-2007 07:41 AM
glcd + ftdi + usb tooly Linux - Hardware 1 09-25-2005 11:47 AM
Get usb.c: ignoring set_interface when pluging in a Belkin USB Direct Connect Cable qwerty102 Linux - Networking 0 02-15-2005 08:49 AM
Networking in Mandrake Linux with USB Direct Connect? comradesniper Linux - Newbie 1 11-05-2003 05:02 PM
Belkin USB Direct Connect on Linux?? comradesniper Linux - Hardware 0 11-04-2003 01:22 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration