![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 422
Karma: 2666666
Join Date: Nov 2020
Device: none
|
How to check connected MTP device type?
I'm using the `VENDOR_ID` and `VENDOR_NAME` attribute of the usbms device class to check if the connected device is a Kindle. But the Windows MTP class has neither of them. Could these values be added or is there another API I can use?
|
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 37,077
Karma: 148321038
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You might want to take a look at the Linux libmtp device driver. As for a list of the VID/PID information, the last time I played with identifying a MTP device, I used a list I found at https://sourceforge.net/p/libmtp/cod...usic-players.h A quick look at it showed it lists the Kindle Scribe and several B&N Nooks for example.
|
![]() |
![]() |
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,041
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.current_vid
|
![]() |
![]() |
![]() |
#4 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 422
Karma: 2666666
Join Date: Nov 2020
Device: none
|
Thanks for your help!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Device Driver API for MTP devices (e.g. Kindle Scribe) | tomsem | Development | 2 | 09-24-2023 12:19 PM |
Calibre accessing MTP device under KDE5 solution | kj76 | Devices | 2 | 04-23-2022 08:50 AM |
Calibre 2.51.0 triggers MTP failure with particular device | mikebw | Devices | 4 | 02-05-2018 03:33 PM |
Sending files to MTP device without conversion | RichieTheK | Devices | 7 | 10-06-2012 12:49 PM |
Problems connecting to Librarian? Check you're connected to the internet! | LeserattePD | Fictionwise eBookwise | 0 | 02-07-2010 03:39 PM |