|
|
#1 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 3000000
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: 48,235
Karma: 174315444
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 | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,610
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.current_vid
|
|
|
|
|
|
#4 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 3000000
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 01:19 PM |
| Calibre accessing MTP device under KDE5 solution | kj76 | Devices | 2 | 04-23-2022 09:50 AM |
| Calibre 2.51.0 triggers MTP failure with particular device | mikebw | Devices | 4 | 02-05-2018 04:33 PM |
| Sending files to MTP device without conversion | RichieTheK | Devices | 7 | 10-06-2012 01:49 PM |
| Problems connecting to Librarian? Check you're connected to the internet! | LeserattePD | Fictionwise eBookwise | 0 | 02-07-2010 04:39 PM |