Go Down

Topic: Finding out an FTDI device ID/key? (Read 481 times) previous topic - next topic

kriista

I want to try editing my FTDI device's 'latency timer' and 'read buffer size' by going into the .plist but there's dozens (if not hundreds) of devices in there.

Each entry is formatted like this:

Code: [Select]
<key>485USBTB-4W</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.FTDI.driver.FTDIUSBSerialDriver</string>
<key>IOClass</key>
<string>FTDIUSBSerialDriver</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>0</integer>
<key>idProduct</key>
<integer>44084</integer>
<key>idVendor</key>
<integer>2134</integer>
</dict>


I want to add the following:

Code: [Select]
<key>ConfigData</key> <dict>
<key>LatencyTimer</key>
<integer>2</integer>
</dict>


and

Code: [Select]
<key>ConfigData</key> <dict>
<key>InBufferSize</key>
<integer>256</integer>
</dict>


to my device's entry (a sparkfun USB explorer (https://www.sparkfun.com/products/8687)), but I don't know how to find out which entry is my device. I searched for sparkfun, USB explorer, USB, etc.. but all the <key> entres appear to be a serial number type entry.

(the above info is pulled from here http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_105%20Adding%20Support%20for%20New%20FTDI%20Devices%20to%20Mac%20Driver.pdf and is my attempt to reduce latency and buffer overflow (http://arduino.cc/forum/index.php/topic,118731.0.html))

pylon

You probably have more success if you ask that question on a Mac forum because it's not directly related to Arduino.

If you have access to a Linux machine it's simple to get the IDs: the command "lsusb" lists all currently connected USB devices together with their IDs.

kriista

That sent me on a google for an "lsusb" mac equivalent and then I remembered the hardware profiler built in.

I pulled that up with the device plugged in and got the following:



Unfortunately none of the following appear to be in the .plist : "FT232R", "A40084aV", "0x6001", "0X0403"
"FTDI" is in there but over a thousand times. Not sure where else to look for whatever the key would be.


pylon

0x6001 is a hex number, the decimal reads 24577, 0x0403 is then 1027. Your plist seems to just have integer values which probably are in decimal format. So search for a idVendor of 1027 and a idProduct of 24577.

kriista

Aha!

Code: [Select]
<key>FTDI R Chip</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.FTDI.driver.FTDIUSBSerialDriver</string>
<key>IOClass</key>
<string>FTDIUSBSerialDriver</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>0</integer>
<key>bcdDevice</key>
<integer>1536</integer>
<key>idProduct</key>
<integer>24577</integer>
<key>idVendor</key>
<integer>1027</integer>
</dict>

Go Up