Coder Social home page Coder Social logo

host to device transfer size about raw-gadget HOT 2 CLOSED

xairy avatar xairy commented on June 18, 2024
host to device transfer size

from raw-gadget.

Comments (2)

xairy avatar xairy commented on June 18, 2024

Hi,

Hm, I believe this is functioning as intended.

One USB_RAW_IOCTL_EP_READ call queues one request via usb_ep_queue(). However, the request might be filled with multiple packets. See the comment for usb_ep_queue() and its implementation for net2280 (as an example).

I don't think we need any changes in Raw Gadget. However, USB proxy needs to be aware of this behavior.

Thanks!

from raw-gadget.

lmirel avatar lmirel commented on June 18, 2024

Thanks, I adapted the USB proxy implementation to process one packet at a time based on endpoint wMaxPacketSize and it works as expected. The flow fails on Rapsberry PI4 after a while and I was hoping there was something that could be done on the kernel driver side but couldn't find anything useful so far.

from raw-gadget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.