Hi, Try to use FILL_BULK to initialize read bulk and give size as exactly as the size of bulk in endpoint packet size.
Make sure that your read call back function is recursive it should always keep reading from the device. This should work, Even I faced this problem, right now its ok. Regards, Shalini -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marco Schramel Sent: Tuesday, February 01, 2005 8:01 PM To: [email protected] Subject: [linux-usb-devel] bulk in problem Hi all, my device has 2 bulk and 2 isochron endpoints. T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0471 ProdID=0168 Rev= 1.00 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 0 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none) I: If#= 0 Alt= 1 #EPs= 4 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none) E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=05(O) Atr=01(Isoc) MxPS= 512 Ivl=1ms E: Ad=86(I) Atr=01(Isoc) MxPS= 512 Ivl=1ms I try to send data in bulk out endpoint. The write is always successfull. But i cant read out. I always get a timeout message. How i can setup a read of a enpoint which address is 84 on interface 0 altsetting 1 ? /retval = usb_bulk_msg (dev->udev, usb_rcvbulkpipe (dev->udev, dev->bulk_in_endpointAddr), dev->bulk_in_buffer, dev->bulk_in_size, &count, 10000); This code fails. Thank you for your help Marco -- --------- Marco Schramel R&D Bartec GmbH Schulstr. 30 94239 Gotteszell, Germany www.bartec.de [EMAIL PROTECTED] Phone: +49 (0)9929/301332 Fax: +49 (0)9929/301112 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
