Re: [Ftdi-usb-sio-devel] Resetting the FTDI
Brought to you by:
bryder
|
From: Chris S. <chr...@ya...> - 2010-11-14 01:34:47
|
--- On Thu, 11/11/10, Michael Plante <mic...@gm...> wrote:
> I'd be surprised if there's anything the FTDI hardware can
> accomplish with
> ftdi-usb-sio, but not with libftdi.
Michael,
My application sends a 2 byte message to a device and receiving a 62 byte response ("ping pong") as fast as possible.
Most of the time ftdi_sio can process the "ping pong" within one full speed 1ms USB frame.
The libftdi library, on average, takes three ms per "ping pong".
I suspect the reason for the difference in performance is due to the fact that my use of ftdi_sio involves non-blocking, CPU gobbling read operations from within a while loop while libftdi appears to use some kind of CPU-friendly blocking read.
Source attached for those interested.
Chris
|