我正在尝试让Matlab MEX在Linux上运行。它使用FTDI的D2XX库v1.3.6 (Documentation。
FT_CreateDeviceInfoList(&ftdi_count)给我的ftdi_count是1,所以检测到了FTDI芯片。
然而,当从FT_GetDeviceInfoList(device_list, &ftdi_count)遍历设备列表时,我的FT_DEVICE_LIST_INFO_NODE结构是全零的,所以很明显代码找不到带有它正在查找的描述的设备:
(gdb) p *p_device
$3 = {Flags = 1, Type = 3, ID = 0, LocId = 0, SerialNumber = '\000' <repeats 15 times>,
Description = '\000' <repeats 63 times>, ftHandle = 0x0}我的第一个猜测是udev没有设置。但是这个问题仍然存在
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}="6014", MODE="0666"lsusb -v有权访问这些值:
Bus 001 Device 012: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6014 FT232H Single HS USB-UART/FIFO IC
bcdDevice 9.00
iManufacturer 1 FTDI
iProduct 2 [company that provided me with their] Kit v3
iSerial 3 FT266WVA
bNumConfigurations 1
[...]我可以做些什么来使FTDI函数工作?
https://stackoverflow.com/questions/44529376
复制相似问题