whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.46k stars 121 forks source link

Unstable usb behaviour, timeouts and freezes #12

Closed whoozle closed 9 years ago

whoozle commented 9 years ago

Configuring devices often leads to timeouts. Intercepted traffic shows that proper device response was delayed until exiting from app. libusb bug?

whoozle commented 9 years ago

Hmm, I added the suggested message box, and it works with android (gives you instructions + button retry), so I need to investigate more.

Could you uncomment HexDump("read"/"write") in backend/linux/Device.cpp and send me the console output please?

Maybe WP sends the storage list, but does not allow getting info or getting its content.

trufanov-nok commented 9 years ago
$ ./qt/android-file-transfer 
kf5.kiconthemes: "Theme tree: (Breeze)"
upload worker started
device found, opening session...
write[16]:
00000000: 10 00 00 00 01 00 02 10 00 00 00 00 01 00 00 00 
read[12]:
00000000: 0c 00 00 00 03 00 01 20 00 00 00 00 
write[12]:
00000000: 0c 00 00 00 01 00 01 10 01 00 00 00 
read[493]:
00000000: ed 01 00 00 02 00 01 10 01 00 00 00 64 00 06 00 
00000010: 00 00 64 00 51 6d 00 69 00 63 00 72 00 6f 00 73 
00000020: 00 6f 00 66 00 74 00 2e 00 63 00 6f 00 6d 00 3a 
00000030: 00 20 00 31 00 2e 00 30 00 3b 00 20 00 6d 00 69 
00000040: 00 63 00 72 00 6f 00 73 00 6f 00 66 00 74 00 2e 
00000050: 00 63 00 6f 00 6d 00 2f 00 44 00 65 00 76 00 69 
00000060: 00 63 00 65 00 53 00 65 00 72 00 76 00 69 00 63 
00000070: 00 65 00 73 00 3a 00 31 00 2e 00 30 00 3b 00 20 
00000080: 00 6d 00 69 00 63 00 72 00 6f 00 73 00 6f 00 66 
00000090: 00 74 00 2f 00 57 00 69 00 6e 00 64 00 6f 00 77 
000000a0: 00 73 00 50 00 68 00 6f 00 6e 00 65 00 3a 00 31 
000000b0: 00 2e 00 30 00 00 00 00 00 2f 00 00 00 01 10 02 
000000c0: 10 03 10 04 10 05 10 06 10 07 10 08 10 09 10 0b 
000000d0: 10 0c 10 12 10 0d 10 14 10 15 10 16 10 1a 10 1b 
000000e0: 10 17 92 34 92 01 93 02 93 03 93 04 93 05 93 0a 
000000f0: 93 01 94 02 94 03 94 04 94 05 94 10 94 11 94 12 
00000100: 94 13 94 14 94 15 94 01 98 02 98 03 98 04 98 05 
00000110: 98 06 98 08 98 10 98 11 98 20 98 06 00 00 00 04 
00000120: 40 05 40 01 c3 03 c3 04 c3 01 c8 07 00 00 00 01 
00000130: 50 02 d3 03 d3 01 d4 02 d4 05 d4 07 d4 00 00 00 
00000140: 00 1a 00 00 00 00 30 01 30 04 30 09 30 0a 30 01 
00000150: 38 01 b9 03 b9 81 b9 03 ba 05 ba 0b ba 07 38 08 
00000160: 38 0b 38 0d 38 04 38 04 b8 82 b9 15 b2 16 b2 84 
00000170: b9 85 b9 83 ba 85 ba 86 ba 06 4e 00 4f 00 4b 00 
00000180: 49 00 41 00 00 00 04 39 00 30 00 39 00 00 00 0d 
00000190: 38 00 2e 00 31 00 30 00 2e 00 31 00 34 00 32 00 
000001a0: 32 00 36 00 2e 00 30 00 00 00 21 36 00 35 00 62 
000001b0: 00 36 00 65 00 61 00 33 00 65 00 33 00 38 00 30 
000001c0: 00 64 00 37 00 64 00 64 00 62 00 33 00 36 00 31 
000001d0: 00 39 00 65 00 32 00 63 00 62 00 39 00 36 00 34 
000001e0: 00 30 00 39 00 31 00 34 00 66 00 00 00 
read[12]:
00000000: 0c 00 00 00 03 00 01 20 01 00 00 00 
device info "NOKIA"   "909"
write[12]:
00000000: 0c 00 00 00 01 00 04 10 02 00 00 00 
read[20]:
00000000: 14 00 00 00 02 00 04 10 02 00 00 00 01 00 00 00 
00000010: 00 00 01 00 
read[12]:
00000000: 0c 00 00 00 03 00 01 20 02 00 00 00 
write[16]:
00000000: 10 00 00 00 01 00 05 10 03 00 00 00 00 00 01 00 
read[12]:
00000000: 0c 00 00 00 03 00 08 20 03 00 00 00 
write[16]:
00000000: 10 00 00 00 01 00 03 10 00 00 00 00 01 00 00 00 
read[12]:
00000000: 0c 00 00 00 03 00 01 20 00 00 00 00 
whoozle commented 9 years ago

Added detection by InvalidStorageID as well as no storages reported. Please pull & test

trufanov-nok commented 9 years ago

There are no new commits on github. Did you forget to push them?

2015-06-02 23:25 GMT+04:00 Vladimir notifications@github.com:

Added detection by InvalidStorageID as well as no storages reported. Please pull & test

— Reply to this email directly or view it on GitHub https://github.com/whoozle/android-file-transfer-linux/issues/12#issuecomment-108065855 .

With best regards, Alexander Trufanov

whoozle commented 9 years ago

ops, sorry ) commit cce7825d5db67d1338a15b65440f75bbd2e24863

trufanov-nok commented 9 years ago

it seems it works as expected!

2015-06-03 0:07 GMT+04:00 Vladimir notifications@github.com:

ops, sorry ) commit cce7825 https://github.com/whoozle/android-file-transfer-linux/commit/cce7825d5db67d1338a15b65440f75bbd2e24863

— Reply to this email directly or view it on GitHub https://github.com/whoozle/android-file-transfer-linux/issues/12#issuecomment-108081148 .

With best regards, Alexander Trufanov

whoozle commented 9 years ago

finally!

whoozle commented 9 years ago

thanks for your help!

trufanov-nok commented 9 years ago

Thanks to you! Now I have at least one working solution for my Lumia.

2015-06-03 0:53 GMT+04:00 Vladimir notifications@github.com:

thanks for your help!

— Reply to this email directly or view it on GitHub https://github.com/whoozle/android-file-transfer-linux/issues/12#issuecomment-108096079 .

With best regards, Alexander Trufanov