08-19-2012, 12:36 PM | #61 | ||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
And yes, we will look for ways to shorten this. We cannot eliminate it because calibre requires reception of that data. Quote:
|
||
08-19-2012, 01:34 PM | #62 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
No, sorry, no sync seems to being done at all. Things just hang when I try to reconnect. For some reason CC seems to think there are no book to sync. "books None". But there are plenty of books visible in CC. Default storage folders are used.
Code:
Job: 1 Get device information started SMART_DEV ( 138.60: 0.000) get_device_information SMART_DEV ( 138.63: 0.001) _call_client GET_DEVICE_INFORMATION SMART_DEV ( 138.73: 0.060) _call_client SET_CALIBRE_DEVICE_INFO SMART_DEV ( 138.80: 0.026) card_prefix SMART_DEV ( 138.83: 0.000) free_space SMART_DEV ( 138.85: 0.001) _call_client FREE_SPACE DeviceJob: 1 Get device information done, calling callback DeviceJob: 1 Get device information callback returned SMART_DEV ( 138.91: 0.032) set_progress_reporter Job: 2 Get list of books on device started SMART_DEV ( 138.94: 0.000) books None SMART_DEV ( 138.96: 0.001) _call_client GET_BOOK_COUNT Job: 1 Get device information finished No details available. |
Advert | |
|
08-19-2012, 01:46 PM | #63 |
Basculocolpic
Posts: 4,356
Karma: 20181319
Join Date: Jul 2010
Location: Sweden
Device: Kindle 3 WiFi, Kindle 4SO, Kindle for Android, Sony PRS-350 and PRS-T1
|
Just a thought, do you have enough space for storage and handling of temporary files?
|
08-19-2012, 02:50 PM | #64 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
Plenty of room on the tablet. The 4000 ePubs takes up less than 0.5 GB. I used small ePubs for this test. Mostly around 100kB. And I have 18 GB free atm on the internal "sdcard".
Guess what? After around an hour it seems that it had synced after all. No output in debug while it happened. Or what was going on while it seemed that it had hung. Perhaps I should have specified some "debug-level"? I have "Automanage metadata" on, that might have been it? Spoiler:
So it seems that reconnect works, but is rather slow... Once it had reconnected and synced it was fast to add a book. Last edited by Adoby; 08-19-2012 at 02:59 PM. |
08-19-2012, 03:26 PM | #65 |
Basculocolpic
Posts: 4,356
Karma: 20181319
Join Date: Jul 2010
Location: Sweden
Device: Kindle 3 WiFi, Kindle 4SO, Kindle for Android, Sony PRS-350 and PRS-T1
|
A progression bar really helps in these situations. It seems the app requires "floppy patience", but I don't think people know what that is.
|
Advert | |
|
08-19-2012, 04:06 PM | #66 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
CC is currently much slower than what it would be to remove the external SDHC-card and sync from Calibre to a folder on the card.
But I suspect that CC will improve. |
08-19-2012, 04:36 PM | #67 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Wifi is much slower than USB drive connections. This is a simple fact that can not change. We will look at ways to improve performance, but we will *never* get to the same level of performance.
|
08-19-2012, 05:46 PM | #68 |
Wizard
Posts: 1,005
Karma: 98078
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini 4
|
Will do, but I'm traveling the first part of the week. I'll post when I return. CC does continue to run, just disconnects.
|
08-19-2012, 06:02 PM | #69 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2012
Device: Nexus 7
|
I've been using Calibre Companion since the beta was released and haven't had any major problems, but after not using it for a few days and trying to fire it up today to transfer a couple of new epubs from Calibre to Mantano, I find that Calibre Companion is failing to connect to Calibre every time. I'm using the latest version of the Companion app (1.6.1), and Calibre (0.8.65) and testing it on a Nexus 7 and Galaxy Nexus.
I have the Wireless Device Connection plugin setup and turned on, but every time I try to connect with either the N7 or GNex I get the "Could not find Calibre" popup screen. I've tried using Calibre's IP address in the Calibre Companion settings and made sure I had the port set to something different than the port for the OPDS server and checked "fixed network port" but every time I tried to connect the little circle indicating connection would only appear for a split second than disappear again, and nothing happens. When I clear everything and go back to the default connection settings, the circle would stick around for a few seconds, but then I get the "Could not find Calibre" popup screen again. As far as I know my router/firewall have the exact same settings that were allowing Calibre Companion to run perfectly up until today, so I don't think that's a factor. I restarted both the Nexus 7 and the Galaxy Nexus as well as my computer, turned the Wireless Device Connection plugin on and off, but nothing. I'm stumped, and pretty frustrated. I've been fiddling with everything I can think of for quite a while but it refuses to connect. Do I need to uninstall the Companion app? Go back to a previous version with Titanium Backup? I transferred 200+ books over the course of a few of days with no issue, but now that I want to transfer 2 small epubs over, it's just not happening. Edit- Uninstalling/reinstalling the Companion App did nothing. Now I can't see any of my Calibre Books that I've previously transferred AND can't connect to Calibre. Also my Titanium Backups didn't run for some reason so I have no older version of the app to go back to. Last edited by Molarsa; 08-19-2012 at 06:28 PM. |
08-20-2012, 02:23 AM | #70 |
Basculocolpic
Posts: 4,356
Karma: 20181319
Join Date: Jul 2010
Location: Sweden
Device: Kindle 3 WiFi, Kindle 4SO, Kindle for Android, Sony PRS-350 and PRS-T1
|
For what it's worth I did a transfer of two books, did a new search on Calibre and then tranferred two more books, no distruptions, no failures, just worked flawlessly.
|
08-20-2012, 03:03 AM | #71 | |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
Quote:
The problem with many books on the device seems to be the initial connection between the device and Calibre, when info about the contents of the device is gathered and transmitted to Calibre. That process might take a very long time now, if you have a few thousand books on the device. Don't really know why? |
|
08-20-2012, 03:04 AM | #72 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Question: after setting the fixed IP address & port, you said that the connection progress spinner appears and goes away, and "and nothing happens". I am assuming that means that "disconnect" does not appear in the action bar. Right? BTW: the uninstall/reinstall will have erased CC's database. Once we get the connection working, you will need to transfer the books again. |
|
08-20-2012, 03:12 AM | #73 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I will look at bunching up books into a single network transaction to improve on that 1/4 second, but I must be very careful. Some devices seem to have almost no memory, so creating bigger packets could crash CC. |
|
08-20-2012, 03:32 AM | #74 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@charles: Just some thoughts about networking performance:
Is the 1/4 second round trip time independant of the amount of data being sent? 1) You can compress data, though you are probably constrained by the limited device capabilities. 2) It seems odd that threading would cause a 1/4 second roundtrip. If you can confirm that, say by writing a single threaded python program that talks to the device in test mode, then there might be something you can do to alleviate the problem. Some ideas: Use a more capable networking library, like zeromq. Or write a C extension that releases the GIL during each "session" of talking to the device. |
08-20-2012, 04:14 AM | #75 | |||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
My uninformed guess is that we are competing for the GIL with the other calibre threads such as the UI and metadata backup. I don't have any proof for that, however. What I am looking at now is "streaming" information in certain cases. The base protocol is stateless request/response. If we "streamed", then certain operations would become stateful request/response* operations. This should increase throughput by eliminating the turn-around latency per response. Of course, it also increases risk of running out of some resource on the device (they seem to be good at that). We will see. |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Android App] Calibre Companion 1.7 Beta testing | Adoby | Devices | 31 | 09-07-2012 10:13 PM |
[Android App] Coming: Android app to connect as a device to calibre using wifi | chaley | Devices | 92 | 09-07-2012 08:24 PM |
[Android App] Can't get Calibre Companion to connect | theangelicious1 | Devices | 2 | 09-01-2012 04:09 AM |
calibre - send to device - android running Nook App. | Mad_Robot | Devices | 6 | 10-16-2011 01:49 PM |
Android app for reading web articles with Kindle (app and device) | fivefilters | Android Devices | 0 | 07-02-2011 09:29 PM |