From: Frans S. <fra...@gm...> - 2010-02-08 08:16:47
|
Hi Francesco, Wow, it is working now perfectly!!! Only for the bootloader I needed to make a small fix in usb initialization, that one uses bulk in stead of interrupt: if(m_hwCurrent==HW_UPP) m_modeReadEndpoint = m_modeWriteEndpoint = LIBUSB_TRANSFER_TYPE_INTERRUPT; else m_modeReadEndpoint = m_modeWriteEndpoint = LIBUSB_TRANSFER_TYPE_BULK; But I think we can merge back now. (in fact there is nothing to merge since nothing has changed in the trunk) Cheers, Frans On Mon, 2010-02-08 at 00:26 +0100, Francesco wrote: > Hi Frans! > > 2010/2/6 Francesco <f18...@ya...>: > > In the libusb-1.0 branch I see tons of: > > > > ... > > USB GET DESCRIPTOR Request INTERFACE > > GET DESCRIPTOR Response INTERFACE[Malformed Packet] > > ... > > > actually these continuous requests were the result of my (partially > erraneous) 0.1=>1.0 porting :/ > > basically the endpointMode() function was continuosly asking for the > INTERFACE descriptor to the hw before each read/write done by the > readString() and writeString() methods of Hardware class. > I've now fixed the code to never ask any interface/endpoint > descriptor. In fact checking the firmware I've seen that > GET_DESCRIPTOR packets for the INTERFACE descriptor are not handled. > This explains why wireshark always reported malformed packets as > replies. > > Hopefully the branch should now be ready for everyday use... > > Francesco > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Usbpicprog-technical mailing list > Usb...@li... > https://lists.sourceforge.net/lists/listinfo/usbpicprog-technical |