View Single Post
Old 08-12-2012, 12:56 PM   #10
rorschach1234
Junior Member
rorschach1234 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2012
Device: Galaxy Tab 7.7
Okay, I'm back again from an afternoon in the sun...

1)
Yes, I was connecting over the calibre content server on port 8888. I have port forwarding set up on my Airport Extreme router, and port 8888 is always forwarded to the MacBook running calibre.

2)
Regarding why I entered an IP address, I thought that when I saw the instruction to always enter a port number, it made sense to enter the IP address on which calibre is running. I use static IP addresses on my home network, so calibre will always be accessible on the same port.

3)
I followed your instructions in 3) above and set the SmartDevice App interface to port 8888 (and calibre's content server to 8877 instead). Then I restarted calibre in debug mode and got no connection (the IP address was removed as per your instruction). See the first debug log below.

4)
However, when I added the IP address as well as the SmartDevice App's port number, BINGO! I get the message "Device: SmartDevice detected".

It's working now, news that calibre has downloaded according to a schedule I set up is sent automatically and deleted from calibre, all per my wishes. The only difference now is that there are no wires! Purrrr-fect!

My girlfriend and I thank you very much for this wonderful program - now we'll be able to read ebooks with even less hassle than we currently do!

Cheers,
Alan

Debug log 1
Spoiler:

INFO:cherrypy.error:[12/Aug/2012:18:21:37] ENGINE Bus STARTING
INFO:cherrypy.error:[12/Aug/2012:18:21:37] ENGINE Started monitor thread '_TimeoutMonitor'.
INFO:cherrypy.error:[12/Aug/2012:18:21:37] ENGINE Serving on 0.0.0.0:8080
INFO:cherrypy.error:[12/Aug/2012:18:21:39] ENGINE Bus STARTED
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Bus STOPPING
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Stopped thread '_TimeoutMonitor'.
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Bus STOPPED
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Bus EXITING
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Bus EXITED
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Waiting for child threads to terminate...
INFO:cherrypy.error:[12/Aug/2012:18:23:56] ENGINE Waiting for thread MainThread.
calibre Debug log
calibre 0.8.64
Darwin-11.4.0-x86_64-i386-64bit
Darwin
('Darwin', '11.4.0', 'Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64')
Python 2.7.3
OSX: ('10.7.4', ('', '', ''), 'x86_64')
Starting up...
SMART_DEV ( 0.01: 0.007) startup_on_demand try port 8888
SMART_DEV ( 1.20: 0.987) startup_on_demand listening on port 8888
Started up in 14.16 seconds with 560 books


=========================================
Debug log 2
Spoiler:

INFO:cherrypy.error:[12/Aug/2012:18:31:40] ENGINE Bus STARTING
INFO:cherrypy.error:[12/Aug/2012:18:31:40] ENGINE Started monitor thread '_TimeoutMonitor'.
INFO:cherrypy.error:[12/Aug/2012:18:31:40] ENGINE Serving on 0.0.0.0:8080
INFO:cherrypy.error:[12/Aug/2012:18:31:42] ENGINE Bus STARTED
INFO:cherrypy.error:[12/Aug/2012:18:32:58] ENGINE Bus STOPPING
INFO:cherrypy.error:[12/Aug/2012:18:32:58] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
INFO:cherrypy.error:[12/Aug/2012:18:32:58] ENGINE Stopped thread '_TimeoutMonitor'.
INFO:cherrypy.error:[12/Aug/2012:18:32:58] ENGINE Bus STOPPED
INFO:cherrypy.error:[12/Aug/2012:18:32:58] ENGINE Bus EXITING
INFO:cherrypy.error:[12/Aug/2012:18:32:58] ENGINE Bus EXITED
INFO:cherrypy.error:[12/Aug/2012:18:32:59] ENGINE Waiting for child threads to terminate...
INFO:cherrypy.error:[12/Aug/2012:18:32:59] ENGINE Waiting for thread MainThread.
calibre Debug log
calibre 0.8.64
Darwin-11.4.0-x86_64-i386-64bit
Darwin
('Darwin', '11.4.0', 'Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64')
Python 2.7.3
OSX: ('10.7.4', ('', '', ''), 'x86_64')
Starting up...
SMART_DEV ( 0.00: 0.004) startup_on_demand try port 8888
SMART_DEV ( 1.10: 0.814) startup_on_demand listening on port 8888
Started up in 21.00 seconds with 559 books
SMART_DEV ( 41.59: 40.437) reset
SMART_DEV ( 41.61: 0.000) set_progress_reporter
SMART_DEV ( 41.64: 0.000) open
SMART_DEV ( 41.66: 0.002) _call_client GET_INITIALIZATION_INFO
SMART_DEV ( 41.80: 0.108) open selected formats [u'epub', u'mobi', u'azw3', u'cbr', u'cbz', u'pdf']
SMART_DEV ( 41.82: 0.000) card_prefix
SMART_DEV ( 41.97: 0.120) set_progress_reporter
Job: 1 Get device information started
SMART_DEV ( 41.99: 0.000) get_device_information
SMART_DEV ( 42.02: 0.001) _call_client GET_DEVICE_INFORMATION
SMART_DEV ( 42.07: 0.020) _call_client SET_CALIBRE_DEVICE_INFO
SMART_DEV ( 42.13: 0.030) card_prefix
SMART_DEV ( 42.16: 0.000) free_space
SMART_DEV ( 42.19: 0.001) _call_client FREE_SPACE
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
SMART_DEV ( 42.29: 0.069) set_progress_reporter
Job: 2 Get list of books on device started
SMART_DEV ( 42.31: 0.000) books None
SMART_DEV ( 42.34: 0.001) _call_client GET_BOOK_COUNT
Job: 1 Get device information finished
No details available.
SMART_DEV ( 42.52: 0.158) books carda
SMART_DEV ( 42.55: 0.000) books cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: 2 Get list of books on device callback returned
SMART_DEV ( 42.90: 0.319) _call_client NOOP
Job: 2 Get list of books on device finished
No details available.
SMART_DEV ( 53.04: 10.119) _call_client NOOP
SMART_DEV ( 59.18: 6.105) _call_client NOOP
SMART_DEV ( 59.20: 0.000) _call_client protocol error -- empty json string
SMART_DEV ( 59.23: 0.000) post_yank_cleanup

Last edited by rorschach1234; 08-12-2012 at 01:00 PM. Reason: to add spoiler tags!
rorschach1234 is offline   Reply With Quote