1
Discussion - Software / Re: FTDI D2XX - How to send control transfer message?
« on: January 06, 2022, 12:33:23 PM »
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.)
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.)