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

USB file transfer support for Mac OS X

asked 2013-12-18 15:31:33 +0300

bijjal gravatar image

updated 2017-12-20 18:42:09 +0300

DarkTuring gravatar image

As a Jolla user, how I can transfer media files and associated meta data between my Mac and Jolla phone?

edit retag flag offensive close delete

Comments

10

Would be nice get it working with iPhoto and iMovie without need to use Image Capture app on OS X. Getting access to other files would be nice too and preferably so that mounting a file system would be the solution. That would solve the iPhoto issue too.

Penguin ( 2013-12-24 22:30:26 +0300 )edit
4

Thanks for all fine answers! Actually a ready-made solution is needed for accessing Jolla's files from Mac and other computers without developer mode. [Says somebody who has developed enough and only wants to use his device]

jpek-m ( 2014-02-03 21:42:32 +0300 )edit
8

I have to say I'm rather shocked this does not work. I knew I was going to lack the bliss of iCloud syncing everything, but not even showing up as a USB drive (like the N9)? Basically it seems there is no user-friendly way of hooking up the Jolla with a Mac. Really unfortunate considering how popular Macs are these days.

Setok ( 2014-02-17 00:25:03 +0300 )edit
7

Would be nice if USB Mass storage would be supported in addition to MTP.

avdwoude ( 2014-02-20 02:09:38 +0300 )edit

Apparently the Jolla USB vendor/product IDs changed in the 1.0.4.20 update. When selecting "PC Connection" mode, the device comes up as 2931:0a05 now, but it used to be 2931:0a01. Only the latter was added to the development version of libmtp, so this might need yet another entry now.

raimue ( 2014-03-18 03:38:57 +0300 )edit

22 Answers

Sort by » oldest newest most voted
0

answered 2014-01-08 16:59:55 +0300

condo4 gravatar image

For Linux and MTP (Not Mac-OS and nor SSH).

There are many way to use MTP under Linux:

Command line: (source gentoo)

  • sys-fs/mtpfs : A FUSE filesystem providing access to MTP devices

KDE:

For KIO, the project is not embedded by default in KDE, some distribution (like ARCH linux) use it, some other (Debian) in testing release, Gentoo is masked...

In function of the distribution, you need to install it....

After that, I can access to new Android device (MTP for Android > 4.x), but not Jolla... I continue to test...

edit flag offensive delete publish link more

Comments

1

You need to recompile libmtp with the right music-players.h and Jolla IDs in it.

   /*
   * Jolla
   */
  { "Jolla", 0x2931, "Sailfish", 0x0a01,
      DEVICE_FLAGS_ANDROID_BUGS },
Sailor ( 2014-01-08 17:42:58 +0300 )edit

For me in slackware64-14.1(kio-mtp-fae62fc_20121225git) it works by default in kde but browsing the phone is very slow and often loses the connection. Browsing folders takes "forever" and isn't very stable. MTP is to slow so i will use scp instead.

abc123 ( 2014-01-26 06:59:47 +0300 )edit
1

answered 2014-01-06 22:44:56 +0300

Sailor gravatar image

updated 2014-01-06 22:54:23 +0300

Finally got MTPFS to work. Needed to recompile it against my patched libmtpfs and osxfuse instead of fuse4x which is macports version.

mbp:Jolla-Dev root# cd Phone\ Memory/
   mbp:Phone Memory root# ls -lah
total 2048
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 ..
-rwxrwxrwx  1 root  wheel   2.4K Dec 30 00:31 .bash_history
-rwxrwxrwx  1 root  wheel    18B Oct 31 16:58 .bash_logout
-rwxrwxrwx  1 root  wheel   176B Oct 31 16:58 .bash_profile
-rwxrwxrwx  1 root  wheel   124B Oct 31 16:58 .bashrc
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .config
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .gconf
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .gstreamer-0.10
-rwxrwxrwx  1 root  wheel     0B Dec 16 23:32 .jolla-startupwizard-done
-rwxrwxrwx  1 root  wheel     0B Dec 21 15:35 .jolla-startupwizard-usersession-done
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .local
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .mozilla
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .profiled
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .qmf
-rwxrwxrwx  1 root  wheel   295B Dec 31 20:05 .sh_history
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .ssh
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .timed
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 .vault
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 Desktop
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 Documents
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 Downloads
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 Music
drwxrwxrwx  2 root  wheel     0B Jan  1  1970 Pictures
<output omitted>

mtpfs@osxfuse0 on /Users/user/Jolla-Dev (osxfusefs, synchronous)
edit flag offensive delete publish link more

Comments

@Sailor Is your MTPFS available somewhere for others ? Or any similar solution ?

