Maproom / qmapshack

Consumer grade GIS software
GNU General Public License v3.0
295 stars 63 forks source link

Support for MTP devices #558

Open mpfusion opened 2 years ago

mpfusion commented 2 years ago

Is your feature request related to a problem? Please describe.

QMS currently does not support MTP devices. This is feature request to implement support for MTP devices.

Describe the solution you'd like

MTP support the same way USB Mass Storage is supported.

Describe alternatives you've considered

An alternative is exporting GPX files and manually copying them onto the GPS device and vice versa. This is very cumbersome and not remotely as elegant than connecting the device and have the routes and waypoints show up.

Give a reason why someone else should spend time on that request

There's a shift towards MTP with newer devices and some devices are MTP only. It would therefore be nice if QMS could support MTP devices.

Additional context

An example of such a device is the Garmin zūmo XT.

kiozen commented 2 years ago

For anyone interested in that:

You might start with reading the README.md of https://github.com/libmtp/libmtp. However it is not really encouraging.

MTP has a lot of shortcomings. If there are other MTP Initiators installed in the system the access will fail. I expect this to be an endless source of user complains.

Imho, the best effort will be to mount MTP devices into the filesystem and to access the files just like any other GIS file in QMapShack. Not as nice as the device support in QMapShack but feasible.

anesthesia79 commented 2 years ago

Don´t know if this helps, but: If I choose on my Garmin GPSMap 64s "MTP", my advice appears in QMS, just like with "Garmin - seriell".

OS: Linux Mint 21

37

ventoux84 commented 1 year ago

*1 Please add MTP support, the same way USB Mass Storage is supported.

ventoux84 commented 1 year ago

For anyone interested in that: .... Imho, the best effort will be to mount MTP devices into the filesystem and to access the files just like any other GIS file in QMapShack. Not as nice as the device support in QMapShack but feasible.

I don't understand how to do. I mounted my Android device with Dolphin and it appears, i can list the files. But when i "save as" in Qmapshack, i don't see the device. While, kate or firefox allow to save in an Android directory.

cytrinox commented 1 year ago

The new Garmin GPSMAP 67 Series dropped support for Mass Storage, only MTP available: https://www.gpsrchive.com/Discussion/viewtopic.php?t=2327 Loosing the storage mode is bad for users, but from a manufacturer point of view, I can understand their decision as MTP allows more control over device file access and it's the de-facto standard for mobile phones.

I assume all new Garmin devices will only get MTP from now on.

dionorgua commented 1 year ago

I don't know about modern GPS units (I have pretty old Dakota 20 that still works), but Garmin smart watches are very similar to standalone GPS units, share same map format, have same directory layout and same vendor app. (but uses smaller maps and custom style due to limited resources and screen colors).

It looks like Garmin also dropped Mass Storage support from recent watches. All we've is old 'serial' like protocol and MTP.