On Sun, Jul 17, 2011 at 8:28 PM, Xiaofan Chen <[email protected]> wrote: > On Sun, Jul 17, 2011 at 6:38 PM, Uwe Bonnes > <[email protected]> wrote: >>>>>>> "Xiaofan" == Xiaofan Chen <[email protected]> writes: >> Xiaofan> The MinGW and MInGW-w64 test build of libftdi-1.0 git is also >> Xiaofan> here. http://code.google.com/p/picusb/downloads/list >> >> What backend do these binaries need/use/provide? > > It needs libusb-1.0 Windows backend. I am using the latest > binary snapshot from Pete Batard. > http://www.libusb.org/wiki/windows_backend > http://libusb-winusb-wip.googlecode.com/files/libusb_2011.07.06.7z > > In order to use this, the user will have to replace FTDI's driver with > Microsoft WinUSB. To do that, it is recommend that the user > uses libwdi/Zadig. > http://www.libusb.org/wiki/windows_backend > http://sourceforge.net/projects/libwdi/files/zadig/ >
Just to help people to get start with libftdi-1.0 under Windows with MinGW, here is a convenience package. It includes the following. 1) include file for libftdi-1.0 and libusb-1.0 2) MinGW 32bit dll 2) MinGW import and static library for libftdi-1.0 and libusb-1.0 3) MinGW 32 bit build of libftdi-1.0 and libusb-1.0 examples. 4) Zadig Driver installer which works under 32bit/64bit Windows. System requirements: XP 32bit, Vista 32bit/64bit, Windows 7 32bit/64bit. 32bit/64bit Windows 2008 and Windows 2008 R2 should also work. Step 1: use Zadig to install the WinUSB driver for an FTDI device (this will replace the FTDI driver, you can use Device manager to switch back to the original FTDI driver). Step 2: Run the test program to see if the driver installation is correct. Step 3: put the include and library file to the MinGW include and lib directory Step 4: build your MinGW libftdi program with MinGW Step 5: test your build, you need to put libusb-1.0.dll and libftdi.dll in the same directory Example run: D:\work\libftdi\binary\libftdi1_devkit_MinGW32_17July2011\bin>find_all.exe Number of FTDI devices found: 1 Checking device: 0 Manufacturer: FTDI, Description: FT232R USB UART D:\work\libftdi\binary\libftdi1_devkit_MinGW32_17July2011\bin>bitbang.exe ftdi open succeeded: 0 enabling bitbang mode turning everything on turning everything off fe fd fb f7 ef df bf 7f fe fd fb f7 ef df bf 7f fe fd fb f7 ef df bf 7f fe fd fb f7 ef df bf 7f disabling bitbang mode D:\work\libftdi\binary\libftdi1_devkit_MinGW32_17July2011\bin>simple.exe ftdi_read_chipid: 0 FTDI chipid: 30B7EF1 D:\work\libftdi\binary\libftdi1_devkit_MinGW32_17July2011\bin>eeprom.exe -p 0x6001 Chip type 3 ftdi_eeprom_size: 128 0x000: 00 40 03 04 01 60 00 00 a0 2d 08 00 00 00 98 0a .@...`.. .-...... 0x010: a2 20 c2 12 23 10 05 00 0a 03 46 00 54 00 44 00 . ..#... ..F.T.D. 0x020: 49 00 20 03 46 00 54 00 32 00 33 00 32 00 52 00 I. .F.T. 2.3.2.R. 0x030: 20 00 55 00 53 00 42 00 20 00 55 00 41 00 52 00 .U.S.B. .U.A.R. 0x040: 54 00 12 03 41 00 38 00 30 00 30 00 37 00 55 00 T...A.8. 0.0.7.U. 0x050: 62 00 35 00 c9 bf 1c 80 00 00 00 00 00 00 00 00 b.5..... ........ 0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 23 ........ .......# 0x080: 2c 04 d3 fb 00 00 c9 bf 1c 80 42 00 00 00 00 00 ,....... ..B..... 0x090: 00 00 00 00 00 00 00 00 38 41 32 52 4a 33 47 4f ........ 8A2RJ3GO VID: 0x0403 PID: 0x6001 Release: 0x0000 Bus Powered: 90 mA USB Remote Wake Up Manufacturer: FTDI Product: FT232R USB UART Serial: A8007Ub5 Checksum : 230f Internal EEPROM Enable Remote Wake Up PNP: 1 Channel A has Mode UART VCP C0 Function: TXLED C1 Function: RXLED C2 Function: TXDEN C3 Function: PWREN C4 Function: SLEEP -- Xiaofan -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