Harri Hakulinen ( 2015-01-15 12:36:46 +0300 )edit

@Harri Hakulinen as it does not work very reliable I did not publish it :-/.

Sailor ( 2015-01-15 12:49:07 +0300 )edit
1

answered 2014-01-04 15:14:21 +0300

Sailor gravatar image

updated 2014-01-04 15:14:45 +0300

Got MTP running @ OSX output follows:

bash-3.2$ mtp-detect
libmtp version: 1.1.6

Listing raw device(s)
Device 0 (VID=2931 and PID=0a01) is a Jolla Sailfish.
   Found 1 device(s):
   Jolla: Sailfish (2931:0a01) @ bus 29, dev 7
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(): Operation timed out
outep: usb_get_endpoint_status(): Operation timed out
Error 2: PTP Layer error 02fe: get_all_metadata_fast(): could not get proplist of all objects.
Error 2: Error 02fe: PTP: Protocol error, data expected
Error 7: Found a bad handle, trying to ignore it.
Error 7: Found a bad handle, trying to ignore it.
USB low-level info:
   bcdUSB: 512
   bDeviceClass: 0
   bDeviceSubClass: 0
   bDeviceProtocol: 0
   idVendor: 2931
   idProduct: 0a01
   IN endpoint maxpacket: 512 bytes
   OUT endpoint maxpacket: 512 bytes
   Raw device info:
      Bus location: 29
      Device number: 7
      Device entry info:
         Vendor: Jolla
         Vendor id: 0x2931
         Product: Sailfish
         Vendor id: 0x0a01
         Device flags: 0x00000000
Device info:
   Manufacturer: Jolla
   Model: armv7hl
   Device version: xxxxxxxxxx
   Serial number: xxxxxxxxxxxxxxxxx
   Vendor extension ID: 0x00000006
   Vendor extension description: microsoft.com:1.0; microsoft.com/WMPPD:11.0;
   Detected object size: 64 bits
   Extensions:
        microsoft.com: 1.0
        microsoft.com/WMPPD: 11.0
Supported operations:
   1001: get device info
   1002: Open session
   1003: Close session
   1004: Get storage IDs
   1005: Get storage info
edit flag offensive delete publish link more
4

answered 2014-01-04 01:36:21 +0300

Sailor gravatar image

I successfully installed libmtp on my mac via homebrew.

bash-3.2$ brew install libmtp
==> Downloading http://downloads.sourceforge.net/project/libmtp/libmtp/1.1.6/libmtp-1.1.6.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libmtp/1.1.6
==> make install
�  /usr/local/Cellar/libmtp/1.1.6: 26 files, 1.2M, built in 13 seconds

But the device is not detected:

bash-3.2$ mtp-detect 
libmtp version: 1.1.6

Listing raw device(s)
   No raw devices found.
bash-3.2$ mtp-connect 
libmtp version: 1.1.6

No devices.
bash-3.2$

This is what dmesg is reporting:

[DGMTP_Drv.cpp][probe()][00097][ERRO] Current vid (0x2931) and expected vid (0x04e8) is not matchedAppleUSBCDC: Version number - 4.2.1b2
USBF:    255158.710    AppleUSBEHCI::Found a transaction which hasn't moved in 5000 milliseconds on bus 0x1a, timing out! (Addr: 2, EP: 0)
       0        1 AppleUSBCDCACMData: start - Find CDC driver for ACM data interface failed
       0        1 AppleUSBCDCECMData: start - Find CDC driver for ECM data interface failed
       0        3 AppleUSBCDCACMData: start - Find CDC driver for ACM data interface failed
       0        3 AppleUSBCDCECMData: start - Find CDC driver for ECM data interface failed
[DGMTP_Drv.cpp][probe()][00097][ERRO] Current vid (0x2931) and expected vid (0x04e8) is not matchedAppleUSBCDC: Version number - 4.2.1b2
edit flag offensive delete publish link more

Comments

I got connection to pictures, music and videos on my Jolla with my MAC via Image Capture but it seems I cannot upload anything. http://s1.directupload.net/file/d/3492/k4bloxxu_png.htm

Sailor ( 2014-01-04 01:45:05 +0300 )edit

I got similar "No raw devices found." in Ubuntu. However, I am happy with sftp transfer over wifi. Actually it's very fast and convenient way to move photos/music/videos between laptop and Jolla.

LaruX ( 2014-01-04 02:12:12 +0300 )edit
2

Just patched the src/music-players.h with:

 /*
   * Jolla
   */
  { "Jolla", 0x2931, "Sailfish", 0x0a01,
      DEVICE_FLAGS_ANDROID_BUGS },

