MTP transport missing for windows runtimes.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- c
- Lĩnh vực
- operating-systems
Hướng nghiên cứu
Start with the dctool Windows device-detection and dump path, then trace how existing USB and MTP transports are selected. Review the related issues and determine how a Windows Portable Devices transport could fit the library. Done means dctool can dump FIT files from Garmin Mk2i+ and similar MTP devices on Windows without requiring a local file copy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I recently started using Subsurface and found that my Garmin mk3i does not automatically import dives. I believe this is because this library does not include an MTP driver for Windows. I did a bit of digging and found that there really isn't a compelling way to get libmtp to work on a Windows installation.
It is unclear to me why Garmin stopped supporting USB, but based on the minimal posts I found, they seem to be trying to protect the device's memory. I am guessing it has something to do with controlling what files are visible or something. I dunno TBH.
I am interested in fixing this issue. I am posting this to facilitate discussion.
I believe the solution could be to use Windows Portable Devices (WPD) API. I know this is primarily a Linux project, but I think as long as I define the transport correctly, we can support Windows.
I am pretty sure no MTP implementation works on Windows for this reason. I have not combed through the code base to find them all yet (if they exist at all), though. Ideally, the solution would be included for them, too.
I am posting this message here, not in subsurface, because I believe the fix is here. Happy to move the issue if that is not what is preferred.
Expected behavior
dctool (examples) should be able to dump from a Garmin MK2i+ without issue.
Current behavior
I got a build working and debugged dctool to try to dump data.
dctool attempts to read from the Garmin device as a USB device (because no MTP library is available). This fails because mk2i devices do not mount as USB devices; they mount as MTP devices.
So I can't actually work around this by specifying the path either; there is no valid path on Windows for the device.
This can be worked around by just copying out the FIT files locally but that is not quite the experiance I would like 😄
My setup
Windows 11 Pro (Version 24H2)
Garmin Descent Mk3i 51mm
Subsurface 6.0.5576-CICD-release
Intel(R) Core(TM) i7-14700K (3.40 GHz)
Related issues
https://github.com/subsurface/subsurface/issues/3204
https://github.com/subsurface/subsurface/issues/4661 (I think there may be something similar here in the root cause but I have not tested this on a mac and it might be seperate)
https://groups.google.com/g/subsurface-divelog/c/EOL7GhHqE6I/m/AzzxwocQAQAJ (Maybe related?)
- Ngôn ngữ chính
- C
- Star
- 126
- Fork
- 116
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 13
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của subsurface/libdc
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
subsurface/libdc#129 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
subsurface/libdc#91 · 2 bình luận ·
Tất cả issue của subsurface/libdc
Issue tương tự
-
task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vsanthanam/JBird#429 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
es-ude/OnDeviceTraining#459 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
bilelmoussaoui/gobject-linter#199 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
bradcypert/plum#53 ·