On Sun, Nov 17, 2002 at 02:55:19PM -0800, shino korah wrote: > > > 2. Which will be better usb_bulk_msg() or > > > FILL_BULK_URB and the usb_submit_urb()? for > > > read/writing > > > > Depends on what you want to do. > > My goal is get a maximum possible transfer rate for > reading and writing to memory using DMA. > > I'm using NETCHIP 2280 PCI card(USB 2.0) to transfer > data from computer A to B. I have basic things working > now I want to improve the transfer rate. > > if I do a write of 4k data in my application program, > usb-skelton.c's skel_write function will write only > 512k bytes.
So increase the size of the buffer. It should work just fine. Have you tried this? > Why not just submit > > one really big urb > > and let the USB core split it up into smaller > > pieces? > I would love that, so that I don't have to worry about > splitting teh data in my driver > > Can I do that? But when we use FILL_BULK_URB teh > maximum data I can have is 512k. Isn't it? No. > Can I over write it? and let will usbcore take care of > it? Yes. > I'm doing all these in 2.4.18-3 kernel I'd _really_ suggest using a newer kernel, as that is quite old, and not even recommended by your distro (there have been a number of updates since then). Also, if you are trying to use a 2.0 controller, please do your work on the 2.5 tree, it should work much better. > > What kind of USB driver are you writing? For what > > kind of device? > > > > Netchip 2280 usb 2.0 PCI card No, what king of USB device? Printer, scanner, etc. thanks, greg k-h ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
