About:
Connecting to the device seams to fail until the "reset high-speed USB device number 8 using xhci_hcd" is triggerd and logged in dmesg. The transfear itself finishes in less than a second, once the connection is established. The mtp-getfile command is run as soon as possible (~1 second) after the phone is put into mtp mode.
This is not limited to the first connection, all conections takes just as long.
The mpt-connect gives some errors, but all the files transfears correctly.
Kernel: 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
Command:
user@machine:~/Pictures$ time mtp-getfile 43840 ./IMG_20141216_111134.jpg
libmtp version: 1.1.10
Device 0 (VID=05c6 and PID=6764) is a Qualcomm (for OnePlus) One (MTP).
Android device detected, assigning default bug flags
Getting file/track 43840 to local file ./IMG_20141216_111134.jpg
Progress: 3161068 of 3161068 (100%)
real 1m15.869s
user 0m4.132s
sys 0m3.448s
relevant dmesg:
[ 3015.267685] usb 1-3: new high-speed USB device number 8 using xhci_hcd
[ 3015.397254] usb 1-3: New USB device found, idVendor=05c6, idProduct=6764
[ 3015.397265] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3015.397271] usb 1-3: Product: A0001
[ 3015.397275] usb 1-3: Manufacturer: OnePlus
[ 3015.397279] usb 1-3: SerialNumber: <<removed>>
[ 3096.451716] usb 1-3: reset high-speed USB device number 8 using xhci_hcd
[ 3096.581133] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009e21ba48
[ 3096.581145] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009e21ba00
[ 3096.581151] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009e21ba90
Command 2:
user@machine:~/Pictures$ time mtp-connect --getfile 43315 test.png --getfile 43317 test2.png --getfile 43840 test3.jpg
libmtp version: 1.1.10
Device 0 (VID=05c6 and PID=6764) is a Qualcomm (for OnePlus) One (MTP).
Android device detected, assigning default bug flags
Get file 43315
Getting 43315 to test.png
Get file 4331751 of 808151 (100%)
Getting 43317 to test2.png
Get file 4384067 of 891967 (100%)
Getting 43840 to test3.jpg
Unknown options: test.png test2.png test3.jpg
real 1m23.898s
user 0m3.924s
sys 0m3.436s
relevant dmesg:
[ 3707.237829] usb 1-3: reset high-speed USB device number 8 using xhci_hcd
[ 3707.366862] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009e21ba48
[ 3707.366873] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009e21ba00
[ 3707.366878] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009e21ba90
Anonymous