11-28-2023, 07:46 PM | #1 |
Evangelist
Posts: 428
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?
|
11-28-2023, 09:43 PM | #2 |
Bibliophagist
Posts: 39,837
Karma: 154147706
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.
|
Advert | |
|
11-28-2023, 10:54 PM | #3 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.current_vid
|
11-29-2023, 09:31 AM | #4 |
Evangelist
Posts: 428
Karma: 2666666
Join Date: Nov 2020
Device: none
|
Thanks for your help!
|
|
Similar Threads | ||||
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 |