Has anyone had FTDI Usb Host functionality working on MQX?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Has anyone had FTDI Usb Host functionality working on MQX?

跳至解决方案
944 次查看
danielwinsor
Contributor II

I used the CDC driver, added a class definition as follows:

// USB2SERIAL (FT232R USB-Serial (UART) IC )
{{0x00,0x00}, {0x00,0x00}, USB_PROTOCOL_COM_VENDOR, 0, 0, 0, CUsbHostManager::UsbHostEvent },

// USB Data
{{0x00,0x00}, {0x00,0x00}, USB_CLASS_DATA, 0xFF, USB_PROTOCOL_DATA_CDC, 0, CUsbHostManager::UsbHostDataEvent },

I get an attach and detach calls when I plug the device in, but when I call these two functions they fail:

if (USB_OK != usb_class_cdc_get_acm_descriptors(dev_handle,
intf_handle,
&acm_desc,
&cm_desc,
&header_desc,
&union_desc))
{
break;
}

if (USB_OK != _usb_hostdev_select_interface(dev_handle, intf_handle, (pointer) & device_info[ulDeviceIndex].ccs))
{
break;
}

Is there a completed FTDI (FT232RQ device) driver code for usb host?

Thanks!

Dan.

标签 (1)
0 项奖励
回复
1 解答
649 次查看
danielwinsor
Contributor II

gave up with ftdi.  got a MCP2200 usb to serial device (supports CDC)

在原帖中查看解决方案

0 项奖励
回复
1 回复
650 次查看
danielwinsor
Contributor II

gave up with ftdi.  got a MCP2200 usb to serial device (supports CDC)

0 项奖励
回复