This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

usb bulk driver

Hi all,
I am using LPC2148 microcontroller. Bulk driver for usb2.0 full speed is written. Currently only 64 bytes of data is written to the endpoint. So the speed achieved is less. I have read in the books that maximum 19 packets of 64 byte length can be transmitted in 1ms frame. How can i increase the speed of bulk transfer.

Parents
  • > We could achieve a speed of 720kbytes/s.

    Not enough.
    You may saturates the bus, if no other device hooks on the bus.
    19 full-size packets/frame = 1,216,000 bytes/s

    a) How many bytes do you request for read/write call on the host side?
    In both directions, transfer speed is proportional to the size of single read/write call, until bus bandwidth saturates. Test it at least a couple of 10KBytes. Even MegaBytes will do.

    b) On the device side, did you implement double buffer scheme on my first post?

    > Thesycon

    Surely, Thesycon supplies easy DLL for their driver.
    But, isn't WinUSB enough?

    Tsuneo

Reply
  • > We could achieve a speed of 720kbytes/s.

    Not enough.
    You may saturates the bus, if no other device hooks on the bus.
    19 full-size packets/frame = 1,216,000 bytes/s

    a) How many bytes do you request for read/write call on the host side?
    In both directions, transfer speed is proportional to the size of single read/write call, until bus bandwidth saturates. Test it at least a couple of 10KBytes. Even MegaBytes will do.

    b) On the device side, did you implement double buffer scheme on my first post?

    > Thesycon

    Surely, Thesycon supplies easy DLL for their driver.
    But, isn't WinUSB enough?

    Tsuneo

Children