Menu

#902 Huawei Ascend P2 - Failed to get storage parameters from the device

Last release
open
None
1
2014-08-25
2013-10-17
No

When running gmtp (libmtp 1.1.16 underneath) With a Huawei Ascend P2 plugged in and set to MTP mode, I get the following
terminal output:

$ gmtp
Device 0 (VID=12d1 and PID=1051) is a Huawei Honor U8860.
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: Error 02fe: PTP: Protocol error, data expected

Note the wrong device name, although the company name is correct.

After a minute or two a pop-up window appears containing 'Failed to get storage parameters from the device - need to disconnect.'

I have attached the output from mtp-detect.

1 Attachments

Discussion

  • Martin Stjernholm

    I get the same error with a Samsung Galaxy Nexus. It's correctly recognized though, and the error happens later during actual file transfer. This repeats indefinitely:

    Error 2: PTP Layer error 02fe: obj2file: call to ptp_mtp_getobjectpropssupported() failed.
    Error 2: Error 02fe: PTP: Protocol error, data expected
    

    Also, on startup the program (mtp-detect or gmtp doesn't matter) hangs for a long time, i.e. several minutes. That might be a separate bug though.

    This is also libmtp 1.1.16.

     
  • D.Kartaschew

    D.Kartaschew - 2013-11-06

    Have you enabled "Utilize Alternate Access Mode" in the preferences in gMTP?

    (This should help with Android devices and slow access, but may not correct the ptp_mtp_getobjectpropssupported() failed issue).

    And ensure that when you click on Connect in gMTP, that your device is unlocked. (Locking the device also locks the storage containers that are accessible via MTP).

    --
    Darran
    gMTP Lead Developer

     

    Last edit: D.Kartaschew 2013-11-06
  • Martin Stjernholm

    Thanks, I tried to enable "Utilize Alternate Access Mode". Unfortunately it didn't help with the slowness, rather the opposite - I couldn't even browse the file structure, which works otherwise. After the long pause, I got lots of this:

    Error 2: PTP Layer error 02fe: obj2file: call to ptp_mtp_getobjectpropssupported() failed.
    Error 2: Error 02fe: PTP: Protocol error, data expected
    

    and this:

    Error 2: PTP Layer error 02fe: get_track_metadata(): call to ptp_mtp_getobjectpropssupported() failed.
    Error 2: Error 02fe: PTP: Protocol error, data expected
    

    and at the end one instance of:

    Error 2: PTP Layer error 02fe: LIBMTP_Get_Files_And_Folders(): could not get object handles.
    Error 2: Error 02fe: PTP: Protocol error, data expected
    

    To avoid doubt, I prodded the phone regularly to ensure that it didn't go into lock during the multi-minute wait.

     
  • Linus Walleij

    Linus Walleij - 2013-11-15

    Which libmtp versions are we talking about here? Has anyone tested with the GIT version?

     

Anonymous
Anonymous

Add attachments
Cancel