LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't connect to Samsung Gear 360 as MTP device (https://www.linuxquestions.org/questions/linux-software-2/cant-connect-to-samsung-gear-360-as-mtp-device-4175595940/)

eco_bach 12-22-2016 10:50 AM

Can't connect to Samsung Gear 360 as MTP device
 
Hi
I'm simply trying to access the videos on my Samsung gear 360 from a Linux(Ubuntu) desktop.
I'm using the following mtp packages and have confirmed the Camera is recognized as an MTP device.

Code:

    sudo apt-get install libmtp-dev mtp-tools mtpfs
However when I try and connect via the following command

Code:

    mtp-files > file_list.txt
I successfully create the text file but it only contains
Quote:

libmtp version: 1.1.10

mtp-files: Successfully connected
and get the following command line errors

Quote:

Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
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
Anyone have any luck connecting to a Samsung gear 360 from the command line?

fatmac 12-22-2016 02:21 PM

These may help. :)

http://gphoto.sourceforge.net/doc/ma...camera-support
http://gphoto.sourceforge.net/doc/ma...g-gphoto2.html

teckk 12-23-2016 02:05 PM

In my opinion simple-mtpfs is the quickest, most reliable, and easiest way to mount a mtp device right now.
https://github.com/phatina/simple-mtpfs/

Then make a little script for it, mount it and browse it like any other fs.
Code:

#! /usr/bin/env bash

#Script for simple-mtpfs

[ -d $HOME/camera ] || mkdir $HOME/camera

PS3="
Select an option.:  "
                                       
while :; do
  clear
  options="Quit List_Device Mount Umount"
    select opt in $options; do
      case $opt in
        Quit) clear; exit
        ;;

        List_Device) simple-mtpfs --list-devices
        ;;
           
        Mount) simple-mtpfs ~/camera; echo "Mounted to ~/camera"
        ;;

        Umount) fusermount -u ~/camera; echo "Unmounted"
        ;;
      esac
    done
done


eco_bach 12-27-2016 10:27 AM

teckk
Thanks. I successfully downloaded and compiled simple-mtpfs but the problem remains, how to you copy files from an MTP device with this package?
I tried simple-mtpfs -h but can see no options for copying

Previously I was able to create a textfile of the files on the MTP device like so
Quote:

mtp-files > file_list.txt

teckk 12-27-2016 12:40 PM

If you mount the device with simple-mtpfs, then copy to or from that directory with cp, or using a file manager, whatever you normally use to copy a file from one directory to another.
Example, with the device plugged in:
Code:

mkdir ~/camera
simple-mtpfs ~/camera
ls ~/camera
pic1.jpg
pic2.jpg
.....

Then when you are done unmount it.
Code:

fusermount -u ~/camera
Look at:
man simple-mtpfs
man fusermont


Edit: or maybe you don't know how to copy a file from one directory to another.
To device example:
Code:

cp myfile.jpg ~/camera/pictures/
From device:
Code:

cp ~/camera/pictures/file.jpg myfilename.jpg
Look at:
man cp
Or just use a file manager to drag and drop.


All times are GMT -5. The time now is 12:36 AM.