Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-19-2022, 06:21 AM   #16
igorius
Zealot
igorius began at the beginning.
 
Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
[QUOTE=zisoft;4250107]The read status is two-way sync. No matter where you mark a book as read, it is synced both on the device and in Calibre. You cannot mark a book as unread (you already read it).

Ah, i didnt comment that i deleted the books via Finder, not via calibre. So the database on the PB didnt change. Thats the reason why after reinstalling books on the PB opened at the previous reading-position.

But by the way, is there any way to get the actual position synced too?
Thanks much again for your great help!
igorius is offline   Reply With Quote
Old 08-19-2022, 10:50 AM   #17
zisoft
Enthusiast
zisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolate
 
Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
Quote:
Originally Posted by igorius View Post
But by the way, is there any way to get the actual position synced too?
Thanks much again for your great help!
The actual position is stored in the device database too so in principle it would be possible to sync that to another user defined column in calibre. But how would that be useful?
zisoft is offline   Reply With Quote
Advert
Old 08-19-2022, 12:17 PM   #18
the_Pan
Connoisseur
the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.
 
Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
Quote:
Originally Posted by zisoft View Post
The actual position is stored in the device database too so in principle it would be possible to sync that to another user defined column in calibre. But how would that be useful?
Coming from Kobo and the "Kobo utilities" plugin, I would welcome such a feature as well. Sure it's just a gimmick, but nice to see how the reading progress is in a particular book.
But of course it would only make sense if the bookmarks could be saved too.
the_Pan is offline   Reply With Quote
Old 08-19-2022, 12:44 PM   #19
zisoft
Enthusiast
zisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolate
 
Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
Ok, I will take a look :-)
zisoft is offline   Reply With Quote
Old 08-19-2022, 12:51 PM   #20
zisoft
Enthusiast
zisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolate
 
Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
Quote:
Originally Posted by igorius View Post
Edit: I changed the vendor-ID in device.py, zipped the files again, installed and now it syncs.
Can you tell what values you used in device.py?

EDIT: Ok, found it in your previous post:

Quote:
PocketBook1040:

Produkt-ID: 0x0001
Hersteller-ID: 0x18d1 (Google Inc.)
Version: 1.01
Seriennummer: 20080411
Geschwindigkeit: Bis zu 480 MBit/s
Hersteller: Obreey

