Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


Search this Thread
Old 08-19-2013, 10:22 AM   #1
LQ Newbie
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
Question USB Frequency Counter and FT232RL

Questions part one...

I have a frequency counter from that measures up to 50 MHz. On this board there is an FT232RL. When I go through the instructions from I get stuck. They gave me an updated driver and I get further but still can't make it the entire way. This is all on the Raspberry Pi which ftdichip supports. Has anyone out there gotten the FT232RL chip to work on a Pi? There might not be a lot of Pi users here so it is OK if you skip this question.

Questions part two...

I am also trying to set this up on my laptop which uses Mint 13 Maya. I looked up FTDI in the repositories and found some stuff. And here is my stupid question. I installed ftdi-eeprom and when I do lsusb I see the chip. Does this mean the driver is installed and working on my laptop? Does the ftdi-eeprom have the driver in it or maybe I installed it some other way a few weeks back and don't remember it.

I am a bit of a newbie with this aspect of Linux. I am just now trying to get additional hardware up and running on a project I am working on in my spare time.

Any help is greatly appreciated.
Old 08-21-2013, 10:35 AM   #2
Senior Member
Registered: Mar 2011
Location: Milford, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 1,689
Blog Entries: 8

Rep: Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652
I can address part 2 for you at least. This shouldn't have anything to do with ftdi-eeprom, but instead ftdi-sio.

Actually some of the kernel configuration stuff is in here and is likely relevant to your Pi situation.

Not a Pi user, but for FT232 on Linux you should see system messages similar to the following:

[    7.704044] usb 3-2: new full speed USB device using uhci_hcd and address 2
[    7.831046] usb 3-2: ep0 maxpacket = 8
[    7.868320] usb 3-2: default language 0x0409
[    7.897321] usb 3-2: udev 2, busnum 3, minor = 257
  NOTE  [    7.897333] usb 3-2: New USB device found, idVendor=0403, idProduct=6001
  NOTE  [    7.904100] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  NOTE  [    7.911267] usb 3-2: Product: FT232R USB UART
  NOTE  [    7.915673] usb 3-2: Manufacturer: FTDI
[    7.919523] usb 3-2: SerialNumber: A100dN6R
[    7.923811] usb 3-2: uevent
[    7.923841] usb 3-2: usb_probe_device
[    7.923847] usb 3-2: configuration #1 chosen from 1 choice
[    7.932308] usb 3-2: adding 3-2:1.0 (config #1, interface 0)
[    7.937311] usb 3-2:1.0: uevent
[    7.937342] usbserial_generic 3-2:1.0: usb_probe_interface
[    7.937347] usbserial_generic 3-2:1.0: usb_probe_interface - got id
[    7.937368] ftdi_sio 3-2:1.0: usb_probe_interface
[    7.937374] ftdi_sio 3-2:1.0: usb_probe_interface - got id
  NOTE  [    7.937384] ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected
  NOTE  [    7.944124] usb 3-2: Detected FT232RL
[    7.947818] usb 3-2: Number of endpoints 2
[    7.951941] usb 3-2: Endpoint 1 MaxPacketSize 64
[    7.956620] usb 3-2: Endpoint 2 MaxPacketSize 64
[    7.961250] usb 3-2: Setting MaxPacketSize 64
  NOTE  [    7.967364] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB2
It's all relevant to the resource, but I've emphasized the ones important to me; which are the ones identifying the vendor and product of the device, FT232R is typically vendor 0x0403 and ID 0x6001 or some other variation, like we re-program for product ID's above 0x6006 or so to have multiple FT232R devices on the same machine.

Possibly of relevance to the Pi - driver information and kernel config info

The Linux driver file of consequence is drivers/usb/serial/ftdi_sio.[ch] in your kernel source tree. One can edit and add to the sections giving the numbers for x6001 and add more numbers to that (in the .h file) to add additional numbers like I've described.

This is all controlled by your kernel configuration CONFIG_USB_SERIAL_FTDI_SIO, but I'd recommend you have CONFIG_USB_SERIAL and CONFIG_USB_SERIAL_GENERIC enabled as well, all of these typically all are enabled.

After verifying that the resource was seen via your system log (shown above) you can verify in a few ways that the port is there:

Viewing your usbserial file:

cat /proc/tty/driver/usbserial 
usbserinfo:1.0 driver:2.0
0: name:"FTDI USB Serial Device" vendor:0403 product:6008 num_ports:1 port:1 path:usb-0000:00:1d.0-1
1: name:"FTDI USB Serial Device" vendor:0403 product:6006 num_ports:1 port:1 path:usb-0000:00:1d.0-2
2: name:"FTDI USB Serial Device" vendor:0403 product:6001 num_ports:1 port:1 path:usb-0000:00:1d.1-2
Viewing the resources in your /dev/tree:

ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Aug 16 16:00 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Aug 16 16:01 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Aug 16 16:01 /dev/ttyUSB2
And viewing the resources via the lsusb command:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0403:6008 Future Technology Devices International, Ltd Serial Converter
Bus 002 Device 003: ID 0403:6006 Future Technology Devices International, Ltd 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
In the lsusb case you'll see other USB resources besides your FTDI serial devices; I have an external hub and the root hubs are provided by my processor's bridge chip; as you can see though, just knowing that I have these devices is not necessarily useful; it's more the usbserial file and the /dev tree resources.

Note also that lsmod may or may not work. For instance in my kernel, I've included the FTDI SIO as part of the kernel, so it doesn't appear or load as a module, it's available as part of the kernel. However this is how it would appear if the distribution happened to have that as a module:

lsmod | grep ftdi
ftdi_sio               34156  0 
usbserial              33694  1 ftdi_sio
Next you can access these ports using minicom(1), or via echo(1) and cat(1). For instance you can echo a character to that device and you can cat the resource to see data out from it. You also can set it up or view it using stty(1).

To view it:

stty -F/dev/ttyUSB0
speed 115200 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-isig -icanon -iexten -echo
To change the speed of it:

stty -F/dev/ttyUSB0 230400
I've written some C program examples, not just for setting up, opening, and reading/writing the port, but for further processing by way of a GPS example; however the port information is included
Old 08-21-2013, 10:52 PM   #3
LQ Newbie
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the detailed reply. I am going to look into what you posted and see what I find. I will be back.


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
Pulse counter or frequency of incoming pulse train jayhorizon Programming 15 10-29-2010 05:29 AM
PHP - POST variables named with counter: $_POST[${"variable$counter"} winairmvs Programming 1 08-06-2010 05:56 PM
out of frequency jeril Linux - Newbie 2 01-07-2010 10:46 PM
Counter-strike,[color=orange]H L F - L I F E [/color],Counter-strike: Source. Dennisgoop Linux - Games 2 08-10-2004 04:03 AM

All times are GMT -5. The time now is 08:37 AM.

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration