Menu

#354 Samsung Galaxy S GT-I9000

closed
5
2019-04-28
2010-07-07
No

VendorId: 04e8
ProductId: 6877

Discussion

1 2 > >> (Page 1 of 2)
  • Mike Ashelby

    Mike Ashelby - 2010-07-17

    +1 for this feature. For some reason it doesn't connect properly (appears in RhythmBox as unknown device with 0bytes storage - mtp-detect doesn't given any joy either).

     
  • Mike Ashelby

    Mike Ashelby - 2010-07-17

    Also, just to mention that my numbers are a bit different. lsusb gives

    Bus 001 Device 003: ID 04e8:68a9 Samsung Electronics Co., Ltd

    mtp-detect gives

    libmtp version: 1.0.2

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Found 1 device(s):
    04e8:68a9 @ bus 1, dev 3
    Attempting to connect device(s)
    ignoring usb_claim_interface = -16ignoring usb_claim_interface = -22PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Device or resource busy
    outep: usb_get_endpoint_status(): Device or resource busy
    usb_clear_halt() on IN endpoint: Device or resource busy
    usb_clear_halt() on OUT endpoint: Device or resource busy
    usb_clear_halt() on INTERRUPT endpoint: Device or resource busy
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.

    Hope that's helpful. I'd really love to see this work!

     
  • Tyler

    Tyler - 2010-07-19

    libmtp version: 1.0.2

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Found 1 device(s):
    04e8:68a9 @ bus 1, dev 4
    Attempting to connect device(s)
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Broken pipe
    outep: usb_get_endpoint_status(): Broken pipe
    libmtpLIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.

     
  • Tyler

    Tyler - 2010-07-19

    I'll try to get around to hacking on it tomorrow it should be pretty standard as an android phone (heres hoping!)

     
  • Erik Berglund

    Erik Berglund - 2010-07-19

    Output from lsusb:
    Bus 002 Device 072: ID 04e8:6877 Samsung Electronics Co., Ltd

    Output from mtp-detect:
    libmtp version: 1.0.2

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=6877) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Found 1 device(s):
    04e8:6877 @ bus 2, dev 72
    Attempting to connect device(s)
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Broken pipe
    outep: usb_get_endpoint_status(): Broken pipe
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.

    I hope this helps, let me know if you need someone to run any tests or provide more info.

     
  • John Gorkos

    John Gorkos - 2010-07-23

    I have a slightly different PID value. Since USB hacking is a mystery, I'm not sure if this matters one bit or not, so I'll post my mtp-detect output:

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Found 1 device(s):
    04e8:68a9 @ bus 1, dev 12
    Attempting to connect device(s)
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Broken pipe
    outep: usb_get_endpoint_status(): Broken pipe
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.

    My device is the Galaxy S as rebranded by T-Mobile (called the Vibrant, model number SGH-T959.

     
  • Ákos Maróy

    Ákos Maróy - 2010-08-18

    +1 here too - I have the same device, would be nice to see it work...

     
  • Ákos Maróy

    Ákos Maróy - 2010-08-18

    I get the following libmtp output, via rhythmbox:

    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    ignoring usb_claim_interface = -110PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Connection timed out
    outep: usb_get_endpoint_status(): Connection timed out
    usb_clear_halt() on IN endpoint: Connection timed out
    usb_clear_halt() on OUT endpoint: Connection timed out
    usb_clear_halt() on INTERRUPT endpoint: Connection timed out
    ignoring usb_claim_interface = -9ignoring usb_claim_interface = -22LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Connection timed out
    outep: usb_get_endpoint_status(): Connection timed out
    usb_clear_halt() on IN endpoint: Connection timed out
    usb_clear_halt() on OUT endpoint: Connection timed out
    usb_clear_halt() on INTERRUPT endpoint: Connection timed out
    ignoring usb_claim_interface = -9ignoring usb_claim_interface = -22LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Connection timed out
    outep: usb_get_endpoint_status(): Connection timed out
    usb_clear_halt() on IN endpoint: Connection timed out
    usb_clear_halt() on OUT endpoint: Connection timed out
    usb_clear_halt() on INTERRUPT endpoint: Connection timed out
    ignoring usb_claim_interface = -9ignoring usb_claim_interface = -22LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Device 0 (VID=04e8 and PID=68a9) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Connection timed out
    outep: usb_get_endpoint_status(): Connection timed out
    usb_clear_halt() on IN endpoint: Connection timed out

    lsusb says:

    Bus 002 Device 002: ID 04e8:68a9 Samsung Electronics Co., Ltd
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 1
    bMaxPacketSize0 64
    idVendor 0x04e8 Samsung Electronics Co., Ltd
    idProduct 0x68a9
    bcdDevice 4.00
    iManufacturer 1
    iProduct 2
    iSerial 3
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 39
    bNumInterfaces 1
    bConfigurationValue 5
    iConfiguration 0
    bmAttributes 0xc0
    Self Powered
    MaxPower 96mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 3
    bInterfaceClass 6 Imaging
    bInterfaceSubClass 1 Still Image Capture
    bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
    iInterface 8
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x8c EP 12 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x0a EP 10 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 1
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x86 EP 6 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 14
    can't get device qualifier: Connection timed out
    can't get debug descriptor: Connection timed out
    cannot read device status, Connection timed out (110)

     
  • Terrigan

    Terrigan - 2010-08-18

    Has this ever gotten fixed? I have a Samsung Captivate, same issue.

    USB Mode: Media Player mtp-device output:
    libmtp version: 1.0.3

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Captivate.
    Found 1 device(s):
    Samsung: Captivate (04e8:68a9) @ bus 2, dev 8
    Attempting to connect device(s)
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Broken pipe
    outep: usb_get_endpoint_status(): Broken pipe
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.

    Usb Mode Samsung Kies mtp-device output:

    libmtp version: 1.0.3

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=6877) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Found 1 device(s):
    04e8:6877 @ bus 2, dev 9
    Attempting to connect device(s)
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Broken pipe
    outep: usb_get_endpoint_status(): Broken pipe
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.

    I grabbed the cvs of libmtp and attempted to add it to media_players.h but I'm thinking it's a little more involved then proper device detection.

     
  • Linus Walleij

    Linus Walleij - 2010-08-20

    Added with both IDs. The error messages indicate that it
    probably needs DEVICE_FLAG_NO_ZERO_READS, please
    help debugging and testing this on the CVS version.

     
  • Linus Walleij

    Linus Walleij - 2010-08-20

    This device has been added to the libmtp database in CVS.
    You can verify it by browsing the database here:
    http://libmtp.cvs.sourceforge.net/viewvc/libmtp/libmtp/src/music-players.h?view=markup

    If you want to test your device with the new support added in
    CVS, refer to making a CVS check-out:
    https://sourceforge.net/cvs/?group_id=158745

    You can further help us with libmtp by identifying if this device
    needs some futher special device flags. If a device has "siblings"
    in the database (similar devices from same manufacturer) we
    often add default bug flags like its closest siblings, and sometimes
    this is right, sometimes bugs have been fixed so it's wrong.

    If you have special problems, refer to the README file:
    http://libmtp.cvs.sourceforge.net/viewvc/checkout/libmtp/libmtp/README

    If you have problems installing and linking the library refer to the INSTALL file:
    http://libmtp.cvs.sourceforge.net/viewvc/checkout/libmtp/libmtp/INSTALL

     
  • Erik Berglund

    Erik Berglund - 2010-08-21

    I checked out and installed the latest version. My Samsung is now detected and correctly identified, but there are problems with connecting. This is the output of running examples/detect:

    libmtp version: 1.0.3

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Found 1 device(s):
    Samsung: Galaxy S GT-I9000 (04e8:6877) @ bus 2, dev 7
    Attempting to connect device(s)
    ignoring usb_claim_interface = -110PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Connection timed out
    outep: usb_get_endpoint_status(): Connection timed out
    usb_clear_halt() on IN endpoint: Connection timed out
    usb_clear_halt() on OUT endpoint: Connection timed out
    usb_clear_halt() on INTERRUPT endpoint: Connection timed out
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.
    Unable to open raw device 0
    OK.


    I think the reason my device has a different ProductId from what others are reporting is that I have the European version. It's the same as the USA version with 8 GiB, except it does not have a built-in gyroscope, just an accelerometer.

    If I can help by running more tests, please let me know.

     
  • Nobody/Anonymous

    Grabbed CVS version and hooked up my Captivate.

    Media player mode:

    terrigan@Ichigo:~$ rhythmbox
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959.
    ignoring usb_claim_interface = -110PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Connection timed out
    outep: usb_get_endpoint_status(): Connection timed out
    usb_clear_halt() on IN endpoint: Connection timed out
    usb_clear_halt() on OUT endpoint: Connection timed out
    usb_clear_halt() on INTERRUPT endpoint: Connection timed out
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.

    Samsung Kies mode:

    terrigan@Ichigo:~$ rhythmbox
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    Device 0 (VID=04e8 and PID=6877) is a Samsung Galaxy S GT-I9000.
    PTP_ERROR_IO: Trying again after re-initializing USB interface
    inep: usb_get_endpoint_status(): Broken pipe
    outep: usb_get_endpoint_status(): Broken pipe
    LIBMTP PANIC: Could not open session! (Return code 767)
    Try to reset the device.

     
  • Linus Walleij

    Linus Walleij - 2010-08-29

    No clue on how to proceed on this, I've just been guessing...
    Need developes who can test the device and probe it, myself
    I don't have it :-/

     
  • Philipp Kern

    Philipp Kern - 2010-09-07

    In dmesg I find this:
    [48159.680156] usb 1-2: usbfs: USBDEVFS_CONTROL failed cmd lt-detect rqt 130 rq 0 len 2 ret -110

    Is there anyhow we can assist with probing the device?

     
  • Nobody/Anonymous

    Resolution is marked 'fixed' but it doesn't work for me!

    I've tested with the latest CVS checkout as repackaged and compiled on Debian/Sid against my Galaxy handset.

    The results are interesting if disappointing.

    The full test typescript is available here: https://docs.google.com/leaf?id=0B-r0kOumKPg2NDlkZmI3MzctMzkyMS00MWQ5LThkZjgtNjI4NDg5YjY3NjI1&sort=name&layout=list&num=50

    A summary follows, with the hope this can clue the core developers.

    I've tried 2 setting in music-players.h:

    { "Samsung", 0x04e8, "GalaxyS MTP x3", 0x68a9,

    // DEVICE_FLAG_UNLOAD_DRIVER |

    // DEVICE_FLAG_PLAYLIST_SPL_V1 |

    // DEVICE_FLAG_NO_ZERO_READS

          DEVICE_FLAG_NONE
    
          },
    

    { "Samsung", 0x04e8, "GalaxyS MTP x4", 0x68a9,

          DEVICE_FLAG_UNLOAD_DRIVER |
    
          DEVICE_FLAG_PLAYLIST_SPL_V1 |
    
          DEVICE_FLAG_NO_ZERO_READS
    

    // DEVICE_FLAG_NONE

          },
    

    In one instance 'mtp-detect -d' successfully completes. Other times, not so much.

    A good session begins like:

    t61p:/home/candlish/src/libmtp# mtp-detect -d

    LIBMTP_Set_Debug: Setting debugging level to 9 (on)

    libmtp version: 1.0.3

    Listing raw device(s)

    LIBMTP LIBMTP_Detect_Raw_Devices[581]: Device 0 (VID=04e8 and PID=68a9) is a Samsung GalaxyS MTP x3.

    Found 1 device(s):

    Samsung: GalaxyS MTP x3 (04e8:68a9) @ bus 1, dev 19

    Attempting to connect device(s)

    PTP: Opening session 0000: 1000 0000 0100 0210 0000 0000 0100 0000 ................

    0000: 0c00 0000 0300 0120 0000 0000             ....... ....
    
    0000: 0c00 0000 0100 0110 0100 0000             ............
    
    0000: 0502 0000 0200 0110 0100 0000 6400 0600   ............d...
    
    0010: 0000 6400 686d 0069 0063 0072 006f 0073   ..d.hm.i.c.r.o.s
    
    0020: 006f 0066 0074 002e 0063 006f 006d 003a   .o.f.t...c.o.m.:
    
    0030: 0020 0031 002e 0030 003b 0020 006d 0069   . .1...0.;. .m.i
    
    0040: 0063 0072 006f 0073 006f 0066 0074 002e   .c.r.o.s.o.f.t..
    
    0050: 0063 006f 006d 002f 0057 004d 0050 0050   .c.o.m./.W.M.P.P
    
    0060: 0044 003a 0020 0031 0031 002e 0030 003b   .D.:. .1.1...0.;
    
    0070: 0020 006d 0069 0063 0072 006f 0073 006f   . .m.i.c.r.o.s.o
    
    0080: 0066 0074 002e 0063 006f 006d 002f 0057   .f.t...c.o.m./.W
    
    0090: 004d 0050 0050 0044 003a 0020 0031 0030   .M.P.P.D.:. .1.0
    
    00a0: 002e 0030 003b 0020 006d 0069 0063 0072   ...0.;. .m.i.c.r
    
    00b0: 006f 0073 006f 0066 0074 002e 0063 006f   .o.s.o.f.t...c.o
    
    00c0: 006d 002f 0057 004d 0044 0052 004d 0050   .m./.W.M.D.R.M.P
    
    00d0: 0044 003a 0020 0031 0030 002e 0031 003b   .D.:. .1.0...1.;
    
    00e0: 0020 0000 0000 002d 0000 0001 1002 1003   . .....-........
    
    00f0: 1004 1005 1006 1007 1008 1009 100b 100c   ................
    
    0100: 100d 100f 1014 1015 1016 101b 1010 9811   ................
    
    0110: 9802 9801 9803 9804 9805 9806 9801 9202   ................
    
    0120: 9211 1012 1017 1019 101a 1008 9800 9101   ................
    
    0130: 9102 9103 9104 9105 9106 9107 9108 9109   ................
    
    0140: 910a 910b 9102 0000 0004 4005 4007 0000   ..........@.@...
    
    0150: 0001 5001 d402 d404 d407 d401 d102 d101   ..P.............
    
    0160: 0000 0000 0010 0000 0084 b909 3001 b981   ............0...
    
    0170: b901 3801 3005 ba00 3007 380a 300b 300c   ..8.0...0.8.0.0.
    
    0180: 3082 b910 ba11 ba03 ba1e 5300 4100 4d00   0.........S.A.M.
    
    0190: 5300 5500 4e00 4700 2000 4500 6c00 6500   S.U.N.G. .E.l.e.
    
    01a0: 6300 7400 7200 6f00 6e00 6900 6300 7300   c.t.r.o.n.i.c.s.
    
    01b0: 2000 4300 6f00 2e00 2000 4c00 7400 6400    .C.o... .L.t.d.
    
    01c0: 2e00 2000 0000 0947 0054 002d 0049 0039   .. ....G.T.-.I.9
    
    01d0: 0030 0030 0030 0000 0005 5600 3100 2e00   .0.0.0....V.1...
    
    01e0: 3000 0000 1033 0035 0031 0037 0035 0031   0....3.5.1.7.5.1
    
    01f0: 0030 0034 0039 0037 0030 0038 0038 0036   .0.4.9.7.0.8.8.6
    
    0000: 0033 0000 00                              .3...
    
    0000: 0c00 0000 0300 0120 0100 0000             ....... ....
    
    0000: 1400 0000 0100 0298 0200 0000 04dc 0000   ................
    
    0010: 84b9 0000                                 ....
    
    0000: 1e00 0000 0200 0298 0200 0000 04dc 0800   ................
    
    0010: 0000 0000 0000 0000 0004 0000 0000        ..............
    

    a bad session begins like this:

    t61p:/home/candlish/src/libmtp# mtp-detect -d

    LIBMTP_Set_Debug: Setting debugging level to 9 (on)

    libmtp version: 1.0.3

    Listing raw device(s)

    LIBMTP LIBMTP_Detect_Raw_Devices[581]: Device 0 (VID=04e8 and PID=68a9) is a Samsung GalaxyS MTP x3.

    Found 1 device(s):

    Samsung: GalaxyS MTP x3 (04e8:68a9) @ bus 1, dev 17

    Attempting to connect device(s)

    ignoring usb_claim_interface = -110PTP: Opening session 0000: 1000 0000 0100 0210 0000 0000 0100 0000 ................

    0010: 4800 0000 0000 0000 4800 0000 0000 0000   H.......H.......
    
    0020: 0300 0000 0000 0000 4107 0000 0000 0000   ........A.......
    
    0030: 0100 0000 0000 0000 1800 042e 0000 0004   ................
    
    0040: 4007 0000 0000 0000 0200 0000 0000 0000   @...............
    
    0050: 1800 042e 2e00 0004 4207 0000 0000 0000   ........B.......
    
    0060: 0300 0000 0000 0000 1800 0230 3031 0002   ...........001..
    
    0070: 4d07 0000 0000 0000 0400 0000 0000 0000   M...............
    
    0080: 1800 0230 3031 0002 1f08 0000 0000 0000   ...001..........
    
    0090: 0500 0000 0000 0000 1800 0230 3031 0002   ...........001..
    
    00a0: 7d07 0000 0000 0000 0600 0000 0000 0000   }...............
    
    00b0: 1800 0430 3036 0004 7207 0000 0000 0000   ...006..r.......
    
    00c0: 0700 0000 0000 0000 1800 0430 3035 0004   ...........005..
    
    00d0: 4c07 0000 0000 0000 0800 0000 0000 0000   L...............
    
    00e0: 1800 0430 3031 0004 4107 0000 0000 0000   ...001..A.......
    
    00f0: 0900 0000 0000 0000 1800 0430 3032 0004   ...........002..
    
    0100: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0110: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0120: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0130: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0140: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0150: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0160: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0170: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0180: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0190: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    01a0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    01b0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    01c0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    01d0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    01e0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    01f0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0200: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0210: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0220: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0230: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0240: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0250: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0260: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0270: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0280: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    0290: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    02a0: 0000 0000 0000 0000 0000 0000 0000 0000   ................
    
    02b0: 0000 0000
    

    Thanx

     
  • Timothy Arceri

    Timothy Arceri - 2011-08-26

    It seems if I plug my device into usb then quickly run mtp-detect it will detect my device.

    However if I wait even a few seconds then it will fail this would point to some sort of locking issue I would have thought. What other applications might be interfering with libmtp???

     
  • Timothy Arceri

    Timothy Arceri - 2011-08-26

    Running usb-devices gives me:

    T: Bus=01 Lev=01 Prnt=01 Port=06 Cnt=01 Dev#= 34 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=04e8 ProdID=6877 Rev=04.00
    S: Manufacturer=SAMSUNG
    S: Product=SAMSUNG_Android
    S: SerialNumber=1000b4332e7e
    C: #Ifs= 3 Cfg#= 4 Atr=c0 MxPwr=96mA
    I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
    I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
    I: If#= 2 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)

     
  • Timothy Arceri

    Timothy Arceri - 2011-08-26

    Hmmm, ok if I turn on USB development in my phones settings and then enable USB mass storage drumroll.........it works!! Banshee etc connect and detect the phone.

    And a storage device is added to the usb devices:

    T: Bus=01 Lev=01 Prnt=01 Port=06 Cnt=01 Dev#= 44 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=04e8 ProdID=681c Rev=04.00
    S: Manufacturer=SAMSUNG
    S: Product=SAMSUNG_Android
    S: SerialNumber=XXXXXXXXXXX
    C: #Ifs= 4 Cfg#= 3 Atr=c0 MxPwr=96mA
    I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
    I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
    I: If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    I: If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)

    I guess now someone smarter than me has to work out how to get access to the usb-storage without having to enable usb debugging.

     
  • Timothy Arceri

    Timothy Arceri - 2011-08-26

    Please ignore my last comment wtp does not work when you do that. The storage device just become accessible.

     
  • Linus Walleij

    Linus Walleij - 2012-01-19

    Looking at the raw contents of that dump I can see it's not an Android
    MTP implementation but rather some heavily DRM:ed Microsoft
    version, supporting all of their special extensions.

    This might require some authentication etc to work properly, and
    maybe DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR

     
  • Linus Walleij

    Linus Walleij - 2012-06-28

    Please test this with libmtp 1.1.3.

     
  • Nobody/Anonymous

    I have 1.1.3 on Ubuntu 12.04 and the Galaxy S3 still doesn't work.

     
  • Nobody/Anonymous

    Hello,
    I do have Samsung Galaxy S III, GT-I9300
    I have downloaded latest libmtp 1.1.3 from GIT and compiled.

    When I am lucky, I do have correct MTP connection to my phone. By "lucky" - I mean that from 10 trials, only 1 is successful.

    Here is output:
    virnik@cyborg:~/Work/libmtp$ mtp-detect
    libmtp version: 1.1.3

    Listing raw device(s)
    Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y.
    Found 1 device(s):
    Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 20
    Attempting to connect device(s)
    PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
    LIBMTP libusb: Attempt to reset device
    inep: usb_get_endpoint_status(): Protocol error
    outep: usb_get_endpoint_status(): Protocol error
    usb_clear_halt() on IN endpoint: Protocol error
    usb_clear_halt() on OUT endpoint: Protocol error
    usb_clear_halt() on INTERRUPT endpoint: Protocol error
    ignoring usb_claim_interface = -71LIBMTP PANIC: failed to open session on second attempt
    Unable to open raw device 0
    OK.

    Running Kubuntu 12.04, x64
    Virnik

     
  • Linus Walleij

    Linus Walleij - 2012-08-18

    Does the luck coincide with the screen being unlocked?

    Pls check the following advice from README:

    • mtp-* tools doesn't work because someone else is already hogging
      the device

    This is a common problem, the most common case could be that
    gphoto2 (which can also talk PTP/MTP) is taking over the device
    as soon as it's plugged in. Some distributions are configured that
    way. Counter it like this:

    gvfs-mount -s gphoto2

    Then re-attach the device.

    Sometimes the "gvfs-gphoto2-volume-monitor" is running on the
    system and hogging the device, try something like:

    pkill gfvs-gphoto2-volume-monitor && mtp-detect

    to figure out if this may be the case.

     
1 2 > >> (Page 1 of 2)

Anonymous
Anonymous

Add attachments
Cancel