![]() |
#1 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Question about connecting to Calibre via USB
I'm not sure if this is a setup question or a wishlist question.
Version 2.0 contains the following fix: > Add support for MTP devices (Android phones/tablets) on OS X Does that mean that there is some way to connect CC and Calibre with the USB connection? If not now, is this a possibility for the future? Note that this would be nice to have, but if its a lot of work, then its probably not enough of an improvement to be worth your trouble. |
![]() |
![]() |
![]() |
#2 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
I would like this option too.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
This is on the wishlist, but it is rather hard to do for two reasons. The first is that the file names and paths used by MTP could easily be different from those used by CC. Any book outside CC's set of folders must be ignored. Second is getting the metadata for the books. In theory the file .metadata.calibre contains everything we need, but I have seen many cases where it was corrupted and the thumbnail is usually miniscule.
Regardless, with the above caveats it is worth doing, and I will look at raising its priority in my brain. |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Jun 2013
Device: None
|
More than 7 of my customers who I have convinced to purchase CC have asked me how to configure CC to use it via USB (which doesn't yet exist)....
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
To say again, the problem here is that there is absolutely no guarantee that the user will store books in CC's folders. Any book not in the proper CC folder must be ignored. I am very concerned that this behavior will create no end of support problems because people won't understand why it doesn't "just work". And it won't "just work".
![]() The above notwithstanding, I am willing to look at this, but to do so I need help. I don't have a device with an SD card, so I have no idea whether calibre can send to sd cards, and if so, what is in the metadata.calibre file. Could some brave soul with an sdcard-equipped device tell me:
Note: if and when this function arrives, it will require an explicit choice to run it, similar to the "Find missing books" in CC today. The processing is complex and time consuming, so it can't be run automatically. Any new or changed book will require modifying the database, which will run at the same speed as metadata upgrades received over wifi. Finally, I am curious about why people want this feature? It is purely an expectation of better performance, in that copying books over USB is faster? If so, does this advantage go away because of CC's import and the time taken to update metadata? It isn't obvious to me that a combination of sending over a cable and then importing into CC will be faster than simply sending to CC to begin with. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
The only reason I was interested was because calibre has been crashing often on me during sending books to my device and this would have been another troubleshooting point. Add to that the rare time I would like to transfer a book when I'm at work, but any cloud solution you might implement would handle that. So I really have no reason and could easily do without it.
It sounds like a can of worms you don't need to open. |
![]() |
![]() |
![]() |
#7 | |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
1) I assumed that copying books via USB would be faster than copying them via Wifi 2) Sometimes when I try to connect via Wifi it fails because my phone is plugged into the computer. Then I get a message that says that something else is already connected to calibre. If Calibre isn't going to make a direct connection to CC, than I would never use this. I would continue to use the Wifi connection, because the results are viewable in real time, the end result is more deterministic, and you would still need the Wifi connection for some actions (ie deleting books). |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,472
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Even if you connect via USB, if there is another device (ie a phone) connected via USB to calibre, the new connection will be rejected.
Only a single device can be attached at one time to calibre. |
![]() |
![]() |
![]() |
#9 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
That's not a problem. I was trying to solve the problem that exists when my phone is connected via USB and I am trying to sync my Calibre library on the same phone via a wireless connection.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If it is being recognized as an MTP device then blacklist it. If it is being recognized as an android device, disable that plugin.
|
![]() |
![]() |
![]() |
#11 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Sounds to me like this is just another iteration of "CC and the cloud: discussion".
|
![]() |
![]() |
![]() |
#12 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
So, I plugged my phone in with Calibre running and it asked me it I wanted to control it. I said no, and then I went into preferences->sharing->Ignored devices and confirmed that it was listed. I then quit everything and disconnected my phone from the computer. I then reconnected and started up Calibre and CC. I then tried to make a wireless connection. I still get the same error: "The Connection failed because some other device is connected to Calibre". If I then disconnect my phone, it connect to Calibre without a problem.
Any thoughts/ideas would be appreciated. |
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I can say with certainty that for my devices (Galaxy Nexus, Nexus 7, Kindle File HD, HTC Sensation), if I blacklist the devices and disable the Android plugin then I have no trouble connecting via wifi even when the device is connected by cable. I do see a message in calibre's debug log saying that the device is blacklisted, except for the HTC that doesn't support MTP. |
|
![]() |
![]() |
![]() |
#14 | |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
Looking for devices of type: MTP_DEVICE MTP devices connected: USBDevice(busnum=160, devnum=6, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=75e2b2d9) Trying to open: USBDevice(busnum=160, devnum=6, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=75e2b2d9) Opening device failed: Traceback (most recent call last): File "site-packages/calibre/devices/mtp/unix/driver.py", line 147, in debug_managed_device_detection File "site-packages/calibre/devices/mtp/driver.py", line 123, in open File "site-packages/calibre/devices/mtp/base.py", line 24, in synchronizer File "site-packages/calibre/devices/mtp/unix/driver.py", line 216, in open OpenFailed: Failed to open USBDevice(busnum=160, devnum=6, vendor_id=0x04e8, product_id=0x6860, bcd=0x0400, manufacturer=SAMSUNG, product=SAMSUNG_Android, serial=75e2b2d9): Error: Unable to open MTP device with busnum=160 and devnum=6, tried 1 such devices Is there some way to just disable MTP connections completely? |
|
![]() |
![]() |
![]() |
#15 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Disable the MTP device driver.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
connecting terminal to PB via BT or USB | readMax | PocketBook Developer's Corner | 2 | 11-17-2012 10:33 PM |
Calibre Not Connecting to Kindle Fire Via USB | ScottyAG | Devices | 6 | 09-28-2012 05:45 PM |
PRS-950 Connecting via USB | Purl5 | Sony Reader | 40 | 11-30-2010 04:22 PM |
Again, a Calibre Question (not connecting) | radi0j0hn | Calibre | 7 | 04-25-2010 12:32 AM |
connecting to USB? | DHer | iRex | 4 | 07-21-2006 10:05 AM |