FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - knut

Pages: [1]
1
Update: It works now. :)


In case anyone finds this thread and is curious, there are the commands I ended up using in the initialization (after opening the device):

FT_ResetDevice(ftHandle)
FT_SetLatencyTimer(ftHandle, 16)
FT_W32_GetCommModemStatus (ftHandle, &modemStatus)
FT_SetDataCharacteristics(ftHandle, FT_BITS_8, FT_STOP_BITS_1, FT_PARITY_NONE)
FT_SetFlowControl(ftHandle, FT_FLOW_NONE, 0, 0)
FT_SetDtr(ftHandle)
FT_SetChars(ftHandle, 0, 0, 0, 0)


(Of course, there is also some code around these, including checking return values, etc. These are just the FT_ function calls.)


2
Thank you for the quick answer. My response is slow due to the holidays.

After some more research, it looks like the messages correspond to certain operations (Reset, Set latency time, etc...).
I will have to read the D2xx programmers guide carefully again and see if I can find corresponding functions for each of the operations.
I'll post again if I resolve the issue.

Bonus question:
Is it possible to combine use of the D2xx and libusb? (i.e. is it possible to get a libusb-style handle to the device which has been connected to using FT_Open?)


3
Discussion - Software / FTDI D2XX - How to send control transfer message?
« on: December 20, 2021, 12:04:48 PM »

I am using the FTD2XX library to communicate with a device, from a Windows PC.

I have been able to successfully connect to the device, and to receive a data stream from it.

However, I need to send control messages (URB_CONTROL) to the device.
I have tried to find out how to do this by reading the documentation, but I haven't found anything.
How can I do this?


Pages: [1]