View Single Post
Old 08-12-2012, 08:47 AM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by rorschach1234 View Post
Hello,
I installed Calibre Companion on my Galaxy Tab 7.7 but it never gets past the "Syncing with calibre, Updating booklist and metadata" page. The IP address and post is correct - I can open the library easily on two other computers over that address.

I have around 600 books in calibre - should it take more than 10 minutes to synchronise?
I'm using Mac OSX and version 0.8.64 of calibre.

Many thanks!
First, the time to sync depends on the number of books on your Tab, which in this case is zero. The connection startup negotiation should finish in seconds. The number of books in your library doesn't affect this.

Now to the problem: You say that the IP and port are correct and that you can open the library with other computers.

First question: when you connect with other computers, what are you connecting to? Calibre's content server?

Second: why did you enter an IP address in the app? Doing so is normally unnecessary. If, however, you have one of the wireless routers that blocks multicast or if you have a firewall on your computer that blocks access port-by-port, then you will need to enter the address and port.

Third: assuming it doesn't work when you enter nothing in the IP box, what port did you use? It must not be the port of the content server. Instead, it should be the port you see in calibre's Smartdevice plugin customization panel. By default, the smartdevice driver uses a random port number. To use a fixed port you must change values in device customization. In calibre, go to the device customization panel for the Smartdevice driver (Preferences -> plugins -> Device interface plugins -> Smartdevice app interface). Check the box "Use a fixed network port". This screenshot shows you the device customization dialog.
Click image for larger version

Name:	13-calibre_device_customization.png
Views:	421
Size:	232.0 KB
ID:	90589
Change the default port number (9090) if you wish. Note down the port number you use. Be sure that the port number in the app and in calibre are the same. Also be sure that your firewall is not blocking that port.

Fourth: assuming that the port numbers are the same and things are still not working, then we need to get some information by running calibre in debug mode. Start calibre, then click the small down arrow next to preferences as shown in this screenshot.
Click image for larger version

Name:	12-calibre_debug_mode.png
Views:	364
Size:	85.1 KB
ID:	90588
Click on "Start calibre in debug mode". Let calibre restart and answer OK to the dialog that confirms that calibre is in debug mode. Using your Tab, attempt to connect to calibre. Wait at least 30 seconds, then close calibre. You will get a window containing calibre's debug log. Post that debug log here. While you are looking at it, verify that smartdevice interface is starting and that it is using the port you assigned.

When I do these steps, I see the following log (this isn't all of it).
Spoiler:
SMART_DEV ( 0.00: 0.002) startup_on_demand try port 18700
SMART_DEV ( 0.89: 0.803) startup_on_demand listening on port 18700
Started up in 37.73 seconds with 66 books
SMART_DEV ( 95.11: 12.261) reset
SMART_DEV ( 95.12: 0.000) set_progress_reporter
SMART_DEV ( 95.14: 0.000) open
SMART_DEV ( 95.17: 0.016) _call_client GET_INITIALIZATION_INFO
SMART_DEV ( 95.90: 0.718) open selected formats [u'epub', u'mobi']
SMART_DEV ( 95.92: 0.000) card_prefix
SMART_DEV ( 96.17: 0.218) set_progress_reporter
Job: 1 Get device information started
SMART_DEV ( 96.20: 0.000) get_device_information
SMART_DEV ( 96.25: 0.016) _call_client GET_DEVICE_INFORMATION
SMART_DEV ( 96.56: 0.281) _call_client SET_CALIBRE_DEVICE_INFO
SMART_DEV ( 96.82: 0.249) card_prefix
SMART_DEV ( 96.84: 0.000) free_space
SMART_DEV ( 96.85: 0.000) _call_client FREE_SPACE
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
SMART_DEV ( 97.18: 0.312) set_progress_reporter
Job: 2 Get list of books on device started
SMART_DEV ( 97.20: 0.000) books None
SMART_DEV ( 97.21: 0.000) _call_client GET_BOOK_COUNT
Job: 1 Get device information finished
No details available.
SMART_DEV ( 104.11: 6.879) books carda
SMART_DEV ( 104.14: 0.000) books cardb
DeviceJob: 2 Get list of books on device done, calling callback
SMART_DEV ( 107.98: 3.822) set_plugboards
READING LIST: Metadata available: {u'main': {u'device_store_uuid': u'efc3cde6-794f-4d23-bf8d-c7f95613e2b3', u'prefix': u'', u'device_name': u'SmartDevice', u'calibre_version': u'0.8.64', u'location_code': u'main', u'last_library_uuid': u'62e15c2b-a8ca-40fd-a784-05773082742a', u'date_last_connected': u'2012-08-12T12:17:32.261000+00:00'}}
READING LIST: Sync Now - force_sync= False
DeviceJob: 2 Get list of books on device callback returned
Job: 2 Get list of books on device finished
No details available.
SMART_DEV ( 108.18: 0.187) set_progress_reporter
Job: 3 Send metadata to device started


Good luck!
chaley is offline   Reply With Quote