Giter VIP home page Giter VIP logo

Comments (8)

dorssel avatar dorssel commented on August 16, 2024

No, not within usbipd-win.

Maybe due to the extra delay introduced by the USBIP protocol, some reads arrive close together, and usbmuxd is not expecting that. For example: reads are requested 40kB per request. For local USB (real hardware) these requests and their replies are spaced apart normally. But due to USBIP some are completed slightly late, such that they arrives close to the next. And maybe usbmuxd then gets 2×40kB in a single read (just example numbers). Just guessing, though.

from usbipd-win.

Mark6222 avatar Mark6222 commented on August 16, 2024

how would i fix something like that

from usbipd-win.

dorssel avatar dorssel commented on August 16, 2024

First, try to see if this is indeed the problem. Make a capture while reproducing, see https://github.com/dorssel/usbipd-win/wiki/Troubleshooting. You can improve the timing (only a bit) by opening task manager and giving the usbipd.exe service process realtime priority.

from usbipd-win.

Mark6222 avatar Mark6222 commented on August 16, 2024

Hi Dorssel, I've believe the issue is to do with usbipd on the windows side as ive tested sideloading an app onto the phone from two Linux boxes using usbip and its worked. ive attached the troubleshooting file below.
log.zip

from usbipd-win.

Mark6222 avatar Mark6222 commented on August 16, 2024

setting the priority didn't fix the issue

from usbipd-win.

dorssel avatar dorssel commented on August 16, 2024

Yes, it is because of the packet latency introduced by usbipd. Linux does everything in the kernel, and therefore has much better timing. usbipd-win requires user mode software (the drivers themselves do not handle the network USBIP protocol). Therefore, the per packet timing has much more variance. Not really a bug, but unfortunately by design. Your logs show exactly what I meant earlier; the individual packets are not too large (49216 per packet, on line 485 and 489). This is not something that can be fixed.

from usbipd-win.

Mark6222 avatar Mark6222 commented on August 16, 2024

do you know of any other way to accomplish what I'm trying to do, as this is a brick wall for my project.

from usbipd-win.

dorssel avatar dorssel commented on August 16, 2024

You could try to increase the buffer size of usbmuxd; maybe it's configurable, or else modify the source. From a USB perspective everything seems to be working, it's just that the software on the client cannot handle the timing/bunching of data. Otherwise, I see no options other than to use the device on a native Linux platform instead of forwarding it from Windows.

from usbipd-win.

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.