Last edited by zisoft; 08-20-2022 at 03:34 AM.
zisoft is offline   Reply With Quote
Advert
Old 08-20-2022, 08:25 AM   #21
igorius
Zealot
igorius began at the beginning.
 
Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
The only value i changed was the Vendor_ID = [0x18d1]. Device_ID not changed, The values BCD i didnt understand what they are for. (unchanged)
I had a look inside explorer-3.db, it would be possible to calculate the reading-position in table book_settings from fields "cpage / npage * 100".
Without your plugin the internal PocketBook 701 Plugin was used, the variant for PB740 from John Schember. The PocketBook Touch Lux 2 plugin was never used with my Inkpad X, i tested this by deactivating all PB-Plugins and activating for every test only one of them. (The 2 701-plugins work together, if i deactivate one of them, the other gets deactivated too. Vice versa with activating them...
I hope that helps a bit...
igorius is offline   Reply With Quote
Old 08-20-2022, 05:50 PM   #22
igorius
Zealot
igorius began at the beginning.
 
Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
Other thing which would be good: Last time, when book was open to read.
(Ok, i tend to be perfect...
igorius is offline   Reply With Quote
Old 08-21-2022, 05:52 AM   #23
igorius
Zealot
igorius began at the beginning.
 
Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
Here is the output of ioreg -p IOUSB -l -w 0:
Mac doesnt have lsusb...

Code:
PocketBook1040@14110000  <class AppleUSBDevice, id 0x10000f63c, registered, matched, active, busy 0 (1 ms), retain 16>
    |     {
    |       "sessionID" = 140002613231374
    |       "idProduct" = 1
    |       "iManufacturer" = 2
    |       "bDeviceClass" = 0
    |       "bMaxPacketSize0" = 64
    |       "bcdDevice" = 257
    |       "iProduct" = 3
    |       "iSerialNumber" = 4
    |       "bNumConfigurations" = 1
    |       "Bus Power Available" = 250
    |       "USB Address" = 20
    |       "Built-In" = No
    |       "locationID" = 336658432
    |       "bDeviceSubClass" = 0
    |       "bcdUSB" = 512
    |       "USB Product Name" = "PocketBook1040"
    |       "PortNum" = 1
    |       "non-removable" = "no"
    |       "kUSBSerialNumberString" = "123456789"
    |       "bDeviceProtocol" = 0
    |       "AppleUSBAlternateServiceRegistryID" = 4295030330
    |       "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
    |       "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3}
    |       "Device Speed" = 2
    |       "USB Vendor Name" = "Obreey
"
    |       "idVendor" = 6353
    |       "kUSBCurrentConfiguration" = 1
    |       "IOGeneralInterest" = "IOCommand is not serializable"
    |       "kUSBProductString" = "PocketBook1040"
    |       "USB Serial Number" = "123456789"
    |       "kUSBVendorString" = "Obreey
"
    |       "IOClassNameOverride" = "IOUSBDevice"
    |     }
a somewhat better output: ioreg -l -r -c IOUSBHostDevice

Code:
PocketBook1040@14110000  <class IOUSBHostDevice, id 0x10000f63a, registered, matched, active, busy 0 (120 ms), retain 34>
  | |   | {
  | |   |   "kUSBSerialNumberString" = "123456789"
  | |   |   "bDeviceClass" = 0
  | |   |   "bDeviceSubClass" = 0
  | |   |   "iSerialNumber" = 4
  | |   |   "Built-In" = No
  | |   |   "IOServiceDEXTEntitlements" = (("com.apple.developer.driverkit.transport.usb"))
  | |   |   "iProduct" = 3
  | |   |   "USB Serial Number" = "123456789"
  | |   |   "USB Vendor Name" = "Obreey "
  | |   |   "USBSpeed" = 3
  | |   |   "IOPowerManagement" = {"PowerOverrideOn"=Yes,"CapabilityFlags"=32768,"MaxPowerState"=2,"DevicePowerState"=2,"DriverPowerState"=0,"ChildrenPowerState"=2,"Curre$
  | |   |   "bNumConfigurations" = 1
  | |   |   "kUSBProductString" = "PocketBook1040"
  | |   |   "IOServiceLegacyMatchingRegistryID" = 4295030332
  | |   |   "kUSBVendorString" = "Obreey "
  | |   |   "USB Product Name" = "PocketBook1040"
  | |   |   "iManufacturer" = 2
  | |   |   "idVendor" = 6353
  | |   |   "Device Speed" = 2
  | |   |   "kUSBCurrentConfiguration" = 1
  | |   |   "idProduct" = 1
  | |   |   "bcdDevice" = 257
  | |   |   "sessionID" = 140002613231374
  | |   |   "USB Address" = 20
  | |   |   "non-removable" = "no"
  | |   |   "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
  | |   |   "IOClassNameOverride" = "IOUSBDevice"
  | |   |   "USBPortType" = 0
  | |   |   "bDeviceProtocol" = 0
  | |   |   "locationID" = 336658432
  | |   |   "bcdUSB" = 512
  | |   |   "kUSBAddress" = 20
  | |   |   "IOGeneralInterest" = "IOCommand is not serializable"
  | |   |   "bMaxPacketSize0" = 64
  | |   | }
Maybe that helps too?

Last edited by igorius; 08-21-2022 at 06:13 AM.
igorius is offline   Reply With Quote
Old 08-23-2022, 08:38 AM   #24
zisoft
Enthusiast
zisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolate
 
Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
I have uploaded a test version.
Can you please install this version and check if your device (PB1040) is detected.

See Post #2 of this thread.
zisoft is offline   Reply With Quote
Old 08-24-2022, 06:03 PM   #25
igorius
Zealot
igorius began at the beginning.
 
Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
@zisoft: Boyah! Device is being recognized, showing relevant info like before!
I think, reading status (#read) is not implemented? It doesnt sync that info. (2 books which i have read the last 3 days dont get synced the read-status)

Here is the debug-data for your convinience:
Code:
Job: 0 Geräteinformationen abrufen started
DeviceJob: 0 Geräteinformationen abrufen done, calling callback
DeviceJob: 0 Geräteinformationen abrufen callback returned
Job: 1 Bibliotheksinformationen festlegen started
DeviceJob: 1 Bibliotheksinformationen festlegen done, calling callback
DeviceJob: 1 Bibliotheksinformationen festlegen callback returned
Job: 2 Gerätebücherliste abrufen started
DEBUG:  196.0 USBMS: Fetching list of books from device. Device= POCKETBOOK626 oncard= None
DEBUG:  196.0 USBMS: dirs are: /Volumes/LILLIFEE/ Books
Job: 0 Geräteinformationen abrufen finished
Keine Details verfügbar.
Job: 1 Bibliotheksinformationen festlegen finished
Keine Details verfügbar.
DEBUG:  208.0 USBMS: scan from root True /Volumes/LILLIFEE/
DEBUG:  208.4 USBMS: count found in cache: 6592, count of files in metadata: 6592, need_sync: True
DEBUG:  208.4 USBMS: starting sync_booklists
DEBUG:  223.6 USBMS: finished sync_booklists
DEBUG:  223.6 USBMS: Finished fetching list of books from device. oncard= None
DEBUG:  223.6 USBMS: Fetching list of books from device. Device= POCKETBOOK626 oncard= carda
DEBUG:  223.6 USBMS: Fetching list of books from device. Device= POCKETBOOK626 oncard= cardb
DeviceJob: 2 Gerätebücherliste abrufen done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 6592
Job: 2 Gerätebücherliste abrufen finished
Keine Details verfügbar.
DeviceJob: set_books_in_library finished: time= 4.317934036254883
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': {'device_store_uuid': '3a608a17-2465-4052-9bea-878eb7354042', 'device_name': 'PocketBook', 'location_code': 'main', 'last_library_uuid': 'adde6f10-436d-4ee9-8793-fee9e6acab51', 'calibre_version': '6.3.0', 'date_last_connected': '2022-08-24T20:56:30.663699+00:00', 'prefix': '/Volumes/LILLIFEE/'}}
READING LIST: Sync Now - force_sync= False
DeviceJob: 2 Gerätebücherliste abrufen callback returned
Job: 3 Metadaten zum Gerät senden started
DEBUG:  228.7 USBMS: starting sync_booklists
Job: 2 Gerätebücherliste abrufen finished
Keine Details verfügbar.
DEBUG:  242.5 USBMS: finished sync_booklists
DeviceJob: 3 Metadaten zum Gerät senden done, calling callback
DeviceJob: 3 Metadaten zum Gerät senden callback returned
Job: 3 Metadaten zum Gerät senden finished
Keine Details verfügbar.
Thanks very much, great job!!!

One small glitch still there: I changed the metadata from 3 books, when i did the copy to reader, these 3 books were copied again, the metadata wasnt updated... On 1 of the books i changed the title slightly, i removed some wrong characters (old book, didnt revise right when i imported that long time ago)
Attached Thumbnails
Click image for larger version

Name:	Bildschirmfoto 2022-08-24 um 23.08.17.jpg
Views:	163
Size:	27.7 KB
ID:	196066  

Last edited by igorius; 08-24-2022 at 06:12 PM.
igorius is offline   Reply With Quote
Old 08-26-2022, 11:21 AM   #26
the_Pan
Connoisseur
the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.
 
Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
Quote:
Originally Posted by zisoft View Post
Did you create a userdefined Yes/No column with the lookup name "read"?
If I delete the column in Calibre for testing, it runs without any delays.
After I created the column again and restarted Calibre, everything is as it was before.
So it seems that the delays are caused by reading this column.
the_Pan is offline   Reply With Quote
Old 08-28-2022, 11:50 AM   #27
zisoft
Enthusiast
zisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolatezisoft is generous with chocolate
 
Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
Released Version 1.0.3 (see first post).

With the help of @igorius we could hopefully solve the long delay issue on device connect.
Added support of PB1040 devices.
zisoft is offline   Reply With Quote
Old 09-02-2022, 10:36 AM   #28
the_Pan
Connoisseur
the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.the_Pan is as sexy as a twisted cruller doughtnut.
 
Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
Quote:
Originally Posted by zisoft View Post
Released Version 1.0.3 (see first post).

With the help of @igorius we could hopefully solve the long delay issue on device connect.
Added support of PB1040 devices.
Sorry, but on PB Era (PB700) the delay is still there.

Maybe there are interferences with the kobo drivers, or/and the column I created for my kobo devices?
I don't want to remove them just to test, because it's the mentioned #percent_read column.

Last edited by the_Pan; 09-02-2022 at 10:41 AM.
the_Pan is offline   Reply With Quote
Old 09-06-2022, 07:16 AM   #29
Roke97
Junior Member
Roke97 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2022
Device: Pocketbook Era, Kindle Paperwhite 10th gen
calibre 6.4.0 denys installation of the Plugin even after a restart

calibre, version 6.4.0
FEHLER: Erweiterungsinstallation fehlgeschlagen: Während der Installation der Erweiterung ist ein Problem aufgetreten. Diese Erweiterung wird nun entfernt. Bitte veröffentlichen Sie die folgende detaillierte Fehlermeldung im Diskussionsforum dieser Erweiterung und starten Sie Calibre neu.

Traceback (most recent call last):
File "calibre\gui2\dialogs\plugin_updater.py", line 710, in _install_clicked
File "calibre\customize\ui.py", line 479, in add_plugin
File "calibre\customize\ui.py", line 64, in load_plugin
File "calibre\customize\zipplugin.py", line 303, in load
File "polyglot\builtins.py", line 123, in reload
File "importlib\__init__.py", line 169, in reload
File "<frozen importlib._bootstrap>", line 619, in _exec
File "calibre\customize\zipplugin.py", line 204, in exec_module
File "calibre_plugins.pocketbook632.__init__", line 7, in <module>
ImportError: cannot import name 'POCKETBOOK_IMPROVED' from 'calibre_plugins.pocketbook632.device' (C:\Users\rober\AppData\Roaming\calibre\plugins\Po cketBook632.zip/device.py)
Roke97 is offline   Reply With Quote
Old 09-06-2022, 07:39 AM   #30
igorius
Zealot
igorius began at the beginning.
 
Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
Do you eventually have an old version of the plugin installed? Remove it and installation should go.
igorius is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Device Plugin] Kobo Touch Extended Driver jgoguen Plugins 3111 Today 11:36 AM
Screensaver (coverimage plugin) on Pocketbook device won't work Raymen3d3 KOReader 0 02-22-2021 07:37 PM
[Device Plugin]KoboTouch driver for calibre 1.48 davidfor Plugins 4 12-27-2015 07:03 AM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 11:11 AM
Driver Plugin not rekognized silentguy Plugins 2 12-01-2010 01:14 PM


All times are GMT -4. The time now is 02:37 PM.


MobileRead.com is a privately owned, operated and funded community.