And now mtp-detect partly works:

mtp-detect 
libmtp version: 1.1.6

Listing raw device(s)
Device 0 (VID=2931 and PID=0a01) is a Jolla Sailfish.
   Found 1 device(s):
   Jolla: Sailfish (2931:0a01) @ bus 29, dev 7
Attempting to connect device(s)
ignoring libusb_claim_interface() = -3PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
inep: usb_get_endpoint_status(): Operation timed out
outep: usb_get_endpoint_status(): Operation timed out
usb_clear_halt() on IN endpoint: Operation timed out
usb_clear_halt() on OUT endpoint: Operation timed out
usb_clear_halt() on INTERRUPT endpoint: Operation timed out
ignoring libusb_claim_interface() = -3LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
OK.
Sailor ( 2014-01-04 02:39:25 +0300 )edit

I just found out that PTP is blocking the MTP access under OSX. Killing all PTP applications leads to a better behaviour of MTP. I am currently trying setting up mtpfs to use with Jolla.

Sailor ( 2014-01-04 15:07:05 +0300 )edit

Does ImageCapture work for anyone else? All I'm seeing is an empty 'Jolla' device.

Setok ( 2014-04-13 10:20:33 +0300 )edit
9

answered 2014-01-03 22:15:56 +0300

Winfried gravatar image

updated 2014-01-04 02:13:37 +0300

I finally managed to transfer files to/from Jolla on both Linux and Mac (using GUI)

On Mac (requires commercial app ExpanDrive, $39.95, see below for alternatives):

Via WLAN (note that you have to do steps 1 - 6 only once):

  1. Enable developer mode on Jolla, set a password for ssh and root access
  2. Note the WLAN IP address that your Jolla has (see settings -> developer mode)
  3. Download ExpanDrive from http://www.expandrive.com/expandrive (free 7 day trial, $39,95 afterwards)
  4. Unzip and start ExpanDrive
  5. In ExpanDrive click "new drive"
  6. Drive type: SFTP, enter Jolla WLAN IP address in 'server' field, set 'nemo' in username field and enter password. If you leave the 'Remote Path' field empty, you will connect to the nemo home dir (where music, photos etc are). If you enter '/' in the 'Remote Path' field, you will go to the root of the Jolla file system.
  7. Click 'connect' and your Jolla will show up in Finder
  8. If you open Aperture or iPhoto, you can import photos directly from your mounted Jolla

