05-09-2011, 03:46 PM | #1 |
Calibre Plugins Developer
Posts: 4,647
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Device connectivity related questions
I wanted to confirm some behaviour that I see with my Kindle to see if it is an across devices/Calibre "design" feature. This is building on top of some information given previously by chaley regarding some signals posted here on the BookSync thread.
If anyone could confirm the following for me as some have relevance for my next version of Book Sync:
I'm thinking about how I can configure the Book Sync plugin. I would have a section on the plugin configuration dialog which the user can use to add a device, delete and rename it. I will require a device to be connected to interrogate the driveinfo. So if the user does not have a device connected, they must cancel out of the dialog, plug their device in, go back into the configuration dialog, and at that point I can detect what they have connected and automatically stick it in the list of devices for them (with some "enabled" checkboxes and a delete button). They will also be able to rename a device, which I will write back using the set_driveinfo_name() function. Sync lists will then be per device per library stored in my config file. I think my biggest question right now relates to which location(s) to support. I think my "easy way" is to only support "main" just like existing news does, and trust that if I call sync_to_device() it will take care of any issues like space etc. However I know from people who have posted in the past that there are users who want to have their books on a different storage card other than "main". They can do this I believe for normal books by setting a default storage card? However for news they cannot. Presumably for me to support this I would need to list all the locations retrieved from driveinfo as potential sync lists, leaving it to the user to uncheck ones they are not interested in storing. How does sync_to_device() respond if there was not sufficient space to put the books on the chosen non-main location? Thoughts appreciated. |
05-09-2011, 04:25 PM | #2 | |||||||||
Grand Sorcerer
Posts: 11,775
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
My guess is that it is not ignored, but instead the signal message is being tossed because nothing is listening for it on the current event loop. Are you connecting to device_metadata_available? If so, are you using a synchronous connection or a queued connection? Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||||
Advert | |
|
05-09-2011, 05:06 PM | #3 | |||
Calibre Plugins Developer
Posts: 4,647
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Quote:
Quote:
|
|||
05-09-2011, 06:05 PM | #4 | |
Grand Sorcerer
Posts: 11,775
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I started calibre, opened the Find Duplicate dialog, then plugged in my Sony. It was detected just fine. The status line changed, the metadata sync job ran, on-device updated. Did I not do the correct experiment? Are you referring to something else? |
|
05-09-2011, 06:29 PM | #5 |
Calibre Plugins Developer
Posts: 4,647
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Hmmm. I tried it at least 3 times and on none of them did it ever connect. I've just tried it now and it has worked no matter which dialogs I had open. Weird. I have restarted my PC in between so maybe that had something to do with it.
Ok, that's cool, at last as a user I won't need to close the configuration dialog to get my device being able to appear in the list for configuration. EDIT: I did just get a nasty Calibre crash when I cancelled out of the dialog I had open. So maybe all is not well. |
Advert | |
|
05-10-2011, 01:39 AM | #6 | |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Quote:
P.S. Would have been a longer replied, but 11.04 crashed - again - and I lost it... |
|
05-10-2011, 03:43 AM | #7 |
Calibre Plugins Developer
Posts: 4,647
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Thx meme for confirming that bug. Unfortunately I can't use the same workaround as this plugin by nature needs to be accessible both when a device is connected and is not. I should create a ticket by the sound of it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic 3G connectivity with softroot 2.5.1 | faust | Nook Developer's Corner | 3 | 06-14-2011 04:24 AM |
Couple of questions : Import and copy to device folders | niji | Calibre | 2 | 12-20-2010 04:35 PM |
Troubleshooting 3G Connectivity | Jongwe | Amazon Kindle | 3 | 11-24-2010 06:55 AM |
Questions about device/screen size | ragzy | General Discussions | 13 | 06-30-2010 11:08 PM |
A couple of questions about the Kindle 6" global wireless device | s7whitecoral | Amazon Kindle | 1 | 06-23-2010 08:11 PM |