Electronics > Projects, Designs, and Technical Stuff

Easiest way to collect some data @50MB/s and dump to computer

<< < (5/11) > >>

ataradov:
Well, after all the enumeration and device search libusb is the same. Usually for higher performance you submit multiple transfer requests and the library calls a callback function when the request is fulfilled. In the callback after processing the data you can re-submit the same request. This way you always have some pending requests, so no wasted bandwidth.

c64:

--- Quote from: magic on June 13, 2020, 04:59:41 am ---AFAIK for FTDI you can just use a similar libftdi where you open_device(), configure_device() and read_device(), roughly speaking.

--- End quote ---

This is how understand as well from this document
https://www.ftdichip.com/Support/Documents/AppNotes/AN_130_FT2232H_Used_In_FT245%20Synchronous%20FIFO%20Mode.pdf

No need to write firmware or generate drivers with some third party tool


--- Quote from: magic on June 13, 2020, 04:59:41 am ---I wonder if the dual FT2232H would be capable of simultaneously running two streams with its two engines and achieving your throughput target in aggregate.

--- End quote ---
I think dual in it means "dual UART"

ataradov:
You don't have to use that tool. You can write INI file yourself if you want to. That's just how windows is, you need a "driver", even if it is just a dummy.

FTDI obviously provides their own driver, but you still have to install that. There is not a whole lot of difference.

c64:

--- Quote from: ataradov on June 13, 2020, 05:11:52 am ---You don't have to use that tool. You can write INI file yourself if you want to. That's just how windows is, you need a "driver", even if it is just a dummy.

FTDI obviously provides their own driver, but you still have to install that. There is not a whole lot of difference.

--- End quote ---
Ah, so driver itself is already written by Sypress, you only write (or generate) inf file?

ataradov:

--- Quote from: c64 on June 13, 2020, 05:39:29 am ---Ah, so driver itself is already written by Sypress, you only write (or generate) inf file?

--- End quote ---
Not exactly. Cypress chip is just a bare chip, it does nothing without firmware, so Cypress can't make that driver.

The actual driver is written by libusb team, or by Microsoft (if you use WinUSB driver). And all that tool does is generate INF file and put all the relevant driver files into a single folder. You mostly don't need it for one-off project. But if you were to give that device to someone else, this folder would be "the drivers" for your device.

And yes, you can write your own INF file if you want. But the tool is nice and easy to use. It will automatically pick up your device VID/PID and all that stuff. It saves a lot of time trying to install and uninstall half baked hand written INF files.

Also starting from Win10 you can make stuff work with WinUSB driver without manual installation. I don't remember the details, but I think windows automatically installs WinUSB driver if your device responds to a specific string descriptor with some predefined GUID-like string.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod