From: Isabella <Isa...@ja...> - 2007-06-25 11:43:30
|
Hi, I have developed MTP initiator PFD device using libusb version 0.1.12. This code is woking fine with iRiverH10 ver2.51 and NetChip NET2280EVB MTP responder device under Suse10.1 with kernel version 2.6.16.13.4. The same code working fine with NetChip NET2280EVB MTP responder device under uClinux kernel version 2.6.19.3-ADI-2007R1-svn. But not working with iRiverH10 ver2.51 device. Means usb_bulk_read is working only very first time. from second time onwards i am getting timeout or ret value is zerofor usb_bulk_read operation. What might be the problem? your help would be more appreciated. Following is the output of both devices. 1.with iRiverDevice Connected to MTP device. Autodetected device with VID=4102 and PID=2102 is UNKNOWN. usb_claim_interface Success BulkInAddress----------------->82 BulkInMaxSize----------------->200 BulkInInterval----------------->0 BulkOutAddress----------------->1 BulkOutMaxSize----------------->200 BulkOutInterval----------------->0 InterruptAddress----------------->81 InterruptMaxSize----------------->200 InterruptInterval----------------->64 PipeCount----------------->3 USB Connection Established. And Device is identified as MTP device LCD_DISPLAY : USB Connection Established. And Device is identified as MTP device *************handler_OpenSession********** usb_bulk_read ul NumBytesToRead : 512 usb_bulk_read ret : 12 0c,00,00,00,03,00,01,20,00,00,00,00, USB Header: Len = 12 USB Header: Type = 3 USB Header: Code = 2001 USB Header: Transaction = 0 Session 1 opened *************handler_CloseSession********** usb_bulk_read ul NumBytesToRead : 512 usb_bulk_read ret : -110 2.NetChip NET2280EVB device Connected to MTP device. Autodetected device with VID=041e and PID=4130 is UNKNOWN. usb_claim_interface Success BulkInAddress----------------->81 BulkInMaxSize----------------->200 BulkInInterval----------------->0 BulkOutAddress----------------->1 BulkOutMaxSize----------------->200 BulkOutInterval----------------->0 InterruptAddress----------------->82 InterruptMaxSize----------------->40 InterruptInterval----------------->10 PipeCount----------------->3 USB Connection Established. And Device is identified as MTP device LCD_DISPLAY : USB Connection Established. And Device is identified as MTP device *************handler_OpenSession********** usb_bulk_read ulNumBytesToRead : 512 usb_bulk_read ret : 12 0c,00,00,00,03,00,01,20,00,00,00,00, USB Header: Len = 12 USB Header: Type = 3 USB Header: Code = 2001 USB Header: Transaction = 0 Session 1 opened *************handler_CloseSession********** usb_bulk_read ulNumBytesToRead : 512 usb_bulk_read ret : 12 0c,00,00,00,03,00,01,20,01,00,00,00, USB Header: Len = 12 USB Header: Type = 3 USB Header: Code = 2001 USB Header: Transaction = 1 Session closed MTP device closed. USB Connection detatched from the MTP ResponderDevice LCD_DISPLAY : USB Connection detatched from the MTP ResponderDevice Thanks and Regards, Isabella.S |