|
From: Cory S. <co...@mo...> - 2006-04-21 22:51:06
|
Hi Jonathon, Yes, I did get libftdi to work. My problems turned out to be related to Cygwin with the -mno-cygwin option. Compiling libusb-win32, libftdi, and my own application and libraries with MinGW/Msys solved the issues I was having. I admit it should not have made a difference, but it did, and I'm glad it now works. I have not tried Visual C++ so cannot provide any helpful hints for that specifically. One thing you should be aware of is that a read in libftdi may return no payload (0 bytes). So, I wrote a wrapper to perform a timed read by continually polling ftdi_read_data until the requested number of bytes were received or the timeout in milliseconds elapsed. You may need to do something similar in your code. Best of luck, Cory On 4/21/06, Jonathon <j...@co...> wrote: > How did you go Cory? > > Did you get libftdi working on libusb-win32 ?? > > I'm working on a project doing that at the moment. I think I can get it > all to build properly, but I'm using Visual C++ > > J. On 3/30/06, Cory Sharp <co...@mo...> wrote: > I can get libftdi to work in Cygwin, but also experience issues you > describe (read basically fails). I'm using libftdi 0.7 and have tried > both libusb-win32 0.1.10.1 and CVS HEAD as of today. > > libftdi DOES work for me without problem providing I compile libftdi > and my application *without* -mno-cygwin. My ftdi/usb reads fail when > I compile libftdi and my application with -mno-cygwin. > > Unfortunately, one of the things I'm building is a JNI DLL to be used > by Java -- which pretty much requires -mno-cygwin. > > I can try to debug this, but I'd appreciate any suggestions about what > kinds of things I should be looking for in particular, and where. > > Thanks, best, > Cory > > ----- On 2006-01-09 03:23, <morper@te...> wrote: > > Has anyone tried to use libusb-win32 together with libftdi from > intra2net? (http://www.intra2net.com/de/produkte/opensource/ftdi/index.ph= p). > > I have the problem that, when I try to read data from the device via > libftdi based on libusb-win32, I only receive some single bytes with > very high values (between 248 and 255). Using the same software under > Linux with libusb works correctly. > > Thanks for any suggestions. |