Quote:
Originally Posted by nikoski
But now i wanted to edit a bit the plugin settings and noticed that my devices are not shown as connected and i cannot add the new one. 
|
Works fine for me. Steps I tried:
- I deleted all devices in Reading List
- In CC's (Settings / Connecting to calibre / Wireless device connection / Device name shown by calibre) I checked that the device had a name I wanted to use.
- I connected CC. Calibre says it is connected, showing the device name set in CC's settings.
- In Reading List I pressed "Add Connected Device". My device appeared in the list.
If that doesn't work for you then I don't know where the problem might be.
This calibre log shows the sequence of events. I marked the Reading List interactions in bold
Spoiler:
SMART_DEV ( 6.11: 4.028) run received broadcast (b'localhost', ('192.168.120.69', 54982)) calibre wireless device client (on wallaby);8080,9090
SMART_DEV ( 8.12: 2.011) run attempt to open device socket
SMART_DEV ( 9.52: 1.387) open
SMART_DEV ( 9.52: 0.001) _call_client GET_INITIALIZATION_INFO wfr True
SMART_DEV ( 9.62: 0.100) open Device can stream books True
SMART_DEV ( 9.63: 0.000) open Device can stream metadata True
SMART_DEV ( 9.64: 0.000) open Device can receive book binary True
SMART_DEV ( 9.65: 0.001) open Device can delete multiple books True
SMART_DEV ( 9.65: 0.000) open Device can use cached metadata True
SMART_DEV ( 9.65: 0.000) open Cache uses lpaths True
SMART_DEV ( 9.66: 0.000) open Can send OK to sendbook True
SMART_DEV ( 9.66: 0.000) open Can accept library info True
SMART_DEV ( 9.66: 0.000) open Will ask for update books False
SMART_DEV ( 9.67: 0.000) open Will set temp mark when syncing read False
SMART_DEV ( 9.67: 0.000) open Client device kind ONEPLUS A5000
SMART_DEV ( 9.67: 0.000) open Client device name CBH ONEPLUS
SMART_DEV ( 9.68: 0.000) open Client app name CalibreCompanion
SMART_DEV ( 9.68: 0.000) open App version #: 392
SMART_DEV ( 9.68: 0.000) open max_book_packet_len 4096
SMART_DEV ( 9.68: 0.000) open Device wants UUID file names False
SMART_DEV ( 9.69: 0.001) open selected formats ['epub', 'mobi', 'pdf', 'm4b', 'zip']
SMART_DEV ( 9.69: 0.000) open extension path lengths {'epub': 38, 'mobi': 38, 'pdf': 38, 'm4b': 38, 'zip': 38}
SMART_DEV ( 9.69: 0.000) open cover height 480
SMART_DEV ( 9.70: 0.000) open Device is_read sync col #cbhread
SMART_DEV ( 9.70: 0.000) open Device is_read_date sync col #cbhdr
SMART_DEV ( 9.70: 0.001) card_prefix
SaveVirtualLibrariesToColumnGUI device connected True
SMART_DEV ( 9.71: 0.007) set_progress_reporter
Job: 0 Get device information started
SMART_DEV ( 9.72: 0.001) get_device_information
SMART_DEV ( 9.72: 0.001) _call_client GET_DEVICE_INFORMATION wfr True
SMART_DEV ( 9.79: 0.069) _call_client SET_CALIBRE_DEVICE_INFO wfr True
SMART_DEV ( 9.86: 0.058) _read_metadata_cache device uuid dbd6d9b6-ed74-46ed-a585-613f415f736c
SMART_DEV ( 9.87: 0.004) card_prefix
SMART_DEV ( 9.87: 0.000) free_space
SMART_DEV ( 9.87: 0.000) _call_client FREE_SPACE wfr True
SMART_DEV ( 9.93: 0.060) free_space free space: 843460608
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
SMART_DEV ( 9.95: 0.006) set_progress_reporter
Job: 1 Set library information started
SMART_DEV ( 9.95: 0.000) set_library_info Library.test_small b997a7e9-4600-4c33-9fa3-b7ee4f0118b5
SMART_DEV ( 9.96: 0.000) _call_client SET_LIBRARY_INFO wfr True
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library information callback returned
SMART_DEV ( 10.09: 0.128) set_progress_reporter
Job: 2 Get list of books on device started
SMART_DEV ( 10.10: 0.000) books None
SMART_DEV ( 10.10: 0.000) _call_client GET_BOOK_COUNT wfr True
SMART_DEV ( 10.14: 0.043) books caching. count= 101
SMART_DEV ( 10.25: 0.097) books received all books. count= 101
SMART_DEV ( 10.26: 0.009) books processed cache. count= 101
SMART_DEV ( 10.26: 0.000) books removed 0 books from caches
SMART_DEV ( 10.27: 0.000) books caching. Need count from device 101
SMART_DEV ( 10.30: 0.025) books getting book metadata. Done 0 of 101
Job: 0 Get device information finished
No details available.
Job: 1 Set library information finished
No details available.
SMART_DEV ( 12.81: 2.515) books getting book metadata. Done 100 of 101
SMART_DEV ( 12.83: 0.011) books finished getting book metadata
SMART_DEV ( 12.83: 0.000) books carda
SMART_DEV ( 12.83: 0.000) books cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 101
SMART_DEV ( 12.84: 0.006) synchronize_with_db is_read_sync_col not in field_metadata
SMART_DEV ( 12.85: 0.000) _call_client DISPLAY_MESSAGE wfr True
SMART_DEV ( 12.90: 0.046) synchronize_with_db is_read_date_sync_col not in field_metadata
SMART_DEV ( 12.91: 0.000) _call_client DISPLAY_MESSAGE wfr True
SMART_DEV ( 12.97: 0.058) set_plugboards
DeviceJob: set_books_in_library finished: time= 0.14099884033203125
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
READING LIST: Metadata available: {'main': {'last_library_uuid': 'b997a7e9-4600-4c33-9fa3-b7ee4f0118b5', 'prefix': '', 'calibre_version': '5.2.0', 'device_name': 'CBH ONEPLUS', 'date_last_connected': '2020-10-10T11:48:38.129819+00:00', 'device_store_uuid': 'dbd6d9b6-ed74-46ed-a585-613f415f736c', 'location_code': 'main'}}
READING LIST: Sync Now - force_sync= False
READING LIST: Device found to sync to: ONEPLUS A5000 dbd6d9b6-ed74-46ed-a585-613f415f736c
DeviceJob: 2 Get list of books on device callback returned
SMART_DEV ( 13.01: 0.028) set_progress_reporter
Job: 3 Send metadata to device started
SMART_DEV ( 13.01: 0.001) sync_booklists collection attributes ['series', 'rating']
DEBUG: 0.0 Starting get_collections: on_connect
DEBUG: 0.0 Renaming rules: {}
DEBUG: 0.0 Formatting template: {value}{category:| (|)}
DEBUG: 0.0 Sorting rules: [[['%abs'], '#rights']]
SMART_DEV ( 13.02: 0.008) _call_client SEND_BOOKLISTS wfr False
SMART_DEV ( 13.03: 0.000) _write_metadata_cache
SMART_DEV ( 13.29: 0.255) _write_metadata_cache wrote 101 entries, purged 0 entries
SMART_DEV ( 13.30: 0.005) card_prefix
SMART_DEV ( 13.30: 0.000) free_space
SMART_DEV ( 13.30: 0.001) _call_client FREE_SPACE wfr True
Job: 2 Get list of books on device finished
No details available.
SMART_DEV ( 13.38: 0.077) free_space free space: 843468800
DeviceJob: 3 Send metadata to device done, calling callback
DeviceJob: 3 Send metadata to device callback returned
SMART_DEV ( 13.40: 0.010) _call_client NOOP wfr True
Job: 3 Send metadata to device finished
No details available.
SMART_DEV ( 15.47: 2.056) _call_client NOOP wfr True
SMART_DEV ( 17.66: 2.186) _call_client NOOP wfr True
SMART_DEV ( 19.81: 2.152) _call_client NOOP wfr True
SMART_DEV ( 21.95: 2.140) _call_client NOOP wfr True
SMART_DEV ( 21.96: 0.000) _receive_from_client protocol error -- empty json string
SMART_DEV ( 21.96: 0.000) _call_client other exception
Traceback (most recent call last):
File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\d evices\smart_device_app\driver.py", line 652, in _call_client
File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\d evices\smart_device_app\driver.py", line 694, in _receive_from_client
calibre.devices.errors.ControlError: Device responded with incorrect information
SMART_DEV ( 21.96: 0.000) _write_metadata_cache
SMART_DEV ( 22.20: 0.239) _write_metadata_cache wrote 101 entries, purged 0 entries
SMART_DEV ( 22.22: 0.007) post_yank_cleanup
SaveVirtualLibrariesToColumnGUI device connected False
READING LIST: Device disconnected