We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

MTP Media Transfer Problems

asked 2016-01-26 11:07:54 +0200

Andreas Messer gravatar image

updated 2016-01-26 12:44:28 +0200

lakutalo gravatar image

I have problems transfering lots of files (~2000) using MTP from or to the jolla. The problem occurs with kio-mtp and banshee. I have figured out that there might be a probloem with the PTP Transaction ID. libmtp starts reporting the following after transferring ~1460 files. (It already started with 0/65536, but console buffer was too short :-)

PTP: Sequence number mismatch 77 vs expected 65613, suspecting old reply.
PTP: Sequence number mismatch 78 vs expected 65614, suspecting old reply.

Probably a 16bit/32 bit issue: 65613 == 0x1004d while 77 == 0x004d.

edit retag flag offensive close delete

Comments

Oh, that's the reason ....

I have often had this problem when copying files to the phone using Dolphin (in KDE) and MTP, suddenly the copy process just hangs without any errors. I then have to re-initiate the MTP connection and re-start the copy from the last file.

I have never seen this problem on windows.

Kim ( 2016-01-26 12:56:00 +0200 )edit

Confirm, jolla MTP server is very buggy.

hyper_sonic ( 2016-01-27 10:31:03 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2016-01-26 11:20:26 +0200

Try SFTP or SSHFS (check comments from linked question), they are more reliable (IMHO).

edit flag offensive delete publish link more
0

answered 2016-01-26 11:29:37 +0200

lakutalo gravatar image

updated 2016-01-26 12:42:15 +0200

MTP is a file transfer protocoll presented by Microsoft and known to be buggy, especially in connection with Linux computers. So if you have the possibility, try to avoid it and use (really good) alternatives, such as suggested in @jollailija's answer. Adding rsync as yet another option.

BTW, if you type MTP into the search form of this site and hit [Enter] you will get a lot of other questions regarding the problems in connection with Jolla.

edit flag offensive delete publish link more

Comments

The sequence number has nothing to do with MTP. It is part of the PTP Picture Transfer Protocol (Transaction ID). Of course the Jolla is expected to use exactly the same value in its PTP responses as used by the Host in its PTP request. Using SSH is not possible, My media player "banshee" does not support synchronizing data via SSH nor SSHFS.

Andreas Messer ( 2016-01-26 11:40:16 +0200 )edit

Sure, but PTP is part of MTP and as such included in respective mtp libs, which are maybe not installed in their latest versions on the phone. You may be right about the 16/32bit issue. What about rsync at console level?

lakutalo ( 2016-01-26 11:56:17 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2016-01-26 11:07:54 +0200

Seen: 420 times

Last updated: Jan 26 '16