Via USB (note that you need to do all steps except the last only once) :

  1. Enable developer mode on Jolla, set a password for ssh and root access
  2. Note the WLAN IP address that your Jolla has (see settings -> developer mode, default is 192.168.2.15)
  3. Install Horndis on your Mac (free download from http://joshuawise.com/horndis#available_versions)
  4. Not sure if it is necessary, but re-boot just in case
  5. Connect your Mac and Jolla via USB cable
  6. When the 'USB connected" dialog pops up on Jolla choose 'Developer mode'
  7. On Mac go to System Preferences -> Network
  8. Select the 'Sailfish' network interface and give it a manual IP address in the same range as the Jolla USB IP address (for example 192.168.2.25)
  9. Now follow steps 3 - 7 from the above WLAN connection description, but in ExpanDrive connect to the Jolla USB IP address

Edit: Alternatives for Expandrive:

Some free (but less integrated) alternatives for ExpanDrive are:


On Linux (you must have kde libs and Dolphin or Konqueror installed):

  1. Enable developer mode on Jolla, set a password for ssh and root access
  2. Note the WLAN IP address (I have not tried via USB on Linux)
  3. Open Dolphin file browser on your Linux machine (or Konqueror)
  4. in the URL bar type: fish://nemo@jolla_wlan_ip_adress/
  5. enter the password that your set in step 1
  6. you can now browse and copy files to/from Jolla in Dolphin
edit flag offensive delete publish link more

Comments

It can also be done without the use of ExpanDrive, using the Terminal on mac and scp command.

I confirm the point 4, for the usb connection, the reboot (of the Jolla) is needed for the Jolla to ask "developer mode" connection.

Vivien ( 2014-01-03 22:26:14 +0300 )edit

Yes, for scp only you don't need ExpanDrive, but many users, including me, prefer to work via Finder or another GUI solution.

Winfried ( 2014-01-03 22:32:10 +0300 )edit
1

There is no free GUI for ssh on MacOS ?

Vivien ( 2014-01-03 22:33:11 +0300 )edit
1

I think it should be possible with Mac fuse, but I have limited time, so I'd rather pay the 40$ than experiment with MacFuse. Moreover, MacFuse development seems to have stopped, so I don't know if it still works with OS X Mavericks. I'll search a bit more to see if there is a free GUI app.

Winfried ( 2014-01-03 22:36:52 +0300 )edit

Just made a fast research and found that: https://www.macupdate.com/app/mac/8761/fugu

The configuration is easy:

Connect to: 192.168.2.15

Username: nemo

Password: the ssh password set on the Jolla

Click connection, and its done.

It seems a little bit old (last update 2011), but does the job.

Vivien ( 2014-01-03 23:30:22 +0300 )edit
1

answered 2014-01-03 18:56:00 +0300

Vivien gravatar image

It is possible to transfer files via usb on mac using ssh, and downloading Horndis driver on your mac (http://joshuawise.com/horndis).

See the discussion here: http://talk.maemo.org/showthread.php?p=1398405 http://talk.maemo.org/showthread.php?p=1398456

edit flag offensive delete publish link more

Comments

Jan, interesting. I just installed Horndis and I see the device named "Sailfish" in the network devices, but I am not able to ping the phone yet. Could you give me a hint on how you configured the device on mac side? Did you use the IP 192.168.2.15 as on the phone?

Tomek ( 2014-01-12 19:49:49 +0300 )edit

You must use an ip that start with 192.168.2, but not the same as the Jolla. E.g., I use 192.168.2.1 (you have to select manual ip in the mac network settings). The dev mode must be enabled in the Jolla, and when connecting the usb, you must select dev mode for the usb connection. Hope this help.

Vivien ( 2014-01-12 21:53:03 +0300 )edit

Sweet! It works now :) Thank you!

Tomek ( 2014-01-12 22:00:29 +0300 )edit

You're welcome ;)

Vivien ( 2014-01-12 22:07:16 +0300 )edit
0

answered 2013-12-28 12:27:18 +0300

cropas gravatar image

Since i have no problem conncting (N9, N900 and android phones) to my MBP i think it's a bug.

edit flag offensive delete publish link more

Comments

1

It is, an Apple bug

dsilveira ( 2014-05-19 02:48:50 +0300 )edit
7

answered 2013-12-28 12:24:55 +0300

Tomek gravatar image

updated 2013-12-28 12:30:32 +0300

I recently learned, that there should be support threw the libmtp (http://libmtp.sourceforge.net) project soon. In the GIT repository of the project, support for jolla phones was added (see http://sourceforge.net/p/libmtp/bugs/958/ and http://sourceforge.net/p/libmtp/code/ci/master/tree/src/music-players.h) recently. Unfortunately, there is no official release for it yet so that MacPots or so could use it.

edit flag offensive delete publish link more

Comments

Is there actually support added? Seems the bug isn't assigned and still open.

fawz ( 2014-01-03 19:36:40 +0300 )edit

tried mtp approach in Ubuntu, but without success.

LaruX ( 2014-01-04 00:33:33 +0300 )edit
1

The issue is fixed already (in source code). All the guys from libmtp need to to is to release a version 1.1.7 so that no manual steps are needed for brew and macports. I am going to kindly request so in the forum now.

Tomek ( 2014-01-04 10:21:57 +0300 )edit

I think MTP is a rather ridiculous solution if every new device requires a code change.

Setok ( 2014-04-13 10:18:44 +0300 )edit
5

answered 2013-12-26 18:34:06 +0300

cma gravatar image

So, I have the same issue regarding the file transfer. I read somewhere that you may want to use SyncMate. But since it's Shareware you have to pay for it to actually work decent (thats rubbish). So i searched some more and found a Freeware call XNJB which works with Mavericks ok and will let you move files between mac and jolla by usb. Let me know if that works. Still... I would really appreciate an integrated method. Why would anyone use MTP... it just doesn't occur to me.

edit flag offensive delete publish link more

Comments

I tried XNJB (last update 2011...) and no luck. It does not see the Jolla. Are you saying it actually saw your device and worked with it?

Setok ( 2014-04-13 10:17:45 +0300 )edit

I've used Syncmate very successfully with the Nokia e71 (I think) and a Mac but isn't working with the Jolla at this time. I've reported it to their support, along with the current VID/PID pair for Jolla.

edit: having given up on USB, SyncMate's WiFi module works reliably, but slow. You will need to find the syncmate module apk file on their website and install it first.

Sanjay Mehta ( 2014-10-09 08:40:57 +0300 )edit
12

answered 2013-12-25 13:40:47 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2013-12-28 15:19:42 +0300

teeri gravatar image

USB transfer impossible with a Mac... A pity :-(

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
44 followers

Stats

Asked: 2013-12-18 15:31:33 +0300

Seen: 21,553 times

Last updated: Dec 22 '17