Estoy tratando de obtener MTP con galaxy tab 2 7.0 trabajando en mi instalación de ubuntu. De modo que pueda acceder a los archivos.
Intenté hacer lo que se describe aquí:
http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access
Sin embargo, no puedo ejecutar uno de los siguientes comandos
mtp-detect | grep idVendor
mtp-detect | grep idProduct
Esto falla
[20:42|0] $ mtp-detect | grep idVender
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
[20:44|0] $ mtp-detect | grep idProduct
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
Ahora mi conjetura era que el idVender es el mismo que el VID (04e8) y el idProduct es el mismo que el PID (6860) Ahora continué trabajando con esos valores y completé el tutorial. Cuando terminé lo intenté
android-connect
Esto volvió
fuse: bad mount point `/media/GalaxyTab': Transport endpoint is not connected
¿Alguien tiene idea de qué hacer? También quiero señalar que cuando conecto mi GalaxyTab 2 7.0, todavía aparece una ventana emergente de ubuntu que indica que se conectó un dispositivo. También puedo ver la estructura del mapa, sin embargo, el problema es que todas las carpetas tienen 0 bytes y no tienen subcarpetas. Solo puedo ver las carpetas en la raíz.
PD. También verifiqué una pregunta similar e intenté lo que se describe en esta respuesta https://askubuntu.com/a/88630/27480
— 2012-09-18 — Editar —
Usando go-mtpfs, descrito en la primera respuesta, http://linuxundich.de/de/android/mit-go-mtpfs-unter-linux-auf-android- handys-via-mtp-zugreifen/, obtuve lo siguiente para mi Samsung Galaxy SII
[23:21|0] $ go-mtpfs android
2012/09/18 23:21:58 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6865) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
2012/09/18 23:21:58 device unknown: unknown (04e8:6865) @ bus 1, dev 7
:
ignoring usb_claim_interface = -6ignoring usb_claim_interface = -5PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
2012/09/18 23:22:18 rdev.open: open: open returned nil
Para el Samsung Galaxy Tab 2 7.0 tampoco funcionó…
[23:31|0] $ go-mtpfs android
2012/09/18 23:31:03 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
2012/09/18 23:31:03 device Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 1, dev 11
:
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
2012/09/18 23:33:04 rdev.open: open: open returned nil
jmtpfs tampoco funcionó 🙁
[23:42|0] $ jmtpfs ~/android/
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
what(): Can't open device
Aborted (core dumped)
Respuesta aceptada:
Actualización: Ya está disponible un backend GVFS MTP. El autor también proporciona un PPA.
Relacionado:¿cuál es la diferencia entre los métodos taskel y normal?Ya he escrito sobre go-mptfs allí.
El autor escribió recientemente otro artículo con otro jmptfs alternativo. Está escribiendo en alemán, pero creo que los comandos que usa deberían explicarse por sí mismos, o la traducción automática sería suficiente.
Por supuesto, puede echar un vistazo a los sitios originales del proyecto:
- https://github.com/hanwen/go-mtpfs
- http://research.jacquette.com/jmtpfs-intercambio-de-archivos-entre-dispositivos-android-y-linux/
Puede ser uno de esos trabajos para usted.