usbipd-win icon indicating copy to clipboard operation
usbipd-win copied to clipboard

mtp-probe: bus: 3, device: 29 was not an MTP device

Open Mark6222 opened this issue 1 year ago • 9 comments

When i run sudo usbipd attach -r 10.1.216.67 -b 2-5 i get that error in syslog and it connects to the ios device/iphone, for like 2 seconds then disconnects, why is this, works fine with android devices but not with ios.

Mark6222 avatar Jan 29 '24 16:01 Mark6222

Quick google: https://unix.stackexchange.com/questions/26842/mounting-usb-drive-that-is-not-recognized

I don't think this is usbipd-win related at all. More like a udev configuration issue, or perhaps missing drivers on the Linux side.

dorssel avatar Jan 29 '24 16:01 dorssel

it dosent seem to be a udev issue `pi@usbipserver:/etc/udev/rules.d $ udevadm monitor monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent

KERNEL[1493.130508] add /devices/platform/vhci_hcd.0/usb3/3-1 (usb) KERNEL[1493.154998] add /devices/platform/vhci_hcd.0/usb3/3-1/3-1:1.0 (usb) KERNEL[1493.155111] bind /devices/platform/vhci_hcd.0/usb3/3-1 (usb) KERNEL[1493.155246] remove /devices/platform/vhci_hcd.0/usb3/3-1/3-1:1.0 (usb) UDEV [1493.178027] add /devices/platform/vhci_hcd.0/usb3/3-1 (usb) UDEV [1493.181412] add /devices/platform/vhci_hcd.0/usb3/3-1/3-1:1.0 (usb) UDEV [1493.191857] bind /devices/platform/vhci_hcd.0/usb3/3-1 (usb) UDEV [1493.193343] remove /devices/platform/vhci_hcd.0/usb3/3-1/3-1:1.0 (usb) KERNEL[1493.241707] unbind /devices/platform/vhci_hcd.0/usb3/3-1 (usb) KERNEL[1493.241794] remove /devices/platform/vhci_hcd.0/usb3/3-1 (usb) UDEV [1493.244787] unbind /devices/platform/vhci_hcd.0/usb3/3-1 (usb) UDEV [1493.255719] remove /devices/platform/vhci_hcd.0/usb3/3-1 (usb)`

Mark6222 avatar Jan 31 '24 16:01 Mark6222

I don't know why the device (at least appears) to detach/unplug right away. What is logged in syslog? Can you capture the USB data (see https://github.com/dorssel/usbipd-win/wiki/Troubleshooting)?

dorssel avatar Feb 01 '24 12:02 dorssel

Hi sorry been a while since i tried to fix this again, so i have the libmobiledevice library and it has usbmuxd, now for the libmobiledevice library to work usbmuxd has to be running but when it is its interfering with usbip somehow and disconnects the device.

Mark6222 avatar Feb 08 '24 15:02 Mark6222

im completely lost on how to fix this

Mark6222 avatar Feb 08 '24 15:02 Mark6222

Please run the server from the console (as in https://github.com/dorssel/usbipd-win/wiki/Troubleshooting) and make a PCap capture as explained in that same document. Then do an attach as before, and wait a few seconds after the error (auto detach). Then quit the server (Ctrl+C) and post the capture file.

dorssel avatar Feb 08 '24 15:02 dorssel

Usbipd.Server[1000] new connection from 10.1.216.65 dbug: Usbipd.ConnectedClient[1000] Received opcode: OP_REQ_IMPORT dbug: Usbipd.ConnectedClient[1000] Claiming took 116 ms info: Usbipd.ConnectedClient[1] Client 10.1.216.65 claimed device at 2-4 (USB\VID_05AC&PID_12A8\1303CE8F7AF271667013B8598FD7CD2FAFDA3205). dbug: 2-4.0[1000] Endpoint created dbug: 2-4.0[1000] Endpoint created dbug: 2-4.0[1000] Trapped SET_CONFIGURATION: 1 dbug: Usbipd.ConnectedClient[1000] Unbind or unplug while attached info: Usbipd.ConnectedClient[2] Client 10.1.216.65 released device at 2-4 (USB\VID_05AC&PID_12A8\1303CE8F7AF271667013B8598FD7CD2FAFDA3205). dbug: Usbipd.Server[1000] connection close: The operation was canceled. dbug: Usbipd.Server[1000] connection closed

Mark6222 avatar Feb 08 '24 15:02 Mark6222

now i connected the device then ran usbmuxd and it disconnected the device

Mark6222 avatar Feb 08 '24 15:02 Mark6222

That is immediately after SET_CONFIGURATION. I think this device "resets" when its configuration is changed/set. The problem is that to Windows, that looks like an unplug of the device, followed by an immediate replug. Unfortunately, the unplug already leads to a disconnect of the USBIP link. This is by design (of the USBIP protocol), and cannot be changed. I'm afraid this device is incompatible with USBIP.

dorssel avatar Feb 08 '24 16:02 dorssel

Try check the "forced" option in WSL USB GUI and click the "attach" button multiple times in a short period of time. I solved the problem by doing that.

XIYU11864 avatar Apr 09 '24 13:04 XIYU11864

i fixed this issue with changing the versions of usbmuxd that i was using

Mark62222 avatar Apr 10 '24 09:04 Mark62222